@ryuzaki13/react-foundation-lib 2.31.0 → 2.31.3

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 (497) hide show
  1. package/README.md +17 -5
  2. package/dist/analytical-table/definition/analyticalDefinitionConstants.d.ts +17 -0
  3. package/dist/analytical-table/definition/analyticalDefinitionConstants.d.ts.map +1 -0
  4. package/dist/analytical-table/definition/compileAnalyticalTableDefinition.d.ts.map +1 -1
  5. package/dist/analytical-table/definition/types.d.ts +6 -5
  6. package/dist/analytical-table/definition/types.d.ts.map +1 -1
  7. package/dist/analytical-table/dynamic-columns/analyticalDateColumnConstants.d.ts +7 -0
  8. package/dist/analytical-table/dynamic-columns/analyticalDateColumnConstants.d.ts.map +1 -0
  9. package/dist/analytical-table/dynamic-columns/dateColumns.d.ts.map +1 -1
  10. package/dist/analytical-table/dynamic-columns/types.d.ts +2 -1
  11. package/dist/analytical-table/dynamic-columns/types.d.ts.map +1 -1
  12. package/dist/analytical-table/index.js +124 -113
  13. package/dist/analytical-table/index.js.map +1 -1
  14. package/dist/analytical-table/projections/analyticalExportConstants.d.ts +7 -0
  15. package/dist/analytical-table/projections/analyticalExportConstants.d.ts.map +1 -0
  16. package/dist/analytical-table/projections/expansion.d.ts +2 -1
  17. package/dist/analytical-table/projections/expansion.d.ts.map +1 -1
  18. package/dist/analytical-table/projections/exportProjection.d.ts.map +1 -1
  19. package/dist/analytical-table/projections/types.d.ts +3 -2
  20. package/dist/analytical-table/projections/types.d.ts.map +1 -1
  21. package/dist/analytical-table/runtime/aggregation.d.ts.map +1 -1
  22. package/dist/analytical-table/runtime/analyticalRowConstants.d.ts +4 -0
  23. package/dist/analytical-table/runtime/analyticalRowConstants.d.ts.map +1 -0
  24. package/dist/analytical-table/runtime/analyticalViewConstants.d.ts +16 -0
  25. package/dist/analytical-table/runtime/analyticalViewConstants.d.ts.map +1 -0
  26. package/dist/analytical-table/runtime/buildGroupedModel.d.ts.map +1 -1
  27. package/dist/analytical-table/runtime/filtering.d.ts.map +1 -1
  28. package/dist/analytical-table/runtime/grouping.d.ts.map +1 -1
  29. package/dist/analytical-table/runtime/hierarchy.d.ts +2 -1
  30. package/dist/analytical-table/runtime/hierarchy.d.ts.map +1 -1
  31. package/dist/analytical-table/runtime/totals.d.ts +2 -2
  32. package/dist/analytical-table/runtime/totals.d.ts.map +1 -1
  33. package/dist/analytical-table/runtime/types.d.ts +5 -3
  34. package/dist/analytical-table/runtime/types.d.ts.map +1 -1
  35. package/dist/analytical-table/runtime/valueComparison.d.ts.map +1 -1
  36. package/dist/array/index.js +1 -1
  37. package/dist/array/reorder.d.ts +6 -1
  38. package/dist/array/reorder.d.ts.map +1 -1
  39. package/dist/async-task-runner/createCoalescingTaskRunner.d.ts.map +1 -1
  40. package/dist/async-task-runner/createDeadlineTimer.d.ts.map +1 -1
  41. package/dist/async-task-runner/index.js +39 -36
  42. package/dist/async-task-runner/index.js.map +1 -1
  43. package/dist/async-task-runner/nativeTimerConstants.d.ts +3 -0
  44. package/dist/async-task-runner/nativeTimerConstants.d.ts.map +1 -0
  45. package/dist/binary/base64Constants.d.ts +6 -0
  46. package/dist/binary/base64Constants.d.ts.map +1 -0
  47. package/dist/binary/binaryToBlob.d.ts.map +1 -1
  48. package/dist/binary/getBase64DecodedSize.d.ts.map +1 -1
  49. package/dist/binary/index.js +95 -70
  50. package/dist/binary/index.js.map +1 -1
  51. package/dist/browser-notifications/browserNotificationConstants.d.ts +3 -0
  52. package/dist/browser-notifications/browserNotificationConstants.d.ts.map +1 -0
  53. package/dist/browser-notifications/browserNotificationTypes.d.ts +2 -1
  54. package/dist/browser-notifications/browserNotificationTypes.d.ts.map +1 -1
  55. package/dist/browser-notifications/createBrowserNotificationPresenter.d.ts.map +1 -1
  56. package/dist/browser-notifications/index.js +38 -37
  57. package/dist/browser-notifications/index.js.map +1 -1
  58. package/dist/chunks/{array-D-_yMMUK.js → array-bd7LYFto.js} +1 -3
  59. package/dist/chunks/{array-D-_yMMUK.js.map → array-bd7LYFto.js.map} +1 -1
  60. package/dist/chunks/{dom-BK22UmgF.js → dom-ZSeWZ0Gg.js} +103 -98
  61. package/dist/chunks/dom-ZSeWZ0Gg.js.map +1 -0
  62. package/dist/chunks/formatDate-CNPcfNte.js +133 -0
  63. package/dist/chunks/formatDate-CNPcfNte.js.map +1 -0
  64. package/dist/chunks/{formatters-CZnnbdud.js → formatters-CO40zvVB.js} +496 -496
  65. package/dist/chunks/formatters-CO40zvVB.js.map +1 -0
  66. package/dist/chunks/{formulas-BXT_XBWI.js → formulas-Y0HOcFhe.js} +90 -86
  67. package/dist/chunks/formulas-Y0HOcFhe.js.map +1 -0
  68. package/dist/chunks/hasSignatureBytes-D2wO_Myl.js +11 -0
  69. package/dist/chunks/hasSignatureBytes-D2wO_Myl.js.map +1 -0
  70. package/dist/chunks/keyboardConstants-BZKskWsm.js +6 -0
  71. package/dist/chunks/keyboardConstants-BZKskWsm.js.map +1 -0
  72. package/dist/chunks/media-imBOXWwa.js +192 -0
  73. package/dist/chunks/media-imBOXWwa.js.map +1 -0
  74. package/dist/chunks/mimeTypeConstants-BzONV-b1.js +6 -0
  75. package/dist/chunks/mimeTypeConstants-BzONV-b1.js.map +1 -0
  76. package/dist/chunks/{query-client-CVRfrYZM.js → query-client-D0HQZ84w.js} +142 -142
  77. package/dist/chunks/query-client-D0HQZ84w.js.map +1 -0
  78. package/dist/chunks/scalarTypeClassification-D4YcGxtQ.js +766 -0
  79. package/dist/chunks/scalarTypeClassification-D4YcGxtQ.js.map +1 -0
  80. package/dist/chunks/scalarTypeConstants-CnSsjpGO.js +6 -0
  81. package/dist/chunks/scalarTypeConstants-CnSsjpGO.js.map +1 -0
  82. package/dist/chunks/utils-DW0Yso1Q.js +210 -0
  83. package/dist/chunks/utils-DW0Yso1Q.js.map +1 -0
  84. package/dist/chunks/{uuid-CUJPAbRY.js → uuid-izDzLv18.js} +1 -2
  85. package/dist/chunks/uuid-izDzLv18.js.map +1 -0
  86. package/dist/chunks/validate-8URYKKly.js +613 -0
  87. package/dist/chunks/validate-8URYKKly.js.map +1 -0
  88. package/dist/copy/index.js +5 -5
  89. package/dist/copy/index.js.map +1 -1
  90. package/dist/copy/useCopyFeedback.d.ts.map +1 -1
  91. package/dist/crypto/hashString.d.ts.map +1 -1
  92. package/dist/crypto/hexadecimalConstants.d.ts +3 -0
  93. package/dist/crypto/hexadecimalConstants.d.ts.map +1 -0
  94. package/dist/crypto/index.js +25 -24
  95. package/dist/crypto/index.js.map +1 -1
  96. package/dist/crypto/uuid.d.ts.map +1 -1
  97. package/dist/date-segments/index.js +81 -81
  98. package/dist/date-segments/index.js.map +1 -1
  99. package/dist/date-segments/mask.d.ts +13 -3
  100. package/dist/date-segments/mask.d.ts.map +1 -1
  101. package/dist/decimal/decimalConstants.d.ts +3 -0
  102. package/dist/decimal/decimalConstants.d.ts.map +1 -0
  103. package/dist/decimal/index.js +0 -2
  104. package/dist/decimal/index.js.map +1 -1
  105. package/dist/decimal/normalizeDecimal.d.ts.map +1 -1
  106. package/dist/decimal/normalizeDecimalLiteral.d.ts.map +1 -1
  107. package/dist/decimal/resolveDecimalMaxLength.d.ts.map +1 -1
  108. package/dist/decimal/sumDecimals.d.ts.map +1 -1
  109. package/dist/decimal/writeDecimalParts.d.ts.map +1 -1
  110. package/dist/dom/document-scroll/acquireDocumentScrollLock.d.ts.map +1 -1
  111. package/dist/dom/document-scroll/attachDocumentTouchScrollGuard.d.ts.map +1 -1
  112. package/dist/dom/document-scroll/canConsumeVerticalTouchScroll.d.ts.map +1 -1
  113. package/dist/dom/domEventConstants.d.ts +4 -0
  114. package/dist/dom/domEventConstants.d.ts.map +1 -0
  115. package/dist/dom/domScrollConstants.d.ts +3 -0
  116. package/dist/dom/domScrollConstants.d.ts.map +1 -0
  117. package/dist/dom/index.js +1 -1
  118. package/dist/dom/installFaviconOverride.d.ts.map +1 -1
  119. package/dist/dom/overlayFocusConstants.d.ts +4 -0
  120. package/dist/dom/overlayFocusConstants.d.ts.map +1 -0
  121. package/dist/dom/scroll-anchor/captureScrollAnchor.d.ts.map +1 -1
  122. package/dist/dom/useClickOutside.d.ts +1 -1
  123. package/dist/dom/useClickOutside.d.ts.map +1 -1
  124. package/dist/dom/useEscapeDismiss.d.ts +1 -1
  125. package/dist/dom/useEscapeDismiss.d.ts.map +1 -1
  126. package/dist/dom/useFocusTrap.d.ts.map +1 -1
  127. package/dist/dom/useIsTouchDevice.d.ts.map +1 -1
  128. package/dist/dom/useOverlayFocus.d.ts +3 -2
  129. package/dist/dom/useOverlayFocus.d.ts.map +1 -1
  130. package/dist/dom/visual-viewport/attachVisualViewportFrame.d.ts.map +1 -1
  131. package/dist/error-report/breadcrumbs.d.ts.map +1 -1
  132. package/dist/error-report/capture.d.ts.map +1 -1
  133. package/dist/error-report/captureOptions.d.ts +3 -2
  134. package/dist/error-report/captureOptions.d.ts.map +1 -1
  135. package/dist/error-report/capturePolicyConstants.d.ts +4 -0
  136. package/dist/error-report/capturePolicyConstants.d.ts.map +1 -0
  137. package/dist/error-report/dataPreview.d.ts.map +1 -1
  138. package/dist/error-report/diagnostics.d.ts.map +1 -1
  139. package/dist/error-report/drafts.d.ts.map +1 -1
  140. package/dist/error-report/environment.d.ts.map +1 -1
  141. package/dist/error-report/errorInfo.d.ts.map +1 -1
  142. package/dist/error-report/errorReportCaptureLimits.d.ts +26 -0
  143. package/dist/error-report/errorReportCaptureLimits.d.ts.map +1 -0
  144. package/dist/error-report/errorReportContractConstants.d.ts +32 -0
  145. package/dist/error-report/errorReportContractConstants.d.ts.map +1 -0
  146. package/dist/error-report/index.js +586 -587
  147. package/dist/error-report/index.js.map +1 -1
  148. package/dist/error-report/payload.d.ts.map +1 -1
  149. package/dist/error-report/queue.d.ts.map +1 -1
  150. package/dist/error-report/queueContract.d.ts +7 -6
  151. package/dist/error-report/queueContract.d.ts.map +1 -1
  152. package/dist/error-report/queueRecord.d.ts.map +1 -1
  153. package/dist/error-report/queueResultConstants.d.ts +14 -0
  154. package/dist/error-report/queueResultConstants.d.ts.map +1 -0
  155. package/dist/error-report/runtimeDeduplication.d.ts +2 -1
  156. package/dist/error-report/runtimeDeduplication.d.ts.map +1 -1
  157. package/dist/error-report/safeValue.d.ts.map +1 -1
  158. package/dist/error-report/safeValueMarkerConstants.d.ts +16 -0
  159. package/dist/error-report/safeValueMarkerConstants.d.ts.map +1 -0
  160. package/dist/error-report/schema.d.ts.map +1 -1
  161. package/dist/error-report/types.d.ts +10 -8
  162. package/dist/error-report/types.d.ts.map +1 -1
  163. package/dist/error-report-source-maps/archive.d.ts.map +1 -1
  164. package/dist/error-report-source-maps/artifact.d.ts.map +1 -1
  165. package/dist/error-report-source-maps/index.js +238 -238
  166. package/dist/error-report-source-maps/index.js.map +1 -1
  167. package/dist/error-report-source-maps/manifest.d.ts.map +1 -1
  168. package/dist/error-report-source-maps/package.d.ts.map +1 -1
  169. package/dist/error-report-source-maps/sourceMapArtifactConstants.d.ts +11 -0
  170. package/dist/error-report-source-maps/sourceMapArtifactConstants.d.ts.map +1 -0
  171. package/dist/error-report-source-maps/symbolicate.d.ts.map +1 -1
  172. package/dist/error-report-source-maps/symbolicationResultConstants.d.ts +6 -0
  173. package/dist/error-report-source-maps/symbolicationResultConstants.d.ts.map +1 -0
  174. package/dist/error-report-source-maps/types.d.ts +4 -2
  175. package/dist/error-report-source-maps/types.d.ts.map +1 -1
  176. package/dist/excel/excel.d.ts.map +1 -1
  177. package/dist/excel/excelWorkbookConstants.d.ts +6 -0
  178. package/dist/excel/excelWorkbookConstants.d.ts.map +1 -0
  179. package/dist/excel/index.js +121 -120
  180. package/dist/excel/index.js.map +1 -1
  181. package/dist/excel/matrixWorkbook.d.ts +6 -1
  182. package/dist/excel/matrixWorkbook.d.ts.map +1 -1
  183. package/dist/excel/tableExport.d.ts +2 -2
  184. package/dist/excel/tableExport.d.ts.map +1 -1
  185. package/dist/file/checkFileSignature.d.ts.map +1 -1
  186. package/dist/file/contentDisposition.d.ts.map +1 -1
  187. package/dist/file/fileSignatureConstants.d.ts +14 -18
  188. package/dist/file/fileSignatureConstants.d.ts.map +1 -1
  189. package/dist/file/fileSignatureTypes.d.ts +3 -3
  190. package/dist/file/fileSignatureTypes.d.ts.map +1 -1
  191. package/dist/file/image/imageReadConstants.d.ts +3 -0
  192. package/dist/file/image/imageReadConstants.d.ts.map +1 -0
  193. package/dist/file/image/readImageFile.d.ts +3 -2
  194. package/dist/file/image/readImageFile.d.ts.map +1 -1
  195. package/dist/file/image/types.d.ts +5 -3
  196. package/dist/file/image/types.d.ts.map +1 -1
  197. package/dist/file/index.js +139 -165
  198. package/dist/file/index.js.map +1 -1
  199. package/dist/file/mimeType.d.ts.map +1 -1
  200. package/dist/file/mimeTypeConstants.d.ts +18 -0
  201. package/dist/file/mimeTypeConstants.d.ts.map +1 -0
  202. package/dist/file/read-file/assert.d.ts.map +1 -1
  203. package/dist/file/read-file/readFile.d.ts +3 -11
  204. package/dist/file/read-file/readFile.d.ts.map +1 -1
  205. package/dist/file/read-file/readFileConstants.d.ts +13 -0
  206. package/dist/file/read-file/readFileConstants.d.ts.map +1 -0
  207. package/dist/file/read-file/types.d.ts +7 -6
  208. package/dist/file/read-file/types.d.ts.map +1 -1
  209. package/dist/file/signature/checkArchiveSignature.d.ts.map +1 -1
  210. package/dist/file-system/fileSystemConstants.d.ts +5 -0
  211. package/dist/file-system/fileSystemConstants.d.ts.map +1 -0
  212. package/dist/file-system/fileSystemTypes.d.ts +2 -1
  213. package/dist/file-system/fileSystemTypes.d.ts.map +1 -1
  214. package/dist/file-system/index.js +11 -10
  215. package/dist/file-system/index.js.map +1 -1
  216. package/dist/file-system/resolvePathInsideRoot.d.ts.map +1 -1
  217. package/dist/formatters/boolean/parseAbapBoolean.d.ts.map +1 -1
  218. package/dist/formatters/boolean/toAbapBoolean.d.ts.map +1 -1
  219. package/dist/formatters/date/calendarDate.d.ts.map +1 -1
  220. package/dist/formatters/date/calendarDateConstants.d.ts +13 -0
  221. package/dist/formatters/date/calendarDateConstants.d.ts.map +1 -0
  222. package/dist/formatters/date/calendarPeriod.d.ts +11 -2
  223. package/dist/formatters/date/calendarPeriod.d.ts.map +1 -1
  224. package/dist/formatters/date/dateFormatConstants.d.ts +17 -0
  225. package/dist/formatters/date/dateFormatConstants.d.ts.map +1 -0
  226. package/dist/formatters/date/datePatternConstants.d.ts +16 -0
  227. package/dist/formatters/date/datePatternConstants.d.ts.map +1 -0
  228. package/dist/formatters/date/datePresetNameConstants.d.ts +27 -0
  229. package/dist/formatters/date/datePresetNameConstants.d.ts.map +1 -0
  230. package/dist/formatters/date/dateRange.d.ts +3 -1
  231. package/dist/formatters/date/dateRange.d.ts.map +1 -1
  232. package/dist/formatters/date/dateValueConstants.d.ts +15 -0
  233. package/dist/formatters/date/dateValueConstants.d.ts.map +1 -0
  234. package/dist/formatters/date/educationDate.d.ts.map +1 -1
  235. package/dist/formatters/date/formatDate.d.ts.map +1 -1
  236. package/dist/formatters/date/formatInstantDateTime.d.ts.map +1 -1
  237. package/dist/formatters/date/parseDate.d.ts.map +1 -1
  238. package/dist/formatters/date/pattern.d.ts.map +1 -1
  239. package/dist/formatters/date/presets.d.ts.map +1 -1
  240. package/dist/formatters/date/types.d.ts +8 -6
  241. package/dist/formatters/date/types.d.ts.map +1 -1
  242. package/dist/formatters/formatDurationMinutes.d.ts.map +1 -1
  243. package/dist/formatters/formatFileSize.d.ts.map +1 -1
  244. package/dist/formatters/formatPhone.d.ts.map +1 -1
  245. package/dist/formatters/index.js +6 -5
  246. package/dist/formatters/normalizeLeadingZeros.d.ts.map +1 -1
  247. package/dist/formatters/number/compact.d.ts.map +1 -1
  248. package/dist/formatters/number/formatCompactNumber.d.ts.map +1 -1
  249. package/dist/formatters/number/formatNumber.d.ts.map +1 -1
  250. package/dist/formatters/number/numberFormatConstants.d.ts +11 -0
  251. package/dist/formatters/number/numberFormatConstants.d.ts.map +1 -0
  252. package/dist/formatters/number/numberPresetNameConstants.d.ts +16 -0
  253. package/dist/formatters/number/numberPresetNameConstants.d.ts.map +1 -0
  254. package/dist/formatters/number/parseNumber.d.ts.map +1 -1
  255. package/dist/formatters/number/presets.d.ts.map +1 -1
  256. package/dist/formatters/number/types.d.ts +2 -1
  257. package/dist/formatters/number/types.d.ts.map +1 -1
  258. package/dist/formatters/pipeline/clone.d.ts.map +1 -1
  259. package/dist/formatters/pipeline/definitions.d.ts.map +1 -1
  260. package/dist/formatters/pipeline/dependencies.d.ts.map +1 -1
  261. package/dist/formatters/pipeline/execute.d.ts +4 -1
  262. package/dist/formatters/pipeline/execute.d.ts.map +1 -1
  263. package/dist/formatters/pipeline/formattersPipelineConstants.d.ts +19 -0
  264. package/dist/formatters/pipeline/formattersPipelineConstants.d.ts.map +1 -0
  265. package/dist/formatters/pipeline/normalize.d.ts.map +1 -1
  266. package/dist/formatters/pipeline/pipelineValidationConstants.d.ts +40 -0
  267. package/dist/formatters/pipeline/pipelineValidationConstants.d.ts.map +1 -0
  268. package/dist/formatters/pipeline/registry.d.ts +1 -1
  269. package/dist/formatters/pipeline/registry.d.ts.map +1 -1
  270. package/dist/formatters/pipeline/rekey.d.ts.map +1 -1
  271. package/dist/formatters/pipeline/runtime.d.ts.map +1 -1
  272. package/dist/formatters/pipeline/types.d.ts +28 -25
  273. package/dist/formatters/pipeline/types.d.ts.map +1 -1
  274. package/dist/formatters/pipeline/validate.d.ts +2 -1
  275. package/dist/formatters/pipeline/validate.d.ts.map +1 -1
  276. package/dist/formatters/strings/spaceCharacterConstants.d.ts +5 -0
  277. package/dist/formatters/strings/spaceCharacterConstants.d.ts.map +1 -0
  278. package/dist/formatters/strings/stripInnerSpaces.d.ts.map +1 -1
  279. package/dist/formatters/strings/stripLeadingZeros.d.ts.map +1 -1
  280. package/dist/formatters/valueState/fixedValueStateResolver.d.ts.map +1 -1
  281. package/dist/formatters/valueState/presentation.d.ts.map +1 -1
  282. package/dist/formatters/valueState/resolveValueStateClassName.d.ts.map +1 -1
  283. package/dist/formatters/valueState/thresholdValueStateResolver.d.ts.map +1 -1
  284. package/dist/formatters/valueState/types.d.ts +2 -1
  285. package/dist/formatters/valueState/types.d.ts.map +1 -1
  286. package/dist/formatters/valueState/valueStateRegistry.d.ts.map +1 -1
  287. package/dist/formatters/valueState/valueStateResolverConstants.d.ts +6 -0
  288. package/dist/formatters/valueState/valueStateResolverConstants.d.ts.map +1 -0
  289. package/dist/formulas/execute.d.ts +3 -2
  290. package/dist/formulas/execute.d.ts.map +1 -1
  291. package/dist/formulas/index.js +1 -1
  292. package/dist/formulas/isTableFormulaDependency.d.ts.map +1 -1
  293. package/dist/formulas/tableFormulaConstants.d.ts +12 -0
  294. package/dist/formulas/tableFormulaConstants.d.ts.map +1 -0
  295. package/dist/formulas/types.d.ts +2 -1
  296. package/dist/formulas/types.d.ts.map +1 -1
  297. package/dist/formulas/validate.d.ts +2 -1
  298. package/dist/formulas/validate.d.ts.map +1 -1
  299. package/dist/hooks/index.js +110 -107
  300. package/dist/hooks/index.js.map +1 -1
  301. package/dist/hooks/useBlockBrowserZoom.d.ts.map +1 -1
  302. package/dist/hooks/useDndSortableSensors.d.ts.map +1 -1
  303. package/dist/hooks/useFloatingListbox.d.ts +15 -33
  304. package/dist/hooks/useFloatingListbox.d.ts.map +1 -1
  305. package/dist/http/index.js +8 -7
  306. package/dist/http/index.js.map +1 -1
  307. package/dist/http/textResponse.d.ts.map +1 -1
  308. package/dist/indexed-records/createIndexedRecordsSchema.d.ts.map +1 -1
  309. package/dist/indexed-records/schema.js +24 -23
  310. package/dist/indexed-records/schema.js.map +1 -1
  311. package/dist/media/breakpointConstants.d.ts +5 -0
  312. package/dist/media/breakpointConstants.d.ts.map +1 -0
  313. package/dist/media/breakpoints.d.ts +2 -1
  314. package/dist/media/breakpoints.d.ts.map +1 -1
  315. package/dist/media/createNotificationTonePlayer.d.ts.map +1 -1
  316. package/dist/media/getCurrentFontSize.d.ts.map +1 -1
  317. package/dist/media/index.js +1 -1
  318. package/dist/media/mediaQueryConstants.d.ts +3 -0
  319. package/dist/media/mediaQueryConstants.d.ts.map +1 -0
  320. package/dist/media/responsive.d.ts +1 -1
  321. package/dist/media/responsive.d.ts.map +1 -1
  322. package/dist/media/useMatchMedia.d.ts.map +1 -1
  323. package/dist/media/useMediaQuery.d.ts.map +1 -1
  324. package/dist/metadata/baseMetaTypes.d.ts +7 -0
  325. package/dist/metadata/baseMetaTypes.d.ts.map +1 -0
  326. package/dist/metadata/metadataTypes.d.ts +17 -0
  327. package/dist/metadata/metadataTypes.d.ts.map +1 -0
  328. package/dist/metadata/scalarTypeClassification.d.ts +8 -0
  329. package/dist/metadata/scalarTypeClassification.d.ts.map +1 -0
  330. package/dist/metadata/scalarTypeConstants.d.ts +21 -0
  331. package/dist/metadata/scalarTypeConstants.d.ts.map +1 -0
  332. package/dist/notifications/index.js +62 -62
  333. package/dist/notifications/index.js.map +1 -1
  334. package/dist/notifications/notificationTypeConstants.d.ts +6 -0
  335. package/dist/notifications/notificationTypeConstants.d.ts.map +1 -0
  336. package/dist/notifications/notify.d.ts.map +1 -1
  337. package/dist/notifications/store.d.ts.map +1 -1
  338. package/dist/notifications/types.d.ts +2 -1
  339. package/dist/notifications/types.d.ts.map +1 -1
  340. package/dist/number-scale/index.js +47 -46
  341. package/dist/number-scale/index.js.map +1 -1
  342. package/dist/number-scale/marksPositionConstants.d.ts +4 -0
  343. package/dist/number-scale/marksPositionConstants.d.ts.map +1 -0
  344. package/dist/number-scale/numberScale.d.ts +1 -1
  345. package/dist/number-scale/numberScale.d.ts.map +1 -1
  346. package/dist/number-scale/types.d.ts +2 -1
  347. package/dist/number-scale/types.d.ts.map +1 -1
  348. package/dist/odata-service/baseTypes.d.ts +1 -5
  349. package/dist/odata-service/baseTypes.d.ts.map +1 -1
  350. package/dist/odata-service/builder.d.ts.map +1 -1
  351. package/dist/odata-service/columns.d.ts.map +1 -1
  352. package/dist/odata-service/entityOperationConstants.d.ts +4 -0
  353. package/dist/odata-service/entityOperationConstants.d.ts.map +1 -0
  354. package/dist/odata-service/filterDefinitionConstants.d.ts +24 -0
  355. package/dist/odata-service/filterDefinitionConstants.d.ts.map +1 -0
  356. package/dist/odata-service/filterDefinitions.d.ts +19 -17
  357. package/dist/odata-service/filterDefinitions.d.ts.map +1 -1
  358. package/dist/odata-service/filterOperationConstants.d.ts +14 -0
  359. package/dist/odata-service/filterOperationConstants.d.ts.map +1 -0
  360. package/dist/odata-service/filters.d.ts.map +1 -1
  361. package/dist/odata-service/formatters.d.ts +1 -2
  362. package/dist/odata-service/formatters.d.ts.map +1 -1
  363. package/dist/odata-service/index.js +1317 -2
  364. package/dist/odata-service/index.js.map +1 -0
  365. package/dist/odata-service/odataMetadataConstants.d.ts +8 -0
  366. package/dist/odata-service/odataMetadataConstants.d.ts.map +1 -0
  367. package/dist/odata-service/parser.d.ts +1 -3
  368. package/dist/odata-service/parser.d.ts.map +1 -1
  369. package/dist/odata-service/schema.d.ts.map +1 -1
  370. package/dist/odata-service/sorts.d.ts.map +1 -1
  371. package/dist/odata-service/sqlFilters.d.ts +10 -5
  372. package/dist/odata-service/sqlFilters.d.ts.map +1 -1
  373. package/dist/odata-service/types.d.ts +13 -14
  374. package/dist/odata-service/types.d.ts.map +1 -1
  375. package/dist/odata-service/typesValidation.d.ts +1 -5
  376. package/dist/odata-service/typesValidation.d.ts.map +1 -1
  377. package/dist/pwa/index.js +72 -71
  378. package/dist/pwa/index.js.map +1 -1
  379. package/dist/pwa/sw-cache-policy.js +47 -47
  380. package/dist/pwa/sw-cache-policy.js.map +1 -1
  381. package/dist/pwa/swCachePolicy.d.ts +5 -1
  382. package/dist/pwa/swCachePolicy.d.ts.map +1 -1
  383. package/dist/pwa/useBrowserOnlineStatus.d.ts.map +1 -1
  384. package/dist/query-client/broadcast.d.ts +4 -3
  385. package/dist/query-client/broadcast.d.ts.map +1 -1
  386. package/dist/query-client/createQueryRestoreSchedulerGuard.d.ts.map +1 -1
  387. package/dist/query-client/createQueryRestoreStorage.d.ts.map +1 -1
  388. package/dist/query-client/index.js +1 -1
  389. package/dist/query-client/invalidationBroadcast.d.ts +2 -1
  390. package/dist/query-client/invalidationBroadcast.d.ts.map +1 -1
  391. package/dist/query-client/persistence.d.ts +9 -6
  392. package/dist/query-client/persistence.d.ts.map +1 -1
  393. package/dist/query-client/queryCacheEventConstants.d.ts +11 -0
  394. package/dist/query-client/queryCacheEventConstants.d.ts.map +1 -0
  395. package/dist/query-client/queryClient.d.ts +2 -1
  396. package/dist/query-client/queryClient.d.ts.map +1 -1
  397. package/dist/query-client/queryMeta.d.ts.map +1 -1
  398. package/dist/query-client/sessionPersistenceConstants.d.ts +5 -0
  399. package/dist/query-client/sessionPersistenceConstants.d.ts.map +1 -0
  400. package/dist/query-client/sessionScoped.d.ts.map +1 -1
  401. package/dist/query-client/sessionScopedResetConstants.d.ts +4 -0
  402. package/dist/query-client/sessionScopedResetConstants.d.ts.map +1 -0
  403. package/dist/query-client/sessionScopedResetLifecycleTypes.d.ts +2 -1
  404. package/dist/query-client/sessionScopedResetLifecycleTypes.d.ts.map +1 -1
  405. package/dist/seo/index.js +0 -1
  406. package/dist/seo/index.js.map +1 -1
  407. package/dist/seo/seo.d.ts +3 -2
  408. package/dist/seo/seo.d.ts.map +1 -1
  409. package/dist/seo/seoContentTypeConstants.d.ts +6 -0
  410. package/dist/seo/seoContentTypeConstants.d.ts.map +1 -0
  411. package/dist/seo/types.d.ts +2 -1
  412. package/dist/seo/types.d.ts.map +1 -1
  413. package/dist/session-storage/index.js +1 -1
  414. package/dist/table/cellSelection.d.ts.map +1 -1
  415. package/dist/table/index.js +83 -79
  416. package/dist/table/index.js.map +1 -1
  417. package/dist/table/odataAdapter.d.ts +3 -3
  418. package/dist/table/odataAdapter.d.ts.map +1 -1
  419. package/dist/table/selection.d.ts +2 -2
  420. package/dist/table/selection.d.ts.map +1 -1
  421. package/dist/table/tableColumnConstants.d.ts +5 -0
  422. package/dist/table/tableColumnConstants.d.ts.map +1 -0
  423. package/dist/table/tableSelectionConstants.d.ts +8 -0
  424. package/dist/table/tableSelectionConstants.d.ts.map +1 -0
  425. package/dist/table/tanStackFeatures.d.ts +8 -8
  426. package/dist/table/types.d.ts +5 -3
  427. package/dist/table/types.d.ts.map +1 -1
  428. package/dist/table/useTableRowSelection.d.ts +2 -2
  429. package/dist/table/useTableRowSelection.d.ts.map +1 -1
  430. package/dist/table-document/index.js +88 -87
  431. package/dist/table-document/index.js.map +1 -1
  432. package/dist/table-document/insertTableDocumentAxis.d.ts +2 -1
  433. package/dist/table-document/insertTableDocumentAxis.d.ts.map +1 -1
  434. package/dist/table-document/tableDocument.d.ts +2 -1
  435. package/dist/table-document/tableDocument.d.ts.map +1 -1
  436. package/dist/table-document/tableDocumentAxisGroups.d.ts +4 -3
  437. package/dist/table-document/tableDocumentAxisGroups.d.ts.map +1 -1
  438. package/dist/table-document/tableDocumentConstants.d.ts +8 -0
  439. package/dist/table-document/tableDocumentConstants.d.ts.map +1 -0
  440. package/dist/table-document/tableDocumentGeometry.d.ts.map +1 -1
  441. package/dist/three-scene/index.js +32 -32
  442. package/dist/three-scene/index.js.map +1 -1
  443. package/dist/three-scene/threeSceneAvailability.d.ts +4 -3
  444. package/dist/three-scene/threeSceneAvailability.d.ts.map +1 -1
  445. package/dist/three-scene/threeSceneConstants.d.ts +14 -0
  446. package/dist/three-scene/threeSceneConstants.d.ts.map +1 -0
  447. package/dist/three-scene/useThreeSceneAvailability.d.ts.map +1 -1
  448. package/dist/tree-table/index.js +1 -1
  449. package/dist/types/abapBooleanConstants.d.ts +4 -0
  450. package/dist/types/abapBooleanConstants.d.ts.map +1 -0
  451. package/dist/types/index.js.map +1 -1
  452. package/dist/types/types.d.ts +4 -2
  453. package/dist/types/types.d.ts.map +1 -1
  454. package/dist/types/valueStateConstants.d.ts +8 -0
  455. package/dist/types/valueStateConstants.d.ts.map +1 -0
  456. package/dist/utils/cloneFunctionStrategyConstants.d.ts +4 -0
  457. package/dist/utils/cloneFunctionStrategyConstants.d.ts.map +1 -0
  458. package/dist/utils/createLazyComponent.d.ts.map +1 -1
  459. package/dist/utils/deepCloneWithoutFunctions.d.ts +2 -1
  460. package/dist/utils/deepCloneWithoutFunctions.d.ts.map +1 -1
  461. package/dist/utils/deepCopyWithoutFunctions.d.ts +2 -1
  462. package/dist/utils/deepCopyWithoutFunctions.d.ts.map +1 -1
  463. package/dist/utils/index.js +2 -209
  464. package/dist/utils/keyboard.d.ts +2 -1
  465. package/dist/utils/keyboard.d.ts.map +1 -1
  466. package/dist/utils/keyboardConstants.d.ts +16 -0
  467. package/dist/utils/keyboardConstants.d.ts.map +1 -0
  468. package/dist/validators/index.js +3 -3
  469. package/dist/validators/index.js.map +1 -1
  470. package/dist/validators/validateUrl.d.ts.map +1 -1
  471. package/dist/value-transformers/execute.d.ts.map +1 -1
  472. package/dist/value-transformers/index.js +9 -6
  473. package/dist/value-transformers/index.js.map +1 -1
  474. package/dist/value-transformers/types.d.ts +3 -2
  475. package/dist/value-transformers/types.d.ts.map +1 -1
  476. package/dist/value-transformers/valueTransformerConstants.d.ts +4 -0
  477. package/dist/value-transformers/valueTransformerConstants.d.ts.map +1 -0
  478. package/package.json +6 -5
  479. package/src/binary/README.mdx +1 -1
  480. package/src/dom/README.mdx +1 -1
  481. package/src/formatters/README.mdx +5 -0
  482. package/src/foundationLib.mdx +8 -0
  483. package/src/metadata/README.md +35 -0
  484. package/src/odata-service/README.mdx +36 -1
  485. package/src/query-client/README.mdx +4 -4
  486. package/dist/chunks/dom-BK22UmgF.js.map +0 -1
  487. package/dist/chunks/formatters-CZnnbdud.js.map +0 -1
  488. package/dist/chunks/formulas-BXT_XBWI.js.map +0 -1
  489. package/dist/chunks/media-WK38KtMl.js +0 -191
  490. package/dist/chunks/media-WK38KtMl.js.map +0 -1
  491. package/dist/chunks/odata-service-tp2U5yIr.js +0 -2211
  492. package/dist/chunks/odata-service-tp2U5yIr.js.map +0 -1
  493. package/dist/chunks/query-client-CVRfrYZM.js.map +0 -1
  494. package/dist/chunks/uuid-CUJPAbRY.js.map +0 -1
  495. package/dist/chunks/validate-CEQHqevt.js +0 -608
  496. package/dist/chunks/validate-CEQHqevt.js.map +0 -1
  497. package/dist/utils/index.js.map +0 -1
