ghost 5.99.0 → 5.100.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (206) hide show
  1. package/components/tryghost-activitypub-5.100.0.tgz +0 -0
  2. package/components/tryghost-adapter-cache-memory-ttl-5.100.0.tgz +0 -0
  3. package/components/tryghost-adapter-cache-redis-5.100.0.tgz +0 -0
  4. package/components/tryghost-adapter-manager-5.100.0.tgz +0 -0
  5. package/components/tryghost-announcement-bar-settings-5.100.0.tgz +0 -0
  6. package/components/tryghost-api-framework-5.100.0.tgz +0 -0
  7. package/components/tryghost-api-version-compatibility-service-5.100.0.tgz +0 -0
  8. package/components/tryghost-audience-feedback-5.100.0.tgz +0 -0
  9. package/components/tryghost-bookshelf-repository-5.100.0.tgz +0 -0
  10. package/components/tryghost-bootstrap-socket-5.100.0.tgz +0 -0
  11. package/components/tryghost-collections-5.100.0.tgz +0 -0
  12. package/components/tryghost-constants-5.100.0.tgz +0 -0
  13. package/components/tryghost-custom-fonts-5.100.0.tgz +0 -0
  14. package/components/tryghost-custom-theme-settings-service-5.100.0.tgz +0 -0
  15. package/components/{tryghost-data-generator-5.99.0.tgz → tryghost-data-generator-5.100.0.tgz} +0 -0
  16. package/components/tryghost-domain-events-5.100.0.tgz +0 -0
  17. package/components/tryghost-donations-5.100.0.tgz +0 -0
  18. package/components/tryghost-dynamic-routing-events-5.100.0.tgz +0 -0
  19. package/components/tryghost-email-addresses-5.100.0.tgz +0 -0
  20. package/components/tryghost-email-analytics-provider-mailgun-5.100.0.tgz +0 -0
  21. package/components/tryghost-email-analytics-service-5.100.0.tgz +0 -0
  22. package/components/tryghost-email-content-generator-5.100.0.tgz +0 -0
  23. package/components/tryghost-email-events-5.100.0.tgz +0 -0
  24. package/components/{tryghost-email-service-5.99.0.tgz → tryghost-email-service-5.100.0.tgz} +0 -0
  25. package/components/tryghost-email-suppression-list-5.100.0.tgz +0 -0
  26. package/components/tryghost-express-dynamic-redirects-5.100.0.tgz +0 -0
  27. package/components/tryghost-external-media-inliner-5.100.0.tgz +0 -0
  28. package/components/tryghost-extract-api-key-5.100.0.tgz +0 -0
  29. package/components/tryghost-ghost-5.100.0.tgz +0 -0
  30. package/components/tryghost-html-to-plaintext-5.100.0.tgz +0 -0
  31. package/components/tryghost-i18n-5.100.0.tgz +0 -0
  32. package/components/tryghost-identity-token-service-5.100.0.tgz +0 -0
  33. package/components/tryghost-importer-handler-content-files-5.100.0.tgz +0 -0
  34. package/components/tryghost-importer-revue-5.100.0.tgz +0 -0
  35. package/components/tryghost-in-memory-repository-5.100.0.tgz +0 -0
  36. package/components/tryghost-job-manager-5.100.0.tgz +0 -0
  37. package/components/tryghost-link-redirects-5.100.0.tgz +0 -0
  38. package/components/tryghost-link-replacer-5.100.0.tgz +0 -0
  39. package/components/tryghost-link-tracking-5.100.0.tgz +0 -0
  40. package/components/{tryghost-magic-link-5.99.0.tgz → tryghost-magic-link-5.100.0.tgz} +0 -0
  41. package/components/tryghost-mail-events-5.100.0.tgz +0 -0
  42. package/components/tryghost-mailgun-client-5.100.0.tgz +0 -0
  43. package/components/tryghost-member-attribution-5.100.0.tgz +0 -0
  44. package/components/tryghost-member-events-5.100.0.tgz +0 -0
  45. package/components/{tryghost-members-api-5.99.0.tgz → tryghost-members-api-5.100.0.tgz} +0 -0
  46. package/components/tryghost-members-csv-5.100.0.tgz +0 -0
  47. package/components/tryghost-members-events-service-5.100.0.tgz +0 -0
  48. package/components/tryghost-members-importer-5.100.0.tgz +0 -0
  49. package/components/tryghost-members-offers-5.100.0.tgz +0 -0
  50. package/components/tryghost-members-payments-5.100.0.tgz +0 -0
  51. package/components/tryghost-members-ssr-5.100.0.tgz +0 -0
  52. package/components/tryghost-members-stripe-service-5.100.0.tgz +0 -0
  53. package/components/tryghost-mentions-email-report-5.100.0.tgz +0 -0
  54. package/components/tryghost-milestones-5.100.0.tgz +0 -0
  55. package/components/tryghost-minifier-5.100.0.tgz +0 -0
  56. package/components/tryghost-model-to-domain-event-interceptor-5.100.0.tgz +0 -0
  57. package/components/tryghost-mw-api-version-mismatch-5.100.0.tgz +0 -0
  58. package/components/tryghost-mw-cache-control-5.100.0.tgz +0 -0
  59. package/components/tryghost-mw-error-handler-5.100.0.tgz +0 -0
  60. package/components/tryghost-mw-session-from-token-5.100.0.tgz +0 -0
  61. package/components/tryghost-mw-update-user-last-seen-5.100.0.tgz +0 -0
  62. package/components/tryghost-mw-version-match-5.100.0.tgz +0 -0
  63. package/components/tryghost-mw-vhost-5.100.0.tgz +0 -0
  64. package/components/tryghost-nql-filter-expansions-5.100.0.tgz +0 -0
  65. package/components/tryghost-oembed-service-5.100.0.tgz +0 -0
  66. package/components/tryghost-package-json-5.100.0.tgz +0 -0
  67. package/components/tryghost-post-events-5.100.0.tgz +0 -0
  68. package/components/tryghost-post-revisions-5.100.0.tgz +0 -0
  69. package/components/tryghost-posts-service-5.100.0.tgz +0 -0
  70. package/components/tryghost-prometheus-metrics-5.100.0.tgz +0 -0
  71. package/components/tryghost-recommendations-5.100.0.tgz +0 -0
  72. package/components/tryghost-referrers-5.100.0.tgz +0 -0
  73. package/components/tryghost-security-5.100.0.tgz +0 -0
  74. package/components/tryghost-session-service-5.100.0.tgz +0 -0
  75. package/components/tryghost-settings-path-manager-5.100.0.tgz +0 -0
  76. package/components/tryghost-slack-notifications-5.100.0.tgz +0 -0
  77. package/components/tryghost-staff-service-5.100.0.tgz +0 -0
  78. package/components/tryghost-stats-service-5.100.0.tgz +0 -0
  79. package/components/tryghost-tiers-5.100.0.tgz +0 -0
  80. package/components/tryghost-update-check-service-5.100.0.tgz +0 -0
  81. package/components/tryghost-verification-trigger-5.100.0.tgz +0 -0
  82. package/components/tryghost-version-notifications-data-service-5.100.0.tgz +0 -0
  83. package/components/tryghost-webmentions-5.100.0.tgz +0 -0
  84. package/core/boot.js +16 -5
  85. package/core/built/admin/assets/admin-x-activitypub/admin-x-activitypub.js +2 -2
  86. package/core/built/admin/assets/admin-x-activitypub/{index-696e3897.mjs → index-ab50c736.mjs} +147 -141
  87. package/core/built/admin/assets/admin-x-activitypub/{modals-dc93ce65.mjs → modals-2e6f9c05.mjs} +2 -2
  88. package/core/built/admin/assets/admin-x-demo/admin-x-demo.js +1 -1
  89. package/core/built/admin/assets/admin-x-settings/{CodeEditorView-e6f6e0b3.mjs → CodeEditorView-26137e6e.mjs} +2 -2
  90. package/core/built/admin/assets/admin-x-settings/admin-x-settings.js +3 -3
  91. package/core/built/admin/assets/admin-x-settings/{index-2a9ec06c.mjs → index-cdf09c6d.mjs} +2 -2
  92. package/core/built/admin/assets/admin-x-settings/{index-8ede56c6.mjs → index-f6338b55.mjs} +579 -571
  93. package/core/built/admin/assets/admin-x-settings/{modals-e3497e68.mjs → modals-15249255.mjs} +5657 -5622
  94. package/core/built/admin/assets/{chunk.524.85082593cb84282804e5.js → chunk.524.0982f6745ca0f52945b1.js} +5 -5
  95. package/core/built/admin/assets/{chunk.582.a756882ecb6d421c862c.js → chunk.582.d97692c812575ab051a9.js} +6 -6
  96. package/core/built/admin/assets/{ghost-fefa2e99b7dc389dfd6579049cdd2066.js → ghost-7ab268fc7cd7884eef525145d5fbb501.js} +13 -13
  97. package/core/built/admin/index.html +3 -3
  98. package/core/frontend/helpers/ghost_head.js +2 -1
  99. package/core/server/api/endpoints/comments-members.js +0 -1
  100. package/core/server/api/endpoints/identities.js +5 -31
  101. package/core/server/api/endpoints/utils/serializers/output/mappers/comments.js +9 -2
  102. package/core/server/data/migrations/versions/5.100/2024-10-31-15-27-42-add-jobs-queue-columns.js +14 -0
  103. package/core/server/data/migrations/versions/5.100/2024-11-05-14-48-08-add-comments-in-reply-to-id.js +10 -0
  104. package/core/server/data/migrations/versions/5.100/2024-11-06-04-45-15-add-activitypub-integration.js +40 -0
  105. package/core/server/data/migrations/versions/5.55/2023-07-10-05-16-55-add-built-in-collection-posts.js +1 -1
  106. package/core/server/data/migrations/versions/5.65/2023-09-22-06-42-55-repopulate-built-in-featured-collection-posts.js +1 -1
  107. package/core/server/data/migrations/versions/5.89/2024-07-30-19-51-06-backfill-offer-redemptions.js +1 -1
  108. package/core/server/data/schema/fixtures/fixtures.json +7 -0
  109. package/core/server/data/schema/schema.js +4 -1
  110. package/core/server/models/comment.js +17 -33
  111. package/core/server/services/activitypub/ActivityPubServiceWrapper.js +42 -0
  112. package/core/server/services/activitypub/index.js +1 -0
  113. package/core/server/services/comments/CommentsController.js +3 -1
  114. package/core/server/services/comments/CommentsService.js +24 -2
  115. package/core/server/services/comments/CommentsServiceEmails.js +7 -2
  116. package/core/server/services/email-analytics/EmailAnalyticsServiceWrapper.js +18 -2
  117. package/core/server/services/email-analytics/jobs/update-member-email-analytics/index.js +13 -0
  118. package/core/server/services/email-service/EmailServiceWrapper.js +20 -1
  119. package/core/server/services/identity-tokens/IdentityTokenServiceWrapper.js +28 -0
  120. package/core/server/services/identity-tokens/index.js +1 -0
  121. package/core/server/services/jobs/job-service.js +3 -2
  122. package/core/server/services/mentions-jobs/job-service.js +2 -2
  123. package/core/server/services/offers/OfferBookshelfRepository.js +3 -1
  124. package/core/shared/config/defaults.json +1 -1
  125. package/core/shared/config/env/config.testing.json +0 -3
  126. package/core/shared/labs.js +1 -1
  127. package/core/shared/prometheus-client.js +8 -31
  128. package/package.json +156 -153
  129. package/yarn.lock +176 -26
  130. package/components/tryghost-adapter-cache-memory-ttl-5.99.0.tgz +0 -0
  131. package/components/tryghost-adapter-cache-redis-5.99.0.tgz +0 -0
  132. package/components/tryghost-adapter-manager-5.99.0.tgz +0 -0
  133. package/components/tryghost-announcement-bar-settings-5.99.0.tgz +0 -0
  134. package/components/tryghost-api-framework-5.99.0.tgz +0 -0
  135. package/components/tryghost-api-version-compatibility-service-5.99.0.tgz +0 -0
  136. package/components/tryghost-audience-feedback-5.99.0.tgz +0 -0
  137. package/components/tryghost-bookshelf-repository-5.99.0.tgz +0 -0
  138. package/components/tryghost-bootstrap-socket-5.99.0.tgz +0 -0
  139. package/components/tryghost-collections-5.99.0.tgz +0 -0
  140. package/components/tryghost-constants-5.99.0.tgz +0 -0
  141. package/components/tryghost-custom-fonts-5.99.0.tgz +0 -0
  142. package/components/tryghost-custom-theme-settings-service-5.99.0.tgz +0 -0
  143. package/components/tryghost-domain-events-5.99.0.tgz +0 -0
  144. package/components/tryghost-donations-5.99.0.tgz +0 -0
  145. package/components/tryghost-dynamic-routing-events-5.99.0.tgz +0 -0
  146. package/components/tryghost-email-addresses-5.99.0.tgz +0 -0
  147. package/components/tryghost-email-analytics-provider-mailgun-5.99.0.tgz +0 -0
  148. package/components/tryghost-email-analytics-service-5.99.0.tgz +0 -0
  149. package/components/tryghost-email-content-generator-5.99.0.tgz +0 -0
  150. package/components/tryghost-email-events-5.99.0.tgz +0 -0
  151. package/components/tryghost-email-suppression-list-5.99.0.tgz +0 -0
  152. package/components/tryghost-express-dynamic-redirects-5.99.0.tgz +0 -0
  153. package/components/tryghost-external-media-inliner-5.99.0.tgz +0 -0
  154. package/components/tryghost-extract-api-key-5.99.0.tgz +0 -0
  155. package/components/tryghost-ghost-5.99.0.tgz +0 -0
  156. package/components/tryghost-html-to-plaintext-5.99.0.tgz +0 -0
  157. package/components/tryghost-i18n-5.99.0.tgz +0 -0
  158. package/components/tryghost-importer-handler-content-files-5.99.0.tgz +0 -0
  159. package/components/tryghost-importer-revue-5.99.0.tgz +0 -0
  160. package/components/tryghost-in-memory-repository-5.99.0.tgz +0 -0
  161. package/components/tryghost-job-manager-5.99.0.tgz +0 -0
  162. package/components/tryghost-link-redirects-5.99.0.tgz +0 -0
  163. package/components/tryghost-link-replacer-5.99.0.tgz +0 -0
  164. package/components/tryghost-link-tracking-5.99.0.tgz +0 -0
  165. package/components/tryghost-mail-events-5.99.0.tgz +0 -0
  166. package/components/tryghost-mailgun-client-5.99.0.tgz +0 -0
  167. package/components/tryghost-member-attribution-5.99.0.tgz +0 -0
  168. package/components/tryghost-member-events-5.99.0.tgz +0 -0
  169. package/components/tryghost-members-csv-5.99.0.tgz +0 -0
  170. package/components/tryghost-members-events-service-5.99.0.tgz +0 -0
  171. package/components/tryghost-members-importer-5.99.0.tgz +0 -0
  172. package/components/tryghost-members-offers-5.99.0.tgz +0 -0
  173. package/components/tryghost-members-payments-5.99.0.tgz +0 -0
  174. package/components/tryghost-members-ssr-5.99.0.tgz +0 -0
  175. package/components/tryghost-members-stripe-service-5.99.0.tgz +0 -0
  176. package/components/tryghost-mentions-email-report-5.99.0.tgz +0 -0
  177. package/components/tryghost-metrics-server-5.99.0.tgz +0 -0
  178. package/components/tryghost-milestones-5.99.0.tgz +0 -0
  179. package/components/tryghost-minifier-5.99.0.tgz +0 -0
  180. package/components/tryghost-model-to-domain-event-interceptor-5.99.0.tgz +0 -0
  181. package/components/tryghost-mw-api-version-mismatch-5.99.0.tgz +0 -0
  182. package/components/tryghost-mw-cache-control-5.99.0.tgz +0 -0
  183. package/components/tryghost-mw-error-handler-5.99.0.tgz +0 -0
  184. package/components/tryghost-mw-session-from-token-5.99.0.tgz +0 -0
  185. package/components/tryghost-mw-update-user-last-seen-5.99.0.tgz +0 -0
  186. package/components/tryghost-mw-version-match-5.99.0.tgz +0 -0
  187. package/components/tryghost-mw-vhost-5.99.0.tgz +0 -0
  188. package/components/tryghost-nql-filter-expansions-5.99.0.tgz +0 -0
  189. package/components/tryghost-oembed-service-5.99.0.tgz +0 -0
  190. package/components/tryghost-package-json-5.99.0.tgz +0 -0
  191. package/components/tryghost-post-events-5.99.0.tgz +0 -0
  192. package/components/tryghost-post-revisions-5.99.0.tgz +0 -0
  193. package/components/tryghost-posts-service-5.99.0.tgz +0 -0
  194. package/components/tryghost-recommendations-5.99.0.tgz +0 -0
  195. package/components/tryghost-referrers-5.99.0.tgz +0 -0
  196. package/components/tryghost-security-5.99.0.tgz +0 -0
  197. package/components/tryghost-session-service-5.99.0.tgz +0 -0
  198. package/components/tryghost-settings-path-manager-5.99.0.tgz +0 -0
  199. package/components/tryghost-slack-notifications-5.99.0.tgz +0 -0
  200. package/components/tryghost-staff-service-5.99.0.tgz +0 -0
  201. package/components/tryghost-stats-service-5.99.0.tgz +0 -0
  202. package/components/tryghost-tiers-5.99.0.tgz +0 -0
  203. package/components/tryghost-update-check-service-5.99.0.tgz +0 -0
  204. package/components/tryghost-verification-trigger-5.99.0.tgz +0 -0
  205. package/components/tryghost-version-notifications-data-service-5.99.0.tgz +0 -0
  206. package/components/tryghost-webmentions-5.99.0.tgz +0 -0
