strapi-plugin-comments 3.0.0-beta.1 → 3.0.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 (90) hide show
  1. package/README.md +81 -122
  2. package/dist/_chunks/{index-D3iNqWZT.mjs → index-BC5Odn17.mjs} +5 -5
  3. package/dist/_chunks/{index-BBcsmSTs.mjs → index-BIorFYba.mjs} +448 -256
  4. package/dist/_chunks/{index-Bcck91A8.js → index-COoWcAcA.js} +1290 -1144
  5. package/dist/_chunks/{index-CY_AVWS-.js → index-Ccb93U47.js} +445 -253
  6. package/dist/_chunks/{index-D9MOkoQ2.mjs → index-D1DAMkhj.mjs} +20 -26
  7. package/dist/_chunks/{index-BFPteXuP.js → index-R1krliyC.js} +5 -5
  8. package/dist/_chunks/{index-DJ32APz-.mjs → index-_exHAK6u.mjs} +1290 -1144
  9. package/dist/_chunks/{index-BXEk5PWx.js → index-k7z0V0lj.js} +20 -26
  10. package/dist/admin/index.js +1 -1
  11. package/dist/admin/index.mjs +1 -1
  12. package/dist/admin/src/api/client.d.ts +30 -50
  13. package/dist/admin/src/api/schemas.d.ts +432 -756
  14. package/dist/admin/src/components/UserAvatar/index.d.ts +1 -1
  15. package/dist/admin/src/hooks/useAPI.d.ts +30 -50
  16. package/dist/admin/src/hooks/useCommentsAll.d.ts +6 -10
  17. package/dist/admin/src/hooks/useReports.d.ts +6 -10
  18. package/dist/server/index.js +212 -157
  19. package/dist/server/index.mjs +212 -157
  20. package/dist/server/src/{@types-v5 → @types}/utils.d.ts +4 -0
  21. package/dist/server/src/bootstrap.d.ts +1 -1
  22. package/dist/server/src/config/index.d.ts +30 -0
  23. package/dist/server/src/content-types/index.d.ts +1 -1
  24. package/dist/server/src/controllers/admin.controller.d.ts +108 -29
  25. package/dist/server/src/controllers/client.controller.d.ts +121 -24
  26. package/dist/server/src/controllers/index.d.ts +300 -88
  27. package/dist/server/src/controllers/settings.controller.d.ts +33 -1
  28. package/dist/server/src/graphql/index.d.ts +1 -1
  29. package/dist/server/src/graphql/mutations/getCreateAbuseReport.d.ts +10 -4
  30. package/dist/server/src/graphql/mutations/getCreateComment.d.ts +10 -4
  31. package/dist/server/src/graphql/mutations/getRemoveComment.d.ts +10 -4
  32. package/dist/server/src/graphql/mutations/getUpdateComment.d.ts +10 -4
  33. package/dist/server/src/graphql/mutations/index.d.ts +2 -2
  34. package/dist/server/src/graphql/queries/findAllFlat.d.ts +18 -6
  35. package/dist/server/src/graphql/queries/findAllInHierarchy.d.ts +10 -4
  36. package/dist/server/src/graphql/queries/findAllPerAuthor.d.ts +18 -6
  37. package/dist/server/src/graphql/queries/index.d.ts +2 -2
  38. package/dist/server/src/graphql/types/getComment.d.ts +1 -1
  39. package/dist/server/src/graphql/types/getCommentAuthor.d.ts +1 -1
  40. package/dist/server/src/graphql/types/getCommentAuthorType.d.ts +1 -1
  41. package/dist/server/src/graphql/types/getCommentNested.d.ts +1 -1
  42. package/dist/server/src/graphql/types/getCreateComment.d.ts +1 -1
  43. package/dist/server/src/graphql/types/getCreateCommentAuthor.d.ts +1 -1
  44. package/dist/server/src/graphql/types/getCreateReport.d.ts +1 -1
  45. package/dist/server/src/graphql/types/getId.d.ts +1 -1
  46. package/dist/server/src/graphql/types/getIdentityAuthor.d.ts +1 -1
  47. package/dist/server/src/graphql/types/getRemoveComment.d.ts +1 -1
  48. package/dist/server/src/graphql/types/getReport.d.ts +1 -1
  49. package/dist/server/src/graphql/types/getReportReason.d.ts +1 -1
  50. package/dist/server/src/graphql/types/getResponseFindAll.d.ts +1 -1
  51. package/dist/server/src/graphql/types/getResponseFindAllPerAuthor.d.ts +1 -1
  52. package/dist/server/src/graphql/types/getResponseMeta.d.ts +1 -1
  53. package/dist/server/src/graphql/types/getResponsePagination.d.ts +1 -1
  54. package/dist/server/src/graphql/types/getUpdateComment.d.ts +1 -1
  55. package/dist/server/src/graphql/types/index.d.ts +1 -1
  56. package/dist/server/src/index.d.ts +931 -315
  57. package/dist/server/src/register/custom-fields/index.d.ts +1 -1
  58. package/dist/server/src/register/index.d.ts +1 -1
  59. package/dist/server/src/repositories/comment.repository.d.ts +10 -1
  60. package/dist/server/src/repositories/index.d.ts +0 -2
  61. package/dist/server/src/repositories/report.comment.repository.d.ts +38 -1
  62. package/dist/server/src/repositories/store.repository.d.ts +159 -3
  63. package/dist/server/src/repositories/utils.d.ts +1 -3
  64. package/dist/server/src/routes/admin.routes.d.ts +1 -1
  65. package/dist/server/src/routes/client.routes.d.ts +1 -1
  66. package/dist/server/src/routes/index.d.ts +2 -2
  67. package/dist/server/src/services/admin/admin.service.d.ts +232 -78
  68. package/dist/server/src/services/admin/utils.d.ts +1 -1
  69. package/dist/server/src/services/client.service.d.ts +178 -67
  70. package/dist/server/src/services/common.service.d.ts +60 -19
  71. package/dist/server/src/services/gql.service.d.ts +1 -1
  72. package/dist/server/src/services/index.d.ts +615 -223
  73. package/dist/server/src/services/settings.service.d.ts +25 -1
  74. package/dist/server/src/services/utils/functions.d.ts +1 -3
  75. package/dist/server/src/test/utils.d.ts +1 -0
  76. package/dist/server/src/utils/constants.d.ts +1 -1
  77. package/dist/server/src/utils/getConfig.d.ts +2 -2
  78. package/dist/server/src/utils/getPluginService.d.ts +2 -2
  79. package/dist/server/src/utils/throwError.d.ts +1 -1
  80. package/dist/server/src/validators/api/controllers/client.controller.validator.d.ts +16 -9
  81. package/dist/server/src/validators/api/controllers/settings.controller.validator.d.ts +4 -0
  82. package/dist/server/src/validators/repositories/comment.schema.d.ts +18 -3
  83. package/dist/server/src/validators/repositories/comment.validator.d.ts +384 -72
  84. package/dist/server/src/validators/repositories/reports.validator.d.ts +60 -18
  85. package/dist/server/src/validators/utils.d.ts +1 -1
  86. package/package.json +18 -12
  87. /package/dist/server/src/{@types-v5 → @types}/controllers.d.ts +0 -0
  88. /package/dist/server/src/{@types-v5 → @types}/index.d.ts +0 -0
  89. /package/dist/server/src/{@types-v5 → @types}/repositories.d.ts +0 -0
  90. /package/dist/server/src/{@types-v5 → @types}/routes.d.ts +0 -0
@@ -4193,9 +4193,9 @@ var handleScroll$2 = function(axis, endTarget, event, sourceDelta, noOverscroll)
4193
4193
  !targetInLock && target !== document.body || // self content
4194
4194
  targetInLock && (endTarget.contains(target) || endTarget === target)
4195
4195
  );
4196
- if (isDeltaPositive && (Math.abs(availableScroll) < 1 || !noOverscroll)) {
4196
+ if (isDeltaPositive && (Math.abs(availableScroll) < 1 || false)) {
4197
4197
  shouldCancelScroll = true;
4198
- } else if (!isDeltaPositive && (Math.abs(availableScrollTop) < 1 || !noOverscroll)) {
4198
+ } else if (!isDeltaPositive && (Math.abs(availableScrollTop) < 1 || false)) {
4199
4199
  shouldCancelScroll = true;
4200
4200
  }
4201
4201
  return shouldCancelScroll;
@@ -4277,7 +4277,7 @@ function RemoveScrollSideCar$2(props) {
4277
4277
  return true;
4278
4278
  }
4279
4279
  var cancelingAxis = activeAxis.current || currentAxis;
4280
- return handleScroll$2(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY, true);
4280
+ return handleScroll$2(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY);
4281
4281
  }, []);