@@ -1,41 +1,41 @@
1
- import { Ut as e } from "../chunks/formatters-CZnnbdud.js";
2
- import { _ as t } from "../chunks/array-D-_yMMUK.js";
3
- import { stableStringify as n } from "../utils/index.js";
4
- import { tn as r } from "../chunks/odata-service-tp2U5yIr.js";
5
- import { t as i } from "../chunks/uuid-CUJPAbRY.js";
1
+ import { Ut as e } from "../chunks/formatters-CO40zvVB.js";
2
+ import { _ as t } from "../chunks/array-bd7LYFto.js";
3
+ import { a as n } from "../chunks/utils-DW0Yso1Q.js";
4
+ import { b as r } from "../chunks/formatDate-CNPcfNte.js";
5
+ import { t as i } from "../chunks/uuid-izDzLv18.js";
6
6
  import { hashString128 as a } from "../crypto/index.js";
7
7
  import { ERROR_REPORT_BUILD_ID_PATTERN as o } from "../error-report-build/index.js";
8
- import { p as s } from "../chunks/query-client-CVRfrYZM.js";
8
+ import { p as s } from "../chunks/query-client-D0HQZ84w.js";
9
9
  import { getSessionStorageId as ee } from "../session-storage/index.js";
10
10
  import { z as c } from "zod";