@@ -1359,11 +1359,11 @@ const Qi = ({ className: e }) => (e || (e = "border-grey-200 dark:border-grey-80
1359
1359
  }, w);
1360
1360
  });
1361
1361
  V.displayName = "Button";
1362
- let m1 = { data: "" }, f1 = (e) => typeof window == "object" ? ((e ? e.querySelector("#_goober") : window._goober) || Object.assign((e || document.head).appendChild(document.createElement("style")), { innerHTML: " ", id: "_goober" })).firstChild : e || m1, I1 = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, M1 = /\/\*[^]*?\*\/| +/g, Uo = /\n+/g, et = (e, t) => {
1362
+ let m1 = { data: "" }, f1 = (e) => typeof window == "object" ? ((e ? e.querySelector("#_goober") : window._goober) || Object.assign((e || document.head).appendChild(document.createElement("style")), { innerHTML: " ", id: "_goober" })).firstChild : e || m1, I1 = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, M1 = /\/\*[^]*?\*\/| +/g, Uo = /\n+/g, tt = (e, t) => {
1363
1363
  let n = "", r = "", i = "";
1364
1364
  for (let o in e) {
1365
1365
  let a = e[o];
1366
- o[0] == "@" ? o[1] == "i" ? n = o + " " + a + ";" : r += o[1] == "f" ? et(a, o) : o + "{" + et(a, o[1] == "k" ? "" : t) + "}" : typeof a == "object" ? r += et(a, t ? t.replace(/([^,])+/g, (s) => o.replace(/(^:.*)|([^,])+/g, (d) => /&/.test(d) ? d.replace(/&/g, s) : s ? s + " " + d : d)) : o) : a != null && (o = /^--/.test(o) ? o : o.replace(/[A-Z]/g, "-$&").toLowerCase(), i += et.p ? et.p(o, a) : o + ":" + a + ";");
1366
+ o[0] == "@" ? o[1] == "i" ? n = o + " " + a + ";" : r += o[1] == "f" ? tt(a, o) : o + "{" + tt(a, o[1] == "k" ? "" : t) + "}" : typeof a == "object" ? r += tt(a, t ? t.replace(/([^,])+/g, (s) => o.replace(/(^:.*)|([^,])+/g, (d) => /&/.test(d) ? d.replace(/&/g, s) : s ? s + " " + d : d)) : o) : a != null && (o = /^--/.test(o) ? o : o.replace(/[A-Z]/g, "-$&").toLowerCase(), i += tt.p ? tt.p(o, a) : o + ":" + a + ";");
1367
1367
  }
1368
1368
  return n + (t && i ? t + "{" + i + "}" : i) + r;
1369
1369
  }, He = {}, fs = (e) => {
@@ -1388,7 +1388,7 @@ let m1 = { data: "" }, f1 = (e) => typeof window == "object" ? ((e ? e.querySele
1388
1388
  g[4] ? h.shift() : g[3] ? (p = g[3].replace(Uo, " ").trim(), h.unshift(h[0][p] = h[0][p] || {})) : h[0][g[1]] = g[2].replace(Uo, " ").trim();
1389
1389
  return h[0];
1390
1390
  })(e);
1391
- He[a] = et(i ? { ["@keyframes " + a]: d } : d, n ? "" : "." + a);
1391
+ He[a] = tt(i ? { ["@keyframes " + a]: d } : d, n ? "" : "." + a);
1392
1392
  }
1393
1393
  let s = n && He.g ? He.g : null;
1394
1394
  return n && (He.g = He[a]), ((d, u, g, p) => {
@@ -1398,7 +1398,7 @@ let m1 = { data: "" }, f1 = (e) => typeof window == "object" ? ((e ? e.querySele
1398
1398
  let a = t[o];
1399
1399
  if (a && a.call) {
1400
1400
  let s = a(n), d = s && s.props && s.props.className || /^go/.test(s) && s;
1401
- a = d ? "." + d : s && typeof s == "object" ? s.props ? "" : et(s, "") : s === !1 ? "" : s;
1401
+ a = d ? "." + d : s && typeof s == "object" ? s.props ? "" : tt(s, "") : s === !1 ? "" : s;
1402
1402
  }
1403
1403
  return r + i + (a ?? "");
1404
1404
  }, "");
@@ -1410,9 +1410,9 @@ let Is, ri, ii;
1410
1410
  sr.bind({ g: 1 });
1411
1411
  let Ye = sr.bind({ k: 1 });
1412
1412
  function v1(e, t, n, r) {
1413
- et.p = t, Is = e, ri = n, ii = r;
1413
+ tt.p = t, Is = e, ri = n, ii = r;
1414
1414
  }
1415
- function ct(e, t) {
1415
+ function lt(e, t) {
1416
1416
  let n = this || {};
1417
1417
  return function() {
1418
1418
  let r = arguments;
@@ -1556,7 +1556,7 @@ from {
1556
1556
  to {
1557
1557
  transform: scale(1) rotate(90deg);
1558
1558
  opacity: 1;
1559
- }`, U1 = ct("div")`
1559
+ }`, U1 = lt("div")`
1560
1560
  width: 20px;
1561
1561
  opacity: 0;
1562
1562
  height: 20px;
@@ -1596,7 +1596,7 @@ to {
1596
1596
  to {
1597
1597
  transform: rotate(360deg);
1598
1598
  }
1599
- `, W1 = ct("div")`
1599
+ `, W1 = lt("div")`
1600
1600
  width: 12px;
1601
1601
  height: 12px;
1602
1602
  box-sizing: border-box;
@@ -1627,7 +1627,7 @@ to {
1627
1627
  100% {
1628
1628
  opacity: 1;
1629
1629
  height: 10px;
1630
- }`, H1 = ct("div")`
1630
+ }`, H1 = lt("div")`
1631
1631
  width: 20px;
1632
1632
  opacity: 0;
1633
1633
  height: 20px;
@@ -1654,9 +1654,9 @@ to {
1654
1654
  height: 10px;
1655
1655
  width: 6px;
1656
1656
  }
1657
- `, J1 = ct("div")`
1657
+ `, J1 = lt("div")`
1658
1658
  position: absolute;
1659
- `, G1 = ct("div")`
1659
+ `, G1 = lt("div")`
1660
1660
  position: relative;
1661
1661
  display: flex;
1662
1662
  justify-content: center;
@@ -1671,7 +1671,7 @@ from {
1671
1671
  to {
1672
1672
  transform: scale(1);
1673
1673
  opacity: 1;
1674
- }`, Y1 = ct("div")`
1674
+ }`, Y1 = lt("div")`
1675
1675
  position: relative;
1676
1676
  transform: scale(0.6);
1677
1677
  opacity: 0.4;
@@ -1687,7 +1687,7 @@ to {
1687
1687
  `, F1 = (e) => `
1688
1688
  0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
1689
1689
  100% {transform: translate3d(0,${e * -150}%,-1px) scale(.6); opacity:0;}
1690
- `, X1 = "0%{opacity:0;} 100%{opacity:1;}", q1 = "0%{opacity:1;} 100%{opacity:0;}", _1 = ct("div")`
1690
+ `, X1 = "0%{opacity:0;} 100%{opacity:1;}", q1 = "0%{opacity:1;} 100%{opacity:0;}", _1 = lt("div")`
1691
1691
  display: flex;
1692
1692
  align-items: center;
1693
1693
  background: #fff;
@@ -1699,7 +1699,7 @@ to {
1699
1699
  pointer-events: auto;
1700
1700
  padding: 8px 10px;
1701
1701
  border-radius: 8px;
1702
- `, K1 = ct("div")`
1702
+ `, K1 = lt("div")`
1703
1703
  display: flex;
1704
1704
  justify-content: center;
1705
1705
  margin: 4px 10px;
@@ -1778,15 +1778,15 @@ const ys = G.createContext({ isDirty: !1, setGlobalDirtyState: () => {
1778
1778
  /* @__PURE__ */ c.jsx(Me.Provider, { children: n })
1779
1779
  ] }) });
1780
1780
  };
1781
- function rt() {
1782
- return rt = Object.assign ? Object.assign.bind() : function(e) {
1781
+ function it() {
1782
+ return it = Object.assign ? Object.assign.bind() : function(e) {
1783
1783
  for (var t = 1; t < arguments.length; t++) {
1784
1784
  var n = arguments[t];
1785
1785
  for (var r in n)
1786
1786
  Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
1787
1787
  }
1788
1788
  return e;
1789
- }, rt.apply(this, arguments);
1789
+ }, it.apply(this, arguments);
1790
1790
  }
1791
1791
  function tn(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
1792
1792
  return function(i) {
@@ -1907,11 +1907,11 @@ const js = /* @__PURE__ */ O((e, t) => {
1907
1907
  const { children: n, ...r } = e, i = Ie.toArray(n), o = i.find(bf);
1908
1908
  if (o) {
1909
1909
  const a = o.props.children, s = i.map((d) => d === o ? Ie.count(a) > 1 ? Ie.only(null) : /* @__PURE__ */ We(a) ? a.props.children : null : d);
1910
- return /* @__PURE__ */ l(ai, rt({}, r, {
1910
+ return /* @__PURE__ */ l(ai, it({}, r, {
1911
1911
  ref: t
1912
1912
  }), /* @__PURE__ */ We(a) ? /* @__PURE__ */ yt(a, void 0, s) : null);
1913
1913
  }
1914
- return /* @__PURE__ */ l(ai, rt({}, r, {
1914
+ return /* @__PURE__ */ l(ai, it({}, r, {
1915
1915
  ref: t
1916
1916
  }), n);
1917
1917
  });
@@ -1971,7 +1971,7 @@ const xf = [
1971
1971
  const { asChild: o, ...a } = r, s = o ? js : t;
1972
1972
  return A(() => {
1973
1973
  window[Symbol.for("radix-ui")] = !0;
1974
- }, []), /* @__PURE__ */ l(s, rt({}, a, {
1974
+ }, []), /* @__PURE__ */ l(s, it({}, a, {
1975
1975
  ref: i
1976
1976
  }));
1977
1977
  });
@@ -2089,7 +2089,7 @@ const xf = [
2089
2089
  onFieldMessageIdAdd: w,
2090
2090
  onFieldMessageIdRemove: S,
2091
2091
  getFieldDescription: L
2092
- }, /* @__PURE__ */ l(Bi.form, rt({}, i, {
2092
+ }, /* @__PURE__ */ l(Bi.form, it({}, i, {
2093
2093
  ref: a,
2094
2094
  onInvalid: tn(e.onInvalid, (D) => {
2095
2095
  const k = Ss(D.currentTarget);
@@ -2107,7 +2107,7 @@ const xf = [
2107
2107
  id: d,
2108
2108
  name: r,
2109
2109
  serverInvalid: i
2110
- }, /* @__PURE__ */ l(Bi.div, rt({
2110
+ }, /* @__PURE__ */ l(Bi.div, it({
2111
2111
  "data-valid": Ds(s, i),
2112
2112
  "data-invalid": Ls(s, i)
2113
2113
  }, o, {
@@ -2185,7 +2185,7 @@ const xf = [
2185
2185
  o.serverInvalid
2186
2186
  ]);
2187
2187
  const y = i.getFieldValidity(u);
2188
- return /* @__PURE__ */ l(Bi.input, rt({
2188
+ return /* @__PURE__ */ l(Bi.input, it({
2189
2189
  "data-valid": Ds(y, o.serverInvalid),
2190
2190
  "data-invalid": Ls(y, o.serverInvalid),
2191
2191
  "aria-invalid": o.serverInvalid ? !0 : void 0,
@@ -2764,7 +2764,7 @@ function a2(e) {
2764
2764
  }
2765
2765
  }
2766
2766
  const Hr = "<anonymous>";
2767
- function it(e) {
2767
+ function ot(e) {
2768
2768
  try {
2769
2769
  return !e || typeof e != "function" ? Hr : e.name || Hr;
2770
2770
  } catch {
@@ -2788,7 +2788,7 @@ function Te(e, t) {
2788
2788
  ln && H.error(
2789
2789
  `Error while triggering instrumentation handler.
2790
2790
  Type: ${e}
2791
- Name: ${it(r)}
2791
+ Name: ${ot(r)}
2792
2792
  Error:`,
2793
2793
  i
2794
2794
  );
@@ -2832,7 +2832,7 @@ function ze() {
2832
2832
  function Hs(e) {
2833
2833
  return e.exception && e.exception.values ? e.exception.values[0] : void 0;
2834
2834
  }
2835
- function tt(e) {
2835
+ function nt(e) {
2836
2836
  const { message: t, event_id: n } = e;
2837
2837
  if (t)
2838
2838
  return t;
@@ -3243,7 +3243,7 @@ function E2(e, t) {
3243
3243
  if (typeof t == "number" && t !== t)
3244
3244
  return "[NaN]";
3245
3245
  if (typeof t == "function")
3246
- return `[Function: ${it(t)}]`;
3246
+ return `[Function: ${ot(t)}]`;
3247
3247
  if (typeof t == "symbol")
3248
3248
  return `[${String(t)}]`;
3249
3249
  if (typeof t == "bigint")
@@ -3272,9 +3272,9 @@ var Je;
3272
3272
  const r = 2;
3273
3273
  e[e.REJECTED = r] = "REJECTED";
3274
3274
  })(Je || (Je = {}));
3275
- class Ke {
3275
+ class $e {
3276
3276
  constructor(t) {
3277
- Ke.prototype.__init.call(this), Ke.prototype.__init2.call(this), Ke.prototype.__init3.call(this), Ke.prototype.__init4.call(this), this._state = Je.PENDING, this._handlers = [];
3277
+ $e.prototype.__init.call(this), $e.prototype.__init2.call(this), $e.prototype.__init3.call(this), $e.prototype.__init4.call(this), this._state = Je.PENDING, this._handlers = [];
3278
3278
  try {
3279
3279
  t(this._resolve, this._reject);
3280
3280
  } catch (n) {
@@ -3283,7 +3283,7 @@ class Ke {
3283
3283
  }
3284
3284
  /** JSDoc */
3285
3285
  then(t, n) {
3286
- return new Ke((r, i) => {
3286
+ return new $e((r, i) => {
3287
3287
  this._handlers.push([
3288
3288
  !1,
3289
3289
  (o) => {
@@ -3315,7 +3315,7 @@ class Ke {
3315
3315
  }
3316
3316
  /** JSDoc */
3317
3317
  finally(t) {
3318
- return new Ke((n, r) => {
3318
+ return new $e((n, r) => {
3319
3319
  let i, o;
3320
3320
  return this.then(
3321
3321
  (a) => {
@@ -3414,7 +3414,7 @@ function H2() {
3414
3414
  return Us("globalEventProcessors", () => []);
3415
3415
  }
3416
3416
  function yi(e, t, n, r = 0) {
3417
- return new Ke((i, o) => {
3417
+ return new $e((i, o) => {
3418
3418
  const a = e[r];
3419
3419
  if (t === null || typeof a != "function")
3420
3420
  i(t);
@@ -3520,20 +3520,20 @@ function K2(e) {
3520
3520
  return Object.keys(e).some((t) => _2.includes(t));
3521
3521
  }
3522
3522
  function ro(e, t) {
3523
- return lt().captureException(e, X2(t));
3523
+ return dt().captureException(e, X2(t));
3524
3524
  }
3525
3525
  function $2(e, t) {
3526
3526
  const n = typeof t == "string" ? t : void 0, r = typeof t != "string" ? { captureContext: t } : void 0;
3527
- return lt().captureMessage(e, n, r);
3527
+ return dt().captureMessage(e, n, r);
3528
3528
  }
3529
3529
  function Qs(e, t) {
3530
- return lt().captureEvent(e, t);
3530
+ return dt().captureEvent(e, t);
3531
3531
  }
3532
3532
  function It(e, t) {
3533
- lt().addBreadcrumb(e, t);
3533
+ dt().addBreadcrumb(e, t);
3534
3534
  }
3535
3535
  function io(...e) {
3536
- const t = lt();
3536
+ const t = dt();
3537
3537
  if (e.length === 2) {
3538
3538
  const [n, r] = e;
3539
3539
  return n ? t.withScope(() => (t.getStackTop().scope = n, r(n))) : t.withScope(r);
@@ -3541,10 +3541,10 @@ function io(...e) {
3541
3541
  return t.withScope(e[0]);
3542
3542
  }
3543
3543
  function xe() {
3544
- return lt().getClient();
3544
+ return dt().getClient();
3545
3545
  }
3546
3546
  function eI() {
3547
- return lt().getScope();
3547
+ return dt().getScope();
3548
3548
  }
3549
3549
  function Bs(e) {
3550
3550
  return e.transaction;
@@ -4420,7 +4420,7 @@ function _o(e) {
4420
4420
  const t = gr(), n = bi(t);
4421
4421
  return qs(t, e), n;
4422
4422
  }
4423
- function lt() {
4423
+ function dt() {
4424
4424
  const e = gr();
4425
4425
  if (e.__SENTRY__ && e.__SENTRY__.acs) {
4426
4426
  const t = e.__SENTRY__.acs.getCurrentHub();
@@ -4466,7 +4466,7 @@ function mI(e, t) {
4466
4466
  i += `&${encodeURIComponent(o)}=${encodeURIComponent(t[o])}`;
4467
4467
  return `${r}?${i}`;
4468
4468
  }
4469
- function dt(e, t) {
4469
+ function ut(e, t) {
4470
4470
  return Object.assign(
4471
4471
  function(...r) {
4472
4472
  return t(...r);
@@ -4498,7 +4498,7 @@ const fI = [
4498
4498
  return bI(t, o) ? null : t;
4499
4499
  }
4500
4500
  }), Ks = MI;
4501
- dt(
4501
+ ut(
4502
4502
  _s,
4503
4503
  Ks
4504
4504
  );
@@ -4521,21 +4521,21 @@ function yI(e = {}, t = {}) {
4521
4521
  }
4522
4522
  function bI(e, t) {
4523
4523
  return t.ignoreInternal && kI(e) ? (De && H.warn(`Event dropped due to being internal Sentry Error.
4524
- Event: ${tt(e)}`), !0) : vI(e, t.ignoreErrors) ? (De && H.warn(
4524
+ Event: ${nt(e)}`), !0) : vI(e, t.ignoreErrors) ? (De && H.warn(
4525
4525
  `Event dropped due to being matched by \`ignoreErrors\` option.
4526
- Event: ${tt(e)}`
4526
+ Event: ${nt(e)}`
4527
4527
  ), !0) : xI(e, t.ignoreTransactions) ? (De && H.warn(
4528
4528
  `Event dropped due to being matched by \`ignoreTransactions\` option.
4529
- Event: ${tt(e)}`
4529
+ Event: ${nt(e)}`
4530
4530
  ), !0) : jI(e, t.denyUrls) ? (De && H.warn(
4531
4531
  `Event dropped due to being matched by \`denyUrls\` option.
4532
- Event: ${tt(
4532
+ Event: ${nt(
4533
4533
  e
4534
4534
  )}.
4535
4535
  Url: ${Vn(e)}`
4536
4536
  ), !0) : NI(e, t.allowUrls) ? !1 : (De && H.warn(
4537
4537
  `Event dropped due to not being matched by \`allowUrls\` option.
4538
- Event: ${tt(
4538
+ Event: ${nt(
4539
4539
  e
4540
4540
  )}.
4541
4541
  Url: ${Vn(e)}`
@@ -4570,7 +4570,7 @@ function wI(e) {
4570
4570
  n = e.exception.values[e.exception.values.length - 1];
4571
4571
  } catch {
4572
4572
  }
4573
- return n && n.value && (t.push(n.value), n.type && t.push(`${n.type}: ${n.value}`)), De && t.length === 0 && H.error(`Could not extract message for event ${tt(e)}`), t;
4573
+ return n && n.value && (t.push(n.value), n.type && t.push(`${n.type}: ${n.value}`)), De && t.length === 0 && H.error(`Could not extract message for event ${nt(e)}`), t;
4574
4574
  }
4575
4575
  function kI(e) {
4576
4576
  try {
@@ -4596,7 +4596,7 @@ function Vn(e) {
4596
4596
  }
4597
4597
  return t ? SI(t) : null;
4598
4598
  } catch {
4599
- return De && H.error(`Cannot extract url for event ${tt(e)}`), null;
4599
+ return De && H.error(`Cannot extract url for event ${nt(e)}`), null;
4600
4600
  }
4601
4601
  }
4602
4602
  let Ko;
@@ -4616,7 +4616,7 @@ const $s = "FunctionToString", $o = /* @__PURE__ */ new WeakMap(), DI = () => ({
4616
4616
  $o.set(e, !0);
4617
4617
  }
4618
4618
  }), ec = DI;
4619
- dt(
4619
+ ut(
4620
4620
  $s,
4621
4621
  ec
4622
4622
  );
@@ -4799,7 +4799,7 @@ const xn = 1024, ic = "Breadcrumbs", UI = (e = {}) => {
4799
4799
  }
4800
4800
  };
4801
4801
  }, oc = UI;
4802
- dt(ic, oc);
4802
+ ut(ic, oc);
4803
4803
  function ZI(e) {
4804
4804
  return function(n) {
4805
4805
  xe() === e && It(
@@ -4807,7 +4807,7 @@ function ZI(e) {
4807
4807
  category: `sentry.${n.type === "transaction" ? "transaction" : "event"}`,
4808
4808
  event_id: n.event_id,
4809
4809
  level: n.level,
4810
- message: tt(n)
4810
+ message: nt(n)
4811
4811
  },
4812
4812
  {
4813
4813
  event: n
@@ -4976,7 +4976,7 @@ const ac = "Dedupe", VI = () => {
4976
4976
  }
4977
4977
  };
4978
4978
  }, sc = VI;
4979
- dt(ac, sc);
4979
+ ut(ac, sc);
4980
4980
  function YI(e, t) {
4981
4981
  return t ? !!(QI(e, t) || BI(e, t)) : !1;
4982
4982
  }
@@ -5042,7 +5042,7 @@ const dc = "GlobalHandlers", FI = (e = {}) => {
5042
5042
  }
5043
5043
  };
5044
5044
  }, uc = FI;
5045
- dt(
5045
+ ut(
5046
5046
  dc,
5047
5047
  uc
5048
5048
  );
@@ -5159,7 +5159,7 @@ const hc = "HttpContext", e5 = () => ({
5159
5159
  e.request = o;
5160
5160
  }
5161
5161
  }), mc = e5;
5162
- dt(hc, mc);
5162
+ ut(hc, mc);
5163
5163
  const t5 = "cause", n5 = 5, fc = "LinkedErrors", r5 = (e = {}) => {
5164
5164
  const t = e.limit || n5, n = e.key || t5;
5165
5165
  return {
@@ -5183,7 +5183,7 @@ const t5 = "cause", n5 = 5, fc = "LinkedErrors", r5 = (e = {}) => {
5183
5183
  }
5184
5184
  };
5185
5185
  }, Ic = r5;
5186
- dt(fc, Ic);
5186
+ ut(fc, Ic);
5187
5187
  const i5 = [
5188
5188
  "EventTarget",
5189
5189
  "Window",
@@ -5236,7 +5236,7 @@ const i5 = [
5236
5236
  }
5237
5237
  };
5238
5238
  }, yc = o5;
5239
- dt(
5239
+ ut(
5240
5240
  Mc,
5241
5241
  yc
5242
5242
  );
@@ -5245,7 +5245,7 @@ function ia(e) {
5245
5245
  const n = t[0];
5246
5246
  return t[0] = Zt(n, {
5247
5247
  mechanism: {
5248
- data: { function: it(e) },
5248
+ data: { function: ot(e) },
5249
5249
  handled: !1,
5250
5250
  type: "instrument"
5251
5251
  }
@@ -5259,7 +5259,7 @@ function a5(e) {
5259
5259
  mechanism: {
5260
5260
  data: {
5261
5261
  function: "requestAnimationFrame",
5262
- handler: it(e)
5262
+ handler: ot(e)
5263
5263
  },
5264
5264
  handled: !1,
5265
5265
  type: "instrument"
@@ -5277,13 +5277,13 @@ function s5(e) {
5277
5277
  mechanism: {
5278
5278
  data: {
5279
5279
  function: i,
5280
- handler: it(o)
5280
+ handler: ot(o)
5281
5281
  },
5282
5282
  handled: !1,
5283
5283
  type: "instrument"
5284
5284
  }
5285
5285
  }, s = to(o);
5286
- return s && (a.mechanism.data.handler = it(s)), Zt(o, a);
5286
+ return s && (a.mechanism.data.handler = ot(s)), Zt(o, a);
5287
5287
  });
5288
5288
  }), e.apply(this, t);
5289
5289
  };
@@ -5297,7 +5297,7 @@ function c5(e) {
5297
5297
  mechanism: {
5298
5298
  data: {
5299
5299
  function: "handleEvent",
5300
- handler: it(o),
5300
+ handler: ot(o),
5301
5301
  target: e
5302
5302
  },
5303
5303
  handled: !1,
@@ -5313,7 +5313,7 @@ function c5(e) {
5313
5313
  mechanism: {
5314
5314
  data: {
5315
5315
  function: "addEventListener",
5316
- handler: it(o),
5316
+ handler: ot(o),
5317
5317
  target: e
5318
5318
  },
5319
5319
  handled: !1,
@@ -5340,7 +5340,7 @@ function c5(e) {
5340
5340
  ));
5341
5341
  }
5342
5342
  Ks(), ec(), yc(), oc(), uc(), Ic(), sc(), mc();
5343
- const oa = (e = {}, t = lt()) => {
5343
+ const oa = (e = {}, t = dt()) => {
5344
5344
  if (!te.document) {
5345
5345
  Tt && H.error("Global document not defined in showReportDialog call");
5346
5346
  return;
@@ -5561,7 +5561,7 @@ class lo extends Ka {
5561
5561
  return typeof n == "function" ? n() : n;
5562
5562
  }
5563
5563
  }
5564
- const b5 = ["top", "right", "bottom", "left"], ot = Math.min, he = Math.max, Yn = Math.round, jn = Math.floor, at = (e) => ({
5564
+ const b5 = ["top", "right", "bottom", "left"], at = Math.min, he = Math.max, Yn = Math.round, jn = Math.floor, st = (e) => ({
5565
5565
  x: e,
5566
5566
  y: e
5567
5567
  }), v5 = {
@@ -5574,7 +5574,7 @@ const b5 = ["top", "right", "bottom", "left"], ot = Math.min, he = Math.max, Yn
5574
5574
  end: "start"
5575
5575
  };
5576
5576
  function xi(e, t, n) {
5577
- return he(e, ot(t, n));
5577
+ return he(e, at(t, n));
5578
5578
  }
5579
5579
  function Qe(e, t) {
5580
5580
  return typeof e == "function" ? e(t) : e;
@@ -5835,7 +5835,7 @@ const ca = (e) => ({
5835
5835
  }, h = po(i), m = go(h), I = await a.getDimensions(d), f = h === "y", M = f ? "top" : "left", y = f ? "bottom" : "right", b = f ? "clientHeight" : "clientWidth", v = o.reference[m] + o.reference[h] - p[h] - o.floating[m], x = p[h] - o.reference[h], j = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(d));
5836
5836
  let N = j ? j[b] : 0;
5837
5837
  (!N || !await (a.isElement == null ? void 0 : a.isElement(j))) && (N = s.floating[b] || o.floating[m]);
5838
- const w = v / 2 - x / 2, S = N / 2 - I[m] / 2 - 1, L = ot(g[M], S), D = ot(g[y], S), k = L, U = N - I[m] - D, R = N / 2 - I[m] / 2 + w, P = xi(k, R, U), W = Ft(i) != null && R != P && o.reference[m] / 2 - (R < k ? L : D) - I[m] / 2 < 0 ? R < k ? k - R : U - R : 0;
5838
+ const w = v / 2 - x / 2, S = N / 2 - I[m] / 2 - 1, L = at(g[M], S), D = at(g[y], S), k = L, U = N - I[m] - D, R = N / 2 - I[m] / 2 + w, P = xi(k, R, U), W = Ft(i) != null && R != P && o.reference[m] / 2 - (R < k ? L : D) - I[m] / 2 < 0 ? R < k ? k - R : U - R : 0;
5839
5839
  return {
5840
5840
  [h]: p[h] - W,
5841
5841
  data: {
@@ -6128,10 +6128,10 @@ const T5 = function(e) {
6128
6128
  let v = M, x = y;
6129
6129
  if (p) {
6130
6130
  const N = h - d.left - d.right;
6131
- x = g || b ? ot(y, N) : N;
6131
+ x = g || b ? at(y, N) : N;
6132
6132
  } else {
6133
6133
  const N = m - d.top - d.bottom;
6134
- v = g || b ? ot(M, N) : N;
6134
+ v = g || b ? at(M, N) : N;
6135
6135
  }
6136
6136
  if (b && !g) {
6137
6137
  const N = he(d.left, 0), w = he(d.right, 0), S = he(d.top, 0), L = he(d.bottom, 0);
@@ -6151,7 +6151,7 @@ const T5 = function(e) {
6151
6151
  }
6152
6152
  };
6153
6153
  };
6154
- function st(e) {
6154
+ function ct(e) {
6155
6155
  return wc(e) ? (e.nodeName || "").toLowerCase() : "#document";
6156
6156
  }
6157
6157
  function be(e) {
@@ -6184,7 +6184,7 @@ function dn(e) {
6184
6184
  return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(i);
6185
6185
  }
6186
6186
  function U5(e) {
6187
- return ["table", "td", "th"].includes(st(e));
6187
+ return ["table", "td", "th"].includes(ct(e));
6188
6188
  }
6189
6189
  function ho(e) {
6190
6190
  const t = mo(), n = Se(e);
@@ -6203,7 +6203,7 @@ function mo() {
6203
6203
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
6204
6204
  }
6205
6205
  function jr(e) {
6206
- return ["html", "body", "#document"].includes(st(e));
6206
+ return ["html", "body", "#document"].includes(ct(e));
6207
6207
  }
6208
6208
  function Se(e) {
6209
6209
  return be(e).getComputedStyle(e);
@@ -6218,7 +6218,7 @@ function Nr(e) {
6218
6218
  };
6219
6219
  }
6220
6220
  function Wt(e) {
6221
- if (st(e) === "html")
6221
+ if (ct(e) === "html")
6222
6222
  return e;
6223
6223
  const t = (
6224
6224
  // Step into the shadow DOM of the parent of a slotted node.
@@ -6255,7 +6255,7 @@ function fo(e) {
6255
6255
  function zt(e) {
6256
6256
  const t = fo(e);
6257
6257
  if (!Oe(t))
6258
- return at(1);
6258
+ return st(1);
6259
6259
  const n = t.getBoundingClientRect(), {
6260
6260
  width: r,
6261
6261
  height: i,
@@ -6267,7 +6267,7 @@ function zt(e) {
6267
6267
  y: s
6268
6268
  };
6269
6269
  }
6270
- const W5 = /* @__PURE__ */ at(0);
6270
+ const W5 = /* @__PURE__ */ st(0);
6271
6271
  function Dc(e) {
6272
6272
  const t = be(e);
6273
6273
  return !mo() || !t.visualViewport ? W5 : {
@@ -6281,9 +6281,9 @@ function O5(e, t, n) {
6281
6281
  function Mt(e, t, n, r) {
6282
6282
  t === void 0 && (t = !1), n === void 0 && (n = !1);
6283
6283
  const i = e.getBoundingClientRect(), o = fo(e);
6284
- let a = at(1);
6284
+ let a = st(1);
6285
6285
  t && (r ? Fe(r) && (a = zt(r)) : a = zt(e));
6286
- const s = O5(o, n, r) ? Dc(o) : at(0);
6286
+ const s = O5(o, n, r) ? Dc(o) : st(0);
6287
6287
  let d = (i.left + s.x) / a.x, u = (i.top + s.y) / a.y, g = i.width / a.x, p = i.height / a.y;
6288
6288
  if (o) {
6289
6289
  const h = be(o), m = r && Fe(r) ? be(r) : r;
@@ -6312,9 +6312,9 @@ function P5(e) {
6312
6312
  let a = {
6313
6313
  scrollLeft: 0,
6314
6314
  scrollTop: 0
6315
- }, s = at(1);
6316
- const d = at(0);
6317
- if ((i || !i && r !== "fixed") && ((st(n) !== "body" || dn(o)) && (a = Nr(n)), Oe(n))) {
6315
+ }, s = st(1);
6316
+ const d = st(0);
6317
+ if ((i || !i && r !== "fixed") && ((ct(n) !== "body" || dn(o)) && (a = Nr(n)), Oe(n))) {
6318
6318
  const u = Mt(n);
6319
6319
  s = zt(n), d.x = u.x + n.clientLeft, d.y = u.y + n.clientTop;
6320
6320
  }
@@ -6358,7 +6358,7 @@ function G5(e, t) {
6358
6358
  };
6359
6359
  }
6360
6360
  function V5(e, t) {
6361
- const n = Mt(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, o = Oe(e) ? zt(e) : at(1), a = e.clientWidth * o.x, s = e.clientHeight * o.y, d = i * o.x, u = r * o.y;
6361
+ const n = Mt(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, o = Oe(e) ? zt(e) : st(1), a = e.clientWidth * o.x, s = e.clientHeight * o.y, d = i * o.x, u = r * o.y;
6362
6362
  return {
6363
6363
  width: a,
6364
6364
  height: s,
@@ -6392,7 +6392,7 @@ function Y5(e, t) {
6392
6392
  const n = t.get(e);
6393
6393
  if (n)
6394
6394
  return n;
6395
- let r = Fn(e).filter((s) => Fe(s) && st(s) !== "body"), i = null;
6395
+ let r = Fn(e).filter((s) => Fe(s) && ct(s) !== "body"), i = null;
6396
6396
  const o = Se(e).position === "fixed";
6397
6397
  let a = o ? Wt(e) : e;
6398
6398
  for (; Fe(a) && !jr(a); ) {
@@ -6410,7 +6410,7 @@ function Q5(e) {
6410
6410
  } = e;
6411
6411
  const a = [...n === "clippingAncestors" ? Y5(t, this._c) : [].concat(n), r], s = a[0], d = a.reduce((u, g) => {
6412
6412
  const p = ga(t, g, i);
6413
- return u.top = he(p.top, u.top), u.right = ot(p.right, u.right), u.bottom = ot(p.bottom, u.bottom), u.left = he(p.left, u.left), u;
6413
+ return u.top = he(p.top, u.top), u.right = at(p.right, u.right), u.bottom = at(p.bottom, u.bottom), u.left = he(p.left, u.left), u;
6414
6414
  }, ga(t, s, i));
6415
6415
  return {
6416
6416
  width: d.right - d.left,
@@ -6428,9 +6428,9 @@ function F5(e, t, n) {
6428
6428
  scrollLeft: 0,
6429
6429
  scrollTop: 0
6430
6430
  };
6431
- const d = at(0);
6431
+ const d = st(0);
6432
6432
  if (r || !r && !o)
6433
- if ((st(t) !== "body" || dn(i)) && (s = Nr(t)), r) {
6433
+ if ((ct(t) !== "body" || dn(i)) && (s = Nr(t)), r) {
6434
6434
  const u = Mt(t, !0, o, t);
6435
6435
  d.x = u.x + t.clientLeft, d.y = u.y + t.clientTop;
6436
6436
  } else
@@ -6452,7 +6452,7 @@ function Cc(e, t) {
6452
6452
  let r = pa(e, t);
6453
6453
  for (; r && U5(r) && Se(r).position === "static"; )
6454
6454
  r = pa(r, t);
6455
- return r && (st(r) === "html" || st(r) === "body" && Se(r).position === "static" && !ho(r)) ? n : r || Z5(e) || n;
6455
+ return r && (ct(r) === "html" || ct(r) === "body" && Se(r).position === "static" && !ho(r)) ? n : r || Z5(e) || n;
6456
6456
  }
6457
6457
  const X5 = async function(e) {
6458
6458
  let {
@@ -6503,7 +6503,7 @@ function K5(e, t) {
6503
6503
  return;
6504
6504
  const m = jn(g), I = jn(i.clientWidth - (u + p)), f = jn(i.clientHeight - (g + h)), M = jn(u), b = {
6505
6505
  rootMargin: -m + "px " + -I + "px " + -f + "px " + -M + "px",
6506
- threshold: he(0, ot(1, d)) || 1
6506
+ threshold: he(0, at(1, d)) || 1
6507
6507
  };
6508
6508
  let v = !0;
6509
6509
  function x(j) {
@@ -6881,11 +6881,11 @@ const oM = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", Io = ({
6881
6881
  );
6882
6882
  const pn = (pe) => {
6883
6883
  pe.target === pe.currentTarget && w && we();
6884
- }, qe = {};
6885
- typeof n == "number" ? (qe.width = "100%", qe.maxWidth = n + "px") : n === "full" && (Q = C(
6884
+ }, _e = {};
6885
+ typeof n == "number" ? (_e.width = "100%", _e.maxWidth = n + "px") : n === "full" && (Q = C(
6886
6886
  Q,
6887
6887
  "w-full"
6888
- )), typeof r == "number" ? (qe.height = "100%", qe.maxHeight = r + "px") : r === "full" && (Q = C(
6888
+ )), typeof r == "number" ? (_e.height = "100%", _e.maxHeight = r + "px") : r === "full" && (Q = C(
6889
6889
  Q,
6890
6890
  "h-full"
6891
6891
  ));
@@ -6899,7 +6899,7 @@ const oM = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", Io = ({
6899
6899
  N && !R && oM,
6900
6900
  R && "bg-[rgba(98,109,121,0.08)]"
6901
6901
  ) }),
6902
- /* @__PURE__ */ c.jsxs("section", { className: Q, "data-testid": i, style: qe, children: [
6902
+ /* @__PURE__ */ c.jsxs("section", { className: Q, "data-testid": i, style: _e, children: [
6903
6903
  g === !1 ? "" : !b || b === "close" ? /* @__PURE__ */ c.jsxs("header", { className: q, children: [
6904
6904
  o && /* @__PURE__ */ c.jsx(me, { level: 3, children: o }),
6905
6905
  /* @__PURE__ */ c.jsx("div", { className: `${b !== "close" && "md:!invisible md:!hidden"} ${v && "hidden"} absolute right-6 top-6`, children: /* @__PURE__ */ c.jsx(V, { className: "-m-2 cursor-pointer p-2 opacity-50 hover:opacity-100", icon: "close", iconColorClass: "text-black dark:text-white", size: "sm", testId: "close-modal", unstyled: !0, onClick: we }) })
@@ -7638,16 +7638,16 @@ var Qr = "focusScope.autoFocusOnMount", Br = "focusScope.autoFocusOnUnmount", ya
7638
7638
  if (m.paused || !s)
7639
7639
  return;
7640
7640
  const x = v.target;
7641
- s.contains(x) ? p.current = x : _e(p.current, { select: !0 });
7641
+ s.contains(x) ? p.current = x : Ke(p.current, { select: !0 });
7642
7642
  }, M = function(v) {
7643
7643
  if (m.paused || !s)
7644
7644
  return;
7645
7645
  const x = v.relatedTarget;
7646
- x !== null && (s.contains(x) || _e(p.current, { select: !0 }));
7646
+ x !== null && (s.contains(x) || Ke(p.current, { select: !0 }));
7647
7647
  }, y = function(v) {
7648
7648
  if (document.activeElement === document.body)
7649
7649
  for (const j of v)
7650
- j.removedNodes.length > 0 && _e(s);
7650
+ j.removedNodes.length > 0 && Ke(s);
7651
7651
  };
7652
7652
  document.addEventListener("focusin", f), document.addEventListener("focusout", M);
7653
7653
  const b = new MutationObserver(y);
@@ -7661,12 +7661,12 @@ var Qr = "focusScope.autoFocusOnMount", Br = "focusScope.autoFocusOnUnmount", ya
7661
7661
  const f = document.activeElement;
7662
7662
  if (!s.contains(f)) {
7663
7663
  const y = new CustomEvent(Qr, ya);
7664
- s.addEventListener(Qr, u), s.dispatchEvent(y), y.defaultPrevented || (GM(FM(el(s)), { select: !0 }), document.activeElement === f && _e(s));
7664
+ s.addEventListener(Qr, u), s.dispatchEvent(y), y.defaultPrevented || (GM(FM(el(s)), { select: !0 }), document.activeElement === f && Ke(s));
7665
7665
  }
7666
7666
  return () => {
7667
7667
  s.removeEventListener(Qr, u), setTimeout(() => {
7668
7668
  const y = new CustomEvent(Br, ya);
7669
- s.addEventListener(Br, g), s.dispatchEvent(y), y.defaultPrevented || _e(f ?? document.body, { select: !0 }), s.removeEventListener(Br, g), va.remove(m);
7669
+ s.addEventListener(Br, g), s.dispatchEvent(y), y.defaultPrevented || Ke(f ?? document.body, { select: !0 }), s.removeEventListener(Br, g), va.remove(m);
7670
7670
  }, 0);
7671
7671
  };
7672
7672
  }
@@ -7678,7 +7678,7 @@ var Qr = "focusScope.autoFocusOnMount", Br = "focusScope.autoFocusOnUnmount", ya
7678
7678
  const M = f.key === "Tab" && !f.altKey && !f.ctrlKey && !f.metaKey, y = document.activeElement;
7679
7679
  if (M && y) {
7680
7680
  const b = f.currentTarget, [v, x] = VM(b);
7681
- v && x ? !f.shiftKey && y === x ? (f.preventDefault(), n && _e(v, { select: !0 })) : f.shiftKey && y === v && (f.preventDefault(), n && _e(x, { select: !0 })) : y === b && f.preventDefault();
7681
+ v && x ? !f.shiftKey && y === x ? (f.preventDefault(), n && Ke(v, { select: !0 })) : f.shiftKey && y === v && (f.preventDefault(), n && Ke(x, { select: !0 })) : y === b && f.preventDefault();
7682
7682
  }
7683
7683
  },
7684
7684
  [n, r, m.paused]
@@ -7689,7 +7689,7 @@ $c.displayName = JM;
7689
7689
  function GM(e, { select: t = !1 } = {}) {
7690
7690
  const n = document.activeElement;
7691
7691
  for (const r of e)
7692
- if (_e(r, { select: t }), document.activeElement !== n)
7692
+ if (Ke(r, { select: t }), document.activeElement !== n)
7693
7693
  return;
7694
7694
  }
7695
7695
  function VM(e) {
@@ -7727,7 +7727,7 @@ function YM(e, { upTo: t }) {
7727
7727
  function QM(e) {
7728
7728
  return e instanceof HTMLInputElement && "select" in e;
7729
7729
  }
7730
- function _e(e, { select: t = !1 } = {}) {
7730
+ function Ke(e, { select: t = !1 } = {}) {
7731
7731
  if (e && e.focus) {
7732
7732
  const n = document.activeElement;
7733
7733
  e.focus({ preventScroll: !0 }), e !== n && QM(e) && t && e.select();
@@ -7961,7 +7961,7 @@ var al = "PopperAnchor", sl = O(
7961
7961
  sl.displayName = al;
7962
7962
  var xo = "PopperContent", [ty, ny] = rl(xo), cl = O(
7963
7963
  (e, t) => {
7964
- var pn, qe, Pe, pe, Ue, zo;
7964
+ var pn, _e, Pe, pe, Ue, zo;
7965
7965
  const {
7966
7966
  __scopePopper: n,
7967
7967
  side: r = "bottom",
@@ -8016,7 +8016,7 @@ var xo = "PopperContent", [ty, ny] = rl(xo), cl = O(
8016
8016
  Ut(() => {
8017
8017
  K && (we == null || we());
8018
8018
  }, [K, we]);
8019
- const Q = (pn = $.arrow) == null ? void 0 : pn.x, ae = (qe = $.arrow) == null ? void 0 : qe.y, ge = ((Pe = $.arrow) == null ? void 0 : Pe.centerOffset) !== 0, [q, Zr] = z();
8019
+ const Q = (pn = $.arrow) == null ? void 0 : pn.x, ae = (_e = $.arrow) == null ? void 0 : _e.y, ge = ((Pe = $.arrow) == null ? void 0 : Pe.centerOffset) !== 0, [q, Zr] = z();
8020
8020
  return Ut(() => {
8021
8021
  y && Zr(window.getComputedStyle(y).zIndex);
8022
8022
  }, [y]), /* @__PURE__ */ c.jsx(
@@ -8871,7 +8871,7 @@ const ob = ({
8871
8871
  triggerButtonProps: t,
8872
8872
  items: n,
8873
8873
  position: r = "start"
8874
- }) => (e || (e = /* @__PURE__ */ c.jsx(V, { icon: "ellipsis", label: "Menu", hideLabel: !0, ...t })), /* @__PURE__ */ c.jsx(ob, { position: r, trigger: e, closeOnItemClick: !0, children: /* @__PURE__ */ c.jsx("div", { className: "flex min-w-[160px] flex-col justify-stretch py-1", role: "none", children: n.map((i) => /* @__PURE__ */ c.jsx("button", { className: `mx-1 block cursor-pointer rounded-[2.5px] px-4 py-1.5 text-left text-sm hover:bg-grey-100 ${i.destructive && " text-red-500"}`, type: "button", onClick: i.onClick, children: i.label }, i.id)) }) })), nt = ({ icon: e, children: t }) => /* @__PURE__ */ c.jsxs("div", { className: "my-10 flex flex-col items-center gap-1 text-sm text-grey-600", children: [
8874
+ }) => (e || (e = /* @__PURE__ */ c.jsx(V, { icon: "ellipsis", label: "Menu", hideLabel: !0, ...t })), /* @__PURE__ */ c.jsx(ob, { position: r, trigger: e, closeOnItemClick: !0, children: /* @__PURE__ */ c.jsx("div", { className: "flex min-w-[160px] flex-col justify-stretch py-1", role: "none", children: n.map((i) => /* @__PURE__ */ c.jsx("button", { className: `mx-1 block cursor-pointer rounded-[2.5px] px-4 py-1.5 text-left text-sm hover:bg-grey-100 ${i.destructive && " text-red-500"}`, type: "button", onClick: i.onClick, children: i.label }, i.id)) }) })), rt = ({ icon: e, children: t }) => /* @__PURE__ */ c.jsxs("div", { className: "my-10 flex flex-col items-center gap-1 text-sm text-grey-600", children: [
8875
8875
  e && /* @__PURE__ */ c.jsx(ye, { className: "stroke-[1px]", colorClass: "text-grey-500", name: e, size: "lg" }),
8876
8876
  t
8877
8877
  ] });
@@ -9544,7 +9544,7 @@ function Zb(e, t, n) {
9544
9544
  ...e
9545
9545
  };
9546
9546
  }
9547
- function $e(e, t, n) {
9547
+ function et(e, t, n) {
9548
9548
  return gn(e) ? [{
9549
9549
  ...t,
9550
9550
  queryKey: e
@@ -10207,11 +10207,11 @@ class Yb extends qt {
10207
10207
  return this.queries;
10208
10208
  }
10209
10209
  find(t, n) {
10210
- const [r] = $e(t, n);
10210
+ const [r] = et(t, n);
10211
10211
  return typeof r.exact > "u" && (r.exact = !0), this.queries.find((i) => Wa(r, i));
10212
10212
  }
10213
10213
  findAll(t, n) {
10214
- const [r] = $e(t, n);
10214
+ const [r] = et(t, n);
10215
10215
  return Object.keys(r).length > 0 ? this.queries.filter((i) => Wa(r, i)) : this.queries;
10216
10216
  }
10217
10217
  notify(t) {
@@ -10581,7 +10581,7 @@ class qb {
10581
10581
  this.mountCount--, this.mountCount === 0 && ((t = this.unsubscribeFocus) == null || t.call(this), this.unsubscribeFocus = void 0, (n = this.unsubscribeOnline) == null || n.call(this), this.unsubscribeOnline = void 0);
10582
10582
  }
10583
10583
  isFetching(t, n) {
10584
- const [r] = $e(t, n);
10584
+ const [r] = et(t, n);
10585
10585
  return r.fetchStatus = "fetching", this.queryCache.findAll(r).length;
10586
10586
  }
10587
10587
  isMutating(t) {
@@ -10627,7 +10627,7 @@ class qb {
10627
10627
  return (r = this.queryCache.find(t, n)) == null ? void 0 : r.state;
10628
10628
  }
10629
10629
  removeQueries(t, n) {
10630
- const [r] = $e(t, n), i = this.queryCache;
10630
+ const [r] = et(t, n), i = this.queryCache;
10631
10631
  _.batch(() => {
10632
10632
  i.findAll(r).forEach((o) => {
10633
10633
  i.remove(o);
@@ -10635,7 +10635,7 @@ class qb {
10635
10635
  });
10636
10636
  }
10637
10637
  resetQueries(t, n, r) {
10638
- const [i, o] = $e(t, n, r), a = this.queryCache, s = {
10638
+ const [i, o] = et(t, n, r), a = this.queryCache, s = {
10639
10639
  type: "active",
10640
10640
  ...i
10641
10641
  };
@@ -10644,13 +10644,13 @@ class qb {
10644
10644
  }), this.refetchQueries(s, o)));
10645
10645
  }
10646
10646
  cancelQueries(t, n, r) {
10647
- const [i, o = {}] = $e(t, n, r);
10647
+ const [i, o = {}] = et(t, n, r);
10648
10648
  typeof o.revert > "u" && (o.revert = !0);
10649
10649
  const a = _.batch(() => this.queryCache.findAll(i).map((s) => s.cancel(o)));
10650
10650
  return Promise.all(a).then(ke).catch(ke);
10651
10651
  }
10652
10652
  invalidateQueries(t, n, r) {
10653
- const [i, o] = $e(t, n, r);
10653
+ const [i, o] = et(t, n, r);
10654
10654
  return _.batch(() => {
10655
10655
  var a, s;
10656
10656
  if (this.queryCache.findAll(i).forEach((u) => {
@@ -10665,7 +10665,7 @@ class qb {
10665
10665
  });
10666
10666
  }
10667
10667
  refetchQueries(t, n, r) {
10668
- const [i, o] = $e(t, n, r), a = _.batch(() => this.queryCache.findAll(i).filter((d) => !d.isDisabled()).map((d) => {
10668
+ const [i, o] = et(t, n, r), a = _.batch(() => this.queryCache.findAll(i).filter((d) => !d.isDisabled()).map((d) => {
10669
10669
  var u;
10670
10670
  return d.fetch(void 0, {
10671
10671
  ...o,
@@ -11210,7 +11210,7 @@ const td = dv.useSyncExternalStore, Qa = /* @__PURE__ */ ue(void 0), nd = /* @__
11210
11210
  function rd(e, t) {
11211
11211
  return e || (t && typeof window < "u" ? (window.ReactQueryClientContext || (window.ReactQueryClientContext = Qa), window.ReactQueryClientContext) : Qa);
11212
11212
  }
11213
- const ut = ({
11213
+ const qe = ({
11214
11214
  context: e
11215
11215
  } = {}) => {
11216
11216
  const t = ne(rd(e, ne(nd)));
@@ -11271,7 +11271,7 @@ const fv = (e, t) => {
11271
11271
  n.clearReset(), e.onError == null || e.onError(r), e.onSettled == null || e.onSettled(void 0, r);
11272
11272
  });
11273
11273
  function ad(e, t) {
11274
- const n = ut({
11274
+ const n = qe({
11275
11275
  context: e.context
11276
11276
  }), r = gv(), i = mv(), o = n.defaultQueryOptions(e);
11277
11277
  o._optimisticResults = r ? "isRestoring" : "optimistic", o.onError && (o.onError = _.batchCalls(o.onError)), o.onSuccess && (o.onSuccess = _.batchCalls(o.onSuccess)), o.onSettled && (o.onSettled = _.batchCalls(o.onSettled)), yv(o), fv(o, i), Iv(i);
@@ -11300,7 +11300,7 @@ function Ne(e, t, n) {
11300
11300
  return ad(r, Kl);
11301
11301
  }
11302
11302
  function Er(e, t, n) {
11303
- const r = Zb(e, t, n), i = ut({
11303
+ const r = Zb(e, t, n), i = qe({
11304
11304
  context: r.context
11305
11305
  }), [o] = z(() => new ev(i, r));
11306
11306
  A(() => {
@@ -11674,7 +11674,7 @@ class Jv {
11674
11674
  }
11675
11675
  async follow(t) {
11676
11676
  const n = new URL(`.ghost/activitypub/actions/follow/${t}`, this.apiUrl);
11677
- await this.fetchJSON(n, "POST");
11677
+ return await this.fetchJSON(n, "POST");
11678
11678
  }
11679
11679
  async getActor(t) {
11680
11680
  return await this.fetchJSON(new URL(t));
@@ -11703,17 +11703,17 @@ class Jv {
11703
11703
  if (d === null)
11704
11704
  return {
11705
11705
  data: [],
11706
- nextCursor: null
11706
+ next: null
11707
11707
  };
11708
11708
  if (!("items" in d))
11709
11709
  return {
11710
11710
  data: [],
11711
- nextCursor: null
11711
+ next: null
11712
11712
  };
11713
- const u = Array.isArray(d.items) ? d.items : [], g = "nextCursor" in d && typeof d.nextCursor == "string" ? d.nextCursor : null;
11713
+ const u = Array.isArray(d.items) ? d.items : [], g = "next" in d && typeof d.next == "string" ? d.next : null;
11714
11714
  return {
11715
11715
  data: u,
11716
- nextCursor: g
11716
+ next: g
11717
11717
  };
11718
11718
  }
11719
11719
  async reply(t, n) {
@@ -11742,7 +11742,7 @@ class Jv {
11742
11742
  return await this.fetchJSON(n);
11743
11743
  }
11744
11744
  async getThread(t) {
11745
- const n = new URL(`.ghost/activitypub/thread/${btoa(t)}`, this.apiUrl);
11745
+ const n = new URL(`.ghost/activitypub/thread/${encodeURIComponent(t)}`, this.apiUrl);
11746
11746
  return await this.fetchJSON(n);
11747
11747
  }
11748
11748
  }
@@ -11775,7 +11775,7 @@ function Vv(e) {
11775
11775
  });
11776
11776
  }
11777
11777
  function Yv(e) {
11778
- const t = ut();
11778
+ const t = qe();
11779
11779
  return Er({
11780
11780
  async mutationFn(n) {
11781
11781
  const r = await ie();
@@ -11800,7 +11800,7 @@ function Yv(e) {
11800
11800
  });
11801
11801
  }
11802
11802
  function Qv(e) {
11803
- const t = ut();
11803
+ const t = qe();
11804
11804
  return Er({
11805
11805
  async mutationFn(n) {
11806
11806
  const r = await ie();
@@ -11873,7 +11873,7 @@ function md({
11873
11873
  excludeNonFollowers: r = !1,
11874
11874
  filter: i = null
11875
11875
  }) {
11876
- const o = [`activities:${JSON.stringify({ handle: e, includeOwn: t, includeReplies: n, filter: i })}`], a = ut();
11876
+ const o = [`activities:${JSON.stringify({ handle: e, includeOwn: t, includeReplies: n, filter: i })}`], a = qe();
11877
11877
  return { getActivitiesQuery: Lo({
11878
11878
  queryKey: o,
11879
11879
  async queryFn({ pageParam: u }) {
@@ -11881,7 +11881,7 @@ function md({
11881
11881
  return oe(e, g).getActivities(t, n, r, i, u);
11882
11882
  },
11883
11883
  getNextPageParam(u) {
11884
- return u.nextCursor;
11884
+ return u.next;
11885
11885
  }
11886
11886
  }), updateActivity: (u, g) => {
11887
11887
  a.setQueryData(o, (p) => p && {
@@ -11894,7 +11894,7 @@ function md({
11894
11894
  } };
11895
11895
  }
11896
11896
  function _v(e, t) {
11897
- const n = ut(), r = ["search", { handle: e, query: t }];
11897
+ const n = qe(), r = ["search", { handle: e, query: t }];
11898
11898
  return { searchQuery: Ne({
11899
11899
  queryKey: r,
11900
11900
  async queryFn() {
@@ -11909,12 +11909,18 @@ function _v(e, t) {
11909
11909
  } };
11910
11910
  }
11911
11911
  function Kv(e, t, n) {
11912
+ const r = qe();
11912
11913
  return Er({
11913
- async mutationFn(r) {
11914
- const i = await ie();
11915
- return oe(e, i).follow(r);
11914
+ async mutationFn(i) {
11915
+ const o = await ie();
11916
+ return oe(e, o).follow(i);
11917
+ },
11918
+ onSuccess(i, o) {
11919
+ r.setQueryData([`profile:${o}`], (a) => a && {
11920
+ ...a,
11921
+ isFollowing: !0
11922
+ }), r.setQueryData(["following:index"], (a) => a && [i].concat(a)), r.setQueryData(["followingCount:index"], (a) => a ? a + 1 : 1), t();
11916
11923
  },
11917
- onSuccess: t,
11918
11924
  onError: n
11919
11925
  });
11920
11926
  }
@@ -11943,7 +11949,7 @@ function ex(e) {
11943
11949
  });
11944
11950
  }
11945
11951
  function fd(e, t) {
11946
- const n = ut(), r = ["profiles", { handles: t }];
11952
+ const n = qe(), r = ["profiles", { handles: t }];
11947
11953
  return { suggestedProfilesQuery: Ne({
11948
11954
  queryKey: r,
11949
11955
  async queryFn() {
@@ -11976,7 +11982,7 @@ function nx(e) {
11976
11982
  });
11977
11983
  }
11978
11984
  function rx(e, t) {
11979
- const n = ut(), r = ["thread", { id: t }];
11985
+ const n = qe(), r = ["thread", { id: t }];
11980
11986
  return { threadQuery: Ne({
11981
11987
  queryKey: r,
11982
11988
  async queryFn() {
@@ -18694,7 +18700,7 @@ const Rr = ({
18694
18700
  }), p.current && g.current.observe(p.current), () => {
18695
18701
  g.current && g.current.disconnect();
18696
18702
  }), [a, s, o]), /* @__PURE__ */ c.jsxs("div", { children: [
18697
- u.length === 0 && !d ? /* @__PURE__ */ c.jsx(nt, { icon: "user-add", children: t }) : /* @__PURE__ */ c.jsx(wi, { children: u.map(({ actor: h, isFollowing: m }) => /* @__PURE__ */ c.jsxs(Ht, { url: h.url, children: [
18703
+ u.length === 0 && !d ? /* @__PURE__ */ c.jsx(rt, { icon: "user-add", children: t }) : /* @__PURE__ */ c.jsx(wi, { children: u.map(({ actor: h, isFollowing: m }) => /* @__PURE__ */ c.jsxs(Ht, { url: h.url, children: [
18698
18704
  /* @__PURE__ */ c.jsx(fe, { author: h }),
18699
18705
  /* @__PURE__ */ c.jsx("div", { children: /* @__PURE__ */ c.jsxs("div", { className: "text-grey-600", children: [
18700
18706
  /* @__PURE__ */ c.jsx("span", { className: "mr-1 font-bold text-black", children: h.name || h.preferredUsername || "Unknown" }),
@@ -18788,7 +18794,7 @@ const Rr = ({
18788
18794
  /* @__PURE__ */ c.jsx("div", { className: "sticky top-0 z-50 border-grey-200 bg-white py-3", children: /* @__PURE__ */ c.jsx("div", { className: "grid h-8 grid-cols-3", children: /* @__PURE__ */ c.jsx("div", { className: "col-[3/4] flex items-center justify-end space-x-6 px-8", children: /* @__PURE__ */ c.jsx(V, { icon: "close", size: "sm", unstyled: !0, onClick: () => r.remove() }) }) }) }),
18789
18795
  /* @__PURE__ */ c.jsx("div", { className: "z-0 mx-auto mt-4 flex w-full max-w-[580px] flex-col items-center pb-16", children: /* @__PURE__ */ c.jsxs("div", { className: "mx-auto w-full", children: [
18790
18796
  d && /* @__PURE__ */ c.jsx(Ce, { size: "lg" }),
18791
- !d && !s && /* @__PURE__ */ c.jsx(nt, { icon: "user-add", children: "Profile not found" }),
18797
+ !d && !s && /* @__PURE__ */ c.jsx(rt, { icon: "user-add", children: "Profile not found" }),
18792
18798
  !d && s && /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
18793
18799
  s.actor.image && /* @__PURE__ */ c.jsx("div", { className: "h-[200px] w-full overflow-hidden rounded-lg bg-gradient-to-tr from-grey-200 to-grey-100", children: /* @__PURE__ */ c.jsx(
18794
18800
  "img",
@@ -18938,7 +18944,7 @@ const Rr = ({
18938
18944
  /* @__PURE__ */ c.jsx(Rr, { page: "activities" }),
18939
18945
  /* @__PURE__ */ c.jsxs("div", { className: "z-0 flex w-full flex-col items-center", children: [
18940
18946
  a && /* @__PURE__ */ c.jsx("div", { className: "mt-8 flex flex-col items-center justify-center space-y-4 text-center", children: /* @__PURE__ */ c.jsx(Ce, { size: "lg" }) }),
18941
- a === !1 && s.length === 0 && /* @__PURE__ */ c.jsx("div", { className: "mt-8", children: /* @__PURE__ */ c.jsx(nt, { icon: "bell", children: "When other Fediverse users interact with you, you'll see it here." }) }),
18947
+ a === !1 && s.length === 0 && /* @__PURE__ */ c.jsx("div", { className: "mt-8", children: /* @__PURE__ */ c.jsx(rt, { icon: "bell", children: "When other Fediverse users interact with you, you'll see it here." }) }),
18942
18948
  a === !1 && s.length > 0 && /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
18943
18949
  /* @__PURE__ */ c.jsx("div", { className: "mt-8 flex w-full max-w-[560px] flex-col", children: s == null ? void 0 : s.map((p) => /* @__PURE__ */ c.jsxs(
18944
18950
  Ht,
@@ -19089,7 +19095,7 @@ const wx = ({}) => {
19089
19095
  id: "posts",
19090
19096
  title: "Posts",
19091
19097
  contents: /* @__PURE__ */ c.jsxs("div", { className: "ap-posts", children: [
19092
- a.length === 0 ? /* @__PURE__ */ c.jsx(nt, { icon: "pen", children: "You haven't posted anything yet." }) : /* @__PURE__ */ c.jsx("ul", { className: "mx-auto flex max-w-[640px] flex-col", children: a.slice(0, f).map((Z, we) => {
19098
+ a.length === 0 ? /* @__PURE__ */ c.jsx(rt, { icon: "pen", children: "You haven't posted anything yet." }) : /* @__PURE__ */ c.jsx("ul", { className: "mx-auto flex max-w-[640px] flex-col", children: a.slice(0, f).map((Z, we) => {
19093
19099
  var Q;
19094
19100
  return /* @__PURE__ */ c.jsxs(
19095
19101
  "li",
@@ -19131,7 +19137,7 @@ const wx = ({}) => {
19131
19137
  id: "likes",
19132
19138
  title: "Likes",
19133
19139
  contents: /* @__PURE__ */ c.jsxs("div", { className: "ap-likes", children: [
19134
- i.length === 0 ? /* @__PURE__ */ c.jsx(nt, { icon: "heart", children: "You haven't liked anything yet." }) : /* @__PURE__ */ c.jsx("ul", { className: "mx-auto flex max-w-[640px] flex-col", children: i.slice(0, y).map((Z, we) => {
19140
+ i.length === 0 ? /* @__PURE__ */ c.jsx(rt, { icon: "heart", children: "You haven't liked anything yet." }) : /* @__PURE__ */ c.jsx("ul", { className: "mx-auto flex max-w-[640px] flex-col", children: i.slice(0, y).map((Z, we) => {
19135
19141
  var Q;
19136
19142
  return /* @__PURE__ */ c.jsxs(
19137
19143
  "li",
@@ -19173,7 +19179,7 @@ const wx = ({}) => {
19173
19179
  id: "following",
19174
19180
  title: "Following",
19175
19181
  contents: /* @__PURE__ */ c.jsxs("div", { children: [
19176
- n.length === 0 ? /* @__PURE__ */ c.jsx(nt, { icon: "user-add", children: "You haven't followed anyone yet." }) : /* @__PURE__ */ c.jsx(wi, { children: n.slice(0, v).map((Z) => /* @__PURE__ */ c.jsxs(
19182
+ n.length === 0 ? /* @__PURE__ */ c.jsx(rt, { icon: "user-add", children: "You haven't followed anyone yet." }) : /* @__PURE__ */ c.jsx(wi, { children: n.slice(0, v).map((Z) => /* @__PURE__ */ c.jsxs(
19177
19183
  Ht,
19178
19184
  {
19179
19185
  url: Z.url,
@@ -19206,7 +19212,7 @@ const wx = ({}) => {
19206
19212
  id: "followers",
19207
19213
  title: "Followers",
19208
19214
  contents: /* @__PURE__ */ c.jsxs("div", { children: [
19209
- r.length === 0 ? /* @__PURE__ */ c.jsx(nt, { icon: "user-add", children: "Nobody's following you yet. Their loss!" }) : /* @__PURE__ */ c.jsx(wi, { children: r.slice(0, j).map((Z) => /* @__PURE__ */ c.jsxs(
19215
+ r.length === 0 ? /* @__PURE__ */ c.jsx(rt, { icon: "user-add", children: "Nobody's following you yet. Their loss!" }) : /* @__PURE__ */ c.jsx(wi, { children: r.slice(0, j).map((Z) => /* @__PURE__ */ c.jsxs(
19210
19216
  Ht,
19211
19217
  {
19212
19218
  url: Z.url,
@@ -19453,7 +19459,7 @@ const qa = ({ result: e, update: t }) => {
19453
19459
  )
19454
19460
  ] }),
19455
19461
  M && /* @__PURE__ */ c.jsx(Ce, { size: "lg" }),
19456
- y && /* @__PURE__ */ c.jsx(nt, { icon: "user", children: "No users matching this username" }),
19462
+ y && /* @__PURE__ */ c.jsx(rt, { icon: "user", children: "No users matching this username" }),
19457
19463
  f.map((v) => /* @__PURE__ */ c.jsx(
19458
19464
  qa,
19459
19465
  {
@@ -19494,7 +19500,7 @@ const qa = ({ result: e, update: t }) => {
19494
19500
  "profile/following": "ViewFollowing",
19495
19501
  "profile/followers": "ViewFollowers"
19496
19502
  },
19497
- load: async () => import("./modals-dc93ce65.mjs")
19503
+ load: async () => import("./modals-2e6f9c05.mjs")
19498
19504
  }, Px = ({ framework: e, designSystem: t }) => /* @__PURE__ */ c.jsx(Nv, { ...e, children: /* @__PURE__ */ c.jsx(gx, { basePath: "activitypub", modals: Tx, children: /* @__PURE__ */ c.jsx(Rb, { className: "admin-x-activitypub", ...t, children: /* @__PURE__ */ c.jsx(Cx, {}) }) }) });
19499
19505
  export {
19500
19506
  Jv as A,
@@ -19519,4 +19525,4 @@ export {
19519
19525
  Px as m,
19520
19526
  T as u
19521
19527
  };
19522
- //# sourceMappingURL=index-696e3897.mjs.map
19528
+ //# sourceMappingURL=index-ab50c736.mjs.map