4282
4282
  var shouldPrevent = React.useCallback(function(_event) {
4283
4283
  var event = _event;
@@ -4539,7 +4539,7 @@ function createCollection(name2) {
4539
4539
  }
4540
4540
  const cache = /* @__PURE__ */ new Map();
4541
4541
  function useCollator(locale, options) {
4542
- const cacheKey = locale + (options ? Object.entries(options).sort((a2, b2) => a2[0] < b2[0] ? -1 : 1).join() : "");
4542
+ const cacheKey = locale + Object.entries(options).sort((a2, b2) => a2[0] < b2[0] ? -1 : 1).join();
4543
4543
  if (cache.has(cacheKey)) {
4544
4544
  return cache.get(cacheKey);
4545
4545
  }
@@ -5306,6 +5306,8 @@ const ComboboxNoValueFound = React.forwardRef((props, ref) => {
5306
5306
  unsub();
5307
5307
  };
5308
5308
  }, [subscribe]);
5309
+ if (autocomplete.type === "none" && items.length > 0)
5310
+ return null;
5309
5311
  if (autocomplete.type === "list" && autocomplete.filter === "startsWith" && items.some((item) => startsWith(item.textValue, textValue))) {
5310
5312
  return null;
5311
5313
  }
@@ -7050,8 +7052,8 @@ const SvgArrowClockwise = ({
7050
7052
  const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
7051
7053
  return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M30.5 7v6a1.5 1.5 0 0 1-1.5 1.5h-6a1.5 1.5 0 0 1 0-3h2.137l-2.375-2.173-.047-.046a9.5 9.5 0 1 0-6.84 16.219H16a9.44 9.44 0 0 0 6.519-2.59 1.5 1.5 0 1 1 2.061 2.181A12.43 12.43 0 0 1 16 28.5h-.171a12.5 12.5 0 1 1 8.985-21.368L27.5 9.59V7a1.5 1.5 0 0 1 3 0" }) });
7052
7054
  };
7053
- const ForwardRef$50 = forwardRef$1(SvgArrowClockwise);
7054
- const ForwardRef$51 = ForwardRef$50;
7055
+ const ForwardRef$58 = forwardRef$1(SvgArrowClockwise);
7056
+ const ForwardRef$59 = ForwardRef$58;
7055
7057
  const SvgArrowDown = ({
7056
7058
  fill: fillProp = "currentColor",
7057
7059
  stroke: strokeProp,
@@ -7103,8 +7105,8 @@ const SvgArrowUp = ({
7103
7105
  const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
7104
7106
  return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M26.061 15.061a1.5 1.5 0 0 1-2.125 0L17.5 8.625V27a1.5 1.5 0 1 1-3 0V8.625l-6.439 6.436a1.503 1.503 0 1 1-2.125-2.125l9-9a1.5 1.5 0 0 1 2.125 0l9 9a1.5 1.5 0 0 1 0 2.125" }) });
7105
7107
  };
7106
- const ForwardRef$4U = forwardRef$1(SvgArrowUp);
7107
- const ForwardRef$4V = ForwardRef$4U;
7108
+ const ForwardRef$50 = forwardRef$1(SvgArrowUp);
7109
+ const ForwardRef$51 = ForwardRef$50;
7108
7110
  const SvgArrowsCounterClockwise = ({
7109
7111
  fill: fillProp = "currentColor",
7110
7112
  stroke: strokeProp,
@@ -7143,8 +7145,8 @@ const SvgBold = ({
7143
7145
  const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
7144
7146
  return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M22.135 14.308A6.001 6.001 0 0 0 17.5 4.5H9A1.5 1.5 0 0 0 7.5 6v19A1.5 1.5 0 0 0 9 26.5h10a6.5 6.5 0 0 0 3.135-12.192M10.5 7.5h7a3 3 0 0 1 0 6h-7zm8.5 16h-8.5v-7H19a3.5 3.5 0 1 1 0 7" }) });
7145
7147
  };
7146
- const ForwardRef$4O = forwardRef$1(SvgBold);
7147
- const ForwardRef$4P = ForwardRef$4O;
7148
+ const ForwardRef$4W = forwardRef$1(SvgBold);
7149
+ const ForwardRef$4X = ForwardRef$4W;
7148
7150
  const SvgBook = ({
7149
7151
  fill: fillProp = "currentColor",
7150
7152
  stroke: strokeProp,
@@ -7183,8 +7185,8 @@ const SvgBulletList = ({
7183
7185
  const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
7184
7186
  return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M9.5 8A1.5 1.5 0 0 1 11 6.5h16a1.5 1.5 0 0 1 0 3H11A1.5 1.5 0 0 1 9.5 8M27 14.5H11a1.5 1.5 0 1 0 0 3h16a1.5 1.5 0 1 0 0-3m0 8H11a1.5 1.5 0 1 0 0 3h16a1.5 1.5 0 1 0 0-3M5.5 14a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0-8a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 16a2 2 0 1 0 0 4 2 2 0 0 0 0-4" }) });
7185
7187
  };
7186
- const ForwardRef$4I = forwardRef$1(SvgBulletList);
7187
- const ForwardRef$4J = ForwardRef$4I;
7188
+ const ForwardRef$4Q = forwardRef$1(SvgBulletList);
7189
+ const ForwardRef$4R = ForwardRef$4Q;
7188
7190
  const SvgCalendar = ({
7189
7191
  fill: fillProp = "currentColor",
7190
7192
  stroke: strokeProp,
@@ -7197,8 +7199,8 @@ const SvgCalendar = ({
7197
7199
  const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
7198
7200
  return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M26 4h-3V3a1 1 0 0 0-2 0v1H11V3a1 1 0 0 0-2 0v1H6a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2m0 6H6V6h3v1a1 1 0 0 0 2 0V6h10v1a1 1 0 0 0 2 0V6h3z" }) });
7199
7201
  };
7200
- const ForwardRef$4G = forwardRef$1(SvgCalendar);
7201
- const ForwardRef$4H = ForwardRef$4G;
7202
+ const ForwardRef$4O = forwardRef$1(SvgCalendar);
7203
+ const ForwardRef$4P = ForwardRef$4O;
7202
7204
  const SvgCar = ({
7203
7205
  fill: fillProp = "currentColor",
7204
7206
  stroke: strokeProp,
@@ -7224,8 +7226,8 @@ const SvgCaretDown = ({
7224
7226
  const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
7225
7227
  return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "m26.708 12.708-10 10a1 1 0 0 1-1.415 0l-10-10A1 1 0 0 1 6 11h20a1 1 0 0 1 .707 1.707" }) });
7226
7228
  };
7227
- const ForwardRef$4C = forwardRef$1(SvgCaretDown);
7228
- const ForwardRef$4D = ForwardRef$4C;
7229
+ const ForwardRef$4K = forwardRef$1(SvgCaretDown);
7230
+ const ForwardRef$4L = ForwardRef$4K;
7229
7231
  const SvgCaretUp = ({
7230
7232
  fill: fillProp = "currentColor",
7231
7233
  stroke: strokeProp,
@@ -7316,8 +7318,8 @@ const SvgCheck = ({
7316
7318
  const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
7317
7319
  return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "m29.061 10.061-16 16a1.5 1.5 0 0 1-2.125 0l-7-7a1.504 1.504 0 0 1 2.125-2.125L12 22.875 26.939 7.939a1.502 1.502 0 1 1 2.125 2.125z" }) });
7318
7320
  };
7319
- const ForwardRef$4o = forwardRef$1(SvgCheck);
7320
- const ForwardRef$4p = ForwardRef$4o;
7321
+ const ForwardRef$4w = forwardRef$1(SvgCheck);
7322
+ const ForwardRef$4x = ForwardRef$4w;
7321
7323
  const SvgCheckCircle = ({
7322
7324
  fill: fillProp = "currentColor",
7323
7325
  stroke: strokeProp,
@@ -7330,8 +7332,8 @@ const SvgCheckCircle = ({
7330
7332
  const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
7331
7333
  return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M16 3a13 13 0 1 0 13 13A13.013 13.013 0 0 0 16 3m5.708 10.708-7 7a1 1 0 0 1-1.415 0l-3-3a1 1 0 0 1 1.415-1.415L14 18.586l6.293-6.293a1 1 0 0 1 1.415 1.415" }) });
7332
7334
  };
7333
- const ForwardRef$4m = forwardRef$1(SvgCheckCircle);
7334
- const ForwardRef$4n = ForwardRef$4m;
7335
+ const ForwardRef$4u = forwardRef$1(SvgCheckCircle);
7336
+ const ForwardRef$4v = ForwardRef$4u;
7335
7337
  const SvgChevronDown = ({
7336
7338
  fill: fillProp = "currentColor",
7337
7339
  stroke: strokeProp,
@@ -7357,8 +7359,8 @@ const SvgChevronLeft = ({
7357
7359
  const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
7358
7360
  return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M21.061 24.939a1.503 1.503 0 0 1-2.125 2.125l-10-10a1.5 1.5 0 0 1 0-2.125l10-10a1.503 1.503 0 0 1 2.125 2.125L12.125 16z" }) });
7359
7361
  };
7360
- const ForwardRef$4i = forwardRef$1(SvgChevronLeft);
7361
- const ForwardRef$4j = ForwardRef$4i;
7362
+ const ForwardRef$4q = forwardRef$1(SvgChevronLeft);
7363
+ const ForwardRef$4r = ForwardRef$4q;
7362
7364
  const SvgChevronRight = ({
7363
7365
  fill: fillProp = "currentColor",
7364
7366
  stroke: strokeProp,
@@ -7371,8 +7373,8 @@ const SvgChevronRight = ({
7371
7373
  const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
7372
7374
  return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "m23.061 17.061-10 10a1.503 1.503 0 0 1-2.125-2.125L19.875 16l-8.936-8.939a1.502 1.502 0 1 1 2.125-2.125l10 10a1.5 1.5 0 0 1-.003 2.125" }) });
7373
7375
  };
7374
- const ForwardRef$4g = forwardRef$1(SvgChevronRight);
7375
- const ForwardRef$4h = ForwardRef$4g;
7376
+ const ForwardRef$4o = forwardRef$1(SvgChevronRight);
7377
+ const ForwardRef$4p = ForwardRef$4o;
7376
7378
  const SvgChevronUp = ({
7377
7379
  fill: fillProp = "currentColor",
7378
7380
  stroke: strokeProp,
@@ -7398,8 +7400,8 @@ const SvgClock = ({
7398
7400
  const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
7399
7401
  return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M16 3a13 13 0 1 0 13 13A13.013 13.013 0 0 0 16 3m7 14h-7a1 1 0 0 1-1-1V9a1 1 0 0 1 2 0v6h6a1 1 0 0 1 0 2" }) });
7400
7402
  };
7401
- const ForwardRef$4c = forwardRef$1(SvgClock);
7402
- const ForwardRef$4d = ForwardRef$4c;
7403
+ const ForwardRef$4k = forwardRef$1(SvgClock);
7404
+ const ForwardRef$4l = ForwardRef$4k;
7403
7405
  const SvgClockCounterClockwise = ({
7404
7406
  fill: fillProp = "currentColor",
7405
7407
  stroke: strokeProp,
@@ -7451,8 +7453,21 @@ const SvgCode = ({
7451
7453
  const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
7452
7454
  return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M8.96 12.153 4.342 16l4.618 3.848a1.5 1.5 0 1 1-1.92 2.305l-6-5a1.5 1.5 0 0 1 0-2.305l6-5a1.5 1.5 0 0 1 1.92 2.304m22 2.694-6-5a1.5 1.5 0 1 0-1.92 2.306L27.658 16l-4.618 3.848a1.5 1.5 0 1 0 1.92 2.305l6-5a1.5 1.5 0 0 0 0-2.305M20.512 3.59a1.5 1.5 0 0 0-1.922.898l-8 22a1.5 1.5 0 0 0 2.82 1.024l8-22a1.5 1.5 0 0 0-.898-1.922" }) });
7453
7455
  };
7454
- const ForwardRef$44 = forwardRef$1(SvgCode);
7455
- const ForwardRef$45 = ForwardRef$44;
7456
+ const ForwardRef$4c = forwardRef$1(SvgCode);
7457
+ const ForwardRef$4d = ForwardRef$4c;
7458
+ const SvgCodeBlock = ({
7459
+ fill: fillProp = "currentColor",
7460
+ stroke: strokeProp,
7461
+ ...props
7462
+ }, ref) => {
7463
+ const {
7464
+ colors
7465
+ } = useTheme();
7466
+ const fill = fillProp && fillProp in colors ? colors[fillProp] : fillProp;
7467
+ const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
7468
+ return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, viewBox: "0 0 256 256", fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M200 40h-32a16 16 0 0 0-16-16H32a16 16 0 0 0-16 16v80a16 16 0 0 0 16 16h8v64a16 16 0 0 0 16 16h144a16 16 0 0 0 16-16V56a16 16 0 0 0-16-16m-93.66 21.66a8 8 0 0 1 11.32-11.32l24 24a8 8 0 0 1 0 11.32l-24 24a8 8 0 0 1-11.32-11.32L124.69 80Zm-64 24a8 8 0 0 1 0-11.32l24-24a8 8 0 0 1 11.32 11.32L59.31 80l18.35 18.34a8 8 0 0 1-11.32 11.32ZM200 200H56v-64h96a16 16 0 0 0 16-16V56h32Z" }) });
7469
+ };
7470
+ forwardRef$1(SvgCodeBlock);
7456
7471
  const SvgCoffee = ({
7457
7472
  fill: fillProp = "currentColor",
7458
7473
  stroke: strokeProp,
@@ -7491,8 +7506,8 @@ const SvgCollapse = ({
7491
7506
  const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
7492
7507
  return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M18.5 12V6a1.5 1.5 0 1 1 3 0v4.5H26a1.5 1.5 0 1 1 0 3h-6a1.5 1.5 0 0 1-1.5-1.5M12 18.5H6a1.5 1.5 0 1 0 0 3h4.5V26a1.5 1.5 0 1 0 3 0v-6a1.5 1.5 0 0 0-1.5-1.5m14 0h-6a1.5 1.5 0 0 0-1.5 1.5v6a1.5 1.5 0 1 0 3 0v-4.5H26a1.5 1.5 0 1 0 0-3m-14-14A1.5 1.5 0 0 0 10.5 6v4.5H6a1.5 1.5 0 1 0 0 3h6a1.5 1.5 0 0 0 1.5-1.5V6A1.5 1.5 0 0 0 12 4.5" }) });
7493
7508
  };
7494
- const ForwardRef$3_ = forwardRef$1(SvgCollapse);
7495
- const ForwardRef$3$ = ForwardRef$3_;
7509
+ const ForwardRef$44 = forwardRef$1(SvgCollapse);
7510
+ const ForwardRef$45 = ForwardRef$44;
7496
7511
  const SvgCommand = ({
7497
7512
  fill: fillProp = "currentColor",
7498
7513
  stroke: strokeProp,
@@ -7531,8 +7546,8 @@ const SvgCross = ({
7531
7546
  const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
7532
7547
  return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M26.061 23.939a1.503 1.503 0 0 1-2.125 2.125L16 18.125l-7.939 7.936a1.503 1.503 0 1 1-2.125-2.125L13.875 16 5.939 8.061a1.503 1.503 0 1 1 2.125-2.125L16 13.875l7.939-7.94a1.502 1.502 0 1 1 2.125 2.125L18.125 16z" }) });
7533
7548
  };
7534
- const ForwardRef$3U = forwardRef$1(SvgCross);
7535
- const ForwardRef$3V = ForwardRef$3U;
7549
+ const ForwardRef$3_ = forwardRef$1(SvgCross);
7550
+ const ForwardRef$3$ = ForwardRef$3_;
7536
7551
  const SvgCrossCircle = ({
7537
7552
  fill: fillProp = "currentColor",
7538
7553
  stroke: strokeProp,
@@ -7704,8 +7719,8 @@ const SvgExpand = ({
7704
7719
  const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
7705
7720
  return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M27.5 6v5a1.5 1.5 0 1 1-3 0V7.5H21a1.5 1.5 0 0 1 0-3h5A1.5 1.5 0 0 1 27.5 6M11 24.5H7.5V21a1.5 1.5 0 0 0-3 0v5A1.5 1.5 0 0 0 6 27.5h5a1.5 1.5 0 1 0 0-3m15-5a1.5 1.5 0 0 0-1.5 1.5v3.5H21a1.5 1.5 0 1 0 0 3h5a1.5 1.5 0 0 0 1.5-1.5v-5a1.5 1.5 0 0 0-1.5-1.5m-15-15H6A1.5 1.5 0 0 0 4.5 6v5a1.5 1.5 0 0 0 3 0V7.5H11a1.5 1.5 0 0 0 0-3" }) });
7706
7721
  };
7707
- const ForwardRef$3u = forwardRef$1(SvgExpand);
7708
- const ForwardRef$3v = ForwardRef$3u;
7722
+ const ForwardRef$3A = forwardRef$1(SvgExpand);
7723
+ const ForwardRef$3B = ForwardRef$3A;
7709
7724
  const SvgExternalLink = ({
7710
7725
  fill: fillProp = "currentColor",
7711
7726
  stroke: strokeProp,
@@ -7718,8 +7733,8 @@ const SvgExternalLink = ({
7718
7733
  const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
7719
7734
  return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M28.5 13a1.5 1.5 0 1 1-3 0V8.625l-7.439 7.439a1.503 1.503 0 1 1-2.125-2.125L23.375 6.5H19a1.5 1.5 0 0 1 0-3h8A1.5 1.5 0 0 1 28.5 5zM23 16a1.5 1.5 0 0 0-1.5 1.5v8h-15v-15h8a1.5 1.5 0 1 0 0-3H6A2.5 2.5 0 0 0 3.5 10v16A2.5 2.5 0 0 0 6 28.5h16a2.5 2.5 0 0 0 2.5-2.5v-8.5A1.5 1.5 0 0 0 23 16" }) });
7720
7735
  };
7721
- const ForwardRef$3s = forwardRef$1(SvgExternalLink);
7722
- const ForwardRef$3t = ForwardRef$3s;
7736
+ const ForwardRef$3y = forwardRef$1(SvgExternalLink);
7737
+ const ForwardRef$3z = ForwardRef$3y;
7723
7738
  const SvgEye = ({
7724
7739
  fill: fillProp = "currentColor",
7725
7740
  stroke: strokeProp,
@@ -7732,8 +7747,8 @@ const SvgEye = ({
7732
7747
  const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
7733
7748
  return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M30.914 15.595c-.044-.099-1.103-2.447-3.457-4.801C24.322 7.657 20.36 6 16 6S7.679 7.657 4.542 10.794C2.19 13.148 1.125 15.5 1.086 15.595a1 1 0 0 0 0 .812c.044.1 1.103 2.447 3.456 4.8C7.68 24.344 11.64 26 16 26s8.321-1.657 11.458-4.792c2.353-2.354 3.412-4.702 3.456-4.8a1 1 0 0 0 0-.813M16 21a5 5 0 1 1 0-10 5 5 0 0 1 0 10" }) });
7734
7749
  };
7735
- const ForwardRef$3q = forwardRef$1(SvgEye);
7736
- const ForwardRef$3r = ForwardRef$3q;
7750
+ const ForwardRef$3w = forwardRef$1(SvgEye);
7751
+ const ForwardRef$3x = ForwardRef$3w;
7737
7752
  const SvgEyeStriked = ({
7738
7753
  fill: fillProp = "currentColor",
7739
7754
  stroke: strokeProp,
@@ -7786,6 +7801,19 @@ const SvgFile = ({
7786
7801
  return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "m26.708 10.293-7-7A1 1 0 0 0 19 3H7a2 2 0 0 0-2 2v22a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V11a1 1 0 0 0-.293-.707M19 11V5.5l5.5 5.5z" }) });
7787
7802
  };
7788
7803
  forwardRef$1(SvgFile);
7804
+ const SvgFileCsv = ({
7805
+ fill: fillProp = "currentColor",
7806
+ stroke: strokeProp,
7807
+ ...props
7808
+ }, ref) => {
7809
+ const {
7810
+ colors
7811
+ } = useTheme();
7812
+ const fill = fillProp && fillProp in colors ? colors[fillProp] : fillProp;
7813
+ const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
7814
+ return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, viewBox: "0 0 256 256", fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "m213.66 82.34-56-56A8 8 0 0 0 152 24H56a16 16 0 0 0-16 16v76a4 4 0 0 0 4 4h168a4 4 0 0 0 4-4V88a8 8 0 0 0-2.34-5.66M152 88V44l44 44ZM48 180c0 11 7.18 20 16 20a14.18 14.18 0 0 0 10.06-4.5 8.21 8.21 0 0 1 10.9-.91 8 8 0 0 1 .82 11.81A30.06 30.06 0 0 1 64 216c-17.64 0-32-16.15-32-36s14.36-36 32-36a30 30 0 0 1 21.39 9.19 8.26 8.26 0 0 1 .73 11.09 8 8 0 0 1-11.9.38A14.17 14.17 0 0 0 64 160c-8.82 0-16 9-16 20m103.81 16.31a20.82 20.82 0 0 1-9.19 15.23C137.43 215 131 216 125.13 216a61.1 61.1 0 0 1-15.13-2 8 8 0 1 1 4.3-15.41c4.38 1.2 14.95 2.7 19.55-.36.88-.59 1.83-1.52 2.14-3.93.35-2.67-.71-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.11a20.56 20.56 0 0 1 9-14.95c11.84-8 30.71-3.31 32.83-2.76a8 8 0 0 1-4.07 15.48c-4.49-1.17-15.23-2.56-19.83.56a4.54 4.54 0 0 0-2 3.67c-.12.9-.14 1.09 1.11 1.9 2.31 1.49 6.45 2.68 10.45 3.84 9.79 2.83 26.35 7.66 24.11 24.97M215.42 155l-19.89 55.68a8 8 0 0 1-15.06 0L160.58 155a8.21 8.21 0 0 1 4.5-10.45 8 8 0 0 1 10.45 4.76l12.47 34.9 12.47-34.9a8 8 0 0 1 10.45-4.76 8.23 8.23 0 0 1 4.5 10.45" }) });
7815
+ };
7816
+ forwardRef$1(SvgFileCsv);
7789
7817
  const SvgFileError = ({
7790
7818
  fill: fillProp = "currentColor",
7791
7819
  stroke: strokeProp,
@@ -7812,6 +7840,32 @@ const SvgFilePdf = ({
7812
7840
  return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M6 15h20a1 1 0 0 0 1-1v-3a1 1 0 0 0-.293-.707l-7-7A1 1 0 0 0 19 3H7a2 2 0 0 0-2 2v9a1 1 0 0 0 1 1m13-9.5 5.5 5.5H19zM28 19a1 1 0 0 1-1 1h-3v2h2a1 1 0 0 1 0 2h-2v2a1 1 0 0 1-2 0v-7a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1M8 18H6a1 1 0 0 0-1 1v7a1 1 0 1 0 2 0v-1h1a3.5 3.5 0 1 0 0-7m0 5H7v-3h1a1.5 1.5 0 1 1 0 3m8-5h-2a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h2a4.5 4.5 0 1 0 0-9m0 7h-1v-5h1a2.5 2.5 0 0 1 0 5" }) });
7813
7841
  };
7814
7842
  forwardRef$1(SvgFilePdf);
7843
+ const SvgFileXls = ({
7844
+ fill: fillProp = "currentColor",
7845
+ stroke: strokeProp,
7846
+ ...props
7847
+ }, ref) => {
7848
+ const {
7849
+ colors
7850
+ } = useTheme();
7851
+ const fill = fillProp && fillProp in colors ? colors[fillProp] : fillProp;
7852
+ const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
7853
+ return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, viewBox: "0 0 256 256", fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M44 120h168a4 4 0 0 0 4-4V88a8 8 0 0 0-2.34-5.66l-56-56A8 8 0 0 0 152 24H56a16 16 0 0 0-16 16v76a4 4 0 0 0 4 4m108-76 44 44h-44Zm4 164.53a8.18 8.18 0 0 1-8.25 7.47H120a8 8 0 0 1-8-8v-55.73a8.18 8.18 0 0 1 7.47-8.25 8 8 0 0 1 8.53 8v48h20a8 8 0 0 1 8 8.51m-61.49-51.88L77.83 180l16.68 23.35a8 8 0 0 1-13 9.3L68 193.76l-13.49 18.89a8 8 0 1 1-13-9.3L58.17 180l-16.68-23.35a8 8 0 0 1 2.3-11.46 8.19 8.19 0 0 1 10.88 2.38L68 166.24l13.49-18.89a8 8 0 0 1 13 9.3Zm121.28 39.66a20.81 20.81 0 0 1-9.18 15.23c-5.19 3.46-11.67 4.46-17.49 4.46a60.6 60.6 0 0 1-15.19-2 8 8 0 0 1 4.31-15.41c4.38 1.21 14.94 2.71 19.54-.35.89-.6 1.84-1.52 2.15-3.93.34-2.67-.72-4.1-12.78-7.59-9.35-2.7-25-7.23-23-23.12a20.58 20.58 0 0 1 8.95-14.94c11.84-8 30.72-3.31 32.83-2.76a8 8 0 0 1-4.07 15.48c-4.48-1.17-15.22-2.56-19.82.56a4.54 4.54 0 0 0-2 3.67c-.11.9-.13 1.08 1.12 1.9 2.31 1.49 6.45 2.68 10.45 3.84 9.87 2.82 26.39 7.65 24.18 24.96" }) });
7854
+ };
7855
+ forwardRef$1(SvgFileXls);
7856
+ const SvgFileZip = ({
7857
+ fill: fillProp = "currentColor",
7858
+ stroke: strokeProp,
7859
+ ...props
7860
+ }, ref) => {
7861
+ const {
7862
+ colors
7863
+ } = useTheme();
7864
+ const fill = fillProp && fillProp in colors ? colors[fillProp] : fillProp;
7865
+ const stroke = strokeProp && strokeProp in colors ? colors[strokeProp] : strokeProp;
7866
+ return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, viewBox: "0 0 256 256", fill, stroke, ref, ...props, children: /* @__PURE__ */ jsx("path", { d: "M184 144h-16a8 8 0 0 0-8 8v55.73a8.17 8.17 0 0 0 7.47 8.25 8 8 0 0 0 8.53-8v-8h7.4c15.24 0 28.14-11.92 28.59-27.15A28 28 0 0 0 184 144m-.35 40H176v-24h8a12 12 0 0 1 12 13.16A12.25 12.25 0 0 1 183.65 184M136 152v55.73a8.17 8.17 0 0 1-7.47 8.25 8 8 0 0 1-8.53-8v-55.71a8.17 8.17 0 0 1 7.47-8.25A8 8 0 0 1 136 152m-40 56.53a8.17 8.17 0 0 1-8.27 7.47h-31.5a8.27 8.27 0 0 1-6-2.5 8 8 0 0 1-1.18-9.5l25.16-44H56.27a8.17 8.17 0 0 1-8.27-7.47 8 8 0 0 1 8-8.53h31.77a8.27 8.27 0 0 1 6 2.5A8 8 0 0 1 95 156l-25.21 44H88a8 8 0 0 1 8 8.53M213.66 82.34l-56-56A8 8 0 0 0 152 24H56a16 16 0 0 0-16 16v76a4 4 0 0 0 4 4h168a4 4 0 0 0 4-4V88a8 8 0 0 0-2.34-5.66M152 88V44l44 44Z" }) });
7867
+ };
7868
+ forwardRef$1(SvgFileZip);
7815
7869
  const SvgFilter = ({
7816
7870
  fill: fillProp = "currentColor",
7817
7871
  stroke: strokeProp,
@@ -9609,9 +9663,9 @@ var handleScroll$1 = function(axis, endTarget, event, sourceDelta, noOverscroll)
9609
9663
  !targetInLock && target !== document.body || // self content
9610
9664
  targetInLock && (endTarget.contains(target) || endTarget === target)
9611
9665
  );
9612
- if (isDeltaPositive && (availableScroll === 0 || !noOverscroll)) {
9666
+ if (isDeltaPositive && (availableScroll === 0 || false)) {
9613
9667
  shouldCancelScroll = true;
9614
- } else if (!isDeltaPositive && (availableScrollTop === 0 || !noOverscroll)) {
9668
+ } else if (!isDeltaPositive && (availableScrollTop === 0 || false)) {
9615
9669
  shouldCancelScroll = true;
9616
9670
  }
9617
9671
  return shouldCancelScroll;
@@ -9695,7 +9749,7 @@ function RemoveScrollSideCar$1(props) {
9695
9749
  return true;
9696
9750
  }
9697
9751
  var cancelingAxis = activeAxis.current || currentAxis;
9698
- return handleScroll$1(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY, true);
9752
+ return handleScroll$1(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY);
9699
9753
  }, []);
9700
9754
  var shouldPrevent = React.useCallback(function(_event) {
9701
9755
  var event = _event;
@@ -11761,7 +11815,7 @@ function isTopLayer(element) {
11761
11815
  function isContainingBlock(elementOrCss) {
11762
11816
  const webkit2 = isWebKit();
11763
11817
  const css2 = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
11764
- return css2.transform !== "none" || css2.perspective !== "none" || (css2.containerType ? css2.containerType !== "normal" : false) || !webkit2 && (css2.backdropFilter ? css2.backdropFilter !== "none" : false) || !webkit2 && (css2.filter ? css2.filter !== "none" : false) || ["transform", "perspective", "filter"].some((value) => (css2.willChange || "").includes(value)) || ["paint", "layout", "strict", "content"].some((value) => (css2.contain || "").includes(value));
11818
+ return ["transform", "translate", "scale", "rotate", "perspective"].some((value) => css2[value] ? css2[value] !== "none" : false) || (css2.containerType ? css2.containerType !== "normal" : false) || !webkit2 && (css2.backdropFilter ? css2.backdropFilter !== "none" : false) || !webkit2 && (css2.filter ? css2.filter !== "none" : false) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((value) => (css2.willChange || "").includes(value)) || ["paint", "layout", "strict", "content"].some((value) => (css2.contain || "").includes(value));
11765
11819
  }
11766
11820
  function getContainingBlock(element) {
11767
11821
  let currentNode = getParentNode(element);
@@ -12267,6 +12321,9 @@ const platform = {
12267
12321
  isElement,
12268
12322
  isRTL
12269
12323
  };
12324
+ function rectsAreEqual(a2, b2) {
12325
+ return a2.x === b2.x && a2.y === b2.y && a2.width === b2.width && a2.height === b2.height;
12326
+ }
12270
12327
  function observeMove(element, onMove) {
12271
12328
  let io = null;
12272
12329
  let timeoutId;
@@ -12285,12 +12342,13 @@ function observeMove(element, onMove) {
12285
12342
  threshold = 1;
12286
12343
  }
12287
12344
  cleanup();
12345
+ const elementRectForRootMargin = element.getBoundingClientRect();
12288
12346
  const {
12289
12347
  left,
12290
12348
  top: top2,
12291
12349
  width,
12292
12350
  height
12293
- } = element.getBoundingClientRect();
12351
+ } = elementRectForRootMargin;
12294
12352
  if (!skip) {
12295
12353
  onMove();
12296
12354
  }
@@ -12321,6 +12379,9 @@ function observeMove(element, onMove) {
12321
12379
  refresh(false, ratio);
12322
12380
  }
12323
12381
  }
12382
+ if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
12383
+ refresh();
12384
+ }
12324
12385
  isFirstUpdate = false;
12325
12386
  }
12326
12387
  try {
@@ -12384,7 +12445,7 @@ function autoUpdate(reference, floating, update, options) {
12384
12445
  }
12385
12446
  function frameLoop() {
12386
12447
  const nextRefRect = getBoundingClientRect(reference);
12387
- if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) {
12448
+ if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
12388
12449
  update();
12389
12450
  }
12390
12451
  prevRefRect = nextRefRect;
@@ -12785,9 +12846,9 @@ var handleScroll = function(axis, endTarget, event, sourceDelta, noOverscroll) {
12785
12846
  !targetInLock && target !== document.body || // self content
12786
12847
  targetInLock && (endTarget.contains(target) || endTarget === target)
12787
12848
  );
12788
- if (isDeltaPositive && (Math.abs(availableScroll) < 1 || !noOverscroll)) {
12849
+ if (isDeltaPositive && (Math.abs(availableScroll) < 1 || false)) {
12789
12850
  shouldCancelScroll = true;
12790
- } else if (!isDeltaPositive && (Math.abs(availableScrollTop) < 1 || !noOverscroll)) {
12851
+ } else if (!isDeltaPositive && (Math.abs(availableScrollTop) < 1 || false)) {
12791
12852
  shouldCancelScroll = true;
12792
12853
  }
12793
12854
  return shouldCancelScroll;
@@ -12869,7 +12930,7 @@ function RemoveScrollSideCar(props) {
12869
12930
  return true;
12870
12931
  }
12871
12932
  var cancelingAxis = activeAxis.current || currentAxis;
12872
- return handleScroll(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY, true);
12933
+ return handleScroll(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY);
12873
12934
  }, []);
12874
12935
  var shouldPrevent = React.useCallback(function(_event) {
12875
12936
  var event = _event;
@@ -16512,11 +16573,11 @@ class HighlightBuilder {
16512
16573
  for (let i = 0, pos = start; ; i++) {
16513
16574
  let next = i < mounted.overlay.length ? mounted.overlay[i] : null;
16514
16575
  let nextPos = next ? next.from + start : end;
16515
- let rangeFrom = Math.max(from, pos), rangeTo = Math.min(to, nextPos);
16516
- if (rangeFrom < rangeTo && hasChild2) {
16517
- while (cursor2.from < rangeTo) {
16518
- this.highlightRange(cursor2, rangeFrom, rangeTo, inheritedClass, highlighters);
16519
- this.startSpan(Math.min(rangeTo, cursor2.to), cls);
16576
+ let rangeFrom2 = Math.max(from, pos), rangeTo2 = Math.min(to, nextPos);
16577
+ if (rangeFrom2 < rangeTo2 && hasChild2) {
16578
+ while (cursor2.from < rangeTo2) {
16579
+ this.highlightRange(cursor2, rangeFrom2, rangeTo2, inheritedClass, highlighters);
16580
+ this.startSpan(Math.min(rangeTo2, cursor2.to), cls);
16520
16581
  if (cursor2.to >= nextPos || !cursor2.nextSibling())
16521
16582
  break;
16522
16583
  }
@@ -16963,30 +17024,101 @@ const jsonHighlighting = styleTags({
16963
17024
  "True False": tags.bool,
16964
17025
  PropertyName: tags.propertyName,
16965
17026
  Null: tags.null,
16966
- ",": tags.separator,
17027
+ ", :": tags.separator,
16967
17028
  "[ ]": tags.squareBracket,
16968
17029
  "{ }": tags.brace
16969
17030
  });
16970
17031
  const parser = LRParser.deserialize({
16971
17032
  version: 14,
16972
- states: "$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",
16973
- stateData: "#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",
16974
- goto: "!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",
16975
- nodeNames: "⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",
17033
+ states: "$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",
17034
+ stateData: "#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",
17035
+ goto: "!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",
17036
+ nodeNames: "⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",
16976
17037
  maxTerm: 25,
16977
17038
  nodeProps: [
16978
17039
  ["isolate", -2, 6, 11, ""],
16979
- ["openedBy", 7, "{", 12, "["],
16980
- ["closedBy", 8, "}", 13, "]"]
17040
+ ["openedBy", 7, "{", 14, "["],
17041
+ ["closedBy", 8, "}", 15, "]"]
16981
17042
  ],
16982
17043
  propSources: [jsonHighlighting],
16983
17044
  skippedNodes: [0],
16984
17045
  repeatNodeCount: 2,
16985
- tokenData: "(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",
17046
+ tokenData: "(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",
16986
17047
  tokenizers: [0],
16987
17048
  topRules: { "JsonText": [0, 1] },
16988
17049
  tokenPrec: 0
16989
17050
  });
17051
+ let rangeFrom = [], rangeTo = [];
17052
+ (() => {
17053
+ let numbers = "lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((s2) => s2 ? parseInt(s2, 36) : 1);
17054
+ for (let i = 0, n2 = 0; i < numbers.length; i++)
17055
+ (i % 2 ? rangeTo : rangeFrom).push(n2 = n2 + numbers[i]);
17056
+ })();
17057
+ function isExtendingChar(code) {
17058
+ if (code < 768) return false;
17059
+ for (let from = 0, to = rangeFrom.length; ; ) {
17060
+ let mid = from + to >> 1;
17061
+ if (code < rangeFrom[mid]) to = mid;
17062
+ else if (code >= rangeTo[mid]) from = mid + 1;
17063
+ else return true;
17064
+ if (from == to) return false;
17065
+ }
17066
+ }
17067
+ function isRegionalIndicator(code) {
17068
+ return code >= 127462 && code <= 127487;
17069
+ }
17070
+ const ZWJ = 8205;
17071
+ function findClusterBreak$1(str, pos, forward = true, includeExtending = true) {
17072
+ return (forward ? nextClusterBreak : prevClusterBreak)(str, pos, includeExtending);
17073
+ }
17074
+ function nextClusterBreak(str, pos, includeExtending) {
17075
+ if (pos == str.length) return pos;
17076
+ if (pos && surrogateLow$1(str.charCodeAt(pos)) && surrogateHigh$1(str.charCodeAt(pos - 1))) pos--;
17077
+ let prev = codePointAt$1(str, pos);
17078
+ pos += codePointSize$1(prev);
17079
+ while (pos < str.length) {
17080
+ let next = codePointAt$1(str, pos);
17081
+ if (prev == ZWJ || next == ZWJ || includeExtending && isExtendingChar(next)) {
17082
+ pos += codePointSize$1(next);
17083
+ prev = next;
17084
+ } else if (isRegionalIndicator(next)) {
17085
+ let countBefore = 0, i = pos - 2;
17086
+ while (i >= 0 && isRegionalIndicator(codePointAt$1(str, i))) {
17087
+ countBefore++;
17088
+ i -= 2;
17089
+ }
17090
+ if (countBefore % 2 == 0) break;
17091
+ else pos += 2;
17092
+ } else {
17093
+ break;
17094
+ }
17095
+ }
17096
+ return pos;
17097
+ }
17098
+ function prevClusterBreak(str, pos, includeExtending) {
17099
+ while (pos > 0) {
17100
+ let found = nextClusterBreak(str, pos - 2, includeExtending);
17101
+ if (found < pos) return found;
17102
+ pos--;
17103
+ }
17104
+ return 0;
17105
+ }
17106
+ function codePointAt$1(str, pos) {
17107
+ let code0 = str.charCodeAt(pos);
17108
+ if (!surrogateHigh$1(code0) || pos + 1 == str.length) return code0;
17109
+ let code1 = str.charCodeAt(pos + 1);
17110
+ if (!surrogateLow$1(code1)) return code0;
17111
+ return (code0 - 55296 << 10) + (code1 - 56320) + 65536;
17112
+ }
17113
+ function surrogateLow$1(ch) {
17114
+ return ch >= 56320 && ch < 57344;
17115
+ }
17116
+ function surrogateHigh$1(ch) {
17117
+ return ch >= 55296 && ch < 56320;
17118
+ }
17119
+ function codePointSize$1(code) {
17120
+ return code < 65536 ? 1 : 2;
17121
+ }
16990
17122
  class Text {
16991
17123
  /**
16992
17124
  Get the line description around the given position.
@@ -17537,58 +17669,8 @@ function clip(text, from, to) {
17537
17669
  from = Math.max(0, Math.min(text.length, from));
17538
17670
  return [from, Math.max(from, Math.min(text.length, to))];
17539
17671
  }
17540
- let extend = /* @__PURE__ */ "lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((s2) => s2 ? parseInt(s2, 36) : 1);
17541
- for (let i = 1; i < extend.length; i++)
17542
- extend[i] += extend[i - 1];
17543
- function isExtendingChar(code) {
17544
- for (let i = 1; i < extend.length; i += 2)
17545
- if (extend[i] > code)
17546
- return extend[i - 1] <= code;
17547
- return false;
17548
- }
17549
- function isRegionalIndicator(code) {
17550
- return code >= 127462 && code <= 127487;
17551
- }
17552
- const ZWJ = 8205;
17553
17672
  function findClusterBreak(str, pos, forward = true, includeExtending = true) {
17554
- return (forward ? nextClusterBreak : prevClusterBreak)(str, pos, includeExtending);
17555
- }
17556
- function nextClusterBreak(str, pos, includeExtending) {
17557
- if (pos == str.length)
17558
- return pos;
17559
- if (pos && surrogateLow(str.charCodeAt(pos)) && surrogateHigh(str.charCodeAt(pos - 1)))
17560
- pos--;
17561
- let prev = codePointAt(str, pos);
17562
- pos += codePointSize(prev);
17563
- while (pos < str.length) {
17564
- let next = codePointAt(str, pos);
17565
- if (prev == ZWJ || next == ZWJ || includeExtending && isExtendingChar(next)) {
17566
- pos += codePointSize(next);
17567
- prev = next;
17568
- } else if (isRegionalIndicator(next)) {
17569
- let countBefore = 0, i = pos - 2;
17570
- while (i >= 0 && isRegionalIndicator(codePointAt(str, i))) {
17571
- countBefore++;
17572
- i -= 2;
17573
- }
17574
- if (countBefore % 2 == 0)
17575
- break;
17576
- else
17577
- pos += 2;
17578
- } else {
17579
- break;
17580
- }
17581
- }
17582
- return pos;
17583
- }
17584
- function prevClusterBreak(str, pos, includeExtending) {
17585
- while (pos > 0) {
17586
- let found = nextClusterBreak(str, pos - 2, includeExtending);
17587
- if (found < pos)
17588
- return found;
17589
- pos--;
17590
- }
17591
- return 0;
17673
+ return findClusterBreak$1(str, pos, forward, includeExtending);
17592
17674
  }
17593
17675
  function surrogateLow(ch) {
17594
17676
  return ch >= 56320 && ch < 57344;
@@ -17718,7 +17800,7 @@ class ChangeDesc {
17718
17800
  Map this description, which should start with the same document
17719
17801
  as `other`, over another set of changes, so that it can be
17720
17802
  applied after it. When `before` is true, map as if the changes
17721
- in `other` happened before the ones in `this`.
17803
+ in `this` happened before the ones in `other`.
17722
17804
  */
17723
17805
  mapDesc(other, before = false) {
17724
17806
  return other.empty ? this : mapSet(this, other, before);
@@ -18019,7 +18101,7 @@ function addSection(sections, len, ins, forceJoin = false) {
18019
18101
  let last = sections.length - 2;
18020
18102
  if (last >= 0 && ins <= 0 && ins == sections[last + 1])
18021
18103
  sections[last] += len;
18022
- else if (len == 0 && sections[last] == 0)
18104
+ else if (last >= 0 && len == 0 && sections[last] == 0)
18023
18105
  sections[last + 1] += ins;
18024
18106
  else if (forceJoin) {
18025
18107
  sections[last] += len;
@@ -18068,7 +18150,9 @@ function mapSet(setA, setB, before, mkSet = false) {
18068
18150
  let sections = [], insert2 = mkSet ? [] : null;
18069
18151
  let a2 = new SectionIter(setA), b2 = new SectionIter(setB);
18070
18152
  for (let inserted = -1; ; ) {
18071
- if (a2.ins == -1 && b2.ins == -1) {
18153
+ if (a2.done && b2.len || b2.done && a2.len) {
18154
+ throw new Error("Mismatched change set lengths");
18155
+ } else if (a2.ins == -1 && b2.ins == -1) {
18072
18156
  let len = Math.min(a2.len, b2.len);
18073
18157
  addSection(sections, len, -1);
18074
18158
  a2.forward(len);
@@ -20299,7 +20383,7 @@ function compare(a2, startA, b2, startB, length, comparator) {
20299
20383
  let endB = startB + length;
20300
20384
  let pos = startB, dPos = startB - startA;
20301
20385
  for (; ; ) {
20302
- let diff = a2.to + dPos - b2.to || a2.endSide - b2.endSide;
20386
+ let dEnd = a2.to + dPos - b2.to, diff = dEnd || a2.endSide - b2.endSide;
20303
20387
  let end = diff < 0 ? a2.to + dPos : b2.to, clipEnd = Math.min(end, endB);
20304
20388
  if (a2.point || b2.point) {
20305
20389
  if (!(a2.point && b2.point && (a2.point == b2.point || a2.point.eq(b2.point)) && sameValues(a2.activeForPoint(a2.to), b2.activeForPoint(b2.to))))
@@ -20310,6 +20394,8 @@ function compare(a2, startA, b2, startB, length, comparator) {
20310
20394
  }
20311
20395
  if (end > endB)
20312
20396
  break;
20397
+ if ((dEnd || a2.openEnd != b2.openEnd) && comparator.boundChange)
20398
+ comparator.boundChange(end);
20313
20399
  pos = end;
20314
20400
  if (diff <= 0)
20315
20401
  a2.next();
@@ -20346,7 +20432,7 @@ function findMinIndex(value, array) {
20346
20432
  }
20347
20433
  function countColumn(string2, tabSize, to = string2.length) {
20348
20434
  let n2 = 0;
20349
- for (let i = 0; i < to; ) {
20435
+ for (let i = 0; i < to && i < string2.length; ) {
20350
20436
  if (string2.charCodeAt(i) == 9) {
20351
20437
  n2 += tabSize - n2 % tabSize;
20352
20438
  i++;
@@ -20998,7 +21084,7 @@ class ContentView {
20998
21084
  child.reuseDOM(next);
20999
21085
  }
21000
21086
  child.sync(view, track);
21001
- child.flags &= ~7;
21087
+ child.flags &= -8;
21002
21088
  }
21003
21089
  next = prev ? prev.nextSibling : parent.firstChild;
21004
21090
  if (track && !track.written && track.node == parent && next != child.dom)
@@ -21020,7 +21106,7 @@ class ContentView {
21020
21106
  for (let child of this.children)
21021
21107
  if (child.flags & 7) {
21022
21108
  child.sync(view, track);
21023
- child.flags &= ~7;
21109
+ child.flags &= -8;
21024
21110
  }
21025
21111
  }
21026
21112
  }
@@ -23044,6 +23130,15 @@ class ViewUpdate {
23044
23130
  return (this.flags & 4) > 0;
23045
23131
  }
23046
23132
  /**
23133
+ Returns true when
23134
+ [`viewportChanged`](https://codemirror.net/6/docs/ref/#view.ViewUpdate.viewportChanged) is true
23135
+ and the viewport change is not just the result of mapping it in
23136
+ response to document changes.
23137
+ */
23138
+ get viewportMoved() {
23139
+ return (this.flags & 8) > 0;
23140
+ }
23141
+ /**
23047
23142
  Indicates whether the height of a block element in the editor
23048
23143
  changed in this update.
23049
23144
  */
@@ -23055,7 +23150,7 @@ class ViewUpdate {
23055
23150
  editor, or elements within the editor, changed.
23056
23151
  */
23057
23152
  get geometryChanged() {
23058
- return this.docChanged || (this.flags & (8 | 2)) > 0;
23153
+ return this.docChanged || (this.flags & (16 | 2)) > 0;
23059
23154
  }
23060
23155
  /**
23061
23156
  True when this update indicates a focus change.
@@ -23162,13 +23257,13 @@ class DocView extends ContentView {
23162
23257
  this.dom.style.flexBasis = this.minWidth ? this.minWidth + "px" : "";
23163
23258
  let track = browser.chrome || browser.ios ? { node: observer.selectionRange.focusNode, written: false } : void 0;
23164
23259
  this.sync(this.view, track);
23165
- this.flags &= ~7;
23260
+ this.flags &= -8;
23166
23261
  if (track && (track.written || observer.selectionRange.focusNode != track.node))
23167
23262
  this.forceSelection = true;
23168
23263
  this.dom.style.height = "";
23169
23264
  });
23170
23265
  this.markedForComposition.forEach(
23171
- (cView) => cView.flags &= ~8
23266
+ (cView) => cView.flags &= -9
23172
23267
  /* ViewFlag.Composition */
23173
23268
  );
23174
23269
  let gaps = [];
@@ -23257,7 +23352,7 @@ class DocView extends ContentView {
23257
23352
  if (mustRead || !this.view.observer.selectionRange.focusNode)
23258
23353
  this.view.observer.readSelectionRange();
23259
23354
  let activeElt = this.view.root.activeElement, focused = activeElt == this.dom;
23260
- let selectionNotFocus = !focused && hasSelection(this.dom, this.view.observer.selectionRange) && !(activeElt && this.dom.contains(activeElt));
23355
+ let selectionNotFocus = !focused && !(this.view.state.facet(editable) || this.dom.tabIndex > -1) && hasSelection(this.dom, this.view.observer.selectionRange) && !(activeElt && this.dom.contains(activeElt));
23261
23356
  if (!(focused || fromPointer || selectionNotFocus))
23262
23357
  return;
23263
23358
  let force = this.forceSelection;
@@ -23655,6 +23750,9 @@ let DecorationComparator$1 = class DecorationComparator {
23655
23750
  comparePoint(from, to) {
23656
23751
  addRange(from, to, this.changes);
23657
23752
  }
23753
+ boundChange(pos) {
23754
+ addRange(pos, pos, this.changes);
23755
+ }
23658
23756
  };
23659
23757
  function findChangedDeco(a2, b2, diff) {
23660
23758
  let comp = new DecorationComparator$1();
@@ -24182,16 +24280,16 @@ function applyDOMChange(view, domChange) {
24182
24280
  return false;
24183
24281
  if (!change && domChange.typeOver && !sel.empty && newSel && newSel.main.empty) {
24184
24282
  change = { from: sel.from, to: sel.to, insert: view.state.doc.slice(sel.from, sel.to) };
24283
+ } else if ((browser.mac || browser.android) && change && change.from == change.to && change.from == sel.head - 1 && /^\. ?$/.test(change.insert.toString()) && view.contentDOM.getAttribute("autocorrect") == "off") {
24284
+ if (newSel && change.insert.length == 2)
24285
+ newSel = EditorSelection.single(newSel.main.anchor - 1, newSel.main.head - 1);
24286
+ change = { from: change.from, to: change.to, insert: Text.of([change.insert.toString().replace(".", " ")]) };
24185
24287
  } else if (change && change.from >= sel.from && change.to <= sel.to && (change.from != sel.from || change.to != sel.to) && sel.to - sel.from - (change.to - change.from) <= 4) {
24186
24288
  change = {
24187
24289
  from: sel.from,
24188
24290
  to: sel.to,
24189
24291
  insert: view.state.doc.slice(sel.from, change.from).append(change.insert).append(view.state.doc.slice(change.to, sel.to))
24190
24292
  };
24191
- } else if ((browser.mac || browser.android) && change && change.from == change.to && change.from == sel.head - 1 && /^\. ?$/.test(change.insert.toString()) && view.contentDOM.getAttribute("autocorrect") == "off") {
24192
- if (newSel && change.insert.length == 2)
24193
- newSel = EditorSelection.single(newSel.main.anchor - 1, newSel.main.head - 1);
24194
- change = { from: sel.from, to: sel.to, insert: Text.of([" "]) };
24195
24293
  } else if (browser.chrome && change && change.from == change.to && change.from == sel.head && change.insert.toString() == "\n " && view.lineWrapping) {
24196
24294
  if (newSel)
24197
24295
  newSel = EditorSelection.single(newSel.main.anchor - 1, newSel.main.head - 1);
@@ -24825,15 +24923,15 @@ function basicMouseSelection(view, event) {
24825
24923
  startSel = startSel.map(update.changes);
24826
24924
  }
24827
24925
  },
24828
- get(event2, extend2, multiple) {
24926
+ get(event2, extend, multiple) {
24829
24927
  let cur2 = queryPos(view, event2), removed;
24830
24928
  let range = rangeForClick(view, cur2.pos, cur2.bias, type);
24831
- if (start.pos != cur2.pos && !extend2) {
24929
+ if (start.pos != cur2.pos && !extend) {
24832
24930
  let startRange = rangeForClick(view, start.pos, start.bias, type);
24833
24931
  let from = Math.min(startRange.from, range.from), to = Math.max(startRange.to, range.to);
24834
24932
  range = from < range.from ? EditorSelection.range(from, to) : EditorSelection.range(to, from);
24835
24933
  }
24836
- if (extend2)
24934
+ if (extend)
24837
24935
  return startSel.replaceRange(startSel.main.extend(range.from, range.to));
24838
24936
  else if (multiple && type == 1 && startSel.ranges.length > 1 && (removed = removeRangeAround(startSel, cur2.pos)))
24839
24937
  return removed;
@@ -25251,7 +25349,7 @@ class HeightMap {
25251
25349
  return (this.flags & 2) > 0;
25252
25350
  }
25253
25351
  set outdated(value) {
25254
- this.flags = (value ? 2 : 0) | this.flags & ~2;
25352
+ this.flags = (value ? 2 : 0) | this.flags & -3;
25255
25353
  }
25256
25354
  setHeight(height) {
25257
25355
  if (this.height != height) {
@@ -25827,6 +25925,10 @@ function visiblePixelRange(dom, paddingTop) {
25827
25925
  bottom: Math.max(top2, bottom) - (rect.top + paddingTop)
25828
25926
  };
25829
25927
  }
25928
+ function inWindow(elt) {
25929
+ let rect = elt.getBoundingClientRect(), win = elt.ownerDocument.defaultView || window;
25930
+ return rect.left < win.innerWidth && rect.right > 0 && rect.top < win.innerHeight && rect.bottom > 0;
25931
+ }
25830
25932
  function fullPixelRange(dom, paddingTop) {
25831
25933
  let rect = dom.getBoundingClientRect();
25832
25934
  return {
@@ -25973,7 +26075,7 @@ class ViewState {
25973
26075
  this.updateViewportLines();
25974
26076
  if (this.lineGaps.length || this.viewport.to - this.viewport.from > 2e3 << 1)
25975
26077
  this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps, update.changes)));
25976
- update.flags |= this.computeVisibleRanges();
26078
+ update.flags |= this.computeVisibleRanges(update.changes);
25977
26079
  if (scrollTarget)
25978
26080
  this.scrollTarget = scrollTarget;
25979
26081
  if (!this.mustEnforceCursorAssoc && update.selectionSet && update.view.lineWrapping && update.state.selection.main.empty && update.state.selection.main.assoc && !update.state.facet(nativeSelectionHidden))
@@ -25995,7 +26097,7 @@ class ViewState {
25995
26097
  if (scaleX > 5e-3 && Math.abs(this.scaleX - scaleX) > 5e-3 || scaleY > 5e-3 && Math.abs(this.scaleY - scaleY) > 5e-3) {
25996
26098
  this.scaleX = scaleX;
25997
26099
  this.scaleY = scaleY;
25998
- result |= 8;
26100
+ result |= 16;
25999
26101
  refresh = measureContent = true;
26000
26102
  }
26001
26103
  }
@@ -26004,13 +26106,13 @@ class ViewState {
26004
26106
  if (this.paddingTop != paddingTop || this.paddingBottom != paddingBottom) {
26005
26107
  this.paddingTop = paddingTop;
26006
26108
  this.paddingBottom = paddingBottom;
26007
- result |= 8 | 2;
26109
+ result |= 16 | 2;
26008
26110
  }
26009
26111
  if (this.editorWidth != view.scrollDOM.clientWidth) {
26010
26112
  if (oracle.lineWrapping)
26011
26113
  measureContent = true;
26012
26114
  this.editorWidth = view.scrollDOM.clientWidth;
26013
- result |= 8;
26115
+ result |= 16;
26014
26116
  }
26015
26117
  let scrollTop = view.scrollDOM.scrollTop * this.scaleY;
26016
26118
  if (this.scrollTop != scrollTop) {
@@ -26027,13 +26129,13 @@ class ViewState {
26027
26129
  if (inView)
26028
26130
  measureContent = true;
26029
26131
  }
26030
- if (!this.inView && !this.scrollTarget)
26132
+ if (!this.inView && !this.scrollTarget && !inWindow(view.dom))
26031
26133
  return 0;
26032
26134
  let contentWidth = domRect.width;
26033
26135
  if (this.contentDOMWidth != contentWidth || this.editorHeight != view.scrollDOM.clientHeight) {
26034
26136
  this.contentDOMWidth = domRect.width;
26035
26137
  this.editorHeight = view.scrollDOM.clientHeight;
26036
- result |= 8;
26138
+ result |= 16;
26037
26139
  }
26038
26140
  if (measureContent) {
26039
26141
  let lineHeights = view.docView.measureVisibleLineHeights(this.viewport);
@@ -26044,7 +26146,7 @@ class ViewState {
26044
26146
  refresh = lineHeight > 0 && oracle.refresh(whiteSpace, lineHeight, charWidth, textHeight, contentWidth / charWidth, lineHeights);
26045
26147
  if (refresh) {
26046
26148
  view.docView.minWidth = 0;
26047
- result |= 8;
26149
+ result |= 16;
26048
26150
  }
26049
26151
  }
26050
26152
  if (dTop > 0 && dBottom > 0)
@@ -26246,7 +26348,7 @@ class ViewState {
26246
26348
  this.lineGapDeco = Decoration.set(gaps.map((gap) => gap.draw(this, this.heightOracle.lineWrapping)));
26247
26349
  }
26248
26350
  }
26249
- computeVisibleRanges() {
26351
+ computeVisibleRanges(changes) {
26250
26352
  let deco = this.stateDeco;
26251
26353
  if (this.lineGaps.length)
26252
26354
  deco = deco.concat(this.lineGapDeco);
@@ -26258,9 +26360,21 @@ class ViewState {
26258
26360
  point() {
26259
26361
  }
26260
26362
  }, 20);
26261
- let changed = ranges.length != this.visibleRanges.length || this.visibleRanges.some((r2, i) => r2.from != ranges[i].from || r2.to != ranges[i].to);
26363
+ let changed = 0;
26364
+ if (ranges.length != this.visibleRanges.length) {
26365
+ changed = 8 | 4;
26366
+ } else {
26367
+ for (let i = 0; i < ranges.length && !(changed & 8); i++) {
26368
+ let old = this.visibleRanges[i], nw = ranges[i];
26369
+ if (old.from != nw.from || old.to != nw.to) {
26370
+ changed |= 4;
26371
+ if (!(changes && changes.mapPos(old.from, -1) == nw.from && changes.mapPos(old.to, 1) == nw.to))
26372
+ changed |= 8;
26373
+ }
26374
+ }
26375
+ }
26262
26376
  this.visibleRanges = ranges;
26263
- return changed ? 4 : 0;
26377
+ return changed;
26264
26378
  }
26265
26379
  lineBlockAt(pos) {
26266
26380
  return pos >= this.viewport.from && pos <= this.viewport.to && this.viewportLines.find((b2) => b2.from <= pos && b2.to >= pos) || scaleBlock(this.heightMap.lineAt(pos, QueryType$1.ByPos, this.heightOracle, 0, 0), this.scaler);
@@ -27132,7 +27246,7 @@ class EditContextManager {
27132
27246
  selectionEnd: this.toContextPos(view.state.selection.main.head)
27133
27247
  });
27134
27248
  this.handlers.textupdate = (e2) => {
27135
- let { anchor } = view.state.selection.main;
27249
+ let main = view.state.selection.main, { anchor, head } = main;
27136
27250
  let from = this.toEditorPos(e2.updateRangeStart), to = this.toEditorPos(e2.updateRangeEnd);
27137
27251
  if (view.inputState.composing >= 0 && !this.composing)
27138
27252
  this.composing = { contextBase: e2.updateRangeStart, editorBase: from, drifted: false };
@@ -27141,11 +27255,19 @@ class EditContextManager {
27141
27255
  change.from = anchor;
27142
27256
  else if (change.to == this.to && anchor > this.to)
27143
27257
  change.to = anchor;
27144
- if (change.from == change.to && !change.insert.length)
27258
+ if (change.from == change.to && !change.insert.length) {
27259
+ let newSel = EditorSelection.single(this.toEditorPos(e2.selectionStart), this.toEditorPos(e2.selectionEnd));
27260
+ if (!newSel.main.eq(main))
27261
+ view.dispatch({ selection: newSel, userEvent: "select" });
27145
27262
  return;
27263
+ }
27264
+ if ((browser.mac || browser.android) && change.from == head - 1 && /^\. ?$/.test(e2.text) && view.contentDOM.getAttribute("autocorrect") == "off")
27265
+ change = { from, to, insert: Text.of([e2.text.replace(".", " ")]) };
27146
27266
  this.pendingContextChange = change;
27147
- if (!view.state.readOnly)
27148
- applyDOMChangeInner(view, change, EditorSelection.single(this.toEditorPos(e2.selectionStart), this.toEditorPos(e2.selectionEnd)));
27267
+ if (!view.state.readOnly) {
27268
+ let newLen = this.to - this.from + (change.to - change.from + change.insert.length);
27269
+ applyDOMChangeInner(view, change, EditorSelection.single(this.toEditorPos(e2.selectionStart, newLen), this.toEditorPos(e2.selectionEnd, newLen)));
27270
+ }
27149
27271
  if (this.pendingContextChange) {
27150
27272
  this.revertPending(view.state);
27151
27273
  this.setSelection(view.state);
@@ -27165,8 +27287,11 @@ class EditContextManager {
27165
27287
  for (let format of e2.getTextFormats()) {
27166
27288
  let lineStyle = format.underlineStyle, thickness = format.underlineThickness;
27167
27289
  if (lineStyle != "None" && thickness != "None") {
27168
- let style = `text-decoration: underline ${lineStyle == "Dashed" ? "dashed " : lineStyle == "Squiggle" ? "wavy " : ""}${thickness == "Thin" ? 1 : 2}px`;
27169
- deco.push(Decoration.mark({ attributes: { style } }).range(this.toEditorPos(format.rangeStart), this.toEditorPos(format.rangeEnd)));
27290
+ let from = this.toEditorPos(format.rangeStart), to = this.toEditorPos(format.rangeEnd);
27291
+ if (from < to) {
27292
+ let style = `text-decoration: underline ${lineStyle == "Dashed" ? "dashed " : lineStyle == "Squiggle" ? "wavy " : ""}${thickness == "Thin" ? 1 : 2}px`;
27293
+ deco.push(Decoration.mark({ attributes: { style } }).range(from, to));
27294
+ }
27170
27295
  }
27171
27296
  }
27172
27297
  view.dispatch({ effects: setEditContextFormatting.of(Decoration.set(deco)) });
@@ -27280,7 +27405,8 @@ class EditContextManager {
27280
27405
  let { head } = state.selection.main;
27281
27406
  return !(this.from > 0 && head - this.from < 500 || this.to < state.doc.length && this.to - head < 500 || this.to - this.from > 1e4 * 3);
27282
27407
  }
27283
- toEditorPos(contextPos) {
27408
+ toEditorPos(contextPos, clipLen = this.to - this.from) {
27409
+ contextPos = Math.min(contextPos, clipLen);
27284
27410
  let c2 = this.composing;
27285
27411
  return c2 && c2.drifted ? c2.editorBase + (contextPos - c2.contextBase) : contextPos + this.from;
27286
27412
  }
@@ -27709,6 +27835,7 @@ class EditorView {
27709
27835
  spellcheck: "false",
27710
27836
  autocorrect: "off",
27711
27837
  autocapitalize: "off",
27838
+ writingsuggestions: "false",
27712
27839
  translate: "no",
27713
27840
  contenteditable: !this.state.facet(editable) ? "false" : "true",
27714
27841
  class: "cm-content",
@@ -28552,14 +28679,7 @@ function rectanglesForRange(view, className, range) {
28552
28679
  return pieces(top2).concat(between).concat(pieces(bottom));
28553
28680
  }
28554
28681
  function piece(left, top2, right, bottom) {
28555
- return new RectangleMarker(
28556
- className,
28557
- left - base2.left,
28558
- top2 - base2.top - 0.01,
28559
- right - left,
28560
- bottom - top2 + 0.01
28561
- /* C.Epsilon */
28562
- );
28682
+ return new RectangleMarker(className, left - base2.left, top2 - base2.top, right - left, bottom - top2);
28563
28683
  }
28564
28684
  function pieces({ top: top2, bottom, horizontal }) {
28565
28685
  let pieces2 = [];
@@ -28692,7 +28812,7 @@ function layer(config2) {
28692
28812
  layerOrder.of(config2)
28693
28813
  ];
28694
28814
  }
28695
- const CanHidePrimary = !browser.ios;
28815
+ const CanHidePrimary = !(browser.ios && browser.webkit && browser.webkit_version < 534);
28696
28816
  const selectionConfig = /* @__PURE__ */ Facet.define({
28697
28817
  combine(configs) {
28698
28818
  return combineConfig(configs, {
@@ -28933,12 +29053,12 @@ class MatchDecorator {
28933
29053
  let changeFrom = 1e9, changeTo = -1;
28934
29054
  if (update.docChanged)
28935
29055
  update.changes.iterChanges((_f, _t, from, to) => {
28936
- if (to > update.view.viewport.from && from < update.view.viewport.to) {
29056
+ if (to >= update.view.viewport.from && from <= update.view.viewport.to) {
28937
29057
  changeFrom = Math.min(from, changeFrom);
28938
29058
  changeTo = Math.max(to, changeTo);
28939
29059
  }
28940
29060
  });
28941
- if (update.viewportChanged || changeTo - changeFrom > 1e3)
29061
+ if (update.viewportMoved || changeTo - changeFrom > 1e3)
28942
29062
  return this.createDeco(update.view);
28943
29063
  if (changeTo > -1)
28944
29064
  return this.updateRange(update.view, deco.map(update.changes), changeFrom, changeTo);
@@ -29572,10 +29692,10 @@ const tooltipPlugin = /* @__PURE__ */ ViewPlugin.fromClass(class {
29572
29692
  }
29573
29693
  if (this.position == "absolute") {
29574
29694
  dom.style.top = (top2 - measured.parent.top) / scaleY + "px";
29575
- dom.style.left = (left - measured.parent.left) / scaleX + "px";
29695
+ setLeftStyle(dom, (left - measured.parent.left) / scaleX);
29576
29696
  } else {
29577
29697
  dom.style.top = top2 / scaleY + "px";
29578
- dom.style.left = left / scaleX + "px";
29698
+ setLeftStyle(dom, left / scaleX);
29579
29699
  }
29580
29700
  if (arrow2) {
29581
29701
  let arrowLeft = pos.left + (ltr ? offset2.x : -offset2.x) - (left + 14 - 7);
@@ -29608,6 +29728,11 @@ const tooltipPlugin = /* @__PURE__ */ ViewPlugin.fromClass(class {
29608
29728
  }
29609
29729
  }
29610
29730
  });
29731
+ function setLeftStyle(elt, value) {
29732
+ let current = parseInt(elt.style.left, 10);
29733
+ if (isNaN(current) || Math.abs(value - current) > 1)
29734
+ elt.style.left = value + "px";
29735
+ }
29611
29736
  const baseTheme$4 = /* @__PURE__ */ EditorView.baseTheme({
29612
29737
  ".cm-tooltip": {
29613
29738
  zIndex: 500,
@@ -31196,10 +31321,10 @@ class IndentContext {
31196
31321
  const indentNodeProp = /* @__PURE__ */ new NodeProp();
31197
31322
  function syntaxIndentation(cx, ast, pos) {
31198
31323
  let stack = ast.resolveStack(pos);
31199
- let inner = stack.node.enterUnfinishedNodesBefore(pos);
31324
+ let inner = ast.resolveInner(pos, -1).resolve(pos, 0).enterUnfinishedNodesBefore(pos);
31200
31325
  if (inner != stack.node) {
31201
31326
  let add2 = [];
31202
- for (let cur2 = inner; cur2 != stack.node; cur2 = cur2.parent)
31327
+ for (let cur2 = inner; cur2 && !(cur2.from == stack.node.from && cur2.type == stack.node.type); cur2 = cur2.parent)
31203
31328
  add2.push(cur2);
31204
31329
  for (let i = add2.length - 1; i >= 0; i--)
31205
31330
  stack = { node: add2[i], next: stack };
@@ -32676,7 +32801,7 @@ const cursorLineBoundaryLeft = (view) => moveSel(view, (range) => moveByLineBoun
32676
32801
  const cursorLineBoundaryRight = (view) => moveSel(view, (range) => moveByLineBoundary(view, range, ltrAtCursor(view)));
32677
32802
  const cursorLineStart = (view) => moveSel(view, (range) => EditorSelection.cursor(view.lineBlockAt(range.head).from, 1));
32678
32803
  const cursorLineEnd = (view) => moveSel(view, (range) => EditorSelection.cursor(view.lineBlockAt(range.head).to, -1));
32679
- function toMatchingBracket(state, dispatch, extend2) {
32804
+ function toMatchingBracket(state, dispatch, extend) {
32680
32805
  let found = false, selection2 = updateSel(state.selection, (range) => {
32681
32806
  let matching = matchBrackets(state, range.head, -1) || matchBrackets(state, range.head, 1) || range.head > 0 && matchBrackets(state, range.head - 1, 1) || range.head < state.doc.length && matchBrackets(state, range.head + 1, -1);
32682
32807
  if (!matching || !matching.end)
@@ -35853,25 +35978,67 @@ class LintState {
35853
35978
  let diagnosticFilter = state.facet(lintConfig).markerFilter;
35854
35979
  if (diagnosticFilter)
35855
35980
  markedDiagnostics = diagnosticFilter(markedDiagnostics, state);
35856
- let ranges = Decoration.set(markedDiagnostics.map((d2) => {
35857
- return d2.from == d2.to || d2.from == d2.to - 1 && state.doc.lineAt(d2.from).to == d2.from ? Decoration.widget({
35858
- widget: new DiagnosticWidget(d2),
35859
- diagnostic: d2
35860
- }).range(d2.from) : Decoration.mark({
35861
- attributes: { class: "cm-lintRange cm-lintRange-" + d2.severity + (d2.markClass ? " " + d2.markClass : "") },
35862
- diagnostic: d2
35863
- }).range(d2.from, d2.to);
35864
- }), true);
35865
- return new LintState(ranges, panel, findDiagnostic(ranges));
35981
+ let sorted = diagnostics.slice().sort((a2, b2) => a2.from - b2.from || a2.to - b2.to);
35982
+ let deco = new RangeSetBuilder(), active = [], pos = 0;
35983
+ for (let i = 0; ; ) {
35984
+ let next = i == sorted.length ? null : sorted[i];
35985
+ if (!next && !active.length)
35986
+ break;
35987
+ let from, to;
35988
+ if (active.length) {
35989
+ from = pos;
35990
+ to = active.reduce((p2, d2) => Math.min(p2, d2.to), next && next.from > from ? next.from : 1e8);
35991
+ } else {
35992
+ from = next.from;
35993
+ to = next.to;
35994
+ active.push(next);
35995
+ i++;
35996
+ }
35997
+ while (i < sorted.length) {
35998
+ let next2 = sorted[i];
35999
+ if (next2.from == from && (next2.to > next2.from || next2.to == from)) {
36000
+ active.push(next2);
36001
+ i++;
36002
+ to = Math.min(next2.to, to);
36003
+ } else {
36004
+ to = Math.min(next2.from, to);
36005
+ break;
36006
+ }
36007
+ }
36008
+ let sev = maxSeverity(active);
36009
+ if (active.some((d2) => d2.from == d2.to || d2.from == d2.to - 1 && state.doc.lineAt(d2.from).to == d2.from)) {
36010
+ deco.add(from, from, Decoration.widget({
36011
+ widget: new DiagnosticWidget(sev),
36012
+ diagnostics: active.slice()
36013
+ }));
36014
+ } else {
36015
+ let markClass = active.reduce((c2, d2) => d2.markClass ? c2 + " " + d2.markClass : c2, "");
36016
+ deco.add(from, to, Decoration.mark({
36017
+ class: "cm-lintRange cm-lintRange-" + sev + markClass,
36018
+ diagnostics: active.slice(),
36019
+ inclusiveEnd: active.some((a2) => a2.to > to)
36020
+ }));
36021
+ }
36022
+ pos = to;
36023
+ for (let i2 = 0; i2 < active.length; i2++)
36024
+ if (active[i2].to <= pos)
36025
+ active.splice(i2--, 1);
36026
+ }
36027
+ let set = deco.finish();
36028
+ return new LintState(set, panel, findDiagnostic(set));
35866
36029
  }
35867
36030
  }
35868
36031
  function findDiagnostic(diagnostics, diagnostic = null, after = 0) {
35869
36032
  let found = null;
35870
36033
  diagnostics.between(after, 1e9, (from, to, { spec }) => {
35871
- if (diagnostic && spec.diagnostic != diagnostic)
36034
+ if (diagnostic && spec.diagnostics.indexOf(diagnostic) < 0)
35872
36035
  return;
35873
- found = new SelectedDiagnostic(from, to, spec.diagnostic);
35874
- return false;
36036
+ if (!found)
36037
+ found = new SelectedDiagnostic(from, to, diagnostic || spec.diagnostics[0]);
36038
+ else if (spec.diagnostics.indexOf(found.diagnostic) < 0)
36039
+ return false;
36040
+ else
36041
+ found = new SelectedDiagnostic(found.from, to, found.diagnostic);
35875
36042
  });
35876
36043
  return found;
35877
36044
  }
@@ -35924,23 +36091,24 @@ const lintState = /* @__PURE__ */ StateField.define({
35924
36091
  const activeMark = /* @__PURE__ */ Decoration.mark({ class: "cm-lintRange cm-lintRange-active" });
35925
36092
  function lintTooltip(view, pos, side) {
35926
36093
  let { diagnostics } = view.state.field(lintState);
35927
- let found = [], stackStart = 2e8, stackEnd = 0;
36094
+ let found, start = -1, end = -1;
35928
36095
  diagnostics.between(pos - (side < 0 ? 1 : 0), pos + (side > 0 ? 1 : 0), (from, to, { spec }) => {
35929
36096
  if (pos >= from && pos <= to && (from == to || (pos > from || side > 0) && (pos < to || side < 0))) {
35930
- found.push(spec.diagnostic);
35931
- stackStart = Math.min(from, stackStart);
35932
- stackEnd = Math.max(to, stackEnd);
36097
+ found = spec.diagnostics;
36098
+ start = from;
36099
+ end = to;
36100
+ return false;
35933
36101
  }
35934
36102
  });
35935
36103
  let diagnosticFilter = view.state.facet(lintConfig).tooltipFilter;
35936
- if (diagnosticFilter)
36104
+ if (found && diagnosticFilter)
35937
36105
  found = diagnosticFilter(found, view.state);
35938
- if (!found.length)
36106
+ if (!found)
35939
36107
  return null;
35940
36108
  return {
35941
- pos: stackStart,
35942
- end: stackEnd,
35943
- above: view.state.doc.lineAt(stackStart).to < stackEnd,
36109
+ pos: start,
36110
+ end,
36111
+ above: view.state.doc.lineAt(start).to < end,
35944
36112
  create() {
35945
36113
  return { dom: diagnosticsTooltip(view, found) };
35946
36114
  }
@@ -36039,15 +36207,15 @@ function renderDiagnostic(view, diagnostic, inPanel) {
36039
36207
  }), diagnostic.source && crelt("div", { class: "cm-diagnosticSource" }, diagnostic.source));
36040
36208
  }
36041
36209
  class DiagnosticWidget extends WidgetType {
36042
- constructor(diagnostic) {
36210
+ constructor(sev) {
36043
36211
  super();
36044
- this.diagnostic = diagnostic;
36212
+ this.sev = sev;
36045
36213
  }
36046
36214
  eq(other) {
36047
- return other.diagnostic == this.diagnostic;
36215
+ return other.sev == this.sev;
36048
36216
  }
36049
36217
  toDOM() {
36050
- return crelt("span", { class: "cm-lintPoint cm-lintPoint-" + this.diagnostic.severity });
36218
+ return crelt("span", { class: "cm-lintPoint cm-lintPoint-" + this.sev });
36051
36219
  }
36052
36220
  }
36053
36221
  class PanelItem {
@@ -36123,33 +36291,39 @@ class LintPanel {
36123
36291
  update() {
36124
36292
  let { diagnostics, selected } = this.view.state.field(lintState);
36125
36293
  let i = 0, needsSync = false, newSelectedItem = null;
36294
+ let seen = /* @__PURE__ */ new Set();
36126
36295
  diagnostics.between(0, this.view.state.doc.length, (_start, _end, { spec }) => {
36127
- let found = -1, item;
36128
- for (let j = i; j < this.items.length; j++)
36129
- if (this.items[j].diagnostic == spec.diagnostic) {
36130
- found = j;
36131
- break;
36132
- }
36133
- if (found < 0) {
36134
- item = new PanelItem(this.view, spec.diagnostic);
36135
- this.items.splice(i, 0, item);
36136
- needsSync = true;
36137
- } else {
36138
- item = this.items[found];
36139
- if (found > i) {
36140
- this.items.splice(i, found - i);
36296
+ for (let diagnostic of spec.diagnostics) {
36297
+ if (seen.has(diagnostic))
36298
+ continue;
36299
+ seen.add(diagnostic);
36300
+ let found = -1, item;
36301
+ for (let j = i; j < this.items.length; j++)
36302
+ if (this.items[j].diagnostic == diagnostic) {
36303
+ found = j;
36304
+ break;
36305
+ }
36306
+ if (found < 0) {
36307
+ item = new PanelItem(this.view, diagnostic);
36308
+ this.items.splice(i, 0, item);
36141
36309
  needsSync = true;
36310
+ } else {
36311
+ item = this.items[found];
36312
+ if (found > i) {
36313
+ this.items.splice(i, found - i);
36314
+ needsSync = true;
36315
+ }
36142
36316
  }
36143
- }
36144
- if (selected && item.diagnostic == selected.diagnostic) {
36145
- if (!item.dom.hasAttribute("aria-selected")) {
36146
- item.dom.setAttribute("aria-selected", "true");
36147
- newSelectedItem = item;
36317
+ if (selected && item.diagnostic == selected.diagnostic) {
36318
+ if (!item.dom.hasAttribute("aria-selected")) {
36319
+ item.dom.setAttribute("aria-selected", "true");
36320
+ newSelectedItem = item;
36321
+ }
36322
+ } else if (item.dom.hasAttribute("aria-selected")) {
36323
+ item.dom.removeAttribute("aria-selected");
36148
36324
  }
36149
- } else if (item.dom.hasAttribute("aria-selected")) {
36150
- item.dom.removeAttribute("aria-selected");
36325
+ i++;
36151
36326
  }
36152
- i++;
36153
36327
  });
36154
36328
  while (i < this.items.length && !(this.items.length == 1 && this.items[0].diagnostic.from < 0)) {
36155
36329
  needsSync = true;
@@ -36316,6 +36490,20 @@ const baseTheme = /* @__PURE__ */ EditorView.baseTheme({
36316
36490
  }
36317
36491
  }
36318
36492
  });
36493
+ function severityWeight(sev) {
36494
+ return sev == "error" ? 4 : sev == "warning" ? 3 : sev == "info" ? 2 : 1;
36495
+ }
36496
+ function maxSeverity(diagnostics) {
36497
+ let sev = "hint", weight = 1;
36498
+ for (let d2 of diagnostics) {
36499
+ let w2 = severityWeight(d2.severity);
36500
+ if (w2 > weight) {
36501
+ weight = w2;
36502
+ sev = d2.severity;
36503
+ }
36504
+ }
36505
+ return sev;
36506
+ }
36319
36507
  const lintExtensions = [
36320
36508
  lintState,
36321
36509
  /* @__PURE__ */ EditorView.decorations.compute([lintState], (state) => {
@@ -39101,7 +39289,7 @@ const Trigger$7 = React.forwardRef(
39101
39289
  ({ caretPosition = "left", description, icon: Icon2, iconProps, children, ...restProps }, forwardedRef) => {
39102
39290
  const { size: size2 } = useAccordion("Trigger");
39103
39291
  return /* @__PURE__ */ jsxs(AccordionTrigger, { $caretPosition: caretPosition, $size: size2, ref: forwardedRef, ...restProps, children: [
39104
- caretPosition === "left" ? /* @__PURE__ */ jsx(TriggerIcon, { $size: size2, children: /* @__PURE__ */ jsx(ForwardRef$4D, { width: size2 === "S" ? "1.2rem" : "1.6rem", height: size2 === "S" ? "1.2rem" : "1.6rem" }) }) : null,
39292
+ caretPosition === "left" ? /* @__PURE__ */ jsx(TriggerIcon, { $size: size2, children: /* @__PURE__ */ jsx(ForwardRef$4L, { width: size2 === "S" ? "1.2rem" : "1.6rem", height: size2 === "S" ? "1.2rem" : "1.6rem" }) }) : null,
39105
39293
  /* @__PURE__ */ jsxs(Flex, { tag: "span", gap: 2, children: [
39106
39294
  Icon2 && size2 === "S" ? /* @__PURE__ */ jsx(IconBox$4, { children: /* @__PURE__ */ jsx(Icon2, { ...iconProps }) }) : null,
39107
39295
  /* @__PURE__ */ jsxs(Flex, { alignItems: "flex-start", direction: "column", tag: "span", ref: forwardedRef, children: [
@@ -39118,7 +39306,7 @@ const Trigger$7 = React.forwardRef(
39118
39306
  description && size2 === "M" ? /* @__PURE__ */ jsx(Typography, { textAlign: "left", children: description }) : null
39119
39307
  ] })
39120
39308
  ] }),
39121
- caretPosition === "right" ? /* @__PURE__ */ jsx(TriggerIcon, { $size: size2, children: /* @__PURE__ */ jsx(ForwardRef$4D, { width: size2 === "S" ? "1.2rem" : "1.6rem", height: size2 === "S" ? "1.2rem" : "1.6rem" }) }) : null
39309
+ caretPosition === "right" ? /* @__PURE__ */ jsx(TriggerIcon, { $size: size2, children: /* @__PURE__ */ jsx(ForwardRef$4L, { width: size2 === "S" ? "1.2rem" : "1.6rem", height: size2 === "S" ? "1.2rem" : "1.6rem" }) }) : null
39122
39310
  ] });
39123
39311
  }
39124
39312
  );
@@ -39381,7 +39569,7 @@ const AlertIconWrapper = styled(Flex)`
39381
39569
  `;
39382
39570
  const AlertIcon = ({ variant: variant2, ...props }) => {
39383
39571
  if (variant2 === "success") {
39384
- return /* @__PURE__ */ jsx(ForwardRef$4n, { ...props });
39572
+ return /* @__PURE__ */ jsx(ForwardRef$4v, { ...props });
39385
39573
  }
39386
39574
  if (variant2 === "danger" || variant2 === "warning") {
39387
39575
  return /* @__PURE__ */ jsx(ForwardRef$3, { ...props });
@@ -39447,7 +39635,7 @@ const Alert = ({
39447
39635
  marginTop: 1,
39448
39636
  onClick: onClose,
39449
39637
  color: "neutral700",
39450
- children: /* @__PURE__ */ jsx(AccessibleIcon, { label: closeLabel, children: /* @__PURE__ */ jsx(ForwardRef$3V, {}) })
39638
+ children: /* @__PURE__ */ jsx(AccessibleIcon, { label: closeLabel, children: /* @__PURE__ */ jsx(ForwardRef$3$, {}) })
39451
39639
  }
39452
39640
  )
39453
39641
  ]
@@ -40278,7 +40466,7 @@ const Link = forwardRef(
40278
40466
  startIcon,
40279
40467
  /* @__PURE__ */ jsx(Typography, { textColor: disabled ? "neutral600" : "primary600", children }),
40280
40468
  endIcon,
40281
- href && !endIcon && isExternal && /* @__PURE__ */ jsx(ForwardRef$3t, {})
40469
+ href && !endIcon && isExternal && /* @__PURE__ */ jsx(ForwardRef$3z, {})
40282
40470
  ] });
40283
40471
  }
40284
40472
  );
@@ -40301,6 +40489,10 @@ const LinkWrapper$1 = styled(BaseLinkImpl)`
40301
40489
  & > span {
40302
40490
  color: ${({ theme: theme2 }) => theme2.colors.primary500};
40303
40491
  }
40492
+
40493
+ svg path {
40494
+ fill: ${({ theme: theme2 }) => theme2.colors.primary500};
40495
+ }
40304
40496
  }
40305
40497
 
40306
40498
  &:active {
@@ -40311,13 +40503,13 @@ const LinkWrapper$1 = styled(BaseLinkImpl)`
40311
40503
  `;
40312
40504
  const MenuRoot = $d08ef79370b62062$export$be92b6f5f03c0fe9;
40313
40505
  const MenuTrigger = React.forwardRef(
40314
- ({ label, endIcon = /* @__PURE__ */ jsx(ForwardRef$4D, { width: "1.2rem", height: "1.2rem", "aria-hidden": true }), tag = Button, icon, ...rest }, ref) => {
40506
+ ({ label, endIcon = /* @__PURE__ */ jsx(ForwardRef$4L, { width: "1.2rem", height: "1.2rem", "aria-hidden": true }), tag = Button, icon, ...rest }, ref) => {
40315
40507
  const props = {
40316
40508
  ...rest,
40317
40509
  ref,
40318
40510
  type: "button"
40319
40511
  };
40320
- return /* @__PURE__ */ jsx($d08ef79370b62062$export$41fb9f06171c75f4, { asChild: true, children: tag === IconButton ? /* @__PURE__ */ jsx(IconButton, { label, variant: "tertiary", ...props, children: icon }) : /* @__PURE__ */ jsx(Button, { endIcon, variant: "ghost", ...props }) });
40512
+ return /* @__PURE__ */ jsx($d08ef79370b62062$export$41fb9f06171c75f4, { asChild: true, disabled: props.disabled, children: tag === IconButton ? /* @__PURE__ */ jsx(IconButton, { label, variant: "tertiary", ...props, children: icon }) : /* @__PURE__ */ jsx(Button, { endIcon, variant: "ghost", ...props }) });
40321
40513
  }
40322
40514
  );
40323
40515
  const MenuContent = React.forwardRef(
@@ -40438,7 +40630,7 @@ React.forwardRef(({ disabled = false, ...props }, ref) => {
40438
40630
  ...props,
40439
40631
  children: [
40440
40632
  /* @__PURE__ */ jsx(Typography, { children: props.children }),
40441
- /* @__PURE__ */ jsx(ForwardRef$4h, { fill: "neutral500", height: "1.2rem", width: "1.2rem" })
40633
+ /* @__PURE__ */ jsx(ForwardRef$4p, { fill: "neutral500", height: "1.2rem", width: "1.2rem" })
40442
40634
  ]
40443
40635
  }
40444
40636
  ) });
@@ -40757,8 +40949,8 @@ const Carousel = React.forwardRef(
40757
40949
  position: "relative",
40758
40950
  children: [
40759
40951
  childrenArray && childrenArray.length > 1 && /* @__PURE__ */ jsxs(Fragment$1, { children: [
40760
- /* @__PURE__ */ jsx(CarouselAction, { tag: "button", onClick: onPrevious, $area: "startAction", ref: prevActionRef, type: "button", children: /* @__PURE__ */ jsx(AccessibleIcon, { label: previousLabel, children: /* @__PURE__ */ jsx(ForwardRef$4j, { width: "1.6rem", height: "1.6rem", fill: "neutral600" }) }) }),
40761
- /* @__PURE__ */ jsx(CarouselAction, { tag: "button", onClick: onNext, $area: "endAction", ref: nextActionRef, type: "button", children: /* @__PURE__ */ jsx(AccessibleIcon, { label: nextLabel, children: /* @__PURE__ */ jsx(ForwardRef$4h, { width: "1.6rem", height: "1.6rem", fill: "neutral600" }) }) })
40952
+ /* @__PURE__ */ jsx(CarouselAction, { tag: "button", onClick: onPrevious, $area: "startAction", ref: prevActionRef, type: "button", children: /* @__PURE__ */ jsx(AccessibleIcon, { label: previousLabel, children: /* @__PURE__ */ jsx(ForwardRef$4r, { width: "1.6rem", height: "1.6rem", fill: "neutral600" }) }) }),
40953
+ /* @__PURE__ */ jsx(CarouselAction, { tag: "button", onClick: onNext, $area: "endAction", ref: nextActionRef, type: "button", children: /* @__PURE__ */ jsx(AccessibleIcon, { label: nextLabel, children: /* @__PURE__ */ jsx(ForwardRef$4p, { width: "1.6rem", height: "1.6rem", fill: "neutral600" }) }) })
40762
40954
  ] }),
40763
40955
  /* @__PURE__ */ jsx(CarouselSlides, { "aria-live": "polite", paddingLeft: 2, paddingRight: 2, width: "100%", overflow: "hidden", children: childrenArray }),
40764
40956
  actions
@@ -42836,7 +43028,7 @@ lodash.exports;
42836
43028
  return symbolToString ? symbolToString.call(value) : "";
42837
43029
  }
42838
43030
  var result2 = value + "";
42839
- return result2 == "0" && 1 / value == -INFINITY ? "-0" : result2;
43031
+ return result2 == "0" && 1 / value == -Infinity ? "-0" : result2;
42840
43032
  }
42841
43033
  function baseUniq(array, iteratee2, comparator) {
42842
43034
  var index2 = -1, includes2 = arrayIncludes, length = array.length, isCommon = true, result2 = [], seen = result2;
@@ -43388,7 +43580,7 @@ lodash.exports;
43388
43580
  bitmask |= isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG;
43389
43581
  bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);
43390
43582
  if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {
43391
- bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);
43583
+ bitmask &= -4;
43392
43584
  }
43393
43585
  var newData = [
43394
43586
  func,
@@ -43444,7 +43636,7 @@ lodash.exports;
43444
43636
  }
43445
43637
  var length = partials ? partials.length : 0;
43446
43638
  if (!length) {
43447
- bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);
43639
+ bitmask &= -97;
43448
43640
  partials = holders = undefined$1;
43449
43641
  }
43450
43642
  ary2 = ary2 === undefined$1 ? ary2 : nativeMax(toInteger(ary2), 0);
@@ -43477,7 +43669,7 @@ lodash.exports;
43477
43669
  holders = newData[4];
43478
43670
  arity = newData[9] = newData[9] === undefined$1 ? isBindKey ? 0 : func.length : nativeMax(newData[9] - length, 0);
43479
43671
  if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {
43480
- bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);
43672
+ bitmask &= -25;
43481
43673
  }
43482
43674
  if (!bitmask || bitmask == WRAP_BIND_FLAG) {
43483
43675
  var result2 = createBind(func, bitmask, thisArg);
@@ -44043,7 +44235,7 @@ lodash.exports;
44043
44235
  return value;
44044
44236
  }
44045
44237
  var result2 = value + "";
44046
- return result2 == "0" && 1 / value == -INFINITY ? "-0" : result2;
44238
+ return result2 == "0" && 1 / value == -Infinity ? "-0" : result2;
44047
44239
  }
44048
44240
  function toSource(func) {
44049
44241
  if (func != null) {
@@ -45107,7 +45299,7 @@ lodash.exports;
45107
45299
  }
45108
45300
  var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
45109
45301
  function isSafeInteger(value) {
45110
- return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;
45302
+ return isInteger(value) && value >= -9007199254740991 && value <= MAX_SAFE_INTEGER;
45111
45303
  }
45112
45304
  var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
45113
45305
  function isString(value) {
@@ -45148,7 +45340,7 @@ lodash.exports;
45148
45340
  return value === 0 ? value : 0;
45149
45341
  }
45150
45342
  value = toNumber(value);
45151
- if (value === INFINITY || value === -INFINITY) {
45343
+ if (value === INFINITY || value === -Infinity) {
45152
45344
  var sign = value < 0 ? -1 : 1;
45153
45345
  return sign * MAX_INTEGER;
45154
45346
  }
@@ -45183,7 +45375,7 @@ lodash.exports;
45183
45375
  return copyObject(value, keysIn(value));
45184
45376
  }
45185
45377
  function toSafeInteger(value) {
45186
- return value ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER) : value === 0 ? value : 0;
45378
+ return value ? baseClamp(toInteger(value), -9007199254740991, MAX_SAFE_INTEGER) : value === 0 ? value : 0;
45187
45379
  }
45188
45380
  function toString(value) {
45189
45381
  return value == null ? "" : baseToString(value);
@@ -46898,10 +47090,10 @@ const Combobox = React.forwardRef(
46898
47090
  "aria-label": clearLabel,
46899
47091
  title: clearLabel,
46900
47092
  ref: clearRef,
46901
- children: /* @__PURE__ */ jsx(ForwardRef$3V, {})
47093
+ children: /* @__PURE__ */ jsx(ForwardRef$3$, {})
46902
47094
  }
46903
47095
  ) : null,
46904
- /* @__PURE__ */ jsx(DownIcon$1, { children: /* @__PURE__ */ jsx(ForwardRef$4D, { fill: "neutral500" }) })
47096
+ /* @__PURE__ */ jsx(DownIcon$1, { children: /* @__PURE__ */ jsx(ForwardRef$4L, { fill: "neutral500" }) })
46905
47097
  ] })
46906
47098
  ] }),
46907
47099
  /* @__PURE__ */ jsx(Combobox$1$1.Portal, { children: /* @__PURE__ */ jsx(Content$5, { sideOffset: 4, children: /* @__PURE__ */ jsxs(Viewport$1, { ref: viewportRef, children: [
@@ -47422,10 +47614,10 @@ const SelectTrigger = React.forwardRef(
47422
47614
  "aria-label": clearLabel,
47423
47615
  title: clearLabel,
47424
47616
  cursor: "pointer",
47425
- children: /* @__PURE__ */ jsx(ForwardRef$3V, {})
47617
+ children: /* @__PURE__ */ jsx(ForwardRef$3$, {})
47426
47618
  }
47427
47619
  ) : null,
47428
- /* @__PURE__ */ jsx(DownIcon, { children: /* @__PURE__ */ jsx(ForwardRef$4D, {}) })
47620
+ /* @__PURE__ */ jsx(DownIcon, { children: /* @__PURE__ */ jsx(ForwardRef$4L, {}) })
47429
47621
  ] })
47430
47622
  ]
47431
47623
  }
@@ -47821,7 +48013,7 @@ const DatePicker$1 = React.forwardRef(
47821
48013
  value,
47822
48014
  children: [
47823
48015
  /* @__PURE__ */ jsxs(DatePickerTrigger, { className, hasError, size: size2, children: [
47824
- /* @__PURE__ */ jsx(ForwardRef$4H, { fill: "neutral500", "aria-hidden": true }),
48016
+ /* @__PURE__ */ jsx(ForwardRef$4P, { fill: "neutral500", "aria-hidden": true }),
47825
48017
  /* @__PURE__ */ jsx(DatePickerTextInput, { ref, "aria-describedby": ariaDescription, id, name: name2, ...restProps }),
47826
48018
  textValue && onClear ? /* @__PURE__ */ jsx(
47827
48019
  IconBox$1,
@@ -47835,7 +48027,7 @@ const DatePicker$1 = React.forwardRef(
47835
48027
  "aria-label": clearLabel,
47836
48028
  title: clearLabel,
47837
48029
  ref: clearRef,
47838
- children: /* @__PURE__ */ jsx(ForwardRef$3V, {})
48030
+ children: /* @__PURE__ */ jsx(ForwardRef$3$, {})
47839
48031
  }
47840
48032
  ) : null
47841
48033
  ] }),
@@ -48537,7 +48729,7 @@ const TimePicker$1 = React.forwardRef(
48537
48729
  allowCustomValue: true,
48538
48730
  placeholder: `--${separator}--`,
48539
48731
  autocomplete: "none",
48540
- startIcon: /* @__PURE__ */ jsx(ForwardRef$4d, { fill: "neutral500" }),
48732
+ startIcon: /* @__PURE__ */ jsx(ForwardRef$4l, { fill: "neutral500" }),
48541
48733
  inputMode: "numeric",
48542
48734
  pattern: `\\d{2}\\${separator}\\d{2}`,
48543
48735
  textValue,
@@ -49040,7 +49232,7 @@ const Header = React.forwardRef(
49040
49232
  tag: "header",
49041
49233
  children: [
49042
49234
  children,
49043
- /* @__PURE__ */ jsx(Close, { children: /* @__PURE__ */ jsx(IconButton, { withTooltip: false, label: closeLabel, children: /* @__PURE__ */ jsx(ForwardRef$3V, {}) }) })
49235
+ /* @__PURE__ */ jsx(Close, { children: /* @__PURE__ */ jsx(IconButton, { withTooltip: false, label: closeLabel, children: /* @__PURE__ */ jsx(ForwardRef$3$, {}) }) })
49044
49236
  ]
49045
49237
  }
49046
49238
  );
@@ -49196,7 +49388,7 @@ React.forwardRef(
49196
49388
  tabIndex: -1,
49197
49389
  type: "button",
49198
49390
  "data-testid": "ArrowUp",
49199
- children: /* @__PURE__ */ jsx(ForwardRef$4D, { fill: "neutral500" })
49391
+ children: /* @__PURE__ */ jsx(ForwardRef$4L, { fill: "neutral500" })
49200
49392
  }
49201
49393
  ),
49202
49394
  /* @__PURE__ */ jsx(
@@ -49208,7 +49400,7 @@ React.forwardRef(
49208
49400
  tabIndex: -1,
49209
49401
  type: "button",
49210
49402
  "data-testid": "ArrowDown",
49211
- children: /* @__PURE__ */ jsx(ForwardRef$4D, { fill: "neutral500" })
49403
+ children: /* @__PURE__ */ jsx(ForwardRef$4L, { fill: "neutral500" })
49212
49404
  }
49213
49405
  )
49214
49406
  ] }),
@@ -49269,7 +49461,7 @@ forwardRef(
49269
49461
  const disabled = activePage === 1;
49270
49462
  return /* @__PURE__ */ jsxs(ActionLinkWrapper, { ref, "aria-disabled": disabled, tabIndex: disabled ? -1 : void 0, ...props, children: [
49271
49463
  /* @__PURE__ */ jsx(VisuallyHidden, { children }),
49272
- /* @__PURE__ */ jsx(ForwardRef$4j, { "aria-hidden": true })
49464
+ /* @__PURE__ */ jsx(ForwardRef$4r, { "aria-hidden": true })
49273
49465
  ] });
49274
49466
  }
49275
49467
  );
@@ -49279,7 +49471,7 @@ forwardRef(
49279
49471
  const disabled = activePage === pageCount;
49280
49472
  return /* @__PURE__ */ jsxs(ActionLinkWrapper, { ref, "aria-disabled": disabled, tabIndex: disabled ? -1 : void 0, ...props, children: [
49281
49473
  /* @__PURE__ */ jsx(VisuallyHidden, { children }),
49282
- /* @__PURE__ */ jsx(ForwardRef$4h, { "aria-hidden": true })
49474
+ /* @__PURE__ */ jsx(ForwardRef$4p, { "aria-hidden": true })
49283
49475
  ] });
49284
49476
  }
49285
49477
  );
@@ -49731,7 +49923,7 @@ const RawTr = ({ children, ...props }) => {
49731
49923
  });
49732
49924
  return /* @__PURE__ */ jsx(Box, { tag: "tr", ...props, children: childrenClone });
49733
49925
  };
49734
- const CloseIcon = styled(ForwardRef$3V)`
49926
+ const CloseIcon = styled(ForwardRef$3$)`
49735
49927
  font-size: 0.5rem;
49736
49928
  path {
49737
49929
  fill: ${({ theme: theme2 }) => theme2.colors.neutral400};
@@ -49923,7 +50115,7 @@ const MultiSelect = React.forwardRef(
49923
50115
  {
49924
50116
  tabIndex: -1,
49925
50117
  disabled,
49926
- icon: /* @__PURE__ */ jsx(ForwardRef$3V, { width: `${14 / 16}rem`, height: `${14 / 16}rem` }),
50118
+ icon: /* @__PURE__ */ jsx(ForwardRef$3$, { width: `${14 / 16}rem`, height: `${14 / 16}rem` }),
49927
50119
  onClick: handleTagClick(arg.value),
49928
50120
  children: arg.textValue
49929
50121
  },
@@ -50188,7 +50380,7 @@ const SubNavSectionLabel = ({
50188
50380
  children: [
50189
50381
  /* @__PURE__ */ jsx(Box, { paddingRight: 1, children: /* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral600", children: label }) }),
50190
50382
  collapsable && /* @__PURE__ */ jsx(
50191
- ForwardRef$4D,
50383
+ ForwardRef$4L,
50192
50384
  {
50193
50385
  width: "1.2rem",
50194
50386
  "aria-hidden": true,
@@ -50996,7 +51188,7 @@ const index = {
50996
51188
  id: `${pluginId}.plugin.name`,
50997
51189
  defaultMessage: displayName
50998
51190
  },
50999
- Component: () => import("./index-D9MOkoQ2.mjs"),
51191
+ Component: () => import("./index-D1DAMkhj.mjs"),
51000
51192
  permissions: pluginPermissions.access
51001
51193
  });
51002
51194
  app.createSettingSection(
@@ -51015,7 +51207,7 @@ const index = {
51015
51207
  },
51016
51208
  id: "comments",
51017
51209
  to: `/settings/${pluginId}`,
51018
- Component: () => import("./index-D3iNqWZT.mjs"),
51210
+ Component: () => import("./index-BC5Odn17.mjs"),
51019
51211
  permissions: pluginPermissions.settings
51020
51212
  }
51021
51213
  ]
@@ -51057,7 +51249,7 @@ export {
51057
51249
  ForwardRef$1r as L,
51058
51250
  Modal as M,
51059
51251
  ForwardRef$j as N,
51060
- ForwardRef$3r as O,
51252
+ ForwardRef$3x as O,
51061
51253
  Portal$1 as P,
51062
51254
  ForwardRef$1d as Q,
51063
51255
  ForwardRef$R as R,
@@ -51066,7 +51258,7 @@ export {
51066
51258
  Avatar as U,
51067
51259
  Loader as V,
51068
51260
  Link as W,
51069
- ForwardRef$4V as X,
51261
+ ForwardRef$51 as X,
51070
51262
  Grid as Y,
51071
51263
  Td as Z,
51072
51264
  SimpleMenu as _,
@@ -51078,7 +51270,7 @@ export {
51078
51270
  Accordion as a4,
51079
51271
  SwitchImpl as a5,
51080
51272
  Toggle as a6,
51081
- ForwardRef$51 as a7,
51273
+ ForwardRef$59 as a7,
51082
51274
  darkTheme as a8,
51083
51275
  lightTheme as a9,
51084
51276
  DesignSystemProvider as aa,
@@ -51092,25 +51284,25 @@ export {
51092
51284
  SubNavSection as c,
51093
51285
  SubNavLink as d,
51094
51286
  Button as e,
51095
- ForwardRef$4p as f,
51096
- ForwardRef$3V as g,
51287
+ ForwardRef$4x as f,
51288
+ ForwardRef$3$ as g,
51097
51289
  Badge as h,
51098
51290
  IconButtonGroup as i,
51099
51291
  FocusTrap as j,
51100
- ForwardRef$3$ as k,
51101
- ForwardRef$3v as l,
51292
+ ForwardRef$45 as k,
51293
+ ForwardRef$3B as l,
51102
51294
  Field as m,
51103
51295
  SingleSelect as n,
51104
51296
  SingleSelectOption as o,
51105
51297
  pluginId as p,
51106
- ForwardRef$4P as q,
51298
+ ForwardRef$4X as q,
51107
51299
  ForwardRef$2v as r,
51108
51300
  ForwardRef$f as s,
51109
51301
  ForwardRef$1R as t,
51110
51302
  Popover as u,
51111
51303
  ForwardRef$v as v,
51112
- ForwardRef$4J as w,
51304
+ ForwardRef$4R as w,
51113
51305
  ForwardRef$1L as x,
51114
- ForwardRef$45 as y,
51306
+ ForwardRef$4d as y,
51115
51307
  ForwardRef$2l as z
51116
51308
  };