@futdevpro/fsm-dynamo 1.14.10 → 1.14.12
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.
- package/.vscode/settings.json +11 -0
- package/build/_collections/constants/data-sizes.const.d.ts +3 -3
- package/build/_collections/constants/data-sizes.const.d.ts.map +1 -1
- package/build/_collections/constants/data-sizes.const.js +4 -3
- package/build/_collections/constants/data-sizes.const.js.map +1 -1
- package/build/_collections/utils/array.util.d.ts +189 -0
- package/build/_collections/utils/array.util.d.ts.map +1 -1
- package/build/_collections/utils/array.util.js +189 -0
- package/build/_collections/utils/array.util.js.map +1 -1
- package/build/_collections/utils/async.util.d.ts +29 -0
- package/build/_collections/utils/async.util.d.ts.map +1 -1
- package/build/_collections/utils/async.util.js +45 -3
- package/build/_collections/utils/async.util.js.map +1 -1
- package/build/_collections/utils/json-error-helper.util.d.ts +38 -0
- package/build/_collections/utils/json-error-helper.util.d.ts.map +1 -1
- package/build/_collections/utils/json-error-helper.util.js +38 -0
- package/build/_collections/utils/json-error-helper.util.js.map +1 -1
- package/build/_collections/utils/log.util.d.ts +195 -5
- package/build/_collections/utils/log.util.d.ts.map +1 -1
- package/build/_collections/utils/log.util.js +245 -53
- package/build/_collections/utils/log.util.js.map +1 -1
- package/build/_collections/utils/math/box-bounds.util.d.ts +36 -0
- package/build/_collections/utils/math/box-bounds.util.d.ts.map +1 -1
- package/build/_collections/utils/math/box-bounds.util.js +38 -6
- package/build/_collections/utils/math/box-bounds.util.js.map +1 -1
- package/build/_collections/utils/math/math.util.d.ts +48 -12
- package/build/_collections/utils/math/math.util.d.ts.map +1 -1
- package/build/_collections/utils/math/math.util.js +51 -15
- package/build/_collections/utils/math/math.util.js.map +1 -1
- package/build/_collections/utils/math/math.util.spec.js +0 -9
- package/build/_collections/utils/math/math.util.spec.js.map +1 -1
- package/build/_collections/utils/math/random.util.d.ts +30 -0
- package/build/_collections/utils/math/random.util.d.ts.map +1 -1
- package/build/_collections/utils/math/random.util.js +30 -0
- package/build/_collections/utils/math/random.util.js.map +1 -1
- package/build/_collections/utils/math/trigonometry.util.d.ts +30 -0
- package/build/_collections/utils/math/trigonometry.util.d.ts.map +1 -1
- package/build/_collections/utils/math/trigonometry.util.js +30 -0
- package/build/_collections/utils/math/trigonometry.util.js.map +1 -1
- package/build/_collections/utils/math/vector2.util.d.ts +247 -17
- package/build/_collections/utils/math/vector2.util.d.ts.map +1 -1
- package/build/_collections/utils/math/vector2.util.js +309 -79
- package/build/_collections/utils/math/vector2.util.js.map +1 -1
- package/build/_collections/utils/object.util.js +9 -7
- package/build/_collections/utils/object.util.js.map +1 -1
- package/build/_collections/utils/regex/password-regex.util.d.ts +12 -0
- package/build/_collections/utils/regex/password-regex.util.d.ts.map +1 -1
- package/build/_collections/utils/regex/password-regex.util.js +12 -0
- package/build/_collections/utils/regex/password-regex.util.js.map +1 -1
- package/build/_collections/utils/round-list.util.d.ts +39 -0
- package/build/_collections/utils/round-list.util.d.ts.map +1 -1
- package/build/_collections/utils/round-list.util.js +39 -0
- package/build/_collections/utils/round-list.util.js.map +1 -1
- package/build/_collections/utils/stack.util.d.ts +19 -0
- package/build/_collections/utils/stack.util.d.ts.map +1 -1
- package/build/_collections/utils/stack.util.js +22 -2
- package/build/_collections/utils/stack.util.js.map +1 -1
- package/build/_collections/utils/stack.util.spec.js +0 -13
- package/build/_collections/utils/stack.util.spec.js.map +1 -1
- package/build/_collections/utils/string.util.d.ts +17 -0
- package/build/_collections/utils/string.util.d.ts.map +1 -1
- package/build/_collections/utils/string.util.js +17 -0
- package/build/_collections/utils/string.util.js.map +1 -1
- package/build/_collections/utils/time.util.d.ts +136 -0
- package/build/_collections/utils/time.util.d.ts.map +1 -1
- package/build/_collections/utils/time.util.js +164 -28
- package/build/_collections/utils/time.util.js.map +1 -1
- package/build/_collections/utils/utilities.util.d.ts +17 -1
- package/build/_collections/utils/utilities.util.d.ts.map +1 -1
- package/build/_collections/utils/utilities.util.js +17 -1
- package/build/_collections/utils/utilities.util.js.map +1 -1
- package/build/_collections/utils/uuid.util.d.ts +6 -0
- package/build/_collections/utils/uuid.util.d.ts.map +1 -1
- package/build/_collections/utils/uuid.util.js +6 -0
- package/build/_collections/utils/uuid.util.js.map +1 -1
- package/build/_enums/data-model-type.enum.d.ts +6 -0
- package/build/_enums/data-model-type.enum.d.ts.map +1 -1
- package/build/_enums/data-model-type.enum.js +6 -0
- package/build/_enums/data-model-type.enum.js.map +1 -1
- package/build/_enums/http/http-call-type.enum.d.ts +8 -0
- package/build/_enums/http/http-call-type.enum.d.ts.map +1 -1
- package/build/_enums/http/http-call-type.enum.js +8 -0
- package/build/_enums/http/http-call-type.enum.js.map +1 -1
- package/build/_enums/http/http-event-type.enum.d.ts +5 -0
- package/build/_enums/http/http-event-type.enum.d.ts.map +1 -1
- package/build/_enums/http/http-event-type.enum.js +5 -0
- package/build/_enums/http/http-event-type.enum.js.map +1 -1
- package/build/_enums/time/day-of-week.enum.d.ts +14 -1
- package/build/_enums/time/day-of-week.enum.d.ts.map +1 -1
- package/build/_enums/time/day-of-week.enum.js +14 -1
- package/build/_enums/time/day-of-week.enum.js.map +1 -1
- package/build/_models/control-models/data-model-params.control-model.d.ts.map +1 -1
- package/build/_models/control-models/data-model-params.control-model.js +11 -22
- package/build/_models/control-models/data-model-params.control-model.js.map +1 -1
- package/build/_models/control-models/data-property-params.control-model.d.ts +8 -0
- package/build/_models/control-models/data-property-params.control-model.d.ts.map +1 -1
- package/build/_models/control-models/data-property-params.control-model.js +11 -59
- package/build/_models/control-models/data-property-params.control-model.js.map +1 -1
- package/build/_models/control-models/error.control-model.js +8 -25
- package/build/_models/control-models/error.control-model.js.map +1 -1
- package/build/_models/control-models/http/http-error-response.control-model.d.ts +25 -0
- package/build/_models/control-models/http/http-error-response.control-model.d.ts.map +1 -1
- package/build/_models/control-models/http/http-error-response.control-model.js +30 -7
- package/build/_models/control-models/http/http-error-response.control-model.js.map +1 -1
- package/build/_models/control-models/http/http-headers.control-model.d.ts +8 -0
- package/build/_models/control-models/http/http-headers.control-model.d.ts.map +1 -1
- package/build/_models/control-models/http/http-headers.control-model.js +12 -17
- package/build/_models/control-models/http/http-headers.control-model.js.map +1 -1
- package/build/_models/control-models/http/http-response.model-base.d.ts +9 -0
- package/build/_models/control-models/http/http-response.model-base.d.ts.map +1 -1
- package/build/_models/control-models/http/http-response.model-base.js +23 -26
- package/build/_models/control-models/http/http-response.model-base.js.map +1 -1
- package/build/_models/control-models/poll.control-model.d.ts +18 -0
- package/build/_models/control-models/poll.control-model.d.ts.map +1 -1
- package/build/_models/control-models/poll.control-model.js +22 -26
- package/build/_models/control-models/poll.control-model.js.map +1 -1
- package/build/_models/control-models/range-value.control-model.d.ts +141 -0
- package/build/_models/control-models/range-value.control-model.d.ts.map +1 -1
- package/build/_models/control-models/range-value.control-model.js +143 -4
- package/build/_models/control-models/range-value.control-model.js.map +1 -1
- package/build/_models/control-models/server-status.control-model.d.ts +10 -0
- package/build/_models/control-models/server-status.control-model.d.ts.map +1 -1
- package/build/_models/control-models/server-status.control-model.js +10 -12
- package/build/_models/control-models/server-status.control-model.js.map +1 -1
- package/build/_models/control-models/service-endpoint-settings-base.control-model.d.ts +34 -1
- package/build/_models/control-models/service-endpoint-settings-base.control-model.d.ts.map +1 -1
- package/build/_models/control-models/service-endpoint-settings-base.control-model.js +26 -5
- package/build/_models/control-models/service-endpoint-settings-base.control-model.js.map +1 -1
- package/build/_models/data-models/errors.data-model.d.ts +10 -0
- package/build/_models/data-models/errors.data-model.d.ts.map +1 -1
- package/build/_models/data-models/errors.data-model.js +13 -18
- package/build/_models/data-models/errors.data-model.js.map +1 -1
- package/build/_models/data-models/metadata.data-model.d.ts +26 -0
- package/build/_models/data-models/metadata.data-model.d.ts.map +1 -1
- package/build/_models/data-models/metadata.data-model.js +26 -12
- package/build/_models/data-models/metadata.data-model.js.map +1 -1
- package/build/_modules/ai/_models/ai-call-settings.interface.js +46 -49
- package/build/_modules/ai/_models/ai-call-settings.interface.js.map +1 -1
- package/build/_modules/ai/_models/ai-settings.interface.js +0 -3
- package/build/_modules/ai/_models/ai-settings.interface.js.map +1 -1
- package/build/_modules/ai/_modules/anthropic/_models/aai-call-settings.control-model.js +2 -2
- package/build/_modules/ai/_modules/anthropic/_models/aai-call-settings.control-model.js.map +1 -1
- package/build/_modules/ai/_modules/anthropic/_models/aai-settings.control-model.js +3 -3
- package/build/_modules/ai/_modules/anthropic/_models/aai-settings.control-model.js.map +1 -1
- package/build/_modules/ai/_modules/google-ai/_models/gai-call-settings.control-model.js +2 -2
- package/build/_modules/ai/_modules/google-ai/_models/gai-call-settings.control-model.js.map +1 -1
- package/build/_modules/ai/_modules/google-ai/_models/gai-settings.control-model.js +3 -3
- package/build/_modules/ai/_modules/google-ai/_models/gai-settings.control-model.js.map +1 -1
- package/build/_modules/ai/_modules/local-ai/_models/lai-call-settings.control-model.js +1 -1
- package/build/_modules/ai/_modules/local-ai/_models/lai-call-settings.control-model.js.map +1 -1
- package/build/_modules/ai/_modules/local-ai/_models/lai-settings.control-model.js +3 -3
- package/build/_modules/ai/_modules/local-ai/_models/lai-settings.control-model.js.map +1 -1
- package/build/_modules/ai/_modules/open-ai/_models/oai-call-settings.control-model.js +2 -2
- package/build/_modules/ai/_modules/open-ai/_models/oai-call-settings.control-model.js.map +1 -1
- package/build/_modules/ai/_modules/open-ai/_models/oai-settings.control-model.js +3 -3
- package/build/_modules/ai/_modules/open-ai/_models/oai-settings.control-model.js.map +1 -1
- package/build/_modules/ai/_modules/open-ai/index.d.ts.map +1 -1
- package/build/_modules/ai/_modules/open-ai/index.js +7 -7
- package/build/_modules/ai/_modules/open-ai/index.js.map +1 -1
- package/build/_modules/ci-tools/_models/cit-ci-result-info.data-models.d.ts +23 -0
- package/build/_modules/ci-tools/_models/cit-ci-result-info.data-models.d.ts.map +1 -1
- package/build/_modules/ci-tools/_models/cit-ci-result-info.data-models.js +24 -12
- package/build/_modules/ci-tools/_models/cit-ci-result-info.data-models.js.map +1 -1
- package/build/_modules/crypto/_collections/crypto-2-non-stable.util.js +2 -2
- package/build/_modules/crypto/_collections/crypto-2-non-stable.util.js.map +1 -1
- package/build/_modules/crypto/_collections/crypto-old.util.d.ts.map +1 -1
- package/build/_modules/crypto/_collections/crypto-old.util.js +16 -16
- package/build/_modules/crypto/_collections/crypto-old.util.js.map +1 -1
- package/build/_modules/crypto/_collections/crypto.util.js +9 -9
- package/build/_modules/crypto/_collections/crypto.util.js.map +1 -1
- package/build/_modules/custom-data/_models/cud.data-model.d.ts +7 -0
- package/build/_modules/custom-data/_models/cud.data-model.d.ts.map +1 -1
- package/build/_modules/custom-data/_models/cud.data-model.js +7 -1
- package/build/_modules/custom-data/_models/cud.data-model.js.map +1 -1
- package/build/_modules/data-handler/_models/data-handler-settings.control-model.d.ts +73 -0
- package/build/_modules/data-handler/_models/data-handler-settings.control-model.d.ts.map +1 -0
- package/build/_modules/data-handler/_models/data-handler-settings.control-model.js +41 -0
- package/build/_modules/data-handler/_models/data-handler-settings.control-model.js.map +1 -0
- package/build/_modules/data-handler/_models/data-handler.control-model.d.ts +136 -0
- package/build/_modules/data-handler/_models/data-handler.control-model.d.ts.map +1 -0
- package/build/_modules/data-handler/_models/data-handler.control-model.js +293 -0
- package/build/_modules/data-handler/_models/data-handler.control-model.js.map +1 -0
- package/build/_modules/data-handler/_models/data-list-handler.control-model.d.ts +111 -0
- package/build/_modules/data-handler/_models/data-list-handler.control-model.d.ts.map +1 -0
- package/build/_modules/data-handler/_models/data-list-handler.control-model.js +197 -0
- package/build/_modules/data-handler/_models/data-list-handler.control-model.js.map +1 -0
- package/build/_modules/data-handler/_models/data-search-handler.control-model.d.ts +172 -0
- package/build/_modules/data-handler/_models/data-search-handler.control-model.d.ts.map +1 -0
- package/build/_modules/data-handler/_models/data-search-handler.control-model.js +319 -0
- package/build/_modules/data-handler/_models/data-search-handler.control-model.js.map +1 -0
- package/build/_modules/data-handler/_models/list-collector-data-handler.control-model.d.ts +116 -0
- package/build/_modules/data-handler/_models/list-collector-data-handler.control-model.d.ts.map +1 -0
- package/build/_modules/data-handler/_models/list-collector-data-handler.control-model.js +220 -0
- package/build/_modules/data-handler/_models/list-collector-data-handler.control-model.js.map +1 -0
- package/build/_modules/data-handler/index.d.ts +6 -0
- package/build/_modules/data-handler/index.d.ts.map +1 -0
- package/build/_modules/data-handler/index.js +10 -0
- package/build/_modules/data-handler/index.js.map +1 -0
- package/build/_modules/location/_collections/loc-regions.util.d.ts +33 -0
- package/build/_modules/location/_collections/loc-regions.util.d.ts.map +1 -1
- package/build/_modules/location/_collections/loc-regions.util.js +37 -4
- package/build/_modules/location/_collections/loc-regions.util.js.map +1 -1
- package/build/_modules/location/_collections/loc.util.d.ts +10 -0
- package/build/_modules/location/_collections/loc.util.d.ts.map +1 -1
- package/build/_modules/location/_collections/loc.util.js +10 -0
- package/build/_modules/location/_collections/loc.util.js.map +1 -1
- package/build/_modules/messaging/_models/msg-conversation.data-model.js +0 -23
- package/build/_modules/messaging/_models/msg-conversation.data-model.js.map +1 -1
- package/build/_modules/messaging/_models/msg-message.data-model.js +0 -34
- package/build/_modules/messaging/_models/msg-message.data-model.js.map +1 -1
- package/build/_modules/socket/_models/sck-client-params.control-model.js +2 -7
- package/build/_modules/socket/_models/sck-client-params.control-model.js.map +1 -1
- package/build/_modules/socket/_models/sck-socket-event.control-model.js +0 -8
- package/build/_modules/socket/_models/sck-socket-event.control-model.js.map +1 -1
- package/build/_modules/socket/_services/sck-client.service-base.js +69 -72
- package/build/_modules/socket/_services/sck-client.service-base.js.map +1 -1
- package/build/_modules/usage/_models/usg-action.control-model.js +0 -4
- package/build/_modules/usage/_models/usg-action.control-model.js.map +1 -1
- package/build/_modules/usage/_models/usg-daily-usage-data.control-model.js +10 -12
- package/build/_modules/usage/_models/usg-daily-usage-data.control-model.js.map +1 -1
- package/build/_modules/usage/_models/usg-data.control-model.js +2 -8
- package/build/_modules/usage/_models/usg-data.control-model.js.map +1 -1
- package/build/_modules/usage/_models/usg-session.data-model.js +2 -18
- package/build/_modules/usage/_models/usg-session.data-model.js.map +1 -1
- package/eslint.config.js +4 -0
- package/futdevpro-fsm-dynamo-01.14.12.tgz +0 -0
- package/package.json +22 -3
- package/src/_collections/constants/data-sizes.const.ts +4 -4
- package/src/_collections/utils/array.util.ts +189 -0
- package/src/_collections/utils/async.util.ts +40 -0
- package/src/_collections/utils/json-error-helper.util.ts +43 -3
- package/src/_collections/utils/log.util.ts +194 -4
- package/src/_collections/utils/math/box-bounds.util.ts +36 -0
- package/src/_collections/utils/math/math.util.spec.ts +0 -10
- package/src/_collections/utils/math/math.util.ts +48 -16
- package/src/_collections/utils/math/random.util.ts +30 -0
- package/src/_collections/utils/math/trigonometry.util.ts +30 -0
- package/src/_collections/utils/math/vector2.util.ts +254 -24
- package/src/_collections/utils/regex/password-regex.util.ts +12 -0
- package/src/_collections/utils/round-list.util.ts +39 -0
- package/src/_collections/utils/stack.util.ts +27 -4
- package/src/_collections/utils/string.util.ts +17 -0
- package/src/_collections/utils/time.util.ts +136 -0
- package/src/_collections/utils/utilities.util.ts +17 -1
- package/src/_collections/utils/uuid.util.ts +6 -0
- package/src/_enums/data-model-type.enum.ts +6 -0
- package/src/_enums/http/http-call-type.enum.ts +8 -0
- package/src/_enums/http/http-event-type.enum.ts +5 -0
- package/src/_enums/time/day-of-week.enum.ts +14 -1
- package/src/_models/control-models/data-model-params.control-model.ts +11 -1
- package/src/_models/control-models/data-property-params.control-model.ts +8 -0
- package/src/_models/control-models/http/http-error-response.control-model.ts +25 -0
- package/src/_models/control-models/http/http-headers.control-model.ts +8 -0
- package/src/_models/control-models/http/http-response.model-base.ts +9 -0
- package/src/_models/control-models/poll.control-model.ts +18 -0
- package/src/_models/control-models/range-value.control-model.ts +141 -0
- package/src/_models/control-models/server-status.control-model.ts +10 -0
- package/src/_models/control-models/service-endpoint-settings-base.control-model.ts +53 -4
- package/src/_models/data-models/errors.data-model.ts +10 -0
- package/src/_models/data-models/metadata.data-model.ts +27 -0
- package/src/_modules/ai/_modules/open-ai/index.ts +4 -3
- package/src/_modules/ci-tools/_models/cit-ci-result-info.data-models.ts +23 -0
- package/src/_modules/crypto/_collections/crypto-old.util.ts +17 -9
- package/src/_modules/custom-data/_models/cud.data-model.ts +7 -0
- package/src/_modules/data-handler/_models/data-handler-settings.control-model.ts +110 -0
- package/src/_modules/data-handler/_models/data-handler.control-model.ts +459 -0
- package/src/_modules/data-handler/_models/data-list-handler.control-model.ts +245 -0
- package/src/_modules/data-handler/_models/data-search-handler.control-model.ts +390 -0
- package/src/_modules/data-handler/_models/list-collector-data-handler.control-model.ts +274 -0
- package/src/_modules/data-handler/index.ts +6 -0
- package/src/_modules/location/_collections/loc-regions.util.ts +34 -1
- package/src/_modules/location/_collections/loc.util.ts +10 -0
- package/src/_modules/usage/_collections/usg-module-settings.const.ts +1 -1
- package/tsconfig.json +2 -2
- package/.eslintrc.json +0 -155
- package/futdevpro-fsm-dynamo-01.14.10.tgz +0 -0
|
@@ -21,6 +21,12 @@ class DyFM_JsonErrorHelper {
|
|
|
21
21
|
* @param jsonInput - The original JSON input string
|
|
22
22
|
* @param contextLines - Number of context lines to show before and after the error (default: 5)
|
|
23
23
|
* @returns Object containing line number, context lines, and character position, or null if parsing fails
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const lineInfo = DyFM_JsonErrorHelper.extractLineInfoFromJsonError('Expected property name or "}" in JSON at position 10', '{"name": "John", "age": 30}', 5);
|
|
28
|
+
* console.log(lineInfo); // { lineNumber: 1, contextLines: [ '{"name": "John", "age": 30}' ], characterPosition: 10 }
|
|
29
|
+
* ```
|
|
24
30
|
*/
|
|
25
31
|
static extractLineInfoFromJsonError(errorMessage, jsonInput, contextLines = 5) {
|
|
26
32
|
try {
|
|
@@ -67,6 +73,16 @@ class DyFM_JsonErrorHelper {
|
|
|
67
73
|
}
|
|
68
74
|
/**
|
|
69
75
|
* Helper method to create line info from a character position
|
|
76
|
+
* @param jsonInput - The original JSON input string
|
|
77
|
+
* @param position - The character position where the error occurred
|
|
78
|
+
* @param contextLines - Number of context lines to show before and after the error (default: 5)
|
|
79
|
+
* @returns Object containing line number, context lines, and character position
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```ts
|
|
83
|
+
* const lineInfo = DyFM_JsonErrorHelper.createLineInfoFromPosition('{"name": "John", "age": 30}', 10, 5);
|
|
84
|
+
* console.log(lineInfo); // { lineNumber: 1, contextLines: [ '{"name": "John", "age": 30}' ], characterPosition: 10 }
|
|
85
|
+
* ```
|
|
70
86
|
*/
|
|
71
87
|
static createLineInfoFromPosition(jsonInput, position, contextLines) {
|
|
72
88
|
// Handle undefined or invalid input
|
|
@@ -121,6 +137,12 @@ class DyFM_JsonErrorHelper {
|
|
|
121
137
|
* @param lineInfo - The line information extracted from the error
|
|
122
138
|
* @param errorMessage - The original error message
|
|
123
139
|
* @returns Formatted error string for logging
|
|
140
|
+
*
|
|
141
|
+
* @example
|
|
142
|
+
* ```ts
|
|
143
|
+
* const logLines = DyFM_JsonErrorHelper.formatJsonErrorForLogging({ lineNumber: 1, contextLines: [ '{"name": "John", "age": 30}' ], characterPosition: 10 }, 'Expected property name or "}" in JSON at position 10');
|
|
144
|
+
* console.log(logLines); // [ 'JSON parsing failed: Expected property name or "}" in JSON at position 10', 'Error at line 1, character 10:', 'Context (1 lines):', ' 1: {"name": "John", "age": 30}' ]
|
|
145
|
+
* ```
|
|
124
146
|
*/
|
|
125
147
|
static formatJsonErrorForLogging(lineInfo, errorMessage) {
|
|
126
148
|
const logLines = [];
|
|
@@ -146,6 +168,13 @@ class DyFM_JsonErrorHelper {
|
|
|
146
168
|
* @param contextLines - Number of context lines to show in error (default: 5)
|
|
147
169
|
* @returns Parsed JSON object
|
|
148
170
|
* @throws Error with detailed line information if parsing fails
|
|
171
|
+
*
|
|
172
|
+
* @example
|
|
173
|
+
* ```ts
|
|
174
|
+
* const json = '{"name": "John", "age": 30}';
|
|
175
|
+
* const result = DyFM_JsonErrorHelper.parseJsonWithEnhancedError(json);
|
|
176
|
+
* console.log(result); // { name: 'John', age: 30 }
|
|
177
|
+
* ```
|
|
149
178
|
*/
|
|
150
179
|
static parseJsonWithEnhancedError(jsonString, reviver, contextLines = 2) {
|
|
151
180
|
// Prevent infinite recursion and handle invalid input
|
|
@@ -190,6 +219,15 @@ class DyFM_JsonErrorHelper {
|
|
|
190
219
|
}
|
|
191
220
|
/**
|
|
192
221
|
* Formats single-line JSON with line breaks for better error reporting
|
|
222
|
+
* @param jsonString - The JSON string to format
|
|
223
|
+
* @returns The formatted JSON string
|
|
224
|
+
*
|
|
225
|
+
* @example
|
|
226
|
+
* ```ts
|
|
227
|
+
* const json = '{"name": "John", "age": 30, "city": "New York"}';
|
|
228
|
+
* const result = DyFM_JsonErrorHelper.formatJsonForBetterErrors(json);
|
|
229
|
+
* console.log(result); // '{\n "name": "John",\n "age": 30,\n "city": "New York"\n}'
|
|
230
|
+
* ```
|
|
193
231
|
*/
|
|
194
232
|
static formatJsonForBetterErrors(jsonString) {
|
|
195
233
|
if (!jsonString || typeof jsonString !== 'string') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json-error-helper.util.js","sourceRoot":"","sources":["../../../src/_collections/utils/json-error-helper.util.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAcH;;GAEG;AACH,MAAa,oBAAoB;IAE/B
|
|
1
|
+
{"version":3,"file":"json-error-helper.util.js","sourceRoot":"","sources":["../../../src/_collections/utils/json-error-helper.util.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAcH;;GAEG;AACH,MAAa,oBAAoB;IAE/B;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,4BAA4B,CACjC,YAAoB,EACpB,SAAiB,EACjB,eAAuB,CAAC;QAExB,IAAI,CAAC;YACH,sDAAsD;YACtD,IAAI,aAAa,GAAG,YAAY,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;YAC5D,IAAI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B,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;aACrB,OAAO,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC,yBAAyB;aACnD,OAAO,CAAC,aAAa,EAAE,UAAS,KAAa,EAAE,MAAc,EAAE,MAAc;YAC5E,0CAA0C;YAC1C,IAAI,CAAC,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;gBAC1C,OAAO,KAAK,CAAC;YACf,CAAC;YACD,MAAM,KAAK,GAAa,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YAC5D,MAAM,KAAK,GAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM;gBAC9D,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;YAEnE,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;QACzC,CAAC,CAAC,CAAC;IACP,CAAC;CACF;AAtRD,oDAsRC"}
|
|
@@ -19,10 +19,20 @@ export declare class DyFM_Log {
|
|
|
19
19
|
/**
|
|
20
20
|
* Sets the style of the console log.
|
|
21
21
|
* @param styles - The styles to set.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* DyFM_Log.setStyle([ DyFM_LogStyle.bold, DyFM_LogStyle.underline ]);
|
|
26
|
+
* ```
|
|
22
27
|
*/
|
|
23
28
|
static setStyle(styles: DyFM_LogStyle[]): void;
|
|
24
29
|
/**
|
|
25
30
|
* Resets the style of the console log.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* DyFM_Log.resetStyle();
|
|
35
|
+
* ```
|
|
26
36
|
*/
|
|
27
37
|
static resetStyle(): void;
|
|
28
38
|
/**
|
|
@@ -31,17 +41,23 @@ export declare class DyFM_Log {
|
|
|
31
41
|
* @param styles - The styles to add.
|
|
32
42
|
* @param dontReset - Whether to not reset the style.
|
|
33
43
|
* @returns The input with the style added.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* const result = DyFM_Log.addStyle('Hello, world!', [ DyFM_LogStyle.bold, DyFM_LogStyle.underline ]);
|
|
48
|
+
* ```
|
|
34
49
|
*/
|
|
35
50
|
static addStyle(input: string, styles: DyFM_LogStyle[], dontReset?: boolean): string;
|
|
36
51
|
/**
|
|
37
52
|
* Logs a success message.
|
|
38
53
|
* @param message - The message to log.
|
|
39
54
|
* @param optionalParams - The optional parameters to log.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* DyFM_Log.success('Hello, world!');
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
45
61
|
static success(message: string, ...optionalParams: any[]): void;
|
|
46
62
|
/**
|
|
47
63
|
* @deprecated use DyFM_Log.success instead
|
|
@@ -51,6 +67,11 @@ export declare class DyFM_Log {
|
|
|
51
67
|
* Logs an error message.
|
|
52
68
|
* @param message - The message to log.
|
|
53
69
|
* @param optionalParams - The optional parameters to log.
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* ```ts
|
|
73
|
+
* DyFM_Log.error('An error occurred: {errorMessage}', errorMessage);
|
|
74
|
+
* ```
|
|
54
75
|
*/
|
|
55
76
|
static error(message: string, ...optionalParams: any[]): void;
|
|
56
77
|
/**
|
|
@@ -61,6 +82,11 @@ export declare class DyFM_Log {
|
|
|
61
82
|
* Logs a warning message.
|
|
62
83
|
* @param message - The message to log.
|
|
63
84
|
* @param optionalParams - The optional parameters to log.
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* ```ts
|
|
88
|
+
* DyFM_Log.warn('A warning occurred: {warningMessage}', warningMessage);
|
|
89
|
+
* ```
|
|
64
90
|
*/
|
|
65
91
|
static warn(message: string, ...optionalParams: any[]): void;
|
|
66
92
|
/**
|
|
@@ -75,12 +101,22 @@ export declare class DyFM_Log {
|
|
|
75
101
|
* Logs an info message.
|
|
76
102
|
* @param message - The message to log.
|
|
77
103
|
* @param optionalParams - The optional parameters to log.
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
* ```ts
|
|
107
|
+
* DyFM_Log.info('An info message: {infoMessage}', infoMessage);
|
|
108
|
+
* ```
|
|
78
109
|
*/
|
|
79
110
|
static info(message: string, ...optionalParams: any[]): void;
|
|
80
111
|
/**
|
|
81
112
|
* Logs a log message.
|
|
82
113
|
* @param message - The message to log.
|
|
83
114
|
* @param optionalParams - The optional parameters to log.
|
|
115
|
+
*
|
|
116
|
+
* @example
|
|
117
|
+
* ```ts
|
|
118
|
+
* DyFM_Log.log('A log message: {logMessage}', logMessage);
|
|
119
|
+
* ```
|
|
84
120
|
*/
|
|
85
121
|
static log(message: string, ...optionalParams: any[]): void;
|
|
86
122
|
/**
|
|
@@ -88,20 +124,46 @@ export declare class DyFM_Log {
|
|
|
88
124
|
* @param message - The message to highlight.
|
|
89
125
|
* @param optionalParams - The optional parameters to highlight.
|
|
90
126
|
* @returns The highlighted message.
|
|
127
|
+
*
|
|
128
|
+
* @example
|
|
129
|
+
* ```ts
|
|
130
|
+
* const highlightedMessage = DyFM_Log.getHighlighted('A highlighted message: {highlightedMessage}', highlightedMessage);
|
|
131
|
+
* console.log(highlightedMessage); // A highlighted message: {highlightedMessage}
|
|
132
|
+
* ```
|
|
91
133
|
*/
|
|
92
134
|
static getHighlighted(message: string, ...optionalParams: any[]): string;
|
|
93
135
|
/**
|
|
94
136
|
* Logs a highlighted message.
|
|
95
137
|
* @param message - The message to highlight.
|
|
96
138
|
* @param optionalParams - The optional parameters to highlight.
|
|
139
|
+
*
|
|
140
|
+
* @example
|
|
141
|
+
* ```ts
|
|
142
|
+
* DyFM_Log.highlighted('A highlighted message: {highlightedMessage}', highlightedMessage);
|
|
143
|
+
* ```
|
|
97
144
|
*/
|
|
98
145
|
static highlighted(message: string, ...optionalParams: any[]): void;
|
|
146
|
+
/**
|
|
147
|
+
* Logs a small log message.
|
|
148
|
+
* @param message - The message to log.
|
|
149
|
+
* @param optionalParams - The optional parameters to log.
|
|
150
|
+
*
|
|
151
|
+
* @example
|
|
152
|
+
* ```ts
|
|
153
|
+
* DyFM_Log.smallLog('A small log message: {smallLogMessage}', smallLogMessage);
|
|
154
|
+
* ```
|
|
155
|
+
*/
|
|
99
156
|
static smallLog(message: string, ...optionalParams: any[]): void;
|
|
100
157
|
static readonly S_log: typeof DyFM_Log.smallLog;
|
|
101
158
|
/**
|
|
102
159
|
* Tests a log message.
|
|
103
160
|
* @param message - The message to test.
|
|
104
161
|
* @param optionalParams - The optional parameters to test.
|
|
162
|
+
*
|
|
163
|
+
* @example
|
|
164
|
+
* ```ts
|
|
165
|
+
* DyFM_Log.testLog('A test log message: {testLogMessage}', testLogMessage);
|
|
166
|
+
* ```
|
|
105
167
|
*/
|
|
106
168
|
static testLog(message: string, ...optionalParams: any[]): void;
|
|
107
169
|
static readonly test: typeof DyFM_Log.testLog;
|
|
@@ -110,15 +172,35 @@ export declare class DyFM_Log {
|
|
|
110
172
|
* Logs a highlighted log message.
|
|
111
173
|
* @param message - The message to highlight.
|
|
112
174
|
* @param optionalParams - The optional parameters to highlight.
|
|
175
|
+
*
|
|
176
|
+
* @example
|
|
177
|
+
* ```ts
|
|
178
|
+
* DyFM_Log.highlightedLog('A highlighted log message: {highlightedLogMessage}', highlightedLogMessage);
|
|
179
|
+
* ```
|
|
113
180
|
*/
|
|
114
181
|
static highlightedLog(message: string, ...optionalParams: any[]): void;
|
|
115
182
|
static readonly H_log: typeof DyFM_Log.highlightedLog;
|
|
183
|
+
/**
|
|
184
|
+
* Logs a small info message.
|
|
185
|
+
* @param message - The message to log.
|
|
186
|
+
* @param optionalParams - The optional parameters to log.
|
|
187
|
+
*
|
|
188
|
+
* @example
|
|
189
|
+
* ```ts
|
|
190
|
+
* DyFM_Log.smallInfo('A small info message: {smallInfoMessage}', smallInfoMessage);
|
|
191
|
+
* ```
|
|
192
|
+
*/
|
|
116
193
|
static smallInfo(message: string, ...optionalParams: any[]): void;
|
|
117
194
|
static readonly S_info: typeof DyFM_Log.smallInfo;
|
|
118
195
|
/**
|
|
119
196
|
* Tests an info message.
|
|
120
197
|
* @param message - The message to test.
|
|
121
198
|
* @param optionalParams - The optional parameters to test.
|
|
199
|
+
*
|
|
200
|
+
* @example
|
|
201
|
+
* ```ts
|
|
202
|
+
* DyFM_Log.testInfo('A test info message: {testInfoMessage}', testInfoMessage);
|
|
203
|
+
* ```
|
|
122
204
|
*/
|
|
123
205
|
static testInfo(message: string, ...optionalParams: any[]): void;
|
|
124
206
|
static readonly T_info: typeof DyFM_Log.testInfo;
|
|
@@ -126,15 +208,35 @@ export declare class DyFM_Log {
|
|
|
126
208
|
* Logs a highlighted info message.
|
|
127
209
|
* @param message - The message to highlight.
|
|
128
210
|
* @param optionalParams - The optional parameters to highlight.
|
|
211
|
+
*
|
|
212
|
+
* @example
|
|
213
|
+
* ```ts
|
|
214
|
+
* DyFM_Log.highlightedInfo('A highlighted info message: {highlightedInfoMessage}', highlightedInfoMessage);
|
|
215
|
+
* ```
|
|
129
216
|
*/
|
|
130
217
|
static highlightedInfo(message: string, ...optionalParams: any[]): void;
|
|
131
218
|
static readonly H_info: typeof DyFM_Log.highlightedInfo;
|
|
219
|
+
/**
|
|
220
|
+
* Logs a small error message.
|
|
221
|
+
* @param message - The message to log.
|
|
222
|
+
* @param optionalParams - The optional parameters to log.
|
|
223
|
+
*
|
|
224
|
+
* @example
|
|
225
|
+
* ```ts
|
|
226
|
+
* DyFM_Log.smallError('A small error message: {smallErrorMessage}', smallErrorMessage);
|
|
227
|
+
* ```
|
|
228
|
+
*/
|
|
132
229
|
static smallError(message: string, ...optionalParams: any[]): void;
|
|
133
230
|
static readonly S_error: typeof DyFM_Log.smallError;
|
|
134
231
|
/**
|
|
135
232
|
* Tests an error message.
|
|
136
233
|
* @param message - The message to test.
|
|
137
234
|
* @param optionalParams - The optional parameters to test.
|
|
235
|
+
*
|
|
236
|
+
* @example
|
|
237
|
+
* ```ts
|
|
238
|
+
* DyFM_Log.testError('A test error message: {testErrorMessage}', testErrorMessage);
|
|
239
|
+
* ```
|
|
138
240
|
*/
|
|
139
241
|
static testError(message: string, ...optionalParams: any[]): void;
|
|
140
242
|
static readonly T_error: typeof DyFM_Log.testError;
|
|
@@ -142,15 +244,35 @@ export declare class DyFM_Log {
|
|
|
142
244
|
* Logs a highlighted error message.
|
|
143
245
|
* @param message - The message to highlight.
|
|
144
246
|
* @param optionalParams - The optional parameters to highlight.
|
|
247
|
+
*
|
|
248
|
+
* @example
|
|
249
|
+
* ```ts
|
|
250
|
+
* DyFM_Log.highlightedError('A highlighted error message: {highlightedErrorMessage}', highlightedErrorMessage);
|
|
251
|
+
* ```
|
|
145
252
|
*/
|
|
146
253
|
static highlightedError(message: string, ...optionalParams: any[]): void;
|
|
147
254
|
static readonly H_error: typeof DyFM_Log.highlightedError;
|
|
255
|
+
/**
|
|
256
|
+
* Logs a small warning message.
|
|
257
|
+
* @param message - The message to log.
|
|
258
|
+
* @param optionalParams - The optional parameters to log.
|
|
259
|
+
*
|
|
260
|
+
* @example
|
|
261
|
+
* ```ts
|
|
262
|
+
* DyFM_Log.smallWarn('A small warning message: {smallWarnMessage}', smallWarnMessage);
|
|
263
|
+
* ```
|
|
264
|
+
*/
|
|
148
265
|
static smallWarn(message: string, ...optionalParams: any[]): void;
|
|
149
266
|
static readonly S_warn: typeof DyFM_Log.smallWarn;
|
|
150
267
|
/**
|
|
151
268
|
* Tests a warning message.
|
|
152
269
|
* @param message - The message to test.
|
|
153
270
|
* @param optionalParams - The optional parameters to test.
|
|
271
|
+
*
|
|
272
|
+
* @example
|
|
273
|
+
* ```ts
|
|
274
|
+
* DyFM_Log.testWarn('A test warning message: {testWarnMessage}', testWarnMessage);
|
|
275
|
+
* ```
|
|
154
276
|
*/
|
|
155
277
|
static testWarn(message: string, ...optionalParams: any[]): void;
|
|
156
278
|
static readonly T_warn: typeof DyFM_Log.testWarn;
|
|
@@ -158,15 +280,35 @@ export declare class DyFM_Log {
|
|
|
158
280
|
* Logs a highlighted warning message.
|
|
159
281
|
* @param message - The message to highlight.
|
|
160
282
|
* @param optionalParams - The optional parameters to highlight.
|
|
283
|
+
*
|
|
284
|
+
* @example
|
|
285
|
+
* ```ts
|
|
286
|
+
* DyFM_Log.highlightedWarn('A highlighted warning message: {highlightedWarnMessage}', highlightedWarnMessage);
|
|
287
|
+
* ```
|
|
161
288
|
*/
|
|
162
289
|
static highlightedWarn(message: string, ...optionalParams: any[]): void;
|
|
163
290
|
static readonly H_warn: typeof DyFM_Log.highlightedWarn;
|
|
291
|
+
/**
|
|
292
|
+
* Logs a small success message.
|
|
293
|
+
* @param message - The message to log.
|
|
294
|
+
* @param optionalParams - The optional parameters to log.
|
|
295
|
+
*
|
|
296
|
+
* @example
|
|
297
|
+
* ```ts
|
|
298
|
+
* DyFM_Log.smallSuccess('A small success message: {smallSuccessMessage}', smallSuccessMessage);
|
|
299
|
+
* ```
|
|
300
|
+
*/
|
|
164
301
|
static smallSuccess(message: string, ...optionalParams: any[]): void;
|
|
165
302
|
static readonly S_success: typeof DyFM_Log.smallSuccess;
|
|
166
303
|
/**
|
|
167
304
|
* Tests a success message.
|
|
168
305
|
* @param message - The message to test.
|
|
169
306
|
* @param optionalParams - The optional parameters to test.
|
|
307
|
+
*
|
|
308
|
+
* @example
|
|
309
|
+
* ```ts
|
|
310
|
+
* DyFM_Log.testSuccess('A test success message: {testSuccessMessage}', testSuccessMessage);
|
|
311
|
+
* ```
|
|
170
312
|
*/
|
|
171
313
|
static testSuccess(message: string, ...optionalParams: any[]): void;
|
|
172
314
|
static readonly T_success: typeof DyFM_Log.testSuccess;
|
|
@@ -185,24 +327,72 @@ export declare class DyFM_Log {
|
|
|
185
327
|
static removeLogStyles(message: string): string;
|
|
186
328
|
/**
|
|
187
329
|
* Silences all logs.
|
|
330
|
+
*
|
|
331
|
+
* @example
|
|
332
|
+
* ```ts
|
|
333
|
+
* DyFM_Log.silenceLogs();
|
|
334
|
+
* ```
|
|
188
335
|
*/
|
|
189
336
|
static silenceLogs(): void;
|
|
190
337
|
/**
|
|
191
338
|
* Silences non-error logs.
|
|
339
|
+
*
|
|
340
|
+
* @example
|
|
341
|
+
* ```ts
|
|
342
|
+
* DyFM_Log.silenceNonErrorLogs();
|
|
343
|
+
* ```
|
|
192
344
|
*/
|
|
193
345
|
static silenceNonErrorLogs(): void;
|
|
194
346
|
/**
|
|
195
347
|
* Silences all logs.
|
|
348
|
+
*
|
|
349
|
+
* @example
|
|
350
|
+
* ```ts
|
|
351
|
+
* DyFM_Log.silenceConsole();
|
|
352
|
+
* ```
|
|
196
353
|
*/
|
|
197
354
|
static silenceConsole(): void;
|
|
198
355
|
/**
|
|
199
356
|
* Adds breaks and tabs to the string parameters.
|
|
200
357
|
* @param params - The parameters to add the breaks and tabs to.
|
|
201
358
|
* @returns The parameters with the breaks and tabs added.
|
|
359
|
+
*
|
|
360
|
+
* @example
|
|
361
|
+
* ```ts
|
|
362
|
+
* const params = [ 'Hello, world!', 'Hello, world!', 'Hello, world!' ];
|
|
363
|
+
* const result = DyFM_Log.addBreaksAndTabsToStringParams(params);
|
|
364
|
+
* console.log(result); // [ 'Hello, world!', 'Hello, world!', 'Hello, world!' ]
|
|
365
|
+
* ```
|
|
202
366
|
*/
|
|
203
367
|
static addBreaksAndTabsToStringParams(params: any[]): any[];
|
|
368
|
+
/**
|
|
369
|
+
* Adds spaces for each line.
|
|
370
|
+
* @param message - The message to add the spaces to.
|
|
371
|
+
* @param spaces - The number of spaces to add.
|
|
372
|
+
* @returns The message with the spaces added.
|
|
373
|
+
*
|
|
374
|
+
* @example
|
|
375
|
+
* ```ts
|
|
376
|
+
* const message = 'Hello, world!\nHello, world!\nHello, world!';
|
|
377
|
+
* const result = DyFM_Log.addSpacesForEachLine(message, 2);
|
|
378
|
+
* console.log(result); // Hello, world! Hello, world! Hello, world!
|
|
379
|
+
* ```
|
|
380
|
+
*/
|
|
204
381
|
static addSpacesForEachLine(message: string, spaces: number): string;
|
|
205
382
|
private static asfel;
|
|
383
|
+
/**
|
|
384
|
+
* Adds spaces for each string optional parameter.
|
|
385
|
+
* @param params - The parameters to add the spaces to.
|
|
386
|
+
* @param spaces - The number of spaces to add.
|
|
387
|
+
* @returns The parameters with the spaces added.
|
|
388
|
+
*
|
|
389
|
+
* @example
|
|
390
|
+
* ```ts
|
|
391
|
+
* const params = [ 'Hello, world!', 'Hello, world!', 'Hello, world!' ];
|
|
392
|
+
* const result = DyFM_Log.addSpacesForEachStringOptionalParam(params, 2);
|
|
393
|
+
* console.log(result); // [ 'Hello, world! Hello, world! Hello, world!' ]
|
|
394
|
+
* ```
|
|
395
|
+
*/
|
|
206
396
|
static addSpacesForEachStringOptionalParam(params: any[], spaces: number): any[];
|
|
207
397
|
private static asfesop;
|
|
208
398
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.util.d.ts","sourceRoot":"","sources":["../../../src/_collections/utils/log.util.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAqB,MAAM,6BAA6B,CAAC;AAG/E,MAAM,MAAM,MAAM,GAAG,QAAQ,CAAC;AAE9B;;;;GAIG;AACH,qBAAa,QAAQ;IAEnB,MAAM,CAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAsB;IACvD,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAqB;IACvD,MAAM,CAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAA8B;IAC/D,MAAM,CAAC,QAAQ,CAAC,YAAY,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