11
- //#region src/error-report/captureOptions.ts
12
- var te = 16384, ne = {
13
- valuePolicy: "redacted",
11
+ //#region src/error-report/capturePolicyConstants.ts
12
+ var te = "redacted", l = "verbatim", ne = 8192, re = 16384, ie = 2048, u = 2048, ae = 32768, oe = {
13
+ valuePolicy: te,
14
14
  dataPreviewBytes: {
15
15
  query: 0,
16
16
  persistedQuery: 0,
17
17
  mutation: 0
18
18
  }
19
- }, re = ne;
20
- function l(e) {
21
- return e === void 0 || !Number.isFinite(e) ? 0 : Math.max(0, Math.min(te, Math.trunc(e)));
19
+ }, se = oe;
20
+ function ce(e) {
21
+ return e === void 0 || !Number.isFinite(e) ? 0 : Math.max(0, Math.min(re, Math.trunc(e)));
22
22
  }
23
- function ie(e) {
24
- re = e ? {
25
- valuePolicy: e.valuePolicy ?? ne.valuePolicy,
23
+ function le(e) {
24
+ se = e ? {
25
+ valuePolicy: e.valuePolicy ?? oe.valuePolicy,
26
26
  dataPreviewBytes: {
27
- query: l(e.dataPreviewBytes?.query),
28
- persistedQuery: l(e.dataPreviewBytes?.persistedQuery),
29
- mutation: l(e.dataPreviewBytes?.mutation)
27
+ query: ce(e.dataPreviewBytes?.query),
28
+ persistedQuery: ce(e.dataPreviewBytes?.persistedQuery),
29
+ mutation: ce(e.dataPreviewBytes?.mutation)
30
30
  }
31
- } : ne;
31
+ } : oe;
32
32
  }
33
- function u() {
34
- return re;
33
+ function d() {
34
+ return se;
35
35
  }
36
36
  //#endregion
37
- //#region src/error-report/safeValue.ts
38
- var ae = 4, oe = 20, d = 40, se = 4096, ce = 8192, le = "[REDACTED]", ue = [
37
+ //#region src/error-report/errorReportContractConstants.ts
38
+ var ue = "query", de = "mutation", fe = "runtime", pe = "react", me = "mutation", he = "pending", ge = "sending", _e = "sent", ve = "failed", ye = "route", be = "click", xe = "visibility", Se = "query-error", Ce = "mutation-error", we = "runtime-error", Te = "development", Ee = "production", f = "breadcrumb-detail", p = "context", De = "draft-failed-reason", Oe = "mutation-key", ke = "mutation-meta", Ae = "persisted-query-key", je = "query-data-shape", Me = "query-meta", Ne = "stack-trace", Pe = "payload-size", m = "truncated", Fe = "non-finite-number", Ie = "undefined", Le = "function", Re = "symbol", ze = "invalid-date", Be = "unknown", Ve = "circular", He = "unreadable", Ue = "[REDACTED]", We = 4, Ge = 4096, Ke = 3, qe = "https://error-report.invalid", Je = "[TRUNCATED]", Ye = [
39
39
  "apikey",
40
40
  "authorization",
41
41
  "cookie",
@@ -46,303 +46,303 @@ var ae = 4, oe = 20, d = 40, se = 4096, ce = 8192, le = "[REDACTED]", ue = [
46
46
  "secret",
47
47
  "sessiontoken",
48
48
  "token"
49
- ], de = "url", f;
50
- function fe(e) {
49
+ ], Xe = "url", Ze;
50
+ function Qe(e) {
51
51
  return e.toLowerCase().replace(/[^a-z0-9]/g, "");
52
52
  }
53
- function pe(e) {
54
- let t = fe(e);
55
- return ue.some((e) => t.includes(e));
53
+ function $e(e) {
54
+ let t = Qe(e);
55
+ return Ye.some((e) => t.includes(e));
56
56
  }
57
- function me(e) {
58
- return fe(e).endsWith(de);
57
+ function et(e) {
58
+ return Qe(e).endsWith(Xe);
59
59
  }
60
- function he(e) {
60
+ function tt(e) {
61
61
  return /^(?:https?:\/\/|\/)[^\s]*[?#]/i.test(e);
62
62
  }
63
- function ge(e) {
63
+ function nt(e) {
64
64
  try {
65
- let t = new URL(e, "https://error-report.invalid"), n = t.pathname;
66
- return t.origin === "https://error-report.invalid" ? n : `${t.origin}${n}`;
65
+ let t = new URL(e, qe), n = t.pathname;
66
+ return t.origin === qe ? n : `${t.origin}${n}`;
67
67
  } catch {
68
68
  return e.split(/[?#]/, 1)[0] ?? e;
69
69
  }
70
70
  }
71
- function p(e, t = se) {
72
- if (u().valuePolicy === "verbatim") {
71
+ function h(e, t = Ge) {
72
+ if (d().valuePolicy === "verbatim") {
73
73
  if (e.length <= t) return e;
74
74
  let n = `… [TRUNCATED: ${e.length} characters total]`;
75
- if (n.length > t) return "[TRUNCATED]".slice(0, Math.max(0, t));
75
+ if (n.length > t) return Je.slice(0, Math.max(0, t));
76
76
  let r = e.slice(0, Math.max(0, t - n.length)), i = r.charCodeAt(r.length - 1);
77
77
  return `${i >= 55296 && i <= 56319 ? r.slice(0, -1) : r}${n}`;
78
78
  }
79
79
  let n = e.slice(0, t);
80
80
  return /\bbearer\s/i.test(n) && (n = n.replace(/\bBearer\s+[A-Za-z0-9._~+/=-]{8,}/gi, "Bearer [REDACTED]")), n.includes("@") && (n = n.replace(/[A-Z0-9._%+-]{1,254}@[A-Z0-9.-]{1,253}\.[A-Z]{2,63}/gi, "[REDACTED_EMAIL]")), n;
81
81
  }
82
- function m(e) {
82
+ function g(e) {
83
83
  return new TextEncoder().encode(e).byteLength;
84
84
  }
85
- function h(e, t) {
86
- if (u().valuePolicy === "verbatim") {
87
- let n = m(e);
85
+ function _(e, t) {
86
+ if (d().valuePolicy === "verbatim") {
87
+ let n = g(e);
88
88
  if (n <= t) return e;
89
89
  let r = `… [TRUNCATED: ${n} UTF-8 bytes total]`;
90
- if (m(r) > t) return "[TRUNCATED]".slice(0, Math.max(0, t));
91
- let i = Math.max(0, t - m(r)), a = 0, o = e.length;
90
+ if (g(r) > t) return Je.slice(0, Math.max(0, t));
91
+ let i = Math.max(0, t - g(r)), a = 0, o = e.length;
92
92
  for (; a < o;) {
93
93
  let t = Math.ceil((a + o) / 2);
94
- m(e.slice(0, t)) <= i ? a = t : o = t - 1;
94
+ g(e.slice(0, t)) <= i ? a = t : o = t - 1;
95
95
  }
96
96
  let s = e.charCodeAt(a - 1), ee = s >= 55296 && s <= 56319 ? a - 1 : a;
97
97
  return `${e.slice(0, ee)}${r}`;
98
98
  }
99
- let n = p(e, t);
100
- if (m(n) <= t) return n;
99
+ let n = h(e, t);
100
+ if (g(n) <= t) return n;
101
101
  let r = 0, i = n.length;
102
102
  for (; r < i;) {
103
103
  let e = Math.ceil((r + i) / 2);
104
- m(n.slice(0, e)) <= t ? r = e : i = e - 1;
104
+ g(n.slice(0, e)) <= t ? r = e : i = e - 1;
105
105
  }
106
106
  let a = n.charCodeAt(r - 1), o = a >= 55296 && a <= 56319 ? r - 1 : r;
107
107
  return n.slice(0, o);
108
108
  }
109
- function g(e, t, n, r) {
110
- let i = u().valuePolicy === "verbatim";
111
- if (!i && r && pe(r)) return le;
112
- if (t >= ae) return { type: "truncated" };
109
+ function v(e, t, n, r) {
110
+ let i = d().valuePolicy === l;
111
+ if (!i && r && $e(r)) return Ue;
112
+ if (t >= We) return { type: m };
113
113
  if (e === null || typeof e == "boolean") return e;
114
- if (typeof e == "number") return Number.isFinite(e) ? e : { type: "non-finite-number" };
115
- if (typeof e == "string") return p(!i && (r && me(r) || he(e)) ? ge(e) : e, n.maxStringLength);
116
- if (e === void 0) return { type: "undefined" };
117
- if (e instanceof Date) return Number.isNaN(e.getTime()) ? { type: "invalid-date" } : e.toISOString();
114
+ if (typeof e == "number") return Number.isFinite(e) ? e : { type: Fe };
115
+ if (typeof e == "string") return h(!i && (r && et(r) || tt(e)) ? nt(e) : e, n.maxStringLength);
116
+ if (e === void 0) return { type: Ie };
117
+ if (e instanceof Date) return Number.isNaN(e.getTime()) ? { type: ze } : e.toISOString();
118
118
  if (typeof e == "object") {
119
- if (n.seen.has(e)) return { type: "circular" };
119
+ if (n.seen.has(e)) return { type: Ve };
120
120
  n.seen.add(e);
121
121
  }
122
122
  if (Array.isArray(e)) {
123
- let r = i && e.length > oe ? 19 : oe, a = e.slice(0, r).map((e) => g(e, t + 1, n));
123
+ let r = i && e.length > 20 ? 19 : 20, a = e.slice(0, r).map((e) => v(e, t + 1, n));
124
124
  return i && e.length > r && a.push({
125
- type: "truncated",
125
+ type: m,
126
126
  omittedItems: e.length - r
127
127
  }), a;
128
128
  }
129
129
  if (typeof e == "object") try {
130
- let r = Object.entries(e).sort(([e], [t]) => e.localeCompare(t)), a = i && r.length > d ? 39 : d, o = Object.fromEntries(r.slice(0, a).map(([e, r]) => [e, g(r, t + 1, n, e)]));
130
+ let r = Object.entries(e).sort(([e], [t]) => e.localeCompare(t)), a = i && r.length > 40 ? 39 : 40, o = Object.fromEntries(r.slice(0, a).map(([e, r]) => [e, v(r, t + 1, n, e)]));
131
131
  if (i && r.length > a) {
132
132
  let t = "$truncated";
133
133
  for (; Object.hasOwn(e, t);) t += "_";
134
134
  o[t] = {
135
- type: "truncated",
135
+ type: m,
136
136
  omittedKeys: r.length - a
137
137
  };
138
138
  }
139
139
  return o;
140
140
  } catch {
141
- return { type: "unreadable" };
141
+ return { type: He };
142
142
  }
143
- return typeof e == "function" ? { type: "function" } : typeof e == "symbol" ? { type: "symbol" } : typeof e == "bigint" ? e.toString() : { type: "unknown" };
143
+ return typeof e == "function" ? { type: Le } : typeof e == "symbol" ? { type: Re } : typeof e == "bigint" ? e.toString() : { type: Be };
144
144
  }
145
- function _e(e, t = 0) {
146
- return g(e, t, {
145
+ function rt(e, t = 0) {
146
+ return v(e, t, {
147
147
  seen: /* @__PURE__ */ new WeakSet(),
148
- maxStringLength: se
148
+ maxStringLength: Ge
149
149
  });
150
150
  }
151
- function _(e, t = 0) {
152
- if (t >= ae) return { type: "truncated" };
151
+ function y(e, t = 0) {
152
+ if (t >= We) return { type: m };
153
153
  if (e === null) return { type: "null" };
154
- if (e === void 0) return { type: "undefined" };
154
+ if (e === void 0) return { type: Ie };
155
155
  if (Array.isArray(e)) return {
156
156
  type: "array",
157
157
  length: e.length,
158
- firstItemsShape: e.slice(0, 3).map((e) => _(e, t + 1))
158
+ firstItemsShape: e.slice(0, Ke).map((e) => y(e, t + 1))
159
159
  };
160
160
  if (typeof e == "object") {
161
- let n = Object.entries(e).slice(0, d);
161
+ let n = Object.entries(e).slice(0, 40);
162
162
  return {
163
163
  type: "object",
164
164
  keys: n.map(([e]) => e),
165
- shape: Object.fromEntries(n.map(([e, n]) => [e, _(n, t + 1)]))
165
+ shape: Object.fromEntries(n.map(([e, n]) => [e, y(n, t + 1)]))
166
166
  };
167
167
  }
168
168
  return { type: typeof e };
169
169
  }
170
- function ve(e) {
171
- f = e;
170
+ function it(e) {
171
+ Ze = e;
172
172
  }
173
- function v(e, t, n = se) {
174
- let r = t.scope === "query-key" || t.scope === "mutation-key" || t.scope === "persisted-query-key", i = u().valuePolicy === "verbatim" && r ? Math.max(n, ce) : n, a = (e) => g(e, 0, {
173
+ function b(e, t, n = Ge) {
174
+ let r = t.scope === "query-key" || t.scope === "mutation-key" || t.scope === "persisted-query-key", i = d().valuePolicy === "verbatim" && r ? Math.max(n, ne) : n, a = (e) => v(e, 0, {
175
175
  seen: /* @__PURE__ */ new WeakSet(),
176
176
  maxStringLength: i
177
177
  }), o = a(e);
178
- if (!f) return o;
178
+ if (!Ze) return o;
179
179
  try {
180
- let e = f(o, t);
180
+ let e = Ze(o, t);
181
181
  return e === void 0 ? void 0 : a(e);
182
182
  } catch {
183
183
  return;
184
184
  }
185
185
  }
186
- function y(e, t = { scope: "context" }) {
186
+ function x(e, t = { scope: p }) {
187
187
  if (!e) return;
188
- let n = v(e, t);
188
+ let n = b(e, t);
189
189
  if (!(!n || Array.isArray(n) || typeof n != "object")) return Object.keys(n).length ? n : void 0;
190
190
  }
191
191
  //#endregion
192
192
  //#region src/error-report/breadcrumbs.ts
193
- var ye = 20, be = 120, xe = [
193
+ var at = "click", ot = "visibilitychange", st = "data-error-report-target", ct = "data-ui", lt = "data-action", ut = 20, dt = 120, ft = [
194
194
  "button",
195
195
  "a",
196
196
  "input",
197
197
  "select",
198
198
  "textarea",
199
199
  "[role]"
200
- ].join(","), Se = /^[a-z0-9][a-z0-9._:/-]*$/i, b = [];
201
- function Ce() {
200
+ ].join(","), pt = /^[a-z0-9][a-z0-9._:/-]*$/i, S = [];
201
+ function mt() {
202
202
  return (/* @__PURE__ */ new Date()).toISOString();
203
203
  }
204
- function x(e) {
205
- b = [...b, {
204
+ function C(e) {
205
+ S = [...S, {
206
206
  ...e,
207
- utc: p(e.utc ?? Ce(), 64),
208
- routeId: e.routeId ? p(u().valuePolicy === "verbatim" ? e.routeId : e.routeId.split(/[?#]/, 1)[0] ?? e.routeId, 512) : void 0,
209
- appId: e.appId ? p(e.appId, 128) : void 0,
210
- viewId: e.viewId ? p(e.viewId, 128) : void 0,
211
- target: e.target ? p(e.target, 2048) : void 0,
212
- detail: y(e.detail, {
213
- scope: "breadcrumb-detail",
207
+ utc: h(e.utc ?? mt(), 64),
208
+ routeId: e.routeId ? h(d().valuePolicy === "verbatim" ? e.routeId : e.routeId.split(/[?#]/, 1)[0] ?? e.routeId, 512) : void 0,
209
+ appId: e.appId ? h(e.appId, 128) : void 0,
210
+ viewId: e.viewId ? h(e.viewId, 128) : void 0,
211
+ target: e.target ? h(e.target, ie) : void 0,
212
+ detail: x(e.detail, {
213
+ scope: f,
214
214
  source: e.type
215
215
  })
216
216
  }].slice(-80);
217
217
  }
218
- function we() {
219
- return b.slice();
218
+ function ht() {
219
+ return S.slice();
220
220
  }
221
- function Te() {
222
- b = [];
221
+ function gt() {
222
+ S = [];
223
223
  }
224
- function Ee(t) {
225
- return e(t, be);
224
+ function _t(t) {
225
+ return e(t, dt);
226
226
  }
227
- function De(e) {
228
- let t = Ee(e.getAttribute("data-error-report-target"));
229
- return t && Se.test(t) ? t : void 0;
227
+ function vt(e) {
228
+ let t = _t(e.getAttribute(st));
229
+ return t && pt.test(t) ? t : void 0;
230
230
  }
231
- function S(e, t) {
232
- let n = Ee(e.getAttribute(t));
233
- return n && Se.test(n) ? n : void 0;
231
+ function w(e, t) {
232
+ let n = _t(e.getAttribute(t));
233
+ return n && pt.test(n) ? n : void 0;
234
234
  }
235
- function Oe(e) {
236
- let t = De(e);
235
+ function yt(e) {
236
+ let t = vt(e);
237
237
  return {
238
- role: S(e, "role"),
239
- type: S(e, "type"),
238
+ role: w(e, "role"),
239
+ type: w(e, "type"),
240
240
  errorReportTarget: t,
241
- dataUi: t ? void 0 : S(e, "data-ui"),
242
- dataAction: t ? void 0 : S(e, "data-action")
241
+ dataUi: t ? void 0 : w(e, ct),
242
+ dataAction: t ? void 0 : w(e, lt)
243
243
  };
244
244
  }
245
- function ke(e) {
245
+ function bt(e) {
246
246
  return typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(e) : e.replace(/["\\#.[\]>~+:]/g, "\\$&");
247
247
  }
248
- function Ae(e) {
249
- let t = Oe(e), n = [e.tagName.toLowerCase()];
250
- return t.role && n.push(`[role="${t.role}"]`), t.type && n.push(`[type="${t.type}"]`), t.errorReportTarget ? n.push(`[data-error-report-target="${ke(t.errorReportTarget)}"]`) : (t.dataUi && n.push(`[data-ui="${ke(t.dataUi)}"]`), t.dataAction && n.push(`[data-action="${ke(t.dataAction)}"]`)), n.join("");
248
+ function xt(e) {
249
+ let t = yt(e), n = [e.tagName.toLowerCase()];
250
+ return t.role && n.push(`[role="${t.role}"]`), t.type && n.push(`[type="${t.type}"]`), t.errorReportTarget ? n.push(`[${st}="${bt(t.errorReportTarget)}"]`) : (t.dataUi && n.push(`[${ct}="${bt(t.dataUi)}"]`), t.dataAction && n.push(`[${lt}="${bt(t.dataAction)}"]`)), n.join("");
251
251
  }
252
- function je(e) {
253
- let t = Oe(e);
252
+ function St(e) {
253
+ let t = yt(e);
254
254
  return {
255
255
  tag: e.tagName.toLowerCase(),
256
- selector: Ae(e),
256
+ selector: xt(e),
257
257
  ...t
258
258
  };
259
259
  }
260
- function Me(e) {
260
+ function Ct(e) {
261
261
  return Object.fromEntries(Object.entries(e).filter(([, e]) => e !== void 0 && (!Array.isArray(e) || e.length > 0)));
262
262
  }
263
- function Ne(e) {
263
+ function wt(e) {
264
264
  let t = [], n = e;
265
- for (; n && n !== document.documentElement && t.length < ye && (t.push(n), n !== document.body);) n = n.parentElement;
265
+ for (; n && n !== document.documentElement && t.length < ut && (t.push(n), n !== document.body);) n = n.parentElement;
266
266
  return t;
267
267
  }
268
- function Pe(e) {
269
- let t = Ne(e);
270
- return t.find((e) => De(e)) || (t.find((e) => e.matches(xe) || S(e, "data-action") !== void 0 || S(e, "data-ui") !== void 0) ?? e);
268
+ function Tt(e) {
269
+ let t = wt(e);
270
+ return t.find((e) => vt(e)) || (t.find((e) => e.matches(ft) || w(e, lt) !== void 0 || w(e, ct) !== void 0) ?? e);
271
271
  }
272
- function Fe(e) {
273
- if (e instanceof Element) return Ne(Pe(e)).map((e) => Ae(e)).join(" > ");
272
+ function Et(e) {
273
+ if (e instanceof Element) return wt(Tt(e)).map((e) => xt(e)).join(" > ");
274
274
  }
275
- function Ie(e) {
276
- let t = e.target instanceof Element ? e.target : void 0, n = t ? Pe(t) : void 0, r = n ? Ne(n).map((e) => Me(je(e))) : [];
277
- return y({
275
+ function Dt(e) {
276
+ let t = e.target instanceof Element ? e.target : void 0, n = t ? Tt(t) : void 0, r = n ? wt(n).map((e) => Ct(St(e))) : [];
277
+ return x({
278
278
  button: e.button,
279
279
  ctrlKey: e.ctrlKey,
280
280
  shiftKey: e.shiftKey,
281
281
  altKey: e.altKey,
282
282
  clientX: e.clientX,
283
283
  clientY: e.clientY,
284
- target: n ? Me(je(n)) : void 0,
284
+ target: n ? Ct(St(n)) : void 0,
285
285
  chain: r
286
286
  }, {
287
- scope: "breadcrumb-detail",
288
- source: "click"
287
+ scope: f,
288
+ source: be
289
289
  });
290
290
  }
291
- function Le() {
291
+ function Ot() {
292
292
  if (typeof window > "u") return () => void 0;
293
293
  let e = (e) => {
294
- x({
295
- type: "click",
296
- target: Fe(e.target),
297
- detail: Ie(e)
294
+ C({
295
+ type: be,
296
+ target: Et(e.target),
297
+ detail: Dt(e)
298
298
  });
299
299
  }, t = () => {
300
- x({
301
- type: "visibility",
302
- detail: y({ visibilityState: document.visibilityState }, {
303
- scope: "breadcrumb-detail",
304
- source: "visibility"
300
+ C({
301
+ type: xe,
302
+ detail: x({ visibilityState: document.visibilityState }, {
303
+ scope: f,
304
+ source: xe
305
305
  })
306
306
  });
307
307
  };
308
- return window.addEventListener("click", e, !0), document.addEventListener("visibilitychange", t), () => {
309
- window.removeEventListener("click", e, !0), document.removeEventListener("visibilitychange", t);
308
+ return window.addEventListener(at, e, !0), document.addEventListener(ot, t), () => {
309
+ window.removeEventListener(at, e, !0), document.removeEventListener(ot, t);
310
310
  };
311
311
  }
312
312
  //#endregion
313
313
  //#region src/error-report/dataPreview.ts
314
- var Re = 6, ze = 12, Be = 24, Ve = 1024, He = 128;
315
- function C(e, t, n) {
316
- if (t >= Re || n.nodesLeft-- <= 0) return n.truncated = !0, { type: "truncated" };
314
+ var kt = 6, At = 12, jt = 24, Mt = 1024, Nt = 128, Pt = 4;
315
+ function Ft(e, t, n) {
316
+ if (t >= kt || n.nodesLeft-- <= 0) return n.truncated = !0, { type: m };
317
317
  if (e === null || typeof e == "boolean") return e;
318
- if (typeof e == "number") return Number.isFinite(e) ? e : { type: "non-finite-number" };
318
+ if (typeof e == "number") return Number.isFinite(e) ? e : { type: Fe };
319
319
  if (typeof e == "string") {
320
- e.length > Ve && (n.truncated = !0);
321
- let t = e.slice(0, Ve), r = t.charCodeAt(t.length - 1);
320
+ e.length > Mt && (n.truncated = !0);
321
+ let t = e.slice(0, Mt), r = t.charCodeAt(t.length - 1);
322
322
  return r >= 55296 && r <= 56319 ? t.slice(0, -1) : t;
323
323
  }
324
324
  if (typeof e == "bigint") return e.toString();
325
- if (e === void 0) return { type: "undefined" };
326
- if (typeof e == "function") return { type: "function" };
327
- if (typeof e == "symbol") return { type: "symbol" };
328
- if (e instanceof Date) return Number.isNaN(e.getTime()) ? { type: "invalid-date" } : e.toISOString();
329
- if (typeof e != "object") return { type: "unknown" };
330
- if (n.seen.has(e)) return { type: "circular" };
331
- if (n.seen.add(e), Array.isArray(e)) return e.length > ze && (n.truncated = !0), e.slice(0, ze).map((e) => C(e, t + 1, n));
325
+ if (e === void 0) return { type: Ie };
326
+ if (typeof e == "function") return { type: Le };
327
+ if (typeof e == "symbol") return { type: Re };
328
+ if (e instanceof Date) return Number.isNaN(e.getTime()) ? { type: ze } : e.toISOString();
329
+ if (typeof e != "object") return { type: Be };
330
+ if (n.seen.has(e)) return { type: Ve };
331
+ if (n.seen.add(e), Array.isArray(e)) return e.length > At && (n.truncated = !0), e.slice(0, At).map((e) => Ft(e, t + 1, n));
332
332
  try {
333
333
  let r = Object.entries(e);
334
- return r.length > Be && (n.truncated = !0), Object.fromEntries(r.slice(0, Be).map(([e, r]) => [e, C(r, t + 1, n)]));
334
+ return r.length > jt && (n.truncated = !0), Object.fromEntries(r.slice(0, jt).map(([e, r]) => [e, Ft(r, t + 1, n)]));
335
335
  } catch {
336
- return { type: "unreadable" };
336
+ return { type: He };
337
337
  }
338
338
  }
339
- function Ue(e) {
339
+ function It(e) {
340
340
  let t = Array.from(e);
341
341
  return t.slice(0, Math.floor(t.length / 2)).join("");
342
342
  }
343
- function We(e) {
343
+ function Lt(e) {
344
344
  if (typeof e == "string") return e ? {
345
- value: Ue(e),
345
+ value: It(e),
346
346
  changed: !0
347
347
  } : {
348
348
  value: e,
@@ -354,7 +354,7 @@ function We(e) {
354
354
  changed: !0
355
355
  };
356
356
  if (e.length === 1) {
357
- let t = We(e[0]);
357
+ let t = Lt(e[0]);
358
358
  return t.changed ? (e[0] = t.value, {
359
359
  value: e,
360
360
  changed: !0
@@ -375,7 +375,7 @@ function We(e) {
375
375
  changed: !1
376
376
  };
377
377
  if (t.length === 1) {
378
- let t = We(e[n]);
378
+ let t = Lt(e[n]);
379
379
  if (t.changed) return e[n] = t.value, {
380
380
  value: e,
381
381
  changed: !0
@@ -391,15 +391,15 @@ function We(e) {
391
391
  changed: !1
392
392
  };
393
393
  }
394
- function w(e, t) {
394
+ function T(e, t) {
395
395
  let n = {
396
396
  seen: /* @__PURE__ */ new WeakSet(),
397
- nodesLeft: He,
397
+ nodesLeft: Nt,
398
398
  truncated: !1
399
- }, r = C(e, 0, n), i = JSON.stringify(r), a = Math.max(4, t);
400
- for (; m(i) > a;) {
399
+ }, r = Ft(e, 0, n), i = JSON.stringify(r), a = Math.max(Pt, t);
400
+ for (; g(i) > a;) {
401
401
  n.truncated = !0;
402
- let e = We(r);
402
+ let e = Lt(r);
403
403
  r = e.changed ? e.value : null, i = JSON.stringify(r);
404
404
  }
405
405
  return {
@@ -409,155 +409,159 @@ function w(e, t) {
409
409
  }
410
410
  //#endregion
411
411
  //#region src/error-report/payload.ts
412
- var Ge = 1, T = 262144, Ke = 131072, E = 65536, qe = 32768, Je = 256, Ye = 128, D = 2048;
413
- function Xe(e) {
412
+ var Rt = 1, E = 262144, D = 131072, O = 65536, zt = 128, Bt = 128, Vt = 4096, Ht = 10, Ut = 10, Wt = 10, Gt = 20, Kt = [
413
+ 512,
414
+ 128,
415
+ 4
416
+ ], k = "bytes", qt = "characters";
417
+ function Jt(e) {
414
418
  return new TextEncoder().encode(JSON.stringify(e)).byteLength;
415
419
  }
416
- function Ze(e) {
417
- return p(u().valuePolicy === "verbatim" ? e : e.split(/[?#]/, 1)[0] ?? e, D);
420
+ function Yt(e) {
421
+ return h(d().valuePolicy === "verbatim" ? e : e.split(/[?#]/, 1)[0] ?? e, u);
418
422
  }
419
- function Qe(e, t) {
420
- if (!(!e || t <= 0 || u().valuePolicy !== "verbatim")) try {
423
+ function Xt(e, t) {
424
+ if (!(!e || t <= 0 || d().valuePolicy !== "verbatim")) try {
421
425
  let n = JSON.parse(e.json);
422
- return m(e.json) <= t ? e : {
423
- ...w(n, t),
426
+ return g(e.json) <= t ? e : {
427
+ ...T(n, t),
424
428
  truncated: !0
425
429
  };
426
430
  } catch {
427
431
  return;
428
432
  }
429
433
  }
430
- function $e(e, t, n, r = "characters") {
431
- let i = v(r === "bytes" ? h(e, n) : p(e, n), t, n);
432
- if (typeof i == "string") return r === "bytes" ? h(i, n) : p(i, n);
434
+ function Zt(e, t, n, r = qt) {
435
+ let i = b(r === k ? _(e, n) : h(e, n), t, n);
436
+ if (typeof i == "string") return r === k ? _(i, n) : h(i, n);
433
437
  }
434
- function O(e, t) {
435
- let n = u().valuePolicy === "verbatim";
438
+ function A(e, t) {
439
+ let n = d().valuePolicy === l;
436
440
  return {
437
- name: p(e.name, 256),
438
- message: $e(e.message, {
441
+ name: h(e.name, 256),
442
+ message: Zt(e.message, {
439
443
  scope: "error-message",
440
444
  source: t
441
- }, n ? 131072 : 4096, n ? "bytes" : "characters") ?? (n ? h(e.message, 131072) : "[REDACTED]"),
442
- code: e.code ? p(e.code, 128) : void 0,
443
- stackTrace: e.stackTrace ? $e(e.stackTrace, {
444
- scope: "stack-trace",
445
+ }, n ? 131072 : Vt, n ? k : qt) ?? (n ? _(e.message, 131072) : "[REDACTED]"),
446
+ code: e.code ? h(e.code, 128) : void 0,
447
+ stackTrace: e.stackTrace ? Zt(e.stackTrace, {
448
+ scope: Ne,
445
449
  source: t
446
- }, E, "bytes") : void 0,
450
+ }, O, k) : void 0,
447
451
  httpStatus: e.httpStatus
448
452
  };
449
453
  }
450
- function et(e) {
451
- let t = u();
454
+ function Qt(e) {
455
+ let t = d();
452
456
  return {
453
457
  ...e,
454
- queryHash: p(e.queryHash, 512),
455
- queryKey: v(e.queryKey, {
458
+ queryHash: h(e.queryHash, 512),
459
+ queryKey: b(e.queryKey, {
456
460
  scope: "query-key",
457
461
  source: e.queryHash
458
462
  }) ?? { type: "redacted" },
459
- meta: y(e.meta, {
460
- scope: "query-meta",
463
+ meta: x(e.meta, {
464
+ scope: Me,
461
465
  source: e.queryHash
462
466
  }),
463
- dataShape: e.dataShape ? v(e.dataShape, {
464
- scope: "query-data-shape",
467
+ dataShape: e.dataShape ? b(e.dataShape, {
468
+ scope: je,
465
469
  source: e.queryHash
466
470
  }) : void 0,
467
- dataPreview: Qe(e.dataPreview, t.dataPreviewBytes.query),
468
- error: e.error ? O(e.error, e.queryHash) : void 0
471
+ dataPreview: Xt(e.dataPreview, t.dataPreviewBytes.query),
472
+ error: e.error ? A(e.error, e.queryHash) : void 0
469
473
  };
470
474
  }
471
- function tt(e) {
472
- let t = u();
475
+ function $t(e) {
476
+ let t = d();
473
477
  return {
474
478
  ...e,
475
- mutationKey: e.mutationKey ? v(e.mutationKey, { scope: "mutation-key" }) : void 0,
476
- meta: y(e.meta, { scope: "mutation-meta" }),
477
- variablesPreview: Qe(e.variablesPreview, t.dataPreviewBytes.mutation),
478
- error: e.error ? O(e.error, "mutation") : void 0
479
+ mutationKey: e.mutationKey ? b(e.mutationKey, { scope: Oe }) : void 0,
480
+ meta: x(e.meta, { scope: ke }),
481
+ variablesPreview: Xt(e.variablesPreview, t.dataPreviewBytes.mutation),
482
+ error: e.error ? A(e.error, me) : void 0
479
483
  };
480
484
  }
481
- function nt(e) {
482
- let t = u();
485
+ function en(e) {
486
+ let t = d();
483
487
  return {
484
488
  ...e,
485
- buster: e.buster ? p(e.buster, 512) : void 0,
486
- queryHash: e.queryHash ? p(e.queryHash, 512) : void 0,
487
- queryKey: e.queryKey ? v(e.queryKey, {
488
- scope: "persisted-query-key",
489
+ buster: e.buster ? h(e.buster, 512) : void 0,
490
+ queryHash: e.queryHash ? h(e.queryHash, 512) : void 0,
491
+ queryKey: e.queryKey ? b(e.queryKey, {
492
+ scope: Ae,
489
493
  source: e.queryHash
490
494
  }) : void 0,
491
- dataPreview: Qe(e.dataPreview, t.dataPreviewBytes.persistedQuery),
492
- error: e.error ? O(e.error, e.queryHash) : void 0
495
+ dataPreview: Xt(e.dataPreview, t.dataPreviewBytes.persistedQuery),
496
+ error: e.error ? A(e.error, e.queryHash) : void 0
493
497
  };
494
498
  }
495
- function k(e) {
496
- return Xe(e);
499
+ function j(e) {
500
+ return Jt(e);
497
501
  }
498
- function rt(e) {
499
- let t = u().valuePolicy === "verbatim";
502
+ function tn(e) {
503
+ let t = d().valuePolicy === l;
500
504
  return {
501
505
  ...e,
502
- reportId: p(e.reportId, 128),
503
- sessionId: p(e.sessionId, 128),
504
- createdUtc: p(e.createdUtc, 64),
505
- application: p(e.application, Ye),
506
- source: p(e.source, Je),
507
- error: O(e.error, e.source),
506
+ reportId: h(e.reportId, zt),
507
+ sessionId: h(e.sessionId, Bt),
508
+ createdUtc: h(e.createdUtc, 64),
509
+ application: h(e.application, 128),
510
+ source: h(e.source, 256),
511
+ error: A(e.error, e.source),
508
512
  environment: {
509
513
  ...e.environment,
510
- buildId: e.environment.buildId ? p(e.environment.buildId, 128) : void 0
514
+ buildId: e.environment.buildId ? h(e.environment.buildId, 128) : void 0
511
515
  },
512
516
  client: e.client ? {
513
- userAgent: e.client.userAgent ? p(e.client.userAgent) : void 0,
514
- language: e.client.language ? p(e.client.language, 128) : void 0,
515
- timeZone: e.client.timeZone ? p(e.client.timeZone, 128) : void 0
517
+ userAgent: e.client.userAgent ? h(e.client.userAgent) : void 0,
518
+ language: e.client.language ? h(e.client.language, 128) : void 0,
519
+ timeZone: e.client.timeZone ? h(e.client.timeZone, 128) : void 0
516
520
  } : void 0,
517
521
  location: e.location ? {
518
- pathname: Ze(e.location.pathname),
519
- origin: e.location.origin ? p(e.location.origin.split(/[?#]/, 1)[0] ?? e.location.origin, D) : void 0,
520
- search: u().valuePolicy === "verbatim" && e.location.search ? p(e.location.search, D) : void 0,
521
- hash: u().valuePolicy === "verbatim" && e.location.hash ? p(e.location.hash, D) : void 0
522
+ pathname: Yt(e.location.pathname),
523
+ origin: e.location.origin ? h(e.location.origin.split(/[?#]/, 1)[0] ?? e.location.origin, u) : void 0,
524
+ search: d().valuePolicy === "verbatim" && e.location.search ? h(e.location.search, u) : void 0,
525
+ hash: d().valuePolicy === "verbatim" && e.location.hash ? h(e.location.hash, u) : void 0
522
526
  } : void 0,
523
- react: e.react?.componentStack ? { componentStack: $e(e.react.componentStack, {
524
- scope: "stack-trace",
527
+ react: e.react?.componentStack ? { componentStack: Zt(e.react.componentStack, {
528
+ scope: Ne,
525
529
  source: "react-component-stack"
526
- }, qe, "bytes") } : void 0,
527
- query: e.query ? et(e.query) : void 0,
528
- mutation: e.mutation ? tt(e.mutation) : void 0,
530
+ }, ae, k) } : void 0,
531
+ query: e.query ? Qt(e.query) : void 0,
532
+ mutation: e.mutation ? $t(e.mutation) : void 0,
529
533
  queryClient: e.queryClient ? {
530
- queries: e.queryClient.queries.slice(-40).map(et),
531
- mutations: e.queryClient.mutations.slice(-40).map(tt),
534
+ queries: e.queryClient.queries.slice(-40).map(Qt),
535
+ mutations: e.queryClient.mutations.slice(-40).map($t),
532
536
  ...t ? {
533
537
  omittedQueries: (e.queryClient.omittedQueries ?? 0) + Math.max(0, e.queryClient.queries.length - 40) || void 0,
534
538
  omittedMutations: (e.queryClient.omittedMutations ?? 0) + Math.max(0, e.queryClient.mutations.length - 40) || void 0
535
539
  } : {}
536
540
  } : void 0,
537
- persistedQueries: e.persistedQueries?.slice(-40).map(nt),
541
+ persistedQueries: e.persistedQueries?.slice(-40).map(en),
538
542
  breadcrumbs: e.breadcrumbs.slice(-80).map((e) => ({
539
543
  ...e,
540
- utc: p(e.utc, 64),
541
- routeId: e.routeId ? p(e.routeId, 512) : void 0,
542
- appId: e.appId ? p(e.appId, 128) : void 0,
543
- viewId: e.viewId ? p(e.viewId, 128) : void 0,
544
- target: e.target ? p(e.target, 2048) : void 0,
545
- detail: y(e.detail, {
546
- scope: "breadcrumb-detail",
544
+ utc: h(e.utc, 64),
545
+ routeId: e.routeId ? h(e.routeId, 512) : void 0,
546
+ appId: e.appId ? h(e.appId, 128) : void 0,
547
+ viewId: e.viewId ? h(e.viewId, 128) : void 0,
548
+ target: e.target ? h(e.target, ie) : void 0,
549
+ detail: x(e.detail, {
550
+ scope: f,
547
551
  source: e.type
548
552
  })
549
553
  })),
550
- context: y(e.context, {
551
- scope: "context",
554
+ context: x(e.context, {
555
+ scope: p,
552
556
  source: e.source
553
557
  })
554
558
  };
555
559
  }
556
- function A(e, t) {
557
- if (!e || m(e.json) <= t) return e;
560
+ function M(e, t) {
561
+ if (!e || g(e.json) <= t) return e;
558
562
  try {
559
563
  return {
560
- ...w(JSON.parse(e.json), t),
564
+ ...T(JSON.parse(e.json), t),
561
565
  truncated: !0
562
566
  };
563
567
  } catch {
@@ -567,74 +571,70 @@ function A(e, t) {
567
571
  };
568
572
  }
569
573
  }
570
- function it(e, t, n) {
574
+ function nn(e, t, n) {
571
575
  return n ? {
572
576
  ...e,
573
577
  queryClient: e.queryClient ? {
574
578
  ...e.queryClient,
575
579
  queries: e.queryClient.queries.map((e) => ({
576
580
  ...e,
577
- dataPreview: A(e.dataPreview, t)
581
+ dataPreview: M(e.dataPreview, t)
578
582
  })),
579
583
  mutations: e.queryClient.mutations.map((e) => ({
580
584
  ...e,
581
- variablesPreview: A(e.variablesPreview, t)
585
+ variablesPreview: M(e.variablesPreview, t)
582
586
  }))
583
587
  } : void 0,
584
588
  persistedQueries: e.persistedQueries?.map((e) => ({
585
589
  ...e,
586
- dataPreview: A(e.dataPreview, t)
590
+ dataPreview: M(e.dataPreview, t)
587
591
  }))
588
592
  } : {
589
593
  ...e,
590
594
  query: e.query ? {
591
595
  ...e.query,
592
- dataPreview: A(e.query.dataPreview, t)
596
+ dataPreview: M(e.query.dataPreview, t)
593
597
  } : void 0,
594
598
  mutation: e.mutation ? {
595
599
  ...e.mutation,
596
- variablesPreview: A(e.mutation.variablesPreview, t)
600
+ variablesPreview: M(e.mutation.variablesPreview, t)
597
601
  } : void 0
598
602
  };
599
603
  }
600
- function at(e) {
601
- let t = rt(e), n = k(t);
604
+ function rn(e) {
605
+ let t = tn(e), n = j(t);
602
606
  if (n <= 262144) return t;
603
607
  let r = [], i = {
604
608
  ...t,
605
609
  truncation: {
606
- reason: "payload-size",
607
- limitBytes: T,
610
+ reason: Pe,
611
+ limitBytes: E,
608
612
  originalBytes: n,
609
613
  droppedSections: r
610
614
  }
611
615
  };
612
- if (u().valuePolicy === "verbatim") for (let e of [
613
- 512,
614
- 128,
615
- 4
616
- ]) {
617
- if (k(i) <= 262144 || (i = it(i, e, !0), k(i) <= 262144)) break;
618
- i = it(i, e, !1);
616
+ if (d().valuePolicy === "verbatim") for (let e of Kt) {
617
+ if (j(i) <= 262144 || (i = nn(i, e, !0), j(i) <= 262144)) break;
618
+ i = nn(i, e, !1);
619
619
  }
620
620
  let a = (e, t, n) => {
621
- !t(i) || k(i) <= 262144 || (r.push(e), i = n(i));
621
+ !t(i) || j(i) <= 262144 || (r.push(e), i = n(i));
622
622
  };
623
- return u().valuePolicy === "verbatim" && (a("queryClient.queries:oldest", (e) => (e.queryClient?.queries.length ?? 0) > 10, (e) => ({
623
+ return d().valuePolicy === "verbatim" && (a("queryClient.queries:oldest", (e) => (e.queryClient?.queries.length ?? 0) > Ht, (e) => ({
624
624
  ...e,
625
625
  queryClient: e.queryClient ? {
626
626
  ...e.queryClient,
627
627
  queries: e.queryClient.queries.slice(-10),
628
- omittedQueries: (e.queryClient.omittedQueries ?? 0) + e.queryClient.queries.length - 10
628
+ omittedQueries: (e.queryClient.omittedQueries ?? 0) + e.queryClient.queries.length - Ht
629
629
  } : void 0
630
- })), a("queryClient.mutations:oldest", (e) => (e.queryClient?.mutations.length ?? 0) > 10, (e) => ({
630
+ })), a("queryClient.mutations:oldest", (e) => (e.queryClient?.mutations.length ?? 0) > Ut, (e) => ({
631
631
  ...e,
632
632
  queryClient: e.queryClient ? {
633
633
  ...e.queryClient,
634
634
  mutations: e.queryClient.mutations.slice(-10),
635
- omittedMutations: (e.queryClient.omittedMutations ?? 0) + e.queryClient.mutations.length - 10
635
+ omittedMutations: (e.queryClient.omittedMutations ?? 0) + e.queryClient.mutations.length - Ut
636
636
  } : void 0
637
- })), a("persistedQueries:oldest", (e) => (e.persistedQueries?.length ?? 0) > 10, (e) => ({
637
+ })), a("persistedQueries:oldest", (e) => (e.persistedQueries?.length ?? 0) > Wt, (e) => ({
638
638
  ...e,
639
639
  persistedQueries: e.persistedQueries?.slice(-10)
640
640
  }))), a("queryClient", (e) => e.queryClient !== void 0, (e) => ({
@@ -664,7 +664,7 @@ function at(e) {
664
664
  ...e.mutation,
665
665
  meta: void 0
666
666
  } : void 0
667
- })), a("breadcrumbs:oldest", (e) => e.breadcrumbs.length > 20, (e) => ({
667
+ })), a("breadcrumbs:oldest", (e) => e.breadcrumbs.length > Gt, (e) => ({
668
668
  ...e,
669
669
  breadcrumbs: e.breadcrumbs.slice(-20)
670
670
  })), a("query", (e) => e.query !== void 0, (e) => ({
@@ -689,108 +689,108 @@ function at(e) {
689
689
  }
690
690
  //#endregion
691
691
  //#region src/error-report/errorInfo.ts
692
- var ot = "Неизвестная ошибка";
693
- function j(e) {
694
- return t(e) ? u().valuePolicy === "verbatim" ? h(e, Ke) : p(e) : ot;
692
+ var an = "Неизвестная ошибка", on = "Error";
693
+ function N(e) {
694
+ return t(e) ? d().valuePolicy === "verbatim" ? _(e, D) : h(e) : an;
695
695
  }
696
- function st(e) {
696
+ function sn(e) {
697
697
  let t = e.status ?? e.statusCode ?? e.httpStatus;
698
698
  return typeof t == "number" && Number.isFinite(t) ? t : void 0;
699
699
  }
700
- function ct(e) {
700
+ function cn(e) {
701
701
  if (!e || typeof e != "object") return null;
702
702
  let n = e.appError;
703
703
  if (!n || typeof n != "object") return null;
704
704
  let r = n, i = t(r.message);
705
705
  return i ? {
706
706
  name: "AppError",
707
- message: j(i),
708
- code: t(r.code) ? p(String(r.code), 128) : void 0,
709
- httpStatus: st(r)
707
+ message: N(i),
708
+ code: t(r.code) ? h(String(r.code), 128) : void 0,
709
+ httpStatus: sn(r)
710
710
  } : null;
711
711
  }
712
- function M(e) {
713
- let t = ct(e);
712
+ function P(e) {
713
+ let t = cn(e);
714
714
  if (t) return t;
715
715
  if (e instanceof Error) return {
716
- name: p(e.name || "Error", 256),
717
- message: j(e.message),
718
- stackTrace: e.stack ? h(e.stack, E) : void 0
716
+ name: h(e.name || on, 256),
717
+ message: N(e.message),
718
+ stackTrace: e.stack ? _(e.stack, O) : void 0
719
719
  };
720
720
  if (e && typeof e == "object") {
721
721
  let t = e;
722
722
  return {
723
- name: p(typeof t.name == "string" ? t.name : "Error", 256),
724
- message: j(typeof t.message == "string" ? t.message : String(e)),
725
- stackTrace: typeof t.stack == "string" ? h(t.stack, E) : void 0,
726
- httpStatus: st(t)
723
+ name: h(typeof t.name == "string" ? t.name : on, 256),
724
+ message: N(typeof t.message == "string" ? t.message : String(e)),
725
+ stackTrace: typeof t.stack == "string" ? _(t.stack, O) : void 0,
726
+ httpStatus: sn(t)
727
727
  };
728
728
  }
729
729
  return {
730
- name: "Error",
731
- message: j(typeof e == "string" ? e : String(e ?? ot))
730
+ name: on,
731
+ message: N(typeof e == "string" ? e : String(e ?? an))
732
732
  };
733
733
  }
734
734
  //#endregion
735
735
  //#region src/error-report/runtimeDeduplication.ts
736
- var lt = 6e4, ut = 100, N = /* @__PURE__ */ new Map();
737
- function dt(e) {
736
+ var ln = 6e4, un = 100, F = /* @__PURE__ */ new Map();
737
+ function dn(e) {
738
738
  if (e) return e.split("\n").map((e) => e.trim()).filter(Boolean);
739
739
  }
740
- function ft(e) {
740
+ function fn(e) {
741
741
  return a(n({
742
742
  category: e.category,
743
743
  source: e.source,
744
744
  error: {
745
745
  ...e.error,
746
- stackTrace: dt(e.error.stackTrace)
746
+ stackTrace: dn(e.error.stackTrace)
747
747
  },
748
748
  pathname: e.pathname,
749
749
  scope: e.scope
750
750
  }));
751
751
  }
752
- function P(e, t) {
753
- let n = N.get(e);
754
- !n || t && n.capture !== t || (clearTimeout(n.expirationTimer), N.delete(e));
752
+ function I(e, t) {
753
+ let n = F.get(e);
754
+ !n || t && n.capture !== t || (clearTimeout(n.expirationTimer), F.delete(e));
755
755
  }
756
- function pt(e) {
757
- for (let [t, n] of N) e - n.capturedAt >= 6e4 && P(t, n.capture);
756
+ function pn(e) {
757
+ for (let [t, n] of F) e - n.capturedAt >= 6e4 && I(t, n.capture);
758
758
  }
759
- function mt() {
760
- let e = N.keys().next().value;
761
- e && P(e);
759
+ function mn() {
760
+ let e = F.keys().next().value;
761
+ e && I(e);
762
762
  }
763
- function ht(e, t) {
764
- let n = Date.now(), r = ft(e), i = N.get(r);
763
+ function hn(e, t) {
764
+ let n = Date.now(), r = fn(e), i = F.get(r);
765
765
  if (i && n - i.capturedAt < 6e4) return i.capture;
766
- for (pt(n); N.size >= ut;) mt();
766
+ for (pn(n); F.size >= un;) mn();
767
767
  let a = t(), o = setTimeout(() => {
768
- P(r, a);
769
- }, lt);
770
- return N.set(r, {
768
+ I(r, a);
769
+ }, ln);
770
+ return F.set(r, {
771
771
  capturedAt: n,
772
772
  capture: a,
773
773
  expirationTimer: o
774
774
  }), a.catch(() => {
775
- P(r, a);
775
+ I(r, a);
776
776
  }), a;
777
777
  }
778
- function gt() {
779
- for (let e of N.values()) clearTimeout(e.expirationTimer);
780
- N.clear();
778
+ function gn() {
779
+ for (let e of F.values()) clearTimeout(e.expirationTimer);
780
+ F.clear();
781
781
  }
782
782
  //#endregion
783
783
  //#region src/error-report/schema.ts
784
- var F = c.lazy(() => c.union([
785
- c.string().max(8192),
784
+ var _n = 64, vn = 64, yn = 64, bn = 4096, xn = 4096, Sn = 128, Cn = 32, wn = 16384, L = c.lazy(() => c.union([
785
+ c.string().max(ne),
786
786
  c.number().finite(),
787
787
  c.boolean(),
788
788
  c.null(),
789
- c.array(F).max(20),
790
- c.record(c.string(), F).refine((e) => Object.keys(e).length <= 40)
791
- ])), I = c.record(c.string(), F).refine((e) => Object.keys(e).length <= 40), _t = c.object({
789
+ c.array(L).max(20),
790
+ c.record(c.string(), L).refine((e) => Object.keys(e).length <= 40)
791
+ ])), R = c.record(c.string(), L).refine((e) => Object.keys(e).length <= 40), z = c.object({
792
792
  json: c.string().refine((e) => {
793
- if (m(e) > 16384) return !1;
793
+ if (g(e) > 16384) return !1;
794
794
  try {
795
795
  return JSON.parse(e), !0;
796
796
  } catch {
@@ -798,207 +798,206 @@ var F = c.lazy(() => c.union([
798
798
  }
799
799
  }),
800
800
  truncated: c.boolean()
801
- }).strict(), L = c.object({
801
+ }).strict(), B = c.object({
802
802
  name: c.string().min(1).max(256),
803
- message: c.string().min(1).max(131072).refine((e) => m(e) <= 131072),
803
+ message: c.string().min(1).max(D).refine((e) => g(e) <= D),
804
804
  code: c.string().max(128).optional(),
805
- stackTrace: c.string().refine((e) => m(e) <= 65536).optional(),
805
+ stackTrace: c.string().refine((e) => g(e) <= O).optional(),
806
806
  httpStatus: c.number().finite().optional()
807
- }).strict(), vt = c.object({
807
+ }).strict(), Tn = c.object({
808
808
  utc: c.string().min(1).max(64),
809
809
  type: c.enum([
810
- "route",
811
- "click",
812
- "visibility",
813
- "query-error",
814
- "mutation-error",
815
- "runtime-error"
810
+ ye,
811
+ be,
812
+ xe,
813
+ Se,
814
+ Ce,
815
+ we
816
816
  ]),
817
817
  routeId: c.string().max(512).optional(),
818
818
  appId: c.string().max(128).optional(),
819
819
  viewId: c.string().max(128).optional(),
820
- target: c.string().max(2048).optional(),
821
- detail: I.optional()
822
- }).strict(), yt = c.object({
820
+ target: c.string().max(ie).optional(),
821
+ detail: R.optional()
822
+ }).strict(), En = c.object({
823
823
  queryHash: c.string().max(512),
824
- queryKey: F,
825
- status: c.string().max(64).optional(),
826
- fetchStatus: c.string().max(64).optional(),
824
+ queryKey: L,
825
+ status: c.string().max(_n).optional(),
826
+ fetchStatus: c.string().max(vn).optional(),
827
827
  dataUpdatedAt: c.number().finite().optional(),
828
828
  errorUpdatedAt: c.number().finite().optional(),
829
829
  failureCount: c.number().finite().optional(),
830
830
  isInvalidated: c.boolean().optional(),
831
831
  observersCount: c.number().finite().optional(),
832
- meta: I.optional(),
833
- dataShape: F.optional(),
834
- dataPreview: _t.optional(),
835
- error: L.optional()
836
- }).strict(), bt = c.object({
837
- mutationKey: F.optional(),
838
- status: c.string().max(64).optional(),
832
+ meta: R.optional(),
833
+ dataShape: L.optional(),
834
+ dataPreview: z.optional(),
835
+ error: B.optional()
836
+ }).strict(), Dn = c.object({
837
+ mutationKey: L.optional(),
838
+ status: c.string().max(yn).optional(),
839
839
  failureCount: c.number().finite().optional(),
840
840
  submittedAt: c.number().finite().optional(),
841
- meta: I.optional(),
842
- variablesPreview: _t.optional(),
843
- error: L.optional()
844
- }).strict(), xt = c.object({
841
+ meta: R.optional(),
842
+ variablesPreview: z.optional(),
843
+ error: B.optional()
844
+ }).strict(), On = c.object({
845
845
  buster: c.string().max(512).optional(),
846
846
  queryHash: c.string().max(512).optional(),
847
- queryKey: F.optional(),
848
- status: c.string().max(64).optional(),
849
- fetchStatus: c.string().max(64).optional(),
847
+ queryKey: L.optional(),
848
+ status: c.string().max(_n).optional(),
849
+ fetchStatus: c.string().max(vn).optional(),
850
850
  dataUpdatedAt: c.number().finite().optional(),
851
851
  errorUpdatedAt: c.number().finite().optional(),
852
852
  failureCount: c.number().finite().optional(),
853
- dataPreview: _t.optional(),
854
- error: L.optional()
855
- }).strict(), St = c.object({
853
+ dataPreview: z.optional(),
854
+ error: B.optional()
855
+ }).strict(), kn = c.object({
856
856
  payloadVersion: c.literal(1),
857
857
  application: c.string().min(1).max(128),
858
858
  reportId: c.string().uuid(),
859
859
  sessionId: c.string().uuid(),
860
860
  createdUtc: c.string().min(1).max(64),
861
861
  category: c.enum([
862
- "query",
863
- "mutation",
864
- "runtime",
865
- "react"
862
+ ue,
863
+ de,
864
+ fe,
865
+ pe
866
866
  ]),
867
867
  source: c.string().min(1).max(256),
868
- error: L,
868
+ error: B,
869
869
  environment: c.object({
870
- mode: c.enum(["development", "production"]),
870
+ mode: c.enum([Te, Ee]),
871
871
  buildId: c.string().max(128).optional()
872
872
  }).strict(),
873
873
  client: c.object({
874
- userAgent: c.string().max(4096).optional(),
874
+ userAgent: c.string().max(bn).optional(),
875
875
  language: c.string().max(128).optional(),
876
876
  timeZone: c.string().max(128).optional()
877
877
  }).strict().optional(),
878
878
  location: c.object({
879
- pathname: c.string().max(2048),
880
- origin: c.string().max(2048).optional(),
881
- search: c.string().max(2048).optional(),
882
- hash: c.string().max(2048).optional()
879
+ pathname: c.string().max(u),
880
+ origin: c.string().max(u).optional(),
881
+ search: c.string().max(u).optional(),
882
+ hash: c.string().max(u).optional()
883
883
  }).strict().optional(),
884
884
  viewport: c.object({
885
885
  width: c.number().finite(),
886
886
  height: c.number().finite(),
887
887
  devicePixelRatio: c.number().finite().optional()
888
888
  }).strict().optional(),
889
- react: c.object({ componentStack: c.string().refine((e) => m(e) <= 32768).optional() }).strict().optional(),
890
- query: yt.optional(),
891
- mutation: bt.optional(),
889
+ react: c.object({ componentStack: c.string().refine((e) => g(e) <= ae).optional() }).strict().optional(),
890
+ query: En.optional(),
891
+ mutation: Dn.optional(),
892
892
  queryClient: c.object({
893
- queries: c.array(yt).max(40),
894
- mutations: c.array(bt).max(40),
893
+ queries: c.array(En).max(40),
894
+ mutations: c.array(Dn).max(40),
895
895
  omittedQueries: c.number().int().nonnegative().optional(),
896
896
  omittedMutations: c.number().int().nonnegative().optional()
897
897
  }).strict().optional(),
898
- persistedQueries: c.array(xt).max(40).optional(),
899
- breadcrumbs: c.array(vt).max(80),
900
- context: I.optional(),
898
+ persistedQueries: c.array(On).max(40).optional(),
899
+ breadcrumbs: c.array(Tn).max(80),
900
+ context: R.optional(),
901
901
  truncation: c.object({
902
- reason: c.literal("payload-size"),
903
- limitBytes: c.literal(T),
902
+ reason: c.literal(Pe),
903
+ limitBytes: c.literal(E),
904
904
  originalBytes: c.number().int().positive(),
905
- droppedSections: c.array(c.string().max(128)).max(32)
905
+ droppedSections: c.array(c.string().max(Sn)).max(Cn)
906
906
  }).strict().optional()
907
- }).strict().refine((e) => k(e) <= T), Ct = c.object({
907
+ }).strict().refine((e) => j(e) <= E), An = c.object({
908
908
  reportId: c.string().uuid(),
909
909
  sessionId: c.string().uuid(),
910
910
  createdUtc: c.string().min(1).max(64),
911
911
  category: c.enum([
912
- "query",
913
- "mutation",
914
- "runtime",
915
- "react"
912
+ ue,
913
+ de,
914
+ fe,
915
+ pe
916
916
  ]),
917
917
  status: c.enum([
918
- "pending",
919
- "sending",
920
- "sent",
921
- "failed"
918
+ he,
919
+ ge,
920
+ _e,
921
+ ve
922
922
  ]),
923
923
  sentUtc: c.string().min(1).max(64).optional(),
924
- failedReason: c.string().max(4096).optional(),
925
- payload: St
924
+ failedReason: c.string().max(xn).optional(),
925
+ payload: kn
926
926
  }).strict().superRefine((e, t) => {
927
927
  (e.reportId !== e.payload.reportId || e.sessionId !== e.payload.sessionId || e.createdUtc !== e.payload.createdUtc || e.category !== e.payload.category) && t.addIssue({
928
928
  code: "custom",
929
929
  message: "Draft identity должна совпадать с payload identity."
930
930
  });
931
931
  });
932
- function wt(e, t) {
932
+ function jn(e, t) {
933
933
  try {
934
934
  return new TextEncoder().encode(JSON.stringify(e)).byteLength <= t;
935
935
  } catch {
936
936
  return !1;
937
937
  }
938
938
  }
939
- function R(e) {
940
- if (wt(e, 262144)) try {
941
- let t = St.safeParse(e);
939
+ function Mn(e) {
940
+ if (jn(e, 262144)) try {
941
+ let t = kn.safeParse(e);
942
942
  return t.success ? t.data : void 0;
943
943
  } catch {
944
944
  return;
945
945
  }
946
946
  }
947
- function z(e) {
948
- if (wt(e, 278528)) try {
949
- let t = Ct.safeParse(e);
947
+ function V(e) {
948
+ if (jn(e, 262144 + wn)) try {
949
+ let t = An.safeParse(e);
950
950
  return t.success ? t.data : void 0;
951
951
  } catch {
952
952
  return;
953
953
  }
954
954
  }
955
- function Tt(e) {
955
+ function Nn(e) {
956
956
  return Array.isArray(e) ? e.flatMap((e) => {
957
- let t = z(e);
957
+ let t = V(e);
958
958
  return t ? [t] : [];
959
959
  }) : [];
960
960
  }
961
961
  //#endregion
962
962
  //#region src/error-report/errorReportStorage.ts
963
- var Et = `${__APP_ID__}.errorReport.drafts.v2`, Dt = `${__APP_ID__}.errorReport.sessionId.v1`, B = !1, V, Ot = [], kt;
964
- function At() {
965
- typeof window > "u" || B || (B = !0, V = void 0, gt());
966
- }
967
- function H() {
968
- return !B;
969
- }
970
- function U() {
971
- if (B) return Ot;
972
- if (V === void 0 && (V = [], typeof sessionStorage < "u")) try {
973
- let e = sessionStorage.getItem(Et);
974
- V = Tt(e ? JSON.parse(e) : []);
963
+ var Pn = `${__APP_ID__}.errorReport.drafts.v2`, Fn = `${__APP_ID__}.errorReport.sessionId.v1`, H = !1, U, In = [], Ln;
964
+ function Rn() {
965
+ typeof window > "u" || H || (H = !0, U = void 0, gn());
966
+ }
967
+ function zn() {
968
+ return !H;
969
+ }
970
+ function W() {
971
+ if (H) return In;
972
+ if (U === void 0 && (U = [], typeof sessionStorage < "u")) try {
973
+ let e = sessionStorage.getItem(Pn);
974
+ U = Nn(e ? JSON.parse(e) : []);
975
975
  } catch {}
976
- return V;
976
+ return U;
977
977
  }
978
- function jt(e) {
978
+ function Bn(e) {
979
979
  let t = e.slice(-10);
980
- if (B) {
981
- Ot = t;
980
+ if (H) {
981
+ In = t;
982
982
  return;
983
983
  }
984
- if (V = t, !(typeof sessionStorage > "u")) try {
985
- sessionStorage.setItem(Et, JSON.stringify(V));
984
+ if (U = t, !(typeof sessionStorage > "u")) try {
985
+ sessionStorage.setItem(Pn, JSON.stringify(U));
986
986
  } catch {}
987
987
  }
988
- function Mt() {
989
- return B ? (kt ??= i(), kt) : ee(Dt);
988
+ function Vn() {
989
+ return H ? (Ln ??= i(), Ln) : ee(Fn);
990
990
  }
991
991
  //#endregion
992
992
  //#region src/error-report/diagnostics.ts
993
- var Nt = 40, Pt = 40;
994
- function Ft(e, t, n) {
995
- return y(e, {
993
+ function Hn(e, t, n) {
994
+ return x(e, {
996
995
  scope: t,
997
996
  source: n
998
997
  });
999
998
  }
1000
- function W(e) {
1001
- let t = u(), r = v(e.queryKey, { scope: "query-key" }) ?? { type: "redacted" }, i = t.valuePolicy === "verbatim" ? a(e.queryHash) : a(n(r));
999
+ function Un(e) {
1000
+ let t = d(), r = b(e.queryKey, { scope: "query-key" }) ?? { type: "redacted" }, i = t.valuePolicy === "verbatim" ? a(e.queryHash) : a(n(r));
1002
1001
  return {
1003
1002
  queryHash: i,
1004
1003
  queryKey: r,
@@ -1009,42 +1008,42 @@ function W(e) {
1009
1008
  failureCount: e.state.fetchFailureCount,
1010
1009
  isInvalidated: e.state.isInvalidated,
1011
1010
  observersCount: e.getObserversCount(),
1012
- meta: Ft(e.meta, "query-meta", i),
1013
- dataShape: v(_(e.state.data), {
1014
- scope: "query-data-shape",
1011
+ meta: Hn(e.meta, Me, i),
1012
+ dataShape: b(y(e.state.data), {
1013
+ scope: je,
1015
1014
  source: i
1016
1015
  }),
1017
- dataPreview: t.valuePolicy === "verbatim" && t.dataPreviewBytes.query > 0 && e.state.data !== void 0 ? w(e.state.data, t.dataPreviewBytes.query) : void 0,
1018
- error: e.state.error ? M(e.state.error) : void 0
1016
+ dataPreview: t.valuePolicy === "verbatim" && t.dataPreviewBytes.query > 0 && e.state.data !== void 0 ? T(e.state.data, t.dataPreviewBytes.query) : void 0,
1017
+ error: e.state.error ? P(e.state.error) : void 0
1019
1018
  };
1020
1019
  }
1021
- function G(e) {
1022
- let t = u();
1020
+ function Wn(e) {
1021
+ let t = d();
1023
1022
  return {
1024
- mutationKey: e.options.mutationKey ? v(e.options.mutationKey, { scope: "mutation-key" }) : void 0,
1023
+ mutationKey: e.options.mutationKey ? b(e.options.mutationKey, { scope: Oe }) : void 0,
1025
1024
  status: e.state.status,
1026
1025
  failureCount: e.state.failureCount,
1027
1026
  submittedAt: e.state.submittedAt,
1028
- meta: Ft(e.meta, "mutation-meta"),
1029
- variablesPreview: t.valuePolicy === "verbatim" && t.dataPreviewBytes.mutation > 0 && e.state.variables !== void 0 ? w(e.state.variables, t.dataPreviewBytes.mutation) : void 0,
1030
- error: e.state.error ? M(e.state.error) : void 0
1027
+ meta: Hn(e.meta, ke),
1028
+ variablesPreview: t.valuePolicy === "verbatim" && t.dataPreviewBytes.mutation > 0 && e.state.variables !== void 0 ? T(e.state.variables, t.dataPreviewBytes.mutation) : void 0,
1029
+ error: e.state.error ? P(e.state.error) : void 0
1031
1030
  };
1032
1031
  }
1033
- function K(e) {
1032
+ function G(e) {
1034
1033
  let t = e.getQueryCache().getAll(), n = e.getMutationCache().getAll();
1035
1034
  return {
1036
- queries: t.slice(-40).map(W),
1037
- mutations: n.slice(-40).map(G),
1038
- ...u().valuePolicy === "verbatim" ? {
1039
- omittedQueries: Math.max(0, t.length - Nt) || void 0,
1040
- omittedMutations: Math.max(0, n.length - Pt) || void 0
1035
+ queries: t.slice(-40).map(Un),
1036
+ mutations: n.slice(-40).map(Wn),
1037
+ ...d().valuePolicy === "verbatim" ? {
1038
+ omittedQueries: Math.max(0, t.length - 40) || void 0,
1039
+ omittedMutations: Math.max(0, n.length - 40) || void 0
1041
1040
  } : {}
1042
1041
  };
1043
1042
  }
1044
- function It(e) {
1045
- let t = u(), r = e.state, i = v(e.queryKey, { scope: "persisted-query-key" }), o = t.valuePolicy === "verbatim" ? a(e.queryHash) : i ? a(n(i)) : void 0;
1043
+ function Gn(e) {
1044
+ let t = d(), r = e.state, i = b(e.queryKey, { scope: Ae }), o = t.valuePolicy === "verbatim" ? a(e.queryHash) : i ? a(n(i)) : void 0;
1046
1045
  return {
1047
- buster: e.buster ? p(e.buster, 512) : void 0,
1046
+ buster: e.buster ? h(e.buster, 512) : void 0,
1048
1047
  queryHash: o,
1049
1048
  queryKey: i,
1050
1049
  status: r.status,
@@ -1052,34 +1051,34 @@ function It(e) {
1052
1051
  dataUpdatedAt: r.dataUpdatedAt,
1053
1052
  errorUpdatedAt: r.errorUpdatedAt,
1054
1053
  failureCount: r.fetchFailureCount,
1055
- dataPreview: t.valuePolicy === "verbatim" && t.dataPreviewBytes.persistedQuery > 0 && r.data !== void 0 ? w(r.data, t.dataPreviewBytes.persistedQuery) : void 0,
1056
- error: r.error ? M(r.error) : void 0
1054
+ dataPreview: t.valuePolicy === "verbatim" && t.dataPreviewBytes.persistedQuery > 0 && r.data !== void 0 ? T(r.data, t.dataPreviewBytes.persistedQuery) : void 0,
1055
+ error: r.error ? P(r.error) : void 0
1057
1056
  };
1058
1057
  }
1059
- async function q() {
1060
- if (!H()) return [];
1058
+ async function K() {
1059
+ if (!zn()) return [];
1061
1060
  let e = s();
1062
1061
  if (!e?.entries) return [];
1063
1062
  try {
1064
1063
  let t = await e.entries();
1065
- return H() ? t.slice(-40).map(([, e]) => It(e)) : [];
1064
+ return zn() ? t.slice(-40).map(([, e]) => Gn(e)) : [];
1066
1065
  } catch {
1067
1066
  return [];
1068
1067
  }
1069
1068
  }
1070
1069
  //#endregion
1071
1070
  //#region src/error-report/environment.ts
1072
- function Lt(e = {}) {
1071
+ function Kn(e = {}) {
1073
1072
  let t = e.isDev ?? __DEV__;
1074
1073
  return typeof window < "u" && !t;
1075
1074
  }
1076
- function Rt() {
1075
+ function qn() {
1077
1076
  return {
1078
- mode: __DEV__ ? "development" : "production",
1077
+ mode: __DEV__ ? Te : Ee,
1079
1078
  buildId: typeof __APP_BUILD_ID__ == "string" ? __APP_BUILD_ID__ : void 0
1080
1079
  };
1081
1080
  }
1082
- function zt() {
1081
+ function Jn() {
1083
1082
  if (!(typeof window > "u")) return {
1084
1083
  userAgent: window.navigator.userAgent,
1085
1084
  language: window.navigator.language,
@@ -1088,12 +1087,12 @@ function zt() {
1088
1087
  }
1089
1088
  //#endregion
1090
1089
  //#region src/error-report/drafts.ts
1091
- function Bt() {
1090
+ function Yn() {
1092
1091
  return r(/* @__PURE__ */ new Date());
1093
1092
  }
1094
- function Vt() {
1093
+ function Xn() {
1095
1094
  if (typeof window > "u") return;
1096
- let e = u().valuePolicy === "verbatim";
1095
+ let e = d().valuePolicy === l;
1097
1096
  return {
1098
1097
  pathname: window.location.pathname,
1099
1098
  origin: window.location.origin,
@@ -1101,77 +1100,77 @@ function Vt() {
1101
1100
  hash: e ? window.location.hash : void 0
1102
1101
  };
1103
1102
  }
1104
- function Ht() {
1103
+ function Zn() {
1105
1104
  if (!(typeof window > "u")) return {
1106
1105
  width: window.innerWidth,
1107
1106
  height: window.innerHeight,
1108
1107
  devicePixelRatio: window.devicePixelRatio
1109
1108
  };
1110
1109
  }
1111
- function Ut(e) {
1110
+ function Qn(e) {
1112
1111
  if (!e) return;
1113
- let t = v(e, {
1114
- scope: "draft-failed-reason",
1112
+ let t = b(e, {
1113
+ scope: De,
1115
1114
  source: "delivery"
1116
1115
  });
1117
1116
  return typeof t == "string" ? t : void 0;
1118
1117
  }
1119
- function Wt(e) {
1120
- return U().find((t) => t.reportId === e);
1118
+ function $n(e) {
1119
+ return W().find((t) => t.reportId === e);
1121
1120
  }
1122
- function Gt(e, t) {
1123
- let n = Wt(e);
1121
+ function er(e, t) {
1122
+ let n = $n(e);
1124
1123
  if (!n) return;
1125
- let r = z({
1124
+ let r = V({
1126
1125
  ...n,
1127
1126
  ...t,
1128
- sentUtc: "sentUtc" in t ? t.sentUtc ? p(t.sentUtc, 64) : void 0 : n.sentUtc,
1129
- failedReason: "failedReason" in t ? Ut(t.failedReason) : n.failedReason
1127
+ sentUtc: "sentUtc" in t ? t.sentUtc ? h(t.sentUtc, 64) : void 0 : n.sentUtc,
1128
+ failedReason: "failedReason" in t ? Qn(t.failedReason) : n.failedReason
1130
1129
  });
1131
- if (r) return jt(U().map((t) => t.reportId === e ? r : t)), r;
1130
+ if (r) return Bn(W().map((t) => t.reportId === e ? r : t)), r;
1132
1131
  }
1133
- function Kt() {
1134
- return U();
1132
+ function tr() {
1133
+ return W();
1135
1134
  }
1136
- function J(e) {
1137
- if (!Lt()) return;
1138
- let t = i(), n = Mt(), r = Bt(), a = at({
1135
+ function q(e) {
1136
+ if (!Kn()) return;
1137
+ let t = i(), n = Vn(), r = Yn(), a = rn({
1139
1138
  payloadVersion: 1,
1140
1139
  application: __APP_ID__,
1141
1140
  reportId: t,
1142
1141
  sessionId: n,
1143
1142
  createdUtc: r,
1144
1143
  category: e.category,
1145
- source: p(e.source, 256),
1144
+ source: h(e.source, 256),
1146
1145
  error: e.error,
1147
- environment: Rt(),
1148
- client: zt(),
1149
- location: Vt(),
1150
- viewport: Ht(),
1146
+ environment: qn(),
1147
+ client: Jn(),
1148
+ location: Xn(),
1149
+ viewport: Zn(),
1151
1150
  react: e.react,
1152
1151
  query: e.query,
1153
1152
  mutation: e.mutation,
1154
1153
  queryClient: e.queryClient,
1155
- persistedQueries: H() ? e.persistedQueries : void 0,
1156
- breadcrumbs: we(),
1157
- context: y(e.context, {
1158
- scope: "context",
1154
+ persistedQueries: zn() ? e.persistedQueries : void 0,
1155
+ breadcrumbs: ht(),
1156
+ context: x(e.context, {
1157
+ scope: p,
1159
1158
  source: e.source
1160
1159
  })
1161
- }), o = z({
1160
+ }), o = V({
1162
1161
  reportId: t,
1163
1162
  sessionId: n,
1164
1163
  createdUtc: r,
1165
1164
  category: e.category,
1166
- status: "pending",
1165
+ status: he,
1167
1166
  payload: a
1168
1167
  });
1169
- if (o) return jt([...U(), o]), o;
1168
+ if (o) return Bn([...W(), o]), o;
1170
1169
  }
1171
1170
  //#endregion
1172
1171
  //#region src/error-report/transport.ts
1173
- var qt = 6e4, Jt = 100, Yt = 250, Xt, Zt = /* @__PURE__ */ new WeakSet(), Qt = /* @__PURE__ */ new WeakSet(), Y = /* @__PURE__ */ new Map();
1174
- function $t(e) {
1172
+ var nr = 6e4, rr = 100, ir = 250, ar, or = /* @__PURE__ */ new WeakSet(), sr = /* @__PURE__ */ new WeakSet(), J = /* @__PURE__ */ new Map();
1173
+ function cr(e) {
1175
1174
  return [
1176
1175
  e.source,
1177
1176
  e.method,
@@ -1180,103 +1179,103 @@ function $t(e) {
1180
1179
  e.responseUrl
1181
1180
  ].filter(Boolean).join("|");
1182
1181
  }
1183
- function en(e) {
1184
- let t = Date.now(), n = $t(e);
1185
- for (let [e, n] of Y) (t - n > qt || Y.size > Jt) && Y.delete(e);
1186
- let r = Y.get(n);
1187
- return r && t - r < qt ? !0 : (Y.set(n, t), !1);
1182
+ function lr(e) {
1183
+ let t = Date.now(), n = cr(e);
1184
+ for (let [e, n] of J) (t - n > nr || J.size > rr) && J.delete(e);
1185
+ let r = J.get(n);
1186
+ return r && t - r < nr ? !0 : (J.set(n, t), !1);
1188
1187
  }
1189
- function tn(e) {
1190
- Xt = e, Y.clear();
1188
+ function ur(e) {
1189
+ ar = e, J.clear();
1191
1190
  }
1192
- function nn(e) {
1193
- return e instanceof Error && Zt.has(e);
1191
+ function dr(e) {
1192
+ return e instanceof Error && or.has(e);
1194
1193
  }
1195
- function rn(e) {
1196
- e instanceof Error && Qt.add(e);
1194
+ function fr(e) {
1195
+ e instanceof Error && sr.add(e);
1197
1196
  }
1198
- function an(e, t) {
1199
- Zt.add(e), setTimeout(() => {
1200
- if (!Qt.has(e) && Xt && !en(t)) try {
1201
- let n = Xt(e, t);
1197
+ function pr(e, t) {
1198
+ or.add(e), setTimeout(() => {
1199
+ if (!sr.has(e) && ar && !lr(t)) try {
1200
+ let n = ar(e, t);
1202
1201
  Promise.resolve(n).catch(() => void 0);
1203
1202
  } catch {}
1204
- }, Yt);
1203
+ }, ir);
1205
1204
  }
1206
1205
  //#endregion
1207
1206
  //#region src/error-report/capture.ts
1208
- async function on(e, t, n, r) {
1209
- rn(e);
1207
+ async function mr(e, t, n, r) {
1208
+ fr(e);
1210
1209
  let i = r?.source ?? "query";
1211
- x({
1212
- type: "query-error",
1213
- detail: y({
1210
+ C({
1211
+ type: Se,
1212
+ detail: x({
1214
1213
  queryKey: r?.queryKey ?? t.queryKey,
1215
1214
  ...r?.detail
1216
1215
  }, {
1217
- scope: "breadcrumb-detail",
1216
+ scope: f,
1218
1217
  source: i
1219
1218
  })
1220
1219
  });
1221
- let [a, o] = await Promise.all([q(), Promise.resolve(K(n))]);
1222
- return J({
1223
- category: "query",
1220
+ let [a, o] = await Promise.all([K(), Promise.resolve(G(n))]);
1221
+ return q({
1222
+ category: ue,
1224
1223
  source: i,
1225
- error: r?.errorInfo ?? M(e),
1226
- query: W(t),
1224
+ error: r?.errorInfo ?? P(e),
1225
+ query: Un(t),
1227
1226
  queryClient: o,
1228
1227
  persistedQueries: a,
1229
- context: y(r?.detail, {
1230
- scope: "context",
1228
+ context: x(r?.detail, {
1229
+ scope: p,
1231
1230
  source: i
1232
1231
  })
1233
1232
  });
1234
1233
  }
1235
- async function sn(e, t, n, r = {}) {
1236
- rn(e);
1234
+ async function hr(e, t, n, r = {}) {
1235
+ fr(e);
1237
1236
  let i = r.source ?? "mutation";
1238
- x({
1239
- type: "mutation-error",
1240
- detail: y({
1237
+ C({
1238
+ type: Ce,
1239
+ detail: x({
1241
1240
  mutationKey: t.options.mutationKey,
1242
1241
  ...r.detail
1243
1242
  }, {
1244
- scope: "breadcrumb-detail",
1243
+ scope: f,
1245
1244
  source: i
1246
1245
  })
1247
1246
  });
1248
- let [a, o] = await Promise.all([q(), Promise.resolve(K(n))]);
1249
- return J({
1250
- category: "mutation",
1247
+ let [a, o] = await Promise.all([K(), Promise.resolve(G(n))]);
1248
+ return q({
1249
+ category: de,
1251
1250
  source: i,
1252
- error: r.errorInfo ?? M(e),
1253
- mutation: G(t),
1251
+ error: r.errorInfo ?? P(e),
1252
+ mutation: Wn(t),
1254
1253
  queryClient: o,
1255
1254
  persistedQueries: a,
1256
- context: y(r.detail, {
1257
- scope: "context",
1255
+ context: x(r.detail, {
1256
+ scope: p,
1258
1257
  source: i
1259
1258
  })
1260
1259
  });
1261
1260
  }
1262
- function cn(e, t = {}, n) {
1263
- let r = t.category ?? "runtime", i = t.source ?? t.category ?? "runtime", a = t.errorInfo ?? M(e), o = y(t.detail, {
1264
- scope: "context",
1261
+ function gr(e, t = {}, n) {
1262
+ let r = t.category ?? "runtime", i = t.source ?? t.category ?? "runtime", a = t.errorInfo ?? P(e), o = x(t.detail, {
1263
+ scope: p,
1265
1264
  source: i
1266
1265
  }), s = async () => {
1267
- x({
1268
- type: "runtime-error",
1269
- detail: y({
1266
+ C({
1267
+ type: we,
1268
+ detail: x({
1270
1269
  category: r,
1271
1270
  source: i,
1272
1271
  ...t.detail
1273
1272
  }, {
1274
- scope: "breadcrumb-detail",
1273
+ scope: f,
1275
1274
  source: i
1276
1275
  })
1277
1276
  });
1278
- let [e, s] = n ? await Promise.all([q(), Promise.resolve(K(n))]) : [void 0, void 0];
1279
- return J({
1277
+ let [e, s] = n ? await Promise.all([K(), Promise.resolve(G(n))]) : [void 0, void 0];
1278
+ return q({
1280
1279
  category: r,
1281
1280
  source: i,
1282
1281
  error: a,
@@ -1286,7 +1285,7 @@ function cn(e, t = {}, n) {
1286
1285
  context: o
1287
1286
  });
1288
1287
  };
1289
- return typeof window > "u" ? s() : ht({
1288
+ return typeof window > "u" ? s() : hn({
1290
1289
  category: r,
1291
1290
  source: i,
1292
1291
  error: a,
@@ -1299,41 +1298,41 @@ function cn(e, t = {}, n) {
1299
1298
  }
1300
1299
  //#endregion
1301
1300
  //#region src/error-report/queueContract.ts
1302
- var ln = 1, un = 50, dn = 6048e5, fn = 3e4, pn = /* @__PURE__ */ new Set([
1303
- "http",
1304
- "network",
1305
- "timeout",
1306
- "unknown"
1301
+ var _r = 1, vr = 50, yr = 6048e5, br = 3e4, xr = "http", Sr = "network", Cr = "timeout", wr = "unknown", Tr = "enqueued", Er = "duplicate", Dr = "invalid-payload", Or = "capacity-exceeded", Y = "updated", kr = "missing", Ar = "lease-mismatch", jr = 100, Mr = 599, Nr = /* @__PURE__ */ new Set([
1302
+ xr,
1303
+ Sr,
1304
+ Cr,
1305
+ wr
1307
1306
  ]);
1308
- function mn(e) {
1307
+ function Pr(e) {
1309
1308
  return typeof e == "object" && !!e && !Array.isArray(e);
1310
1309
  }
1311
1310
  function X(e) {
1312
1311
  return typeof e == "string" && e.length <= 64 && Number.isFinite(Date.parse(e));
1313
1312
  }
1314
- function hn(e) {
1313
+ function Fr(e) {
1315
1314
  return typeof e == "number" && Number.isSafeInteger(e) && e >= 0;
1316
1315
  }
1317
- function gn(e) {
1318
- if (e !== void 0 && !(!mn(e) || !X(e.utc) || typeof e.kind != "string") && pn.has(e.kind) && !(e.httpStatus !== void 0 && (typeof e.httpStatus != "number" || !Number.isInteger(e.httpStatus) || e.httpStatus < 100 || e.httpStatus > 599))) return {
1316
+ function Ir(e) {
1317
+ if (e !== void 0 && !(!Pr(e) || !X(e.utc) || typeof e.kind != "string") && Nr.has(e.kind) && !(e.httpStatus !== void 0 && (typeof e.httpStatus != "number" || !Number.isInteger(e.httpStatus) || e.httpStatus < jr || e.httpStatus > Mr))) return {
1319
1318
  utc: e.utc,
1320
1319
  kind: e.kind,
1321
1320
  httpStatus: e.httpStatus
1322
1321
  };
1323
1322
  }
1324
- function _n(e) {
1325
- if (e !== void 0 && !(!mn(e) || typeof e.ownerId != "string" || e.ownerId.length === 0 || e.ownerId.length > 128) && X(e.expiresUtc)) return {
1323
+ function Lr(e) {
1324
+ if (e !== void 0 && !(!Pr(e) || typeof e.ownerId != "string" || e.ownerId.length === 0 || e.ownerId.length > 128) && X(e.expiresUtc)) return {
1326
1325
  ownerId: e.ownerId,
1327
1326
  expiresUtc: e.expiresUtc
1328
1327
  };
1329
1328
  }
1330
- function vn(e) {
1331
- if (!mn(e) || e.queueVersion !== 1 || typeof e.reportId != "string" || !X(e.enqueuedUtc) || !X(e.expiresUtc) || !X(e.nextAttemptUtc) || !hn(e.attemptCount)) return;
1332
- let t = R(e.payload);
1329
+ function Rr(e) {
1330
+ if (!Pr(e) || e.queueVersion !== 1 || typeof e.reportId != "string" || !X(e.enqueuedUtc) || !X(e.expiresUtc) || !X(e.nextAttemptUtc) || !Fr(e.attemptCount)) return;
1331
+ let t = Mn(e.payload);
1333
1332
  if (!t || t.reportId !== e.reportId) return;
1334
- let n = _n(e.lease);
1333
+ let n = Lr(e.lease);
1335
1334
  if (e.lease !== void 0 && !n) return;
1336
- let r = gn(e.lastFailure);
1335
+ let r = Ir(e.lastFailure);
1337
1336
  if (!(e.lastFailure !== void 0 && !r)) return {
1338
1337
  queueVersion: 1,
1339
1338
  reportId: e.reportId,
@@ -1350,14 +1349,14 @@ function Z(e, t) {
1350
1349
  if (!Array.isArray(e)) return [];
1351
1350
  let n = /* @__PURE__ */ new Set(), r = [];
1352
1351
  for (let i of e) {
1353
- let e = vn(i);
1352
+ let e = Rr(i);
1354
1353
  if (!(!e || Date.parse(e.expiresUtc) <= t || n.has(e.reportId)) && (n.add(e.reportId), r.push(e), r.length === 50)) break;
1355
1354
  }
1356
1355
  return r;
1357
1356
  }
1358
1357
  //#endregion
1359
1358
  //#region src/error-report/queue.ts
1360
- var yn = "queue.v1", bn = "records";
1359
+ var zr = "queue.v1", Br = "records";
1361
1360
  function Q(e) {
1362
1361
  return new Date(e).toISOString();
1363
1362
  }
@@ -1366,32 +1365,32 @@ function $(e) {
1366
1365
  if (t.length === 0 || t.length > 128) throw Error("Error report lease owner должен содержать от 1 до 128 символов");
1367
1366
  return t;
1368
1367
  }
1369
- function xn(e, t) {
1368
+ function Vr(e, t) {
1370
1369
  return Date.parse(e.nextAttemptUtc) - Date.parse(t.nextAttemptUtc) || Date.parse(e.enqueuedUtc) - Date.parse(t.enqueuedUtc);
1371
1370
  }
1372
- function Sn(e, t, n) {
1371
+ function Hr(e, t, n) {
1373
1372
  let r = e.findIndex((e) => e.reportId === t);
1374
1373
  return r < 0 ? {
1375
1374
  index: r,
1376
- result: "missing"
1375
+ result: kr
1377
1376
  } : e[r]?.lease?.ownerId === n ? {
1378
1377
  index: r,
1379
- result: "updated"
1378
+ result: Y
1380
1379
  } : {
1381
1380
  index: r,
1382
- result: "lease-mismatch"
1381
+ result: Ar
1383
1382
  };
1384
1383
  }
1385
- function Cn(e = {}) {
1384
+ function Ur(e = {}) {
1386
1385
  let t = e.storage ?? s({
1387
1386
  dbName: e.dbName ?? `${__APP_ID__}.error-report.queue.v1`,
1388
- storeName: bn,
1387
+ storeName: Br,
1389
1388
  indexedDB: e.indexedDB
1390
1389
  });
1391
1390
  if (!t) return;
1392
1391
  let n = t;
1393
1392
  function r(e, t) {
1394
- return n.updateItem(yn, (n) => {
1393
+ return n.updateItem(zr, (n) => {
1395
1394
  let r = t(Z(n, e));
1396
1395
  return {
1397
1396
  action: "set",
@@ -1402,13 +1401,13 @@ function Cn(e = {}) {
1402
1401
  }
1403
1402
  return {
1404
1403
  enqueue: async (e, t = /* @__PURE__ */ new Date()) => {
1405
- let n = R(e);
1406
- if (!n) return { status: "invalid-payload" };
1404
+ let n = Mn(e);
1405
+ if (!n) return { status: Dr };
1407
1406
  let i = t.getTime();
1408
1407
  return Number.isFinite(i) ? r(i, (e) => {
1409
1408
  if (e.some((e) => e.reportId === n.reportId)) return {
1410
1409
  records: e,
1411
- result: { status: "duplicate" }
1410
+ result: { status: Er }
1412
1411
  };
1413
1412
  let t;
1414
1413
  if (e.length >= 50) {
@@ -1418,7 +1417,7 @@ function Cn(e = {}) {
1418
1417
  })).filter(({ record: e }) => e.lease === void 0).sort((e, t) => Date.parse(e.record.enqueuedUtc) - Date.parse(t.record.enqueuedUtc))[0]?.index;
1419
1418
  if (n === void 0) return {
1420
1419
  records: e,
1421
- result: { status: "capacity-exceeded" }
1420
+ result: { status: Or }
1422
1421
  };
1423
1422
  t = e[n]?.reportId, e.splice(n, 1);
1424
1423
  }
@@ -1427,24 +1426,24 @@ function Cn(e = {}) {
1427
1426
  queueVersion: 1,
1428
1427
  reportId: n.reportId,
1429
1428
  enqueuedUtc: r,
1430
- expiresUtc: Q(i + dn),
1429
+ expiresUtc: Q(i + yr),
1431
1430
  nextAttemptUtc: r,
1432
1431
  attemptCount: 0,
1433
1432
  payload: n
1434
1433
  }), {
1435
1434
  records: e,
1436
1435
  result: t ? {
1437
- status: "enqueued",
1436
+ status: Tr,
1438
1437
  evictedReportId: t
1439
- } : { status: "enqueued" }
1438
+ } : { status: Tr }
1440
1439
  };
1441
- }) : { status: "invalid-payload" };
1440
+ }) : { status: Dr };
1442
1441
  },
1443
- leaseNext: async ({ ownerId: e, now: t = /* @__PURE__ */ new Date(), leaseDurationMs: n = fn }) => {
1442
+ leaseNext: async ({ ownerId: e, now: t = /* @__PURE__ */ new Date(), leaseDurationMs: n = br }) => {
1444
1443
  let i = $(e), a = t.getTime();
1445
1444
  if (!Number.isFinite(a) || !Number.isFinite(n) || n <= 0) throw Error("Error report lease требует валидное время и положительную длительность");
1446
1445
  return r(a, (e) => {
1447
- let t = e.filter((e) => Date.parse(e.nextAttemptUtc) <= a && (e.lease === void 0 || Date.parse(e.lease.expiresUtc) <= a)).sort(xn)[0];
1446
+ let t = e.filter((e) => Date.parse(e.nextAttemptUtc) <= a && (e.lease === void 0 || Date.parse(e.lease.expiresUtc) <= a)).sort(Vr)[0];
1448
1447
  if (!t) return {
1449
1448
  records: e,
1450
1449
  result: void 0
@@ -1466,10 +1465,10 @@ function Cn(e = {}) {
1466
1465
  acknowledge: async (e, t) => {
1467
1466
  let n = $(t);
1468
1467
  return r(Date.now(), (t) => {
1469
- let r = Sn(t, e, n);
1468
+ let r = Hr(t, e, n);
1470
1469
  return r.result === "updated" ? (t.splice(r.index, 1), {
1471
1470
  records: t,
1472
- result: "updated"
1471
+ result: Y
1473
1472
  }) : {
1474
1473
  records: t,
1475
1474
  result: r.result
@@ -1480,7 +1479,7 @@ function Cn(e = {}) {
1480
1479
  let i = $(t), a = Date.parse(n.nextAttemptUtc), o = Date.parse(n.failure.utc);
1481
1480
  if (!Number.isFinite(a) || !Number.isFinite(o)) throw Error("Error report retry требует валидные UTC timestamps");
1482
1481
  return r(o, (t) => {
1483
- let r = Sn(t, e, i);
1482
+ let r = Hr(t, e, i);
1484
1483
  if (r.result !== "updated") return {
1485
1484
  records: t,
1486
1485
  result: r.result
@@ -1493,20 +1492,20 @@ function Cn(e = {}) {
1493
1492
  lastFailure: n.failure
1494
1493
  }, {
1495
1494
  records: t,
1496
- result: "updated"
1495
+ result: Y
1497
1496
  }) : {
1498
1497
  records: t,
1499
- result: "missing"
1498
+ result: kr
1500
1499
  };
1501
1500
  });
1502
1501
  },
1503
1502
  discard: async (e, t) => {
1504
1503
  let n = $(t);
1505
1504
  return r(Date.now(), (t) => {
1506
- let r = Sn(t, e, n);
1505
+ let r = Hr(t, e, n);
1507
1506
  return r.result === "updated" ? (t.splice(r.index, 1), {
1508
1507
  records: t,
1509
- result: "updated"
1508
+ result: Y
1510
1509
  }) : {
1511
1510
  records: t,
1512
1511
  result: r.result
@@ -1515,12 +1514,12 @@ function Cn(e = {}) {
1515
1514
  },
1516
1515
  getRecords: async (e = /* @__PURE__ */ new Date()) => {
1517
1516
  let t = e.getTime();
1518
- return Number.isFinite(t) ? Z(await n.getItem(yn), t).sort(xn) : [];
1517
+ return Number.isFinite(t) ? Z(await n.getItem(zr), t).sort(Vr) : [];
1519
1518
  },
1520
1519
  getNextWakeUtc: async (e = /* @__PURE__ */ new Date()) => {
1521
1520
  let t = e.getTime();
1522
1521
  if (!Number.isFinite(t)) return;
1523
- let r = Z(await n.getItem(yn), t).reduce((e, t) => {
1522
+ let r = Z(await n.getItem(zr), t).reduce((e, t) => {
1524
1523
  let n = Math.max(Date.parse(t.nextAttemptUtc), t.lease ? Date.parse(t.lease.expiresUtc) : 0);
1525
1524
  return e === void 0 || n < e ? n : e;
1526
1525
  }, void 0);
@@ -1530,16 +1529,16 @@ function Cn(e = {}) {
1530
1529
  }
1531
1530
  //#endregion
1532
1531
  //#region src/error-report/runtime.ts
1533
- var wn;
1534
- function Tn(e) {
1535
- wn = e, gt();
1532
+ var Wr;
1533
+ function Gr(e) {
1534
+ Wr = e, gn();
1536
1535
  }
1537
- async function En(e, t = {}) {
1538
- if (wn) try {
1539
- await wn(e, t);
1536
+ async function Kr(e, t = {}) {
1537
+ if (Wr) try {
1538
+ await Wr(e, t);
1540
1539
  } catch {}
1541
1540
  }
1542
1541
  //#endregion
1543
- export { o as ERROR_REPORT_BUILD_ID_PATTERN, T as ERROR_REPORT_PAYLOAD_MAX_BYTES, Ge as ERROR_REPORT_PAYLOAD_VERSION, fn as ERROR_REPORT_QUEUE_LEASE_MS, un as ERROR_REPORT_QUEUE_MAX_ITEMS, dn as ERROR_REPORT_QUEUE_TTL_MS, ln as ERROR_REPORT_QUEUE_VERSION, E as ERROR_REPORT_STACK_TRACE_MAX_BYTES, Ke as ERROR_REPORT_VERBATIM_MESSAGE_MAX_BYTES, x as addErrorReportBreadcrumb, J as captureErrorReportDraft, sn as captureMutationErrorReport, on as captureQueryErrorReport, cn as captureRuntimeErrorReport, Te as clearErrorReportBreadcrumbs, G as collectMutationDiagnostics, q as collectPersistedQueryDiagnostics, K as collectQueryClientDiagnostics, W as collectQueryDiagnostics, _ as createDataShape, _e as createDiagnosticValue, M as createErrorInfo, Cn as createErrorReportQueue, At as disableErrorReportBrowserStorage, we as getErrorReportBreadcrumbs, zt as getErrorReportClientEnvironment, Wt as getErrorReportDraft, Kt as getErrorReportDrafts, Rt as getErrorReportEnvironment, k as getErrorReportPayloadSize, m as getUtf8TextSize, Le as installErrorReportBrowserBreadcrumbs, Lt as isErrorReportingEnabled, nn as isTransportErrorReportScheduled, at as limitErrorReportPayload, Z as normalizeErrorReportQueueRecords, z as parseErrorReportDraft, Tt as parseErrorReportDrafts, R as parseErrorReportPayload, vn as parseErrorReportQueueRecord, En as reportRuntimeError, an as reportTransportError, y as sanitizeDetail, p as sanitizeDiagnosticText, h as sanitizeDiagnosticTextBytes, v as sanitizeErrorReportValue, ie as setErrorReportCaptureOptions, Tn as setErrorReportRuntimeErrorReporter, ve as setErrorReportSanitizer, tn as setErrorReportTransportErrorReporter, rn as suppressTransportErrorReport, Gt as updateErrorReportDraft };
1542
+ export { o as ERROR_REPORT_BUILD_ID_PATTERN, E as ERROR_REPORT_PAYLOAD_MAX_BYTES, Rt as ERROR_REPORT_PAYLOAD_VERSION, br as ERROR_REPORT_QUEUE_LEASE_MS, vr as ERROR_REPORT_QUEUE_MAX_ITEMS, yr as ERROR_REPORT_QUEUE_TTL_MS, _r as ERROR_REPORT_QUEUE_VERSION, O as ERROR_REPORT_STACK_TRACE_MAX_BYTES, D as ERROR_REPORT_VERBATIM_MESSAGE_MAX_BYTES, C as addErrorReportBreadcrumb, q as captureErrorReportDraft, hr as captureMutationErrorReport, mr as captureQueryErrorReport, gr as captureRuntimeErrorReport, gt as clearErrorReportBreadcrumbs, Wn as collectMutationDiagnostics, K as collectPersistedQueryDiagnostics, G as collectQueryClientDiagnostics, Un as collectQueryDiagnostics, y as createDataShape, rt as createDiagnosticValue, P as createErrorInfo, Ur as createErrorReportQueue, Rn as disableErrorReportBrowserStorage, ht as getErrorReportBreadcrumbs, Jn as getErrorReportClientEnvironment, $n as getErrorReportDraft, tr as getErrorReportDrafts, qn as getErrorReportEnvironment, j as getErrorReportPayloadSize, g as getUtf8TextSize, Ot as installErrorReportBrowserBreadcrumbs, Kn as isErrorReportingEnabled, dr as isTransportErrorReportScheduled, rn as limitErrorReportPayload, Z as normalizeErrorReportQueueRecords, V as parseErrorReportDraft, Nn as parseErrorReportDrafts, Mn as parseErrorReportPayload, Rr as parseErrorReportQueueRecord, Kr as reportRuntimeError, pr as reportTransportError, x as sanitizeDetail, h as sanitizeDiagnosticText, _ as sanitizeDiagnosticTextBytes, b as sanitizeErrorReportValue, le as setErrorReportCaptureOptions, Gr as setErrorReportRuntimeErrorReporter, it as setErrorReportSanitizer, ur as setErrorReportTransportErrorReporter, fr as suppressTransportErrorReport, er as updateErrorReportDraft };
1544
1543
 
1545
1544
  //# sourceMappingURL=index.js.map