headroom-cms 0.1.1

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 (237) hide show
  1. package/README.md +282 -0
  2. package/admin/assets/AdminsPage-CnrQqwKA.js +1 -0
  3. package/admin/assets/AllContentPage-ByN1h3PP.js +1 -0
  4. package/admin/assets/ApiKeysPage-FgNHZPBS.js +1 -0
  5. package/admin/assets/AuditPage-DAPpo-sj.js +1 -0
  6. package/admin/assets/BlockEditor-CZTwex-o.js +179 -0
  7. package/admin/assets/BlockEditor-Cp_wZ2xN.css +1 -0
  8. package/admin/assets/BlockTypeEditPage-Buuwbx1P.js +1 -0
  9. package/admin/assets/BlockTypesPage-Dj0qmsqX.js +1 -0
  10. package/admin/assets/BulkActionBar-BMcUBJSH.js +1 -0
  11. package/admin/assets/CollectionEditPage-CLgQu2HS.js +1 -0
  12. package/admin/assets/CollectionsPage-BnCaxALz.js +1 -0
  13. package/admin/assets/ContentCreatePage-CJI326o-.js +1 -0
  14. package/admin/assets/ContentEditPage-A4i8P2Jd.js +3 -0
  15. package/admin/assets/ContentListPage-Bc4mBIkB.js +1 -0
  16. package/admin/assets/CustomBlockPreview-CCssn6vF.js +479 -0
  17. package/admin/assets/FieldBuilder-YJGSk0nY.js +3 -0
  18. package/admin/assets/LoginPage-Jrne8-Wr.js +1 -0
  19. package/admin/assets/MediaPage-DfPQBmNf.css +1 -0
  20. package/admin/assets/MediaPage-_qNXqsZg.js +1 -0
  21. package/admin/assets/SiteSettingsPage-CoZnavij.js +1 -0
  22. package/admin/assets/SitesPage-ETqFT3nO.js +1 -0
  23. package/admin/assets/TagsPage-BGpp0XZM.js +1 -0
  24. package/admin/assets/UsersPage-CKRJpAb6.js +1 -0
  25. package/admin/assets/WebhookEditPage-BOcLe5OJ.js +1 -0
  26. package/admin/assets/WebhooksPage-Czco583Y.js +1 -0
  27. package/admin/assets/badge-0Z1nL6DI.js +1 -0
  28. package/admin/assets/card-D1-S-QZ6.js +1 -0
  29. package/admin/assets/check-BGA0ADyt.js +1 -0
  30. package/admin/assets/checkbox-BPqrj_XS.js +1 -0
  31. package/admin/assets/command-ChD319uJ.js +1 -0
  32. package/admin/assets/contentStatus-DfWHjFVB.js +1 -0
  33. package/admin/assets/copy-BqH9rXYM.js +1 -0
  34. package/admin/assets/core.esm-Csvubn5Q.js +5 -0
  35. package/admin/assets/format-CZ9bpk32.js +1 -0
  36. package/admin/assets/index-DOqKbrpW.css +1 -0
  37. package/admin/assets/index-Ds50UTAc.js +18 -0
  38. package/admin/assets/lib-BrI1UB_t.js +38 -0
  39. package/admin/assets/media-url-DIg_vSyf.js +1 -0
  40. package/admin/assets/module-RjUF93sV.js +716 -0
  41. package/admin/assets/native-48B9X9Wg.js +1 -0
  42. package/admin/assets/plus-BgHSYWJN.js +1 -0
  43. package/admin/assets/radix-DQ3amgxj.js +51 -0
  44. package/admin/assets/react-vendor-DNVhVxD7.js +4 -0
  45. package/admin/assets/search-DIzcfCVh.js +1 -0
  46. package/admin/assets/select-CJXZv4wv.js +1 -0
  47. package/admin/assets/sortable.esm-Zh-9QRSf.js +1 -0
  48. package/admin/assets/table-B3EHrN_H.js +1 -0
  49. package/admin/assets/tanstack-BO6c-AOu.js +1 -0
  50. package/admin/assets/trash-2-Gny2Upn-.js +1 -0
  51. package/admin/assets/useAdminResolver-BsQc_N4z.js +1 -0
  52. package/admin/assets/useContent-CSobIico.js +1 -0
  53. package/admin/assets/useDebouncedValue-Bf8UizjU.js +1 -0
  54. package/admin/assets/useMedia-CQnmMz4N.js +1 -0
  55. package/admin/assets/useTags-CYqbj5cK.js +1 -0
  56. package/admin/assets/useWebhooks-DXgtQ3aU.js +1 -0
  57. package/admin/index.html +21 -0
  58. package/admin/vite.svg +1 -0
  59. package/dist/admin-site.d.ts +30 -0
  60. package/dist/admin-site.d.ts.map +1 -0
  61. package/dist/admin-site.js +80 -0
  62. package/dist/admin-site.js.map +1 -0
  63. package/dist/api.d.ts +26 -0
  64. package/dist/api.d.ts.map +1 -0
  65. package/dist/api.js +91 -0
  66. package/dist/api.js.map +1 -0
  67. package/dist/auth.d.ts +27 -0
  68. package/dist/auth.d.ts.map +1 -0
  69. package/dist/auth.js +86 -0
  70. package/dist/auth.js.map +1 -0
  71. package/dist/cdn.d.ts +27 -0
  72. package/dist/cdn.d.ts.map +1 -0
  73. package/dist/cdn.js +382 -0
  74. package/dist/cdn.js.map +1 -0
  75. package/dist/image.d.ts +21 -0
  76. package/dist/image.d.ts.map +1 -0
  77. package/dist/image.js +48 -0
  78. package/dist/image.js.map +1 -0
  79. package/dist/index.d.ts +85 -0
  80. package/dist/index.d.ts.map +1 -0
  81. package/dist/index.js +124 -0
  82. package/dist/index.js.map +1 -0
  83. package/dist/storage.d.ts +21 -0
  84. package/dist/storage.d.ts.map +1 -0
  85. package/dist/storage.js +125 -0
  86. package/dist/storage.js.map +1 -0
  87. package/dist/webhooks.d.ts +23 -0
  88. package/dist/webhooks.d.ts.map +1 -0
  89. package/dist/webhooks.js +91 -0
  90. package/dist/webhooks.js.map +1 -0
  91. package/lambda/api/bootstrap +0 -0
  92. package/lambda/api/resource.enc +0 -0
  93. package/lambda/functions/custom-message/index.mjs +112 -0
  94. package/lambda/functions/custom-message/resource.enc +1 -0
  95. package/lambda/image-lambda/index.mjs +188 -0
  96. package/lambda/image-lambda/node_modules/.package-lock.json +160 -0
  97. package/lambda/image-lambda/node_modules/@img/sharp-libvips-linux-arm64/README.md +46 -0
  98. package/lambda/image-lambda/node_modules/@img/sharp-libvips-linux-arm64/lib/glib-2.0/include/glibconfig.h +220 -0
  99. package/lambda/image-lambda/node_modules/@img/sharp-libvips-linux-arm64/lib/index.js +1 -0
  100. package/lambda/image-lambda/node_modules/@img/sharp-libvips-linux-arm64/lib/libvips-cpp.so.42 +0 -0
  101. package/lambda/image-lambda/node_modules/@img/sharp-libvips-linux-arm64/package.json +42 -0
  102. package/lambda/image-lambda/node_modules/@img/sharp-libvips-linux-arm64/versions.json +30 -0
  103. package/lambda/image-lambda/node_modules/@img/sharp-linux-arm64/LICENSE +191 -0
  104. package/lambda/image-lambda/node_modules/@img/sharp-linux-arm64/README.md +18 -0
  105. package/lambda/image-lambda/node_modules/@img/sharp-linux-arm64/lib/sharp-linux-arm64.node +0 -0
  106. package/lambda/image-lambda/node_modules/@img/sharp-linux-arm64/package.json +46 -0
  107. package/lambda/image-lambda/node_modules/color/LICENSE +21 -0
  108. package/lambda/image-lambda/node_modules/color/README.md +123 -0
  109. package/lambda/image-lambda/node_modules/color/index.js +496 -0
  110. package/lambda/image-lambda/node_modules/color/package.json +47 -0
  111. package/lambda/image-lambda/node_modules/color-convert/CHANGELOG.md +54 -0
  112. package/lambda/image-lambda/node_modules/color-convert/LICENSE +21 -0
  113. package/lambda/image-lambda/node_modules/color-convert/README.md +68 -0
  114. package/lambda/image-lambda/node_modules/color-convert/conversions.js +839 -0
  115. package/lambda/image-lambda/node_modules/color-convert/index.js +81 -0
  116. package/lambda/image-lambda/node_modules/color-convert/package.json +48 -0
  117. package/lambda/image-lambda/node_modules/color-convert/route.js +97 -0
  118. package/lambda/image-lambda/node_modules/color-name/LICENSE +8 -0
  119. package/lambda/image-lambda/node_modules/color-name/README.md +11 -0
  120. package/lambda/image-lambda/node_modules/color-name/index.js +152 -0
  121. package/lambda/image-lambda/node_modules/color-name/package.json +28 -0
  122. package/lambda/image-lambda/node_modules/color-string/LICENSE +21 -0
  123. package/lambda/image-lambda/node_modules/color-string/README.md +62 -0
  124. package/lambda/image-lambda/node_modules/color-string/index.js +242 -0
  125. package/lambda/image-lambda/node_modules/color-string/package.json +39 -0
  126. package/lambda/image-lambda/node_modules/detect-libc/LICENSE +201 -0
  127. package/lambda/image-lambda/node_modules/detect-libc/README.md +163 -0
  128. package/lambda/image-lambda/node_modules/detect-libc/index.d.ts +14 -0
  129. package/lambda/image-lambda/node_modules/detect-libc/lib/detect-libc.js +313 -0
  130. package/lambda/image-lambda/node_modules/detect-libc/lib/elf.js +39 -0
  131. package/lambda/image-lambda/node_modules/detect-libc/lib/filesystem.js +51 -0
  132. package/lambda/image-lambda/node_modules/detect-libc/lib/process.js +24 -0
  133. package/lambda/image-lambda/node_modules/detect-libc/package.json +44 -0
  134. package/lambda/image-lambda/node_modules/is-arrayish/LICENSE +21 -0
  135. package/lambda/image-lambda/node_modules/is-arrayish/README.md +16 -0
  136. package/lambda/image-lambda/node_modules/is-arrayish/index.js +9 -0
  137. package/lambda/image-lambda/node_modules/is-arrayish/package.json +45 -0
  138. package/lambda/image-lambda/node_modules/semver/LICENSE +15 -0
  139. package/lambda/image-lambda/node_modules/semver/README.md +665 -0
  140. package/lambda/image-lambda/node_modules/semver/bin/semver.js +191 -0
  141. package/lambda/image-lambda/node_modules/semver/classes/comparator.js +143 -0
  142. package/lambda/image-lambda/node_modules/semver/classes/index.js +7 -0
  143. package/lambda/image-lambda/node_modules/semver/classes/range.js +557 -0
  144. package/lambda/image-lambda/node_modules/semver/classes/semver.js +333 -0
  145. package/lambda/image-lambda/node_modules/semver/functions/clean.js +8 -0
  146. package/lambda/image-lambda/node_modules/semver/functions/cmp.js +54 -0
  147. package/lambda/image-lambda/node_modules/semver/functions/coerce.js +62 -0
  148. package/lambda/image-lambda/node_modules/semver/functions/compare-build.js +9 -0
  149. package/lambda/image-lambda/node_modules/semver/functions/compare-loose.js +5 -0
  150. package/lambda/image-lambda/node_modules/semver/functions/compare.js +7 -0
  151. package/lambda/image-lambda/node_modules/semver/functions/diff.js +60 -0
  152. package/lambda/image-lambda/node_modules/semver/functions/eq.js +5 -0
  153. package/lambda/image-lambda/node_modules/semver/functions/gt.js +5 -0
  154. package/lambda/image-lambda/node_modules/semver/functions/gte.js +5 -0
  155. package/lambda/image-lambda/node_modules/semver/functions/inc.js +21 -0
  156. package/lambda/image-lambda/node_modules/semver/functions/lt.js +5 -0
  157. package/lambda/image-lambda/node_modules/semver/functions/lte.js +5 -0
  158. package/lambda/image-lambda/node_modules/semver/functions/major.js +5 -0
  159. package/lambda/image-lambda/node_modules/semver/functions/minor.js +5 -0
  160. package/lambda/image-lambda/node_modules/semver/functions/neq.js +5 -0
  161. package/lambda/image-lambda/node_modules/semver/functions/parse.js +18 -0
  162. package/lambda/image-lambda/node_modules/semver/functions/patch.js +5 -0
  163. package/lambda/image-lambda/node_modules/semver/functions/prerelease.js +8 -0
  164. package/lambda/image-lambda/node_modules/semver/functions/rcompare.js +5 -0
  165. package/lambda/image-lambda/node_modules/semver/functions/rsort.js +5 -0
  166. package/lambda/image-lambda/node_modules/semver/functions/satisfies.js +12 -0
  167. package/lambda/image-lambda/node_modules/semver/functions/sort.js +5 -0
  168. package/lambda/image-lambda/node_modules/semver/functions/valid.js +8 -0
  169. package/lambda/image-lambda/node_modules/semver/index.js +91 -0
  170. package/lambda/image-lambda/node_modules/semver/internal/constants.js +37 -0
  171. package/lambda/image-lambda/node_modules/semver/internal/debug.js +11 -0
  172. package/lambda/image-lambda/node_modules/semver/internal/identifiers.js +29 -0
  173. package/lambda/image-lambda/node_modules/semver/internal/lrucache.js +42 -0
  174. package/lambda/image-lambda/node_modules/semver/internal/parse-options.js +17 -0
  175. package/lambda/image-lambda/node_modules/semver/internal/re.js +223 -0
  176. package/lambda/image-lambda/node_modules/semver/package.json +78 -0
  177. package/lambda/image-lambda/node_modules/semver/preload.js +4 -0
  178. package/lambda/image-lambda/node_modules/semver/range.bnf +16 -0
  179. package/lambda/image-lambda/node_modules/semver/ranges/gtr.js +6 -0
  180. package/lambda/image-lambda/node_modules/semver/ranges/intersects.js +9 -0
  181. package/lambda/image-lambda/node_modules/semver/ranges/ltr.js +6 -0
  182. package/lambda/image-lambda/node_modules/semver/ranges/max-satisfying.js +27 -0
  183. package/lambda/image-lambda/node_modules/semver/ranges/min-satisfying.js +26 -0
  184. package/lambda/image-lambda/node_modules/semver/ranges/min-version.js +63 -0
  185. package/lambda/image-lambda/node_modules/semver/ranges/outside.js +82 -0
  186. package/lambda/image-lambda/node_modules/semver/ranges/simplify.js +49 -0
  187. package/lambda/image-lambda/node_modules/semver/ranges/subset.js +249 -0
  188. package/lambda/image-lambda/node_modules/semver/ranges/to-comparators.js +10 -0
  189. package/lambda/image-lambda/node_modules/semver/ranges/valid.js +13 -0
  190. package/lambda/image-lambda/node_modules/sharp/LICENSE +191 -0
  191. package/lambda/image-lambda/node_modules/sharp/README.md +118 -0
  192. package/lambda/image-lambda/node_modules/sharp/install/check.js +41 -0
  193. package/lambda/image-lambda/node_modules/sharp/lib/channel.js +174 -0
  194. package/lambda/image-lambda/node_modules/sharp/lib/colour.js +180 -0
  195. package/lambda/image-lambda/node_modules/sharp/lib/composite.js +210 -0
  196. package/lambda/image-lambda/node_modules/sharp/lib/constructor.js +452 -0
  197. package/lambda/image-lambda/node_modules/sharp/lib/index.d.ts +1754 -0
  198. package/lambda/image-lambda/node_modules/sharp/lib/index.js +16 -0
  199. package/lambda/image-lambda/node_modules/sharp/lib/input.js +658 -0
  200. package/lambda/image-lambda/node_modules/sharp/lib/is.js +169 -0
  201. package/lambda/image-lambda/node_modules/sharp/lib/libvips.js +203 -0
  202. package/lambda/image-lambda/node_modules/sharp/lib/operation.js +958 -0
  203. package/lambda/image-lambda/node_modules/sharp/lib/output.js +1587 -0
  204. package/lambda/image-lambda/node_modules/sharp/lib/resize.js +587 -0
  205. package/lambda/image-lambda/node_modules/sharp/lib/sharp.js +114 -0
  206. package/lambda/image-lambda/node_modules/sharp/lib/utility.js +296 -0
  207. package/lambda/image-lambda/node_modules/sharp/package.json +222 -0
  208. package/lambda/image-lambda/node_modules/sharp/src/binding.gyp +280 -0
  209. package/lambda/image-lambda/node_modules/sharp/src/common.cc +1091 -0
  210. package/lambda/image-lambda/node_modules/sharp/src/common.h +393 -0
  211. package/lambda/image-lambda/node_modules/sharp/src/metadata.cc +320 -0
  212. package/lambda/image-lambda/node_modules/sharp/src/metadata.h +85 -0
  213. package/lambda/image-lambda/node_modules/sharp/src/operations.cc +475 -0
  214. package/lambda/image-lambda/node_modules/sharp/src/operations.h +125 -0
  215. package/lambda/image-lambda/node_modules/sharp/src/pipeline.cc +1758 -0
  216. package/lambda/image-lambda/node_modules/sharp/src/pipeline.h +393 -0
  217. package/lambda/image-lambda/node_modules/sharp/src/sharp.cc +40 -0
  218. package/lambda/image-lambda/node_modules/sharp/src/stats.cc +183 -0
  219. package/lambda/image-lambda/node_modules/sharp/src/stats.h +59 -0
  220. package/lambda/image-lambda/node_modules/sharp/src/utilities.cc +269 -0
  221. package/lambda/image-lambda/node_modules/sharp/src/utilities.h +19 -0
  222. package/lambda/image-lambda/node_modules/simple-swizzle/LICENSE +21 -0
  223. package/lambda/image-lambda/node_modules/simple-swizzle/README.md +43 -0
  224. package/lambda/image-lambda/node_modules/simple-swizzle/index.js +29 -0
  225. package/lambda/image-lambda/node_modules/simple-swizzle/package.json +36 -0
  226. package/lambda/webhook-worker/bootstrap +0 -0
  227. package/lambda/webhook-worker/resource.enc +0 -0
  228. package/package.json +50 -0
  229. package/src/admin-site.ts +108 -0
  230. package/src/api.ts +113 -0
  231. package/src/auth.ts +110 -0
  232. package/src/cdn.ts +449 -0
  233. package/src/image.ts +62 -0
  234. package/src/index.ts +216 -0
  235. package/src/sst-env.d.ts +143 -0
  236. package/src/storage.ts +138 -0
  237. package/src/webhooks.ts +114 -0
@@ -0,0 +1,18 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LoginPage-Jrne8-Wr.js","assets/tanstack-BO6c-AOu.js","assets/react-vendor-DNVhVxD7.js","assets/card-D1-S-QZ6.js","assets/radix-DQ3amgxj.js","assets/SitesPage-ETqFT3nO.js","assets/badge-0Z1nL6DI.js","assets/checkbox-BPqrj_XS.js","assets/check-BGA0ADyt.js","assets/plus-BgHSYWJN.js","assets/UsersPage-CKRJpAb6.js","assets/table-B3EHrN_H.js","assets/trash-2-Gny2Upn-.js","assets/AllContentPage-ByN1h3PP.js","assets/useContent-CSobIico.js","assets/media-url-DIg_vSyf.js","assets/format-CZ9bpk32.js","assets/BulkActionBar-BMcUBJSH.js","assets/ContentListPage-Bc4mBIkB.js","assets/useTags-CYqbj5cK.js","assets/useDebouncedValue-Bf8UizjU.js","assets/select-CJXZv4wv.js","assets/contentStatus-DfWHjFVB.js","assets/search-DIzcfCVh.js","assets/ContentCreatePage-CJI326o-.js","assets/ContentEditPage-A4i8P2Jd.js","assets/useAdminResolver-BsQc_N4z.js","assets/sortable.esm-Zh-9QRSf.js","assets/core.esm-Csvubn5Q.js","assets/useMedia-CQnmMz4N.js","assets/command-ChD319uJ.js","assets/MediaPage-_qNXqsZg.js","assets/copy-BqH9rXYM.js","assets/MediaPage-DfPQBmNf.css","assets/CollectionsPage-BnCaxALz.js","assets/CollectionEditPage-CLgQu2HS.js","assets/FieldBuilder-YJGSk0nY.js","assets/BlockTypesPage-Dj0qmsqX.js","assets/BlockTypeEditPage-Buuwbx1P.js","assets/CustomBlockPreview-CCssn6vF.js","assets/ApiKeysPage-FgNHZPBS.js","assets/WebhooksPage-Czco583Y.js","assets/useWebhooks-DXgtQ3aU.js","assets/WebhookEditPage-BOcLe5OJ.js","assets/AdminsPage-CnrQqwKA.js","assets/AuditPage-DAPpo-sj.js","assets/TagsPage-BGpp0XZM.js","assets/SiteSettingsPage-CoZnavij.js"])))=>i.map(i=>d[i]);
2
+ import{j as T,Q as sy,u as $n,a as zt,b as Bt,c as oy}from"./tanstack-BO6c-AOu.js";import{a as uy,r as se,R as ae,c as Vm,d as Hc,N as Ts,u as fg,e as cy,f as fy,L as dy,O as hy,h as my,i as gy}from"./react-vendor-DNVhVxD7.js";import{r as py,R as vy,S as yy,a as by,T as Sy,P as wy,C as xy,I as Ey,b as Ay,c as Ty,d as Cy,e as Uy,f as dg,g as Dy,D as _y,h as Ry,O as Ny,i as My,L as zy,j as By,k as Oy,l as jy,m as qy,V as ky,n as Ly,o as Hy,p as Fy,q as Vy}from"./radix-DQ3amgxj.js";(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))l(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&l(d)}).observe(document,{childList:!0,subtree:!0});function s(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function l(c){if(c.ep)return;c.ep=!0;const f=s(c);fetch(c.href,f)}})();var Iu={exports:{}},Fr={},Gu={exports:{}},Qu={};var Km;function Ky(){return Km||(Km=1,(function(i){function r(j,Q){var G=j.length;j.push(Q);e:for(;0<G;){var ie=G-1>>>1,be=j[ie];if(0<c(be,Q))j[ie]=Q,j[G]=be,G=ie;else break e}}function s(j){return j.length===0?null:j[0]}function l(j){if(j.length===0)return null;var Q=j[0],G=j.pop();if(G!==Q){j[0]=G;e:for(var ie=0,be=j.length,Se=be>>>1;ie<Se;){var re=2*(ie+1)-1,te=j[re],fe=re+1,De=j[fe];if(0>c(te,G))fe<be&&0>c(De,te)?(j[ie]=De,j[fe]=G,ie=fe):(j[ie]=te,j[re]=G,ie=re);else if(fe<be&&0>c(De,G))j[ie]=De,j[fe]=G,ie=fe;else break e}}return Q}function c(j,Q){var G=j.sortIndex-Q.sortIndex;return G!==0?G:j.id-Q.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;i.unstable_now=function(){return f.now()}}else{var d=Date,h=d.now();i.unstable_now=function(){return d.now()-h}}var v=[],b=[],w=1,A=null,U=3,S=!1,N=!1,_=!1,I=!1,K=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,J=typeof setImmediate<"u"?setImmediate:null;function $(j){for(var Q=s(b);Q!==null;){if(Q.callback===null)l(b);else if(Q.startTime<=j)l(b),Q.sortIndex=Q.expirationTime,r(v,Q);else break;Q=s(b)}}function oe(j){if(_=!1,$(j),!N)if(s(v)!==null)N=!0,X||(X=!0,ee());else{var Q=s(b);Q!==null&&Ae(oe,Q.startTime-j)}}var X=!1,W=-1,L=5,Z=-1;function ce(){return I?!0:!(i.unstable_now()-Z<L)}function ne(){if(I=!1,X){var j=i.unstable_now();Z=j;var Q=!0;try{e:{N=!1,_&&(_=!1,P(W),W=-1),S=!0;var G=U;try{t:{for($(j),A=s(v);A!==null&&!(A.expirationTime>j&&ce());){var ie=A.callback;if(typeof ie=="function"){A.callback=null,U=A.priorityLevel;var be=ie(A.expirationTime<=j);if(j=i.unstable_now(),typeof be=="function"){A.callback=be,$(j),Q=!0;break t}A===s(v)&&l(v),$(j)}else l(v);A=s(v)}if(A!==null)Q=!0;else{var Se=s(b);Se!==null&&Ae(oe,Se.startTime-j),Q=!1}}break e}finally{A=null,U=G,S=!1}Q=void 0}}finally{Q?ee():X=!1}}}var ee;if(typeof J=="function")ee=function(){J(ne)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,ue=le.port2;le.port1.onmessage=ne,ee=function(){ue.postMessage(null)}}else ee=function(){K(ne,0)};function Ae(j,Q){W=K(function(){j(i.unstable_now())},Q)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(j){j.callback=null},i.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<j?Math.floor(1e3/j):5},i.unstable_getCurrentPriorityLevel=function(){return U},i.unstable_next=function(j){switch(U){case 1:case 2:case 3:var Q=3;break;default:Q=U}var G=U;U=Q;try{return j()}finally{U=G}},i.unstable_requestPaint=function(){I=!0},i.unstable_runWithPriority=function(j,Q){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var G=U;U=j;try{return Q()}finally{U=G}},i.unstable_scheduleCallback=function(j,Q,G){var ie=i.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?ie+G:ie):G=ie,j){case 1:var be=-1;break;case 2:be=250;break;case 5:be=1073741823;break;case 4:be=1e4;break;default:be=5e3}return be=G+be,j={id:w++,callback:Q,priorityLevel:j,startTime:G,expirationTime:be,sortIndex:-1},G>ie?(j.sortIndex=G,r(b,j),s(v)===null&&j===s(b)&&(_?(P(W),W=-1):_=!0,Ae(oe,G-ie))):(j.sortIndex=be,r(v,j),N||S||(N=!0,X||(X=!0,ee()))),j},i.unstable_shouldYield=ce,i.unstable_wrapCallback=function(j){var Q=U;return function(){var G=U;U=Q;try{return j.apply(this,arguments)}finally{U=G}}}})(Qu)),Qu}var Ym;function Yy(){return Ym||(Ym=1,Gu.exports=Ky()),Gu.exports}var Im;function Iy(){if(Im)return Fr;Im=1;var i=Yy(),r=uy(),s=py();function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(f(e)!==e)throw Error(l(188))}function b(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(l(188));return t!==e?null:e}for(var n=e,a=t;;){var o=n.return;if(o===null)break;var u=o.alternate;if(u===null){if(a=o.return,a!==null){n=a;continue}break}if(o.child===u.child){for(u=o.child;u;){if(u===n)return v(o),e;if(u===a)return v(o),t;u=u.sibling}throw Error(l(188))}if(n.return!==a.return)n=o,a=u;else{for(var m=!1,y=o.child;y;){if(y===n){m=!0,n=o,a=u;break}if(y===a){m=!0,a=o,n=u;break}y=y.sibling}if(!m){for(y=u.child;y;){if(y===n){m=!0,n=u,a=o;break}if(y===a){m=!0,a=u,n=o;break}y=y.sibling}if(!m)throw Error(l(189))}}if(n.alternate!==a)throw Error(l(190))}if(n.tag!==3)throw Error(l(188));return n.stateNode.current===n?e:t}function w(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=w(e),t!==null)return t;e=e.sibling}return null}var A=Object.assign,U=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),K=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),J=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),oe=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),ce=Symbol.for("react.memo_cache_sentinel"),ne=Symbol.iterator;function ee(e){return e===null||typeof e!="object"?null:(e=ne&&e[ne]||e["@@iterator"],typeof e=="function"?e:null)}var le=Symbol.for("react.client.reference");function ue(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===le?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _:return"Fragment";case K:return"Profiler";case I:return"StrictMode";case oe:return"Suspense";case X:return"SuspenseList";case Z:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case N:return"Portal";case J:return e.displayName||"Context";case P:return(e._context.displayName||"Context")+".Consumer";case $:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case W:return t=e.displayName||null,t!==null?t:ue(e.type)||"Memo";case L:t=e._payload,e=e._init;try{return ue(e(t))}catch{}}return null}var Ae=Array.isArray,j=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G={pending:!1,data:null,method:null,action:null},ie=[],be=-1;function Se(e){return{current:e}}function re(e){0>be||(e.current=ie[be],ie[be]=null,be--)}function te(e,t){be++,ie[be]=e.current,e.current=t}var fe=Se(null),De=Se(null),Je=Se(null),pe=Se(null);function $e(e,t){switch(te(Je,t),te(De,e),te(fe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?fm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=fm(t),e=dm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}re(fe),te(fe,e)}function Ke(){re(fe),re(De),re(Je)}function st(e){e.memoizedState!==null&&te(pe,e);var t=fe.current,n=dm(t,e.type);t!==n&&(te(De,e),te(fe,n))}function xe(e){De.current===e&&(re(fe),re(De)),pe.current===e&&(re(pe),qr._currentValue=G)}var Ye,gn;function pn(e){if(Ye===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ye=t&&t[1]||"",gn=-1<n.stack.indexOf(`
3
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
4
+ `+Ye+e+gn}var Wn=!1;function vn(e,t){if(!e||Wn)return"";Wn=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(q){var O=q}Reflect.construct(e,[],Y)}else{try{Y.call()}catch(q){O=q}e.call(Y.prototype)}}else{try{throw Error()}catch(q){O=q}(Y=e())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(q){if(q&&O&&typeof q.stack=="string")return[q.stack,O.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),m=u[0],y=u[1];if(m&&y){var C=m.split(`
5
+ `),B=y.split(`
6
+ `);for(o=a=0;a<C.length&&!C[a].includes("DetermineComponentFrameRoot");)a++;for(;o<B.length&&!B[o].includes("DetermineComponentFrameRoot");)o++;if(a===C.length||o===B.length)for(a=C.length-1,o=B.length-1;1<=a&&0<=o&&C[a]!==B[o];)o--;for(;1<=a&&0<=o;a--,o--)if(C[a]!==B[o]){if(a!==1||o!==1)do if(a--,o--,0>o||C[a]!==B[o]){var k=`
7
+ `+C[a].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),k}while(1<=a&&0<=o);break}}}finally{Wn=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?pn(n):""}function Pi(e,t){switch(e.tag){case 26:case 27:case 5:return pn(e.type);case 16:return pn("Lazy");case 13:return e.child!==t&&t!==null?pn("Suspense Fallback"):pn("Suspense");case 19:return pn("SuspenseList");case 0:case 15:return vn(e.type,!1);case 11:return vn(e.type.render,!1);case 1:return vn(e.type,!0);case 31:return pn("Activity");default:return""}}function x(e){try{var t="",n=null;do t+=Pi(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
8
+ Error generating stack: `+a.message+`
9
+ `+a.stack}}var g=Object.prototype.hasOwnProperty,p=i.unstable_scheduleCallback,E=i.unstable_cancelCallback,M=i.unstable_shouldYield,F=i.unstable_requestPaint,V=i.unstable_now,Re=i.unstable_getCurrentPriorityLevel,Te=i.unstable_ImmediatePriority,je=i.unstable_UserBlockingPriority,it=i.unstable_NormalPriority,Pe=i.unstable_LowPriority,$t=i.unstable_IdlePriority,ti=i.log,Ra=i.unstable_setDisableYieldValue,Nn=null,dt=null;function yn(e){if(typeof ti=="function"&&Ra(e),dt&&typeof dt.setStrictMode=="function")try{dt.setStrictMode(Nn,e)}catch{}}var ht=Math.clz32?Math.clz32:il,Ns=Math.log,Ms=Math.LN2;function il(e){return e>>>=0,e===0?32:31-(Ns(e)/Ms|0)|0}var Na=256,ni=262144,ea=4194304;function _t(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ai(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var o=0,u=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var y=a&134217727;return y!==0?(a=y&~u,a!==0?o=_t(a):(m&=y,m!==0?o=_t(m):n||(n=y&~e,n!==0&&(o=_t(n))))):(y=a&~u,y!==0?o=_t(y):m!==0?o=_t(m):n||(n=a&~e,n!==0&&(o=_t(n)))),o===0?0:t!==0&&t!==o&&(t&u)===0&&(u=o&-o,n=t&-t,u>=n||u===32&&(n&4194048)!==0)?t:o}function Ee(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function He(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Xe(){var e=ea;return ea<<=1,(ea&62914560)===0&&(ea=4194304),e}function Rt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Et(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function An(e,t,n,a,o,u){var m=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var y=e.entanglements,C=e.expirationTimes,B=e.hiddenUpdates;for(n=m&~n;0<n;){var k=31-ht(n),Y=1<<k;y[k]=0,C[k]=-1;var O=B[k];if(O!==null)for(B[k]=null,k=0;k<O.length;k++){var q=O[k];q!==null&&(q.lane&=-536870913)}n&=~Y}a!==0&&Tn(e,a,0),u!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=u&~(m&~t))}function Tn(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-ht(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function Ot(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-ht(n),o=1<<a;o&t|e[a]&t&&(e[a]|=t),n&=~o}}function bn(e,t){var n=t&-t;return n=(n&42)!==0?1:zs(n),(n&(e.suspendedLanes|t))!==0?0:n}function zs(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Bs(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Zc(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:Om(e.type))}function Jc(e,t){var n=Q.p;try{return Q.p=e,t()}finally{Q.p=n}}var ta=Math.random().toString(36).slice(2),At="__reactFiber$"+ta,jt="__reactProps$"+ta,ii="__reactContainer$"+ta,Os="__reactEvents$"+ta,Jg="__reactListeners$"+ta,Pg="__reactHandles$"+ta,Pc="__reactResources$"+ta,$i="__reactMarker$"+ta;function js(e){delete e[At],delete e[jt],delete e[Os],delete e[Jg],delete e[Pg]}function ri(e){var t=e[At];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ii]||n[At]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=bm(e);e!==null;){if(n=e[At])return n;e=bm(e)}return t}e=n,n=e.parentNode}return null}function li(e){if(e=e[At]||e[ii]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Wi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function si(e){var t=e[Pc];return t||(t=e[Pc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function wt(e){e[$i]=!0}var $c=new Set,Wc={};function Ma(e,t){oi(e,t),oi(e+"Capture",t)}function oi(e,t){for(Wc[e]=t,e=0;e<t.length;e++)$c.add(t[e])}var $g=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ef={},tf={};function Wg(e){return g.call(tf,e)?!0:g.call(ef,e)?!1:$g.test(e)?tf[e]=!0:(ef[e]=!0,!1)}function rl(e,t,n){if(Wg(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function ll(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Mn(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function Wt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function nf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ep(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(m){n=""+m,u.call(this,m)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(m){n=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qs(e){if(!e._valueTracker){var t=nf(e)?"checked":"value";e._valueTracker=ep(e,t,""+e[t])}}function af(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=nf(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function sl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var tp=/[\n"\\]/g;function en(e){return e.replace(tp,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ks(e,t,n,a,o,u,m,y){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Wt(t)):e.value!==""+Wt(t)&&(e.value=""+Wt(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?Ls(e,m,Wt(t)):n!=null?Ls(e,m,Wt(n)):a!=null&&e.removeAttribute("value"),o==null&&u!=null&&(e.defaultChecked=!!u),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+Wt(y):e.removeAttribute("name")}function rf(e,t,n,a,o,u,m,y){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){qs(e);return}n=n!=null?""+Wt(n):"",t=t!=null?""+Wt(t):n,y||t===e.value||(e.value=t),e.defaultValue=t}a=a??o,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=y?e.checked:!!a,e.defaultChecked=!!a,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),qs(e)}function Ls(e,t,n){t==="number"&&sl(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function ui(e,t,n,a){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Wt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,a&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function lf(e,t,n){if(t!=null&&(t=""+Wt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Wt(n):""}function sf(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(l(92));if(Ae(a)){if(1<a.length)throw Error(l(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Wt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),qs(e)}function ci(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var np=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function of(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||np.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function uf(e,t,n){if(t!=null&&typeof t!="object")throw Error(l(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var o in t)a=t[o],t.hasOwnProperty(o)&&n[o]!==a&&of(e,o,a)}else for(var u in t)t.hasOwnProperty(u)&&of(e,u,t[u])}function Hs(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ap=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),ip=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ol(e){return ip.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function zn(){}var Fs=null;function Vs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fi=null,di=null;function cf(e){var t=li(e);if(t&&(e=t.stateNode)){var n=e[jt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ks(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+en(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var o=a[jt]||null;if(!o)throw Error(l(90));ks(a,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&af(a)}break e;case"textarea":lf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&ui(e,!!n.multiple,t,!1)}}}var Ks=!1;function ff(e,t,n){if(Ks)return e(t,n);Ks=!0;try{var a=e(t);return a}finally{if(Ks=!1,(fi!==null||di!==null)&&(Zl(),fi&&(t=fi,e=di,di=fi=null,cf(t),e)))for(t=0;t<e.length;t++)cf(e[t])}}function er(e,t){var n=e.stateNode;if(n===null)return null;var a=n[jt]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(l(231,t,typeof n));return n}var Bn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ys=!1;if(Bn)try{var tr={};Object.defineProperty(tr,"passive",{get:function(){Ys=!0}}),window.addEventListener("test",tr,tr),window.removeEventListener("test",tr,tr)}catch{Ys=!1}var na=null,Is=null,ul=null;function df(){if(ul)return ul;var e,t=Is,n=t.length,a,o="value"in na?na.value:na.textContent,u=o.length;for(e=0;e<n&&t[e]===o[e];e++);var m=n-e;for(a=1;a<=m&&t[n-a]===o[u-a];a++);return ul=o.slice(e,1<a?1-a:void 0)}function cl(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function fl(){return!0}function hf(){return!1}function qt(e){function t(n,a,o,u,m){this._reactName=n,this._targetInst=o,this.type=a,this.nativeEvent=u,this.target=m,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(n=e[y],this[y]=n?n(u):u[y]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?fl:hf,this.isPropagationStopped=hf,this}return A(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=fl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=fl)},persist:function(){},isPersistent:fl}),t}var za={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dl=qt(za),nr=A({},za,{view:0,detail:0}),rp=qt(nr),Gs,Qs,ar,hl=A({},nr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zs,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ar&&(ar&&e.type==="mousemove"?(Gs=e.screenX-ar.screenX,Qs=e.screenY-ar.screenY):Qs=Gs=0,ar=e),Gs)},movementY:function(e){return"movementY"in e?e.movementY:Qs}}),mf=qt(hl),lp=A({},hl,{dataTransfer:0}),sp=qt(lp),op=A({},nr,{relatedTarget:0}),Xs=qt(op),up=A({},za,{animationName:0,elapsedTime:0,pseudoElement:0}),cp=qt(up),fp=A({},za,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),dp=qt(fp),hp=A({},za,{data:0}),gf=qt(hp),mp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gp={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},pp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=pp[e])?!!t[e]:!1}function Zs(){return vp}var yp=A({},nr,{key:function(e){if(e.key){var t=mp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=cl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?gp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zs,charCode:function(e){return e.type==="keypress"?cl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?cl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),bp=qt(yp),Sp=A({},hl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pf=qt(Sp),wp=A({},nr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zs}),xp=qt(wp),Ep=A({},za,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ap=qt(Ep),Tp=A({},hl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Cp=qt(Tp),Up=A({},za,{newState:0,oldState:0}),Dp=qt(Up),_p=[9,13,27,32],Js=Bn&&"CompositionEvent"in window,ir=null;Bn&&"documentMode"in document&&(ir=document.documentMode);var Rp=Bn&&"TextEvent"in window&&!ir,vf=Bn&&(!Js||ir&&8<ir&&11>=ir),yf=" ",bf=!1;function Sf(e,t){switch(e){case"keyup":return _p.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var hi=!1;function Np(e,t){switch(e){case"compositionend":return wf(t);case"keypress":return t.which!==32?null:(bf=!0,yf);case"textInput":return e=t.data,e===yf&&bf?null:e;default:return null}}function Mp(e,t){if(hi)return e==="compositionend"||!Js&&Sf(e,t)?(e=df(),ul=Is=na=null,hi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return vf&&t.locale!=="ko"?null:t.data;default:return null}}var zp={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function xf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!zp[e.type]:t==="textarea"}function Ef(e,t,n,a){fi?di?di.push(a):di=[a]:fi=a,t=ns(t,"onChange"),0<t.length&&(n=new dl("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var rr=null,lr=null;function Bp(e){rm(e,0)}function ml(e){var t=Wi(e);if(af(t))return e}function Af(e,t){if(e==="change")return t}var Tf=!1;if(Bn){var Ps;if(Bn){var $s="oninput"in document;if(!$s){var Cf=document.createElement("div");Cf.setAttribute("oninput","return;"),$s=typeof Cf.oninput=="function"}Ps=$s}else Ps=!1;Tf=Ps&&(!document.documentMode||9<document.documentMode)}function Uf(){rr&&(rr.detachEvent("onpropertychange",Df),lr=rr=null)}function Df(e){if(e.propertyName==="value"&&ml(lr)){var t=[];Ef(t,lr,e,Vs(e)),ff(Bp,t)}}function Op(e,t,n){e==="focusin"?(Uf(),rr=t,lr=n,rr.attachEvent("onpropertychange",Df)):e==="focusout"&&Uf()}function jp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ml(lr)}function qp(e,t){if(e==="click")return ml(t)}function kp(e,t){if(e==="input"||e==="change")return ml(t)}function Lp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Yt=typeof Object.is=="function"?Object.is:Lp;function sr(e,t){if(Yt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var o=n[a];if(!g.call(t,o)||!Yt(e[o],t[o]))return!1}return!0}function _f(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Rf(e,t){var n=_f(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=_f(n)}}function Nf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Mf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=sl(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=sl(e.document)}return t}function Ws(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Hp=Bn&&"documentMode"in document&&11>=document.documentMode,mi=null,eo=null,or=null,to=!1;function zf(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;to||mi==null||mi!==sl(a)||(a=mi,"selectionStart"in a&&Ws(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),or&&sr(or,a)||(or=a,a=ns(eo,"onSelect"),0<a.length&&(t=new dl("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=mi)))}function Ba(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var gi={animationend:Ba("Animation","AnimationEnd"),animationiteration:Ba("Animation","AnimationIteration"),animationstart:Ba("Animation","AnimationStart"),transitionrun:Ba("Transition","TransitionRun"),transitionstart:Ba("Transition","TransitionStart"),transitioncancel:Ba("Transition","TransitionCancel"),transitionend:Ba("Transition","TransitionEnd")},no={},Bf={};Bn&&(Bf=document.createElement("div").style,"AnimationEvent"in window||(delete gi.animationend.animation,delete gi.animationiteration.animation,delete gi.animationstart.animation),"TransitionEvent"in window||delete gi.transitionend.transition);function Oa(e){if(no[e])return no[e];if(!gi[e])return e;var t=gi[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Bf)return no[e]=t[n];return e}var Of=Oa("animationend"),jf=Oa("animationiteration"),qf=Oa("animationstart"),Fp=Oa("transitionrun"),Vp=Oa("transitionstart"),Kp=Oa("transitioncancel"),kf=Oa("transitionend"),Lf=new Map,ao="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");ao.push("scrollEnd");function Sn(e,t){Lf.set(e,t),Ma(t,[e])}var gl=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},tn=[],pi=0,io=0;function pl(){for(var e=pi,t=io=pi=0;t<e;){var n=tn[t];tn[t++]=null;var a=tn[t];tn[t++]=null;var o=tn[t];tn[t++]=null;var u=tn[t];if(tn[t++]=null,a!==null&&o!==null){var m=a.pending;m===null?o.next=o:(o.next=m.next,m.next=o),a.pending=o}u!==0&&Hf(n,o,u)}}function vl(e,t,n,a){tn[pi++]=e,tn[pi++]=t,tn[pi++]=n,tn[pi++]=a,io|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function ro(e,t,n,a){return vl(e,t,n,a),yl(e)}function ja(e,t){return vl(e,null,null,t),yl(e)}function Hf(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var o=!1,u=e.return;u!==null;)u.childLanes|=n,a=u.alternate,a!==null&&(a.childLanes|=n),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(o=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,o&&t!==null&&(o=31-ht(n),e=u.hiddenUpdates,a=e[o],a===null?e[o]=[t]:a.push(t),t.lane=n|536870912),u):null}function yl(e){if(50<Rr)throw Rr=0,gu=null,Error(l(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var vi={};function Yp(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function It(e,t,n,a){return new Yp(e,t,n,a)}function lo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function On(e,t){var n=e.alternate;return n===null?(n=It(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Ff(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function bl(e,t,n,a,o,u){var m=0;if(a=e,typeof e=="function")lo(e)&&(m=1);else if(typeof e=="string")m=Zv(e,n,fe.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Z:return e=It(31,n,t,o),e.elementType=Z,e.lanes=u,e;case _:return qa(n.children,o,u,t);case I:m=8,o|=24;break;case K:return e=It(12,n,t,o|2),e.elementType=K,e.lanes=u,e;case oe:return e=It(13,n,t,o),e.elementType=oe,e.lanes=u,e;case X:return e=It(19,n,t,o),e.elementType=X,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case J:m=10;break e;case P:m=9;break e;case $:m=11;break e;case W:m=14;break e;case L:m=16,a=null;break e}m=29,n=Error(l(130,e===null?"null":typeof e,"")),a=null}return t=It(m,n,t,o),t.elementType=e,t.type=a,t.lanes=u,t}function qa(e,t,n,a){return e=It(7,e,a,t),e.lanes=n,e}function so(e,t,n){return e=It(6,e,null,t),e.lanes=n,e}function Vf(e){var t=It(18,null,null,0);return t.stateNode=e,t}function oo(e,t,n){return t=It(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Kf=new WeakMap;function nn(e,t){if(typeof e=="object"&&e!==null){var n=Kf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:x(t)},Kf.set(e,t),t)}return{value:e,source:t,stack:x(t)}}var yi=[],bi=0,Sl=null,ur=0,an=[],rn=0,aa=null,Cn=1,Un="";function jn(e,t){yi[bi++]=ur,yi[bi++]=Sl,Sl=e,ur=t}function Yf(e,t,n){an[rn++]=Cn,an[rn++]=Un,an[rn++]=aa,aa=e;var a=Cn;e=Un;var o=32-ht(a)-1;a&=~(1<<o),n+=1;var u=32-ht(t)+o;if(30<u){var m=o-o%5;u=(a&(1<<m)-1).toString(32),a>>=m,o-=m,Cn=1<<32-ht(t)+o|n<<o|a,Un=u+e}else Cn=1<<u|n<<o|a,Un=e}function uo(e){e.return!==null&&(jn(e,1),Yf(e,1,0))}function co(e){for(;e===Sl;)Sl=yi[--bi],yi[bi]=null,ur=yi[--bi],yi[bi]=null;for(;e===aa;)aa=an[--rn],an[rn]=null,Un=an[--rn],an[rn]=null,Cn=an[--rn],an[rn]=null}function If(e,t){an[rn++]=Cn,an[rn++]=Un,an[rn++]=aa,Cn=t.id,Un=t.overflow,aa=e}var Tt=null,We=null,Oe=!1,ia=null,ln=!1,fo=Error(l(519));function ra(e){var t=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw cr(nn(t,e)),fo}function Gf(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[At]=e,t[jt]=a,n){case"dialog":Me("cancel",t),Me("close",t);break;case"iframe":case"object":case"embed":Me("load",t);break;case"video":case"audio":for(n=0;n<Mr.length;n++)Me(Mr[n],t);break;case"source":Me("error",t);break;case"img":case"image":case"link":Me("error",t),Me("load",t);break;case"details":Me("toggle",t);break;case"input":Me("invalid",t),rf(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Me("invalid",t);break;case"textarea":Me("invalid",t),sf(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||um(t.textContent,n)?(a.popover!=null&&(Me("beforetoggle",t),Me("toggle",t)),a.onScroll!=null&&Me("scroll",t),a.onScrollEnd!=null&&Me("scrollend",t),a.onClick!=null&&(t.onclick=zn),t=!0):t=!1,t||ra(e,!0)}function Qf(e){for(Tt=e.return;Tt;)switch(Tt.tag){case 5:case 31:case 13:ln=!1;return;case 27:case 3:ln=!0;return;default:Tt=Tt.return}}function Si(e){if(e!==Tt)return!1;if(!Oe)return Qf(e),Oe=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Ru(e.type,e.memoizedProps)),n=!n),n&&We&&ra(e),Qf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));We=ym(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));We=ym(e)}else t===27?(t=We,ba(e.type)?(e=Ou,Ou=null,We=e):We=t):We=Tt?on(e.stateNode.nextSibling):null;return!0}function ka(){We=Tt=null,Oe=!1}function ho(){var e=ia;return e!==null&&(Ft===null?Ft=e:Ft.push.apply(Ft,e),ia=null),e}function cr(e){ia===null?ia=[e]:ia.push(e)}var mo=Se(null),La=null,qn=null;function la(e,t,n){te(mo,t._currentValue),t._currentValue=n}function kn(e){e._currentValue=mo.current,re(mo)}function go(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function po(e,t,n,a){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var u=o.dependencies;if(u!==null){var m=o.child;u=u.firstContext;e:for(;u!==null;){var y=u;u=o;for(var C=0;C<t.length;C++)if(y.context===t[C]){u.lanes|=n,y=u.alternate,y!==null&&(y.lanes|=n),go(u.return,n,e),a||(m=null);break e}u=y.next}}else if(o.tag===18){if(m=o.return,m===null)throw Error(l(341));m.lanes|=n,u=m.alternate,u!==null&&(u.lanes|=n),go(m,n,e),m=null}else m=o.child;if(m!==null)m.return=o;else for(m=o;m!==null;){if(m===e){m=null;break}if(o=m.sibling,o!==null){o.return=m.return,m=o;break}m=m.return}o=m}}function wi(e,t,n,a){e=null;for(var o=t,u=!1;o!==null;){if(!u){if((o.flags&524288)!==0)u=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var m=o.alternate;if(m===null)throw Error(l(387));if(m=m.memoizedProps,m!==null){var y=o.type;Yt(o.pendingProps.value,m.value)||(e!==null?e.push(y):e=[y])}}else if(o===pe.current){if(m=o.alternate,m===null)throw Error(l(387));m.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(qr):e=[qr])}o=o.return}e!==null&&po(t,e,n,a),t.flags|=262144}function wl(e){for(e=e.firstContext;e!==null;){if(!Yt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ha(e){La=e,qn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ct(e){return Xf(La,e)}function xl(e,t){return La===null&&Ha(e),Xf(e,t)}function Xf(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},qn===null){if(e===null)throw Error(l(308));qn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else qn=qn.next=t;return n}var Ip=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Gp=i.unstable_scheduleCallback,Qp=i.unstable_NormalPriority,mt={$$typeof:J,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function vo(){return{controller:new Ip,data:new Map,refCount:0}}function fr(e){e.refCount--,e.refCount===0&&Gp(Qp,function(){e.controller.abort()})}var dr=null,yo=0,xi=0,Ei=null;function Xp(e,t){if(dr===null){var n=dr=[];yo=0,xi=wu(),Ei={status:"pending",value:void 0,then:function(a){n.push(a)}}}return yo++,t.then(Zf,Zf),t}function Zf(){if(--yo===0&&dr!==null){Ei!==null&&(Ei.status="fulfilled");var e=dr;dr=null,xi=0,Ei=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Zp(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(a.status="rejected",a.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),a}var Jf=j.S;j.S=function(e,t){zh=V(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Xp(e,t),Jf!==null&&Jf(e,t)};var Fa=Se(null);function bo(){var e=Fa.current;return e!==null?e:Ze.pooledCache}function El(e,t){t===null?te(Fa,Fa.current):te(Fa,t.pool)}function Pf(){var e=bo();return e===null?null:{parent:mt._currentValue,pool:e}}var Ai=Error(l(460)),So=Error(l(474)),Al=Error(l(542)),Tl={then:function(){}};function $f(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Wf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(zn,zn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,td(e),e;default:if(typeof t.status=="string")t.then(zn,zn);else{if(e=Ze,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=a}},function(a){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,td(e),e}throw Ka=t,Ai}}function Va(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Ka=n,Ai):n}}var Ka=null;function ed(){if(Ka===null)throw Error(l(459));var e=Ka;return Ka=null,e}function td(e){if(e===Ai||e===Al)throw Error(l(483))}var Ti=null,hr=0;function Cl(e){var t=hr;return hr+=1,Ti===null&&(Ti=[]),Wf(Ti,e,t)}function mr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ul(e,t){throw t.$$typeof===U?Error(l(525)):(e=Object.prototype.toString.call(t),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function nd(e){function t(R,D){if(e){var z=R.deletions;z===null?(R.deletions=[D],R.flags|=16):z.push(D)}}function n(R,D){if(!e)return null;for(;D!==null;)t(R,D),D=D.sibling;return null}function a(R){for(var D=new Map;R!==null;)R.key!==null?D.set(R.key,R):D.set(R.index,R),R=R.sibling;return D}function o(R,D){return R=On(R,D),R.index=0,R.sibling=null,R}function u(R,D,z){return R.index=z,e?(z=R.alternate,z!==null?(z=z.index,z<D?(R.flags|=67108866,D):z):(R.flags|=67108866,D)):(R.flags|=1048576,D)}function m(R){return e&&R.alternate===null&&(R.flags|=67108866),R}function y(R,D,z,H){return D===null||D.tag!==6?(D=so(z,R.mode,H),D.return=R,D):(D=o(D,z),D.return=R,D)}function C(R,D,z,H){var ye=z.type;return ye===_?k(R,D,z.props.children,H,z.key):D!==null&&(D.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===L&&Va(ye)===D.type)?(D=o(D,z.props),mr(D,z),D.return=R,D):(D=bl(z.type,z.key,z.props,null,R.mode,H),mr(D,z),D.return=R,D)}function B(R,D,z,H){return D===null||D.tag!==4||D.stateNode.containerInfo!==z.containerInfo||D.stateNode.implementation!==z.implementation?(D=oo(z,R.mode,H),D.return=R,D):(D=o(D,z.children||[]),D.return=R,D)}function k(R,D,z,H,ye){return D===null||D.tag!==7?(D=qa(z,R.mode,H,ye),D.return=R,D):(D=o(D,z),D.return=R,D)}function Y(R,D,z){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=so(""+D,R.mode,z),D.return=R,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case S:return z=bl(D.type,D.key,D.props,null,R.mode,z),mr(z,D),z.return=R,z;case N:return D=oo(D,R.mode,z),D.return=R,D;case L:return D=Va(D),Y(R,D,z)}if(Ae(D)||ee(D))return D=qa(D,R.mode,z,null),D.return=R,D;if(typeof D.then=="function")return Y(R,Cl(D),z);if(D.$$typeof===J)return Y(R,xl(R,D),z);Ul(R,D)}return null}function O(R,D,z,H){var ye=D!==null?D.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return ye!==null?null:y(R,D,""+z,H);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case S:return z.key===ye?C(R,D,z,H):null;case N:return z.key===ye?B(R,D,z,H):null;case L:return z=Va(z),O(R,D,z,H)}if(Ae(z)||ee(z))return ye!==null?null:k(R,D,z,H,null);if(typeof z.then=="function")return O(R,D,Cl(z),H);if(z.$$typeof===J)return O(R,D,xl(R,z),H);Ul(R,z)}return null}function q(R,D,z,H,ye){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return R=R.get(z)||null,y(D,R,""+H,ye);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case S:return R=R.get(H.key===null?z:H.key)||null,C(D,R,H,ye);case N:return R=R.get(H.key===null?z:H.key)||null,B(D,R,H,ye);case L:return H=Va(H),q(R,D,z,H,ye)}if(Ae(H)||ee(H))return R=R.get(z)||null,k(D,R,H,ye,null);if(typeof H.then=="function")return q(R,D,z,Cl(H),ye);if(H.$$typeof===J)return q(R,D,z,xl(D,H),ye);Ul(D,H)}return null}function de(R,D,z,H){for(var ye=null,qe=null,ve=D,Ue=D=0,Be=null;ve!==null&&Ue<z.length;Ue++){ve.index>Ue?(Be=ve,ve=null):Be=ve.sibling;var ke=O(R,ve,z[Ue],H);if(ke===null){ve===null&&(ve=Be);break}e&&ve&&ke.alternate===null&&t(R,ve),D=u(ke,D,Ue),qe===null?ye=ke:qe.sibling=ke,qe=ke,ve=Be}if(Ue===z.length)return n(R,ve),Oe&&jn(R,Ue),ye;if(ve===null){for(;Ue<z.length;Ue++)ve=Y(R,z[Ue],H),ve!==null&&(D=u(ve,D,Ue),qe===null?ye=ve:qe.sibling=ve,qe=ve);return Oe&&jn(R,Ue),ye}for(ve=a(ve);Ue<z.length;Ue++)Be=q(ve,R,Ue,z[Ue],H),Be!==null&&(e&&Be.alternate!==null&&ve.delete(Be.key===null?Ue:Be.key),D=u(Be,D,Ue),qe===null?ye=Be:qe.sibling=Be,qe=Be);return e&&ve.forEach(function(Aa){return t(R,Aa)}),Oe&&jn(R,Ue),ye}function we(R,D,z,H){if(z==null)throw Error(l(151));for(var ye=null,qe=null,ve=D,Ue=D=0,Be=null,ke=z.next();ve!==null&&!ke.done;Ue++,ke=z.next()){ve.index>Ue?(Be=ve,ve=null):Be=ve.sibling;var Aa=O(R,ve,ke.value,H);if(Aa===null){ve===null&&(ve=Be);break}e&&ve&&Aa.alternate===null&&t(R,ve),D=u(Aa,D,Ue),qe===null?ye=Aa:qe.sibling=Aa,qe=Aa,ve=Be}if(ke.done)return n(R,ve),Oe&&jn(R,Ue),ye;if(ve===null){for(;!ke.done;Ue++,ke=z.next())ke=Y(R,ke.value,H),ke!==null&&(D=u(ke,D,Ue),qe===null?ye=ke:qe.sibling=ke,qe=ke);return Oe&&jn(R,Ue),ye}for(ve=a(ve);!ke.done;Ue++,ke=z.next())ke=q(ve,R,Ue,ke.value,H),ke!==null&&(e&&ke.alternate!==null&&ve.delete(ke.key===null?Ue:ke.key),D=u(ke,D,Ue),qe===null?ye=ke:qe.sibling=ke,qe=ke);return e&&ve.forEach(function(ly){return t(R,ly)}),Oe&&jn(R,Ue),ye}function Qe(R,D,z,H){if(typeof z=="object"&&z!==null&&z.type===_&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case S:e:{for(var ye=z.key;D!==null;){if(D.key===ye){if(ye=z.type,ye===_){if(D.tag===7){n(R,D.sibling),H=o(D,z.props.children),H.return=R,R=H;break e}}else if(D.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===L&&Va(ye)===D.type){n(R,D.sibling),H=o(D,z.props),mr(H,z),H.return=R,R=H;break e}n(R,D);break}else t(R,D);D=D.sibling}z.type===_?(H=qa(z.props.children,R.mode,H,z.key),H.return=R,R=H):(H=bl(z.type,z.key,z.props,null,R.mode,H),mr(H,z),H.return=R,R=H)}return m(R);case N:e:{for(ye=z.key;D!==null;){if(D.key===ye)if(D.tag===4&&D.stateNode.containerInfo===z.containerInfo&&D.stateNode.implementation===z.implementation){n(R,D.sibling),H=o(D,z.children||[]),H.return=R,R=H;break e}else{n(R,D);break}else t(R,D);D=D.sibling}H=oo(z,R.mode,H),H.return=R,R=H}return m(R);case L:return z=Va(z),Qe(R,D,z,H)}if(Ae(z))return de(R,D,z,H);if(ee(z)){if(ye=ee(z),typeof ye!="function")throw Error(l(150));return z=ye.call(z),we(R,D,z,H)}if(typeof z.then=="function")return Qe(R,D,Cl(z),H);if(z.$$typeof===J)return Qe(R,D,xl(R,z),H);Ul(R,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,D!==null&&D.tag===6?(n(R,D.sibling),H=o(D,z),H.return=R,R=H):(n(R,D),H=so(z,R.mode,H),H.return=R,R=H),m(R)):n(R,D)}return function(R,D,z,H){try{hr=0;var ye=Qe(R,D,z,H);return Ti=null,ye}catch(ve){if(ve===Ai||ve===Al)throw ve;var qe=It(29,ve,null,R.mode);return qe.lanes=H,qe.return=R,qe}finally{}}}var Ya=nd(!0),ad=nd(!1),sa=!1;function wo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function oa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ua(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Le&2)!==0){var o=a.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),a.pending=t,t=yl(e),Hf(e,null,n),t}return vl(e,a,t,n),yl(e)}function gr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Ot(e,n)}}function Eo(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var o=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var m={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?o=u=m:u=u.next=m,n=n.next}while(n!==null);u===null?o=u=t:u=u.next=t}else o=u=t;n={baseState:a.baseState,firstBaseUpdate:o,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ao=!1;function pr(){if(Ao){var e=Ei;if(e!==null)throw e}}function vr(e,t,n,a){Ao=!1;var o=e.updateQueue;sa=!1;var u=o.firstBaseUpdate,m=o.lastBaseUpdate,y=o.shared.pending;if(y!==null){o.shared.pending=null;var C=y,B=C.next;C.next=null,m===null?u=B:m.next=B,m=C;var k=e.alternate;k!==null&&(k=k.updateQueue,y=k.lastBaseUpdate,y!==m&&(y===null?k.firstBaseUpdate=B:y.next=B,k.lastBaseUpdate=C))}if(u!==null){var Y=o.baseState;m=0,k=B=C=null,y=u;do{var O=y.lane&-536870913,q=O!==y.lane;if(q?(ze&O)===O:(a&O)===O){O!==0&&O===xi&&(Ao=!0),k!==null&&(k=k.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var de=e,we=y;O=t;var Qe=n;switch(we.tag){case 1:if(de=we.payload,typeof de=="function"){Y=de.call(Qe,Y,O);break e}Y=de;break e;case 3:de.flags=de.flags&-65537|128;case 0:if(de=we.payload,O=typeof de=="function"?de.call(Qe,Y,O):de,O==null)break e;Y=A({},Y,O);break e;case 2:sa=!0}}O=y.callback,O!==null&&(e.flags|=64,q&&(e.flags|=8192),q=o.callbacks,q===null?o.callbacks=[O]:q.push(O))}else q={lane:O,tag:y.tag,payload:y.payload,callback:y.callback,next:null},k===null?(B=k=q,C=Y):k=k.next=q,m|=O;if(y=y.next,y===null){if(y=o.shared.pending,y===null)break;q=y,y=q.next,q.next=null,o.lastBaseUpdate=q,o.shared.pending=null}}while(!0);k===null&&(C=Y),o.baseState=C,o.firstBaseUpdate=B,o.lastBaseUpdate=k,u===null&&(o.shared.lanes=0),ma|=m,e.lanes=m,e.memoizedState=Y}}function id(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function rd(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)id(n[e],t)}var Ci=Se(null),Dl=Se(0);function ld(e,t){e=Qn,te(Dl,e),te(Ci,t),Qn=e|t.baseLanes}function To(){te(Dl,Qn),te(Ci,Ci.current)}function Co(){Qn=Dl.current,re(Ci),re(Dl)}var Gt=Se(null),sn=null;function ca(e){var t=e.alternate;te(ot,ot.current&1),te(Gt,e),sn===null&&(t===null||Ci.current!==null||t.memoizedState!==null)&&(sn=e)}function Uo(e){te(ot,ot.current),te(Gt,e),sn===null&&(sn=e)}function sd(e){e.tag===22?(te(ot,ot.current),te(Gt,e),sn===null&&(sn=e)):fa()}function fa(){te(ot,ot.current),te(Gt,Gt.current)}function Qt(e){re(Gt),sn===e&&(sn=null),re(ot)}var ot=Se(0);function _l(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||zu(n)||Bu(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ln=0,Ce=null,Ie=null,gt=null,Rl=!1,Ui=!1,Ia=!1,Nl=0,yr=0,Di=null,Jp=0;function rt(){throw Error(l(321))}function Do(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Yt(e[n],t[n]))return!1;return!0}function _o(e,t,n,a,o,u){return Ln=u,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,j.H=e===null||e.memoizedState===null?Yd:Yo,Ia=!1,u=n(a,o),Ia=!1,Ui&&(u=ud(t,n,a,o)),od(e),u}function od(e){j.H=wr;var t=Ie!==null&&Ie.next!==null;if(Ln=0,gt=Ie=Ce=null,Rl=!1,yr=0,Di=null,t)throw Error(l(300));e===null||pt||(e=e.dependencies,e!==null&&wl(e)&&(pt=!0))}function ud(e,t,n,a){Ce=e;var o=0;do{if(Ui&&(Di=null),yr=0,Ui=!1,25<=o)throw Error(l(301));if(o+=1,gt=Ie=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}j.H=Id,u=t(n,a)}while(Ui);return u}function Pp(){var e=j.H,t=e.useState()[0];return t=typeof t.then=="function"?br(t):t,e=e.useState()[0],(Ie!==null?Ie.memoizedState:null)!==e&&(Ce.flags|=1024),t}function Ro(){var e=Nl!==0;return Nl=0,e}function No(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Mo(e){if(Rl){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Rl=!1}Ln=0,gt=Ie=Ce=null,Ui=!1,yr=Nl=0,Di=null}function Nt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return gt===null?Ce.memoizedState=gt=e:gt=gt.next=e,gt}function ut(){if(Ie===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=Ie.next;var t=gt===null?Ce.memoizedState:gt.next;if(t!==null)gt=t,Ie=e;else{if(e===null)throw Ce.alternate===null?Error(l(467)):Error(l(310));Ie=e,e={memoizedState:Ie.memoizedState,baseState:Ie.baseState,baseQueue:Ie.baseQueue,queue:Ie.queue,next:null},gt===null?Ce.memoizedState=gt=e:gt=gt.next=e}return gt}function Ml(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function br(e){var t=yr;return yr+=1,Di===null&&(Di=[]),e=Wf(Di,e,t),t=Ce,(gt===null?t.memoizedState:gt.next)===null&&(t=t.alternate,j.H=t===null||t.memoizedState===null?Yd:Yo),e}function zl(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return br(e);if(e.$$typeof===J)return Ct(e)}throw Error(l(438,String(e)))}function zo(e){var t=null,n=Ce.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=Ce.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Ml(),Ce.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=ce;return t.index++,n}function Hn(e,t){return typeof t=="function"?t(e):t}function Bl(e){var t=ut();return Bo(t,Ie,e)}function Bo(e,t,n){var a=e.queue;if(a===null)throw Error(l(311));a.lastRenderedReducer=n;var o=e.baseQueue,u=a.pending;if(u!==null){if(o!==null){var m=o.next;o.next=u.next,u.next=m}t.baseQueue=o=u,a.pending=null}if(u=e.baseState,o===null)e.memoizedState=u;else{t=o.next;var y=m=null,C=null,B=t,k=!1;do{var Y=B.lane&-536870913;if(Y!==B.lane?(ze&Y)===Y:(Ln&Y)===Y){var O=B.revertLane;if(O===0)C!==null&&(C=C.next={lane:0,revertLane:0,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),Y===xi&&(k=!0);else if((Ln&O)===O){B=B.next,O===xi&&(k=!0);continue}else Y={lane:0,revertLane:B.revertLane,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},C===null?(y=C=Y,m=u):C=C.next=Y,Ce.lanes|=O,ma|=O;Y=B.action,Ia&&n(u,Y),u=B.hasEagerState?B.eagerState:n(u,Y)}else O={lane:Y,revertLane:B.revertLane,gesture:B.gesture,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},C===null?(y=C=O,m=u):C=C.next=O,Ce.lanes|=Y,ma|=Y;B=B.next}while(B!==null&&B!==t);if(C===null?m=u:C.next=y,!Yt(u,e.memoizedState)&&(pt=!0,k&&(n=Ei,n!==null)))throw n;e.memoizedState=u,e.baseState=m,e.baseQueue=C,a.lastRenderedState=u}return o===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Oo(e){var t=ut(),n=t.queue;if(n===null)throw Error(l(311));n.lastRenderedReducer=e;var a=n.dispatch,o=n.pending,u=t.memoizedState;if(o!==null){n.pending=null;var m=o=o.next;do u=e(u,m.action),m=m.next;while(m!==o);Yt(u,t.memoizedState)||(pt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,a]}function cd(e,t,n){var a=Ce,o=ut(),u=Oe;if(u){if(n===void 0)throw Error(l(407));n=n()}else n=t();var m=!Yt((Ie||o).memoizedState,n);if(m&&(o.memoizedState=n,pt=!0),o=o.queue,ko(hd.bind(null,a,o,e),[e]),o.getSnapshot!==t||m||gt!==null&&gt.memoizedState.tag&1){if(a.flags|=2048,_i(9,{destroy:void 0},dd.bind(null,a,o,n,t),null),Ze===null)throw Error(l(349));u||(Ln&127)!==0||fd(a,t,n)}return n}function fd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ce.updateQueue,t===null?(t=Ml(),Ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function dd(e,t,n,a){t.value=n,t.getSnapshot=a,md(t)&&gd(e)}function hd(e,t,n){return n(function(){md(t)&&gd(e)})}function md(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Yt(e,n)}catch{return!0}}function gd(e){var t=ja(e,2);t!==null&&Vt(t,e,2)}function jo(e){var t=Nt();if(typeof e=="function"){var n=e;if(e=n(),Ia){yn(!0);try{n()}finally{yn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hn,lastRenderedState:e},t}function pd(e,t,n,a){return e.baseState=n,Bo(e,Ie,typeof a=="function"?a:Hn)}function $p(e,t,n,a,o){if(ql(e))throw Error(l(485));if(e=t.action,e!==null){var u={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){u.listeners.push(m)}};j.T!==null?n(!0):u.isTransition=!1,a(u),n=t.pending,n===null?(u.next=t.pending=u,vd(t,u)):(u.next=n.next,t.pending=n.next=u)}}function vd(e,t){var n=t.action,a=t.payload,o=e.state;if(t.isTransition){var u=j.T,m={};j.T=m;try{var y=n(o,a),C=j.S;C!==null&&C(m,y),yd(e,t,y)}catch(B){qo(e,t,B)}finally{u!==null&&m.types!==null&&(u.types=m.types),j.T=u}}else try{u=n(o,a),yd(e,t,u)}catch(B){qo(e,t,B)}}function yd(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){bd(e,t,a)},function(a){return qo(e,t,a)}):bd(e,t,n)}function bd(e,t,n){t.status="fulfilled",t.value=n,Sd(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,vd(e,n)))}function qo(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,Sd(t),t=t.next;while(t!==a)}e.action=null}function Sd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function wd(e,t){return t}function xd(e,t){if(Oe){var n=Ze.formState;if(n!==null){e:{var a=Ce;if(Oe){if(We){t:{for(var o=We,u=ln;o.nodeType!==8;){if(!u){o=null;break t}if(o=on(o.nextSibling),o===null){o=null;break t}}u=o.data,o=u==="F!"||u==="F"?o:null}if(o){We=on(o.nextSibling),a=o.data==="F!";break e}}ra(a)}a=!1}a&&(t=n[0])}}return n=Nt(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wd,lastRenderedState:t},n.queue=a,n=Fd.bind(null,Ce,a),a.dispatch=n,a=jo(!1),u=Ko.bind(null,Ce,!1,a.queue),a=Nt(),o={state:t,dispatch:null,action:e,pending:null},a.queue=o,n=$p.bind(null,Ce,o,u,n),o.dispatch=n,a.memoizedState=e,[t,n,!1]}function Ed(e){var t=ut();return Ad(t,Ie,e)}function Ad(e,t,n){if(t=Bo(e,t,wd)[0],e=Bl(Hn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=br(t)}catch(m){throw m===Ai?Al:m}else a=t;t=ut();var o=t.queue,u=o.dispatch;return n!==t.memoizedState&&(Ce.flags|=2048,_i(9,{destroy:void 0},Wp.bind(null,o,n),null)),[a,u,e]}function Wp(e,t){e.action=t}function Td(e){var t=ut(),n=Ie;if(n!==null)return Ad(t,n,e);ut(),t=t.memoizedState,n=ut();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function _i(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=Ce.updateQueue,t===null&&(t=Ml(),Ce.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function Cd(){return ut().memoizedState}function Ol(e,t,n,a){var o=Nt();Ce.flags|=e,o.memoizedState=_i(1|t,{destroy:void 0},n,a===void 0?null:a)}function jl(e,t,n,a){var o=ut();a=a===void 0?null:a;var u=o.memoizedState.inst;Ie!==null&&a!==null&&Do(a,Ie.memoizedState.deps)?o.memoizedState=_i(t,u,n,a):(Ce.flags|=e,o.memoizedState=_i(1|t,u,n,a))}function Ud(e,t){Ol(8390656,8,e,t)}function ko(e,t){jl(2048,8,e,t)}function ev(e){Ce.flags|=4;var t=Ce.updateQueue;if(t===null)t=Ml(),Ce.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Dd(e){var t=ut().memoizedState;return ev({ref:t,nextImpl:e}),function(){if((Le&2)!==0)throw Error(l(440));return t.impl.apply(void 0,arguments)}}function _d(e,t){return jl(4,2,e,t)}function Rd(e,t){return jl(4,4,e,t)}function Nd(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Md(e,t,n){n=n!=null?n.concat([e]):null,jl(4,4,Nd.bind(null,t,e),n)}function Lo(){}function zd(e,t){var n=ut();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Do(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Bd(e,t){var n=ut();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Do(t,a[1]))return a[0];if(a=e(),Ia){yn(!0);try{e()}finally{yn(!1)}}return n.memoizedState=[a,t],a}function Ho(e,t,n){return n===void 0||(Ln&1073741824)!==0&&(ze&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Oh(),Ce.lanes|=e,ma|=e,n)}function Od(e,t,n,a){return Yt(n,t)?n:Ci.current!==null?(e=Ho(e,n,a),Yt(e,t)||(pt=!0),e):(Ln&42)===0||(Ln&1073741824)!==0&&(ze&261930)===0?(pt=!0,e.memoizedState=n):(e=Oh(),Ce.lanes|=e,ma|=e,t)}function jd(e,t,n,a,o){var u=Q.p;Q.p=u!==0&&8>u?u:8;var m=j.T,y={};j.T=y,Ko(e,!1,t,n);try{var C=o(),B=j.S;if(B!==null&&B(y,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var k=Zp(C,a);Sr(e,t,k,Jt(e))}else Sr(e,t,a,Jt(e))}catch(Y){Sr(e,t,{then:function(){},status:"rejected",reason:Y},Jt())}finally{Q.p=u,m!==null&&y.types!==null&&(m.types=y.types),j.T=m}}function tv(){}function Fo(e,t,n,a){if(e.tag!==5)throw Error(l(476));var o=qd(e).queue;jd(e,o,t,G,n===null?tv:function(){return kd(e),n(a)})}function qd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hn,lastRenderedState:G},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function kd(e){var t=qd(e);t.next===null&&(t=e.alternate.memoizedState),Sr(e,t.next.queue,{},Jt())}function Vo(){return Ct(qr)}function Ld(){return ut().memoizedState}function Hd(){return ut().memoizedState}function nv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Jt();e=oa(n);var a=ua(t,e,n);a!==null&&(Vt(a,t,n),gr(a,t,n)),t={cache:vo()},e.payload=t;return}t=t.return}}function av(e,t,n){var a=Jt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ql(e)?Vd(t,n):(n=ro(e,t,n,a),n!==null&&(Vt(n,e,a),Kd(n,t,a)))}function Fd(e,t,n){var a=Jt();Sr(e,t,n,a)}function Sr(e,t,n,a){var o={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ql(e))Vd(t,o);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var m=t.lastRenderedState,y=u(m,n);if(o.hasEagerState=!0,o.eagerState=y,Yt(y,m))return vl(e,t,o,0),Ze===null&&pl(),!1}catch{}finally{}if(n=ro(e,t,o,a),n!==null)return Vt(n,e,a),Kd(n,t,a),!0}return!1}function Ko(e,t,n,a){if(a={lane:2,revertLane:wu(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ql(e)){if(t)throw Error(l(479))}else t=ro(e,n,a,2),t!==null&&Vt(t,e,2)}function ql(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function Vd(e,t){Ui=Rl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Kd(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Ot(e,n)}}var wr={readContext:Ct,use:zl,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useLayoutEffect:rt,useInsertionEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useSyncExternalStore:rt,useId:rt,useHostTransitionStatus:rt,useFormState:rt,useActionState:rt,useOptimistic:rt,useMemoCache:rt,useCacheRefresh:rt};wr.useEffectEvent=rt;var Yd={readContext:Ct,use:zl,useCallback:function(e,t){return Nt().memoizedState=[e,t===void 0?null:t],e},useContext:Ct,useEffect:Ud,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Ol(4194308,4,Nd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ol(4194308,4,e,t)},useInsertionEffect:function(e,t){Ol(4,2,e,t)},useMemo:function(e,t){var n=Nt();t=t===void 0?null:t;var a=e();if(Ia){yn(!0);try{e()}finally{yn(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=Nt();if(n!==void 0){var o=n(t);if(Ia){yn(!0);try{n(t)}finally{yn(!1)}}}else o=t;return a.memoizedState=a.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},a.queue=e,e=e.dispatch=av.bind(null,Ce,e),[a.memoizedState,e]},useRef:function(e){var t=Nt();return e={current:e},t.memoizedState=e},useState:function(e){e=jo(e);var t=e.queue,n=Fd.bind(null,Ce,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Lo,useDeferredValue:function(e,t){var n=Nt();return Ho(n,e,t)},useTransition:function(){var e=jo(!1);return e=jd.bind(null,Ce,e.queue,!0,!1),Nt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=Ce,o=Nt();if(Oe){if(n===void 0)throw Error(l(407));n=n()}else{if(n=t(),Ze===null)throw Error(l(349));(ze&127)!==0||fd(a,t,n)}o.memoizedState=n;var u={value:n,getSnapshot:t};return o.queue=u,Ud(hd.bind(null,a,u,e),[e]),a.flags|=2048,_i(9,{destroy:void 0},dd.bind(null,a,u,n,t),null),n},useId:function(){var e=Nt(),t=Ze.identifierPrefix;if(Oe){var n=Un,a=Cn;n=(a&~(1<<32-ht(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Nl++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Jp++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Vo,useFormState:xd,useActionState:xd,useOptimistic:function(e){var t=Nt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ko.bind(null,Ce,!0,n),n.dispatch=t,[e,t]},useMemoCache:zo,useCacheRefresh:function(){return Nt().memoizedState=nv.bind(null,Ce)},useEffectEvent:function(e){var t=Nt(),n={impl:e};return t.memoizedState=n,function(){if((Le&2)!==0)throw Error(l(440));return n.impl.apply(void 0,arguments)}}},Yo={readContext:Ct,use:zl,useCallback:zd,useContext:Ct,useEffect:ko,useImperativeHandle:Md,useInsertionEffect:_d,useLayoutEffect:Rd,useMemo:Bd,useReducer:Bl,useRef:Cd,useState:function(){return Bl(Hn)},useDebugValue:Lo,useDeferredValue:function(e,t){var n=ut();return Od(n,Ie.memoizedState,e,t)},useTransition:function(){var e=Bl(Hn)[0],t=ut().memoizedState;return[typeof e=="boolean"?e:br(e),t]},useSyncExternalStore:cd,useId:Ld,useHostTransitionStatus:Vo,useFormState:Ed,useActionState:Ed,useOptimistic:function(e,t){var n=ut();return pd(n,Ie,e,t)},useMemoCache:zo,useCacheRefresh:Hd};Yo.useEffectEvent=Dd;var Id={readContext:Ct,use:zl,useCallback:zd,useContext:Ct,useEffect:ko,useImperativeHandle:Md,useInsertionEffect:_d,useLayoutEffect:Rd,useMemo:Bd,useReducer:Oo,useRef:Cd,useState:function(){return Oo(Hn)},useDebugValue:Lo,useDeferredValue:function(e,t){var n=ut();return Ie===null?Ho(n,e,t):Od(n,Ie.memoizedState,e,t)},useTransition:function(){var e=Oo(Hn)[0],t=ut().memoizedState;return[typeof e=="boolean"?e:br(e),t]},useSyncExternalStore:cd,useId:Ld,useHostTransitionStatus:Vo,useFormState:Td,useActionState:Td,useOptimistic:function(e,t){var n=ut();return Ie!==null?pd(n,Ie,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:zo,useCacheRefresh:Hd};Id.useEffectEvent=Dd;function Io(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:A({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Go={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Jt(),o=oa(a);o.payload=t,n!=null&&(o.callback=n),t=ua(e,o,a),t!==null&&(Vt(t,e,a),gr(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Jt(),o=oa(a);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=ua(e,o,a),t!==null&&(Vt(t,e,a),gr(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Jt(),a=oa(n);a.tag=2,t!=null&&(a.callback=t),t=ua(e,a,n),t!==null&&(Vt(t,e,n),gr(t,e,n))}};function Gd(e,t,n,a,o,u,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,m):t.prototype&&t.prototype.isPureReactComponent?!sr(n,a)||!sr(o,u):!0}function Qd(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Go.enqueueReplaceState(t,t.state,null)}function Ga(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=A({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function Xd(e){gl(e)}function Zd(e){console.error(e)}function Jd(e){gl(e)}function kl(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Pd(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Qo(e,t,n){return n=oa(n),n.tag=3,n.payload={element:null},n.callback=function(){kl(e,t)},n}function $d(e){return e=oa(e),e.tag=3,e}function Wd(e,t,n,a){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var u=a.value;e.payload=function(){return o(u)},e.callback=function(){Pd(t,n,a)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){Pd(t,n,a),typeof o!="function"&&(ga===null?ga=new Set([this]):ga.add(this));var y=a.stack;this.componentDidCatch(a.value,{componentStack:y!==null?y:""})})}function iv(e,t,n,a,o){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&wi(t,n,o,!0),n=Gt.current,n!==null){switch(n.tag){case 31:case 13:return sn===null?Jl():n.alternate===null&&lt===0&&(lt=3),n.flags&=-257,n.flags|=65536,n.lanes=o,a===Tl?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),yu(e,a,o)),!1;case 22:return n.flags|=65536,a===Tl?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),yu(e,a,o)),!1}throw Error(l(435,n.tag))}return yu(e,a,o),Jl(),!1}if(Oe)return t=Gt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,a!==fo&&(e=Error(l(422),{cause:a}),cr(nn(e,n)))):(a!==fo&&(t=Error(l(423),{cause:a}),cr(nn(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,a=nn(a,n),o=Qo(e.stateNode,a,o),Eo(e,o),lt!==4&&(lt=2)),!1;var u=Error(l(520),{cause:a});if(u=nn(u,n),_r===null?_r=[u]:_r.push(u),lt!==4&&(lt=2),t===null)return!0;a=nn(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=Qo(n.stateNode,a,e),Eo(n,e),!1;case 1:if(t=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(ga===null||!ga.has(u))))return n.flags|=65536,o&=-o,n.lanes|=o,o=$d(o),Wd(o,e,n,a),Eo(n,o),!1}n=n.return}while(n!==null);return!1}var Xo=Error(l(461)),pt=!1;function Ut(e,t,n,a){t.child=e===null?ad(t,null,n,a):Ya(t,e.child,n,a)}function eh(e,t,n,a,o){n=n.render;var u=t.ref;if("ref"in a){var m={};for(var y in a)y!=="ref"&&(m[y]=a[y])}else m=a;return Ha(t),a=_o(e,t,n,m,u,o),y=Ro(),e!==null&&!pt?(No(e,t,o),Fn(e,t,o)):(Oe&&y&&uo(t),t.flags|=1,Ut(e,t,a,o),t.child)}function th(e,t,n,a,o){if(e===null){var u=n.type;return typeof u=="function"&&!lo(u)&&u.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=u,nh(e,t,u,a,o)):(e=bl(n.type,null,a,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!nu(e,o)){var m=u.memoizedProps;if(n=n.compare,n=n!==null?n:sr,n(m,a)&&e.ref===t.ref)return Fn(e,t,o)}return t.flags|=1,e=On(u,a),e.ref=t.ref,e.return=t,t.child=e}function nh(e,t,n,a,o){if(e!==null){var u=e.memoizedProps;if(sr(u,a)&&e.ref===t.ref)if(pt=!1,t.pendingProps=a=u,nu(e,o))(e.flags&131072)!==0&&(pt=!0);else return t.lanes=e.lanes,Fn(e,t,o)}return Zo(e,t,n,a,o)}function ah(e,t,n,a){var o=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,e!==null){for(a=t.child=e.child,o=0;a!==null;)o=o|a.lanes|a.childLanes,a=a.sibling;a=o&~u}else a=0,t.child=null;return ih(e,t,u,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&El(t,u!==null?u.cachePool:null),u!==null?ld(t,u):To(),sd(t);else return a=t.lanes=536870912,ih(e,t,u!==null?u.baseLanes|n:n,n,a)}else u!==null?(El(t,u.cachePool),ld(t,u),fa(),t.memoizedState=null):(e!==null&&El(t,null),To(),fa());return Ut(e,t,o,n),t.child}function xr(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ih(e,t,n,a,o){var u=bo();return u=u===null?null:{parent:mt._currentValue,pool:u},t.memoizedState={baseLanes:n,cachePool:u},e!==null&&El(t,null),To(),sd(t),e!==null&&wi(e,t,a,!0),t.childLanes=o,null}function Ll(e,t){return t=Fl({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function rh(e,t,n){return Ya(t,e.child,null,n),e=Ll(t,t.pendingProps),e.flags|=2,Qt(t),t.memoizedState=null,e}function rv(e,t,n){var a=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Oe){if(a.mode==="hidden")return e=Ll(t,a),t.lanes=536870912,xr(null,e);if(Uo(t),(e=We)?(e=vm(e,ln),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:aa!==null?{id:Cn,overflow:Un}:null,retryLane:536870912,hydrationErrors:null},n=Vf(e),n.return=t,t.child=n,Tt=t,We=null)):e=null,e===null)throw ra(t);return t.lanes=536870912,null}return Ll(t,a)}var u=e.memoizedState;if(u!==null){var m=u.dehydrated;if(Uo(t),o)if(t.flags&256)t.flags&=-257,t=rh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(l(558));else if(pt||wi(e,t,n,!1),o=(n&e.childLanes)!==0,pt||o){if(a=Ze,a!==null&&(m=bn(a,n),m!==0&&m!==u.retryLane))throw u.retryLane=m,ja(e,m),Vt(a,e,m),Xo;Jl(),t=rh(e,t,n)}else e=u.treeContext,We=on(m.nextSibling),Tt=t,Oe=!0,ia=null,ln=!1,e!==null&&If(t,e),t=Ll(t,a),t.flags|=4096;return t}return e=On(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Hl(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(l(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Zo(e,t,n,a,o){return Ha(t),n=_o(e,t,n,a,void 0,o),a=Ro(),e!==null&&!pt?(No(e,t,o),Fn(e,t,o)):(Oe&&a&&uo(t),t.flags|=1,Ut(e,t,n,o),t.child)}function lh(e,t,n,a,o,u){return Ha(t),t.updateQueue=null,n=ud(t,a,n,o),od(e),a=Ro(),e!==null&&!pt?(No(e,t,u),Fn(e,t,u)):(Oe&&a&&uo(t),t.flags|=1,Ut(e,t,n,u),t.child)}function sh(e,t,n,a,o){if(Ha(t),t.stateNode===null){var u=vi,m=n.contextType;typeof m=="object"&&m!==null&&(u=Ct(m)),u=new n(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Go,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},wo(t),m=n.contextType,u.context=typeof m=="object"&&m!==null?Ct(m):vi,u.state=t.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(Io(t,n,m,a),u.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(m=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),m!==u.state&&Go.enqueueReplaceState(u,u.state,null),vr(t,a,u,o),pr(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var y=t.memoizedProps,C=Ga(n,y);u.props=C;var B=u.context,k=n.contextType;m=vi,typeof k=="object"&&k!==null&&(m=Ct(k));var Y=n.getDerivedStateFromProps;k=typeof Y=="function"||typeof u.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,k||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(y||B!==m)&&Qd(t,u,a,m),sa=!1;var O=t.memoizedState;u.state=O,vr(t,a,u,o),pr(),B=t.memoizedState,y||O!==B||sa?(typeof Y=="function"&&(Io(t,n,Y,a),B=t.memoizedState),(C=sa||Gd(t,n,C,a,O,B,m))?(k||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=B),u.props=a,u.state=B,u.context=m,a=C):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,xo(e,t),m=t.memoizedProps,k=Ga(n,m),u.props=k,Y=t.pendingProps,O=u.context,B=n.contextType,C=vi,typeof B=="object"&&B!==null&&(C=Ct(B)),y=n.getDerivedStateFromProps,(B=typeof y=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(m!==Y||O!==C)&&Qd(t,u,a,C),sa=!1,O=t.memoizedState,u.state=O,vr(t,a,u,o),pr();var q=t.memoizedState;m!==Y||O!==q||sa||e!==null&&e.dependencies!==null&&wl(e.dependencies)?(typeof y=="function"&&(Io(t,n,y,a),q=t.memoizedState),(k=sa||Gd(t,n,k,a,O,q,C)||e!==null&&e.dependencies!==null&&wl(e.dependencies))?(B||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,q,C),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,q,C)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||m===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=q),u.props=a,u.state=q,u.context=C,a=k):(typeof u.componentDidUpdate!="function"||m===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,Hl(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=Ya(t,e.child,null,o),t.child=Ya(t,null,n,o)):Ut(e,t,n,o),t.memoizedState=u.state,e=t.child):e=Fn(e,t,o),e}function oh(e,t,n,a){return ka(),t.flags|=256,Ut(e,t,n,a),t.child}var Jo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Po(e){return{baseLanes:e,cachePool:Pf()}}function $o(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Zt),e}function uh(e,t,n){var a=t.pendingProps,o=!1,u=(t.flags&128)!==0,m;if((m=u)||(m=e!==null&&e.memoizedState===null?!1:(ot.current&2)!==0),m&&(o=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(Oe){if(o?ca(t):fa(),(e=We)?(e=vm(e,ln),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:aa!==null?{id:Cn,overflow:Un}:null,retryLane:536870912,hydrationErrors:null},n=Vf(e),n.return=t,t.child=n,Tt=t,We=null)):e=null,e===null)throw ra(t);return Bu(e)?t.lanes=32:t.lanes=536870912,null}var y=a.children;return a=a.fallback,o?(fa(),o=t.mode,y=Fl({mode:"hidden",children:y},o),a=qa(a,o,n,null),y.return=t,a.return=t,y.sibling=a,t.child=y,a=t.child,a.memoizedState=Po(n),a.childLanes=$o(e,m,n),t.memoizedState=Jo,xr(null,a)):(ca(t),Wo(t,y))}var C=e.memoizedState;if(C!==null&&(y=C.dehydrated,y!==null)){if(u)t.flags&256?(ca(t),t.flags&=-257,t=eu(e,t,n)):t.memoizedState!==null?(fa(),t.child=e.child,t.flags|=128,t=null):(fa(),y=a.fallback,o=t.mode,a=Fl({mode:"visible",children:a.children},o),y=qa(y,o,n,null),y.flags|=2,a.return=t,y.return=t,a.sibling=y,t.child=a,Ya(t,e.child,null,n),a=t.child,a.memoizedState=Po(n),a.childLanes=$o(e,m,n),t.memoizedState=Jo,t=xr(null,a));else if(ca(t),Bu(y)){if(m=y.nextSibling&&y.nextSibling.dataset,m)var B=m.dgst;m=B,a=Error(l(419)),a.stack="",a.digest=m,cr({value:a,source:null,stack:null}),t=eu(e,t,n)}else if(pt||wi(e,t,n,!1),m=(n&e.childLanes)!==0,pt||m){if(m=Ze,m!==null&&(a=bn(m,n),a!==0&&a!==C.retryLane))throw C.retryLane=a,ja(e,a),Vt(m,e,a),Xo;zu(y)||Jl(),t=eu(e,t,n)}else zu(y)?(t.flags|=192,t.child=e.child,t=null):(e=C.treeContext,We=on(y.nextSibling),Tt=t,Oe=!0,ia=null,ln=!1,e!==null&&If(t,e),t=Wo(t,a.children),t.flags|=4096);return t}return o?(fa(),y=a.fallback,o=t.mode,C=e.child,B=C.sibling,a=On(C,{mode:"hidden",children:a.children}),a.subtreeFlags=C.subtreeFlags&65011712,B!==null?y=On(B,y):(y=qa(y,o,n,null),y.flags|=2),y.return=t,a.return=t,a.sibling=y,t.child=a,xr(null,a),a=t.child,y=e.child.memoizedState,y===null?y=Po(n):(o=y.cachePool,o!==null?(C=mt._currentValue,o=o.parent!==C?{parent:C,pool:C}:o):o=Pf(),y={baseLanes:y.baseLanes|n,cachePool:o}),a.memoizedState=y,a.childLanes=$o(e,m,n),t.memoizedState=Jo,xr(e.child,a)):(ca(t),n=e.child,e=n.sibling,n=On(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=n,t.memoizedState=null,n)}function Wo(e,t){return t=Fl({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Fl(e,t){return e=It(22,e,null,t),e.lanes=0,e}function eu(e,t,n){return Ya(t,e.child,null,n),e=Wo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ch(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),go(e.return,t,n)}function tu(e,t,n,a,o,u){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:o,treeForkCount:u}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=a,m.tail=n,m.tailMode=o,m.treeForkCount=u)}function fh(e,t,n){var a=t.pendingProps,o=a.revealOrder,u=a.tail;a=a.children;var m=ot.current,y=(m&2)!==0;if(y?(m=m&1|2,t.flags|=128):m&=1,te(ot,m),Ut(e,t,a,n),a=Oe?ur:0,!y&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ch(e,n,t);else if(e.tag===19)ch(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&_l(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),tu(t,!1,o,n,u,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&_l(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}tu(t,!0,n,null,u,a);break;case"together":tu(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Fn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ma|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(wi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(l(153));if(t.child!==null){for(e=t.child,n=On(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=On(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function nu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&wl(e)))}function lv(e,t,n){switch(t.tag){case 3:$e(t,t.stateNode.containerInfo),la(t,mt,e.memoizedState.cache),ka();break;case 27:case 5:st(t);break;case 4:$e(t,t.stateNode.containerInfo);break;case 10:la(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Uo(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(ca(t),t.flags|=128,null):(n&t.child.childLanes)!==0?uh(e,t,n):(ca(t),e=Fn(e,t,n),e!==null?e.sibling:null);ca(t);break;case 19:var o=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(wi(e,t,n,!1),a=(n&t.childLanes)!==0),o){if(a)return fh(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),te(ot,ot.current),a)break;return null;case 22:return t.lanes=0,ah(e,t,n,t.pendingProps);case 24:la(t,mt,e.memoizedState.cache)}return Fn(e,t,n)}function dh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)pt=!0;else{if(!nu(e,n)&&(t.flags&128)===0)return pt=!1,lv(e,t,n);pt=(e.flags&131072)!==0}else pt=!1,Oe&&(t.flags&1048576)!==0&&Yf(t,ur,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Va(t.elementType),t.type=e,typeof e=="function")lo(e)?(a=Ga(e,a),t.tag=1,t=sh(null,t,e,a,n)):(t.tag=0,t=Zo(null,t,e,a,n));else{if(e!=null){var o=e.$$typeof;if(o===$){t.tag=11,t=eh(null,t,e,a,n);break e}else if(o===W){t.tag=14,t=th(null,t,e,a,n);break e}}throw t=ue(e)||e,Error(l(306,t,""))}}return t;case 0:return Zo(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,o=Ga(a,t.pendingProps),sh(e,t,a,o,n);case 3:e:{if($e(t,t.stateNode.containerInfo),e===null)throw Error(l(387));a=t.pendingProps;var u=t.memoizedState;o=u.element,xo(e,t),vr(t,a,null,n);var m=t.memoizedState;if(a=m.cache,la(t,mt,a),a!==u.cache&&po(t,[mt],n,!0),pr(),a=m.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=oh(e,t,a,n);break e}else if(a!==o){o=nn(Error(l(424)),t),cr(o),t=oh(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(We=on(e.firstChild),Tt=t,Oe=!0,ia=null,ln=!0,n=ad(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(ka(),a===o){t=Fn(e,t,n);break e}Ut(e,t,a,n)}t=t.child}return t;case 26:return Hl(e,t),e===null?(n=Em(t.type,null,t.pendingProps,null))?t.memoizedState=n:Oe||(n=t.type,e=t.pendingProps,a=as(Je.current).createElement(n),a[At]=t,a[jt]=e,Dt(a,n,e),wt(a),t.stateNode=a):t.memoizedState=Em(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return st(t),e===null&&Oe&&(a=t.stateNode=Sm(t.type,t.pendingProps,Je.current),Tt=t,ln=!0,o=We,ba(t.type)?(Ou=o,We=on(a.firstChild)):We=o),Ut(e,t,t.pendingProps.children,n),Hl(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Oe&&((o=a=We)&&(a=jv(a,t.type,t.pendingProps,ln),a!==null?(t.stateNode=a,Tt=t,We=on(a.firstChild),ln=!1,o=!0):o=!1),o||ra(t)),st(t),o=t.type,u=t.pendingProps,m=e!==null?e.memoizedProps:null,a=u.children,Ru(o,u)?a=null:m!==null&&Ru(o,m)&&(t.flags|=32),t.memoizedState!==null&&(o=_o(e,t,Pp,null,null,n),qr._currentValue=o),Hl(e,t),Ut(e,t,a,n),t.child;case 6:return e===null&&Oe&&((e=n=We)&&(n=qv(n,t.pendingProps,ln),n!==null?(t.stateNode=n,Tt=t,We=null,e=!0):e=!1),e||ra(t)),null;case 13:return uh(e,t,n);case 4:return $e(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Ya(t,null,a,n):Ut(e,t,a,n),t.child;case 11:return eh(e,t,t.type,t.pendingProps,n);case 7:return Ut(e,t,t.pendingProps,n),t.child;case 8:return Ut(e,t,t.pendingProps.children,n),t.child;case 12:return Ut(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,la(t,t.type,a.value),Ut(e,t,a.children,n),t.child;case 9:return o=t.type._context,a=t.pendingProps.children,Ha(t),o=Ct(o),a=a(o),t.flags|=1,Ut(e,t,a,n),t.child;case 14:return th(e,t,t.type,t.pendingProps,n);case 15:return nh(e,t,t.type,t.pendingProps,n);case 19:return fh(e,t,n);case 31:return rv(e,t,n);case 22:return ah(e,t,n,t.pendingProps);case 24:return Ha(t),a=Ct(mt),e===null?(o=bo(),o===null&&(o=Ze,u=vo(),o.pooledCache=u,u.refCount++,u!==null&&(o.pooledCacheLanes|=n),o=u),t.memoizedState={parent:a,cache:o},wo(t),la(t,mt,o)):((e.lanes&n)!==0&&(xo(e,t),vr(t,null,null,n),pr()),o=e.memoizedState,u=t.memoizedState,o.parent!==a?(o={parent:a,cache:a},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),la(t,mt,a)):(a=u.cache,la(t,mt,a),a!==o.cache&&po(t,[mt],n,!0))),Ut(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function Vn(e){e.flags|=4}function au(e,t,n,a,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(Lh())e.flags|=8192;else throw Ka=Tl,So}else e.flags&=-16777217}function hh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Dm(t))if(Lh())e.flags|=8192;else throw Ka=Tl,So}function Vl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Xe():536870912,e.lanes|=t,zi|=t)}function Er(e,t){if(!Oe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function et(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags&65011712,a|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags,a|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function sv(e,t,n){var a=t.pendingProps;switch(co(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(t),null;case 1:return et(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),kn(mt),Ke(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Si(t)?Vn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ho())),et(t),null;case 26:var o=t.type,u=t.memoizedState;return e===null?(Vn(t),u!==null?(et(t),hh(t,u)):(et(t),au(t,o,null,a,n))):u?u!==e.memoizedState?(Vn(t),et(t),hh(t,u)):(et(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Vn(t),et(t),au(t,o,e,a,n)),null;case 27:if(xe(t),n=Je.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Vn(t);else{if(!a){if(t.stateNode===null)throw Error(l(166));return et(t),null}e=fe.current,Si(t)?Gf(t):(e=Sm(o,a,n),t.stateNode=e,Vn(t))}return et(t),null;case 5:if(xe(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Vn(t);else{if(!a){if(t.stateNode===null)throw Error(l(166));return et(t),null}if(u=fe.current,Si(t))Gf(t);else{var m=as(Je.current);switch(u){case 1:u=m.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:u=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":u=m.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":u=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":u=m.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?m.createElement("select",{is:a.is}):m.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?m.createElement(o,{is:a.is}):m.createElement(o)}}u[At]=t,u[jt]=a;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)u.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=u;e:switch(Dt(u,o,a),o){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Vn(t)}}return et(t),au(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Vn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(l(166));if(e=Je.current,Si(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,o=Tt,o!==null)switch(o.tag){case 27:case 5:a=o.memoizedProps}e[At]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||um(e.nodeValue,n)),e||ra(t,!0)}else e=as(e).createTextNode(a),e[At]=t,t.stateNode=e}return et(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=Si(t),n!==null){if(e===null){if(!a)throw Error(l(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[At]=t}else ka(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;et(t),e=!1}else n=ho(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Qt(t),t):(Qt(t),null);if((t.flags&128)!==0)throw Error(l(558))}return et(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Si(t),a!==null&&a.dehydrated!==null){if(e===null){if(!o)throw Error(l(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(l(317));o[At]=t}else ka(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;et(t),o=!1}else o=ho(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Qt(t),t):(Qt(t),null)}return Qt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,o=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(o=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==o&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Vl(t,t.updateQueue),et(t),null);case 4:return Ke(),e===null&&Tu(t.stateNode.containerInfo),et(t),null;case 10:return kn(t.type),et(t),null;case 19:if(re(ot),a=t.memoizedState,a===null)return et(t),null;if(o=(t.flags&128)!==0,u=a.rendering,u===null)if(o)Er(a,!1);else{if(lt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=_l(e),u!==null){for(t.flags|=128,Er(a,!1),e=u.updateQueue,t.updateQueue=e,Vl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Ff(n,e),n=n.sibling;return te(ot,ot.current&1|2),Oe&&jn(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&V()>Ql&&(t.flags|=128,o=!0,Er(a,!1),t.lanes=4194304)}else{if(!o)if(e=_l(u),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Vl(t,e),Er(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!Oe)return et(t),null}else 2*V()-a.renderingStartTime>Ql&&n!==536870912&&(t.flags|=128,o=!0,Er(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=V(),e.sibling=null,n=ot.current,te(ot,o?n&1|2:n&1),Oe&&jn(t,a.treeForkCount),e):(et(t),null);case 22:case 23:return Qt(t),Co(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),n=t.updateQueue,n!==null&&Vl(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&re(Fa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),kn(mt),et(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function ov(e,t){switch(co(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return kn(mt),Ke(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return xe(t),null;case 31:if(t.memoizedState!==null){if(Qt(t),t.alternate===null)throw Error(l(340));ka()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Qt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));ka()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return re(ot),null;case 4:return Ke(),null;case 10:return kn(t.type),null;case 22:case 23:return Qt(t),Co(),e!==null&&re(Fa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return kn(mt),null;case 25:return null;default:return null}}function mh(e,t){switch(co(t),t.tag){case 3:kn(mt),Ke();break;case 26:case 27:case 5:xe(t);break;case 4:Ke();break;case 31:t.memoizedState!==null&&Qt(t);break;case 13:Qt(t);break;case 19:re(ot);break;case 10:kn(t.type);break;case 22:case 23:Qt(t),Co(),e!==null&&re(Fa);break;case 24:kn(mt)}}function Ar(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var o=a.next;n=o;do{if((n.tag&e)===e){a=void 0;var u=n.create,m=n.inst;a=u(),m.destroy=a}n=n.next}while(n!==o)}}catch(y){Ve(t,t.return,y)}}function da(e,t,n){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var u=o.next;a=u;do{if((a.tag&e)===e){var m=a.inst,y=m.destroy;if(y!==void 0){m.destroy=void 0,o=t;var C=n,B=y;try{B()}catch(k){Ve(o,C,k)}}}a=a.next}while(a!==u)}}catch(k){Ve(t,t.return,k)}}function gh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{rd(t,n)}catch(a){Ve(e,e.return,a)}}}function ph(e,t,n){n.props=Ga(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Ve(e,t,a)}}function Tr(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(o){Ve(e,t,o)}}function Dn(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(o){Ve(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){Ve(e,t,o)}else n.current=null}function vh(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(o){Ve(e,e.return,o)}}function iu(e,t,n){try{var a=e.stateNode;Rv(a,e.type,n,t),a[jt]=t}catch(o){Ve(e,e.return,o)}}function yh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ba(e.type)||e.tag===4}function ru(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ba(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function lu(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=zn));else if(a!==4&&(a===27&&ba(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(lu(e,t,n),e=e.sibling;e!==null;)lu(e,t,n),e=e.sibling}function Kl(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&ba(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Kl(e,t,n),e=e.sibling;e!==null;)Kl(e,t,n),e=e.sibling}function bh(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);Dt(t,a,n),t[At]=e,t[jt]=n}catch(u){Ve(e,e.return,u)}}var Kn=!1,vt=!1,su=!1,Sh=typeof WeakSet=="function"?WeakSet:Set,xt=null;function uv(e,t){if(e=e.containerInfo,Du=cs,e=Mf(e),Ws(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var o=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var m=0,y=-1,C=-1,B=0,k=0,Y=e,O=null;t:for(;;){for(var q;Y!==n||o!==0&&Y.nodeType!==3||(y=m+o),Y!==u||a!==0&&Y.nodeType!==3||(C=m+a),Y.nodeType===3&&(m+=Y.nodeValue.length),(q=Y.firstChild)!==null;)O=Y,Y=q;for(;;){if(Y===e)break t;if(O===n&&++B===o&&(y=m),O===u&&++k===a&&(C=m),(q=Y.nextSibling)!==null)break;Y=O,O=Y.parentNode}Y=q}n=y===-1||C===-1?null:{start:y,end:C}}else n=null}n=n||{start:0,end:0}}else n=null;for(_u={focusedElem:e,selectionRange:n},cs=!1,xt=t;xt!==null;)if(t=xt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,xt=e;else for(;xt!==null;){switch(t=xt,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)o=e[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,n=t,o=u.memoizedProps,u=u.memoizedState,a=n.stateNode;try{var de=Ga(n.type,o);e=a.getSnapshotBeforeUpdate(de,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(we){Ve(n,n.return,we)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Mu(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Mu(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(l(163))}if(e=t.sibling,e!==null){e.return=t.return,xt=e;break}xt=t.return}}function wh(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:In(e,n),a&4&&Ar(5,n);break;case 1:if(In(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(m){Ve(n,n.return,m)}else{var o=Ga(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){Ve(n,n.return,m)}}a&64&&gh(n),a&512&&Tr(n,n.return);break;case 3:if(In(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{rd(e,t)}catch(m){Ve(n,n.return,m)}}break;case 27:t===null&&a&4&&bh(n);case 26:case 5:In(e,n),t===null&&a&4&&vh(n),a&512&&Tr(n,n.return);break;case 12:In(e,n);break;case 31:In(e,n),a&4&&Ah(e,n);break;case 13:In(e,n),a&4&&Th(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=yv.bind(null,n),kv(e,n))));break;case 22:if(a=n.memoizedState!==null||Kn,!a){t=t!==null&&t.memoizedState!==null||vt,o=Kn;var u=vt;Kn=a,(vt=t)&&!u?Gn(e,n,(n.subtreeFlags&8772)!==0):In(e,n),Kn=o,vt=u}break;case 30:break;default:In(e,n)}}function xh(e){var t=e.alternate;t!==null&&(e.alternate=null,xh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&js(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var nt=null,kt=!1;function Yn(e,t,n){for(n=n.child;n!==null;)Eh(e,t,n),n=n.sibling}function Eh(e,t,n){if(dt&&typeof dt.onCommitFiberUnmount=="function")try{dt.onCommitFiberUnmount(Nn,n)}catch{}switch(n.tag){case 26:vt||Dn(n,t),Yn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:vt||Dn(n,t);var a=nt,o=kt;ba(n.type)&&(nt=n.stateNode,kt=!1),Yn(e,t,n),Br(n.stateNode),nt=a,kt=o;break;case 5:vt||Dn(n,t);case 6:if(a=nt,o=kt,nt=null,Yn(e,t,n),nt=a,kt=o,nt!==null)if(kt)try{(nt.nodeType===9?nt.body:nt.nodeName==="HTML"?nt.ownerDocument.body:nt).removeChild(n.stateNode)}catch(u){Ve(n,t,u)}else try{nt.removeChild(n.stateNode)}catch(u){Ve(n,t,u)}break;case 18:nt!==null&&(kt?(e=nt,gm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Fi(e)):gm(nt,n.stateNode));break;case 4:a=nt,o=kt,nt=n.stateNode.containerInfo,kt=!0,Yn(e,t,n),nt=a,kt=o;break;case 0:case 11:case 14:case 15:da(2,n,t),vt||da(4,n,t),Yn(e,t,n);break;case 1:vt||(Dn(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&ph(n,t,a)),Yn(e,t,n);break;case 21:Yn(e,t,n);break;case 22:vt=(a=vt)||n.memoizedState!==null,Yn(e,t,n),vt=a;break;default:Yn(e,t,n)}}function Ah(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Fi(e)}catch(n){Ve(t,t.return,n)}}}function Th(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Fi(e)}catch(n){Ve(t,t.return,n)}}function cv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Sh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Sh),t;default:throw Error(l(435,e.tag))}}function Yl(e,t){var n=cv(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var o=bv.bind(null,e,a);a.then(o,o)}})}function Lt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var o=n[a],u=e,m=t,y=m;e:for(;y!==null;){switch(y.tag){case 27:if(ba(y.type)){nt=y.stateNode,kt=!1;break e}break;case 5:nt=y.stateNode,kt=!1;break e;case 3:case 4:nt=y.stateNode.containerInfo,kt=!0;break e}y=y.return}if(nt===null)throw Error(l(160));Eh(u,m,o),nt=null,kt=!1,u=o.alternate,u!==null&&(u.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ch(t,e),t=t.sibling}var wn=null;function Ch(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Lt(t,e),Ht(e),a&4&&(da(3,e,e.return),Ar(3,e),da(5,e,e.return));break;case 1:Lt(t,e),Ht(e),a&512&&(vt||n===null||Dn(n,n.return)),a&64&&Kn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var o=wn;if(Lt(t,e),Ht(e),a&512&&(vt||n===null||Dn(n,n.return)),a&4){var u=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(a){case"title":u=o.getElementsByTagName("title")[0],(!u||u[$i]||u[At]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=o.createElement(a),o.head.insertBefore(u,o.querySelector("head > title"))),Dt(u,a,n),u[At]=e,wt(u),a=u;break e;case"link":var m=Cm("link","href",o).get(a+(n.href||""));if(m){for(var y=0;y<m.length;y++)if(u=m[y],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){m.splice(y,1);break t}}u=o.createElement(a),Dt(u,a,n),o.head.appendChild(u);break;case"meta":if(m=Cm("meta","content",o).get(a+(n.content||""))){for(y=0;y<m.length;y++)if(u=m[y],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){m.splice(y,1);break t}}u=o.createElement(a),Dt(u,a,n),o.head.appendChild(u);break;default:throw Error(l(468,a))}u[At]=e,wt(u),a=u}e.stateNode=a}else Um(o,e.type,e.stateNode);else e.stateNode=Tm(o,a,e.memoizedProps);else u!==a?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,a===null?Um(o,e.type,e.stateNode):Tm(o,a,e.memoizedProps)):a===null&&e.stateNode!==null&&iu(e,e.memoizedProps,n.memoizedProps)}break;case 27:Lt(t,e),Ht(e),a&512&&(vt||n===null||Dn(n,n.return)),n!==null&&a&4&&iu(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Lt(t,e),Ht(e),a&512&&(vt||n===null||Dn(n,n.return)),e.flags&32){o=e.stateNode;try{ci(o,"")}catch(de){Ve(e,e.return,de)}}a&4&&e.stateNode!=null&&(o=e.memoizedProps,iu(e,o,n!==null?n.memoizedProps:o)),a&1024&&(su=!0);break;case 6:if(Lt(t,e),Ht(e),a&4){if(e.stateNode===null)throw Error(l(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(de){Ve(e,e.return,de)}}break;case 3:if(ls=null,o=wn,wn=is(t.containerInfo),Lt(t,e),wn=o,Ht(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Fi(t.containerInfo)}catch(de){Ve(e,e.return,de)}su&&(su=!1,Uh(e));break;case 4:a=wn,wn=is(e.stateNode.containerInfo),Lt(t,e),Ht(e),wn=a;break;case 12:Lt(t,e),Ht(e);break;case 31:Lt(t,e),Ht(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Yl(e,a)));break;case 13:Lt(t,e),Ht(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Gl=V()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Yl(e,a)));break;case 22:o=e.memoizedState!==null;var C=n!==null&&n.memoizedState!==null,B=Kn,k=vt;if(Kn=B||o,vt=k||C,Lt(t,e),vt=k,Kn=B,Ht(e),a&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||C||Kn||vt||Qa(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){C=n=t;try{if(u=C.stateNode,o)m=u.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{y=C.stateNode;var Y=C.memoizedProps.style,O=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;y.style.display=O==null||typeof O=="boolean"?"":(""+O).trim()}}catch(de){Ve(C,C.return,de)}}}else if(t.tag===6){if(n===null){C=t;try{C.stateNode.nodeValue=o?"":C.memoizedProps}catch(de){Ve(C,C.return,de)}}}else if(t.tag===18){if(n===null){C=t;try{var q=C.stateNode;o?pm(q,!0):pm(C.stateNode,!1)}catch(de){Ve(C,C.return,de)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Yl(e,n))));break;case 19:Lt(t,e),Ht(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Yl(e,a)));break;case 30:break;case 21:break;default:Lt(t,e),Ht(e)}}function Ht(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(yh(a)){n=a;break}a=a.return}if(n==null)throw Error(l(160));switch(n.tag){case 27:var o=n.stateNode,u=ru(e);Kl(e,u,o);break;case 5:var m=n.stateNode;n.flags&32&&(ci(m,""),n.flags&=-33);var y=ru(e);Kl(e,y,m);break;case 3:case 4:var C=n.stateNode.containerInfo,B=ru(e);lu(e,B,C);break;default:throw Error(l(161))}}catch(k){Ve(e,e.return,k)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Uh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Uh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function In(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)wh(e,t.alternate,t),t=t.sibling}function Qa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:da(4,t,t.return),Qa(t);break;case 1:Dn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&ph(t,t.return,n),Qa(t);break;case 27:Br(t.stateNode);case 26:case 5:Dn(t,t.return),Qa(t);break;case 22:t.memoizedState===null&&Qa(t);break;case 30:Qa(t);break;default:Qa(t)}e=e.sibling}}function Gn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,o=e,u=t,m=u.flags;switch(u.tag){case 0:case 11:case 15:Gn(o,u,n),Ar(4,u);break;case 1:if(Gn(o,u,n),a=u,o=a.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(B){Ve(a,a.return,B)}if(a=u,o=a.updateQueue,o!==null){var y=a.stateNode;try{var C=o.shared.hiddenCallbacks;if(C!==null)for(o.shared.hiddenCallbacks=null,o=0;o<C.length;o++)id(C[o],y)}catch(B){Ve(a,a.return,B)}}n&&m&64&&gh(u),Tr(u,u.return);break;case 27:bh(u);case 26:case 5:Gn(o,u,n),n&&a===null&&m&4&&vh(u),Tr(u,u.return);break;case 12:Gn(o,u,n);break;case 31:Gn(o,u,n),n&&m&4&&Ah(o,u);break;case 13:Gn(o,u,n),n&&m&4&&Th(o,u);break;case 22:u.memoizedState===null&&Gn(o,u,n),Tr(u,u.return);break;case 30:break;default:Gn(o,u,n)}t=t.sibling}}function ou(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&fr(n))}function uu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fr(e))}function xn(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Dh(e,t,n,a),t=t.sibling}function Dh(e,t,n,a){var o=t.flags;switch(t.tag){case 0:case 11:case 15:xn(e,t,n,a),o&2048&&Ar(9,t);break;case 1:xn(e,t,n,a);break;case 3:xn(e,t,n,a),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fr(e)));break;case 12:if(o&2048){xn(e,t,n,a),e=t.stateNode;try{var u=t.memoizedProps,m=u.id,y=u.onPostCommit;typeof y=="function"&&y(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(C){Ve(t,t.return,C)}}else xn(e,t,n,a);break;case 31:xn(e,t,n,a);break;case 13:xn(e,t,n,a);break;case 23:break;case 22:u=t.stateNode,m=t.alternate,t.memoizedState!==null?u._visibility&2?xn(e,t,n,a):Cr(e,t):u._visibility&2?xn(e,t,n,a):(u._visibility|=2,Ri(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),o&2048&&ou(m,t);break;case 24:xn(e,t,n,a),o&2048&&uu(t.alternate,t);break;default:xn(e,t,n,a)}}function Ri(e,t,n,a,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,m=t,y=n,C=a,B=m.flags;switch(m.tag){case 0:case 11:case 15:Ri(u,m,y,C,o),Ar(8,m);break;case 23:break;case 22:var k=m.stateNode;m.memoizedState!==null?k._visibility&2?Ri(u,m,y,C,o):Cr(u,m):(k._visibility|=2,Ri(u,m,y,C,o)),o&&B&2048&&ou(m.alternate,m);break;case 24:Ri(u,m,y,C,o),o&&B&2048&&uu(m.alternate,m);break;default:Ri(u,m,y,C,o)}t=t.sibling}}function Cr(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,o=a.flags;switch(a.tag){case 22:Cr(n,a),o&2048&&ou(a.alternate,a);break;case 24:Cr(n,a),o&2048&&uu(a.alternate,a);break;default:Cr(n,a)}t=t.sibling}}var Ur=8192;function Ni(e,t,n){if(e.subtreeFlags&Ur)for(e=e.child;e!==null;)_h(e,t,n),e=e.sibling}function _h(e,t,n){switch(e.tag){case 26:Ni(e,t,n),e.flags&Ur&&e.memoizedState!==null&&Jv(n,wn,e.memoizedState,e.memoizedProps);break;case 5:Ni(e,t,n);break;case 3:case 4:var a=wn;wn=is(e.stateNode.containerInfo),Ni(e,t,n),wn=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Ur,Ur=16777216,Ni(e,t,n),Ur=a):Ni(e,t,n));break;default:Ni(e,t,n)}}function Rh(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Dr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];xt=a,Mh(a,e)}Rh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Nh(e),e=e.sibling}function Nh(e){switch(e.tag){case 0:case 11:case 15:Dr(e),e.flags&2048&&da(9,e,e.return);break;case 3:Dr(e);break;case 12:Dr(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Il(e)):Dr(e);break;default:Dr(e)}}function Il(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];xt=a,Mh(a,e)}Rh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:da(8,t,t.return),Il(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Il(t));break;default:Il(t)}e=e.sibling}}function Mh(e,t){for(;xt!==null;){var n=xt;switch(n.tag){case 0:case 11:case 15:da(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:fr(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,xt=a;else e:for(n=e;xt!==null;){a=xt;var o=a.sibling,u=a.return;if(xh(a),a===n){xt=null;break e}if(o!==null){o.return=u,xt=o;break e}xt=u}}}var fv={getCacheForType:function(e){var t=Ct(mt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ct(mt).controller.signal}},dv=typeof WeakMap=="function"?WeakMap:Map,Le=0,Ze=null,Ne=null,ze=0,Fe=0,Xt=null,ha=!1,Mi=!1,cu=!1,Qn=0,lt=0,ma=0,Xa=0,fu=0,Zt=0,zi=0,_r=null,Ft=null,du=!1,Gl=0,zh=0,Ql=1/0,Xl=null,ga=null,yt=0,pa=null,Bi=null,Xn=0,hu=0,mu=null,Bh=null,Rr=0,gu=null;function Jt(){return(Le&2)!==0&&ze!==0?ze&-ze:j.T!==null?wu():Zc()}function Oh(){if(Zt===0)if((ze&536870912)===0||Oe){var e=ni;ni<<=1,(ni&3932160)===0&&(ni=262144),Zt=e}else Zt=536870912;return e=Gt.current,e!==null&&(e.flags|=32),Zt}function Vt(e,t,n){(e===Ze&&(Fe===2||Fe===9)||e.cancelPendingCommit!==null)&&(Oi(e,0),va(e,ze,Zt,!1)),Et(e,n),((Le&2)===0||e!==Ze)&&(e===Ze&&((Le&2)===0&&(Xa|=n),lt===4&&va(e,ze,Zt,!1)),_n(e))}function jh(e,t,n){if((Le&6)!==0)throw Error(l(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Ee(e,t),o=a?gv(e,t):vu(e,t,!0),u=a;do{if(o===0){Mi&&!a&&va(e,t,0,!1);break}else{if(n=e.current.alternate,u&&!hv(n)){o=vu(e,t,!1),u=!1;continue}if(o===2){if(u=t,e.errorRecoveryDisabledLanes&u)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var y=e;o=_r;var C=y.current.memoizedState.isDehydrated;if(C&&(Oi(y,m).flags|=256),m=vu(y,m,!1),m!==2){if(cu&&!C){y.errorRecoveryDisabledLanes|=u,Xa|=u,o=4;break e}u=Ft,Ft=o,u!==null&&(Ft===null?Ft=u:Ft.push.apply(Ft,u))}o=m}if(u=!1,o!==2)continue}}if(o===1){Oi(e,0),va(e,t,0,!0);break}e:{switch(a=e,u=o,u){case 0:case 1:throw Error(l(345));case 4:if((t&4194048)!==t)break;case 6:va(a,t,Zt,!ha);break e;case 2:Ft=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(o=Gl+300-V(),10<o)){if(va(a,t,Zt,!ha),ai(a,0,!0)!==0)break e;Xn=t,a.timeoutHandle=hm(qh.bind(null,a,n,Ft,Xl,du,t,Zt,Xa,zi,ha,u,"Throttled",-0,0),o);break e}qh(a,n,Ft,Xl,du,t,Zt,Xa,zi,ha,u,null,-0,0)}}break}while(!0);_n(e)}function qh(e,t,n,a,o,u,m,y,C,B,k,Y,O,q){if(e.timeoutHandle=-1,Y=t.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:zn},_h(t,u,Y);var de=(u&62914560)===u?Gl-V():(u&4194048)===u?zh-V():0;if(de=Pv(Y,de),de!==null){Xn=u,e.cancelPendingCommit=de(Ih.bind(null,e,t,u,n,a,o,m,y,C,k,Y,null,O,q)),va(e,u,m,!B);return}}Ih(e,t,u,n,a,o,m,y,C)}function hv(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var o=n[a],u=o.getSnapshot;o=o.value;try{if(!Yt(u(),o))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function va(e,t,n,a){t&=~fu,t&=~Xa,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var o=t;0<o;){var u=31-ht(o),m=1<<u;a[u]=-1,o&=~m}n!==0&&Tn(e,n,t)}function Zl(){return(Le&6)===0?(Nr(0),!1):!0}function pu(){if(Ne!==null){if(Fe===0)var e=Ne.return;else e=Ne,qn=La=null,Mo(e),Ti=null,hr=0,e=Ne;for(;e!==null;)mh(e.alternate,e),e=e.return;Ne=null}}function Oi(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,zv(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Xn=0,pu(),Ze=e,Ne=n=On(e.current,null),ze=t,Fe=0,Xt=null,ha=!1,Mi=Ee(e,t),cu=!1,zi=Zt=fu=Xa=ma=lt=0,Ft=_r=null,du=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var o=31-ht(a),u=1<<o;t|=e[o],a&=~u}return Qn=t,pl(),n}function kh(e,t){Ce=null,j.H=wr,t===Ai||t===Al?(t=ed(),Fe=3):t===So?(t=ed(),Fe=4):Fe=t===Xo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Xt=t,Ne===null&&(lt=1,kl(e,nn(t,e.current)))}function Lh(){var e=Gt.current;return e===null?!0:(ze&4194048)===ze?sn===null:(ze&62914560)===ze||(ze&536870912)!==0?e===sn:!1}function Hh(){var e=j.H;return j.H=wr,e===null?wr:e}function Fh(){var e=j.A;return j.A=fv,e}function Jl(){lt=4,ha||(ze&4194048)!==ze&&Gt.current!==null||(Mi=!0),(ma&134217727)===0&&(Xa&134217727)===0||Ze===null||va(Ze,ze,Zt,!1)}function vu(e,t,n){var a=Le;Le|=2;var o=Hh(),u=Fh();(Ze!==e||ze!==t)&&(Xl=null,Oi(e,t)),t=!1;var m=lt;e:do try{if(Fe!==0&&Ne!==null){var y=Ne,C=Xt;switch(Fe){case 8:pu(),m=6;break e;case 3:case 2:case 9:case 6:Gt.current===null&&(t=!0);var B=Fe;if(Fe=0,Xt=null,ji(e,y,C,B),n&&Mi){m=0;break e}break;default:B=Fe,Fe=0,Xt=null,ji(e,y,C,B)}}mv(),m=lt;break}catch(k){kh(e,k)}while(!0);return t&&e.shellSuspendCounter++,qn=La=null,Le=a,j.H=o,j.A=u,Ne===null&&(Ze=null,ze=0,pl()),m}function mv(){for(;Ne!==null;)Vh(Ne)}function gv(e,t){var n=Le;Le|=2;var a=Hh(),o=Fh();Ze!==e||ze!==t?(Xl=null,Ql=V()+500,Oi(e,t)):Mi=Ee(e,t);e:do try{if(Fe!==0&&Ne!==null){t=Ne;var u=Xt;t:switch(Fe){case 1:Fe=0,Xt=null,ji(e,t,u,1);break;case 2:case 9:if($f(u)){Fe=0,Xt=null,Kh(t);break}t=function(){Fe!==2&&Fe!==9||Ze!==e||(Fe=7),_n(e)},u.then(t,t);break e;case 3:Fe=7;break e;case 4:Fe=5;break e;case 7:$f(u)?(Fe=0,Xt=null,Kh(t)):(Fe=0,Xt=null,ji(e,t,u,7));break;case 5:var m=null;switch(Ne.tag){case 26:m=Ne.memoizedState;case 5:case 27:var y=Ne;if(m?Dm(m):y.stateNode.complete){Fe=0,Xt=null;var C=y.sibling;if(C!==null)Ne=C;else{var B=y.return;B!==null?(Ne=B,Pl(B)):Ne=null}break t}}Fe=0,Xt=null,ji(e,t,u,5);break;case 6:Fe=0,Xt=null,ji(e,t,u,6);break;case 8:pu(),lt=6;break e;default:throw Error(l(462))}}pv();break}catch(k){kh(e,k)}while(!0);return qn=La=null,j.H=a,j.A=o,Le=n,Ne!==null?0:(Ze=null,ze=0,pl(),lt)}function pv(){for(;Ne!==null&&!M();)Vh(Ne)}function Vh(e){var t=dh(e.alternate,e,Qn);e.memoizedProps=e.pendingProps,t===null?Pl(e):Ne=t}function Kh(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=lh(n,t,t.pendingProps,t.type,void 0,ze);break;case 11:t=lh(n,t,t.pendingProps,t.type.render,t.ref,ze);break;case 5:Mo(t);default:mh(n,t),t=Ne=Ff(t,Qn),t=dh(n,t,Qn)}e.memoizedProps=e.pendingProps,t===null?Pl(e):Ne=t}function ji(e,t,n,a){qn=La=null,Mo(t),Ti=null,hr=0;var o=t.return;try{if(iv(e,o,t,n,ze)){lt=1,kl(e,nn(n,e.current)),Ne=null;return}}catch(u){if(o!==null)throw Ne=o,u;lt=1,kl(e,nn(n,e.current)),Ne=null;return}t.flags&32768?(Oe||a===1?e=!0:Mi||(ze&536870912)!==0?e=!1:(ha=e=!0,(a===2||a===9||a===3||a===6)&&(a=Gt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Yh(t,e)):Pl(t)}function Pl(e){var t=e;do{if((t.flags&32768)!==0){Yh(t,ha);return}e=t.return;var n=sv(t.alternate,t,Qn);if(n!==null){Ne=n;return}if(t=t.sibling,t!==null){Ne=t;return}Ne=t=e}while(t!==null);lt===0&&(lt=5)}function Yh(e,t){do{var n=ov(e.alternate,e);if(n!==null){n.flags&=32767,Ne=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ne=e;return}Ne=e=n}while(e!==null);lt=6,Ne=null}function Ih(e,t,n,a,o,u,m,y,C){e.cancelPendingCommit=null;do $l();while(yt!==0);if((Le&6)!==0)throw Error(l(327));if(t!==null){if(t===e.current)throw Error(l(177));if(u=t.lanes|t.childLanes,u|=io,An(e,n,u,m,y,C),e===Ze&&(Ne=Ze=null,ze=0),Bi=t,pa=e,Xn=n,hu=u,mu=o,Bh=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Sv(it,function(){return Jh(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=j.T,j.T=null,o=Q.p,Q.p=2,m=Le,Le|=4;try{uv(e,t,n)}finally{Le=m,Q.p=o,j.T=a}}yt=1,Gh(),Qh(),Xh()}}function Gh(){if(yt===1){yt=0;var e=pa,t=Bi,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=j.T,j.T=null;var a=Q.p;Q.p=2;var o=Le;Le|=4;try{Ch(t,e);var u=_u,m=Mf(e.containerInfo),y=u.focusedElem,C=u.selectionRange;if(m!==y&&y&&y.ownerDocument&&Nf(y.ownerDocument.documentElement,y)){if(C!==null&&Ws(y)){var B=C.start,k=C.end;if(k===void 0&&(k=B),"selectionStart"in y)y.selectionStart=B,y.selectionEnd=Math.min(k,y.value.length);else{var Y=y.ownerDocument||document,O=Y&&Y.defaultView||window;if(O.getSelection){var q=O.getSelection(),de=y.textContent.length,we=Math.min(C.start,de),Qe=C.end===void 0?we:Math.min(C.end,de);!q.extend&&we>Qe&&(m=Qe,Qe=we,we=m);var R=Rf(y,we),D=Rf(y,Qe);if(R&&D&&(q.rangeCount!==1||q.anchorNode!==R.node||q.anchorOffset!==R.offset||q.focusNode!==D.node||q.focusOffset!==D.offset)){var z=Y.createRange();z.setStart(R.node,R.offset),q.removeAllRanges(),we>Qe?(q.addRange(z),q.extend(D.node,D.offset)):(z.setEnd(D.node,D.offset),q.addRange(z))}}}}for(Y=[],q=y;q=q.parentNode;)q.nodeType===1&&Y.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<Y.length;y++){var H=Y[y];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}cs=!!Du,_u=Du=null}finally{Le=o,Q.p=a,j.T=n}}e.current=t,yt=2}}function Qh(){if(yt===2){yt=0;var e=pa,t=Bi,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=j.T,j.T=null;var a=Q.p;Q.p=2;var o=Le;Le|=4;try{wh(e,t.alternate,t)}finally{Le=o,Q.p=a,j.T=n}}yt=3}}function Xh(){if(yt===4||yt===3){yt=0,F();var e=pa,t=Bi,n=Xn,a=Bh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?yt=5:(yt=0,Bi=pa=null,Zh(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(ga=null),Bs(n),t=t.stateNode,dt&&typeof dt.onCommitFiberRoot=="function")try{dt.onCommitFiberRoot(Nn,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=j.T,o=Q.p,Q.p=2,j.T=null;try{for(var u=e.onRecoverableError,m=0;m<a.length;m++){var y=a[m];u(y.value,{componentStack:y.stack})}}finally{j.T=t,Q.p=o}}(Xn&3)!==0&&$l(),_n(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===gu?Rr++:(Rr=0,gu=e):Rr=0,Nr(0)}}function Zh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,fr(t)))}function $l(){return Gh(),Qh(),Xh(),Jh()}function Jh(){if(yt!==5)return!1;var e=pa,t=hu;hu=0;var n=Bs(Xn),a=j.T,o=Q.p;try{Q.p=32>n?32:n,j.T=null,n=mu,mu=null;var u=pa,m=Xn;if(yt=0,Bi=pa=null,Xn=0,(Le&6)!==0)throw Error(l(331));var y=Le;if(Le|=4,Nh(u.current),Dh(u,u.current,m,n),Le=y,Nr(0,!1),dt&&typeof dt.onPostCommitFiberRoot=="function")try{dt.onPostCommitFiberRoot(Nn,u)}catch{}return!0}finally{Q.p=o,j.T=a,Zh(e,t)}}function Ph(e,t,n){t=nn(n,t),t=Qo(e.stateNode,t,2),e=ua(e,t,2),e!==null&&(Et(e,2),_n(e))}function Ve(e,t,n){if(e.tag===3)Ph(e,e,n);else for(;t!==null;){if(t.tag===3){Ph(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ga===null||!ga.has(a))){e=nn(n,e),n=$d(2),a=ua(t,n,2),a!==null&&(Wd(n,a,t,e),Et(a,2),_n(a));break}}t=t.return}}function yu(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new dv;var o=new Set;a.set(t,o)}else o=a.get(t),o===void 0&&(o=new Set,a.set(t,o));o.has(n)||(cu=!0,o.add(n),e=vv.bind(null,e,t,n),t.then(e,e))}function vv(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ze===e&&(ze&n)===n&&(lt===4||lt===3&&(ze&62914560)===ze&&300>V()-Gl?(Le&2)===0&&Oi(e,0):fu|=n,zi===ze&&(zi=0)),_n(e)}function $h(e,t){t===0&&(t=Xe()),e=ja(e,t),e!==null&&(Et(e,t),_n(e))}function yv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$h(e,n)}function bv(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(l(314))}a!==null&&a.delete(t),$h(e,n)}function Sv(e,t){return p(e,t)}var Wl=null,qi=null,bu=!1,es=!1,Su=!1,ya=0;function _n(e){e!==qi&&e.next===null&&(qi===null?Wl=qi=e:qi=qi.next=e),es=!0,bu||(bu=!0,xv())}function Nr(e,t){if(!Su&&es){Su=!0;do for(var n=!1,a=Wl;a!==null;){if(e!==0){var o=a.pendingLanes;if(o===0)var u=0;else{var m=a.suspendedLanes,y=a.pingedLanes;u=(1<<31-ht(42|e)+1)-1,u&=o&~(m&~y),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,nm(a,u))}else u=ze,u=ai(a,a===Ze?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Ee(a,u)||(n=!0,nm(a,u));a=a.next}while(n);Su=!1}}function wv(){Wh()}function Wh(){es=bu=!1;var e=0;ya!==0&&Mv()&&(e=ya);for(var t=V(),n=null,a=Wl;a!==null;){var o=a.next,u=em(a,t);u===0?(a.next=null,n===null?Wl=o:n.next=o,o===null&&(qi=n)):(n=a,(e!==0||(u&3)!==0)&&(es=!0)),a=o}yt!==0&&yt!==5||Nr(e),ya!==0&&(ya=0)}function em(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var m=31-ht(u),y=1<<m,C=o[m];C===-1?((y&n)===0||(y&a)!==0)&&(o[m]=He(y,t)):C<=t&&(e.expiredLanes|=y),u&=~y}if(t=Ze,n=ze,n=ai(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(Fe===2||Fe===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&E(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Ee(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&E(a),Bs(n)){case 2:case 8:n=je;break;case 32:n=it;break;case 268435456:n=$t;break;default:n=it}return a=tm.bind(null,e),n=p(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&E(a),e.callbackPriority=2,e.callbackNode=null,2}function tm(e,t){if(yt!==0&&yt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if($l()&&e.callbackNode!==n)return null;var a=ze;return a=ai(e,e===Ze?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(jh(e,a,t),em(e,V()),e.callbackNode!=null&&e.callbackNode===n?tm.bind(null,e):null)}function nm(e,t){if($l())return null;jh(e,t,!0)}function xv(){Bv(function(){(Le&6)!==0?p(Te,wv):Wh()})}function wu(){if(ya===0){var e=xi;e===0&&(e=Na,Na<<=1,(Na&261888)===0&&(Na=256)),ya=e}return ya}function am(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ol(""+e)}function im(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Ev(e,t,n,a,o){if(t==="submit"&&n&&n.stateNode===o){var u=am((o[jt]||null).action),m=a.submitter;m&&(t=(t=m[jt]||null)?am(t.formAction):m.getAttribute("formAction"),t!==null&&(u=t,m=null));var y=new dl("action","action",null,a,o);e.push({event:y,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(ya!==0){var C=m?im(o,m):new FormData(o);Fo(n,{pending:!0,data:C,method:o.method,action:u},null,C)}}else typeof u=="function"&&(y.preventDefault(),C=m?im(o,m):new FormData(o),Fo(n,{pending:!0,data:C,method:o.method,action:u},u,C))},currentTarget:o}]})}}for(var xu=0;xu<ao.length;xu++){var Eu=ao[xu],Av=Eu.toLowerCase(),Tv=Eu[0].toUpperCase()+Eu.slice(1);Sn(Av,"on"+Tv)}Sn(Of,"onAnimationEnd"),Sn(jf,"onAnimationIteration"),Sn(qf,"onAnimationStart"),Sn("dblclick","onDoubleClick"),Sn("focusin","onFocus"),Sn("focusout","onBlur"),Sn(Fp,"onTransitionRun"),Sn(Vp,"onTransitionStart"),Sn(Kp,"onTransitionCancel"),Sn(kf,"onTransitionEnd"),oi("onMouseEnter",["mouseout","mouseover"]),oi("onMouseLeave",["mouseout","mouseover"]),oi("onPointerEnter",["pointerout","pointerover"]),oi("onPointerLeave",["pointerout","pointerover"]),Ma("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ma("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ma("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ma("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ma("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ma("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Cv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Mr));function rm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],o=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var m=a.length-1;0<=m;m--){var y=a[m],C=y.instance,B=y.currentTarget;if(y=y.listener,C!==u&&o.isPropagationStopped())break e;u=y,o.currentTarget=B;try{u(o)}catch(k){gl(k)}o.currentTarget=null,u=C}else for(m=0;m<a.length;m++){if(y=a[m],C=y.instance,B=y.currentTarget,y=y.listener,C!==u&&o.isPropagationStopped())break e;u=y,o.currentTarget=B;try{u(o)}catch(k){gl(k)}o.currentTarget=null,u=C}}}}function Me(e,t){var n=t[Os];n===void 0&&(n=t[Os]=new Set);var a=e+"__bubble";n.has(a)||(lm(t,e,2,!1),n.add(a))}function Au(e,t,n){var a=0;t&&(a|=4),lm(n,e,a,t)}var ts="_reactListening"+Math.random().toString(36).slice(2);function Tu(e){if(!e[ts]){e[ts]=!0,$c.forEach(function(n){n!=="selectionchange"&&(Cv.has(n)||Au(n,!1,e),Au(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ts]||(t[ts]=!0,Au("selectionchange",!1,t))}}function lm(e,t,n,a){switch(Om(t)){case 2:var o=ey;break;case 8:o=ty;break;default:o=Hu}n=o.bind(null,t,n,e),o=void 0,!Ys||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),a?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Cu(e,t,n,a,o){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var m=a.tag;if(m===3||m===4){var y=a.stateNode.containerInfo;if(y===o)break;if(m===4)for(m=a.return;m!==null;){var C=m.tag;if((C===3||C===4)&&m.stateNode.containerInfo===o)return;m=m.return}for(;y!==null;){if(m=ri(y),m===null)return;if(C=m.tag,C===5||C===6||C===26||C===27){a=u=m;continue e}y=y.parentNode}}a=a.return}ff(function(){var B=u,k=Vs(n),Y=[];e:{var O=Lf.get(e);if(O!==void 0){var q=dl,de=e;switch(e){case"keypress":if(cl(n)===0)break e;case"keydown":case"keyup":q=bp;break;case"focusin":de="focus",q=Xs;break;case"focusout":de="blur",q=Xs;break;case"beforeblur":case"afterblur":q=Xs;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q=mf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=sp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=xp;break;case Of:case jf:case qf:q=cp;break;case kf:q=Ap;break;case"scroll":case"scrollend":q=rp;break;case"wheel":q=Cp;break;case"copy":case"cut":case"paste":q=dp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=pf;break;case"toggle":case"beforetoggle":q=Dp}var we=(t&4)!==0,Qe=!we&&(e==="scroll"||e==="scrollend"),R=we?O!==null?O+"Capture":null:O;we=[];for(var D=B,z;D!==null;){var H=D;if(z=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||z===null||R===null||(H=er(D,R),H!=null&&we.push(zr(D,H,z))),Qe)break;D=D.return}0<we.length&&(O=new q(O,de,null,n,k),Y.push({event:O,listeners:we}))}}if((t&7)===0){e:{if(O=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",O&&n!==Fs&&(de=n.relatedTarget||n.fromElement)&&(ri(de)||de[ii]))break e;if((q||O)&&(O=k.window===k?k:(O=k.ownerDocument)?O.defaultView||O.parentWindow:window,q?(de=n.relatedTarget||n.toElement,q=B,de=de?ri(de):null,de!==null&&(Qe=f(de),we=de.tag,de!==Qe||we!==5&&we!==27&&we!==6)&&(de=null)):(q=null,de=B),q!==de)){if(we=mf,H="onMouseLeave",R="onMouseEnter",D="mouse",(e==="pointerout"||e==="pointerover")&&(we=pf,H="onPointerLeave",R="onPointerEnter",D="pointer"),Qe=q==null?O:Wi(q),z=de==null?O:Wi(de),O=new we(H,D+"leave",q,n,k),O.target=Qe,O.relatedTarget=z,H=null,ri(k)===B&&(we=new we(R,D+"enter",de,n,k),we.target=z,we.relatedTarget=Qe,H=we),Qe=H,q&&de)t:{for(we=Uv,R=q,D=de,z=0,H=R;H;H=we(H))z++;H=0;for(var ye=D;ye;ye=we(ye))H++;for(;0<z-H;)R=we(R),z--;for(;0<H-z;)D=we(D),H--;for(;z--;){if(R===D||D!==null&&R===D.alternate){we=R;break t}R=we(R),D=we(D)}we=null}else we=null;q!==null&&sm(Y,O,q,we,!1),de!==null&&Qe!==null&&sm(Y,Qe,de,we,!0)}}e:{if(O=B?Wi(B):window,q=O.nodeName&&O.nodeName.toLowerCase(),q==="select"||q==="input"&&O.type==="file")var qe=Af;else if(xf(O))if(Tf)qe=kp;else{qe=jp;var ve=Op}else q=O.nodeName,!q||q.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?B&&Hs(B.elementType)&&(qe=Af):qe=qp;if(qe&&(qe=qe(e,B))){Ef(Y,qe,n,k);break e}ve&&ve(e,O,B),e==="focusout"&&B&&O.type==="number"&&B.memoizedProps.value!=null&&Ls(O,"number",O.value)}switch(ve=B?Wi(B):window,e){case"focusin":(xf(ve)||ve.contentEditable==="true")&&(mi=ve,eo=B,or=null);break;case"focusout":or=eo=mi=null;break;case"mousedown":to=!0;break;case"contextmenu":case"mouseup":case"dragend":to=!1,zf(Y,n,k);break;case"selectionchange":if(Hp)break;case"keydown":case"keyup":zf(Y,n,k)}var Ue;if(Js)e:{switch(e){case"compositionstart":var Be="onCompositionStart";break e;case"compositionend":Be="onCompositionEnd";break e;case"compositionupdate":Be="onCompositionUpdate";break e}Be=void 0}else hi?Sf(e,n)&&(Be="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Be="onCompositionStart");Be&&(vf&&n.locale!=="ko"&&(hi||Be!=="onCompositionStart"?Be==="onCompositionEnd"&&hi&&(Ue=df()):(na=k,Is="value"in na?na.value:na.textContent,hi=!0)),ve=ns(B,Be),0<ve.length&&(Be=new gf(Be,e,null,n,k),Y.push({event:Be,listeners:ve}),Ue?Be.data=Ue:(Ue=wf(n),Ue!==null&&(Be.data=Ue)))),(Ue=Rp?Np(e,n):Mp(e,n))&&(Be=ns(B,"onBeforeInput"),0<Be.length&&(ve=new gf("onBeforeInput","beforeinput",null,n,k),Y.push({event:ve,listeners:Be}),ve.data=Ue)),Ev(Y,e,B,n,k)}rm(Y,t)})}function zr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ns(e,t){for(var n=t+"Capture",a=[];e!==null;){var o=e,u=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||u===null||(o=er(e,n),o!=null&&a.unshift(zr(e,o,u)),o=er(e,t),o!=null&&a.push(zr(e,o,u))),e.tag===3)return a;e=e.return}return[]}function Uv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function sm(e,t,n,a,o){for(var u=t._reactName,m=[];n!==null&&n!==a;){var y=n,C=y.alternate,B=y.stateNode;if(y=y.tag,C!==null&&C===a)break;y!==5&&y!==26&&y!==27||B===null||(C=B,o?(B=er(n,u),B!=null&&m.unshift(zr(n,B,C))):o||(B=er(n,u),B!=null&&m.push(zr(n,B,C)))),n=n.return}m.length!==0&&e.push({event:t,listeners:m})}var Dv=/\r\n?/g,_v=/\u0000|\uFFFD/g;function om(e){return(typeof e=="string"?e:""+e).replace(Dv,`
10
+ `).replace(_v,"")}function um(e,t){return t=om(t),om(e)===t}function Ge(e,t,n,a,o,u){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ci(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ci(e,""+a);break;case"className":ll(e,"class",a);break;case"tabIndex":ll(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ll(e,n,a);break;case"style":uf(e,a,u);break;case"data":if(t!=="object"){ll(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=ol(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(n==="formAction"?(t!=="input"&&Ge(e,t,"name",o.name,o,null),Ge(e,t,"formEncType",o.formEncType,o,null),Ge(e,t,"formMethod",o.formMethod,o,null),Ge(e,t,"formTarget",o.formTarget,o,null)):(Ge(e,t,"encType",o.encType,o,null),Ge(e,t,"method",o.method,o,null),Ge(e,t,"target",o.target,o,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=ol(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=zn);break;case"onScroll":a!=null&&Me("scroll",e);break;case"onScrollEnd":a!=null&&Me("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(l(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=ol(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":Me("beforetoggle",e),Me("toggle",e),rl(e,"popover",a);break;case"xlinkActuate":Mn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Mn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Mn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Mn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Mn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Mn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Mn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Mn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Mn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":rl(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=ap.get(n)||n,rl(e,n,a))}}function Uu(e,t,n,a,o,u){switch(n){case"style":uf(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(l(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=n}}break;case"children":typeof a=="string"?ci(e,a):(typeof a=="number"||typeof a=="bigint")&&ci(e,""+a);break;case"onScroll":a!=null&&Me("scroll",e);break;case"onScrollEnd":a!=null&&Me("scrollend",e);break;case"onClick":a!=null&&(e.onclick=zn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Wc.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),u=e[jt]||null,u=u!=null?u[n]:null,typeof u=="function"&&e.removeEventListener(t,u,o),typeof a=="function")){typeof u!="function"&&u!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,o);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):rl(e,n,a)}}}function Dt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Me("error",e),Me("load",e);var a=!1,o=!1,u;for(u in n)if(n.hasOwnProperty(u)){var m=n[u];if(m!=null)switch(u){case"src":a=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:Ge(e,t,u,m,n,null)}}o&&Ge(e,t,"srcSet",n.srcSet,n,null),a&&Ge(e,t,"src",n.src,n,null);return;case"input":Me("invalid",e);var y=u=m=o=null,C=null,B=null;for(a in n)if(n.hasOwnProperty(a)){var k=n[a];if(k!=null)switch(a){case"name":o=k;break;case"type":m=k;break;case"checked":C=k;break;case"defaultChecked":B=k;break;case"value":u=k;break;case"defaultValue":y=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(l(137,t));break;default:Ge(e,t,a,k,n,null)}}rf(e,u,y,C,B,m,o,!1);return;case"select":Me("invalid",e),a=m=u=null;for(o in n)if(n.hasOwnProperty(o)&&(y=n[o],y!=null))switch(o){case"value":u=y;break;case"defaultValue":m=y;break;case"multiple":a=y;default:Ge(e,t,o,y,n,null)}t=u,n=m,e.multiple=!!a,t!=null?ui(e,!!a,t,!1):n!=null&&ui(e,!!a,n,!0);return;case"textarea":Me("invalid",e),u=o=a=null;for(m in n)if(n.hasOwnProperty(m)&&(y=n[m],y!=null))switch(m){case"value":a=y;break;case"defaultValue":o=y;break;case"children":u=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(l(91));break;default:Ge(e,t,m,y,n,null)}sf(e,a,o,u);return;case"option":for(C in n)if(n.hasOwnProperty(C)&&(a=n[C],a!=null))switch(C){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Ge(e,t,C,a,n,null)}return;case"dialog":Me("beforetoggle",e),Me("toggle",e),Me("cancel",e),Me("close",e);break;case"iframe":case"object":Me("load",e);break;case"video":case"audio":for(a=0;a<Mr.length;a++)Me(Mr[a],e);break;case"image":Me("error",e),Me("load",e);break;case"details":Me("toggle",e);break;case"embed":case"source":case"link":Me("error",e),Me("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(B in n)if(n.hasOwnProperty(B)&&(a=n[B],a!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:Ge(e,t,B,a,n,null)}return;default:if(Hs(t)){for(k in n)n.hasOwnProperty(k)&&(a=n[k],a!==void 0&&Uu(e,t,k,a,n,void 0));return}}for(y in n)n.hasOwnProperty(y)&&(a=n[y],a!=null&&Ge(e,t,y,a,n,null))}function Rv(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,u=null,m=null,y=null,C=null,B=null,k=null;for(q in n){var Y=n[q];if(n.hasOwnProperty(q)&&Y!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":C=Y;default:a.hasOwnProperty(q)||Ge(e,t,q,null,a,Y)}}for(var O in a){var q=a[O];if(Y=n[O],a.hasOwnProperty(O)&&(q!=null||Y!=null))switch(O){case"type":u=q;break;case"name":o=q;break;case"checked":B=q;break;case"defaultChecked":k=q;break;case"value":m=q;break;case"defaultValue":y=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(l(137,t));break;default:q!==Y&&Ge(e,t,O,q,a,Y)}}ks(e,m,y,C,B,k,u,o);return;case"select":q=m=y=O=null;for(u in n)if(C=n[u],n.hasOwnProperty(u)&&C!=null)switch(u){case"value":break;case"multiple":q=C;default:a.hasOwnProperty(u)||Ge(e,t,u,null,a,C)}for(o in a)if(u=a[o],C=n[o],a.hasOwnProperty(o)&&(u!=null||C!=null))switch(o){case"value":O=u;break;case"defaultValue":y=u;break;case"multiple":m=u;default:u!==C&&Ge(e,t,o,u,a,C)}t=y,n=m,a=q,O!=null?ui(e,!!n,O,!1):!!a!=!!n&&(t!=null?ui(e,!!n,t,!0):ui(e,!!n,n?[]:"",!1));return;case"textarea":q=O=null;for(y in n)if(o=n[y],n.hasOwnProperty(y)&&o!=null&&!a.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:Ge(e,t,y,null,a,o)}for(m in a)if(o=a[m],u=n[m],a.hasOwnProperty(m)&&(o!=null||u!=null))switch(m){case"value":O=o;break;case"defaultValue":q=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(l(91));break;default:o!==u&&Ge(e,t,m,o,a,u)}lf(e,O,q);return;case"option":for(var de in n)if(O=n[de],n.hasOwnProperty(de)&&O!=null&&!a.hasOwnProperty(de))switch(de){case"selected":e.selected=!1;break;default:Ge(e,t,de,null,a,O)}for(C in a)if(O=a[C],q=n[C],a.hasOwnProperty(C)&&O!==q&&(O!=null||q!=null))switch(C){case"selected":e.selected=O&&typeof O!="function"&&typeof O!="symbol";break;default:Ge(e,t,C,O,a,q)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var we in n)O=n[we],n.hasOwnProperty(we)&&O!=null&&!a.hasOwnProperty(we)&&Ge(e,t,we,null,a,O);for(B in a)if(O=a[B],q=n[B],a.hasOwnProperty(B)&&O!==q&&(O!=null||q!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(l(137,t));break;default:Ge(e,t,B,O,a,q)}return;default:if(Hs(t)){for(var Qe in n)O=n[Qe],n.hasOwnProperty(Qe)&&O!==void 0&&!a.hasOwnProperty(Qe)&&Uu(e,t,Qe,void 0,a,O);for(k in a)O=a[k],q=n[k],!a.hasOwnProperty(k)||O===q||O===void 0&&q===void 0||Uu(e,t,k,O,a,q);return}}for(var R in n)O=n[R],n.hasOwnProperty(R)&&O!=null&&!a.hasOwnProperty(R)&&Ge(e,t,R,null,a,O);for(Y in a)O=a[Y],q=n[Y],!a.hasOwnProperty(Y)||O===q||O==null&&q==null||Ge(e,t,Y,O,a,q)}function cm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Nv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var o=n[a],u=o.transferSize,m=o.initiatorType,y=o.duration;if(u&&y&&cm(m)){for(m=0,y=o.responseEnd,a+=1;a<n.length;a++){var C=n[a],B=C.startTime;if(B>y)break;var k=C.transferSize,Y=C.initiatorType;k&&cm(Y)&&(C=C.responseEnd,m+=k*(C<y?1:(y-B)/(C-B)))}if(--a,t+=8*(u+m)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Du=null,_u=null;function as(e){return e.nodeType===9?e:e.ownerDocument}function fm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function dm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Ru(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Nu=null;function Mv(){var e=window.event;return e&&e.type==="popstate"?e===Nu?!1:(Nu=e,!0):(Nu=null,!1)}var hm=typeof setTimeout=="function"?setTimeout:void 0,zv=typeof clearTimeout=="function"?clearTimeout:void 0,mm=typeof Promise=="function"?Promise:void 0,Bv=typeof queueMicrotask=="function"?queueMicrotask:typeof mm<"u"?function(e){return mm.resolve(null).then(e).catch(Ov)}:hm;function Ov(e){setTimeout(function(){throw e})}function ba(e){return e==="head"}function gm(e,t){var n=t,a=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(o),Fi(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Br(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Br(n);for(var u=n.firstChild;u;){var m=u.nextSibling,y=u.nodeName;u[$i]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=m}}else n==="body"&&Br(e.ownerDocument.body);n=o}while(n);Fi(t)}function pm(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function Mu(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Mu(n),js(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function jv(e,t,n,a){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[$i])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=on(e.nextSibling),e===null)break}return null}function qv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=on(e.nextSibling),e===null))return null;return e}function vm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=on(e.nextSibling),e===null))return null;return e}function zu(e){return e.data==="$?"||e.data==="$~"}function Bu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function kv(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function on(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Ou=null;function ym(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return on(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function bm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Sm(e,t,n){switch(t=as(n),e){case"html":if(e=t.documentElement,!e)throw Error(l(452));return e;case"head":if(e=t.head,!e)throw Error(l(453));return e;case"body":if(e=t.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function Br(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);js(e)}var un=new Map,wm=new Set;function is(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Zn=Q.d;Q.d={f:Lv,r:Hv,D:Fv,C:Vv,L:Kv,m:Yv,X:Gv,S:Iv,M:Qv};function Lv(){var e=Zn.f(),t=Zl();return e||t}function Hv(e){var t=li(e);t!==null&&t.tag===5&&t.type==="form"?kd(t):Zn.r(e)}var ki=typeof document>"u"?null:document;function xm(e,t,n){var a=ki;if(a&&typeof t=="string"&&t){var o=en(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),wm.has(o)||(wm.add(o),e={rel:e,crossOrigin:n,href:t},a.querySelector(o)===null&&(t=a.createElement("link"),Dt(t,"link",e),wt(t),a.head.appendChild(t)))}}function Fv(e){Zn.D(e),xm("dns-prefetch",e,null)}function Vv(e,t){Zn.C(e,t),xm("preconnect",e,t)}function Kv(e,t,n){Zn.L(e,t,n);var a=ki;if(a&&e&&t){var o='link[rel="preload"][as="'+en(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+en(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+en(n.imageSizes)+'"]')):o+='[href="'+en(e)+'"]';var u=o;switch(t){case"style":u=Li(e);break;case"script":u=Hi(e)}un.has(u)||(e=A({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),un.set(u,e),a.querySelector(o)!==null||t==="style"&&a.querySelector(Or(u))||t==="script"&&a.querySelector(jr(u))||(t=a.createElement("link"),Dt(t,"link",e),wt(t),a.head.appendChild(t)))}}function Yv(e,t){Zn.m(e,t);var n=ki;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+en(a)+'"][href="'+en(e)+'"]',u=o;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Hi(e)}if(!un.has(u)&&(e=A({rel:"modulepreload",href:e},t),un.set(u,e),n.querySelector(o)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(jr(u)))return}a=n.createElement("link"),Dt(a,"link",e),wt(a),n.head.appendChild(a)}}}function Iv(e,t,n){Zn.S(e,t,n);var a=ki;if(a&&e){var o=si(a).hoistableStyles,u=Li(e);t=t||"default";var m=o.get(u);if(!m){var y={loading:0,preload:null};if(m=a.querySelector(Or(u)))y.loading=5;else{e=A({rel:"stylesheet",href:e,"data-precedence":t},n),(n=un.get(u))&&ju(e,n);var C=m=a.createElement("link");wt(C),Dt(C,"link",e),C._p=new Promise(function(B,k){C.onload=B,C.onerror=k}),C.addEventListener("load",function(){y.loading|=1}),C.addEventListener("error",function(){y.loading|=2}),y.loading|=4,rs(m,t,a)}m={type:"stylesheet",instance:m,count:1,state:y},o.set(u,m)}}}function Gv(e,t){Zn.X(e,t);var n=ki;if(n&&e){var a=si(n).hoistableScripts,o=Hi(e),u=a.get(o);u||(u=n.querySelector(jr(o)),u||(e=A({src:e,async:!0},t),(t=un.get(o))&&qu(e,t),u=n.createElement("script"),wt(u),Dt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(o,u))}}function Qv(e,t){Zn.M(e,t);var n=ki;if(n&&e){var a=si(n).hoistableScripts,o=Hi(e),u=a.get(o);u||(u=n.querySelector(jr(o)),u||(e=A({src:e,async:!0,type:"module"},t),(t=un.get(o))&&qu(e,t),u=n.createElement("script"),wt(u),Dt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(o,u))}}function Em(e,t,n,a){var o=(o=Je.current)?is(o):null;if(!o)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Li(n.href),n=si(o).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Li(n.href);var u=si(o).hoistableStyles,m=u.get(e);if(m||(o=o.ownerDocument||o,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,m),(u=o.querySelector(Or(e)))&&!u._p&&(m.instance=u,m.state.loading=5),un.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},un.set(e,n),u||Xv(o,e,n,m.state))),t&&a===null)throw Error(l(528,""));return m}if(t&&a!==null)throw Error(l(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Hi(n),n=si(o).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function Li(e){return'href="'+en(e)+'"'}function Or(e){return'link[rel="stylesheet"]['+e+"]"}function Am(e){return A({},e,{"data-precedence":e.precedence,precedence:null})}function Xv(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Dt(t,"link",n),wt(t),e.head.appendChild(t))}function Hi(e){return'[src="'+en(e)+'"]'}function jr(e){return"script[async]"+e}function Tm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+en(n.href)+'"]');if(a)return t.instance=a,wt(a),a;var o=A({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),wt(a),Dt(a,"style",o),rs(a,n.precedence,e),t.instance=a;case"stylesheet":o=Li(n.href);var u=e.querySelector(Or(o));if(u)return t.state.loading|=4,t.instance=u,wt(u),u;a=Am(n),(o=un.get(o))&&ju(a,o),u=(e.ownerDocument||e).createElement("link"),wt(u);var m=u;return m._p=new Promise(function(y,C){m.onload=y,m.onerror=C}),Dt(u,"link",a),t.state.loading|=4,rs(u,n.precedence,e),t.instance=u;case"script":return u=Hi(n.src),(o=e.querySelector(jr(u)))?(t.instance=o,wt(o),o):(a=n,(o=un.get(u))&&(a=A({},n),qu(a,o)),e=e.ownerDocument||e,o=e.createElement("script"),wt(o),Dt(o,"link",a),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(l(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,rs(a,n.precedence,e));return t.instance}function rs(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=a.length?a[a.length-1]:null,u=o,m=0;m<a.length;m++){var y=a[m];if(y.dataset.precedence===t)u=y;else if(u!==o)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function ju(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function qu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ls=null;function Cm(e,t,n){if(ls===null){var a=new Map,o=ls=new Map;o.set(n,a)}else o=ls,a=o.get(n),a||(a=new Map,o.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var u=n[o];if(!(u[$i]||u[At]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var m=u.getAttribute(t)||"";m=e+m;var y=a.get(m);y?y.push(u):a.set(m,[u])}}return a}function Um(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Zv(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Dm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Jv(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=Li(a.href),u=t.querySelector(Or(o));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ss.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=u,wt(u);return}u=t.ownerDocument||t,a=Am(a),(o=un.get(o))&&ju(a,o),u=u.createElement("link"),wt(u);var m=u;m._p=new Promise(function(y,C){m.onload=y,m.onerror=C}),Dt(u,"link",a),n.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=ss.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var ku=0;function Pv(e,t){return e.stylesheets&&e.count===0&&us(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&us(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&ku===0&&(ku=62500*Nv());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&us(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>ku?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(o)}}:null}function ss(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)us(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var os=null;function us(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,os=new Map,t.forEach($v,e),os=null,ss.call(e))}function $v(e,t){if(!(t.state.loading&4)){var n=os.get(e);if(n)var a=n.get(null);else{n=new Map,os.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<o.length;u++){var m=o[u];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(n.set(m.dataset.precedence,m),a=m)}a&&n.set(null,a)}o=t.instance,m=o.getAttribute("data-precedence"),u=n.get(m)||a,u===a&&n.set(null,o),n.set(m,o),this.count++,a=ss.bind(this),o.addEventListener("load",a),o.addEventListener("error",a),u?u.parentNode.insertBefore(o,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var qr={$$typeof:J,Provider:null,Consumer:null,_currentValue:G,_currentValue2:G,_threadCount:0};function Wv(e,t,n,a,o,u,m,y,C){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Rt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Rt(0),this.hiddenUpdates=Rt(null),this.identifierPrefix=a,this.onUncaughtError=o,this.onCaughtError=u,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function _m(e,t,n,a,o,u,m,y,C,B,k,Y){return e=new Wv(e,t,n,m,C,B,k,Y,y),t=1,u===!0&&(t|=24),u=It(3,null,null,t),e.current=u,u.stateNode=e,t=vo(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:n,cache:t},wo(u),e}function Rm(e){return e?(e=vi,e):vi}function Nm(e,t,n,a,o,u){o=Rm(o),a.context===null?a.context=o:a.pendingContext=o,a=oa(t),a.payload={element:n},u=u===void 0?null:u,u!==null&&(a.callback=u),n=ua(e,a,t),n!==null&&(Vt(n,e,t),gr(n,e,t))}function Mm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Lu(e,t){Mm(e,t),(e=e.alternate)&&Mm(e,t)}function zm(e){if(e.tag===13||e.tag===31){var t=ja(e,67108864);t!==null&&Vt(t,e,67108864),Lu(e,67108864)}}function Bm(e){if(e.tag===13||e.tag===31){var t=Jt();t=zs(t);var n=ja(e,t);n!==null&&Vt(n,e,t),Lu(e,t)}}var cs=!0;function ey(e,t,n,a){var o=j.T;j.T=null;var u=Q.p;try{Q.p=2,Hu(e,t,n,a)}finally{Q.p=u,j.T=o}}function ty(e,t,n,a){var o=j.T;j.T=null;var u=Q.p;try{Q.p=8,Hu(e,t,n,a)}finally{Q.p=u,j.T=o}}function Hu(e,t,n,a){if(cs){var o=Fu(a);if(o===null)Cu(e,t,a,fs,n),jm(e,a);else if(ay(o,e,t,n,a))a.stopPropagation();else if(jm(e,a),t&4&&-1<ny.indexOf(e)){for(;o!==null;){var u=li(o);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var m=_t(u.pendingLanes);if(m!==0){var y=u;for(y.pendingLanes|=2,y.entangledLanes|=2;m;){var C=1<<31-ht(m);y.entanglements[1]|=C,m&=~C}_n(u),(Le&6)===0&&(Ql=V()+500,Nr(0))}}break;case 31:case 13:y=ja(u,2),y!==null&&Vt(y,u,2),Zl(),Lu(u,2)}if(u=Fu(a),u===null&&Cu(e,t,a,fs,n),u===o)break;o=u}o!==null&&a.stopPropagation()}else Cu(e,t,a,null,n)}}function Fu(e){return e=Vs(e),Vu(e)}var fs=null;function Vu(e){if(fs=null,e=ri(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=d(t),e!==null)return e;e=null}else if(n===31){if(e=h(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return fs=e,null}function Om(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Re()){case Te:return 2;case je:return 8;case it:case Pe:return 32;case $t:return 268435456;default:return 32}default:return 32}}var Ku=!1,Sa=null,wa=null,xa=null,kr=new Map,Lr=new Map,Ea=[],ny="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function jm(e,t){switch(e){case"focusin":case"focusout":Sa=null;break;case"dragenter":case"dragleave":wa=null;break;case"mouseover":case"mouseout":xa=null;break;case"pointerover":case"pointerout":kr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lr.delete(t.pointerId)}}function Hr(e,t,n,a,o,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:u,targetContainers:[o]},t!==null&&(t=li(t),t!==null&&zm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function ay(e,t,n,a,o){switch(t){case"focusin":return Sa=Hr(Sa,e,t,n,a,o),!0;case"dragenter":return wa=Hr(wa,e,t,n,a,o),!0;case"mouseover":return xa=Hr(xa,e,t,n,a,o),!0;case"pointerover":var u=o.pointerId;return kr.set(u,Hr(kr.get(u)||null,e,t,n,a,o)),!0;case"gotpointercapture":return u=o.pointerId,Lr.set(u,Hr(Lr.get(u)||null,e,t,n,a,o)),!0}return!1}function qm(e){var t=ri(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=d(n),t!==null){e.blockedOn=t,Jc(e.priority,function(){Bm(n)});return}}else if(t===31){if(t=h(n),t!==null){e.blockedOn=t,Jc(e.priority,function(){Bm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ds(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Fu(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);Fs=a,n.target.dispatchEvent(a),Fs=null}else return t=li(n),t!==null&&zm(t),e.blockedOn=n,!1;t.shift()}return!0}function km(e,t,n){ds(e)&&n.delete(t)}function iy(){Ku=!1,Sa!==null&&ds(Sa)&&(Sa=null),wa!==null&&ds(wa)&&(wa=null),xa!==null&&ds(xa)&&(xa=null),kr.forEach(km),Lr.forEach(km)}function hs(e,t){e.blockedOn===t&&(e.blockedOn=null,Ku||(Ku=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,iy)))}var ms=null;function Lm(e){ms!==e&&(ms=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){ms===e&&(ms=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],o=e[t+2];if(typeof a!="function"){if(Vu(a||n)===null)continue;break}var u=li(n);u!==null&&(e.splice(t,3),t-=3,Fo(u,{pending:!0,data:o,method:n.method,action:a},a,o))}}))}function Fi(e){function t(C){return hs(C,e)}Sa!==null&&hs(Sa,e),wa!==null&&hs(wa,e),xa!==null&&hs(xa,e),kr.forEach(t),Lr.forEach(t);for(var n=0;n<Ea.length;n++){var a=Ea[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Ea.length&&(n=Ea[0],n.blockedOn===null);)qm(n),n.blockedOn===null&&Ea.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var o=n[a],u=n[a+1],m=o[jt]||null;if(typeof u=="function")m||Lm(n);else if(m){var y=null;if(u&&u.hasAttribute("formAction")){if(o=u,m=u[jt]||null)y=m.formAction;else if(Vu(o)!==null)continue}else y=m.action;typeof y=="function"?n[a+1]=y:(n.splice(a,3),a-=3),Lm(n)}}}function Hm(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(m){return o=m})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Yu(e){this._internalRoot=e}gs.prototype.render=Yu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var n=t.current,a=Jt();Nm(n,a,e,t,null,null)},gs.prototype.unmount=Yu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Nm(e.current,2,null,e,null,null),Zl(),t[ii]=null}};function gs(e){this._internalRoot=e}gs.prototype.unstable_scheduleHydration=function(e){if(e){var t=Zc();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ea.length&&t!==0&&t<Ea[n].priority;n++);Ea.splice(n,0,e),n===0&&qm(e)}};var Fm=r.version;if(Fm!=="19.2.4")throw Error(l(527,Fm,"19.2.4"));Q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=b(t),e=e!==null?w(e):null,e=e===null?null:e.stateNode,e};var ry={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ps=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ps.isDisabled&&ps.supportsFiber)try{Nn=ps.inject(ry),dt=ps}catch{}}return Fr.createRoot=function(e,t){if(!c(e))throw Error(l(299));var n=!1,a="",o=Xd,u=Zd,m=Jd;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=_m(e,1,!1,null,null,n,a,null,o,u,m,Hm),e[ii]=t.current,Tu(e),new Yu(t)},Fr.hydrateRoot=function(e,t,n){if(!c(e))throw Error(l(299));var a=!1,o="",u=Xd,m=Zd,y=Jd,C=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError),n.formState!==void 0&&(C=n.formState)),t=_m(e,1,!0,t,n??null,a,o,C,u,m,y,Hm),t.context=Rm(null),n=t.current,a=Jt(),a=zs(a),o=oa(a),o.callback=null,ua(n,o,a),n=a,t.current.lanes=n,Et(t,n),_n(t),e[ii]=t.current,Tu(e),new gs(t)},Fr.version="19.2.4",Fr}var Gm;function Gy(){if(Gm)return Iu.exports;Gm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(r){console.error(r)}}return i(),Iu.exports=Iy(),Iu.exports}var Qy=Gy();const hg=(...i)=>i.filter((r,s,l)=>!!r&&r.trim()!==""&&l.indexOf(r)===s).join(" ").trim();const Xy=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Zy=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,s,l)=>l?l.toUpperCase():s.toLowerCase());const Qm=i=>{const r=Zy(i);return r.charAt(0).toUpperCase()+r.slice(1)};var Jy={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Py=i=>{for(const r in i)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1};const $y=se.forwardRef(({color:i="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:l,className:c="",children:f,iconNode:d,...h},v)=>se.createElement("svg",{ref:v,...Jy,width:r,height:r,stroke:i,strokeWidth:l?Number(s)*24/Number(r):s,className:hg("lucide",c),...!f&&!Py(h)&&{"aria-hidden":"true"},...h},[...d.map(([b,w])=>se.createElement(b,w)),...Array.isArray(f)?f:[f]]));const ct=(i,r)=>{const s=se.forwardRef(({className:l,...c},f)=>se.createElement($y,{ref:f,iconNode:r,className:hg(`lucide-${Xy(Qm(i))}`,`lucide-${i}`,l),...c}));return s.displayName=Qm(i),s};const Wy=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],e1=ct("archive",Wy);const t1=[["path",{d:"M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2",key:"1ah6g2"}],["rect",{x:"14",y:"2",width:"8",height:"8",rx:"1",key:"88lufb"}]],n1=ct("blocks",t1);const a1=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],i1=ct("chevrons-up-down",a1);const r1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],l1=ct("circle-check",r1);const s1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]],o1=ct("circle-user",s1);const u1=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],c1=ct("clock",u1);const f1=[["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["circle",{cx:"12",cy:"12",r:"8",key:"46899m"}]],d1=ct("cog",f1);const h1=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],m1=ct("database",h1);const g1=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],p1=ct("file-text",g1);const v1=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],y1=ct("history",v1);const b1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],S1=ct("image",b1);const w1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],x1=ct("info",w1);const E1=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],A1=ct("key",E1);const T1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Pn=ct("loader-circle",T1);const C1=[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],U1=ct("octagon-x",C1);const D1=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],mg=ct("settings",D1);const _1=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],R1=ct("tag",_1);const N1=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],M1=ct("triangle-alert",N1);const z1=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],B1=ct("users",z1);const O1=[["path",{d:"M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2",key:"q3hayz"}],["path",{d:"m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06",key:"1go1hn"}],["path",{d:"m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8",key:"qlwsc0"}]],j1=ct("webhook",O1);const q1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],k1=ct("x",q1);var L1=(i,r,s,l,c,f,d,h)=>{let v=document.documentElement,b=["light","dark"];function w(S){(Array.isArray(i)?i:[i]).forEach(N=>{let _=N==="class",I=_&&f?c.map(K=>f[K]||K):c;_?(v.classList.remove(...I),v.classList.add(f&&f[S]?f[S]:S)):v.setAttribute(N,S)}),A(S)}function A(S){h&&b.includes(S)&&(v.style.colorScheme=S)}function U(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(l)w(l);else try{let S=localStorage.getItem(r)||s,N=d&&S==="system"?U():S;w(N)}catch{}},H1=se.createContext(void 0),F1={setTheme:i=>{},themes:[]},V1=()=>{var i;return(i=se.useContext(H1))!=null?i:F1};se.memo(({forcedTheme:i,storageKey:r,attribute:s,enableSystem:l,enableColorScheme:c,defaultTheme:f,value:d,themes:h,nonce:v,scriptProps:b})=>{let w=JSON.stringify([s,r,f,i,h,d,l,c]).slice(1,-1);return se.createElement("script",{...b,suppressHydrationWarning:!0,nonce:typeof window>"u"?v:"",dangerouslySetInnerHTML:{__html:`(${L1.toString()})(${w})`}})});var K1=i=>{switch(i){case"success":return G1;case"info":return X1;case"warning":return Q1;case"error":return Z1;default:return null}},Y1=Array(12).fill(0),I1=({visible:i,className:r})=>ae.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":i},ae.createElement("div",{className:"sonner-spinner"},Y1.map((s,l)=>ae.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${l}`})))),G1=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ae.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Q1=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ae.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),X1=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ae.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Z1=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ae.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),J1=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},ae.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ae.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),P1=()=>{let[i,r]=ae.useState(document.hidden);return ae.useEffect(()=>{let s=()=>{r(document.hidden)};return document.addEventListener("visibilitychange",s),()=>window.removeEventListener("visibilitychange",s)},[]),i},_c=1,$1=class{constructor(){this.subscribe=i=>(this.subscribers.push(i),()=>{let r=this.subscribers.indexOf(i);this.subscribers.splice(r,1)}),this.publish=i=>{this.subscribers.forEach(r=>r(i))},this.addToast=i=>{this.publish(i),this.toasts=[...this.toasts,i]},this.create=i=>{var r;let{message:s,...l}=i,c=typeof i?.id=="number"||((r=i.id)==null?void 0:r.length)>0?i.id:_c++,f=this.toasts.find(h=>h.id===c),d=i.dismissible===void 0?!0:i.dismissible;return this.dismissedToasts.has(c)&&this.dismissedToasts.delete(c),f?this.toasts=this.toasts.map(h=>h.id===c?(this.publish({...h,...i,id:c,title:s}),{...h,...i,id:c,dismissible:d,title:s}):h):this.addToast({title:s,...l,dismissible:d,id:c}),c},this.dismiss=i=>(this.dismissedToasts.add(i),i||this.toasts.forEach(r=>{this.subscribers.forEach(s=>s({id:r.id,dismiss:!0}))}),this.subscribers.forEach(r=>r({id:i,dismiss:!0})),i),this.message=(i,r)=>this.create({...r,message:i}),this.error=(i,r)=>this.create({...r,message:i,type:"error"}),this.success=(i,r)=>this.create({...r,type:"success",message:i}),this.info=(i,r)=>this.create({...r,type:"info",message:i}),this.warning=(i,r)=>this.create({...r,type:"warning",message:i}),this.loading=(i,r)=>this.create({...r,type:"loading",message:i}),this.promise=(i,r)=>{if(!r)return;let s;r.loading!==void 0&&(s=this.create({...r,promise:i,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));let l=i instanceof Promise?i:i(),c=s!==void 0,f,d=l.then(async v=>{if(f=["resolve",v],ae.isValidElement(v))c=!1,this.create({id:s,type:"default",message:v});else if(eb(v)&&!v.ok){c=!1;let b=typeof r.error=="function"?await r.error(`HTTP error! status: ${v.status}`):r.error,w=typeof r.description=="function"?await r.description(`HTTP error! status: ${v.status}`):r.description;this.create({id:s,type:"error",message:b,description:w})}else if(r.success!==void 0){c=!1;let b=typeof r.success=="function"?await r.success(v):r.success,w=typeof r.description=="function"?await r.description(v):r.description;this.create({id:s,type:"success",message:b,description:w})}}).catch(async v=>{if(f=["reject",v],r.error!==void 0){c=!1;let b=typeof r.error=="function"?await r.error(v):r.error,w=typeof r.description=="function"?await r.description(v):r.description;this.create({id:s,type:"error",message:b,description:w})}}).finally(()=>{var v;c&&(this.dismiss(s),s=void 0),(v=r.finally)==null||v.call(r)}),h=()=>new Promise((v,b)=>d.then(()=>f[0]==="reject"?b(f[1]):v(f[1])).catch(b));return typeof s!="string"&&typeof s!="number"?{unwrap:h}:Object.assign(s,{unwrap:h})},this.custom=(i,r)=>{let s=r?.id||_c++;return this.create({jsx:i(s),id:s,...r}),s},this.getActiveToasts=()=>this.toasts.filter(i=>!this.dismissedToasts.has(i.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Kt=new $1,W1=(i,r)=>{let s=r?.id||_c++;return Kt.addToast({title:i,...r,id:s}),s},eb=i=>i&&typeof i=="object"&&"ok"in i&&typeof i.ok=="boolean"&&"status"in i&&typeof i.status=="number",tb=W1,nb=()=>Kt.toasts,ab=()=>Kt.getActiveToasts(),vs=Object.assign(tb,{success:Kt.success,info:Kt.info,warning:Kt.warning,error:Kt.error,custom:Kt.custom,message:Kt.message,promise:Kt.promise,dismiss:Kt.dismiss,loading:Kt.loading},{getHistory:nb,getToasts:ab});function ib(i,{insertAt:r}={}){if(typeof document>"u")return;let s=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css",r==="top"&&s.firstChild?s.insertBefore(l,s.firstChild):s.appendChild(l),l.styleSheet?l.styleSheet.cssText=i:l.appendChild(document.createTextNode(i))}ib(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
11
+ `);function ys(i){return i.label!==void 0}var rb=3,lb="32px",sb="16px",Xm=4e3,ob=356,ub=14,cb=20,fb=200;function En(...i){return i.filter(Boolean).join(" ")}function db(i){let[r,s]=i.split("-"),l=[];return r&&l.push(r),s&&l.push(s),l}var hb=i=>{var r,s,l,c,f,d,h,v,b,w,A;let{invert:U,toast:S,unstyled:N,interacting:_,setHeights:I,visibleToasts:K,heights:P,index:J,toasts:$,expanded:oe,removeToast:X,defaultRichColors:W,closeButton:L,style:Z,cancelButtonStyle:ce,actionButtonStyle:ne,className:ee="",descriptionClassName:le="",duration:ue,position:Ae,gap:j,loadingIcon:Q,expandByDefault:G,classNames:ie,icons:be,closeButtonAriaLabel:Se="Close toast",pauseWhenPageIsHidden:re}=i,[te,fe]=ae.useState(null),[De,Je]=ae.useState(null),[pe,$e]=ae.useState(!1),[Ke,st]=ae.useState(!1),[xe,Ye]=ae.useState(!1),[gn,pn]=ae.useState(!1),[Wn,vn]=ae.useState(!1),[Pi,x]=ae.useState(0),[g,p]=ae.useState(0),E=ae.useRef(S.duration||ue||Xm),M=ae.useRef(null),F=ae.useRef(null),V=J===0,Re=J+1<=K,Te=S.type,je=S.dismissible!==!1,it=S.className||"",Pe=S.descriptionClassName||"",$t=ae.useMemo(()=>P.findIndex(Ee=>Ee.toastId===S.id)||0,[P,S.id]),ti=ae.useMemo(()=>{var Ee;return(Ee=S.closeButton)!=null?Ee:L},[S.closeButton,L]),Ra=ae.useMemo(()=>S.duration||ue||Xm,[S.duration,ue]),Nn=ae.useRef(0),dt=ae.useRef(0),yn=ae.useRef(0),ht=ae.useRef(null),[Ns,Ms]=Ae.split("-"),il=ae.useMemo(()=>P.reduce((Ee,He,Xe)=>Xe>=$t?Ee:Ee+He.height,0),[P,$t]),Na=P1(),ni=S.invert||U,ea=Te==="loading";dt.current=ae.useMemo(()=>$t*j+il,[$t,il]),ae.useEffect(()=>{E.current=Ra},[Ra]),ae.useEffect(()=>{$e(!0)},[]),ae.useEffect(()=>{let Ee=F.current;if(Ee){let He=Ee.getBoundingClientRect().height;return p(He),I(Xe=>[{toastId:S.id,height:He,position:S.position},...Xe]),()=>I(Xe=>Xe.filter(Rt=>Rt.toastId!==S.id))}},[I,S.id]),ae.useLayoutEffect(()=>{if(!pe)return;let Ee=F.current,He=Ee.style.height;Ee.style.height="auto";let Xe=Ee.getBoundingClientRect().height;Ee.style.height=He,p(Xe),I(Rt=>Rt.find(Et=>Et.toastId===S.id)?Rt.map(Et=>Et.toastId===S.id?{...Et,height:Xe}:Et):[{toastId:S.id,height:Xe,position:S.position},...Rt])},[pe,S.title,S.description,I,S.id]);let _t=ae.useCallback(()=>{st(!0),x(dt.current),I(Ee=>Ee.filter(He=>He.toastId!==S.id)),setTimeout(()=>{X(S)},fb)},[S,X,I,dt]);ae.useEffect(()=>{if(S.promise&&Te==="loading"||S.duration===1/0||S.type==="loading")return;let Ee;return oe||_||re&&Na?(()=>{if(yn.current<Nn.current){let He=new Date().getTime()-Nn.current;E.current=E.current-He}yn.current=new Date().getTime()})():E.current!==1/0&&(Nn.current=new Date().getTime(),Ee=setTimeout(()=>{var He;(He=S.onAutoClose)==null||He.call(S,S),_t()},E.current)),()=>clearTimeout(Ee)},[oe,_,S,Te,re,Na,_t]),ae.useEffect(()=>{S.delete&&_t()},[_t,S.delete]);function ai(){var Ee,He,Xe;return be!=null&&be.loading?ae.createElement("div",{className:En(ie?.loader,(Ee=S?.classNames)==null?void 0:Ee.loader,"sonner-loader"),"data-visible":Te==="loading"},be.loading):Q?ae.createElement("div",{className:En(ie?.loader,(He=S?.classNames)==null?void 0:He.loader,"sonner-loader"),"data-visible":Te==="loading"},Q):ae.createElement(I1,{className:En(ie?.loader,(Xe=S?.classNames)==null?void 0:Xe.loader),visible:Te==="loading"})}return ae.createElement("li",{tabIndex:0,ref:F,className:En(ee,it,ie?.toast,(r=S?.classNames)==null?void 0:r.toast,ie?.default,ie?.[Te],(s=S?.classNames)==null?void 0:s[Te]),"data-sonner-toast":"","data-rich-colors":(l=S.richColors)!=null?l:W,"data-styled":!(S.jsx||S.unstyled||N),"data-mounted":pe,"data-promise":!!S.promise,"data-swiped":Wn,"data-removed":Ke,"data-visible":Re,"data-y-position":Ns,"data-x-position":Ms,"data-index":J,"data-front":V,"data-swiping":xe,"data-dismissible":je,"data-type":Te,"data-invert":ni,"data-swipe-out":gn,"data-swipe-direction":De,"data-expanded":!!(oe||G&&pe),style:{"--index":J,"--toasts-before":J,"--z-index":$.length-J,"--offset":`${Ke?Pi:dt.current}px`,"--initial-height":G?"auto":`${g}px`,...Z,...S.style},onDragEnd:()=>{Ye(!1),fe(null),ht.current=null},onPointerDown:Ee=>{ea||!je||(M.current=new Date,x(dt.current),Ee.target.setPointerCapture(Ee.pointerId),Ee.target.tagName!=="BUTTON"&&(Ye(!0),ht.current={x:Ee.clientX,y:Ee.clientY}))},onPointerUp:()=>{var Ee,He,Xe,Rt;if(gn||!je)return;ht.current=null;let Et=Number(((Ee=F.current)==null?void 0:Ee.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),An=Number(((He=F.current)==null?void 0:He.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Tn=new Date().getTime()-((Xe=M.current)==null?void 0:Xe.getTime()),Ot=te==="x"?Et:An,bn=Math.abs(Ot)/Tn;if(Math.abs(Ot)>=cb||bn>.11){x(dt.current),(Rt=S.onDismiss)==null||Rt.call(S,S),Je(te==="x"?Et>0?"right":"left":An>0?"down":"up"),_t(),pn(!0),vn(!1);return}Ye(!1),fe(null)},onPointerMove:Ee=>{var He,Xe,Rt,Et;if(!ht.current||!je||((He=window.getSelection())==null?void 0:He.toString().length)>0)return;let An=Ee.clientY-ht.current.y,Tn=Ee.clientX-ht.current.x,Ot=(Xe=i.swipeDirections)!=null?Xe:db(Ae);!te&&(Math.abs(Tn)>1||Math.abs(An)>1)&&fe(Math.abs(Tn)>Math.abs(An)?"x":"y");let bn={x:0,y:0};te==="y"?(Ot.includes("top")||Ot.includes("bottom"))&&(Ot.includes("top")&&An<0||Ot.includes("bottom")&&An>0)&&(bn.y=An):te==="x"&&(Ot.includes("left")||Ot.includes("right"))&&(Ot.includes("left")&&Tn<0||Ot.includes("right")&&Tn>0)&&(bn.x=Tn),(Math.abs(bn.x)>0||Math.abs(bn.y)>0)&&vn(!0),(Rt=F.current)==null||Rt.style.setProperty("--swipe-amount-x",`${bn.x}px`),(Et=F.current)==null||Et.style.setProperty("--swipe-amount-y",`${bn.y}px`)}},ti&&!S.jsx?ae.createElement("button",{"aria-label":Se,"data-disabled":ea,"data-close-button":!0,onClick:ea||!je?()=>{}:()=>{var Ee;_t(),(Ee=S.onDismiss)==null||Ee.call(S,S)},className:En(ie?.closeButton,(c=S?.classNames)==null?void 0:c.closeButton)},(f=be?.close)!=null?f:J1):null,S.jsx||se.isValidElement(S.title)?S.jsx?S.jsx:typeof S.title=="function"?S.title():S.title:ae.createElement(ae.Fragment,null,Te||S.icon||S.promise?ae.createElement("div",{"data-icon":"",className:En(ie?.icon,(d=S?.classNames)==null?void 0:d.icon)},S.promise||S.type==="loading"&&!S.icon?S.icon||ai():null,S.type!=="loading"?S.icon||be?.[Te]||K1(Te):null):null,ae.createElement("div",{"data-content":"",className:En(ie?.content,(h=S?.classNames)==null?void 0:h.content)},ae.createElement("div",{"data-title":"",className:En(ie?.title,(v=S?.classNames)==null?void 0:v.title)},typeof S.title=="function"?S.title():S.title),S.description?ae.createElement("div",{"data-description":"",className:En(le,Pe,ie?.description,(b=S?.classNames)==null?void 0:b.description)},typeof S.description=="function"?S.description():S.description):null),se.isValidElement(S.cancel)?S.cancel:S.cancel&&ys(S.cancel)?ae.createElement("button",{"data-button":!0,"data-cancel":!0,style:S.cancelButtonStyle||ce,onClick:Ee=>{var He,Xe;ys(S.cancel)&&je&&((Xe=(He=S.cancel).onClick)==null||Xe.call(He,Ee),_t())},className:En(ie?.cancelButton,(w=S?.classNames)==null?void 0:w.cancelButton)},S.cancel.label):null,se.isValidElement(S.action)?S.action:S.action&&ys(S.action)?ae.createElement("button",{"data-button":!0,"data-action":!0,style:S.actionButtonStyle||ne,onClick:Ee=>{var He,Xe;ys(S.action)&&((Xe=(He=S.action).onClick)==null||Xe.call(He,Ee),!Ee.defaultPrevented&&_t())},className:En(ie?.actionButton,(A=S?.classNames)==null?void 0:A.actionButton)},S.action.label):null))};function Zm(){if(typeof window>"u"||typeof document>"u")return"ltr";let i=document.documentElement.getAttribute("dir");return i==="auto"||!i?window.getComputedStyle(document.documentElement).direction:i}function mb(i,r){let s={};return[i,r].forEach((l,c)=>{let f=c===1,d=f?"--mobile-offset":"--offset",h=f?sb:lb;function v(b){["top","right","bottom","left"].forEach(w=>{s[`${d}-${w}`]=typeof b=="number"?`${b}px`:b})}typeof l=="number"||typeof l=="string"?v(l):typeof l=="object"?["top","right","bottom","left"].forEach(b=>{l[b]===void 0?s[`${d}-${b}`]=h:s[`${d}-${b}`]=typeof l[b]=="number"?`${l[b]}px`:l[b]}):v(h)}),s}var gb=se.forwardRef(function(i,r){let{invert:s,position:l="bottom-right",hotkey:c=["altKey","KeyT"],expand:f,closeButton:d,className:h,offset:v,mobileOffset:b,theme:w="light",richColors:A,duration:U,style:S,visibleToasts:N=rb,toastOptions:_,dir:I=Zm(),gap:K=ub,loadingIcon:P,icons:J,containerAriaLabel:$="Notifications",pauseWhenPageIsHidden:oe}=i,[X,W]=ae.useState([]),L=ae.useMemo(()=>Array.from(new Set([l].concat(X.filter(re=>re.position).map(re=>re.position)))),[X,l]),[Z,ce]=ae.useState([]),[ne,ee]=ae.useState(!1),[le,ue]=ae.useState(!1),[Ae,j]=ae.useState(w!=="system"?w:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Q=ae.useRef(null),G=c.join("+").replace(/Key/g,"").replace(/Digit/g,""),ie=ae.useRef(null),be=ae.useRef(!1),Se=ae.useCallback(re=>{W(te=>{var fe;return(fe=te.find(De=>De.id===re.id))!=null&&fe.delete||Kt.dismiss(re.id),te.filter(({id:De})=>De!==re.id)})},[]);return ae.useEffect(()=>Kt.subscribe(re=>{if(re.dismiss){W(te=>te.map(fe=>fe.id===re.id?{...fe,delete:!0}:fe));return}setTimeout(()=>{vy.flushSync(()=>{W(te=>{let fe=te.findIndex(De=>De.id===re.id);return fe!==-1?[...te.slice(0,fe),{...te[fe],...re},...te.slice(fe+1)]:[re,...te]})})})}),[]),ae.useEffect(()=>{if(w!=="system"){j(w);return}if(w==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?j("dark"):j("light")),typeof window>"u")return;let re=window.matchMedia("(prefers-color-scheme: dark)");try{re.addEventListener("change",({matches:te})=>{j(te?"dark":"light")})}catch{re.addListener(({matches:fe})=>{try{j(fe?"dark":"light")}catch(De){console.error(De)}})}},[w]),ae.useEffect(()=>{X.length<=1&&ee(!1)},[X]),ae.useEffect(()=>{let re=te=>{var fe,De;c.every(Je=>te[Je]||te.code===Je)&&(ee(!0),(fe=Q.current)==null||fe.focus()),te.code==="Escape"&&(document.activeElement===Q.current||(De=Q.current)!=null&&De.contains(document.activeElement))&&ee(!1)};return document.addEventListener("keydown",re),()=>document.removeEventListener("keydown",re)},[c]),ae.useEffect(()=>{if(Q.current)return()=>{ie.current&&(ie.current.focus({preventScroll:!0}),ie.current=null,be.current=!1)}},[Q.current]),ae.createElement("section",{ref:r,"aria-label":`${$} ${G}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},L.map((re,te)=>{var fe;let[De,Je]=re.split("-");return X.length?ae.createElement("ol",{key:re,dir:I==="auto"?Zm():I,tabIndex:-1,ref:Q,className:h,"data-sonner-toaster":!0,"data-theme":Ae,"data-y-position":De,"data-lifted":ne&&X.length>1&&!f,"data-x-position":Je,style:{"--front-toast-height":`${((fe=Z[0])==null?void 0:fe.height)||0}px`,"--width":`${ob}px`,"--gap":`${K}px`,...S,...mb(v,b)},onBlur:pe=>{be.current&&!pe.currentTarget.contains(pe.relatedTarget)&&(be.current=!1,ie.current&&(ie.current.focus({preventScroll:!0}),ie.current=null))},onFocus:pe=>{pe.target instanceof HTMLElement&&pe.target.dataset.dismissible==="false"||be.current||(be.current=!0,ie.current=pe.relatedTarget)},onMouseEnter:()=>ee(!0),onMouseMove:()=>ee(!0),onMouseLeave:()=>{le||ee(!1)},onDragEnd:()=>ee(!1),onPointerDown:pe=>{pe.target instanceof HTMLElement&&pe.target.dataset.dismissible==="false"||ue(!0)},onPointerUp:()=>ue(!1)},X.filter(pe=>!pe.position&&te===0||pe.position===re).map((pe,$e)=>{var Ke,st;return ae.createElement(hb,{key:pe.id,icons:J,index:$e,toast:pe,defaultRichColors:A,duration:(Ke=_?.duration)!=null?Ke:U,className:_?.className,descriptionClassName:_?.descriptionClassName,invert:s,visibleToasts:N,closeButton:(st=_?.closeButton)!=null?st:d,interacting:le,position:re,style:_?.style,unstyled:_?.unstyled,classNames:_?.classNames,cancelButtonStyle:_?.cancelButtonStyle,actionButtonStyle:_?.actionButtonStyle,removeToast:Se,toasts:X.filter(xe=>xe.position==pe.position),heights:Z.filter(xe=>xe.position==pe.position),setHeights:ce,expandByDefault:f,gap:K,loadingIcon:P,expanded:ne,pauseWhenPageIsHidden:oe,swipeDirections:i.swipeDirections})})):null}))});const pb=({...i})=>{const{theme:r="system"}=V1();return T.jsx(gb,{theme:r,className:"toaster group",icons:{success:T.jsx(l1,{className:"size-4"}),info:T.jsx(x1,{className:"size-4"}),warning:T.jsx(M1,{className:"size-4"}),error:T.jsx(U1,{className:"size-4"}),loading:T.jsx(Pn,{className:"size-4 animate-spin"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},...i})};var vb=(function(){function i(s){var l=s||{},c=l.ValidationData,f=l.Username,d=l.Password,h=l.AuthParameters,v=l.ClientMetadata;this.validationData=c||{},this.authParameters=h||{},this.clientMetadata=v||{},this.username=f,this.password=d}var r=i.prototype;return r.getUsername=function(){return this.username},r.getPassword=function(){return this.password},r.getValidationData=function(){return this.validationData},r.getAuthParameters=function(){return this.authParameters},r.getClientMetadata=function(){return this.clientMetadata},i})(),Xu={},Vr={},Jm;function yb(){if(Jm)return Vr;Jm=1,Vr.byteLength=h,Vr.toByteArray=b,Vr.fromByteArray=U;for(var i=[],r=[],s=typeof Uint8Array<"u"?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,f=l.length;c<f;++c)i[c]=l[c],r[l.charCodeAt(c)]=c;r[45]=62,r[95]=63;function d(S){var N=S.length;if(N%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var _=S.indexOf("=");_===-1&&(_=N);var I=_===N?0:4-_%4;return[_,I]}function h(S){var N=d(S),_=N[0],I=N[1];return(_+I)*3/4-I}function v(S,N,_){return(N+_)*3/4-_}function b(S){var N,_=d(S),I=_[0],K=_[1],P=new s(v(S,I,K)),J=0,$=K>0?I-4:I,oe;for(oe=0;oe<$;oe+=4)N=r[S.charCodeAt(oe)]<<18|r[S.charCodeAt(oe+1)]<<12|r[S.charCodeAt(oe+2)]<<6|r[S.charCodeAt(oe+3)],P[J++]=N>>16&255,P[J++]=N>>8&255,P[J++]=N&255;return K===2&&(N=r[S.charCodeAt(oe)]<<2|r[S.charCodeAt(oe+1)]>>4,P[J++]=N&255),K===1&&(N=r[S.charCodeAt(oe)]<<10|r[S.charCodeAt(oe+1)]<<4|r[S.charCodeAt(oe+2)]>>2,P[J++]=N>>8&255,P[J++]=N&255),P}function w(S){return i[S>>18&63]+i[S>>12&63]+i[S>>6&63]+i[S&63]}function A(S,N,_){for(var I,K=[],P=N;P<_;P+=3)I=(S[P]<<16&16711680)+(S[P+1]<<8&65280)+(S[P+2]&255),K.push(w(I));return K.join("")}function U(S){for(var N,_=S.length,I=_%3,K=[],P=16383,J=0,$=_-I;J<$;J+=P)K.push(A(S,J,J+P>$?$:J+P));return I===1?(N=S[_-1],K.push(i[N>>2]+i[N<<4&63]+"==")):I===2&&(N=(S[_-2]<<8)+S[_-1],K.push(i[N>>10]+i[N>>4&63]+i[N<<2&63]+"=")),K.join("")}return Vr}var bs={},Pm;function bb(){return Pm||(Pm=1,bs.read=function(i,r,s,l,c){var f,d,h=c*8-l-1,v=(1<<h)-1,b=v>>1,w=-7,A=s?c-1:0,U=s?-1:1,S=i[r+A];for(A+=U,f=S&(1<<-w)-1,S>>=-w,w+=h;w>0;f=f*256+i[r+A],A+=U,w-=8);for(d=f&(1<<-w)-1,f>>=-w,w+=l;w>0;d=d*256+i[r+A],A+=U,w-=8);if(f===0)f=1-b;else{if(f===v)return d?NaN:(S?-1:1)*(1/0);d=d+Math.pow(2,l),f=f-b}return(S?-1:1)*d*Math.pow(2,f-l)},bs.write=function(i,r,s,l,c,f){var d,h,v,b=f*8-c-1,w=(1<<b)-1,A=w>>1,U=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,S=l?0:f-1,N=l?1:-1,_=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(h=isNaN(r)?1:0,d=w):(d=Math.floor(Math.log(r)/Math.LN2),r*(v=Math.pow(2,-d))<1&&(d--,v*=2),d+A>=1?r+=U/v:r+=U*Math.pow(2,1-A),r*v>=2&&(d++,v/=2),d+A>=w?(h=0,d=w):d+A>=1?(h=(r*v-1)*Math.pow(2,c),d=d+A):(h=r*Math.pow(2,A-1)*Math.pow(2,c),d=0));c>=8;i[s+S]=h&255,S+=N,h/=256,c-=8);for(d=d<<c|h,b+=c;b>0;i[s+S]=d&255,S+=N,d/=256,b-=8);i[s+S-N]|=_*128}),bs}var Zu,$m;function Sb(){if($m)return Zu;$m=1;var i={}.toString;return Zu=Array.isArray||function(r){return i.call(r)=="[object Array]"},Zu}var Wm;function wb(){return Wm||(Wm=1,(function(i){var r=yb(),s=bb(),l=Sb();i.Buffer=h,i.SlowBuffer=K,i.INSPECT_MAX_BYTES=50,h.TYPED_ARRAY_SUPPORT=Vm.TYPED_ARRAY_SUPPORT!==void 0?Vm.TYPED_ARRAY_SUPPORT:c(),i.kMaxLength=f();function c(){try{var x=new Uint8Array(1);return x.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},x.foo()===42&&typeof x.subarray=="function"&&x.subarray(1,1).byteLength===0}catch{return!1}}function f(){return h.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function d(x,g){if(f()<g)throw new RangeError("Invalid typed array length");return h.TYPED_ARRAY_SUPPORT?(x=new Uint8Array(g),x.__proto__=h.prototype):(x===null&&(x=new h(g)),x.length=g),x}function h(x,g,p){if(!h.TYPED_ARRAY_SUPPORT&&!(this instanceof h))return new h(x,g,p);if(typeof x=="number"){if(typeof g=="string")throw new Error("If encoding is specified then the first argument must be a string");return A(this,x)}return v(this,x,g,p)}h.poolSize=8192,h._augment=function(x){return x.__proto__=h.prototype,x};function v(x,g,p,E){if(typeof g=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&g instanceof ArrayBuffer?N(x,g,p,E):typeof g=="string"?U(x,g,p):_(x,g)}h.from=function(x,g,p){return v(null,x,g,p)},h.TYPED_ARRAY_SUPPORT&&(h.prototype.__proto__=Uint8Array.prototype,h.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&h[Symbol.species]===h&&Object.defineProperty(h,Symbol.species,{value:null,configurable:!0}));function b(x){if(typeof x!="number")throw new TypeError('"size" argument must be a number');if(x<0)throw new RangeError('"size" argument must not be negative')}function w(x,g,p,E){return b(g),g<=0?d(x,g):p!==void 0?typeof E=="string"?d(x,g).fill(p,E):d(x,g).fill(p):d(x,g)}h.alloc=function(x,g,p){return w(null,x,g,p)};function A(x,g){if(b(g),x=d(x,g<0?0:I(g)|0),!h.TYPED_ARRAY_SUPPORT)for(var p=0;p<g;++p)x[p]=0;return x}h.allocUnsafe=function(x){return A(null,x)},h.allocUnsafeSlow=function(x){return A(null,x)};function U(x,g,p){if((typeof p!="string"||p==="")&&(p="utf8"),!h.isEncoding(p))throw new TypeError('"encoding" must be a valid string encoding');var E=P(g,p)|0;x=d(x,E);var M=x.write(g,p);return M!==E&&(x=x.slice(0,M)),x}function S(x,g){var p=g.length<0?0:I(g.length)|0;x=d(x,p);for(var E=0;E<p;E+=1)x[E]=g[E]&255;return x}function N(x,g,p,E){if(g.byteLength,p<0||g.byteLength<p)throw new RangeError("'offset' is out of bounds");if(g.byteLength<p+(E||0))throw new RangeError("'length' is out of bounds");return p===void 0&&E===void 0?g=new Uint8Array(g):E===void 0?g=new Uint8Array(g,p):g=new Uint8Array(g,p,E),h.TYPED_ARRAY_SUPPORT?(x=g,x.__proto__=h.prototype):x=S(x,g),x}function _(x,g){if(h.isBuffer(g)){var p=I(g.length)|0;return x=d(x,p),x.length===0||g.copy(x,0,0,p),x}if(g){if(typeof ArrayBuffer<"u"&&g.buffer instanceof ArrayBuffer||"length"in g)return typeof g.length!="number"||Pi(g.length)?d(x,0):S(x,g);if(g.type==="Buffer"&&l(g.data))return S(x,g.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function I(x){if(x>=f())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f().toString(16)+" bytes");return x|0}function K(x){return+x!=x&&(x=0),h.alloc(+x)}h.isBuffer=function(g){return!!(g!=null&&g._isBuffer)},h.compare=function(g,p){if(!h.isBuffer(g)||!h.isBuffer(p))throw new TypeError("Arguments must be Buffers");if(g===p)return 0;for(var E=g.length,M=p.length,F=0,V=Math.min(E,M);F<V;++F)if(g[F]!==p[F]){E=g[F],M=p[F];break}return E<M?-1:M<E?1:0},h.isEncoding=function(g){switch(String(g).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},h.concat=function(g,p){if(!l(g))throw new TypeError('"list" argument must be an Array of Buffers');if(g.length===0)return h.alloc(0);var E;if(p===void 0)for(p=0,E=0;E<g.length;++E)p+=g[E].length;var M=h.allocUnsafe(p),F=0;for(E=0;E<g.length;++E){var V=g[E];if(!h.isBuffer(V))throw new TypeError('"list" argument must be an Array of Buffers');V.copy(M,F),F+=V.length}return M};function P(x,g){if(h.isBuffer(x))return x.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(x)||x instanceof ArrayBuffer))return x.byteLength;typeof x!="string"&&(x=""+x);var p=x.length;if(p===0)return 0;for(var E=!1;;)switch(g){case"ascii":case"latin1":case"binary":return p;case"utf8":case"utf-8":case void 0:return Ye(x).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p*2;case"hex":return p>>>1;case"base64":return Wn(x).length;default:if(E)return Ye(x).length;g=(""+g).toLowerCase(),E=!0}}h.byteLength=P;function J(x,g,p){var E=!1;if((g===void 0||g<0)&&(g=0),g>this.length||((p===void 0||p>this.length)&&(p=this.length),p<=0)||(p>>>=0,g>>>=0,p<=g))return"";for(x||(x="utf8");;)switch(x){case"hex":return ie(this,g,p);case"utf8":case"utf-8":return ue(this,g,p);case"ascii":return Q(this,g,p);case"latin1":case"binary":return G(this,g,p);case"base64":return le(this,g,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return be(this,g,p);default:if(E)throw new TypeError("Unknown encoding: "+x);x=(x+"").toLowerCase(),E=!0}}h.prototype._isBuffer=!0;function $(x,g,p){var E=x[g];x[g]=x[p],x[p]=E}h.prototype.swap16=function(){var g=this.length;if(g%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var p=0;p<g;p+=2)$(this,p,p+1);return this},h.prototype.swap32=function(){var g=this.length;if(g%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var p=0;p<g;p+=4)$(this,p,p+3),$(this,p+1,p+2);return this},h.prototype.swap64=function(){var g=this.length;if(g%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var p=0;p<g;p+=8)$(this,p,p+7),$(this,p+1,p+6),$(this,p+2,p+5),$(this,p+3,p+4);return this},h.prototype.toString=function(){var g=this.length|0;return g===0?"":arguments.length===0?ue(this,0,g):J.apply(this,arguments)},h.prototype.equals=function(g){if(!h.isBuffer(g))throw new TypeError("Argument must be a Buffer");return this===g?!0:h.compare(this,g)===0},h.prototype.inspect=function(){var g="",p=i.INSPECT_MAX_BYTES;return this.length>0&&(g=this.toString("hex",0,p).match(/.{2}/g).join(" "),this.length>p&&(g+=" ... ")),"<Buffer "+g+">"},h.prototype.compare=function(g,p,E,M,F){if(!h.isBuffer(g))throw new TypeError("Argument must be a Buffer");if(p===void 0&&(p=0),E===void 0&&(E=g?g.length:0),M===void 0&&(M=0),F===void 0&&(F=this.length),p<0||E>g.length||M<0||F>this.length)throw new RangeError("out of range index");if(M>=F&&p>=E)return 0;if(M>=F)return-1;if(p>=E)return 1;if(p>>>=0,E>>>=0,M>>>=0,F>>>=0,this===g)return 0;for(var V=F-M,Re=E-p,Te=Math.min(V,Re),je=this.slice(M,F),it=g.slice(p,E),Pe=0;Pe<Te;++Pe)if(je[Pe]!==it[Pe]){V=je[Pe],Re=it[Pe];break}return V<Re?-1:Re<V?1:0};function oe(x,g,p,E,M){if(x.length===0)return-1;if(typeof p=="string"?(E=p,p=0):p>2147483647?p=2147483647:p<-2147483648&&(p=-2147483648),p=+p,isNaN(p)&&(p=M?0:x.length-1),p<0&&(p=x.length+p),p>=x.length){if(M)return-1;p=x.length-1}else if(p<0)if(M)p=0;else return-1;if(typeof g=="string"&&(g=h.from(g,E)),h.isBuffer(g))return g.length===0?-1:X(x,g,p,E,M);if(typeof g=="number")return g=g&255,h.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?M?Uint8Array.prototype.indexOf.call(x,g,p):Uint8Array.prototype.lastIndexOf.call(x,g,p):X(x,[g],p,E,M);throw new TypeError("val must be string, number or Buffer")}function X(x,g,p,E,M){var F=1,V=x.length,Re=g.length;if(E!==void 0&&(E=String(E).toLowerCase(),E==="ucs2"||E==="ucs-2"||E==="utf16le"||E==="utf-16le")){if(x.length<2||g.length<2)return-1;F=2,V/=2,Re/=2,p/=2}function Te(ti,Ra){return F===1?ti[Ra]:ti.readUInt16BE(Ra*F)}var je;if(M){var it=-1;for(je=p;je<V;je++)if(Te(x,je)===Te(g,it===-1?0:je-it)){if(it===-1&&(it=je),je-it+1===Re)return it*F}else it!==-1&&(je-=je-it),it=-1}else for(p+Re>V&&(p=V-Re),je=p;je>=0;je--){for(var Pe=!0,$t=0;$t<Re;$t++)if(Te(x,je+$t)!==Te(g,$t)){Pe=!1;break}if(Pe)return je}return-1}h.prototype.includes=function(g,p,E){return this.indexOf(g,p,E)!==-1},h.prototype.indexOf=function(g,p,E){return oe(this,g,p,E,!0)},h.prototype.lastIndexOf=function(g,p,E){return oe(this,g,p,E,!1)};function W(x,g,p,E){p=Number(p)||0;var M=x.length-p;E?(E=Number(E),E>M&&(E=M)):E=M;var F=g.length;if(F%2!==0)throw new TypeError("Invalid hex string");E>F/2&&(E=F/2);for(var V=0;V<E;++V){var Re=parseInt(g.substr(V*2,2),16);if(isNaN(Re))return V;x[p+V]=Re}return V}function L(x,g,p,E){return vn(Ye(g,x.length-p),x,p,E)}function Z(x,g,p,E){return vn(gn(g),x,p,E)}function ce(x,g,p,E){return Z(x,g,p,E)}function ne(x,g,p,E){return vn(Wn(g),x,p,E)}function ee(x,g,p,E){return vn(pn(g,x.length-p),x,p,E)}h.prototype.write=function(g,p,E,M){if(p===void 0)M="utf8",E=this.length,p=0;else if(E===void 0&&typeof p=="string")M=p,E=this.length,p=0;else if(isFinite(p))p=p|0,isFinite(E)?(E=E|0,M===void 0&&(M="utf8")):(M=E,E=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var F=this.length-p;if((E===void 0||E>F)&&(E=F),g.length>0&&(E<0||p<0)||p>this.length)throw new RangeError("Attempt to write outside buffer bounds");M||(M="utf8");for(var V=!1;;)switch(M){case"hex":return W(this,g,p,E);case"utf8":case"utf-8":return L(this,g,p,E);case"ascii":return Z(this,g,p,E);case"latin1":case"binary":return ce(this,g,p,E);case"base64":return ne(this,g,p,E);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,g,p,E);default:if(V)throw new TypeError("Unknown encoding: "+M);M=(""+M).toLowerCase(),V=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function le(x,g,p){return g===0&&p===x.length?r.fromByteArray(x):r.fromByteArray(x.slice(g,p))}function ue(x,g,p){p=Math.min(x.length,p);for(var E=[],M=g;M<p;){var F=x[M],V=null,Re=F>239?4:F>223?3:F>191?2:1;if(M+Re<=p){var Te,je,it,Pe;switch(Re){case 1:F<128&&(V=F);break;case 2:Te=x[M+1],(Te&192)===128&&(Pe=(F&31)<<6|Te&63,Pe>127&&(V=Pe));break;case 3:Te=x[M+1],je=x[M+2],(Te&192)===128&&(je&192)===128&&(Pe=(F&15)<<12|(Te&63)<<6|je&63,Pe>2047&&(Pe<55296||Pe>57343)&&(V=Pe));break;case 4:Te=x[M+1],je=x[M+2],it=x[M+3],(Te&192)===128&&(je&192)===128&&(it&192)===128&&(Pe=(F&15)<<18|(Te&63)<<12|(je&63)<<6|it&63,Pe>65535&&Pe<1114112&&(V=Pe))}}V===null?(V=65533,Re=1):V>65535&&(V-=65536,E.push(V>>>10&1023|55296),V=56320|V&1023),E.push(V),M+=Re}return j(E)}var Ae=4096;function j(x){var g=x.length;if(g<=Ae)return String.fromCharCode.apply(String,x);for(var p="",E=0;E<g;)p+=String.fromCharCode.apply(String,x.slice(E,E+=Ae));return p}function Q(x,g,p){var E="";p=Math.min(x.length,p);for(var M=g;M<p;++M)E+=String.fromCharCode(x[M]&127);return E}function G(x,g,p){var E="";p=Math.min(x.length,p);for(var M=g;M<p;++M)E+=String.fromCharCode(x[M]);return E}function ie(x,g,p){var E=x.length;(!g||g<0)&&(g=0),(!p||p<0||p>E)&&(p=E);for(var M="",F=g;F<p;++F)M+=xe(x[F]);return M}function be(x,g,p){for(var E=x.slice(g,p),M="",F=0;F<E.length;F+=2)M+=String.fromCharCode(E[F]+E[F+1]*256);return M}h.prototype.slice=function(g,p){var E=this.length;g=~~g,p=p===void 0?E:~~p,g<0?(g+=E,g<0&&(g=0)):g>E&&(g=E),p<0?(p+=E,p<0&&(p=0)):p>E&&(p=E),p<g&&(p=g);var M;if(h.TYPED_ARRAY_SUPPORT)M=this.subarray(g,p),M.__proto__=h.prototype;else{var F=p-g;M=new h(F,void 0);for(var V=0;V<F;++V)M[V]=this[V+g]}return M};function Se(x,g,p){if(x%1!==0||x<0)throw new RangeError("offset is not uint");if(x+g>p)throw new RangeError("Trying to access beyond buffer length")}h.prototype.readUIntLE=function(g,p,E){g=g|0,p=p|0,E||Se(g,p,this.length);for(var M=this[g],F=1,V=0;++V<p&&(F*=256);)M+=this[g+V]*F;return M},h.prototype.readUIntBE=function(g,p,E){g=g|0,p=p|0,E||Se(g,p,this.length);for(var M=this[g+--p],F=1;p>0&&(F*=256);)M+=this[g+--p]*F;return M},h.prototype.readUInt8=function(g,p){return p||Se(g,1,this.length),this[g]},h.prototype.readUInt16LE=function(g,p){return p||Se(g,2,this.length),this[g]|this[g+1]<<8},h.prototype.readUInt16BE=function(g,p){return p||Se(g,2,this.length),this[g]<<8|this[g+1]},h.prototype.readUInt32LE=function(g,p){return p||Se(g,4,this.length),(this[g]|this[g+1]<<8|this[g+2]<<16)+this[g+3]*16777216},h.prototype.readUInt32BE=function(g,p){return p||Se(g,4,this.length),this[g]*16777216+(this[g+1]<<16|this[g+2]<<8|this[g+3])},h.prototype.readIntLE=function(g,p,E){g=g|0,p=p|0,E||Se(g,p,this.length);for(var M=this[g],F=1,V=0;++V<p&&(F*=256);)M+=this[g+V]*F;return F*=128,M>=F&&(M-=Math.pow(2,8*p)),M},h.prototype.readIntBE=function(g,p,E){g=g|0,p=p|0,E||Se(g,p,this.length);for(var M=p,F=1,V=this[g+--M];M>0&&(F*=256);)V+=this[g+--M]*F;return F*=128,V>=F&&(V-=Math.pow(2,8*p)),V},h.prototype.readInt8=function(g,p){return p||Se(g,1,this.length),this[g]&128?(255-this[g]+1)*-1:this[g]},h.prototype.readInt16LE=function(g,p){p||Se(g,2,this.length);var E=this[g]|this[g+1]<<8;return E&32768?E|4294901760:E},h.prototype.readInt16BE=function(g,p){p||Se(g,2,this.length);var E=this[g+1]|this[g]<<8;return E&32768?E|4294901760:E},h.prototype.readInt32LE=function(g,p){return p||Se(g,4,this.length),this[g]|this[g+1]<<8|this[g+2]<<16|this[g+3]<<24},h.prototype.readInt32BE=function(g,p){return p||Se(g,4,this.length),this[g]<<24|this[g+1]<<16|this[g+2]<<8|this[g+3]},h.prototype.readFloatLE=function(g,p){return p||Se(g,4,this.length),s.read(this,g,!0,23,4)},h.prototype.readFloatBE=function(g,p){return p||Se(g,4,this.length),s.read(this,g,!1,23,4)},h.prototype.readDoubleLE=function(g,p){return p||Se(g,8,this.length),s.read(this,g,!0,52,8)},h.prototype.readDoubleBE=function(g,p){return p||Se(g,8,this.length),s.read(this,g,!1,52,8)};function re(x,g,p,E,M,F){if(!h.isBuffer(x))throw new TypeError('"buffer" argument must be a Buffer instance');if(g>M||g<F)throw new RangeError('"value" argument is out of bounds');if(p+E>x.length)throw new RangeError("Index out of range")}h.prototype.writeUIntLE=function(g,p,E,M){if(g=+g,p=p|0,E=E|0,!M){var F=Math.pow(2,8*E)-1;re(this,g,p,E,F,0)}var V=1,Re=0;for(this[p]=g&255;++Re<E&&(V*=256);)this[p+Re]=g/V&255;return p+E},h.prototype.writeUIntBE=function(g,p,E,M){if(g=+g,p=p|0,E=E|0,!M){var F=Math.pow(2,8*E)-1;re(this,g,p,E,F,0)}var V=E-1,Re=1;for(this[p+V]=g&255;--V>=0&&(Re*=256);)this[p+V]=g/Re&255;return p+E},h.prototype.writeUInt8=function(g,p,E){return g=+g,p=p|0,E||re(this,g,p,1,255,0),h.TYPED_ARRAY_SUPPORT||(g=Math.floor(g)),this[p]=g&255,p+1};function te(x,g,p,E){g<0&&(g=65535+g+1);for(var M=0,F=Math.min(x.length-p,2);M<F;++M)x[p+M]=(g&255<<8*(E?M:1-M))>>>(E?M:1-M)*8}h.prototype.writeUInt16LE=function(g,p,E){return g=+g,p=p|0,E||re(this,g,p,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[p]=g&255,this[p+1]=g>>>8):te(this,g,p,!0),p+2},h.prototype.writeUInt16BE=function(g,p,E){return g=+g,p=p|0,E||re(this,g,p,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[p]=g>>>8,this[p+1]=g&255):te(this,g,p,!1),p+2};function fe(x,g,p,E){g<0&&(g=4294967295+g+1);for(var M=0,F=Math.min(x.length-p,4);M<F;++M)x[p+M]=g>>>(E?M:3-M)*8&255}h.prototype.writeUInt32LE=function(g,p,E){return g=+g,p=p|0,E||re(this,g,p,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[p+3]=g>>>24,this[p+2]=g>>>16,this[p+1]=g>>>8,this[p]=g&255):fe(this,g,p,!0),p+4},h.prototype.writeUInt32BE=function(g,p,E){return g=+g,p=p|0,E||re(this,g,p,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[p]=g>>>24,this[p+1]=g>>>16,this[p+2]=g>>>8,this[p+3]=g&255):fe(this,g,p,!1),p+4},h.prototype.writeIntLE=function(g,p,E,M){if(g=+g,p=p|0,!M){var F=Math.pow(2,8*E-1);re(this,g,p,E,F-1,-F)}var V=0,Re=1,Te=0;for(this[p]=g&255;++V<E&&(Re*=256);)g<0&&Te===0&&this[p+V-1]!==0&&(Te=1),this[p+V]=(g/Re>>0)-Te&255;return p+E},h.prototype.writeIntBE=function(g,p,E,M){if(g=+g,p=p|0,!M){var F=Math.pow(2,8*E-1);re(this,g,p,E,F-1,-F)}var V=E-1,Re=1,Te=0;for(this[p+V]=g&255;--V>=0&&(Re*=256);)g<0&&Te===0&&this[p+V+1]!==0&&(Te=1),this[p+V]=(g/Re>>0)-Te&255;return p+E},h.prototype.writeInt8=function(g,p,E){return g=+g,p=p|0,E||re(this,g,p,1,127,-128),h.TYPED_ARRAY_SUPPORT||(g=Math.floor(g)),g<0&&(g=255+g+1),this[p]=g&255,p+1},h.prototype.writeInt16LE=function(g,p,E){return g=+g,p=p|0,E||re(this,g,p,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[p]=g&255,this[p+1]=g>>>8):te(this,g,p,!0),p+2},h.prototype.writeInt16BE=function(g,p,E){return g=+g,p=p|0,E||re(this,g,p,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[p]=g>>>8,this[p+1]=g&255):te(this,g,p,!1),p+2},h.prototype.writeInt32LE=function(g,p,E){return g=+g,p=p|0,E||re(this,g,p,4,2147483647,-2147483648),h.TYPED_ARRAY_SUPPORT?(this[p]=g&255,this[p+1]=g>>>8,this[p+2]=g>>>16,this[p+3]=g>>>24):fe(this,g,p,!0),p+4},h.prototype.writeInt32BE=function(g,p,E){return g=+g,p=p|0,E||re(this,g,p,4,2147483647,-2147483648),g<0&&(g=4294967295+g+1),h.TYPED_ARRAY_SUPPORT?(this[p]=g>>>24,this[p+1]=g>>>16,this[p+2]=g>>>8,this[p+3]=g&255):fe(this,g,p,!1),p+4};function De(x,g,p,E,M,F){if(p+E>x.length)throw new RangeError("Index out of range");if(p<0)throw new RangeError("Index out of range")}function Je(x,g,p,E,M){return M||De(x,g,p,4),s.write(x,g,p,E,23,4),p+4}h.prototype.writeFloatLE=function(g,p,E){return Je(this,g,p,!0,E)},h.prototype.writeFloatBE=function(g,p,E){return Je(this,g,p,!1,E)};function pe(x,g,p,E,M){return M||De(x,g,p,8),s.write(x,g,p,E,52,8),p+8}h.prototype.writeDoubleLE=function(g,p,E){return pe(this,g,p,!0,E)},h.prototype.writeDoubleBE=function(g,p,E){return pe(this,g,p,!1,E)},h.prototype.copy=function(g,p,E,M){if(E||(E=0),!M&&M!==0&&(M=this.length),p>=g.length&&(p=g.length),p||(p=0),M>0&&M<E&&(M=E),M===E||g.length===0||this.length===0)return 0;if(p<0)throw new RangeError("targetStart out of bounds");if(E<0||E>=this.length)throw new RangeError("sourceStart out of bounds");if(M<0)throw new RangeError("sourceEnd out of bounds");M>this.length&&(M=this.length),g.length-p<M-E&&(M=g.length-p+E);var F=M-E,V;if(this===g&&E<p&&p<M)for(V=F-1;V>=0;--V)g[V+p]=this[V+E];else if(F<1e3||!h.TYPED_ARRAY_SUPPORT)for(V=0;V<F;++V)g[V+p]=this[V+E];else Uint8Array.prototype.set.call(g,this.subarray(E,E+F),p);return F},h.prototype.fill=function(g,p,E,M){if(typeof g=="string"){if(typeof p=="string"?(M=p,p=0,E=this.length):typeof E=="string"&&(M=E,E=this.length),g.length===1){var F=g.charCodeAt(0);F<256&&(g=F)}if(M!==void 0&&typeof M!="string")throw new TypeError("encoding must be a string");if(typeof M=="string"&&!h.isEncoding(M))throw new TypeError("Unknown encoding: "+M)}else typeof g=="number"&&(g=g&255);if(p<0||this.length<p||this.length<E)throw new RangeError("Out of range index");if(E<=p)return this;p=p>>>0,E=E===void 0?this.length:E>>>0,g||(g=0);var V;if(typeof g=="number")for(V=p;V<E;++V)this[V]=g;else{var Re=h.isBuffer(g)?g:Ye(new h(g,M).toString()),Te=Re.length;for(V=0;V<E-p;++V)this[V+p]=Re[V%Te]}return this};var $e=/[^+\/0-9A-Za-z-_]/g;function Ke(x){if(x=st(x).replace($e,""),x.length<2)return"";for(;x.length%4!==0;)x=x+"=";return x}function st(x){return x.trim?x.trim():x.replace(/^\s+|\s+$/g,"")}function xe(x){return x<16?"0"+x.toString(16):x.toString(16)}function Ye(x,g){g=g||1/0;for(var p,E=x.length,M=null,F=[],V=0;V<E;++V){if(p=x.charCodeAt(V),p>55295&&p<57344){if(!M){if(p>56319){(g-=3)>-1&&F.push(239,191,189);continue}else if(V+1===E){(g-=3)>-1&&F.push(239,191,189);continue}M=p;continue}if(p<56320){(g-=3)>-1&&F.push(239,191,189),M=p;continue}p=(M-55296<<10|p-56320)+65536}else M&&(g-=3)>-1&&F.push(239,191,189);if(M=null,p<128){if((g-=1)<0)break;F.push(p)}else if(p<2048){if((g-=2)<0)break;F.push(p>>6|192,p&63|128)}else if(p<65536){if((g-=3)<0)break;F.push(p>>12|224,p>>6&63|128,p&63|128)}else if(p<1114112){if((g-=4)<0)break;F.push(p>>18|240,p>>12&63|128,p>>6&63|128,p&63|128)}else throw new Error("Invalid code point")}return F}function gn(x){for(var g=[],p=0;p<x.length;++p)g.push(x.charCodeAt(p)&255);return g}function pn(x,g){for(var p,E,M,F=[],V=0;V<x.length&&!((g-=2)<0);++V)p=x.charCodeAt(V),E=p>>8,M=p%256,F.push(M),F.push(E);return F}function Wn(x){return r.toByteArray(Ke(x))}function vn(x,g,p,E){for(var M=0;M<E&&!(M+p>=g.length||M>=x.length);++M)g[M+p]=x[M];return M}function Pi(x){return x!==x}})(Xu)),Xu}var tt=wb(),dn;typeof window<"u"&&window.crypto&&(dn=window.crypto);!dn&&typeof window<"u"&&window.msCrypto&&(dn=window.msCrypto);!dn&&typeof global<"u"&&global.crypto&&(dn=global.crypto);if(!dn&&typeof require=="function")try{dn=require("crypto")}catch{}function xb(){if(dn){if(typeof dn.getRandomValues=="function")try{return dn.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof dn.randomBytes=="function")try{return dn.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")}function Eb(i){for(var r=i.words,s=i.sigBytes,l=[],c=0;c<s;c++){var f=r[c>>>2]>>>24-c%4*8&255;l.push((f>>>4).toString(16)),l.push((f&15).toString(16))}return l.join("")}var Ab=(function(){function i(s,l){s=this.words=s||[],l!=null?this.sigBytes=l:this.sigBytes=s.length*4}var r=i.prototype;return r.random=function(l){for(var c=[],f=0;f<l;f+=4)c.push(xb());return new i(c,l)},r.toString=function(){return Eb(this)},i})(),Ju={};var Rc=function(i,r){return Rc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var c in l)l.hasOwnProperty(c)&&(s[c]=l[c])},Rc(i,r)};function Tb(i,r){Rc(i,r);function s(){this.constructor=i}i.prototype=r===null?Object.create(r):(s.prototype=r.prototype,new s)}var Nc=function(){return Nc=Object.assign||function(r){for(var s,l=1,c=arguments.length;l<c;l++){s=arguments[l];for(var f in s)Object.prototype.hasOwnProperty.call(s,f)&&(r[f]=s[f])}return r},Nc.apply(this,arguments)};function Cb(i,r){var s={};for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&r.indexOf(l)<0&&(s[l]=i[l]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,l=Object.getOwnPropertySymbols(i);c<l.length;c++)r.indexOf(l[c])<0&&Object.prototype.propertyIsEnumerable.call(i,l[c])&&(s[l[c]]=i[l[c]]);return s}function Ub(i,r,s,l){var c=arguments.length,f=c<3?r:l===null?l=Object.getOwnPropertyDescriptor(r,s):l,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(i,r,s,l);else for(var h=i.length-1;h>=0;h--)(d=i[h])&&(f=(c<3?d(f):c>3?d(r,s,f):d(r,s))||f);return c>3&&f&&Object.defineProperty(r,s,f),f}function Db(i,r){return function(s,l){r(s,l,i)}}function _b(i,r){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,r)}function Rb(i,r,s,l){function c(f){return f instanceof s?f:new s(function(d){d(f)})}return new(s||(s=Promise))(function(f,d){function h(w){try{b(l.next(w))}catch(A){d(A)}}function v(w){try{b(l.throw(w))}catch(A){d(A)}}function b(w){w.done?f(w.value):c(w.value).then(h,v)}b((l=l.apply(i,r||[])).next())})}function Nb(i,r){var s={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},l,c,f,d;return d={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function h(b){return function(w){return v([b,w])}}function v(b){if(l)throw new TypeError("Generator is already executing.");for(;s;)try{if(l=1,c&&(f=b[0]&2?c.return:b[0]?c.throw||((f=c.return)&&f.call(c),0):c.next)&&!(f=f.call(c,b[1])).done)return f;switch(c=0,f&&(b=[b[0]&2,f.value]),b[0]){case 0:case 1:f=b;break;case 4:return s.label++,{value:b[1],done:!1};case 5:s.label++,c=b[1],b=[0];continue;case 7:b=s.ops.pop(),s.trys.pop();continue;default:if(f=s.trys,!(f=f.length>0&&f[f.length-1])&&(b[0]===6||b[0]===2)){s=0;continue}if(b[0]===3&&(!f||b[1]>f[0]&&b[1]<f[3])){s.label=b[1];break}if(b[0]===6&&s.label<f[1]){s.label=f[1],f=b;break}if(f&&s.label<f[2]){s.label=f[2],s.ops.push(b);break}f[2]&&s.ops.pop(),s.trys.pop();continue}b=r.call(i,s)}catch(w){b=[6,w],c=0}finally{l=f=0}if(b[0]&5)throw b[1];return{value:b[0]?b[1]:void 0,done:!0}}}function Mb(i,r,s,l){l===void 0&&(l=s),i[l]=r[s]}function zb(i,r){for(var s in i)s!=="default"&&!r.hasOwnProperty(s)&&(r[s]=i[s])}function Mc(i){var r=typeof Symbol=="function"&&Symbol.iterator,s=r&&i[r],l=0;if(s)return s.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&l>=i.length&&(i=void 0),{value:i&&i[l++],done:!i}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function gg(i,r){var s=typeof Symbol=="function"&&i[Symbol.iterator];if(!s)return i;var l=s.call(i),c,f=[],d;try{for(;(r===void 0||r-- >0)&&!(c=l.next()).done;)f.push(c.value)}catch(h){d={error:h}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(d)throw d.error}}return f}function Bb(){for(var i=[],r=0;r<arguments.length;r++)i=i.concat(gg(arguments[r]));return i}function Ob(){for(var i=0,r=0,s=arguments.length;r<s;r++)i+=arguments[r].length;for(var l=Array(i),c=0,r=0;r<s;r++)for(var f=arguments[r],d=0,h=f.length;d<h;d++,c++)l[c]=f[d];return l}function tl(i){return this instanceof tl?(this.v=i,this):new tl(i)}function jb(i,r,s){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l=s.apply(i,r||[]),c,f=[];return c={},d("next"),d("throw"),d("return"),c[Symbol.asyncIterator]=function(){return this},c;function d(U){l[U]&&(c[U]=function(S){return new Promise(function(N,_){f.push([U,S,N,_])>1||h(U,S)})})}function h(U,S){try{v(l[U](S))}catch(N){A(f[0][3],N)}}function v(U){U.value instanceof tl?Promise.resolve(U.value.v).then(b,w):A(f[0][2],U)}function b(U){h("next",U)}function w(U){h("throw",U)}function A(U,S){U(S),f.shift(),f.length&&h(f[0][0],f[0][1])}}function qb(i){var r,s;return r={},l("next"),l("throw",function(c){throw c}),l("return"),r[Symbol.iterator]=function(){return this},r;function l(c,f){r[c]=i[c]?function(d){return(s=!s)?{value:tl(i[c](d)),done:c==="return"}:f?f(d):d}:f}}function kb(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=i[Symbol.asyncIterator],s;return r?r.call(i):(i=typeof Mc=="function"?Mc(i):i[Symbol.iterator](),s={},l("next"),l("throw"),l("return"),s[Symbol.asyncIterator]=function(){return this},s);function l(f){s[f]=i[f]&&function(d){return new Promise(function(h,v){d=i[f](d),c(h,v,d.done,d.value)})}}function c(f,d,h,v){Promise.resolve(v).then(function(b){f({value:b,done:h})},d)}}function Lb(i,r){return Object.defineProperty?Object.defineProperty(i,"raw",{value:r}):i.raw=r,i}function Hb(i){if(i&&i.__esModule)return i;var r={};if(i!=null)for(var s in i)Object.hasOwnProperty.call(i,s)&&(r[s]=i[s]);return r.default=i,r}function Fb(i){return i&&i.__esModule?i:{default:i}}function Vb(i,r){if(!r.has(i))throw new TypeError("attempted to get private field on non-instance");return r.get(i)}function Kb(i,r,s){if(!r.has(i))throw new TypeError("attempted to set private field on non-instance");return r.set(i,s),s}const Yb=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return Nc},__asyncDelegator:qb,__asyncGenerator:jb,__asyncValues:kb,__await:tl,__awaiter:Rb,__classPrivateFieldGet:Vb,__classPrivateFieldSet:Kb,__createBinding:Mb,__decorate:Ub,__exportStar:zb,__extends:Tb,__generator:Nb,__importDefault:Fb,__importStar:Hb,__makeTemplateObject:Lb,__metadata:_b,__param:Db,__read:gg,__rest:Cb,__spread:Bb,__spreadArrays:Ob,__values:Mc},Symbol.toStringTag,{value:"Module"})),pg=Hc(Yb);var Kr={},Pt={},e0;function vg(){return e0||(e0=1,Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.MAX_HASHABLE_LENGTH=Pt.INIT=Pt.KEY=Pt.DIGEST_LENGTH=Pt.BLOCK_SIZE=void 0,Pt.BLOCK_SIZE=64,Pt.DIGEST_LENGTH=32,Pt.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Pt.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],Pt.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1),Pt}var Yr={},t0;function Ib(){if(t0)return Yr;t0=1,Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.RawSha256=void 0;var i=vg(),r=(function(){function s(){this.state=Int32Array.from(i.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return s.prototype.update=function(l){if(this.finished)throw new Error("Attempted to update an already finished hash.");var c=0,f=l.byteLength;if(this.bytesHashed+=f,this.bytesHashed*8>i.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;f>0;)this.buffer[this.bufferLength++]=l[c++],f--,this.bufferLength===i.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},s.prototype.digest=function(){if(!this.finished){var l=this.bytesHashed*8,c=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),f=this.bufferLength;if(c.setUint8(this.bufferLength++,128),f%i.BLOCK_SIZE>=i.BLOCK_SIZE-8){for(var d=this.bufferLength;d<i.BLOCK_SIZE;d++)c.setUint8(d,0);this.hashBuffer(),this.bufferLength=0}for(var d=this.bufferLength;d<i.BLOCK_SIZE-8;d++)c.setUint8(d,0);c.setUint32(i.BLOCK_SIZE-8,Math.floor(l/4294967296),!0),c.setUint32(i.BLOCK_SIZE-4,l),this.hashBuffer(),this.finished=!0}for(var h=new Uint8Array(i.DIGEST_LENGTH),d=0;d<8;d++)h[d*4]=this.state[d]>>>24&255,h[d*4+1]=this.state[d]>>>16&255,h[d*4+2]=this.state[d]>>>8&255,h[d*4+3]=this.state[d]>>>0&255;return h},s.prototype.hashBuffer=function(){for(var l=this,c=l.buffer,f=l.state,d=f[0],h=f[1],v=f[2],b=f[3],w=f[4],A=f[5],U=f[6],S=f[7],N=0;N<i.BLOCK_SIZE;N++){if(N<16)this.temp[N]=(c[N*4]&255)<<24|(c[N*4+1]&255)<<16|(c[N*4+2]&255)<<8|c[N*4+3]&255;else{var _=this.temp[N-2],I=(_>>>17|_<<15)^(_>>>19|_<<13)^_>>>10;_=this.temp[N-15];var K=(_>>>7|_<<25)^(_>>>18|_<<14)^_>>>3;this.temp[N]=(I+this.temp[N-7]|0)+(K+this.temp[N-16]|0)}var P=(((w>>>6|w<<26)^(w>>>11|w<<21)^(w>>>25|w<<7))+(w&A^~w&U)|0)+(S+(i.KEY[N]+this.temp[N]|0)|0)|0,J=((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+(d&h^d&v^h&v)|0;S=U,U=A,A=w,w=b+P|0,b=v,v=h,h=d,d=P+J|0}f[0]+=d,f[1]+=h,f[2]+=v,f[3]+=b,f[4]+=w,f[5]+=A,f[6]+=U,f[7]+=S},s})();return Yr.RawSha256=r,Yr}var Pu={},Ir={};const Gb=i=>{const r=[];for(let s=0,l=i.length;s<l;s++){const c=i.charCodeAt(s);if(c<128)r.push(c);else if(c<2048)r.push(c>>6|192,c&63|128);else if(s+1<i.length&&(c&64512)===55296&&(i.charCodeAt(s+1)&64512)===56320){const f=65536+((c&1023)<<10)+(i.charCodeAt(++s)&1023);r.push(f>>18|240,f>>12&63|128,f>>6&63|128,f&63|128)}else r.push(c>>12|224,c>>6&63|128,c&63|128)}return Uint8Array.from(r)},Qb=i=>{let r="";for(let s=0,l=i.length;s<l;s++){const c=i[s];if(c<128)r+=String.fromCharCode(c);else if(192<=c&&c<224){const f=i[++s];r+=String.fromCharCode((c&31)<<6|f&63)}else if(240<=c&&c<365){const d="%"+[c,i[++s],i[++s],i[++s]].map(h=>h.toString(16)).join("%");r+=decodeURIComponent(d)}else r+=String.fromCharCode((c&15)<<12|(i[++s]&63)<<6|i[++s]&63)}return r};function Xb(i){return new TextEncoder().encode(i)}function Zb(i){return new TextDecoder("utf-8").decode(i)}const Jb=i=>typeof TextEncoder=="function"?Xb(i):Gb(i),Pb=i=>typeof TextDecoder=="function"?Zb(i):Qb(i),$b=Object.freeze(Object.defineProperty({__proto__:null,fromUtf8:Jb,toUtf8:Pb},Symbol.toStringTag,{value:"Module"})),Wb=Hc($b);var n0;function eS(){if(n0)return Ir;n0=1,Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.convertToBuffer=void 0;var i=Wb,r=typeof Buffer<"u"&&Buffer.from?function(l){return Buffer.from(l,"utf8")}:i.fromUtf8;function s(l){return l instanceof Uint8Array?l:typeof l=="string"?r(l):ArrayBuffer.isView(l)?new Uint8Array(l.buffer,l.byteOffset,l.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(l)}return Ir.convertToBuffer=s,Ir}var Gr={},a0;function tS(){if(a0)return Gr;a0=1,Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.isEmptyData=void 0;function i(r){return typeof r=="string"?r.length===0:r.byteLength===0}return Gr.isEmptyData=i,Gr}var Qr={},i0;function nS(){if(i0)return Qr;i0=1,Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.numToUint8=void 0;function i(r){return new Uint8Array([(r&4278190080)>>24,(r&16711680)>>16,(r&65280)>>8,r&255])}return Qr.numToUint8=i,Qr}var Xr={},r0;function aS(){if(r0)return Xr;r0=1,Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.uint32ArrayFrom=void 0;function i(r){if(!Array.from){for(var s=new Uint32Array(r.length),l=0;l<r.length;)s[l]=r[l];return s}return Uint32Array.from(r)}return Xr.uint32ArrayFrom=i,Xr}var l0;function iS(){return l0||(l0=1,(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.uint32ArrayFrom=i.numToUint8=i.isEmptyData=i.convertToBuffer=void 0;var r=eS();Object.defineProperty(i,"convertToBuffer",{enumerable:!0,get:function(){return r.convertToBuffer}});var s=tS();Object.defineProperty(i,"isEmptyData",{enumerable:!0,get:function(){return s.isEmptyData}});var l=nS();Object.defineProperty(i,"numToUint8",{enumerable:!0,get:function(){return l.numToUint8}});var c=aS();Object.defineProperty(i,"uint32ArrayFrom",{enumerable:!0,get:function(){return c.uint32ArrayFrom}})})(Pu)),Pu}var s0;function rS(){if(s0)return Kr;s0=1,Object.defineProperty(Kr,"__esModule",{value:!0}),Kr.Sha256=void 0;var i=pg,r=vg(),s=Ib(),l=iS(),c=(function(){function d(h){if(this.hash=new s.RawSha256,h){this.outer=new s.RawSha256;var v=f(h),b=new Uint8Array(r.BLOCK_SIZE);b.set(v);for(var w=0;w<r.BLOCK_SIZE;w++)v[w]^=54,b[w]^=92;this.hash.update(v),this.outer.update(b);for(var w=0;w<v.byteLength;w++)v[w]=0}}return d.prototype.update=function(h){if(!((0,l.isEmptyData)(h)||this.error))try{this.hash.update((0,l.convertToBuffer)(h))}catch(v){this.error=v}},d.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},d.prototype.digest=function(){return(0,i.__awaiter)(this,void 0,void 0,function(){return(0,i.__generator)(this,function(h){return[2,this.digestSync()]})})},d})();Kr.Sha256=c;function f(d){var h=(0,l.convertToBuffer)(d);if(h.byteLength>r.BLOCK_SIZE){var v=new s.RawSha256;v.update(h),h=v.digest()}var b=new Uint8Array(r.BLOCK_SIZE);return b.set(h),b}return Kr}var o0;function lS(){return o0||(o0=1,(function(i){Object.defineProperty(i,"__esModule",{value:!0});var r=pg;(0,r.__exportStar)(rS(),i)})(Ju)),Ju}var el=lS();function he(i,r){i!=null&&this.fromString(i,r)}function Mt(){return new he(null)}var _a,sS=0xdeadbeefcafe,u0=(sS&16777215)==15715070;function oS(i,r,s,l,c,f){for(;--f>=0;){var d=r*this[i++]+s[l]+c;c=Math.floor(d/67108864),s[l++]=d&67108863}return c}function uS(i,r,s,l,c,f){for(var d=r&32767,h=r>>15;--f>=0;){var v=this[i]&32767,b=this[i++]>>15,w=h*v+b*d;v=d*v+((w&32767)<<15)+s[l]+(c&1073741823),c=(v>>>30)+(w>>>15)+h*b+(c>>>30),s[l++]=v&1073741823}return c}function cS(i,r,s,l,c,f){for(var d=r&16383,h=r>>14;--f>=0;){var v=this[i]&16383,b=this[i++]>>14,w=h*v+b*d;v=d*v+((w&16383)<<14)+s[l]+c,c=(v>>28)+(w>>14)+h*b,s[l++]=v&268435455}return c}var c0=typeof navigator<"u";c0&&u0&&navigator.appName=="Microsoft Internet Explorer"?(he.prototype.am=uS,_a=30):c0&&u0&&navigator.appName!="Netscape"?(he.prototype.am=oS,_a=26):(he.prototype.am=cS,_a=28);he.prototype.DB=_a;he.prototype.DM=(1<<_a)-1;he.prototype.DV=1<<_a;var Fc=52;he.prototype.FV=Math.pow(2,Fc);he.prototype.F1=Fc-_a;he.prototype.F2=2*_a-Fc;var fS="0123456789abcdefghijklmnopqrstuvwxyz",Ds=new Array,Qi,hn;Qi=48;for(hn=0;hn<=9;++hn)Ds[Qi++]=hn;Qi=97;for(hn=10;hn<36;++hn)Ds[Qi++]=hn;Qi=65;for(hn=10;hn<36;++hn)Ds[Qi++]=hn;function f0(i){return fS.charAt(i)}function dS(i,r){var s=Ds[i.charCodeAt(r)];return s??-1}function hS(i){for(var r=this.t-1;r>=0;--r)i[r]=this[r];i.t=this.t,i.s=this.s}function mS(i){this.t=1,this.s=i<0?-1:0,i>0?this[0]=i:i<-1?this[0]=i+this.DV:this.t=0}function Vc(i){var r=Mt();return r.fromInt(i),r}function gS(i,r){var s;if(r==16)s=4;else if(r==8)s=3;else if(r==2)s=1;else if(r==32)s=5;else if(r==4)s=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");this.t=0,this.s=0;for(var l=i.length,c=!1,f=0;--l>=0;){var d=dS(i,l);if(d<0){i.charAt(l)=="-"&&(c=!0);continue}c=!1,f==0?this[this.t++]=d:f+s>this.DB?(this[this.t-1]|=(d&(1<<this.DB-f)-1)<<f,this[this.t++]=d>>this.DB-f):this[this.t-1]|=d<<f,f+=s,f>=this.DB&&(f-=this.DB)}this.clamp(),c&&he.ZERO.subTo(this,this)}function pS(){for(var i=this.s&this.DM;this.t>0&&this[this.t-1]==i;)--this.t}function vS(i){if(this.s<0)return"-"+this.negate().toString(i);var r;if(i==16)r=4;else if(i==8)r=3;else if(i==2)r=1;else if(i==32)r=5;else if(i==4)r=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");var s=(1<<r)-1,l,c=!1,f="",d=this.t,h=this.DB-d*this.DB%r;if(d-- >0)for(h<this.DB&&(l=this[d]>>h)>0&&(c=!0,f=f0(l));d>=0;)h<r?(l=(this[d]&(1<<h)-1)<<r-h,l|=this[--d]>>(h+=this.DB-r)):(l=this[d]>>(h-=r)&s,h<=0&&(h+=this.DB,--d)),l>0&&(c=!0),c&&(f+=f0(l));return c?f:"0"}function yS(){var i=Mt();return he.ZERO.subTo(this,i),i}function bS(){return this.s<0?this.negate():this}function SS(i){var r=this.s-i.s;if(r!=0)return r;var s=this.t;if(r=s-i.t,r!=0)return this.s<0?-r:r;for(;--s>=0;)if((r=this[s]-i[s])!=0)return r;return 0}function Kc(i){var r=1,s;return(s=i>>>16)!=0&&(i=s,r+=16),(s=i>>8)!=0&&(i=s,r+=8),(s=i>>4)!=0&&(i=s,r+=4),(s=i>>2)!=0&&(i=s,r+=2),(s=i>>1)!=0&&(i=s,r+=1),r}function wS(){return this.t<=0?0:this.DB*(this.t-1)+Kc(this[this.t-1]^this.s&this.DM)}function xS(i,r){var s;for(s=this.t-1;s>=0;--s)r[s+i]=this[s];for(s=i-1;s>=0;--s)r[s]=0;r.t=this.t+i,r.s=this.s}function ES(i,r){for(var s=i;s<this.t;++s)r[s-i]=this[s];r.t=Math.max(this.t-i,0),r.s=this.s}function AS(i,r){var s=i%this.DB,l=this.DB-s,c=(1<<l)-1,f=Math.floor(i/this.DB),d=this.s<<s&this.DM,h;for(h=this.t-1;h>=0;--h)r[h+f+1]=this[h]>>l|d,d=(this[h]&c)<<s;for(h=f-1;h>=0;--h)r[h]=0;r[f]=d,r.t=this.t+f+1,r.s=this.s,r.clamp()}function TS(i,r){r.s=this.s;var s=Math.floor(i/this.DB);if(s>=this.t){r.t=0;return}var l=i%this.DB,c=this.DB-l,f=(1<<l)-1;r[0]=this[s]>>l;for(var d=s+1;d<this.t;++d)r[d-s-1]|=(this[d]&f)<<c,r[d-s]=this[d]>>l;l>0&&(r[this.t-s-1]|=(this.s&f)<<c),r.t=this.t-s,r.clamp()}function CS(i,r){for(var s=0,l=0,c=Math.min(i.t,this.t);s<c;)l+=this[s]-i[s],r[s++]=l&this.DM,l>>=this.DB;if(i.t<this.t){for(l-=i.s;s<this.t;)l+=this[s],r[s++]=l&this.DM,l>>=this.DB;l+=this.s}else{for(l+=this.s;s<i.t;)l-=i[s],r[s++]=l&this.DM,l>>=this.DB;l-=i.s}r.s=l<0?-1:0,l<-1?r[s++]=this.DV+l:l>0&&(r[s++]=l),r.t=s,r.clamp()}function US(i,r){var s=this.abs(),l=i.abs(),c=s.t;for(r.t=c+l.t;--c>=0;)r[c]=0;for(c=0;c<l.t;++c)r[c+s.t]=s.am(0,l[c],r,c,0,s.t);r.s=0,r.clamp(),this.s!=i.s&&he.ZERO.subTo(r,r)}function DS(i){for(var r=this.abs(),s=i.t=2*r.t;--s>=0;)i[s]=0;for(s=0;s<r.t-1;++s){var l=r.am(s,r[s],i,2*s,0,1);(i[s+r.t]+=r.am(s+1,2*r[s],i,2*s+1,l,r.t-s-1))>=r.DV&&(i[s+r.t]-=r.DV,i[s+r.t+1]=1)}i.t>0&&(i[i.t-1]+=r.am(s,r[s],i,2*s,0,1)),i.s=0,i.clamp()}function _S(i,r,s){var l=i.abs();if(!(l.t<=0)){var c=this.abs();if(c.t<l.t){r?.fromInt(0),s!=null&&this.copyTo(s);return}s==null&&(s=Mt());var f=Mt(),d=this.s,h=i.s,v=this.DB-Kc(l[l.t-1]);v>0?(l.lShiftTo(v,f),c.lShiftTo(v,s)):(l.copyTo(f),c.copyTo(s));var b=f.t,w=f[b-1];if(w!=0){var A=w*(1<<this.F1)+(b>1?f[b-2]>>this.F2:0),U=this.FV/A,S=(1<<this.F1)/A,N=1<<this.F2,_=s.t,I=_-b,K=r??Mt();for(f.dlShiftTo(I,K),s.compareTo(K)>=0&&(s[s.t++]=1,s.subTo(K,s)),he.ONE.dlShiftTo(b,K),K.subTo(f,f);f.t<b;)f[f.t++]=0;for(;--I>=0;){var P=s[--_]==w?this.DM:Math.floor(s[_]*U+(s[_-1]+N)*S);if((s[_]+=f.am(0,P,s,I,0,b))<P)for(f.dlShiftTo(I,K),s.subTo(K,s);s[_]<--P;)s.subTo(K,s)}r!=null&&(s.drShiftTo(b,r),d!=h&&he.ZERO.subTo(r,r)),s.t=b,s.clamp(),v>0&&s.rShiftTo(v,s),d<0&&he.ZERO.subTo(s,s)}}}function RS(i){var r=Mt();return this.abs().divRemTo(i,null,r),this.s<0&&r.compareTo(he.ZERO)>0&&i.subTo(r,r),r}function NS(){if(this.t<1)return 0;var i=this[0];if((i&1)==0)return 0;var r=i&3;return r=r*(2-(i&15)*r)&15,r=r*(2-(i&255)*r)&255,r=r*(2-((i&65535)*r&65535))&65535,r=r*(2-i*r%this.DV)%this.DV,r>0?this.DV-r:-r}function MS(i){return this.compareTo(i)==0}function zS(i,r){for(var s=0,l=0,c=Math.min(i.t,this.t);s<c;)l+=this[s]+i[s],r[s++]=l&this.DM,l>>=this.DB;if(i.t<this.t){for(l+=i.s;s<this.t;)l+=this[s],r[s++]=l&this.DM,l>>=this.DB;l+=this.s}else{for(l+=this.s;s<i.t;)l+=i[s],r[s++]=l&this.DM,l>>=this.DB;l+=i.s}r.s=l<0?-1:0,l>0?r[s++]=l:l<-1&&(r[s++]=this.DV+l),r.t=s,r.clamp()}function BS(i){var r=Mt();return this.addTo(i,r),r}function OS(i){var r=Mt();return this.subTo(i,r),r}function jS(i){var r=Mt();return this.multiplyTo(i,r),r}function qS(i){var r=Mt();return this.divRemTo(i,r,null),r}function Xi(i){this.m=i,this.mp=i.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<i.DB-15)-1,this.mt2=2*i.t}function kS(i){var r=Mt();return i.abs().dlShiftTo(this.m.t,r),r.divRemTo(this.m,null,r),i.s<0&&r.compareTo(he.ZERO)>0&&this.m.subTo(r,r),r}function LS(i){var r=Mt();return i.copyTo(r),this.reduce(r),r}function HS(i){for(;i.t<=this.mt2;)i[i.t++]=0;for(var r=0;r<this.m.t;++r){var s=i[r]&32767,l=s*this.mpl+((s*this.mph+(i[r]>>15)*this.mpl&this.um)<<15)&i.DM;for(s=r+this.m.t,i[s]+=this.m.am(0,l,i,r,0,this.m.t);i[s]>=i.DV;)i[s]-=i.DV,i[++s]++}i.clamp(),i.drShiftTo(this.m.t,i),i.compareTo(this.m)>=0&&i.subTo(this.m,i)}function FS(i,r){i.squareTo(r),this.reduce(r)}function VS(i,r,s){i.multiplyTo(r,s),this.reduce(s)}Xi.prototype.convert=kS;Xi.prototype.revert=LS;Xi.prototype.reduce=HS;Xi.prototype.mulTo=VS;Xi.prototype.sqrTo=FS;function KS(i,r,s){var l=i.bitLength(),c,f=Vc(1),d=new Xi(r);if(l<=0)return f;l<18?c=1:l<48?c=3:l<144?c=4:l<768?c=5:c=6;var h=new Array,v=3,b=c-1,w=(1<<c)-1;if(h[1]=d.convert(this),c>1){var A=Mt();for(d.sqrTo(h[1],A);v<=w;)h[v]=Mt(),d.mulTo(A,h[v-2],h[v]),v+=2}var U=i.t-1,S,N=!0,_=Mt(),I;for(l=Kc(i[U])-1;U>=0;){for(l>=b?S=i[U]>>l-b&w:(S=(i[U]&(1<<l+1)-1)<<b-l,U>0&&(S|=i[U-1]>>this.DB+l-b)),v=c;(S&1)==0;)S>>=1,--v;if((l-=v)<0&&(l+=this.DB,--U),N)h[S].copyTo(f),N=!1;else{for(;v>1;)d.sqrTo(f,_),d.sqrTo(_,f),v-=2;v>0?d.sqrTo(f,_):(I=f,f=_,_=I),d.mulTo(_,h[S],f)}for(;U>=0&&(i[U]&1<<l)==0;)d.sqrTo(f,_),I=f,f=_,_=I,--l<0&&(l=this.DB-1,--U)}var K=d.revert(f);return s(null,K),K}he.prototype.copyTo=hS;he.prototype.fromInt=mS;he.prototype.fromString=gS;he.prototype.clamp=pS;he.prototype.dlShiftTo=xS;he.prototype.drShiftTo=ES;he.prototype.lShiftTo=AS;he.prototype.rShiftTo=TS;he.prototype.subTo=CS;he.prototype.multiplyTo=US;he.prototype.squareTo=DS;he.prototype.divRemTo=_S;he.prototype.invDigit=NS;he.prototype.addTo=zS;he.prototype.toString=vS;he.prototype.negate=yS;he.prototype.abs=bS;he.prototype.compareTo=SS;he.prototype.bitLength=wS;he.prototype.mod=RS;he.prototype.equals=MS;he.prototype.add=BS;he.prototype.subtract=OS;he.prototype.multiply=jS;he.prototype.divide=qS;he.prototype.modPow=KS;he.ZERO=Vc(0);he.ONE=Vc(1);function $u(i){return tt.Buffer.from(new Ab().random(i).toString(),"hex")}var YS=/^[89a-f]/i,IS="FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF",GS="userAttributes.",Vi=(function(){function i(s){this.N=new he(IS,16),this.g=new he("2",16),this.k=new he(this.hexHash(""+this.padHex(this.N)+this.padHex(this.g)),16),this.smallAValue=this.generateRandomSmallA(),this.getLargeAValue(function(){}),this.infoBits=tt.Buffer.from("Caldera Derived Key","utf8"),this.poolName=s}var r=i.prototype;return r.getSmallAValue=function(){return this.smallAValue},r.getLargeAValue=function(l){var c=this;this.largeAValue?l(null,this.largeAValue):this.calculateA(this.smallAValue,function(f,d){f&&l(f,null),c.largeAValue=d,l(null,c.largeAValue)})},r.generateRandomSmallA=function(){var l=$u(128).toString("hex"),c=new he(l,16);return c},r.generateRandomString=function(){return $u(40).toString("base64")},r.getRandomPassword=function(){return this.randomPassword},r.getSaltDevices=function(){return this.SaltToHashDevices},r.getVerifierDevices=function(){return this.verifierDevices},r.generateHashDevice=function(l,c,f){var d=this;this.randomPassword=this.generateRandomString();var h=""+l+c+":"+this.randomPassword,v=this.hash(h),b=$u(16).toString("hex");this.SaltToHashDevices=this.padHex(new he(b,16)),this.g.modPow(new he(this.hexHash(this.SaltToHashDevices+v),16),this.N,function(w,A){w&&f(w,null),d.verifierDevices=d.padHex(A),f(null,null)})},r.calculateA=function(l,c){var f=this;this.g.modPow(l,this.N,function(d,h){d&&c(d,null),h.mod(f.N).equals(he.ZERO)&&c(new Error("Illegal paramater. A mod N cannot be 0."),null),c(null,h)})},r.calculateU=function(l,c){this.UHexHash=this.hexHash(this.padHex(l)+this.padHex(c));var f=new he(this.UHexHash,16);return f},r.hash=function(l){var c=new el.Sha256;c.update(l);var f=c.digestSync(),d=tt.Buffer.from(f).toString("hex");return new Array(64-d.length).join("0")+d},r.hexHash=function(l){return this.hash(tt.Buffer.from(l,"hex"))},r.computehkdf=function(l,c){var f=tt.Buffer.concat([this.infoBits,tt.Buffer.from("","utf8")]),d=new el.Sha256(c);d.update(l);var h=d.digestSync(),v=new el.Sha256(h);v.update(f);var b=v.digestSync(),w=b,A=w.slice(0,16);return A},r.getPasswordAuthenticationKey=function(l,c,f,d,h){var v=this;if(f.mod(this.N).equals(he.ZERO))throw new Error("B cannot be zero.");if(this.UValue=this.calculateU(this.largeAValue,f),this.UValue.equals(he.ZERO))throw new Error("U cannot be zero.");var b=""+this.poolName+l+":"+c,w=this.hash(b),A=new he(this.hexHash(this.padHex(d)+w),16);this.calculateS(A,f,function(U,S){U&&h(U,null);var N=v.computehkdf(tt.Buffer.from(v.padHex(S),"hex"),tt.Buffer.from(v.padHex(v.UValue),"hex"));h(null,N)})},r.calculateS=function(l,c,f){var d=this;this.g.modPow(l,this.N,function(h,v){h&&f(h,null);var b=c.subtract(d.k.multiply(v));b.modPow(d.smallAValue.add(d.UValue.multiply(l)),d.N,function(w,A){w&&f(w,null),f(null,A.mod(d.N))})})},r.getNewPasswordRequiredChallengeUserAttributePrefix=function(){return GS},r.padHex=function(l){if(!(l instanceof he))throw new Error("Not a BigInteger");var c=l.compareTo(he.ZERO)<0,f=l.abs().toString(16);if(f=f.length%2!==0?"0"+f:f,f=YS.test(f)?"00"+f:f,c){var d=f.split("").map(function(v){var b=~parseInt(v,16)&15;return"0123456789ABCDEF".charAt(b)}).join(""),h=new he(d,16).add(he.ONE);f=h.toString(16),f.toUpperCase().startsWith("FF8")&&(f=f.substring(2))}return f},i})();var yg=(function(){function i(s){this.jwtToken=s||"",this.payload=this.decodePayload()}var r=i.prototype;return r.getJwtToken=function(){return this.jwtToken},r.getExpiration=function(){return this.payload.exp},r.getIssuedAt=function(){return this.payload.iat},r.decodePayload=function(){var l=this.jwtToken.split(".")[1];try{return JSON.parse(tt.Buffer.from(l,"base64").toString("utf8"))}catch{return{}}},i})();function QS(i,r){i.prototype=Object.create(r.prototype),i.prototype.constructor=i,zc(i,r)}function zc(i,r){return zc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,l){return s.__proto__=l,s},zc(i,r)}var d0=(function(i){function r(s){var l=s===void 0?{}:s,c=l.AccessToken;return i.call(this,c||"")||this}return QS(r,i),r})(yg);function XS(i,r){i.prototype=Object.create(r.prototype),i.prototype.constructor=i,Bc(i,r)}function Bc(i,r){return Bc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,l){return s.__proto__=l,s},Bc(i,r)}var h0=(function(i){function r(s){var l=s===void 0?{}:s,c=l.IdToken;return i.call(this,c||"")||this}return XS(r,i),r})(yg);var Oc=(function(){function i(s){var l=s===void 0?{}:s,c=l.RefreshToken;this.token=c||""}var r=i.prototype;return r.getToken=function(){return this.token},i})(),ZS="5.0.4";var JS="aws-amplify/"+ZS,bg={userAgent:JS,isReactNative:typeof navigator<"u"&&navigator.product==="ReactNative"},PS=function(){return bg.userAgent};var m0=(function(){function i(s){var l=s===void 0?{}:s,c=l.IdToken,f=l.RefreshToken,d=l.AccessToken,h=l.ClockDrift;if(d==null||c==null)throw new Error("Id token and Access Token must be present.");this.idToken=c,this.refreshToken=f,this.accessToken=d,this.clockDrift=h===void 0?this.calculateClockDrift():h}var r=i.prototype;return r.getIdToken=function(){return this.idToken},r.getRefreshToken=function(){return this.refreshToken},r.getAccessToken=function(){return this.accessToken},r.getClockDrift=function(){return this.clockDrift},r.calculateClockDrift=function(){var l=Math.floor(new Date/1e3),c=Math.min(this.accessToken.getIssuedAt(),this.idToken.getIssuedAt());return l-c},r.isValid=function(){var l=Math.floor(new Date/1e3),c=l-this.clockDrift;return c<this.accessToken.getExpiration()&&c<this.idToken.getExpiration()},i})();var $S=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],WS=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],g0=(function(){function i(){}var r=i.prototype;return r.getNowString=function(){var l=new Date,c=WS[l.getUTCDay()],f=$S[l.getUTCMonth()],d=l.getUTCDate(),h=l.getUTCHours();h<10&&(h="0"+h);var v=l.getUTCMinutes();v<10&&(v="0"+v);var b=l.getUTCSeconds();b<10&&(b="0"+b);var w=l.getUTCFullYear(),A=c+" "+f+" "+d+" "+h+":"+v+":"+b+" UTC "+w;return A},i})();var Sg=(function(){function i(s){var l=s===void 0?{}:s,c=l.Name,f=l.Value;this.Name=c||"",this.Value=f||""}var r=i.prototype;return r.getValue=function(){return this.Value},r.setValue=function(l){return this.Value=l,this},r.getName=function(){return this.Name},r.setName=function(l){return this.Name=l,this},r.toString=function(){return JSON.stringify(this)},r.toJSON=function(){return{Name:this.Name,Value:this.Value}},i})();var Za={},e2=(function(){function i(){}return i.setItem=function(s,l){return Za[s]=l,Za[s]},i.getItem=function(s){return Object.prototype.hasOwnProperty.call(Za,s)?Za[s]:void 0},i.removeItem=function(s){return delete Za[s]},i.clear=function(){return Za={},Za},i})(),wg=(function(){function i(){try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.cognito.test-ls",1),this.storageWindow.removeItem("aws.cognito.test-ls")}catch{this.storageWindow=e2}}var r=i.prototype;return r.getStorage=function(){return this.storageWindow},i})();var t2=typeof navigator<"u",p0=t2?bg.isReactNative?"react-native":navigator.userAgent:"nodejs",nl=(function(){function i(s){if(s==null||s.Username==null||s.Pool==null)throw new Error("Username and Pool information are required.");this.username=s.Username||"",this.pool=s.Pool,this.Session=null,this.client=s.Pool.client,this.signInUserSession=null,this.authenticationFlowType="USER_SRP_AUTH",this.storage=s.Storage||new wg().getStorage(),this.keyPrefix="CognitoIdentityServiceProvider."+this.pool.getClientId(),this.userDataKey=this.keyPrefix+"."+this.username+".userData"}var r=i.prototype;return r.setSignInUserSession=function(l){this.clearCachedUserData(),this.signInUserSession=l,this.cacheTokens()},r.getSignInUserSession=function(){return this.signInUserSession},r.getUsername=function(){return this.username},r.getAuthenticationFlowType=function(){return this.authenticationFlowType},r.setAuthenticationFlowType=function(l){this.authenticationFlowType=l},r.initiateAuth=function(l,c){var f=this,d=l.getAuthParameters();d.USERNAME=this.username;var h=Object.keys(l.getValidationData()).length!==0?l.getValidationData():l.getClientMetadata(),v={AuthFlow:"CUSTOM_AUTH",ClientId:this.pool.getClientId(),AuthParameters:d,ClientMetadata:h};this.getUserContextData()&&(v.UserContextData=this.getUserContextData()),this.client.request("InitiateAuth",v,function(b,w){if(b)return c.onFailure(b);var A=w.ChallengeName,U=w.ChallengeParameters;return A==="CUSTOM_CHALLENGE"?(f.Session=w.Session,c.customChallenge(U)):(f.signInUserSession=f.getCognitoUserSession(w.AuthenticationResult),f.cacheTokens(),c.onSuccess(f.signInUserSession))})},r.authenticateUser=function(l,c){return this.authenticationFlowType==="USER_PASSWORD_AUTH"?this.authenticateUserPlainUsernamePassword(l,c):this.authenticationFlowType==="USER_SRP_AUTH"||this.authenticationFlowType==="CUSTOM_AUTH"?this.authenticateUserDefaultAuth(l,c):c.onFailure(new Error("Authentication flow type is invalid."))},r.authenticateUserDefaultAuth=function(l,c){var f=this,d=new Vi(this.pool.getUserPoolName()),h=new g0,v,b,w={};this.deviceKey!=null&&(w.DEVICE_KEY=this.deviceKey),w.USERNAME=this.username,d.getLargeAValue(function(A,U){A&&c.onFailure(A),w.SRP_A=U.toString(16),f.authenticationFlowType==="CUSTOM_AUTH"&&(w.CHALLENGE_NAME="SRP_A");var S=Object.keys(l.getValidationData()).length!==0?l.getValidationData():l.getClientMetadata(),N={AuthFlow:f.authenticationFlowType,ClientId:f.pool.getClientId(),AuthParameters:w,ClientMetadata:S};f.getUserContextData(f.username)&&(N.UserContextData=f.getUserContextData(f.username)),f.client.request("InitiateAuth",N,function(_,I){if(_)return c.onFailure(_);var K=I.ChallengeParameters;f.username=K.USER_ID_FOR_SRP,f.userDataKey=f.keyPrefix+"."+f.username+".userData",v=new he(K.SRP_B,16),b=new he(K.SALT,16),f.getCachedDeviceKeyAndPassword(),d.getPasswordAuthenticationKey(f.username,l.getPassword(),v,b,function(P,J){P&&c.onFailure(P);var $=h.getNowString(),oe=tt.Buffer.concat([tt.Buffer.from(f.pool.getUserPoolName(),"utf8"),tt.Buffer.from(f.username,"utf8"),tt.Buffer.from(K.SECRET_BLOCK,"base64"),tt.Buffer.from($,"utf8")]),X=new el.Sha256(J);X.update(oe);var W=X.digestSync(),L=tt.Buffer.from(W).toString("base64"),Z={};Z.USERNAME=f.username,Z.PASSWORD_CLAIM_SECRET_BLOCK=K.SECRET_BLOCK,Z.TIMESTAMP=$,Z.PASSWORD_CLAIM_SIGNATURE=L,f.deviceKey!=null&&(Z.DEVICE_KEY=f.deviceKey);var ce=function(le,ue){return f.client.request("RespondToAuthChallenge",le,function(Ae,j){return Ae&&Ae.code==="ResourceNotFoundException"&&Ae.message.toLowerCase().indexOf("device")!==-1?(Z.DEVICE_KEY=null,f.deviceKey=null,f.randomPassword=null,f.deviceGroupKey=null,f.clearCachedDeviceKeyAndPassword(),ce(le,ue)):ue(Ae,j)})},ne={ChallengeName:"PASSWORD_VERIFIER",ClientId:f.pool.getClientId(),ChallengeResponses:Z,Session:I.Session,ClientMetadata:S};f.getUserContextData()&&(ne.UserContextData=f.getUserContextData()),ce(ne,function(ee,le){return ee?c.onFailure(ee):f.authenticateUserInternal(le,d,c)})})})})},r.authenticateUserPlainUsernamePassword=function(l,c){var f=this,d={};if(d.USERNAME=this.username,d.PASSWORD=l.getPassword(),!d.PASSWORD){c.onFailure(new Error("PASSWORD parameter is required"));return}var h=new Vi(this.pool.getUserPoolName());this.getCachedDeviceKeyAndPassword(),this.deviceKey!=null&&(d.DEVICE_KEY=this.deviceKey);var v=Object.keys(l.getValidationData()).length!==0?l.getValidationData():l.getClientMetadata(),b={AuthFlow:"USER_PASSWORD_AUTH",ClientId:this.pool.getClientId(),AuthParameters:d,ClientMetadata:v};this.getUserContextData(this.username)&&(b.UserContextData=this.getUserContextData(this.username)),this.client.request("InitiateAuth",b,function(w,A){return w?c.onFailure(w):f.authenticateUserInternal(A,h,c)})},r.authenticateUserInternal=function(l,c,f){var d=this,h=l.ChallengeName,v=l.ChallengeParameters;if(h==="SMS_MFA")return this.Session=l.Session,f.mfaRequired(h,v);if(h==="SELECT_MFA_TYPE")return this.Session=l.Session,f.selectMFAType(h,v);if(h==="MFA_SETUP")return this.Session=l.Session,f.mfaSetup(h,v);if(h==="SOFTWARE_TOKEN_MFA")return this.Session=l.Session,f.totpRequired(h,v);if(h==="CUSTOM_CHALLENGE")return this.Session=l.Session,f.customChallenge(v);if(h==="NEW_PASSWORD_REQUIRED"){this.Session=l.Session;var b=null,w=null,A=[],U=c.getNewPasswordRequiredChallengeUserAttributePrefix();if(v&&(b=JSON.parse(l.ChallengeParameters.userAttributes),w=JSON.parse(l.ChallengeParameters.requiredAttributes)),w)for(var S=0;S<w.length;S++)A[S]=w[S].substr(U.length);return f.newPasswordRequired(b,A)}if(h==="DEVICE_SRP_AUTH"){this.Session=l.Session,this.getDeviceResponse(f);return}this.signInUserSession=this.getCognitoUserSession(l.AuthenticationResult),this.challengeName=h,this.cacheTokens();var N=l.AuthenticationResult.NewDeviceMetadata;if(N==null)return f.onSuccess(this.signInUserSession);c.generateHashDevice(l.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,l.AuthenticationResult.NewDeviceMetadata.DeviceKey,function(_){if(_)return f.onFailure(_);var I={Salt:tt.Buffer.from(c.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:tt.Buffer.from(c.getVerifierDevices(),"hex").toString("base64")};d.verifierDevices=I.PasswordVerifier,d.deviceGroupKey=N.DeviceGroupKey,d.randomPassword=c.getRandomPassword(),d.client.request("ConfirmDevice",{DeviceKey:N.DeviceKey,AccessToken:d.signInUserSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:I,DeviceName:p0},function(K,P){return K?f.onFailure(K):(d.deviceKey=l.AuthenticationResult.NewDeviceMetadata.DeviceKey,d.cacheDeviceKeyAndPassword(),P.UserConfirmationNecessary===!0?f.onSuccess(d.signInUserSession,P.UserConfirmationNecessary):f.onSuccess(d.signInUserSession))})})},r.completeNewPasswordChallenge=function(l,c,f,d){var h=this;if(!l)return f.onFailure(new Error("New password is required."));var v=new Vi(this.pool.getUserPoolName()),b=v.getNewPasswordRequiredChallengeUserAttributePrefix(),w={};c&&Object.keys(c).forEach(function(U){w[b+U]=c[U]}),w.NEW_PASSWORD=l,w.USERNAME=this.username;var A={ChallengeName:"NEW_PASSWORD_REQUIRED",ClientId:this.pool.getClientId(),ChallengeResponses:w,Session:this.Session,ClientMetadata:d};this.getUserContextData()&&(A.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",A,function(U,S){return U?f.onFailure(U):h.authenticateUserInternal(S,v,f)})},r.getDeviceResponse=function(l,c){var f=this,d=new Vi(this.deviceGroupKey),h=new g0,v={};v.USERNAME=this.username,v.DEVICE_KEY=this.deviceKey,d.getLargeAValue(function(b,w){b&&l.onFailure(b),v.SRP_A=w.toString(16);var A={ChallengeName:"DEVICE_SRP_AUTH",ClientId:f.pool.getClientId(),ChallengeResponses:v,ClientMetadata:c,Session:f.Session};f.getUserContextData()&&(A.UserContextData=f.getUserContextData()),f.client.request("RespondToAuthChallenge",A,function(U,S){if(U)return l.onFailure(U);var N=S.ChallengeParameters,_=new he(N.SRP_B,16),I=new he(N.SALT,16);d.getPasswordAuthenticationKey(f.deviceKey,f.randomPassword,_,I,function(K,P){if(K)return l.onFailure(K);var J=h.getNowString(),$=tt.Buffer.concat([tt.Buffer.from(f.deviceGroupKey,"utf8"),tt.Buffer.from(f.deviceKey,"utf8"),tt.Buffer.from(N.SECRET_BLOCK,"base64"),tt.Buffer.from(J,"utf8")]),oe=new el.Sha256(P);oe.update($);var X=oe.digestSync(),W=tt.Buffer.from(X).toString("base64"),L={};L.USERNAME=f.username,L.PASSWORD_CLAIM_SECRET_BLOCK=N.SECRET_BLOCK,L.TIMESTAMP=J,L.PASSWORD_CLAIM_SIGNATURE=W,L.DEVICE_KEY=f.deviceKey;var Z={ChallengeName:"DEVICE_PASSWORD_VERIFIER",ClientId:f.pool.getClientId(),ChallengeResponses:L,Session:S.Session};f.getUserContextData()&&(Z.UserContextData=f.getUserContextData()),f.client.request("RespondToAuthChallenge",Z,function(ce,ne){return ce?l.onFailure(ce):(f.signInUserSession=f.getCognitoUserSession(ne.AuthenticationResult),f.cacheTokens(),l.onSuccess(f.signInUserSession))})})})})},r.confirmRegistration=function(l,c,f,d){var h={ClientId:this.pool.getClientId(),ConfirmationCode:l,Username:this.username,ForceAliasCreation:c,ClientMetadata:d};this.getUserContextData()&&(h.UserContextData=this.getUserContextData()),this.client.request("ConfirmSignUp",h,function(v){return v?f(v,null):f(null,"SUCCESS")})},r.sendCustomChallengeAnswer=function(l,c,f){var d=this,h={};h.USERNAME=this.username,h.ANSWER=l;var v=new Vi(this.pool.getUserPoolName());this.getCachedDeviceKeyAndPassword(),this.deviceKey!=null&&(h.DEVICE_KEY=this.deviceKey);var b={ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:h,ClientId:this.pool.getClientId(),Session:this.Session,ClientMetadata:f};this.getUserContextData()&&(b.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",b,function(w,A){return w?c.onFailure(w):d.authenticateUserInternal(A,v,c)})},r.sendMFACode=function(l,c,f,d){var h=this,v={};v.USERNAME=this.username,v.SMS_MFA_CODE=l;var b=f||"SMS_MFA";b==="SOFTWARE_TOKEN_MFA"&&(v.SOFTWARE_TOKEN_MFA_CODE=l),this.deviceKey!=null&&(v.DEVICE_KEY=this.deviceKey);var w={ChallengeName:b,ChallengeResponses:v,ClientId:this.pool.getClientId(),Session:this.Session,ClientMetadata:d};this.getUserContextData()&&(w.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",w,function(A,U){if(A)return c.onFailure(A);var S=U.ChallengeName;if(S==="DEVICE_SRP_AUTH"){h.getDeviceResponse(c);return}if(h.signInUserSession=h.getCognitoUserSession(U.AuthenticationResult),h.cacheTokens(),U.AuthenticationResult.NewDeviceMetadata==null)return c.onSuccess(h.signInUserSession);var N=new Vi(h.pool.getUserPoolName());N.generateHashDevice(U.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,U.AuthenticationResult.NewDeviceMetadata.DeviceKey,function(_){if(_)return c.onFailure(_);var I={Salt:tt.Buffer.from(N.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:tt.Buffer.from(N.getVerifierDevices(),"hex").toString("base64")};h.verifierDevices=I.PasswordVerifier,h.deviceGroupKey=U.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,h.randomPassword=N.getRandomPassword(),h.client.request("ConfirmDevice",{DeviceKey:U.AuthenticationResult.NewDeviceMetadata.DeviceKey,AccessToken:h.signInUserSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:I,DeviceName:p0},function(K,P){return K?c.onFailure(K):(h.deviceKey=U.AuthenticationResult.NewDeviceMetadata.DeviceKey,h.cacheDeviceKeyAndPassword(),P.UserConfirmationNecessary===!0?c.onSuccess(h.signInUserSession,P.UserConfirmationNecessary):c.onSuccess(h.signInUserSession))})})})},r.changePassword=function(l,c,f,d){if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return f(new Error("User is not authenticated"),null);this.client.request("ChangePassword",{PreviousPassword:l,ProposedPassword:c,AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:d},function(h){return h?f(h,null):f(null,"SUCCESS")})},r.enableMFA=function(l){if(this.signInUserSession==null||!this.signInUserSession.isValid())return l(new Error("User is not authenticated"),null);var c=[],f={DeliveryMedium:"SMS",AttributeName:"phone_number"};c.push(f),this.client.request("SetUserSettings",{MFAOptions:c,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(d){return d?l(d,null):l(null,"SUCCESS")})},r.setUserMfaPreference=function(l,c,f){if(this.signInUserSession==null||!this.signInUserSession.isValid())return f(new Error("User is not authenticated"),null);this.client.request("SetUserMFAPreference",{SMSMfaSettings:l,SoftwareTokenMfaSettings:c,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(d){return d?f(d,null):f(null,"SUCCESS")})},r.disableMFA=function(l){if(this.signInUserSession==null||!this.signInUserSession.isValid())return l(new Error("User is not authenticated"),null);var c=[];this.client.request("SetUserSettings",{MFAOptions:c,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(f){return f?l(f,null):l(null,"SUCCESS")})},r.deleteUser=function(l,c){var f=this;if(this.signInUserSession==null||!this.signInUserSession.isValid())return l(new Error("User is not authenticated"),null);this.client.request("DeleteUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:c},function(d){return d?l(d,null):(f.clearCachedUser(),l(null,"SUCCESS"))})},r.updateAttributes=function(l,c,f){var d=this;if(this.signInUserSession==null||!this.signInUserSession.isValid())return c(new Error("User is not authenticated"),null);this.client.request("UpdateUserAttributes",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserAttributes:l,ClientMetadata:f},function(h,v){return h?c(h,null):d.getUserData(function(){return c(null,"SUCCESS",v)},{bypassCache:!0})})},r.getUserAttributes=function(l){if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return l(new Error("User is not authenticated"),null);this.client.request("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(c,f){if(c)return l(c,null);for(var d=[],h=0;h<f.UserAttributes.length;h++){var v={Name:f.UserAttributes[h].Name,Value:f.UserAttributes[h].Value},b=new Sg(v);d.push(b)}return l(null,d)})},r.getMFAOptions=function(l){if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return l(new Error("User is not authenticated"),null);this.client.request("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(c,f){return c?l(c,null):l(null,f.MFAOptions)})},r.createGetUserRequest=function(){return this.client.promisifyRequest("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()})},r.refreshSessionIfPossible=function(l){var c=this;return l===void 0&&(l={}),new Promise(function(f){var d=c.signInUserSession.getRefreshToken();d&&d.getToken()?c.refreshSession(d,f,l.clientMetadata):f()})},r.getUserData=function(l,c){var f=this;if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return this.clearCachedUserData(),l(new Error("User is not authenticated"),null);var d=this.getUserDataFromCache();if(!d){this.fetchUserData().then(function(h){l(null,h)}).catch(l);return}if(this.isFetchUserDataAndTokenRequired(c)){this.fetchUserData().then(function(h){return f.refreshSessionIfPossible(c).then(function(){return h})}).then(function(h){return l(null,h)}).catch(l);return}try{l(null,JSON.parse(d));return}catch(h){this.clearCachedUserData(),l(h,null);return}},r.getUserDataFromCache=function(){var l=this.storage.getItem(this.userDataKey);return l},r.isFetchUserDataAndTokenRequired=function(l){var c=l||{},f=c.bypassCache,d=f===void 0?!1:f;return d},r.fetchUserData=function(){var l=this;return this.createGetUserRequest().then(function(c){return l.cacheUserData(c),c})},r.deleteAttributes=function(l,c){var f=this;if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return c(new Error("User is not authenticated"),null);this.client.request("DeleteUserAttributes",{UserAttributeNames:l,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(d){return d?c(d,null):f.getUserData(function(){return c(null,"SUCCESS")},{bypassCache:!0})})},r.resendConfirmationCode=function(l,c){var f={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:c};this.client.request("ResendConfirmationCode",f,function(d,h){return d?l(d,null):l(null,h)})},r.getSession=function(l,c){if(c===void 0&&(c={}),this.username==null)return l(new Error("Username is null. Cannot retrieve a new session"),null);if(this.signInUserSession!=null&&this.signInUserSession.isValid())return l(null,this.signInUserSession);var f="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,d=f+".idToken",h=f+".accessToken",v=f+".refreshToken",b=f+".clockDrift";if(this.storage.getItem(d)){var w=new h0({IdToken:this.storage.getItem(d)}),A=new d0({AccessToken:this.storage.getItem(h)}),U=new Oc({RefreshToken:this.storage.getItem(v)}),S=parseInt(this.storage.getItem(b),0)||0,N={IdToken:w,AccessToken:A,RefreshToken:U,ClockDrift:S},_=new m0(N);if(_.isValid())return this.signInUserSession=_,l(null,this.signInUserSession);if(!U.getToken())return l(new Error("Cannot retrieve a new session. Please authenticate."),null);this.refreshSession(U,l,c.clientMetadata)}else l(new Error("Local storage is missing an ID Token, Please authenticate"),null)},r.refreshSession=function(l,c,f){var d=this,h=this.pool.wrapRefreshSessionCallback?this.pool.wrapRefreshSessionCallback(c):c,v={};v.REFRESH_TOKEN=l.getToken();var b="CognitoIdentityServiceProvider."+this.pool.getClientId(),w=b+".LastAuthUser";if(this.storage.getItem(w)){this.username=this.storage.getItem(w);var A=b+"."+this.username+".deviceKey";this.deviceKey=this.storage.getItem(A),v.DEVICE_KEY=this.deviceKey}var U={ClientId:this.pool.getClientId(),AuthFlow:"REFRESH_TOKEN_AUTH",AuthParameters:v,ClientMetadata:f};this.getUserContextData()&&(U.UserContextData=this.getUserContextData()),this.client.requestWithRetry("InitiateAuth",U,function(S,N){if(S)return S.code==="NotAuthorizedException"&&d.clearCachedUser(),h(S,null);if(N){var _=N.AuthenticationResult;return Object.prototype.hasOwnProperty.call(_,"RefreshToken")||(_.RefreshToken=l.getToken()),d.signInUserSession=d.getCognitoUserSession(_),d.cacheTokens(),h(null,d.signInUserSession)}})},r.cacheTokens=function(){var l="CognitoIdentityServiceProvider."+this.pool.getClientId(),c=l+"."+this.username+".idToken",f=l+"."+this.username+".accessToken",d=l+"."+this.username+".refreshToken",h=l+"."+this.username+".clockDrift",v=l+".LastAuthUser";this.storage.setItem(c,this.signInUserSession.getIdToken().getJwtToken()),this.storage.setItem(f,this.signInUserSession.getAccessToken().getJwtToken()),this.storage.setItem(d,this.signInUserSession.getRefreshToken().getToken()),this.storage.setItem(h,""+this.signInUserSession.getClockDrift()),this.storage.setItem(v,this.username)},r.cacheUserData=function(l){this.storage.setItem(this.userDataKey,JSON.stringify(l))},r.clearCachedUserData=function(){this.storage.removeItem(this.userDataKey)},r.clearCachedUser=function(){this.clearCachedTokens(),this.clearCachedUserData()},r.cacheDeviceKeyAndPassword=function(){var l="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,c=l+".deviceKey",f=l+".randomPasswordKey",d=l+".deviceGroupKey";this.storage.setItem(c,this.deviceKey),this.storage.setItem(f,this.randomPassword),this.storage.setItem(d,this.deviceGroupKey)},r.getCachedDeviceKeyAndPassword=function(){var l="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,c=l+".deviceKey",f=l+".randomPasswordKey",d=l+".deviceGroupKey";this.storage.getItem(c)&&(this.deviceKey=this.storage.getItem(c),this.randomPassword=this.storage.getItem(f),this.deviceGroupKey=this.storage.getItem(d))},r.clearCachedDeviceKeyAndPassword=function(){var l="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,c=l+".deviceKey",f=l+".randomPasswordKey",d=l+".deviceGroupKey";this.storage.removeItem(c),this.storage.removeItem(f),this.storage.removeItem(d)},r.clearCachedTokens=function(){var l="CognitoIdentityServiceProvider."+this.pool.getClientId(),c=l+"."+this.username+".idToken",f=l+"."+this.username+".accessToken",d=l+"."+this.username+".refreshToken",h=l+".LastAuthUser",v=l+"."+this.username+".clockDrift";this.storage.removeItem(c),this.storage.removeItem(f),this.storage.removeItem(d),this.storage.removeItem(h),this.storage.removeItem(v)},r.getCognitoUserSession=function(l){var c=new h0(l),f=new d0(l),d=new Oc(l),h={IdToken:c,AccessToken:f,RefreshToken:d};return new m0(h)},r.forgotPassword=function(l,c){var f={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:c};this.getUserContextData()&&(f.UserContextData=this.getUserContextData()),this.client.request("ForgotPassword",f,function(d,h){return d?l.onFailure(d):typeof l.inputVerificationCode=="function"?l.inputVerificationCode(h):l.onSuccess(h)})},r.confirmPassword=function(l,c,f,d){var h={ClientId:this.pool.getClientId(),Username:this.username,ConfirmationCode:l,Password:c,ClientMetadata:d};this.getUserContextData()&&(h.UserContextData=this.getUserContextData()),this.client.request("ConfirmForgotPassword",h,function(v){return v?f.onFailure(v):f.onSuccess("SUCCESS")})},r.getAttributeVerificationCode=function(l,c,f){if(this.signInUserSession==null||!this.signInUserSession.isValid())return c.onFailure(new Error("User is not authenticated"));this.client.request("GetUserAttributeVerificationCode",{AttributeName:l,AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:f},function(d,h){return d?c.onFailure(d):typeof c.inputVerificationCode=="function"?c.inputVerificationCode(h):c.onSuccess("SUCCESS")})},r.verifyAttribute=function(l,c,f){if(this.signInUserSession==null||!this.signInUserSession.isValid())return f.onFailure(new Error("User is not authenticated"));this.client.request("VerifyUserAttribute",{AttributeName:l,Code:c,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(d){return d?f.onFailure(d):f.onSuccess("SUCCESS")})},r.getDevice=function(l){if(this.signInUserSession==null||!this.signInUserSession.isValid())return l.onFailure(new Error("User is not authenticated"));this.client.request("GetDevice",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey},function(c,f){return c?l.onFailure(c):l.onSuccess(f)})},r.forgetSpecificDevice=function(l,c){if(this.signInUserSession==null||!this.signInUserSession.isValid())return c.onFailure(new Error("User is not authenticated"));this.client.request("ForgetDevice",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:l},function(f){return f?c.onFailure(f):c.onSuccess("SUCCESS")})},r.forgetDevice=function(l){var c=this;this.forgetSpecificDevice(this.deviceKey,{onFailure:l.onFailure,onSuccess:function(d){return c.deviceKey=null,c.deviceGroupKey=null,c.randomPassword=null,c.clearCachedDeviceKeyAndPassword(),l.onSuccess(d)}})},r.setDeviceStatusRemembered=function(l){if(this.signInUserSession==null||!this.signInUserSession.isValid())return l.onFailure(new Error("User is not authenticated"));this.client.request("UpdateDeviceStatus",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey,DeviceRememberedStatus:"remembered"},function(c){return c?l.onFailure(c):l.onSuccess("SUCCESS")})},r.setDeviceStatusNotRemembered=function(l){if(this.signInUserSession==null||!this.signInUserSession.isValid())return l.onFailure(new Error("User is not authenticated"));this.client.request("UpdateDeviceStatus",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey,DeviceRememberedStatus:"not_remembered"},function(c){return c?l.onFailure(c):l.onSuccess("SUCCESS")})},r.listDevices=function(l,c,f){if(this.signInUserSession==null||!this.signInUserSession.isValid())return f.onFailure(new Error("User is not authenticated"));var d={AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),Limit:l};c&&(d.PaginationToken=c),this.client.request("ListDevices",d,function(h,v){return h?f.onFailure(h):f.onSuccess(v)})},r.globalSignOut=function(l){var c=this;if(this.signInUserSession==null||!this.signInUserSession.isValid())return l.onFailure(new Error("User is not authenticated"));this.client.request("GlobalSignOut",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(f){return f?l.onFailure(f):(c.clearCachedUser(),l.onSuccess("SUCCESS"))})},r.signOut=function(l){var c=this;if(!l||typeof l!="function"){this.cleanClientData();return}this.getSession(function(f,d){if(f)return l(f);c.revokeTokens(function(h){c.cleanClientData(),l(h)})})},r.revokeTokens=function(l){if(l===void 0&&(l=function(){}),typeof l!="function")throw new Error("Invalid revokeTokenCallback. It should be a function.");if(!this.signInUserSession){var c=new Error("User is not authenticated");return l(c)}if(!this.signInUserSession.getAccessToken()){var f=new Error("No Access token available");return l(f)}var d=this.signInUserSession.getRefreshToken().getToken(),h=this.signInUserSession.getAccessToken();if(this.isSessionRevocable(h)&&d)return this.revokeToken({token:d,callback:l});l()},r.isSessionRevocable=function(l){if(l&&typeof l.decodePayload=="function")try{var c=l.decodePayload(),f=c.origin_jti;return!!f}catch{}return!1},r.cleanClientData=function(){this.signInUserSession=null,this.clearCachedUser()},r.revokeToken=function(l){var c=l.token,f=l.callback;this.client.requestWithRetry("RevokeToken",{Token:c,ClientId:this.pool.getClientId()},function(d){if(d)return f(d);f()})},r.sendMFASelectionAnswer=function(l,c){var f=this,d={};d.USERNAME=this.username,d.ANSWER=l;var h={ChallengeName:"SELECT_MFA_TYPE",ChallengeResponses:d,ClientId:this.pool.getClientId(),Session:this.Session};this.getUserContextData()&&(h.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",h,function(v,b){if(v)return c.onFailure(v);if(f.Session=b.Session,l==="SMS_MFA")return c.mfaRequired(b.ChallengeName,b.ChallengeParameters);if(l==="SOFTWARE_TOKEN_MFA")return c.totpRequired(b.ChallengeName,b.ChallengeParameters)})},r.getUserContextData=function(){var l=this.pool;return l.getUserContextData(this.username)},r.associateSoftwareToken=function(l){var c=this;this.signInUserSession!=null&&this.signInUserSession.isValid()?this.client.request("AssociateSoftwareToken",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(f,d){return f?l.onFailure(f):l.associateSecretCode(d.SecretCode)}):this.client.request("AssociateSoftwareToken",{Session:this.Session},function(f,d){return f?l.onFailure(f):(c.Session=d.Session,l.associateSecretCode(d.SecretCode))})},r.verifySoftwareToken=function(l,c,f){var d=this;this.signInUserSession!=null&&this.signInUserSession.isValid()?this.client.request("VerifySoftwareToken",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserCode:l,FriendlyDeviceName:c},function(h,v){return h?f.onFailure(h):f.onSuccess(v)}):this.client.request("VerifySoftwareToken",{Session:this.Session,UserCode:l,FriendlyDeviceName:c},function(h,v){if(h)return f.onFailure(h);d.Session=v.Session;var b={};b.USERNAME=d.username;var w={ChallengeName:"MFA_SETUP",ClientId:d.pool.getClientId(),ChallengeResponses:b,Session:d.Session};d.getUserContextData()&&(w.UserContextData=d.getUserContextData()),d.client.request("RespondToAuthChallenge",w,function(A,U){return A?f.onFailure(A):(d.signInUserSession=d.getCognitoUserSession(U.AuthenticationResult),d.cacheTokens(),f.onSuccess(d.signInUserSession))})})},i})();function n2(i,r){return r=r||{},new Promise(function(s,l){var c=new XMLHttpRequest,f=[],d=[],h={},v=function(){return{ok:(c.status/100|0)==2,statusText:c.statusText,status:c.status,url:c.responseURL,text:function(){return Promise.resolve(c.responseText)},json:function(){return Promise.resolve(c.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([c.response]))},clone:v,headers:{keys:function(){return f},entries:function(){return d},get:function(w){return h[w.toLowerCase()]},has:function(w){return w.toLowerCase()in h}}}};for(var b in c.open(r.method||"get",i,!0),c.onload=function(){c.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(w,A,U){f.push(A=A.toLowerCase()),d.push([A,U]),h[A]=h[A]?h[A]+","+U:U}),s(v())},c.onerror=l,c.withCredentials=r.credentials=="include",r.headers)c.setRequestHeader(b,r.headers[b]);c.send(r.body||null)})}const a2=Object.freeze(Object.defineProperty({__proto__:null,default:n2},Symbol.toStringTag,{value:"Module"})),v0=Hc(a2);var Wu,y0;function i2(){return y0||(y0=1,Wu=self.fetch||(self.fetch=v0.default||v0)),Wu}i2();function Ii(){}Ii.prototype.userAgent=PS();var r2=function(r){var s=Ii.category?" "+Ii.category:"",l=Ii.framework?" framework/"+Ii.framework:"",c=""+Ii.prototype.userAgent+s+l;return c};function l2(i,r){i.prototype=Object.create(r.prototype),i.prototype.constructor=i,al(i,r)}function jc(i){var r=typeof Map=="function"?new Map:void 0;return jc=function(l){if(l===null||!o2(l))return l;if(typeof l!="function")throw new TypeError("Super expression must either be null or a function");if(r!==void 0){if(r.has(l))return r.get(l);r.set(l,c)}function c(){return s2(l,arguments,qc(this).constructor)}return c.prototype=Object.create(l.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),al(c,l)},jc(i)}function s2(i,r,s){if(xg())return Reflect.construct.apply(null,arguments);var l=[null];l.push.apply(l,r);var c=new(i.bind.apply(i,l));return s&&al(c,s.prototype),c}function xg(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xg=function(){return!!i})()}function o2(i){try{return Function.toString.call(i).indexOf("[native code]")!==-1}catch{return typeof i=="function"}}function al(i,r){return al=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,l){return s.__proto__=l,s},al(i,r)}function qc(i){return qc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qc(i)}var u2=(function(i){function r(s,l,c,f){var d;return d=i.call(this,s)||this,d.code=l,d.name=c,d.statusCode=f,d}return l2(r,i),r})(jc(Error)),c2=(function(){function i(s,l,c){this.endpoint=l||"https://cognito-idp."+s+".amazonaws.com/";var f=c||{},d=f.credentials;this.fetchOptions=d?{credentials:d}:{}}var r=i.prototype;return r.promisifyRequest=function(l,c){var f=this;return new Promise(function(d,h){f.request(l,c,function(v,b){v?h(new u2(v.message,v.code,v.name,v.statusCode)):d(b)})})},r.requestWithRetry=function(l,c,f){var d=this,h=5*1e3;h2(function(v){return new Promise(function(b,w){d.request(l,v,function(A,U){A?w(A):b(U)})})},[c],h).then(function(v){return f(null,v)}).catch(function(v){return f(v)})},r.request=function(l,c,f){var d={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityProviderService."+l,"X-Amz-User-Agent":r2(),"Cache-Control":"no-store"},h=Object.assign({},this.fetchOptions,{headers:d,method:"POST",mode:"cors",body:JSON.stringify(c)}),v;fetch(this.endpoint,h).then(function(b){return v=b,b},function(b){throw b instanceof TypeError?new Error("Network error"):b}).then(function(b){return b.json().catch(function(){return{}})}).then(function(b){if(v.ok)return f(null,b);var w=(b.__type||b.code).split("#").pop(),A=new Error(b.message||b.Message||null);return A.name=w,A.code=w,f(A)}).catch(function(b){if(v&&v.headers&&v.headers.get("x-amzn-errortype"))try{var w=v.headers.get("x-amzn-errortype").split(":")[0],A=new Error(v.status?v.status.toString():null);return A.code=w,A.name=w,A.statusCode=v.status,f(A)}catch{return f(b)}else b instanceof Error&&b.message==="Network error"&&(b.code="NetworkError");return f(b)})},i})(),Ss={debug:function(){}},f2=function(r){var s="nonRetryable";return r&&r[s]};function Eg(i,r,s,l){if(l===void 0&&(l=1),typeof i!="function")throw Error("functionToRetry must be a function");return Ss.debug(i.name+" attempt #"+l+" with args: "+JSON.stringify(r)),i.apply(void 0,r).catch(function(c){if(Ss.debug("error on "+i.name,c),f2(c))throw Ss.debug(i.name+" non retryable error",c),c;var f=s(l,r,c);if(Ss.debug(i.name+" retrying in "+f+" ms"),f!==!1)return new Promise(function(d){return setTimeout(d,f)}).then(function(){return Eg(i,r,s,l+1)});throw c})}function d2(i){var r=100,s=100;return function(l){var c=Math.pow(2,l)*r+s*Math.random();return c>i?!1:c}}function h2(i,r,s){return Eg(i,r,d2(s))}var m2=55,g2=(function(){function i(s,l){var c=s||{},f=c.UserPoolId,d=c.ClientId,h=c.endpoint,v=c.fetchOptions,b=c.AdvancedSecurityDataCollectionFlag;if(!f||!d)throw new Error("Both UserPoolId and ClientId are required.");if(f.length>m2||!/^[\w-]+_[0-9a-zA-Z]+$/.test(f))throw new Error("Invalid UserPoolId format.");var w=f.split("_")[0];this.userPoolId=f,this.clientId=d,this.client=new c2(w,h,v),this.advancedSecurityDataCollectionFlag=b!==!1,this.storage=s.Storage||new wg().getStorage(),l&&(this.wrapRefreshSessionCallback=l)}var r=i.prototype;return r.getUserPoolId=function(){return this.userPoolId},r.getUserPoolName=function(){return this.getUserPoolId().split("_")[1]},r.getClientId=function(){return this.clientId},r.signUp=function(l,c,f,d,h,v){var b=this,w={ClientId:this.clientId,Username:l,Password:c,UserAttributes:f,ValidationData:d,ClientMetadata:v};this.getUserContextData(l)&&(w.UserContextData=this.getUserContextData(l)),this.client.request("SignUp",w,function(A,U){if(A)return h(A,null);var S={Username:l,Pool:b,Storage:b.storage},N={user:new nl(S),userConfirmed:U.UserConfirmed,userSub:U.UserSub,codeDeliveryDetails:U.CodeDeliveryDetails};return h(null,N)})},r.getCurrentUser=function(){var l="CognitoIdentityServiceProvider."+this.clientId+".LastAuthUser",c=this.storage.getItem(l);if(c){var f={Username:c,Pool:this,Storage:this.storage};return new nl(f)}return null},r.getUserContextData=function(l){if(!(typeof AmazonCognitoAdvancedSecurityData>"u")){var c=AmazonCognitoAdvancedSecurityData;if(this.advancedSecurityDataCollectionFlag){var f=c.getData(l,this.userPoolId,this.clientId);if(f){var d={EncodedData:f};return d}}return{}}},i})(),ec={exports:{}};var b0;function p2(){return b0||(b0=1,(function(i,r){(function(s){var l;if(i.exports=s(),l=!0,!l){var c=window.Cookies,f=window.Cookies=s();f.noConflict=function(){return window.Cookies=c,f}}})(function(){function s(){for(var f=0,d={};f<arguments.length;f++){var h=arguments[f];for(var v in h)d[v]=h[v]}return d}function l(f){return f.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function c(f){function d(){}function h(b,w,A){if(!(typeof document>"u")){A=s({path:"/"},d.defaults,A),typeof A.expires=="number"&&(A.expires=new Date(new Date*1+A.expires*864e5)),A.expires=A.expires?A.expires.toUTCString():"";try{var U=JSON.stringify(w);/^[\{\[]/.test(U)&&(w=U)}catch{}w=f.write?f.write(w,b):encodeURIComponent(String(w)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),b=encodeURIComponent(String(b)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var S="";for(var N in A)A[N]&&(S+="; "+N,A[N]!==!0&&(S+="="+A[N].split(";")[0]));return document.cookie=b+"="+w+S}}function v(b,w){if(!(typeof document>"u")){for(var A={},U=document.cookie?document.cookie.split("; "):[],S=0;S<U.length;S++){var N=U[S].split("="),_=N.slice(1).join("=");!w&&_.charAt(0)==='"'&&(_=_.slice(1,-1));try{var I=l(N[0]);if(_=(f.read||f)(_,I)||l(_),w)try{_=JSON.parse(_)}catch{}if(A[I]=_,b===I)break}catch{}}return b?A[b]:A}}return d.set=h,d.get=function(b){return v(b,!1)},d.getJSON=function(b){return v(b,!0)},d.remove=function(b,w){h(b,"",s(w,{expires:-1}))},d.defaults={},d.withConverter=c,d}return c(function(){})})})(ec)),ec.exports}p2();const mn=new g2({UserPoolId:"__HEADROOM_USER_POOL_ID__",ClientId:"__HEADROOM_USER_POOL_CLIENT_ID__"});function _s(i,r){const s=i.getIdToken().decodePayload();return{accessToken:i.getAccessToken().getJwtToken(),idToken:i.getIdToken().getJwtToken(),refreshToken:i.getRefreshToken().getToken(),expiresAt:i.getAccessToken().getExpiration()*1e3,email:s.email,sub:r.getUsername()}}function v2(i,r){const s=new nl({Username:i,Pool:mn}),l=new vb({Username:i,Password:r});return new Promise((c,f)=>{s.authenticateUser(l,{onSuccess(d){c(_s(d,s))},onFailure(d){f(d)},newPasswordRequired(){c({challenge:"NEW_PASSWORD_REQUIRED",user:s})},totpRequired(){c({challenge:"SOFTWARE_TOKEN_MFA",user:s})}})})}function y2(i,r){return new Promise((s,l)=>{i.completeNewPasswordChallenge(r,{},{onSuccess(c){s(_s(c,i))},onFailure(c){l(c)}})})}function Ag(i){const r=mn.getCurrentUser();if(!r)return Promise.reject(new Error("No current user"));const s=new Oc({RefreshToken:i});return new Promise((l,c)=>{r.refreshSession(s,(f,d)=>{if(f){c(f);return}l(_s(d,r))})})}function b2(i,r){const s=mn.getCurrentUser();return s?new Promise((l,c)=>{s.getSession(f=>{if(f){c(f);return}s.changePassword(i,r,d=>{if(d){c(d);return}l()})})}):Promise.reject(new Error("No current user"))}function S0(i){const r=mn.getCurrentUser();return r?new Promise((s,l)=>{r.getSession(c=>{if(c){l(c);return}const f=[new Sg({Name:"email",Value:i})];r.updateAttributes(f,d=>{if(d){l(d);return}s()})})}):Promise.reject(new Error("No current user"))}function S2(i){const r=mn.getCurrentUser();return r?new Promise((s,l)=>{r.getSession(c=>{if(c){l(c);return}r.verifyAttribute("email",i,{onSuccess(){s()},onFailure(f){l(f)}})})}):Promise.reject(new Error("No current user"))}function w2(){const i=mn.getCurrentUser();return i?new Promise((r,s)=>{i.getSession(l=>{if(l){s(l);return}i.associateSoftwareToken({associateSecretCode(c){r(c)},onFailure(c){s(c)}})})}):Promise.reject(new Error("No current user"))}function w0(i){const r=mn.getCurrentUser();return r?new Promise((s,l)=>{r.getSession(c=>{if(c){l(c);return}r.verifySoftwareToken(i,"Headroom CMS",{onSuccess(){s()},onFailure(f){l(f)}})})}):Promise.reject(new Error("No current user"))}function x0(i){const r=mn.getCurrentUser();return r?new Promise((s,l)=>{r.getSession(c=>{if(c){l(c);return}const f={PreferredMfa:i,Enabled:i};r.setUserMfaPreference(null,f,d=>{if(d){l(d);return}s()})})}):Promise.reject(new Error("No current user"))}function x2(){const i=mn.getCurrentUser();return i?new Promise((r,s)=>{i.getSession(l=>{if(l){s(l);return}i.getUserData((c,f)=>{if(c){s(c);return}r(f?.PreferredMfaSetting==="SOFTWARE_TOKEN_MFA")})})}):Promise.reject(new Error("No current user"))}function E2(i,r){return new Promise((s,l)=>{i.sendMFACode(r,{onSuccess(c){s(_s(c,i))},onFailure(c){l(c)}},"SOFTWARE_TOKEN_MFA")})}function Kx(i){const r=new nl({Username:i,Pool:mn});return new Promise((s,l)=>{r.forgotPassword({onSuccess(){s()},onFailure(c){l(c)}})})}function Yx(i,r,s){const l=new nl({Username:i,Pool:mn});return new Promise((c,f)=>{l.confirmPassword(r,s,{onSuccess(){c()},onFailure(d){f(d)}})})}function A2(){const i=mn.getCurrentUser();i&&i.signOut()}const Yc="headroom_auth";function Gi(i){localStorage.setItem(Yc,JSON.stringify(i))}function $a(){const i=localStorage.getItem(Yc);if(!i)return null;try{return JSON.parse(i)}catch{return null}}function Cs(){localStorage.removeItem(Yc)}const Tg=300*1e3;function T2(){const i=$a();return i?Date.now()>=i.expiresAt-Tg:!0}function C2(){return $a()?.accessToken??null}let As=null;function Zr(i){kc();const r=$a();if(!r)return;const s=r.expiresAt-Date.now()-Tg;if(s<=0){i();return}As=setTimeout(()=>{i()},s)}function kc(){As!==null&&(clearTimeout(As),As=null)}const Cg=se.createContext(null);function U2(){const i=$a();return i?Date.now()<i.expiresAt?{status:"authenticated",user:{sub:i.sub,email:i.email},accessToken:i.accessToken}:{status:"loading",user:null,accessToken:null}:{status:"unauthenticated",user:null,accessToken:null}}function D2({children:i}){const[r,s]=se.useState(U2),l=se.useRef(void 0),c=se.useCallback(async()=>{const w=$a();if(!w?.refreshToken){s({status:"unauthenticated",user:null,accessToken:null});return}try{const A=await Ag(w.refreshToken);Gi(A),s({status:"authenticated",user:{sub:A.sub,email:A.email},accessToken:A.accessToken}),Zr(()=>l.current())}catch{Cs(),s({status:"unauthenticated",user:null,accessToken:null})}},[]);se.useEffect(()=>{l.current=c}),se.useEffect(()=>(r.status==="loading"?c():r.status==="authenticated"&&Zr(()=>l.current()),()=>kc()),[]);const f=se.useCallback(async(w,A)=>{const U=await v2(w,A);return"challenge"in U?{challenge:U.challenge,cognitoUser:U.user}:(Gi(U),s({status:"authenticated",user:{sub:U.sub,email:U.email},accessToken:U.accessToken}),Zr(()=>l.current()),{})},[]),d=se.useCallback(async(w,A)=>{const U=await y2(w,A);Gi(U),s({status:"authenticated",user:{sub:U.sub,email:U.email},accessToken:U.accessToken}),Zr(()=>l.current())},[]),h=se.useCallback(async(w,A)=>{const U=await E2(w,A);Gi(U),s({status:"authenticated",user:{sub:U.sub,email:U.email},accessToken:U.accessToken}),Zr(()=>l.current())},[]),v=se.useCallback(w=>{s(U=>U.user?{...U,user:{...U.user,email:w}}:U);const A=$a();A&&Gi({...A,email:w}),c()},[c]),b=se.useCallback(()=>{A2(),Cs(),kc(),s({status:"unauthenticated",user:null,accessToken:null})},[]);return T.jsx(Cg.Provider,{value:{...r,login:f,completeNewPassword:d,respondToMfaChallenge:h,logout:b,updateUserEmail:v},children:i})}var _2=class extends Error{status;code;constructor(i,r,s){super(s||r),this.name="HeadroomApiError",this.status=i,this.code=r}get detail(){return this.message}},R2={".jpg":"image/jpeg",".jpeg":"image/jpeg",".png":"image/png",".gif":"image/gif",".webp":"image/webp",".svg":"image/svg+xml",".mp4":"video/mp4",".pdf":"application/pdf"};function N2(i){const r=i.includes(".")?"."+i.split(".").pop().toLowerCase():"";return R2[r]||"application/octet-stream"}var M2=class{baseUrl;tokenProvider;constructor(i,r){this.baseUrl=i.replace(/\/+$/,""),this.tokenProvider=r}async apiFetch(i,r){const l={"Content-Type":"application/json",Authorization:`Bearer ${await this.tokenProvider.getToken()}`,...r?.headers},c=await fetch(`${this.baseUrl}${i}`,{...r,headers:l});if(c.status===401&&this.tokenProvider.onUnauthorized){const f=await this.tokenProvider.onUnauthorized();l.Authorization=`Bearer ${f}`;const d=await fetch(`${this.baseUrl}${i}`,{...r,headers:l});return this.handleResponse(d)}return this.handleResponse(c)}async handleResponse(i){if(!i.ok){let r="UNKNOWN",s=`HTTP ${i.status}`;try{const l=await i.json();r=l.code||l.error||r,s=l.message||l.error||s}catch{}throw new _2(i.status,r,s)}if(i.status!==204)return i.json()}async listSites(i=!1){const r=i?"?includeArchived=true":"";return(await this.apiFetch(`/v1/admin/sites${r}`)).items}async createSite(i,r){return this.apiFetch("/v1/admin/sites",{method:"POST",body:JSON.stringify({host:i,name:r})})}async getSite(i){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}`)}async updateSite(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}`,{method:"PUT",body:JSON.stringify(r)})}async deleteSite(i){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}`,{method:"DELETE"})}async updateSiteAdmins(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/admins`,{method:"PUT",body:JSON.stringify({admins:r})})}async purgeSite(i){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/purge`,{method:"POST"})}async inviteToSite(i,r,s){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/invite`,{method:"POST",body:JSON.stringify({email:r,adminUrl:s})})}async listCollections(i){return(await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/collections`)).collections}async createCollection(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/collections`,{method:"POST",body:JSON.stringify(r)})}async getCollection(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/collections/${encodeURIComponent(r)}`)}async updateCollection(i,r,s){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/collections/${encodeURIComponent(r)}`,{method:"PUT",body:JSON.stringify(s)})}async deleteCollection(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/collections/${encodeURIComponent(r)}`,{method:"DELETE"})}async listBlockTypes(i){return(await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/block-types`)).blockTypes}async createBlockType(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/block-types`,{method:"POST",body:JSON.stringify(r)})}async getBlockType(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/block-types/${encodeURIComponent(r)}`)}async updateBlockType(i,r,s){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/block-types/${encodeURIComponent(r)}`,{method:"PUT",body:JSON.stringify(s)})}async deleteBlockType(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/block-types/${encodeURIComponent(r)}`,{method:"DELETE"})}async listContent(i,r){const s=new URLSearchParams;r?.collection&&s.set("collection",r.collection),r?.q&&s.set("q",r.q),r?.search&&s.set("search",r.search),r?.tag&&s.set("tag",r.tag),r?.status&&s.set("status",r.status),r?.sort&&s.set("sort",r.sort),r?.relatedTo&&s.set("relatedTo",r.relatedTo),r?.limit&&s.set("limit",String(r.limit)),r?.cursor&&s.set("cursor",r.cursor);const l=s.toString();return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/content${l?`?${l}`:""}`)}async createContent(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/content`,{method:"POST",body:JSON.stringify(r)})}async getContent(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/content/${r}`)}async deleteContent(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/content/${r}`,{method:"DELETE"})}async saveDraft(i,r,s){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/content/${r}/draft`,{method:"PUT",body:JSON.stringify(s)})}async publishContent(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/content/${r}/publish`,{method:"POST"})}async unpublishContent(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/content/${r}/unpublish`,{method:"POST"})}async discardDraft(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/content/${r}/discard`,{method:"POST"})}async getPublishedContent(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/content/${r}/published`)}async listVersions(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/content/${r}/versions`)}async getVersion(i,r,s){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/content/${r}/versions/${s}`)}async getReferences(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/content/${r}/references`)}async listMedia(i,r){const s=new URLSearchParams;r?.tag&&s.set("tag",r.tag),r?.folderId&&s.set("folderId",r.folderId),r?.q&&s.set("q",r.q),r?.sort&&s.set("sort",r.sort),r?.limit&&s.set("limit",String(r.limit)),r?.cursor&&s.set("cursor",r.cursor);const l=s.toString();return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media${l?`?${l}`:""}`)}async getMedia(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/${r}`)}async updateMedia(i,r,s){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/${r}`,{method:"PUT",body:JSON.stringify(s)})}async deleteMedia(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/${r}`,{method:"DELETE"})}async getUploadUrl(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/upload-url`,{method:"POST",body:JSON.stringify(r)})}async completeUpload(i,r,s){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/${r}/complete`,{method:"POST",body:JSON.stringify(s)})}async uploadFromUrl(i,r,s,l){const c=await fetch(r);if(!c.ok)throw new Error(`Failed to fetch ${r}: ${c.status}`);const f=new Uint8Array(await c.arrayBuffer());let d=c.headers.get("content-type")?.split(";")[0]?.trim()||"";(!d||d==="application/octet-stream")&&(d=N2(s));const{mediaId:h,uploadUrl:v}=await this.getUploadUrl(i,{filename:s,contentType:d,size:f.length}),b=await fetch(v,{method:"PUT",body:f,headers:{"Content-Type":d}});if(!b.ok)throw new Error(`S3 upload failed: ${b.status}`);return this.completeUpload(i,h,{filename:s,alt:l})}async listMediaFolders(i){return(await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/folders`)).items}async createMediaFolder(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/folders`,{method:"POST",body:JSON.stringify({name:r})})}async updateMediaFolder(i,r,s){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/folders/${r}`,{method:"PUT",body:JSON.stringify({name:s})})}async deleteMediaFolder(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/folders/${r}`,{method:"DELETE"})}async bulkMediaOperation(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/bulk`,{method:"POST",body:JSON.stringify(r)})}async checkDuplicate(i,r,s){const l=new URLSearchParams({filename:r,size:String(s)});return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/check-duplicate?${l}`)}async getTransformUrl(i,r,s){const l=new URLSearchParams;for(const[c,f]of Object.entries(s))f!==void 0&&l.set(c,String(f));return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/${r}/transform-url?${l}`)}async saveTransform(i,r,s){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/${r}/save-transform`,{method:"POST",body:JSON.stringify(s)})}async getMediaUsage(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/${r}/usage`)}async listApiKeys(i){return(await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/api-keys`)).keys}async createApiKey(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/api-keys`,{method:"POST",body:JSON.stringify({label:r})})}async updateApiKey(i,r,s){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/api-keys/${r}`,{method:"PUT",body:JSON.stringify({label:s})})}async deleteApiKey(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/api-keys/${r}`,{method:"DELETE"})}async listWebhooks(i){return(await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/webhooks`)).webhooks}async createWebhook(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/webhooks`,{method:"POST",body:JSON.stringify(r)})}async getWebhook(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/webhooks/${r}`)}async updateWebhook(i,r,s){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/webhooks/${r}`,{method:"PUT",body:JSON.stringify(s)})}async deleteWebhook(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/webhooks/${r}`,{method:"DELETE"})}async testWebhook(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/webhooks/${r}/test`,{method:"POST"})}async rotateWebhookSecret(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/webhooks/${r}/rotate-secret`,{method:"POST"})}async listWebhookDeliveries(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/webhooks/${r}/deliveries`)}async getWebhookDelivery(i,r,s){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/webhooks/${r}/deliveries/${s}`)}async retryDelivery(i,r,s){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/webhooks/${r}/deliveries/${s}/retry`,{method:"POST"})}async listTags(i){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/tags`)}async createTag(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/tags`,{method:"POST",body:JSON.stringify({tag:r})})}async deleteTag(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/tags/${encodeURIComponent(r)}`,{method:"DELETE"})}async listAuditEvents(i,r){const s=new URLSearchParams;r?.action&&s.set("action",r.action),r?.before&&s.set("before",String(r.before));const l=s.toString();return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/audit${l?`?${l}`:""}`)}async listUsers(){return this.apiFetch("/v1/admin/users")}async deleteUser(i){await this.apiFetch(`/v1/admin/users/${i}`,{method:"DELETE"})}async disableUserMfa(i){await this.apiFetch(`/v1/admin/users/${i}/mfa`,{method:"DELETE"})}async resolveAdmins(i){return this.apiFetch("/v1/admin/users/resolve",{method:"POST",body:JSON.stringify({subs:i})})}async listSuperAdmins(){return this.apiFetch("/v1/admin/super-admins")}async updateSuperAdmins(i){await this.apiFetch("/v1/admin/super-admins",{method:"PUT",body:JSON.stringify({superAdminIds:i})})}};class z2{async getToken(){const r=C2();return!r||T2()?this.refresh():r}async onUnauthorized(){try{return await this.refresh()}catch{throw Cs(),window.location.href="/login",new Error("Session expired")}}async refresh(){const r=$a();if(!r?.refreshToken)throw Cs(),window.location.href="/login",new Error("No refresh token");const s=await Ag(r.refreshToken);return Gi(s),s.accessToken}}const Ug=se.createContext(null);function at(){const i=se.useContext(Ug);if(!i)throw new Error("useAdminClient must be used within AdminClientProvider");return i}const B2="__HEADROOM_API_URL__".replace(/\/+$/,"");function O2({children:i}){const r=se.useMemo(()=>new M2(B2,new z2),[]);return T.jsx(Ug.Provider,{value:r,children:i})}const j2=new sy({defaultOptions:{queries:{staleTime:3e4,retry:1,refetchOnWindowFocus:!0}}}),q2="modulepreload",k2=function(i){return"/"+i},E0={},St=function(r,s,l){let c=Promise.resolve();if(s&&s.length>0){let v=function(b){return Promise.all(b.map(w=>Promise.resolve(w).then(A=>({status:"fulfilled",value:A}),A=>({status:"rejected",reason:A}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),h=d?.nonce||d?.getAttribute("nonce");c=v(s.map(b=>{if(b=k2(b),b in E0)return;E0[b]=!0;const w=b.endsWith(".css"),A=w?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${b}"]${A}`))return;const U=document.createElement("link");if(U.rel=w?"stylesheet":q2,w||(U.as="script"),U.crossOrigin="",U.href=b,h&&U.setAttribute("nonce",h),document.head.appendChild(U),w)return new Promise((S,N)=>{U.addEventListener("load",S),U.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${b}`)))})}))}function f(d){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=d,window.dispatchEvent(h),!h.defaultPrevented)throw d}return c.then(d=>{for(const h of d||[])h.status==="rejected"&&f(h.reason);return r().catch(f)})};function Rs(){const i=se.useContext(Cg);if(!i)throw new Error("useAuth must be used within an AuthProvider");return i}function Dg(){return T.jsx("div",{className:"flex h-screen w-screen items-center justify-center",children:T.jsxs("div",{className:"flex flex-col items-center gap-4",children:[T.jsx(Pn,{className:"text-muted-foreground h-8 w-8 animate-spin"}),T.jsx("p",{className:"text-muted-foreground text-sm",children:"Headroom"})]})})}function tc({children:i}){const{status:r}=Rs();return r==="loading"?T.jsx(Dg,{}):r==="unauthenticated"?T.jsx(Ts,{to:"/login",replace:!0}):T.jsx(T.Fragment,{children:i})}function _g(i=!1){const r=at();return $n({queryKey:["sites",{includeArchived:i}],queryFn:()=>r.apiFetch(`/v1/admin/sites${i?"?includeArchived=true":""}`)})}function Ix(i){const r=at();return $n({queryKey:["sites",i],queryFn:()=>r.apiFetch(`/v1/admin/sites/${i}`),enabled:!!i})}function Gx(){const i=at(),r=zt();return Bt({mutationFn:s=>i.apiFetch("/v1/admin/sites",{method:"POST",body:JSON.stringify(s)}),onSuccess:()=>r.invalidateQueries({queryKey:["sites"]})})}function Qx(i){const r=at(),s=zt();return Bt({mutationFn:l=>r.apiFetch(`/v1/admin/sites/${i}`,{method:"PUT",body:JSON.stringify(l)}),onSuccess:()=>{s.invalidateQueries({queryKey:["sites"]}),s.invalidateQueries({queryKey:["sites",i]})}})}function Xx(i){const r=at(),s=zt();return Bt({mutationFn:()=>r.apiFetch(`/v1/admin/sites/${i}`,{method:"DELETE"}),onSuccess:()=>s.invalidateQueries({queryKey:["sites"]})})}function Zx(i){const r=at(),s=zt();return Bt({mutationFn:l=>r.apiFetch(`/v1/admin/sites/${i}/admins`,{method:"PUT",body:JSON.stringify(l)}),onSuccess:()=>{s.invalidateQueries({queryKey:["sites",i]})}})}function Jx(i){const r=at(),s=zt();return Bt({mutationFn:()=>r.apiFetch(`/v1/admin/sites/${i}/purge`,{method:"POST"}),onSuccess:()=>{s.invalidateQueries({queryKey:["sites"]}),s.invalidateQueries({queryKey:["sites",i]})}})}function Px(i){const r=at(),s=zt();return Bt({mutationFn:l=>r.apiFetch(`/v1/admin/sites/${i}/invite`,{method:"POST",body:JSON.stringify({email:l.email,adminUrl:window.location.origin})}),onSuccess:()=>{s.invalidateQueries({queryKey:["sites",i]}),s.invalidateQueries({queryKey:["users"]})}})}function L2(i){const r=at();return $n({queryKey:["sites",i,"collections"],queryFn:async()=>({items:(await r.apiFetch(`/v1/admin/sites/${i}/collections`)).collections}),enabled:!!i})}function $x(i,r){const s=at();return $n({queryKey:["sites",i,"collections",r],queryFn:()=>s.apiFetch(`/v1/admin/sites/${i}/collections/${r}`),enabled:!!i&&!!r})}function Wx(i){const r=at(),s=zt();return Bt({mutationFn:l=>r.apiFetch(`/v1/admin/sites/${i}/collections`,{method:"POST",body:JSON.stringify(l)}),onSuccess:()=>s.invalidateQueries({queryKey:["sites",i,"collections"]})})}function eE(i,r){const s=at(),l=zt();return Bt({mutationFn:c=>s.apiFetch(`/v1/admin/sites/${i}/collections/${r}`,{method:"PUT",body:JSON.stringify(c)}),onSuccess:()=>{l.invalidateQueries({queryKey:["sites",i,"collections"]})}})}function tE(i,r){const s=at(),l=zt();return Bt({mutationFn:()=>s.apiFetch(`/v1/admin/sites/${i}/collections/${r}`,{method:"DELETE"}),onSuccess:()=>l.invalidateQueries({queryKey:["sites",i,"collections"]})})}function H2(i){const r=at();return $n({queryKey:["sites",i,"block-types"],queryFn:async()=>({items:(await r.apiFetch(`/v1/admin/sites/${i}/block-types`)).blockTypes}),enabled:!!i})}function nE(i,r){const s=at();return $n({queryKey:["sites",i,"block-types",r],queryFn:()=>s.apiFetch(`/v1/admin/sites/${i}/block-types/${r}`),enabled:!!i&&!!r})}function aE(i){const r=at(),s=zt();return Bt({mutationFn:l=>r.apiFetch(`/v1/admin/sites/${i}/block-types`,{method:"POST",body:JSON.stringify(l)}),onSuccess:()=>s.invalidateQueries({queryKey:["sites",i,"block-types"]})})}function iE(i,r){const s=at(),l=zt();return Bt({mutationFn:c=>s.apiFetch(`/v1/admin/sites/${i}/block-types/${r}`,{method:"PUT",body:JSON.stringify(c)}),onSuccess:()=>{l.invalidateQueries({queryKey:["sites",i,"block-types"]})}})}function rE(i,r){const s=at(),l=zt();return Bt({mutationFn:()=>s.apiFetch(`/v1/admin/sites/${i}/block-types/${r}`,{method:"DELETE"}),onSuccess:()=>l.invalidateQueries({queryKey:["sites",i,"block-types"]})})}const Ic=se.createContext(null);function F2({site:i,children:r}){const{data:s,isLoading:l}=L2(i.host),{data:c,isLoading:f}=H2(i.host),d=l||f;return T.jsx(Ic.Provider,{value:{site:i,collections:s?.items??[],blockTypes:c?.items??[],isLoading:d},children:r})}function Gc(){const i=se.useContext(Ic);if(!i)throw new Error("useSiteContext must be used within a SiteProvider");return i}function lE(){return se.useContext(Ic)}function V2({children:i}){const{host:r}=fg(),{data:s,isLoading:l}=_g(!0);if(l)return T.jsx(Dg,{});const c=s?.items.find(f=>f.host===r);return c?T.jsx(F2,{site:c,children:i}):T.jsx(Ts,{to:"/sites",replace:!0})}function sE(){const i=at();return $n({queryKey:["users"],queryFn:()=>i.apiFetch("/v1/admin/users")})}function oE(){const i=at(),r=zt();return Bt({mutationFn:s=>i.apiFetch(`/v1/admin/users/${s}`,{method:"DELETE"}),onSuccess:()=>r.invalidateQueries({queryKey:["users"]})})}function uE(){const i=at(),r=zt();return Bt({mutationFn:s=>i.apiFetch(`/v1/admin/users/${s}/mfa`,{method:"DELETE"}),onSuccess:()=>r.invalidateQueries({queryKey:["users"]})})}function cE(i){const r=at();return $n({queryKey:["users","resolve",...[...i].sort()],queryFn:()=>r.apiFetch("/v1/admin/users/resolve",{method:"POST",body:JSON.stringify({subs:i})}),enabled:i.length>0,staleTime:300*1e3})}function Rg(){const i=at();return $n({queryKey:["super-admins"],queryFn:()=>i.apiFetch("/v1/admin/super-admins")})}function fE(){const i=at(),r=zt();return Bt({mutationFn:s=>i.apiFetch("/v1/admin/super-admins",{method:"PUT",body:JSON.stringify(s)}),onSuccess:()=>r.invalidateQueries({queryKey:["super-admins"]})})}function Ng(i){var r,s,l="";if(typeof i=="string"||typeof i=="number")l+=i;else if(typeof i=="object")if(Array.isArray(i)){var c=i.length;for(r=0;r<c;r++)i[r]&&(s=Ng(i[r]))&&(l&&(l+=" "),l+=s)}else for(s in i)i[s]&&(l&&(l+=" "),l+=s);return l}function Mg(){for(var i,r,s=0,l="",c=arguments.length;s<c;s++)(i=arguments[s])&&(r=Ng(i))&&(l&&(l+=" "),l+=r);return l}const A0=i=>typeof i=="boolean"?`${i}`:i===0?"0":i,T0=Mg,zg=(i,r)=>s=>{var l;if(r?.variants==null)return T0(i,s?.class,s?.className);const{variants:c,defaultVariants:f}=r,d=Object.keys(c).map(b=>{const w=s?.[b],A=f?.[b];if(w===null)return null;const U=A0(w)||A0(A);return c[b][U]}),h=s&&Object.entries(s).reduce((b,w)=>{let[A,U]=w;return U===void 0||(b[A]=U),b},{}),v=r==null||(l=r.compoundVariants)===null||l===void 0?void 0:l.reduce((b,w)=>{let{class:A,className:U,...S}=w;return Object.entries(S).every(N=>{let[_,I]=N;return Array.isArray(I)?I.includes({...f,...h}[_]):{...f,...h}[_]===I})?[...b,A,U]:b},[]);return T0(i,d,v,s?.class,s?.className)},K2=(i,r)=>{const s=new Array(i.length+r.length);for(let l=0;l<i.length;l++)s[l]=i[l];for(let l=0;l<r.length;l++)s[i.length+l]=r[l];return s},Y2=(i,r)=>({classGroupId:i,validator:r}),Bg=(i=new Map,r=null,s)=>({nextPart:i,validators:r,classGroupId:s}),Us="-",C0=[],I2="arbitrary..",G2=i=>{const r=X2(i),{conflictingClassGroups:s,conflictingClassGroupModifiers:l}=i;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return Q2(d);const h=d.split(Us),v=h[0]===""&&h.length>1?1:0;return Og(h,v,r)},getConflictingClassGroupIds:(d,h)=>{if(h){const v=l[d],b=s[d];return v?b?K2(b,v):v:b||C0}return s[d]||C0}}},Og=(i,r,s)=>{if(i.length-r===0)return s.classGroupId;const c=i[r],f=s.nextPart.get(c);if(f){const b=Og(i,r+1,f);if(b)return b}const d=s.validators;if(d===null)return;const h=r===0?i.join(Us):i.slice(r).join(Us),v=d.length;for(let b=0;b<v;b++){const w=d[b];if(w.validator(h))return w.classGroupId}},Q2=i=>i.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=i.slice(1,-1),s=r.indexOf(":"),l=r.slice(0,s);return l?I2+l:void 0})(),X2=i=>{const{theme:r,classGroups:s}=i;return Z2(s,r)},Z2=(i,r)=>{const s=Bg();for(const l in i){const c=i[l];Qc(c,s,l,r)}return s},Qc=(i,r,s,l)=>{const c=i.length;for(let f=0;f<c;f++){const d=i[f];J2(d,r,s,l)}},J2=(i,r,s,l)=>{if(typeof i=="string"){P2(i,r,s);return}if(typeof i=="function"){$2(i,r,s,l);return}W2(i,r,s,l)},P2=(i,r,s)=>{const l=i===""?r:jg(r,i);l.classGroupId=s},$2=(i,r,s,l)=>{if(ew(i)){Qc(i(l),r,s,l);return}r.validators===null&&(r.validators=[]),r.validators.push(Y2(s,i))},W2=(i,r,s,l)=>{const c=Object.entries(i),f=c.length;for(let d=0;d<f;d++){const[h,v]=c[d];Qc(v,jg(r,h),s,l)}},jg=(i,r)=>{let s=i;const l=r.split(Us),c=l.length;for(let f=0;f<c;f++){const d=l[f];let h=s.nextPart.get(d);h||(h=Bg(),s.nextPart.set(d,h)),s=h}return s},ew=i=>"isThemeGetter"in i&&i.isThemeGetter===!0,tw=i=>{if(i<1)return{get:()=>{},set:()=>{}};let r=0,s=Object.create(null),l=Object.create(null);const c=(f,d)=>{s[f]=d,r++,r>i&&(r=0,l=s,s=Object.create(null))};return{get(f){let d=s[f];if(d!==void 0)return d;if((d=l[f])!==void 0)return c(f,d),d},set(f,d){f in s?s[f]=d:c(f,d)}}},Lc="!",U0=":",nw=[],D0=(i,r,s,l,c)=>({modifiers:i,hasImportantModifier:r,baseClassName:s,maybePostfixModifierPosition:l,isExternal:c}),aw=i=>{const{prefix:r,experimentalParseClassName:s}=i;let l=c=>{const f=[];let d=0,h=0,v=0,b;const w=c.length;for(let _=0;_<w;_++){const I=c[_];if(d===0&&h===0){if(I===U0){f.push(c.slice(v,_)),v=_+1;continue}if(I==="/"){b=_;continue}}I==="["?d++:I==="]"?d--:I==="("?h++:I===")"&&h--}const A=f.length===0?c:c.slice(v);let U=A,S=!1;A.endsWith(Lc)?(U=A.slice(0,-1),S=!0):A.startsWith(Lc)&&(U=A.slice(1),S=!0);const N=b&&b>v?b-v:void 0;return D0(f,S,U,N)};if(r){const c=r+U0,f=l;l=d=>d.startsWith(c)?f(d.slice(c.length)):D0(nw,!1,d,void 0,!0)}if(s){const c=l;l=f=>s({className:f,parseClassName:c})}return l},iw=i=>{const r=new Map;return i.orderSensitiveModifiers.forEach((s,l)=>{r.set(s,1e6+l)}),s=>{const l=[];let c=[];for(let f=0;f<s.length;f++){const d=s[f],h=d[0]==="[",v=r.has(d);h||v?(c.length>0&&(c.sort(),l.push(...c),c=[]),l.push(d)):c.push(d)}return c.length>0&&(c.sort(),l.push(...c)),l}},rw=i=>({cache:tw(i.cacheSize),parseClassName:aw(i),sortModifiers:iw(i),...G2(i)}),lw=/\s+/,sw=(i,r)=>{const{parseClassName:s,getClassGroupId:l,getConflictingClassGroupIds:c,sortModifiers:f}=r,d=[],h=i.trim().split(lw);let v="";for(let b=h.length-1;b>=0;b-=1){const w=h[b],{isExternal:A,modifiers:U,hasImportantModifier:S,baseClassName:N,maybePostfixModifierPosition:_}=s(w);if(A){v=w+(v.length>0?" "+v:v);continue}let I=!!_,K=l(I?N.substring(0,_):N);if(!K){if(!I){v=w+(v.length>0?" "+v:v);continue}if(K=l(N),!K){v=w+(v.length>0?" "+v:v);continue}I=!1}const P=U.length===0?"":U.length===1?U[0]:f(U).join(":"),J=S?P+Lc:P,$=J+K;if(d.indexOf($)>-1)continue;d.push($);const oe=c(K,I);for(let X=0;X<oe.length;++X){const W=oe[X];d.push(J+W)}v=w+(v.length>0?" "+v:v)}return v},ow=(...i)=>{let r=0,s,l,c="";for(;r<i.length;)(s=i[r++])&&(l=qg(s))&&(c&&(c+=" "),c+=l);return c},qg=i=>{if(typeof i=="string")return i;let r,s="";for(let l=0;l<i.length;l++)i[l]&&(r=qg(i[l]))&&(s&&(s+=" "),s+=r);return s},uw=(i,...r)=>{let s,l,c,f;const d=v=>{const b=r.reduce((w,A)=>A(w),i());return s=rw(b),l=s.cache.get,c=s.cache.set,f=h,h(v)},h=v=>{const b=l(v);if(b)return b;const w=sw(v,s);return c(v,w),w};return f=d,(...v)=>f(ow(...v))},cw=[],bt=i=>{const r=s=>s[i]||cw;return r.isThemeGetter=!0,r},kg=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Lg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fw=/^\d+\/\d+$/,dw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hw=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,mw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,gw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,pw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ki=i=>fw.test(i),_e=i=>!!i&&!Number.isNaN(Number(i)),Ta=i=>!!i&&Number.isInteger(Number(i)),nc=i=>i.endsWith("%")&&_e(i.slice(0,-1)),Jn=i=>dw.test(i),vw=()=>!0,yw=i=>hw.test(i)&&!mw.test(i),Hg=()=>!1,bw=i=>gw.test(i),Sw=i=>pw.test(i),ww=i=>!me(i)&&!ge(i),xw=i=>Zi(i,Kg,Hg),me=i=>kg.test(i),Ja=i=>Zi(i,Yg,yw),ac=i=>Zi(i,Uw,_e),_0=i=>Zi(i,Fg,Hg),Ew=i=>Zi(i,Vg,Sw),ws=i=>Zi(i,Ig,bw),ge=i=>Lg.test(i),Jr=i=>Ji(i,Yg),Aw=i=>Ji(i,Dw),R0=i=>Ji(i,Fg),Tw=i=>Ji(i,Kg),Cw=i=>Ji(i,Vg),xs=i=>Ji(i,Ig,!0),Zi=(i,r,s)=>{const l=kg.exec(i);return l?l[1]?r(l[1]):s(l[2]):!1},Ji=(i,r,s=!1)=>{const l=Lg.exec(i);return l?l[1]?r(l[1]):s:!1},Fg=i=>i==="position"||i==="percentage",Vg=i=>i==="image"||i==="url",Kg=i=>i==="length"||i==="size"||i==="bg-size",Yg=i=>i==="length",Uw=i=>i==="number",Dw=i=>i==="family-name",Ig=i=>i==="shadow",_w=()=>{const i=bt("color"),r=bt("font"),s=bt("text"),l=bt("font-weight"),c=bt("tracking"),f=bt("leading"),d=bt("breakpoint"),h=bt("container"),v=bt("spacing"),b=bt("radius"),w=bt("shadow"),A=bt("inset-shadow"),U=bt("text-shadow"),S=bt("drop-shadow"),N=bt("blur"),_=bt("perspective"),I=bt("aspect"),K=bt("ease"),P=bt("animate"),J=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],oe=()=>[...$(),ge,me],X=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto","contain","none"],L=()=>[ge,me,v],Z=()=>[Ki,"full","auto",...L()],ce=()=>[Ta,"none","subgrid",ge,me],ne=()=>["auto",{span:["full",Ta,ge,me]},Ta,ge,me],ee=()=>[Ta,"auto",ge,me],le=()=>["auto","min","max","fr",ge,me],ue=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Ae=()=>["start","end","center","stretch","center-safe","end-safe"],j=()=>["auto",...L()],Q=()=>[Ki,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],G=()=>[i,ge,me],ie=()=>[...$(),R0,_0,{position:[ge,me]}],be=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Se=()=>["auto","cover","contain",Tw,xw,{size:[ge,me]}],re=()=>[nc,Jr,Ja],te=()=>["","none","full",b,ge,me],fe=()=>["",_e,Jr,Ja],De=()=>["solid","dashed","dotted","double"],Je=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pe=()=>[_e,nc,R0,_0],$e=()=>["","none",N,ge,me],Ke=()=>["none",_e,ge,me],st=()=>["none",_e,ge,me],xe=()=>[_e,ge,me],Ye=()=>[Ki,"full",...L()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Jn],breakpoint:[Jn],color:[vw],container:[Jn],"drop-shadow":[Jn],ease:["in","out","in-out"],font:[ww],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Jn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Jn],shadow:[Jn],spacing:["px",_e],text:[Jn],"text-shadow":[Jn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ki,me,ge,I]}],container:["container"],columns:[{columns:[_e,me,ge,h]}],"break-after":[{"break-after":J()}],"break-before":[{"break-before":J()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:oe()}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Z()}],"inset-x":[{"inset-x":Z()}],"inset-y":[{"inset-y":Z()}],start:[{start:Z()}],end:[{end:Z()}],top:[{top:Z()}],right:[{right:Z()}],bottom:[{bottom:Z()}],left:[{left:Z()}],visibility:["visible","invisible","collapse"],z:[{z:[Ta,"auto",ge,me]}],basis:[{basis:[Ki,"full","auto",h,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_e,Ki,"auto","initial","none",me]}],grow:[{grow:["",_e,ge,me]}],shrink:[{shrink:["",_e,ge,me]}],order:[{order:[Ta,"first","last","none",ge,me]}],"grid-cols":[{"grid-cols":ce()}],"col-start-end":[{col:ne()}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":ce()}],"row-start-end":[{row:ne()}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":le()}],"auto-rows":[{"auto-rows":le()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[...ue(),"normal"]}],"justify-items":[{"justify-items":[...Ae(),"normal"]}],"justify-self":[{"justify-self":["auto",...Ae()]}],"align-content":[{content:["normal",...ue()]}],"align-items":[{items:[...Ae(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Ae(),{baseline:["","last"]}]}],"place-content":[{"place-content":ue()}],"place-items":[{"place-items":[...Ae(),"baseline"]}],"place-self":[{"place-self":["auto",...Ae()]}],p:[{p:L()}],px:[{px:L()}],py:[{py:L()}],ps:[{ps:L()}],pe:[{pe:L()}],pt:[{pt:L()}],pr:[{pr:L()}],pb:[{pb:L()}],pl:[{pl:L()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":L()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":L()}],"space-y-reverse":["space-y-reverse"],size:[{size:Q()}],w:[{w:[h,"screen",...Q()]}],"min-w":[{"min-w":[h,"screen","none",...Q()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[d]},...Q()]}],h:[{h:["screen","lh",...Q()]}],"min-h":[{"min-h":["screen","lh","none",...Q()]}],"max-h":[{"max-h":["screen","lh",...Q()]}],"font-size":[{text:["base",s,Jr,Ja]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[l,ge,ac]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",nc,me]}],"font-family":[{font:[Aw,me,r]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[c,ge,me]}],"line-clamp":[{"line-clamp":[_e,"none",ge,ac]}],leading:[{leading:[f,...L()]}],"list-image":[{"list-image":["none",ge,me]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ge,me]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:G()}],"text-color":[{text:G()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...De(),"wavy"]}],"text-decoration-thickness":[{decoration:[_e,"from-font","auto",ge,Ja]}],"text-decoration-color":[{decoration:G()}],"underline-offset":[{"underline-offset":[_e,"auto",ge,me]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge,me]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ge,me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ie()}],"bg-repeat":[{bg:be()}],"bg-size":[{bg:Se()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ta,ge,me],radial:["",ge,me],conic:[Ta,ge,me]},Cw,Ew]}],"bg-color":[{bg:G()}],"gradient-from-pos":[{from:re()}],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:G()}],"gradient-via":[{via:G()}],"gradient-to":[{to:G()}],rounded:[{rounded:te()}],"rounded-s":[{"rounded-s":te()}],"rounded-e":[{"rounded-e":te()}],"rounded-t":[{"rounded-t":te()}],"rounded-r":[{"rounded-r":te()}],"rounded-b":[{"rounded-b":te()}],"rounded-l":[{"rounded-l":te()}],"rounded-ss":[{"rounded-ss":te()}],"rounded-se":[{"rounded-se":te()}],"rounded-ee":[{"rounded-ee":te()}],"rounded-es":[{"rounded-es":te()}],"rounded-tl":[{"rounded-tl":te()}],"rounded-tr":[{"rounded-tr":te()}],"rounded-br":[{"rounded-br":te()}],"rounded-bl":[{"rounded-bl":te()}],"border-w":[{border:fe()}],"border-w-x":[{"border-x":fe()}],"border-w-y":[{"border-y":fe()}],"border-w-s":[{"border-s":fe()}],"border-w-e":[{"border-e":fe()}],"border-w-t":[{"border-t":fe()}],"border-w-r":[{"border-r":fe()}],"border-w-b":[{"border-b":fe()}],"border-w-l":[{"border-l":fe()}],"divide-x":[{"divide-x":fe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":fe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...De(),"hidden","none"]}],"divide-style":[{divide:[...De(),"hidden","none"]}],"border-color":[{border:G()}],"border-color-x":[{"border-x":G()}],"border-color-y":[{"border-y":G()}],"border-color-s":[{"border-s":G()}],"border-color-e":[{"border-e":G()}],"border-color-t":[{"border-t":G()}],"border-color-r":[{"border-r":G()}],"border-color-b":[{"border-b":G()}],"border-color-l":[{"border-l":G()}],"divide-color":[{divide:G()}],"outline-style":[{outline:[...De(),"none","hidden"]}],"outline-offset":[{"outline-offset":[_e,ge,me]}],"outline-w":[{outline:["",_e,Jr,Ja]}],"outline-color":[{outline:G()}],shadow:[{shadow:["","none",w,xs,ws]}],"shadow-color":[{shadow:G()}],"inset-shadow":[{"inset-shadow":["none",A,xs,ws]}],"inset-shadow-color":[{"inset-shadow":G()}],"ring-w":[{ring:fe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:G()}],"ring-offset-w":[{"ring-offset":[_e,Ja]}],"ring-offset-color":[{"ring-offset":G()}],"inset-ring-w":[{"inset-ring":fe()}],"inset-ring-color":[{"inset-ring":G()}],"text-shadow":[{"text-shadow":["none",U,xs,ws]}],"text-shadow-color":[{"text-shadow":G()}],opacity:[{opacity:[_e,ge,me]}],"mix-blend":[{"mix-blend":[...Je(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Je()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[_e]}],"mask-image-linear-from-pos":[{"mask-linear-from":pe()}],"mask-image-linear-to-pos":[{"mask-linear-to":pe()}],"mask-image-linear-from-color":[{"mask-linear-from":G()}],"mask-image-linear-to-color":[{"mask-linear-to":G()}],"mask-image-t-from-pos":[{"mask-t-from":pe()}],"mask-image-t-to-pos":[{"mask-t-to":pe()}],"mask-image-t-from-color":[{"mask-t-from":G()}],"mask-image-t-to-color":[{"mask-t-to":G()}],"mask-image-r-from-pos":[{"mask-r-from":pe()}],"mask-image-r-to-pos":[{"mask-r-to":pe()}],"mask-image-r-from-color":[{"mask-r-from":G()}],"mask-image-r-to-color":[{"mask-r-to":G()}],"mask-image-b-from-pos":[{"mask-b-from":pe()}],"mask-image-b-to-pos":[{"mask-b-to":pe()}],"mask-image-b-from-color":[{"mask-b-from":G()}],"mask-image-b-to-color":[{"mask-b-to":G()}],"mask-image-l-from-pos":[{"mask-l-from":pe()}],"mask-image-l-to-pos":[{"mask-l-to":pe()}],"mask-image-l-from-color":[{"mask-l-from":G()}],"mask-image-l-to-color":[{"mask-l-to":G()}],"mask-image-x-from-pos":[{"mask-x-from":pe()}],"mask-image-x-to-pos":[{"mask-x-to":pe()}],"mask-image-x-from-color":[{"mask-x-from":G()}],"mask-image-x-to-color":[{"mask-x-to":G()}],"mask-image-y-from-pos":[{"mask-y-from":pe()}],"mask-image-y-to-pos":[{"mask-y-to":pe()}],"mask-image-y-from-color":[{"mask-y-from":G()}],"mask-image-y-to-color":[{"mask-y-to":G()}],"mask-image-radial":[{"mask-radial":[ge,me]}],"mask-image-radial-from-pos":[{"mask-radial-from":pe()}],"mask-image-radial-to-pos":[{"mask-radial-to":pe()}],"mask-image-radial-from-color":[{"mask-radial-from":G()}],"mask-image-radial-to-color":[{"mask-radial-to":G()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":$()}],"mask-image-conic-pos":[{"mask-conic":[_e]}],"mask-image-conic-from-pos":[{"mask-conic-from":pe()}],"mask-image-conic-to-pos":[{"mask-conic-to":pe()}],"mask-image-conic-from-color":[{"mask-conic-from":G()}],"mask-image-conic-to-color":[{"mask-conic-to":G()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ie()}],"mask-repeat":[{mask:be()}],"mask-size":[{mask:Se()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ge,me]}],filter:[{filter:["","none",ge,me]}],blur:[{blur:$e()}],brightness:[{brightness:[_e,ge,me]}],contrast:[{contrast:[_e,ge,me]}],"drop-shadow":[{"drop-shadow":["","none",S,xs,ws]}],"drop-shadow-color":[{"drop-shadow":G()}],grayscale:[{grayscale:["",_e,ge,me]}],"hue-rotate":[{"hue-rotate":[_e,ge,me]}],invert:[{invert:["",_e,ge,me]}],saturate:[{saturate:[_e,ge,me]}],sepia:[{sepia:["",_e,ge,me]}],"backdrop-filter":[{"backdrop-filter":["","none",ge,me]}],"backdrop-blur":[{"backdrop-blur":$e()}],"backdrop-brightness":[{"backdrop-brightness":[_e,ge,me]}],"backdrop-contrast":[{"backdrop-contrast":[_e,ge,me]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_e,ge,me]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_e,ge,me]}],"backdrop-invert":[{"backdrop-invert":["",_e,ge,me]}],"backdrop-opacity":[{"backdrop-opacity":[_e,ge,me]}],"backdrop-saturate":[{"backdrop-saturate":[_e,ge,me]}],"backdrop-sepia":[{"backdrop-sepia":["",_e,ge,me]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":L()}],"border-spacing-x":[{"border-spacing-x":L()}],"border-spacing-y":[{"border-spacing-y":L()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ge,me]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_e,"initial",ge,me]}],ease:[{ease:["linear","initial",K,ge,me]}],delay:[{delay:[_e,ge,me]}],animate:[{animate:["none",P,ge,me]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,ge,me]}],"perspective-origin":[{"perspective-origin":oe()}],rotate:[{rotate:Ke()}],"rotate-x":[{"rotate-x":Ke()}],"rotate-y":[{"rotate-y":Ke()}],"rotate-z":[{"rotate-z":Ke()}],scale:[{scale:st()}],"scale-x":[{"scale-x":st()}],"scale-y":[{"scale-y":st()}],"scale-z":[{"scale-z":st()}],"scale-3d":["scale-3d"],skew:[{skew:xe()}],"skew-x":[{"skew-x":xe()}],"skew-y":[{"skew-y":xe()}],transform:[{transform:[ge,me,"","none","gpu","cpu"]}],"transform-origin":[{origin:oe()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ye()}],"translate-x":[{"translate-x":Ye()}],"translate-y":[{"translate-y":Ye()}],"translate-z":[{"translate-z":Ye()}],"translate-none":["translate-none"],accent:[{accent:G()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:G()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ge,me]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ge,me]}],fill:[{fill:["none",...G()]}],"stroke-w":[{stroke:[_e,Jr,Ja,ac]}],stroke:[{stroke:["none",...G()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Rw=uw(_w);function ft(...i){return Rw(Mg(i))}const Nw=zg("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function fn({className:i,variant:r="default",size:s="default",asChild:l=!1,...c}){const f=l?yy:"button";return T.jsx(f,{"data-slot":"button","data-variant":r,"data-size":s,className:ft(Nw({variant:r,size:s,className:i})),...c})}function N0({...i}){return T.jsx(by,{"data-slot":"dropdown-menu",...i})}function M0({...i}){return T.jsx(Sy,{"data-slot":"dropdown-menu-trigger",...i})}function z0({className:i,sideOffset:r=4,...s}){return T.jsx(wy,{children:T.jsx(xy,{"data-slot":"dropdown-menu-content",sideOffset:r,className:ft("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",i),...s})})}function Pr({className:i,inset:r,variant:s="default",...l}){return T.jsx(Ey,{"data-slot":"dropdown-menu-item","data-inset":r,"data-variant":s,className:ft("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",i),...l})}function B0({className:i,...r}){return T.jsx(Ay,{"data-slot":"dropdown-menu-separator",className:ft("bg-border -mx-1 my-1 h-px",i),...r})}var Yi={},ic,O0;function Mw(){return O0||(O0=1,ic=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),ic}var rc={},Ca={},j0;function Wa(){if(j0)return Ca;j0=1;let i;const r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return Ca.getSymbolSize=function(l){if(!l)throw new Error('"version" cannot be null or undefined');if(l<1||l>40)throw new Error('"version" should be in range from 1 to 40');return l*4+17},Ca.getSymbolTotalCodewords=function(l){return r[l]},Ca.getBCHDigit=function(s){let l=0;for(;s!==0;)l++,s>>>=1;return l},Ca.setToSJISFunction=function(l){if(typeof l!="function")throw new Error('"toSJISFunc" is not a valid function.');i=l},Ca.isKanjiModeEnabled=function(){return typeof i<"u"},Ca.toSJIS=function(l){return i(l)},Ca}var lc={},q0;function Xc(){return q0||(q0=1,(function(i){i.L={bit:1},i.M={bit:0},i.Q={bit:3},i.H={bit:2};function r(s){if(typeof s!="string")throw new Error("Param is not a string");switch(s.toLowerCase()){case"l":case"low":return i.L;case"m":case"medium":return i.M;case"q":case"quartile":return i.Q;case"h":case"high":return i.H;default:throw new Error("Unknown EC Level: "+s)}}i.isValid=function(l){return l&&typeof l.bit<"u"&&l.bit>=0&&l.bit<4},i.from=function(l,c){if(i.isValid(l))return l;try{return r(l)}catch{return c}}})(lc)),lc}var sc,k0;function zw(){if(k0)return sc;k0=1;function i(){this.buffer=[],this.length=0}return i.prototype={get:function(r){const s=Math.floor(r/8);return(this.buffer[s]>>>7-r%8&1)===1},put:function(r,s){for(let l=0;l<s;l++)this.putBit((r>>>s-l-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(r){const s=Math.floor(this.length/8);this.buffer.length<=s&&this.buffer.push(0),r&&(this.buffer[s]|=128>>>this.length%8),this.length++}},sc=i,sc}var oc,L0;function Bw(){if(L0)return oc;L0=1;function i(r){if(!r||r<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=r,this.data=new Uint8Array(r*r),this.reservedBit=new Uint8Array(r*r)}return i.prototype.set=function(r,s,l,c){const f=r*this.size+s;this.data[f]=l,c&&(this.reservedBit[f]=!0)},i.prototype.get=function(r,s){return this.data[r*this.size+s]},i.prototype.xor=function(r,s,l){this.data[r*this.size+s]^=l},i.prototype.isReserved=function(r,s){return this.reservedBit[r*this.size+s]},oc=i,oc}var uc={},H0;function Ow(){return H0||(H0=1,(function(i){const r=Wa().getSymbolSize;i.getRowColCoords=function(l){if(l===1)return[];const c=Math.floor(l/7)+2,f=r(l),d=f===145?26:Math.ceil((f-13)/(2*c-2))*2,h=[f-7];for(let v=1;v<c-1;v++)h[v]=h[v-1]-d;return h.push(6),h.reverse()},i.getPositions=function(l){const c=[],f=i.getRowColCoords(l),d=f.length;for(let h=0;h<d;h++)for(let v=0;v<d;v++)h===0&&v===0||h===0&&v===d-1||h===d-1&&v===0||c.push([f[h],f[v]]);return c}})(uc)),uc}var cc={},F0;function jw(){if(F0)return cc;F0=1;const i=Wa().getSymbolSize,r=7;return cc.getPositions=function(l){const c=i(l);return[[0,0],[c-r,0],[0,c-r]]},cc}var fc={},V0;function qw(){return V0||(V0=1,(function(i){i.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const r={N1:3,N2:3,N3:40,N4:10};i.isValid=function(c){return c!=null&&c!==""&&!isNaN(c)&&c>=0&&c<=7},i.from=function(c){return i.isValid(c)?parseInt(c,10):void 0},i.getPenaltyN1=function(c){const f=c.size;let d=0,h=0,v=0,b=null,w=null;for(let A=0;A<f;A++){h=v=0,b=w=null;for(let U=0;U<f;U++){let S=c.get(A,U);S===b?h++:(h>=5&&(d+=r.N1+(h-5)),b=S,h=1),S=c.get(U,A),S===w?v++:(v>=5&&(d+=r.N1+(v-5)),w=S,v=1)}h>=5&&(d+=r.N1+(h-5)),v>=5&&(d+=r.N1+(v-5))}return d},i.getPenaltyN2=function(c){const f=c.size;let d=0;for(let h=0;h<f-1;h++)for(let v=0;v<f-1;v++){const b=c.get(h,v)+c.get(h,v+1)+c.get(h+1,v)+c.get(h+1,v+1);(b===4||b===0)&&d++}return d*r.N2},i.getPenaltyN3=function(c){const f=c.size;let d=0,h=0,v=0;for(let b=0;b<f;b++){h=v=0;for(let w=0;w<f;w++)h=h<<1&2047|c.get(b,w),w>=10&&(h===1488||h===93)&&d++,v=v<<1&2047|c.get(w,b),w>=10&&(v===1488||v===93)&&d++}return d*r.N3},i.getPenaltyN4=function(c){let f=0;const d=c.data.length;for(let v=0;v<d;v++)f+=c.data[v];return Math.abs(Math.ceil(f*100/d/5)-10)*r.N4};function s(l,c,f){switch(l){case i.Patterns.PATTERN000:return(c+f)%2===0;case i.Patterns.PATTERN001:return c%2===0;case i.Patterns.PATTERN010:return f%3===0;case i.Patterns.PATTERN011:return(c+f)%3===0;case i.Patterns.PATTERN100:return(Math.floor(c/2)+Math.floor(f/3))%2===0;case i.Patterns.PATTERN101:return c*f%2+c*f%3===0;case i.Patterns.PATTERN110:return(c*f%2+c*f%3)%2===0;case i.Patterns.PATTERN111:return(c*f%3+(c+f)%2)%2===0;default:throw new Error("bad maskPattern:"+l)}}i.applyMask=function(c,f){const d=f.size;for(let h=0;h<d;h++)for(let v=0;v<d;v++)f.isReserved(v,h)||f.xor(v,h,s(c,v,h))},i.getBestMask=function(c,f){const d=Object.keys(i.Patterns).length;let h=0,v=1/0;for(let b=0;b<d;b++){f(b),i.applyMask(b,c);const w=i.getPenaltyN1(c)+i.getPenaltyN2(c)+i.getPenaltyN3(c)+i.getPenaltyN4(c);i.applyMask(b,c),w<v&&(v=w,h=b)}return h}})(fc)),fc}var Es={},K0;function Gg(){if(K0)return Es;K0=1;const i=Xc(),r=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],s=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return Es.getBlocksCount=function(c,f){switch(f){case i.L:return r[(c-1)*4+0];case i.M:return r[(c-1)*4+1];case i.Q:return r[(c-1)*4+2];case i.H:return r[(c-1)*4+3];default:return}},Es.getTotalCodewordsCount=function(c,f){switch(f){case i.L:return s[(c-1)*4+0];case i.M:return s[(c-1)*4+1];case i.Q:return s[(c-1)*4+2];case i.H:return s[(c-1)*4+3];default:return}},Es}var dc={},$r={},Y0;function kw(){if(Y0)return $r;Y0=1;const i=new Uint8Array(512),r=new Uint8Array(256);return(function(){let l=1;for(let c=0;c<255;c++)i[c]=l,r[l]=c,l<<=1,l&256&&(l^=285);for(let c=255;c<512;c++)i[c]=i[c-255]})(),$r.log=function(l){if(l<1)throw new Error("log("+l+")");return r[l]},$r.exp=function(l){return i[l]},$r.mul=function(l,c){return l===0||c===0?0:i[r[l]+r[c]]},$r}var I0;function Lw(){return I0||(I0=1,(function(i){const r=kw();i.mul=function(l,c){const f=new Uint8Array(l.length+c.length-1);for(let d=0;d<l.length;d++)for(let h=0;h<c.length;h++)f[d+h]^=r.mul(l[d],c[h]);return f},i.mod=function(l,c){let f=new Uint8Array(l);for(;f.length-c.length>=0;){const d=f[0];for(let v=0;v<c.length;v++)f[v]^=r.mul(c[v],d);let h=0;for(;h<f.length&&f[h]===0;)h++;f=f.slice(h)}return f},i.generateECPolynomial=function(l){let c=new Uint8Array([1]);for(let f=0;f<l;f++)c=i.mul(c,new Uint8Array([1,r.exp(f)]));return c}})(dc)),dc}var hc,G0;function Hw(){if(G0)return hc;G0=1;const i=Lw();function r(s){this.genPoly=void 0,this.degree=s,this.degree&&this.initialize(this.degree)}return r.prototype.initialize=function(l){this.degree=l,this.genPoly=i.generateECPolynomial(this.degree)},r.prototype.encode=function(l){if(!this.genPoly)throw new Error("Encoder not initialized");const c=new Uint8Array(l.length+this.degree);c.set(l);const f=i.mod(c,this.genPoly),d=this.degree-f.length;if(d>0){const h=new Uint8Array(this.degree);return h.set(f,d),h}return f},hc=r,hc}var mc={},gc={},pc={},Q0;function Qg(){return Q0||(Q0=1,pc.isValid=function(r){return!isNaN(r)&&r>=1&&r<=40}),pc}var Rn={},X0;function Xg(){if(X0)return Rn;X0=1;const i="[0-9]+",r="[A-Z $%*+\\-./:]+";let s="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";s=s.replace(/u/g,"\\u");const l="(?:(?![A-Z0-9 $%*+\\-./:]|"+s+`)(?:.|[\r
12
+ ]))+`;Rn.KANJI=new RegExp(s,"g"),Rn.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Rn.BYTE=new RegExp(l,"g"),Rn.NUMERIC=new RegExp(i,"g"),Rn.ALPHANUMERIC=new RegExp(r,"g");const c=new RegExp("^"+s+"$"),f=new RegExp("^"+i+"$"),d=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Rn.testKanji=function(v){return c.test(v)},Rn.testNumeric=function(v){return f.test(v)},Rn.testAlphanumeric=function(v){return d.test(v)},Rn}var Z0;function ei(){return Z0||(Z0=1,(function(i){const r=Qg(),s=Xg();i.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},i.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},i.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},i.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},i.MIXED={bit:-1},i.getCharCountIndicator=function(f,d){if(!f.ccBits)throw new Error("Invalid mode: "+f);if(!r.isValid(d))throw new Error("Invalid version: "+d);return d>=1&&d<10?f.ccBits[0]:d<27?f.ccBits[1]:f.ccBits[2]},i.getBestModeForData=function(f){return s.testNumeric(f)?i.NUMERIC:s.testAlphanumeric(f)?i.ALPHANUMERIC:s.testKanji(f)?i.KANJI:i.BYTE},i.toString=function(f){if(f&&f.id)return f.id;throw new Error("Invalid mode")},i.isValid=function(f){return f&&f.bit&&f.ccBits};function l(c){if(typeof c!="string")throw new Error("Param is not a string");switch(c.toLowerCase()){case"numeric":return i.NUMERIC;case"alphanumeric":return i.ALPHANUMERIC;case"kanji":return i.KANJI;case"byte":return i.BYTE;default:throw new Error("Unknown mode: "+c)}}i.from=function(f,d){if(i.isValid(f))return f;try{return l(f)}catch{return d}}})(gc)),gc}var J0;function Fw(){return J0||(J0=1,(function(i){const r=Wa(),s=Gg(),l=Xc(),c=ei(),f=Qg(),d=7973,h=r.getBCHDigit(d);function v(U,S,N){for(let _=1;_<=40;_++)if(S<=i.getCapacity(_,N,U))return _}function b(U,S){return c.getCharCountIndicator(U,S)+4}function w(U,S){let N=0;return U.forEach(function(_){const I=b(_.mode,S);N+=I+_.getBitsLength()}),N}function A(U,S){for(let N=1;N<=40;N++)if(w(U,N)<=i.getCapacity(N,S,c.MIXED))return N}i.from=function(S,N){return f.isValid(S)?parseInt(S,10):N},i.getCapacity=function(S,N,_){if(!f.isValid(S))throw new Error("Invalid QR Code version");typeof _>"u"&&(_=c.BYTE);const I=r.getSymbolTotalCodewords(S),K=s.getTotalCodewordsCount(S,N),P=(I-K)*8;if(_===c.MIXED)return P;const J=P-b(_,S);switch(_){case c.NUMERIC:return Math.floor(J/10*3);case c.ALPHANUMERIC:return Math.floor(J/11*2);case c.KANJI:return Math.floor(J/13);case c.BYTE:default:return Math.floor(J/8)}},i.getBestVersionForData=function(S,N){let _;const I=l.from(N,l.M);if(Array.isArray(S)){if(S.length>1)return A(S,I);if(S.length===0)return 1;_=S[0]}else _=S;return v(_.mode,_.getLength(),I)},i.getEncodedBits=function(S){if(!f.isValid(S)||S<7)throw new Error("Invalid QR Code version");let N=S<<12;for(;r.getBCHDigit(N)-h>=0;)N^=d<<r.getBCHDigit(N)-h;return S<<12|N}})(mc)),mc}var vc={},P0;function Vw(){if(P0)return vc;P0=1;const i=Wa(),r=1335,s=21522,l=i.getBCHDigit(r);return vc.getEncodedBits=function(f,d){const h=f.bit<<3|d;let v=h<<10;for(;i.getBCHDigit(v)-l>=0;)v^=r<<i.getBCHDigit(v)-l;return(h<<10|v)^s},vc}var yc={},bc,$0;function Kw(){if($0)return bc;$0=1;const i=ei();function r(s){this.mode=i.NUMERIC,this.data=s.toString()}return r.getBitsLength=function(l){return 10*Math.floor(l/3)+(l%3?l%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(l){let c,f,d;for(c=0;c+3<=this.data.length;c+=3)f=this.data.substr(c,3),d=parseInt(f,10),l.put(d,10);const h=this.data.length-c;h>0&&(f=this.data.substr(c),d=parseInt(f,10),l.put(d,h*3+1))},bc=r,bc}var Sc,W0;function Yw(){if(W0)return Sc;W0=1;const i=ei(),r=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function s(l){this.mode=i.ALPHANUMERIC,this.data=l}return s.getBitsLength=function(c){return 11*Math.floor(c/2)+6*(c%2)},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(c){let f;for(f=0;f+2<=this.data.length;f+=2){let d=r.indexOf(this.data[f])*45;d+=r.indexOf(this.data[f+1]),c.put(d,11)}this.data.length%2&&c.put(r.indexOf(this.data[f]),6)},Sc=s,Sc}var wc,eg;function Iw(){if(eg)return wc;eg=1;const i=ei();function r(s){this.mode=i.BYTE,typeof s=="string"?this.data=new TextEncoder().encode(s):this.data=new Uint8Array(s)}return r.getBitsLength=function(l){return l*8},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(s){for(let l=0,c=this.data.length;l<c;l++)s.put(this.data[l],8)},wc=r,wc}var xc,tg;function Gw(){if(tg)return xc;tg=1;const i=ei(),r=Wa();function s(l){this.mode=i.KANJI,this.data=l}return s.getBitsLength=function(c){return c*13},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(l){let c;for(c=0;c<this.data.length;c++){let f=r.toSJIS(this.data[c]);if(f>=33088&&f<=40956)f-=33088;else if(f>=57408&&f<=60351)f-=49472;else throw new Error("Invalid SJIS character: "+this.data[c]+`
13
+ Make sure your charset is UTF-8`);f=(f>>>8&255)*192+(f&255),l.put(f,13)}},xc=s,xc}var Ec={exports:{}},ng;function Qw(){return ng||(ng=1,(function(i){var r={single_source_shortest_paths:function(s,l,c){var f={},d={};d[l]=0;var h=r.PriorityQueue.make();h.push(l,0);for(var v,b,w,A,U,S,N,_,I;!h.empty();){v=h.pop(),b=v.value,A=v.cost,U=s[b]||{};for(w in U)U.hasOwnProperty(w)&&(S=U[w],N=A+S,_=d[w],I=typeof d[w]>"u",(I||_>N)&&(d[w]=N,h.push(w,N),f[w]=b))}if(typeof c<"u"&&typeof d[c]>"u"){var K=["Could not find a path from ",l," to ",c,"."].join("");throw new Error(K)}return f},extract_shortest_path_from_predecessor_list:function(s,l){for(var c=[],f=l;f;)c.push(f),s[f],f=s[f];return c.reverse(),c},find_path:function(s,l,c){var f=r.single_source_shortest_paths(s,l,c);return r.extract_shortest_path_from_predecessor_list(f,c)},PriorityQueue:{make:function(s){var l=r.PriorityQueue,c={},f;s=s||{};for(f in l)l.hasOwnProperty(f)&&(c[f]=l[f]);return c.queue=[],c.sorter=s.sorter||l.default_sorter,c},default_sorter:function(s,l){return s.cost-l.cost},push:function(s,l){var c={value:s,cost:l};this.queue.push(c),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};i.exports=r})(Ec)),Ec.exports}var ag;function Xw(){return ag||(ag=1,(function(i){const r=ei(),s=Kw(),l=Yw(),c=Iw(),f=Gw(),d=Xg(),h=Wa(),v=Qw();function b(K){return unescape(encodeURIComponent(K)).length}function w(K,P,J){const $=[];let oe;for(;(oe=K.exec(J))!==null;)$.push({data:oe[0],index:oe.index,mode:P,length:oe[0].length});return $}function A(K){const P=w(d.NUMERIC,r.NUMERIC,K),J=w(d.ALPHANUMERIC,r.ALPHANUMERIC,K);let $,oe;return h.isKanjiModeEnabled()?($=w(d.BYTE,r.BYTE,K),oe=w(d.KANJI,r.KANJI,K)):($=w(d.BYTE_KANJI,r.BYTE,K),oe=[]),P.concat(J,$,oe).sort(function(W,L){return W.index-L.index}).map(function(W){return{data:W.data,mode:W.mode,length:W.length}})}function U(K,P){switch(P){case r.NUMERIC:return s.getBitsLength(K);case r.ALPHANUMERIC:return l.getBitsLength(K);case r.KANJI:return f.getBitsLength(K);case r.BYTE:return c.getBitsLength(K)}}function S(K){return K.reduce(function(P,J){const $=P.length-1>=0?P[P.length-1]:null;return $&&$.mode===J.mode?(P[P.length-1].data+=J.data,P):(P.push(J),P)},[])}function N(K){const P=[];for(let J=0;J<K.length;J++){const $=K[J];switch($.mode){case r.NUMERIC:P.push([$,{data:$.data,mode:r.ALPHANUMERIC,length:$.length},{data:$.data,mode:r.BYTE,length:$.length}]);break;case r.ALPHANUMERIC:P.push([$,{data:$.data,mode:r.BYTE,length:$.length}]);break;case r.KANJI:P.push([$,{data:$.data,mode:r.BYTE,length:b($.data)}]);break;case r.BYTE:P.push([{data:$.data,mode:r.BYTE,length:b($.data)}])}}return P}function _(K,P){const J={},$={start:{}};let oe=["start"];for(let X=0;X<K.length;X++){const W=K[X],L=[];for(let Z=0;Z<W.length;Z++){const ce=W[Z],ne=""+X+Z;L.push(ne),J[ne]={node:ce,lastCount:0},$[ne]={};for(let ee=0;ee<oe.length;ee++){const le=oe[ee];J[le]&&J[le].node.mode===ce.mode?($[le][ne]=U(J[le].lastCount+ce.length,ce.mode)-U(J[le].lastCount,ce.mode),J[le].lastCount+=ce.length):(J[le]&&(J[le].lastCount=ce.length),$[le][ne]=U(ce.length,ce.mode)+4+r.getCharCountIndicator(ce.mode,P))}}oe=L}for(let X=0;X<oe.length;X++)$[oe[X]].end=0;return{map:$,table:J}}function I(K,P){let J;const $=r.getBestModeForData(K);if(J=r.from(P,$),J!==r.BYTE&&J.bit<$.bit)throw new Error('"'+K+'" cannot be encoded with mode '+r.toString(J)+`.
14
+ Suggested mode is: `+r.toString($));switch(J===r.KANJI&&!h.isKanjiModeEnabled()&&(J=r.BYTE),J){case r.NUMERIC:return new s(K);case r.ALPHANUMERIC:return new l(K);case r.KANJI:return new f(K);case r.BYTE:return new c(K)}}i.fromArray=function(P){return P.reduce(function(J,$){return typeof $=="string"?J.push(I($,null)):$.data&&J.push(I($.data,$.mode)),J},[])},i.fromString=function(P,J){const $=A(P,h.isKanjiModeEnabled()),oe=N($),X=_(oe,J),W=v.find_path(X.map,"start","end"),L=[];for(let Z=1;Z<W.length-1;Z++)L.push(X.table[W[Z]].node);return i.fromArray(S(L))},i.rawSplit=function(P){return i.fromArray(A(P,h.isKanjiModeEnabled()))}})(yc)),yc}var ig;function Zw(){if(ig)return rc;ig=1;const i=Wa(),r=Xc(),s=zw(),l=Bw(),c=Ow(),f=jw(),d=qw(),h=Gg(),v=Hw(),b=Fw(),w=Vw(),A=ei(),U=Xw();function S(X,W){const L=X.size,Z=f.getPositions(W);for(let ce=0;ce<Z.length;ce++){const ne=Z[ce][0],ee=Z[ce][1];for(let le=-1;le<=7;le++)if(!(ne+le<=-1||L<=ne+le))for(let ue=-1;ue<=7;ue++)ee+ue<=-1||L<=ee+ue||(le>=0&&le<=6&&(ue===0||ue===6)||ue>=0&&ue<=6&&(le===0||le===6)||le>=2&&le<=4&&ue>=2&&ue<=4?X.set(ne+le,ee+ue,!0,!0):X.set(ne+le,ee+ue,!1,!0))}}function N(X){const W=X.size;for(let L=8;L<W-8;L++){const Z=L%2===0;X.set(L,6,Z,!0),X.set(6,L,Z,!0)}}function _(X,W){const L=c.getPositions(W);for(let Z=0;Z<L.length;Z++){const ce=L[Z][0],ne=L[Z][1];for(let ee=-2;ee<=2;ee++)for(let le=-2;le<=2;le++)ee===-2||ee===2||le===-2||le===2||ee===0&&le===0?X.set(ce+ee,ne+le,!0,!0):X.set(ce+ee,ne+le,!1,!0)}}function I(X,W){const L=X.size,Z=b.getEncodedBits(W);let ce,ne,ee;for(let le=0;le<18;le++)ce=Math.floor(le/3),ne=le%3+L-8-3,ee=(Z>>le&1)===1,X.set(ce,ne,ee,!0),X.set(ne,ce,ee,!0)}function K(X,W,L){const Z=X.size,ce=w.getEncodedBits(W,L);let ne,ee;for(ne=0;ne<15;ne++)ee=(ce>>ne&1)===1,ne<6?X.set(ne,8,ee,!0):ne<8?X.set(ne+1,8,ee,!0):X.set(Z-15+ne,8,ee,!0),ne<8?X.set(8,Z-ne-1,ee,!0):ne<9?X.set(8,15-ne-1+1,ee,!0):X.set(8,15-ne-1,ee,!0);X.set(Z-8,8,1,!0)}function P(X,W){const L=X.size;let Z=-1,ce=L-1,ne=7,ee=0;for(let le=L-1;le>0;le-=2)for(le===6&&le--;;){for(let ue=0;ue<2;ue++)if(!X.isReserved(ce,le-ue)){let Ae=!1;ee<W.length&&(Ae=(W[ee]>>>ne&1)===1),X.set(ce,le-ue,Ae),ne--,ne===-1&&(ee++,ne=7)}if(ce+=Z,ce<0||L<=ce){ce-=Z,Z=-Z;break}}}function J(X,W,L){const Z=new s;L.forEach(function(ue){Z.put(ue.mode.bit,4),Z.put(ue.getLength(),A.getCharCountIndicator(ue.mode,X)),ue.write(Z)});const ce=i.getSymbolTotalCodewords(X),ne=h.getTotalCodewordsCount(X,W),ee=(ce-ne)*8;for(Z.getLengthInBits()+4<=ee&&Z.put(0,4);Z.getLengthInBits()%8!==0;)Z.putBit(0);const le=(ee-Z.getLengthInBits())/8;for(let ue=0;ue<le;ue++)Z.put(ue%2?17:236,8);return $(Z,X,W)}function $(X,W,L){const Z=i.getSymbolTotalCodewords(W),ce=h.getTotalCodewordsCount(W,L),ne=Z-ce,ee=h.getBlocksCount(W,L),le=Z%ee,ue=ee-le,Ae=Math.floor(Z/ee),j=Math.floor(ne/ee),Q=j+1,G=Ae-j,ie=new v(G);let be=0;const Se=new Array(ee),re=new Array(ee);let te=0;const fe=new Uint8Array(X.buffer);for(let Ke=0;Ke<ee;Ke++){const st=Ke<ue?j:Q;Se[Ke]=fe.slice(be,be+st),re[Ke]=ie.encode(Se[Ke]),be+=st,te=Math.max(te,st)}const De=new Uint8Array(Z);let Je=0,pe,$e;for(pe=0;pe<te;pe++)for($e=0;$e<ee;$e++)pe<Se[$e].length&&(De[Je++]=Se[$e][pe]);for(pe=0;pe<G;pe++)for($e=0;$e<ee;$e++)De[Je++]=re[$e][pe];return De}function oe(X,W,L,Z){let ce;if(Array.isArray(X))ce=U.fromArray(X);else if(typeof X=="string"){let Ae=W;if(!Ae){const j=U.rawSplit(X);Ae=b.getBestVersionForData(j,L)}ce=U.fromString(X,Ae||40)}else throw new Error("Invalid data");const ne=b.getBestVersionForData(ce,L);if(!ne)throw new Error("The amount of data is too big to be stored in a QR Code");if(!W)W=ne;else if(W<ne)throw new Error(`
15
+ The chosen QR Code version cannot contain this amount of data.
16
+ Minimum version required to store current data is: `+ne+`.
17
+ `);const ee=J(W,L,ce),le=i.getSymbolSize(W),ue=new l(le);return S(ue,W),N(ue),_(ue,W),K(ue,L,0),W>=7&&I(ue,W),P(ue,ee),isNaN(Z)&&(Z=d.getBestMask(ue,K.bind(null,ue,L))),d.applyMask(Z,ue),K(ue,L,Z),{modules:ue,version:W,errorCorrectionLevel:L,maskPattern:Z,segments:ce}}return rc.create=function(W,L){if(typeof W>"u"||W==="")throw new Error("No input text");let Z=r.M,ce,ne;return typeof L<"u"&&(Z=r.from(L.errorCorrectionLevel,r.M),ce=b.from(L.version),ne=d.from(L.maskPattern),L.toSJISFunc&&i.setToSJISFunction(L.toSJISFunc)),oe(W,ce,Z,ne)},rc}var Ac={},Tc={},rg;function Zg(){return rg||(rg=1,(function(i){function r(s){if(typeof s=="number"&&(s=s.toString()),typeof s!="string")throw new Error("Color should be defined as hex string");let l=s.slice().replace("#","").split("");if(l.length<3||l.length===5||l.length>8)throw new Error("Invalid hex color: "+s);(l.length===3||l.length===4)&&(l=Array.prototype.concat.apply([],l.map(function(f){return[f,f]}))),l.length===6&&l.push("F","F");const c=parseInt(l.join(""),16);return{r:c>>24&255,g:c>>16&255,b:c>>8&255,a:c&255,hex:"#"+l.slice(0,6).join("")}}i.getOptions=function(l){l||(l={}),l.color||(l.color={});const c=typeof l.margin>"u"||l.margin===null||l.margin<0?4:l.margin,f=l.width&&l.width>=21?l.width:void 0,d=l.scale||4;return{width:f,scale:f?4:d,margin:c,color:{dark:r(l.color.dark||"#000000ff"),light:r(l.color.light||"#ffffffff")},type:l.type,rendererOpts:l.rendererOpts||{}}},i.getScale=function(l,c){return c.width&&c.width>=l+c.margin*2?c.width/(l+c.margin*2):c.scale},i.getImageWidth=function(l,c){const f=i.getScale(l,c);return Math.floor((l+c.margin*2)*f)},i.qrToImageData=function(l,c,f){const d=c.modules.size,h=c.modules.data,v=i.getScale(d,f),b=Math.floor((d+f.margin*2)*v),w=f.margin*v,A=[f.color.light,f.color.dark];for(let U=0;U<b;U++)for(let S=0;S<b;S++){let N=(U*b+S)*4,_=f.color.light;if(U>=w&&S>=w&&U<b-w&&S<b-w){const I=Math.floor((U-w)/v),K=Math.floor((S-w)/v);_=A[h[I*d+K]?1:0]}l[N++]=_.r,l[N++]=_.g,l[N++]=_.b,l[N]=_.a}}})(Tc)),Tc}var lg;function Jw(){return lg||(lg=1,(function(i){const r=Zg();function s(c,f,d){c.clearRect(0,0,f.width,f.height),f.style||(f.style={}),f.height=d,f.width=d,f.style.height=d+"px",f.style.width=d+"px"}function l(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}i.render=function(f,d,h){let v=h,b=d;typeof v>"u"&&(!d||!d.getContext)&&(v=d,d=void 0),d||(b=l()),v=r.getOptions(v);const w=r.getImageWidth(f.modules.size,v),A=b.getContext("2d"),U=A.createImageData(w,w);return r.qrToImageData(U.data,f,v),s(A,b,w),A.putImageData(U,0,0),b},i.renderToDataURL=function(f,d,h){let v=h;typeof v>"u"&&(!d||!d.getContext)&&(v=d,d=void 0),v||(v={});const b=i.render(f,d,v),w=v.type||"image/png",A=v.rendererOpts||{};return b.toDataURL(w,A.quality)}})(Ac)),Ac}var Cc={},sg;function Pw(){if(sg)return Cc;sg=1;const i=Zg();function r(c,f){const d=c.a/255,h=f+'="'+c.hex+'"';return d<1?h+" "+f+'-opacity="'+d.toFixed(2).slice(1)+'"':h}function s(c,f,d){let h=c+f;return typeof d<"u"&&(h+=" "+d),h}function l(c,f,d){let h="",v=0,b=!1,w=0;for(let A=0;A<c.length;A++){const U=Math.floor(A%f),S=Math.floor(A/f);!U&&!b&&(b=!0),c[A]?(w++,A>0&&U>0&&c[A-1]||(h+=b?s("M",U+d,.5+S+d):s("m",v,0),v=0,b=!1),U+1<f&&c[A+1]||(h+=s("h",w),w=0)):v++}return h}return Cc.render=function(f,d,h){const v=i.getOptions(d),b=f.modules.size,w=f.modules.data,A=b+v.margin*2,U=v.color.light.a?"<path "+r(v.color.light,"fill")+' d="M0 0h'+A+"v"+A+'H0z"/>':"",S="<path "+r(v.color.dark,"stroke")+' d="'+l(w,b,v.margin)+'"/>',N='viewBox="0 0 '+A+" "+A+'"',I='<svg xmlns="http://www.w3.org/2000/svg" '+(v.width?'width="'+v.width+'" height="'+v.width+'" ':"")+N+' shape-rendering="crispEdges">'+U+S+`</svg>
18
+ `;return typeof h=="function"&&h(null,I),I},Cc}var og;function $w(){if(og)return Yi;og=1;const i=Mw(),r=Zw(),s=Jw(),l=Pw();function c(f,d,h,v,b){const w=[].slice.call(arguments,1),A=w.length,U=typeof w[A-1]=="function";if(!U&&!i())throw new Error("Callback required as last argument");if(U){if(A<2)throw new Error("Too few arguments provided");A===2?(b=h,h=d,d=v=void 0):A===3&&(d.getContext&&typeof b>"u"?(b=v,v=void 0):(b=v,v=h,h=d,d=void 0))}else{if(A<1)throw new Error("Too few arguments provided");return A===1?(h=d,d=v=void 0):A===2&&!d.getContext&&(v=h,h=d,d=void 0),new Promise(function(S,N){try{const _=r.create(h,v);S(f(_,d,v))}catch(_){N(_)}})}try{const S=r.create(h,v);b(null,f(S,d,v))}catch(S){b(S)}}return Yi.create=r.create,Yi.toCanvas=c.bind(null,s.render),Yi.toDataURL=c.bind(null,s.renderToDataURL),Yi.toString=c.bind(null,function(f,d,h){return l.render(f,h)}),Yi}var Ww=$w();function ex({...i}){return T.jsx(Ty,{"data-slot":"dialog",...i})}function dE({...i}){return T.jsx(Cy,{"data-slot":"dialog-trigger",...i})}function tx({...i}){return T.jsx(Ry,{"data-slot":"dialog-portal",...i})}function nx({className:i,...r}){return T.jsx(Ny,{"data-slot":"dialog-overlay",className:ft("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",i),...r})}function ax({className:i,children:r,showCloseButton:s=!0,...l}){return T.jsxs(tx,{"data-slot":"dialog-portal",children:[T.jsx(nx,{}),T.jsxs(Uy,{"data-slot":"dialog-content",className:ft("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 outline-none sm:max-w-lg",i),...l,children:[r,s&&T.jsxs(dg,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[T.jsx(k1,{}),T.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function ix({className:i,...r}){return T.jsx("div",{"data-slot":"dialog-header",className:ft("flex flex-col gap-2 text-center sm:text-left",i),...r})}function hE({className:i,showCloseButton:r=!1,children:s,...l}){return T.jsxs("div",{"data-slot":"dialog-footer",className:ft("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",i),...l,children:[s,r&&T.jsx(dg,{asChild:!0,children:T.jsx(fn,{variant:"outline",children:"Close"})})]})}function rx({className:i,...r}){return T.jsx(Dy,{"data-slot":"dialog-title",className:ft("text-lg leading-none font-semibold",i),...r})}function lx({className:i,...r}){return T.jsx(_y,{"data-slot":"dialog-description",className:ft("text-muted-foreground text-sm",i),...r})}function sx({className:i,orientation:r="horizontal",...s}){return T.jsx(My,{"data-slot":"tabs","data-orientation":r,orientation:r,className:ft("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",i),...s})}const ox=zg("rounded-lg p-[3px] group-data-[orientation=horizontal]/tabs:h-9 data-[variant=line]:rounded-none group/tabs-list text-muted-foreground inline-flex w-fit items-center justify-center group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function ux({className:i,variant:r="default",...s}){return T.jsx(zy,{"data-slot":"tabs-list","data-variant":r,className:ft(ox({variant:r}),i),...s})}function Uc({className:i,...r}){return T.jsx(By,{"data-slot":"tabs-trigger",className:ft("focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground/60 hover:text-foreground dark:text-muted-foreground dark:hover:text-foreground relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent","data-[state=active]:bg-background dark:data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 data-[state=active]:text-foreground","after:bg-foreground after:absolute after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",i),...r})}function Dc({className:i,...r}){return T.jsx(Oy,{"data-slot":"tabs-content",className:ft("flex-1 outline-none",i),...r})}function Ua({className:i,type:r,...s}){return T.jsx("input",{type:r,"data-slot":"input",className:ft("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",i),...s})}function Da({className:i,...r}){return T.jsx(jy,{"data-slot":"label",className:ft("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",i),...r})}const ug=12;function Pa(i,r){if(i&&typeof i=="object"&&"name"in i){const s=i.name;if(s==="NotAuthorizedException")return"Current password is incorrect";if(s==="InvalidPasswordException")return"New password does not meet requirements";if(s==="LimitExceededException")return"Too many attempts. Please try again later.";if(s==="AliasExistsException")return"An account with this email already exists";if(s==="CodeMismatchException")return"Invalid verification code";if(s==="EnableSoftwareTokenMFAException")return"Invalid authentication code"}return r}function cx({open:i,onOpenChange:r}){const{user:s,updateUserEmail:l}=Rs(),[c,f]=se.useState(""),[d,h]=se.useState(""),[v,b]=se.useState(""),[w,A]=se.useState(""),[U,S]=se.useState(!1),[N,_]=se.useState("input"),[I,K]=se.useState(""),[P,J]=se.useState(""),[$,oe]=se.useState(""),[X,W]=se.useState(!1),[L,Z]=se.useState(null),[ce,ne]=se.useState("status"),[ee,le]=se.useState(""),[ue,Ae]=se.useState(""),[j,Q]=se.useState(""),[G,ie]=se.useState(!1),[be,Se]=se.useState("");se.useEffect(()=>{i&&x2().then(Z).catch(()=>Z(!1))},[i]);function re(){f(""),h(""),b(""),A(""),S(!1),_("input"),K(""),J(""),oe(""),W(!1),Z(null),ne("status"),le(""),Ae(""),Q(""),ie(!1),Se("")}async function te(xe){if(xe.preventDefault(),A(""),d.length<ug){A(`Password must be at least ${ug} characters`);return}if(d!==v){A("Passwords do not match");return}if(d===c){A("New password must be different from current password");return}S(!0);try{await b2(c,d),vs.success("Password changed successfully"),f(""),h(""),b(""),A("")}catch(Ye){A(Pa(Ye,"Failed to change password"))}finally{S(!1)}}async function fe(xe){if(xe.preventDefault(),oe(""),!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(I)){oe("Please enter a valid email address");return}if(I===s?.email){oe("New email must be different from current email");return}W(!0);try{await S0(I),_("verify")}catch(gn){oe(Pa(gn,"Failed to send verification code"))}finally{W(!1)}}async function De(xe){xe.preventDefault(),oe(""),W(!0);try{await S2(P),l(I),vs.success("Email changed successfully"),_("input"),K(""),J("")}catch(Ye){oe(Pa(Ye,"Failed to verify email"))}finally{W(!1)}}async function Je(){oe(""),W(!0);try{await S0(I)}catch(xe){oe(Pa(xe,"Failed to resend verification code"))}finally{W(!1)}}async function pe(){Q(""),ie(!0);try{const xe=await w2();le(xe);const Ye=`otpauth://totp/Headroom%20CMS:${encodeURIComponent(s?.email??"")}?secret=${xe}&issuer=Headroom%20CMS`,gn=await Ww.toDataURL(Ye);Se(gn),ne("setup")}catch(xe){Q(Pa(xe,"Failed to start 2FA setup"))}finally{ie(!1)}}async function $e(xe){xe.preventDefault(),Q(""),ie(!0);try{await w0(ue),await x0(!0),Z(!0),ne("status"),le(""),Ae(""),Se(""),vs.success("Two-factor authentication enabled")}catch(Ye){Q(Pa(Ye,"Failed to verify code"))}finally{ie(!1)}}async function Ke(xe){xe.preventDefault(),Q(""),ie(!0);try{await w0(ue),await x0(!1),Z(!1),ne("status"),Ae(""),vs.success("Two-factor authentication disabled")}catch(Ye){Q(Pa(Ye,"Failed to disable 2FA"))}finally{ie(!1)}}function st(){return ce==="setup"?T.jsxs("div",{className:"space-y-4",children:[T.jsx("p",{className:"text-muted-foreground text-sm",children:"Scan this QR code with your authenticator app, then enter the 6-digit code below."}),be&&T.jsx("div",{className:"flex justify-center",children:T.jsx("img",{src:be,alt:"TOTP QR Code",className:"h-48 w-48"})}),T.jsxs("div",{className:"space-y-1",children:[T.jsx("p",{className:"text-muted-foreground text-xs",children:"Or enter this code manually:"}),T.jsx("code",{className:"bg-muted block rounded p-2 text-center text-sm font-mono break-all",children:ee})]}),T.jsxs("form",{onSubmit:$e,className:"space-y-4",children:[T.jsxs("div",{className:"space-y-2",children:[T.jsx(Da,{htmlFor:"totp-setup-code",children:"Authentication Code"}),T.jsx(Ua,{id:"totp-setup-code",type:"text",inputMode:"numeric",pattern:"[0-9]{6}",maxLength:6,value:ue,onChange:xe=>Ae(xe.target.value),required:!0,autoComplete:"one-time-code"})]}),j&&T.jsx("p",{className:"text-destructive text-sm",role:"alert",children:j}),T.jsxs("div",{className:"flex gap-2",children:[T.jsx(fn,{type:"button",variant:"outline",className:"flex-1",onClick:()=>{ne("status"),le(""),Ae(""),Se(""),Q("")},children:"Cancel"}),T.jsxs(fn,{type:"submit",className:"flex-1",disabled:G,children:[G&&T.jsx(Pn,{className:"mr-2 h-4 w-4 animate-spin"}),"Enable 2FA"]})]})]})]}):ce==="disable"?T.jsxs("div",{className:"space-y-4",children:[T.jsx("p",{className:"text-muted-foreground text-sm",children:"Enter a code from your authenticator app to confirm disabling two-factor authentication."}),T.jsxs("form",{onSubmit:Ke,className:"space-y-4",children:[T.jsxs("div",{className:"space-y-2",children:[T.jsx(Da,{htmlFor:"totp-disable-code",children:"Authentication Code"}),T.jsx(Ua,{id:"totp-disable-code",type:"text",inputMode:"numeric",pattern:"[0-9]{6}",maxLength:6,value:ue,onChange:xe=>Ae(xe.target.value),required:!0,autoComplete:"one-time-code"})]}),j&&T.jsx("p",{className:"text-destructive text-sm",role:"alert",children:j}),T.jsxs("div",{className:"flex gap-2",children:[T.jsx(fn,{type:"button",variant:"outline",className:"flex-1",onClick:()=>{ne("status"),Ae(""),Q("")},children:"Cancel"}),T.jsxs(fn,{type:"submit",variant:"destructive",className:"flex-1",disabled:G,children:[G&&T.jsx(Pn,{className:"mr-2 h-4 w-4 animate-spin"}),"Disable 2FA"]})]})]})]}):L===null?T.jsx("div",{className:"flex items-center justify-center py-4",children:T.jsx(Pn,{className:"h-5 w-5 animate-spin"})}):L?T.jsxs("div",{className:"space-y-4",children:[T.jsxs("p",{className:"text-sm",children:["Status: ",T.jsx("span",{className:"font-medium text-green-600",children:"Enabled"})]}),T.jsx(fn,{variant:"outline",className:"w-full",onClick:()=>{ne("disable"),Q(""),Ae("")},children:"Disable 2FA"})]}):T.jsxs("div",{className:"space-y-4",children:[T.jsxs("p",{className:"text-sm",children:["Status: ",T.jsx("span",{className:"text-muted-foreground",children:"Not enabled"})]}),j&&T.jsx("p",{className:"text-destructive text-sm",role:"alert",children:j}),T.jsxs(fn,{className:"w-full",onClick:pe,disabled:G,children:[G&&T.jsx(Pn,{className:"mr-2 h-4 w-4 animate-spin"}),"Set Up 2FA"]})]})}return T.jsx(ex,{open:i,onOpenChange:xe=>{xe||re(),r(xe)},children:T.jsxs(ax,{className:"sm:max-w-md",children:[T.jsxs(ix,{children:[T.jsx(rx,{children:"Account Settings"}),T.jsx(lx,{className:"sr-only",children:"Manage your password, email, and security settings"})]}),T.jsxs(sx,{defaultValue:"password",children:[T.jsxs(ux,{className:"w-full",children:[T.jsx(Uc,{value:"password",children:"Password"}),T.jsx(Uc,{value:"email",children:"Email"}),T.jsx(Uc,{value:"security",children:"Security"})]}),T.jsx(Dc,{value:"password",children:T.jsxs("form",{onSubmit:te,className:"space-y-4 pt-4",children:[T.jsxs("div",{className:"space-y-2",children:[T.jsx(Da,{htmlFor:"current-password",children:"Current Password"}),T.jsx(Ua,{id:"current-password",type:"password",value:c,onChange:xe=>f(xe.target.value),required:!0})]}),T.jsxs("div",{className:"space-y-2",children:[T.jsx(Da,{htmlFor:"new-password",children:"New Password"}),T.jsx(Ua,{id:"new-password",type:"password",value:d,onChange:xe=>h(xe.target.value),required:!0})]}),T.jsxs("div",{className:"space-y-2",children:[T.jsx(Da,{htmlFor:"confirm-password",children:"Confirm New Password"}),T.jsx(Ua,{id:"confirm-password",type:"password",value:v,onChange:xe=>b(xe.target.value),required:!0})]}),w&&T.jsx("p",{className:"text-destructive text-sm",role:"alert",children:w}),T.jsxs(fn,{type:"submit",disabled:U,className:"w-full",children:[U&&T.jsx(Pn,{className:"mr-2 h-4 w-4 animate-spin"}),"Change Password"]})]})}),T.jsx(Dc,{value:"email",children:T.jsx("div",{className:"pt-4",children:N==="input"?T.jsxs("form",{onSubmit:fe,className:"space-y-4",children:[T.jsxs("div",{className:"space-y-2",children:[T.jsx(Da,{htmlFor:"current-email",children:"Current Email"}),T.jsx(Ua,{id:"current-email",type:"email",value:s?.email??"",disabled:!0})]}),T.jsxs("div",{className:"space-y-2",children:[T.jsx(Da,{htmlFor:"new-email",children:"New Email"}),T.jsx(Ua,{id:"new-email",type:"email",value:I,onChange:xe=>K(xe.target.value),required:!0})]}),$&&T.jsx("p",{className:"text-destructive text-sm",role:"alert",children:$}),T.jsxs(fn,{type:"submit",disabled:X,className:"w-full",children:[X&&T.jsx(Pn,{className:"mr-2 h-4 w-4 animate-spin"}),"Send Verification Code"]})]}):T.jsxs("form",{onSubmit:De,className:"space-y-4",children:[T.jsxs("p",{className:"text-muted-foreground text-sm",children:["A verification code has been sent to"," ",T.jsx("strong",{children:I}),"."]}),T.jsxs("div",{className:"space-y-2",children:[T.jsx(Da,{htmlFor:"verification-code",children:"Verification Code"}),T.jsx(Ua,{id:"verification-code",type:"text",value:P,onChange:xe=>J(xe.target.value),required:!0})]}),$&&T.jsx("p",{className:"text-destructive text-sm",role:"alert",children:$}),T.jsxs(fn,{type:"submit",disabled:X,className:"w-full",children:[X&&T.jsx(Pn,{className:"mr-2 h-4 w-4 animate-spin"}),"Verify Email"]}),T.jsx("button",{type:"button",className:"text-muted-foreground hover:text-foreground text-sm underline",onClick:Je,children:"Resend code"})]})})}),T.jsx(Dc,{value:"security",children:T.jsxs("div",{className:"pt-4",children:[T.jsx("h3",{className:"mb-4 text-sm font-medium",children:"Two-Factor Authentication"}),st()]})})]})]})})}function fx({currentSite:i}){const{user:r,logout:s}=Rs(),[l,c]=se.useState(!1),{data:f}=_g(),{data:d}=Rg(),h=cy(),v=f?.items??[],b=r?(d?.superAdminIds??[]).includes(r.sub):!1;return T.jsxs("header",{className:"bg-background flex h-14 items-center border-b px-4",children:[T.jsxs("div",{className:"flex items-center gap-3",children:[T.jsx("span",{className:"text-lg font-semibold",children:"Headroom"}),i&&v.length>0&&T.jsxs(N0,{children:[T.jsx(M0,{asChild:!0,children:T.jsxs(fn,{variant:"outline",size:"sm",className:"gap-1",children:[i.name||i.host,T.jsx(i1,{className:"h-3 w-3 opacity-50"})]})}),T.jsxs(z0,{align:"start",children:[v.map(w=>T.jsx(Pr,{onSelect:()=>h(`/sites/${w.host}/content`),children:w.name||w.host},w.host)),b&&T.jsxs(T.Fragment,{children:[T.jsx(B0,{}),T.jsx(Pr,{onSelect:()=>h("/sites"),children:"Manage Sites"})]})]})]})]}),T.jsx("div",{className:"ml-auto flex items-center gap-2",children:T.jsxs(N0,{children:[T.jsx(M0,{asChild:!0,children:T.jsxs(fn,{variant:"ghost",size:"sm",className:"gap-2",children:[T.jsx(o1,{className:"h-4 w-4"}),T.jsx("span",{className:"text-muted-foreground text-sm",children:r?.email})]})}),T.jsxs(z0,{align:"end",children:[T.jsx(Pr,{disabled:!0,className:"text-xs",children:r?.email}),T.jsxs(Pr,{onSelect:()=>c(!0),children:[T.jsx(mg,{className:"mr-2 h-4 w-4"}),"Account Settings"]}),T.jsx(B0,{}),T.jsx(Pr,{onSelect:s,children:"Log out"})]})]})}),T.jsx(cx,{open:l,onOpenChange:c})]})}function dx({className:i,children:r,...s}){return T.jsxs(qy,{"data-slot":"scroll-area",className:ft("relative",i),...s,children:[T.jsx(ky,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:r}),T.jsx(hx,{}),T.jsx(Ly,{})]})}function hx({className:i,orientation:r="vertical",...s}){return T.jsx(Hy,{"data-slot":"scroll-area-scrollbar",orientation:r,className:ft("flex touch-none p-px transition-colors select-none",r==="vertical"&&"h-full w-2.5 border-l border-l-transparent",r==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",i),...s,children:T.jsx(Fy,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}function cg({className:i,orientation:r="horizontal",decorative:s=!0,...l}){return T.jsx(Vy,{"data-slot":"separator",decorative:s,orientation:r,className:ft("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",i),...l})}function mx({className:i,...r}){return T.jsx("div",{"data-slot":"skeleton",className:ft("bg-accent animate-pulse rounded-md",i),...r})}function gx(){const{user:i}=Rs(),{site:r}=Gc(),{data:s}=Rg();return i?(s?.superAdminIds??[]).includes(i.sub)?"admin":r.admins?.find(f=>f.id===i.sub)?.role??null:null}function cn({to:i,icon:r,end:s,children:l}){const{host:c}=fg(),f=`/sites/${c}/${i}`;return T.jsxs(fy,{to:f,end:s,className:({isActive:d})=>ft("flex items-center gap-2 rounded-md px-3 py-2 text-sm transition-colors",d?"bg-accent text-accent-foreground font-medium":"text-muted-foreground hover:bg-accent/50 hover:text-accent-foreground"),children:[T.jsx(r,{className:"h-4 w-4"}),l]})}function Wr({title:i,children:r}){return T.jsxs("div",{className:"mb-2",children:[i&&T.jsx("p",{className:"text-muted-foreground mb-1 px-3 text-xs font-medium uppercase tracking-wider",children:i}),T.jsx("div",{className:"space-y-0.5",children:r})]})}function px(){const{collections:i,isLoading:r}=Gc(),s=gx(),l=i.filter(d=>!d.singleton),c=i.filter(d=>d.singleton),f=s==="admin";return r?T.jsx("div",{className:"w-50 border-r p-4",children:T.jsx("div",{className:"space-y-3",children:Array.from({length:6}).map((d,h)=>T.jsx(mx,{className:"h-8 w-full"},h))})}):T.jsx("div",{className:"w-50 border-r",children:T.jsx(dx,{className:"h-[calc(100vh-3.5rem)]",children:T.jsxs("nav",{className:"space-y-1 p-3",children:[T.jsx(Wr,{title:"",children:T.jsx(cn,{to:"content",icon:c1,end:!0,children:"Recent"})}),l.length>0&&T.jsx(Wr,{title:"Collections",children:l.map(d=>T.jsx(cn,{to:`content/${d.name}`,icon:p1,children:d.label},d.name))}),c.length>0&&T.jsx(Wr,{title:"Singletons",children:c.map(d=>T.jsx(cn,{to:d.singletonContentId?`content/${d.name}/${d.singletonContentId}`:`content/${d.name}`,icon:mg,children:d.label},d.name))}),T.jsx(cg,{className:"my-2"}),T.jsxs(Wr,{title:"Content",children:[T.jsx(cn,{to:"media",icon:S1,children:"Media"}),T.jsx(cn,{to:"settings/tags",icon:R1,children:"Tags"})]}),f&&T.jsxs(T.Fragment,{children:[T.jsx(cg,{className:"my-2"}),T.jsxs(Wr,{title:"Settings",children:[T.jsx(cn,{to:"settings/collections",icon:m1,children:"Collections"}),T.jsx(cn,{to:"settings/block-types",icon:n1,children:"Block Types"}),T.jsx(cn,{to:"settings/api-keys",icon:A1,children:"API Keys"}),T.jsx(cn,{to:"settings/webhooks",icon:j1,children:"Webhooks"}),T.jsx(cn,{to:"settings/admins",icon:B1,children:"Admins"}),T.jsx(cn,{to:"audit",icon:y1,children:"Audit Log"}),T.jsx(cn,{to:"settings",icon:d1,end:!0,children:"Configuration"})]})]})]})})})}function vx(){const{site:i}=Gc();return T.jsxs("div",{className:"flex h-screen flex-col",children:[T.jsx(fx,{currentSite:i}),i?.status==="archived"&&T.jsxs("div",{className:"bg-muted border-b px-4 py-2 text-sm flex items-center gap-2",children:[T.jsx(e1,{className:"h-4 w-4"}),"This site is archived. Content is read-only.",T.jsx(dy,{to:`/sites/${i.host}/settings`,className:"text-primary underline underline-offset-4",children:"Go to settings"})]}),T.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[T.jsx(px,{}),T.jsx("main",{className:"flex-1 overflow-y-auto p-6",children:T.jsx(se.Suspense,{children:T.jsx(hy,{})})})]})]})}const yx=se.lazy(()=>St(()=>import("./LoginPage-Jrne8-Wr.js"),__vite__mapDeps([0,1,2,3,4])).then(i=>({default:i.LoginPage}))),bx=se.lazy(()=>St(()=>import("./SitesPage-ETqFT3nO.js"),__vite__mapDeps([5,1,2,3,6,4,7,8,9])).then(i=>({default:i.SitesPage}))),Sx=se.lazy(()=>St(()=>import("./UsersPage-CKRJpAb6.js"),__vite__mapDeps([10,1,2,7,8,4,6,11,12])).then(i=>({default:i.UsersPage}))),wx=se.lazy(()=>St(()=>import("./AllContentPage-ByN1h3PP.js"),__vite__mapDeps([13,1,2,14,15,6,4,7,8,11,16,17])).then(i=>({default:i.AllContentPage}))),xx=se.lazy(()=>St(()=>import("./ContentListPage-Bc4mBIkB.js"),__vite__mapDeps([18,1,2,14,19,20,15,6,4,7,8,21,11,16,22,17,9,23])).then(i=>({default:i.ContentListPage}))),Ex=se.lazy(()=>St(()=>import("./ContentCreatePage-CJI326o-.js"),__vite__mapDeps([24,1,2,14,3,16,4])).then(i=>({default:i.ContentCreatePage}))),Ax=se.lazy(()=>St(()=>import("./ContentEditPage-A4i8P2Jd.js").then(i=>i.a),__vite__mapDeps([25,1,2,14,26,4,21,8,16,27,28,6,3,29,19,15,30,23,20,9,7,12,22])).then(i=>({default:i.ContentEditPage}))),Tx=se.lazy(()=>St(()=>import("./MediaPage-_qNXqsZg.js"),__vite__mapDeps([31,1,2,29,4,6,3,7,8,21,28,16,15,11,32,12,9,23,33])).then(i=>({default:i.MediaPage}))),Cx=se.lazy(()=>St(()=>import("./CollectionsPage-BnCaxALz.js"),__vite__mapDeps([34,1,2,6,4,11,9])).then(i=>({default:i.CollectionsPage}))),Ux=se.lazy(()=>St(()=>import("./CollectionEditPage-CLgQu2HS.js"),__vite__mapDeps([35,1,2,36,28,4,27,21,8,16,7,9,12,3])).then(i=>({default:i.CollectionEditPage}))),Dx=se.lazy(()=>St(()=>import("./BlockTypesPage-Dj0qmsqX.js"),__vite__mapDeps([37,1,2,11,9,4])).then(i=>({default:i.BlockTypesPage}))),_x=se.lazy(()=>St(()=>import("./BlockTypeEditPage-Buuwbx1P.js"),__vite__mapDeps([38,1,2,36,28,4,27,21,8,16,7,9,12,3,39,20])).then(i=>({default:i.BlockTypeEditPage}))),Rx=se.lazy(()=>St(()=>import("./ApiKeysPage-FgNHZPBS.js"),__vite__mapDeps([40,1,2,11,16,9,12,32,4])).then(i=>({default:i.ApiKeysPage}))),Nx=se.lazy(()=>St(()=>import("./WebhooksPage-Czco583Y.js"),__vite__mapDeps([41,1,2,42,6,4,11,9])).then(i=>({default:i.WebhooksPage}))),Mx=se.lazy(()=>St(()=>import("./WebhookEditPage-BOcLe5OJ.js"),__vite__mapDeps([43,1,2,42,6,4,3,11,16,12])).then(i=>({default:i.WebhookEditPage}))),zx=se.lazy(()=>St(()=>import("./AdminsPage-CnrQqwKA.js"),__vite__mapDeps([44,1,2,26,11,30,4,23,21,8,9,12])).then(i=>({default:i.AdminsPage}))),Bx=se.lazy(()=>St(()=>import("./AuditPage-DAPpo-sj.js"),__vite__mapDeps([45,1,2,26,11,16,4])).then(i=>({default:i.AuditPage}))),Ox=se.lazy(()=>St(()=>import("./TagsPage-BGpp0XZM.js"),__vite__mapDeps([46,1,2,19,11,9,12,4])).then(i=>({default:i.TagsPage}))),jx=se.lazy(()=>St(()=>import("./SiteSettingsPage-CoZnavij.js"),__vite__mapDeps([47,1,2,6,4,3,16])).then(i=>({default:i.SiteSettingsPage}))),qx=[{path:"/login",element:T.jsx(se.Suspense,{children:T.jsx(yx,{})})},{path:"/",element:T.jsx(Ts,{to:"/sites",replace:!0})},{path:"/sites",element:T.jsx(tc,{children:T.jsx(se.Suspense,{children:T.jsx(bx,{})})})},{path:"/users",element:T.jsx(tc,{children:T.jsx(se.Suspense,{children:T.jsx(Sx,{})})})},{path:"/sites/:host",element:T.jsx(tc,{children:T.jsx(V2,{children:T.jsx(vx,{})})}),children:[{index:!0,element:T.jsx(Ts,{to:"content",replace:!0})},{path:"content",element:T.jsx(wx,{})},{path:"content/:collection",element:T.jsx(xx,{})},{path:"content/:collection/new",element:T.jsx(Ex,{})},{path:"content/:collection/:id",element:T.jsx(Ax,{})},{path:"media",element:T.jsx(Tx,{})},{path:"settings",element:T.jsx(jx,{})},{path:"settings/collections",element:T.jsx(Cx,{})},{path:"settings/collections/:name",element:T.jsx(Ux,{})},{path:"settings/block-types",element:T.jsx(Dx,{})},{path:"settings/block-types/:name",element:T.jsx(_x,{})},{path:"settings/tags",element:T.jsx(Ox,{})},{path:"settings/api-keys",element:T.jsx(Rx,{})},{path:"settings/webhooks",element:T.jsx(Nx,{})},{path:"settings/webhooks/:id",element:T.jsx(Mx,{})},{path:"settings/admins",element:T.jsx(zx,{})},{path:"audit",element:T.jsx(Bx,{})}]}],kx=my(qx);function Lx(){return T.jsx(oy,{client:j2,children:T.jsx(D2,{children:T.jsxs(O2,{children:[T.jsx(gy,{router:kx}),T.jsx(pb,{})]})})})}Qy.createRoot(document.getElementById("root")).render(T.jsx(se.StrictMode,{children:T.jsx(Lx,{})}));export{aE as $,Dc as A,fn as B,S1 as C,ex as D,at as E,p1 as F,lE as G,fx as H,Ua as I,N0 as J,M0 as K,Da as L,z0 as M,Pr as N,cg as O,L2 as P,$x as Q,Wx as R,mx as S,sx as T,B1 as U,eE as V,tE as W,k1 as X,H2 as Y,nE as Z,St as _,Pn as a,iE as a0,rE as a1,gx as a2,Ix as a3,Zx as a4,Px as a5,cE as a6,Qx as a7,Jx as a8,Xx as a9,e1 as aa,zg as ab,Qy as ac,Mg as ad,_g as b,Yx as c,Rg as d,Gx as e,Kx as f,Dg as g,dE as h,ax as i,ix as j,rx as k,lx as l,hE as m,ct as n,sE as o,fE as p,oE as q,uE as r,vs as s,Gc as t,Rs as u,_2 as v,C2 as w,ft as x,ux as y,Uc as z};