@futdevpro/fsm-dynamo 1.10.37 → 1.10.39
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/.github/workflows/main.yml +11 -51
- package/build/_collections/constants/error-defaults.const.d.ts +8 -0
- package/build/_collections/constants/error-defaults.const.d.ts.map +1 -1
- package/build/_collections/constants/error-defaults.const.js +8 -0
- package/build/_collections/constants/error-defaults.const.js.map +1 -1
- package/build/_collections/constants/global-settings.const.d.ts +8 -0
- package/build/_collections/constants/global-settings.const.d.ts.map +1 -1
- package/build/_collections/constants/global-settings.const.js +9 -0
- package/build/_collections/constants/global-settings.const.js.map +1 -1
- package/build/_collections/constants/numbers.const.d.ts +32 -0
- package/build/_collections/constants/numbers.const.d.ts.map +1 -1
- package/build/_collections/constants/numbers.const.js +32 -0
- package/build/_collections/constants/numbers.const.js.map +1 -1
- package/build/_collections/constants/times.const.d.ts +31 -0
- package/build/_collections/constants/times.const.d.ts.map +1 -1
- package/build/_collections/constants/times.const.js +31 -0
- package/build/_collections/constants/times.const.js.map +1 -1
- package/build/_collections/utils/array.util.d.ts +136 -7
- package/build/_collections/utils/array.util.d.ts.map +1 -1
- package/build/_collections/utils/array.util.js +132 -2
- package/build/_collections/utils/array.util.js.map +1 -1
- package/build/_collections/utils/array.util.spec.js.map +1 -1
- package/build/_collections/utils/log.util.d.ts +123 -0
- package/build/_collections/utils/log.util.d.ts.map +1 -1
- package/build/_collections/utils/log.util.js +123 -0
- package/build/_collections/utils/log.util.js.map +1 -1
- package/build/_collections/utils/math/box-bounds.spec.js +2 -5
- package/build/_collections/utils/math/box-bounds.spec.js.map +1 -1
- package/build/_collections/utils/math/box-bounds.util.d.ts +52 -6
- package/build/_collections/utils/math/box-bounds.util.d.ts.map +1 -1
- package/build/_collections/utils/math/box-bounds.util.js +57 -5
- package/build/_collections/utils/math/box-bounds.util.js.map +1 -1
- package/build/_collections/utils/math/box-bounds.util.spec.js +1 -1
- package/build/_collections/utils/math/box-bounds.util.spec.js.map +1 -1
- package/build/_collections/utils/math/math.util.d.ts +30 -0
- package/build/_collections/utils/math/math.util.d.ts.map +1 -1
- package/build/_collections/utils/math/math.util.js +30 -0
- package/build/_collections/utils/math/math.util.js.map +1 -1
- package/build/_collections/utils/math/random.util.d.ts +19 -2
- package/build/_collections/utils/math/random.util.d.ts.map +1 -1
- package/build/_collections/utils/math/random.util.js +22 -0
- package/build/_collections/utils/math/random.util.js.map +1 -1
- package/build/_collections/utils/math/random.util.spec.js.map +1 -1
- package/build/_collections/utils/math/vector2.util.d.ts +142 -20
- package/build/_collections/utils/math/vector2.util.d.ts.map +1 -1
- package/build/_collections/utils/math/vector2.util.js +126 -0
- package/build/_collections/utils/math/vector2.util.js.map +1 -1
- package/build/_collections/utils/round-list.util.d.ts +36 -1
- package/build/_collections/utils/round-list.util.d.ts.map +1 -1
- package/build/_collections/utils/round-list.util.js +35 -0
- package/build/_collections/utils/round-list.util.js.map +1 -1
- package/build/_collections/utils/shared.util.js.map +1 -1
- package/build/_collections/utils/stack.util.js +3 -3
- package/build/_collections/utils/stack.util.js.map +1 -1
- package/build/_collections/utils/string.util.d.ts +8 -1
- package/build/_collections/utils/string.util.d.ts.map +1 -1
- package/build/_collections/utils/string.util.js +8 -1
- package/build/_collections/utils/string.util.js.map +1 -1
- package/build/_collections/utils/time.util.d.ts +29 -0
- package/build/_collections/utils/time.util.d.ts.map +1 -1
- package/build/_collections/utils/time.util.js +29 -0
- package/build/_collections/utils/time.util.js.map +1 -1
- package/build/_collections/utils/type-cloning-facility.util.d.ts +29 -3
- package/build/_collections/utils/type-cloning-facility.util.d.ts.map +1 -1
- package/build/_collections/utils/type-cloning-facility.util.js +53 -3
- package/build/_collections/utils/type-cloning-facility.util.js.map +1 -1
- package/build/_collections/utils/utilities.util.d.ts +49 -2
- package/build/_collections/utils/utilities.util.d.ts.map +1 -1
- package/build/_collections/utils/utilities.util.js +53 -1
- package/build/_collections/utils/utilities.util.js.map +1 -1
- package/build/_collections/utils/utilities.util.spec.js.map +1 -1
- package/build/_collections/utils/uuid.util.d.ts +5 -0
- package/build/_collections/utils/uuid.util.d.ts.map +1 -1
- package/build/_collections/utils/uuid.util.js +5 -0
- package/build/_collections/utils/uuid.util.js.map +1 -1
- package/build/_enums/basic-property-type.enum.d.ts +8 -0
- package/build/_enums/basic-property-type.enum.d.ts.map +1 -1
- package/build/_enums/basic-property-type.enum.js +8 -0
- package/build/_enums/basic-property-type.enum.js.map +1 -1
- package/build/_enums/data-model-type.enum.d.ts +8 -4
- package/build/_enums/data-model-type.enum.d.ts.map +1 -1
- package/build/_enums/data-model-type.enum.js +8 -4
- package/build/_enums/data-model-type.enum.js.map +1 -1
- package/build/_enums/environment-flag.enum.d.ts +18 -0
- package/build/_enums/environment-flag.enum.d.ts.map +1 -1
- package/build/_enums/environment-flag.enum.js +18 -0
- package/build/_enums/environment-flag.enum.js.map +1 -1
- package/build/_enums/error-level.enum.d.ts +10 -0
- package/build/_enums/error-level.enum.d.ts.map +1 -1
- package/build/_enums/error-level.enum.js +10 -0
- package/build/_enums/error-level.enum.js.map +1 -1
- package/build/_enums/http-call-type.enum.d.ts +6 -2
- package/build/_enums/http-call-type.enum.d.ts.map +1 -1
- package/build/_enums/http-call-type.enum.js +6 -2
- package/build/_enums/http-call-type.enum.js.map +1 -1
- package/build/_enums/http-response-type.enum.d.ts +8 -0
- package/build/_enums/http-response-type.enum.d.ts.map +1 -1
- package/build/_enums/http-response-type.enum.js +8 -0
- package/build/_enums/http-response-type.enum.js.map +1 -1
- package/build/_enums/log-style.enum.d.ts +8 -0
- package/build/_enums/log-style.enum.d.ts.map +1 -1
- package/build/_enums/log-style.enum.js +8 -0
- package/build/_enums/log-style.enum.js.map +1 -1
- package/build/_enums/time/day-of-week.enum.d.ts +13 -1
- package/build/_enums/time/day-of-week.enum.d.ts.map +1 -1
- package/build/_enums/time/day-of-week.enum.js +13 -1
- package/build/_enums/time/day-of-week.enum.js.map +1 -1
- package/build/_enums/time/month.enum.d.ts +8 -0
- package/build/_enums/time/month.enum.d.ts.map +1 -1
- package/build/_enums/time/month.enum.js +8 -0
- package/build/_enums/time/month.enum.js.map +1 -1
- package/build/_enums/time/relative-date.enum.d.ts +10 -0
- package/build/_enums/time/relative-date.enum.d.ts.map +1 -1
- package/build/_enums/time/relative-date.enum.js +10 -0
- package/build/_enums/time/relative-date.enum.js.map +1 -1
- package/build/_models/control-models/data-model-params.control-model.d.ts +4 -4
- 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.map +1 -1
- 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.map +1 -1
- package/build/_models/control-models/error.control-model.spec.js.map +1 -1
- package/build/_models/interfaces/box-bounds.interface.d.ts +8 -0
- package/build/_models/interfaces/box-bounds.interface.d.ts.map +1 -0
- package/build/_models/interfaces/box-bounds.interface.js +3 -0
- package/build/_models/interfaces/box-bounds.interface.js.map +1 -0
- package/build/_models/interfaces/environment/global-settings.interface.d.ts +1 -0
- package/build/_models/interfaces/environment/global-settings.interface.d.ts.map +1 -1
- package/build/_models/interfaces/route-settings.interface.d.ts +6 -1
- package/build/_models/interfaces/route-settings.interface.d.ts.map +1 -1
- package/build/_modules/crypto/_collections/crypto.util.d.ts +11 -17
- package/build/_modules/crypto/_collections/crypto.util.d.ts.map +1 -1
- package/build/_modules/crypto/_collections/crypto.util.js +74 -58
- package/build/_modules/crypto/_collections/crypto.util.js.map +1 -1
- package/build/_modules/crypto/_collections/crypto.util.spec.js +390 -0
- package/build/_modules/crypto/_collections/crypto.util.spec.js.map +1 -1
- package/build/_modules/custom-data/_collections/cud-module-settings.const.d.ts +6 -0
- package/build/_modules/custom-data/_collections/cud-module-settings.const.d.ts.map +1 -1
- package/build/_modules/custom-data/_collections/cud-module-settings.const.js +6 -0
- package/build/_modules/custom-data/_collections/cud-module-settings.const.js.map +1 -1
- package/build/_modules/custom-data/_models/cud.data-model.d.ts +3 -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 +3 -0
- package/build/_modules/custom-data/_models/cud.data-model.js.map +1 -1
- package/build/_modules/location/_collections/loc-country-divisions.const.d.ts +1 -0
- package/build/_modules/location/_collections/loc-country-divisions.const.d.ts.map +1 -1
- package/build/_modules/location/_collections/loc-country-divisions.const.js +1 -0
- package/build/_modules/location/_collections/loc-country-divisions.const.js.map +1 -1
- package/build/_modules/location/_collections/loc-regions.util.d.ts +4 -0
- package/build/_modules/location/_collections/loc-regions.util.d.ts.map +1 -1
- package/build/_modules/location/_collections/loc-regions.util.js +4 -0
- package/build/_modules/location/_collections/loc-regions.util.js.map +1 -1
- package/build/_modules/location/_collections/loc.util.d.ts +9 -0
- package/build/_modules/location/_collections/loc.util.d.ts.map +1 -1
- package/build/_modules/location/_collections/loc.util.js +9 -0
- package/build/_modules/location/_collections/loc.util.js.map +1 -1
- package/build/_modules/location/_enums/loc-region.enum.d.ts +3 -0
- package/build/_modules/location/_enums/loc-region.enum.d.ts.map +1 -1
- package/build/_modules/location/_enums/loc-region.enum.js +3 -0
- package/build/_modules/location/_enums/loc-region.enum.js.map +1 -1
- package/build/_modules/location/_enums/loc-sub-region.enum.d.ts +3 -0
- package/build/_modules/location/_enums/loc-sub-region.enum.d.ts.map +1 -1
- package/build/_modules/location/_enums/loc-sub-region.enum.js +3 -0
- package/build/_modules/location/_enums/loc-sub-region.enum.js.map +1 -1
- package/build/_modules/location/_enums/loc-subdivision-region-type.enum.d.ts +37 -34
- package/build/_modules/location/_enums/loc-subdivision-region-type.enum.d.ts.map +1 -1
- package/build/_modules/location/_enums/loc-subdivision-region-type.enum.js +3 -0
- package/build/_modules/location/_enums/loc-subdivision-region-type.enum.js.map +1 -1
- package/build/_modules/location/_models/loc-coordinates.interface.d.ts +1 -0
- package/build/_modules/location/_models/loc-coordinates.interface.d.ts.map +1 -1
- package/build/_modules/open-ai/_enums/open-ai-model.enum.d.ts +10 -7
- package/build/_modules/open-ai/_enums/open-ai-model.enum.d.ts.map +1 -1
- package/build/_modules/open-ai/_enums/open-ai-model.enum.js +3 -0
- package/build/_modules/open-ai/_enums/open-ai-model.enum.js.map +1 -1
- package/build/_modules/pipe/_enums/pip-range-pipe-setting.enum.d.ts +3 -0
- package/build/_modules/pipe/_enums/pip-range-pipe-setting.enum.d.ts.map +1 -1
- package/build/_modules/pipe/_enums/pip-range-pipe-setting.enum.js +3 -0
- package/build/_modules/pipe/_enums/pip-range-pipe-setting.enum.js.map +1 -1
- package/build/_modules/pipe/_enums/pip.enum.d.ts +14 -0
- package/build/_modules/pipe/_enums/pip.enum.d.ts.map +1 -1
- package/build/_modules/pipe/_enums/pip.enum.js +11 -0
- package/build/_modules/pipe/_enums/pip.enum.js.map +1 -1
- package/build/_modules/socket/_enums/sck-event-key.enum.d.ts +3 -0
- package/build/_modules/socket/_enums/sck-event-key.enum.d.ts.map +1 -1
- package/build/_modules/socket/_enums/sck-event-key.enum.js +3 -0
- package/build/_modules/socket/_enums/sck-event-key.enum.js.map +1 -1
- package/build/_modules/socket/_models/sck-client-params.control-model.d.ts +12 -0
- package/build/_modules/socket/_models/sck-client-params.control-model.d.ts.map +1 -1
- package/build/_modules/socket/_models/sck-client-params.control-model.js +12 -0
- package/build/_modules/socket/_models/sck-client-params.control-model.js.map +1 -1
- package/build/_modules/socket/_models/sck-socket-event.control-model.d.ts +12 -1
- package/build/_modules/socket/_models/sck-socket-event.control-model.d.ts.map +1 -1
- package/build/_modules/socket/_models/sck-socket-event.control-model.js +12 -1
- package/build/_modules/socket/_models/sck-socket-event.control-model.js.map +1 -1
- package/build/_modules/socket/_services/sck-client.service-base.d.ts +4 -0
- package/build/_modules/socket/_services/sck-client.service-base.d.ts.map +1 -1
- package/build/_modules/socket/_services/sck-client.service-base.js +4 -0
- package/build/_modules/socket/_services/sck-client.service-base.js.map +1 -1
- package/build/_modules/test/_collections/tst-module-settings.const.d.ts +9 -0
- package/build/_modules/test/_collections/tst-module-settings.const.d.ts.map +1 -1
- package/build/_modules/test/_collections/tst-module-settings.const.js +9 -0
- package/build/_modules/test/_collections/tst-module-settings.const.js.map +1 -1
- package/build/_modules/usage/_models/usg-action.control-model.d.ts +13 -0
- package/build/_modules/usage/_models/usg-action.control-model.d.ts.map +1 -1
- package/build/_modules/usage/_models/usg-action.control-model.js +13 -0
- package/build/_modules/usage/_models/usg-action.control-model.js.map +1 -1
- package/build/_modules/usage/_models/usg-daily-usage-data.control-model.d.ts +14 -0
- package/build/_modules/usage/_models/usg-daily-usage-data.control-model.d.ts.map +1 -1
- package/build/_modules/usage/_models/usg-daily-usage-data.control-model.js +14 -0
- package/build/_modules/usage/_models/usg-daily-usage-data.control-model.js.map +1 -1
- package/build/_modules/usage/_models/usg-data.control-model.d.ts +16 -0
- package/build/_modules/usage/_models/usg-data.control-model.d.ts.map +1 -1
- package/build/_modules/usage/_models/usg-data.control-model.js +16 -0
- package/build/_modules/usage/_models/usg-data.control-model.js.map +1 -1
- package/build/_modules/usage/_models/usg-session.data-model.d.ts +17 -0
- package/build/_modules/usage/_models/usg-session.data-model.d.ts.map +1 -1
- package/build/_modules/usage/_models/usg-session.data-model.js +17 -0
- package/build/_modules/usage/_models/usg-session.data-model.js.map +1 -1
- package/build/_modules/usage/_models/usg-session.data-model.spec.js.map +1 -1
- package/build/index.d.ts +1 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +1 -0
- package/build/index.js.map +1 -1
- package/futdevpro-fsm-dynamo-01.10.39.tgz +0 -0
- package/package.json +9 -5
- package/src/_collections/constants/error-defaults.const.ts +8 -0
- package/src/_collections/constants/global-settings.const.ts +12 -2
- package/src/_collections/constants/numbers.const.ts +32 -0
- package/src/_collections/constants/times.const.ts +37 -0
- package/src/_collections/utils/array.util.spec.ts +36 -38
- package/src/_collections/utils/array.util.ts +146 -12
- package/src/_collections/utils/log.util.ts +126 -2
- package/src/_collections/utils/math/box-bounds.spec.ts +8 -13
- package/src/_collections/utils/math/box-bounds.util.spec.ts +3 -3
- package/src/_collections/utils/math/box-bounds.util.ts +65 -12
- package/src/_collections/utils/math/math.util.ts +30 -6
- package/src/_collections/utils/math/random.util.spec.ts +7 -7
- package/src/_collections/utils/math/random.util.ts +27 -4
- package/src/_collections/utils/math/vector2.util.ts +148 -21
- package/src/_collections/utils/round-list.util.ts +36 -3
- package/src/_collections/utils/shared.util.ts +17 -17
- package/src/_collections/utils/stack.util.ts +6 -6
- package/src/_collections/utils/string.util.ts +8 -1
- package/src/_collections/utils/time.util.ts +37 -2
- package/src/_collections/utils/type-cloning-facility.util.ts +57 -8
- package/src/_collections/utils/utilities.util.spec.ts +2 -2
- package/src/_collections/utils/utilities.util.ts +61 -8
- package/src/_collections/utils/uuid.util.ts +5 -0
- package/src/_enums/basic-property-type.enum.ts +8 -0
- package/src/_enums/data-model-type.enum.ts +11 -6
- package/src/_enums/environment-flag.enum.ts +18 -0
- package/src/_enums/error-level.enum.ts +10 -0
- package/src/_enums/http-call-type.enum.ts +6 -2
- package/src/_enums/http-response-type.enum.ts +8 -0
- package/src/_enums/log-style.enum.ts +8 -0
- package/src/_enums/time/day-of-week.enum.ts +13 -1
- package/src/_enums/time/month.enum.ts +8 -0
- package/src/_enums/time/relative-date.enum.ts +10 -0
- package/src/_models/control-models/data-model-params.control-model.ts +6 -6
- package/src/_models/control-models/data-property-params.control-model.ts +1 -1
- package/src/_models/control-models/error.control-model.spec.ts +2 -2
- package/src/_models/interfaces/box-bounds.interface.ts +8 -0
- package/src/_models/interfaces/environment/global-settings.interface.ts +2 -0
- package/src/_models/interfaces/route-settings.interface.ts +6 -1
- package/src/_modules/crypto/_collections/crypto.util.spec.ts +428 -0
- package/src/_modules/crypto/_collections/crypto.util.ts +88 -52
- package/src/_modules/custom-data/_collections/cud-module-settings.const.ts +6 -0
- package/src/_modules/custom-data/_models/cud.data-model.ts +3 -0
- package/src/_modules/location/_collections/loc-country-divisions.const.ts +2 -1
- package/src/_modules/location/_collections/loc-regions.util.ts +4 -0
- package/src/_modules/location/_collections/loc.util.ts +13 -5
- package/src/_modules/location/_enums/loc-region.enum.ts +3 -0
- package/src/_modules/location/_enums/loc-sub-region.enum.ts +3 -0
- package/src/_modules/location/_enums/loc-subdivision-region-type.enum.ts +37 -34
- package/src/_modules/location/_models/loc-coordinates.interface.ts +1 -0
- package/src/_modules/open-ai/_enums/open-ai-model.enum.ts +11 -8
- package/src/_modules/pipe/_enums/pip-range-pipe-setting.enum.ts +3 -0
- package/src/_modules/pipe/_enums/pip.enum.ts +17 -3
- package/src/_modules/socket/_enums/sck-event-key.enum.ts +3 -0
- package/src/_modules/socket/_models/sck-client-params.control-model.ts +12 -0
- package/src/_modules/socket/_models/sck-socket-event.control-model.ts +12 -1
- package/src/_modules/socket/_services/sck-client.service-base.ts +4 -0
- package/src/_modules/test/_collections/tst-module-settings.const.ts +9 -0
- package/src/_modules/usage/_models/usg-action.control-model.ts +13 -0
- package/src/_modules/usage/_models/usg-daily-usage-data.control-model.ts +14 -0
- package/src/_modules/usage/_models/usg-data.control-model.ts +16 -0
- package/src/_modules/usage/_models/usg-session.data-model.spec.ts +2 -1
- package/src/_modules/usage/_models/usg-session.data-model.ts +17 -0
- package/src/index.ts +1 -0
- package/tsconfig.json +1 -0
- package/futdevpro-fsm-dynamo-01.10.37.tgz +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"math.util.d.ts","sourceRoot":"","sources":["../../../../src/_collections/utils/math/math.util.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"math.util.d.ts","sourceRoot":"","sources":["../../../../src/_collections/utils/math/math.util.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,qBAAa,SAAS;IAEpB;;OAEG;IACH,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO;IAIlF;;OAEG;IACH,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO;IAIpE;;OAEG;IACH,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM;IAIrD,MAAM,CAAC,QAAQ,CAAC,OAAO,yBAAc;IACrC;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,GAAE,MAAU,GAAG,MAAM;IAUzD;;OAEG;IACH,MAAM,CAAC,gBAAgB,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM;IAI1C;;OAEG;IACH,MAAM,CAAC,kBAAkB,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM;IAY5C;;OAEG;IACH,MAAM,CAAC,2BAA2B,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM;IAIrD;;OAEG;IACH,MAAM,CAAC,wBAAwB,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM;IAQlD;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,SAAS,GAAE,MAAY,GAAG,MAAM;CAO5D"}
|
|
@@ -1,17 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DyFM_Math = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* this class is a collection of static methods for mathematical operations
|
|
6
|
+
*/
|
|
4
7
|
class DyFM_Math {
|
|
8
|
+
/**
|
|
9
|
+
* returns true if the value is between the min and max
|
|
10
|
+
*/
|
|
5
11
|
static between(value, minExclusive, maxExclusive) {
|
|
6
12
|
return minExclusive < value && value < maxExclusive;
|
|
7
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* returns true if the value is between the target and the range
|
|
16
|
+
*/
|
|
8
17
|
static around(value, target, range) {
|
|
9
18
|
return this.between(value, target - range, target + range);
|
|
10
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* returns a random integer between the min and max
|
|
22
|
+
*/
|
|
11
23
|
static getRandomInt(min, max) {
|
|
12
24
|
return min + Math.round((max - min) * Math.random());
|
|
13
25
|
}
|
|
14
26
|
static toFixed = this.round;
|
|
27
|
+
/**
|
|
28
|
+
* returns a number rounded to the specified number of decimals
|
|
29
|
+
*/
|
|
15
30
|
static round(value, decimals = 2) {
|
|
16
31
|
if (0 <= decimals) {
|
|
17
32
|
return Number(value.toFixed(decimals));
|
|
@@ -21,9 +36,15 @@ class DyFM_Math {
|
|
|
21
36
|
return Math.round(value / factor) * factor;
|
|
22
37
|
}
|
|
23
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* returns a number with spaces between the thousands
|
|
41
|
+
*/
|
|
24
42
|
static numberWithSpaces(x) {
|
|
25
43
|
return x?.toString()?.replace(/\B(?=(\d{3})+(?!\d))/g, ' ');
|
|
26
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* returns a number with shorter units
|
|
47
|
+
*/
|
|
27
48
|
static numberWithShorters(x) {
|
|
28
49
|
if (x < 1000) {
|
|
29
50
|
return x?.toString();
|
|
@@ -38,14 +59,23 @@ class DyFM_Math {
|
|
|
38
59
|
return (x / 1000000000)?.toFixed(3) + 'B';
|
|
39
60
|
}
|
|
40
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* returns a number with shorter units and spaces between the thousands
|
|
64
|
+
*/
|
|
41
65
|
static numberWithShortersAndSpaces(x) {
|
|
42
66
|
return this.numberWithShorters(x)?.replace(/\B(?=(\d{3})+(?!\d))/g, ' ');
|
|
43
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* returns a number with spaces between the thousands
|
|
70
|
+
*/
|
|
44
71
|
static floatingNumberWithSpaces(x) {
|
|
45
72
|
const parts = x?.toString()?.split('.');
|
|
46
73
|
parts[0] = parts?.[0]?.replace(/\B(?=(\d{3})+(?!\d))/g, ' ');
|
|
47
74
|
return parts?.join('.');
|
|
48
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* returns a number with spaces between the thousands
|
|
78
|
+
*/
|
|
49
79
|
static decimals(x, useSpacer = ',') {
|
|
50
80
|
const parts = x?.toString()?.split('.');
|
|
51
81
|
parts[0] = parts?.[0]?.replace(/\B(?=(\d{3})+(?!\d))/g, useSpacer);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"math.util.js","sourceRoot":"","sources":["../../../../src/_collections/utils/math/math.util.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"math.util.js","sourceRoot":"","sources":["../../../../src/_collections/utils/math/math.util.ts"],"names":[],"mappings":";;;AAGA;;GAEG;AACH,MAAa,SAAS;IAEpB;;OAEG;IACH,MAAM,CAAC,OAAO,CAAC,KAAa,EAAE,YAAoB,EAAE,YAAoB;QACtE,OAAO,YAAY,GAAG,KAAK,IAAI,KAAK,GAAG,YAAY,CAAC;IACtD,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAM,CAAC,KAAa,EAAE,MAAc,EAAE,KAAa;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,CAAC;IAC7D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,YAAY,CAAC,GAAW,EAAE,GAAW;QAC1C,OAAO,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;IACvD,CAAC;IAED,MAAM,CAAU,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC;IACrC;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,KAAa,EAAE,WAAmB,CAAC;QAC9C,IAAI,CAAC,IAAI,QAAQ,EAAE,CAAC;YAClB,OAAO,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;QACzC,CAAC;aAAM,CAAC;YACN,MAAM,MAAM,GAAG,IAA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,CAAC,EAAE,OAAO,CAAC,uBAAuB,EAAE,GAAG,CAAC,CAAC;QAE7D,OAAO,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IAC1B,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,CAAS,EAAE,YAAoB,GAAG;QAChD,MAAM,KAAK,GAAa,CAAC,EAAE,QAAQ,EAAE,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;QAElD,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,uBAAuB,EAAE,SAAS,CAAC,CAAC;QAEnE,OAAO,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IAC1B,CAAC;;AAtFH,8BAuFC"}
|
|
@@ -1,8 +1,25 @@
|
|
|
1
1
|
import { DyFM_RandomWeight } from '../../../_models/interfaces/random-weight.interface';
|
|
2
|
+
/**
|
|
3
|
+
* this class is a collection of static methods for random operations
|
|
4
|
+
*/
|
|
2
5
|
export declare class DyFM_Random {
|
|
6
|
+
/**
|
|
7
|
+
* returns a random weighted integer between the min and max
|
|
8
|
+
*/
|
|
3
9
|
static getRandomWeightedInt(min: number, max: number, weights: DyFM_RandomWeight<number>[]): number;
|
|
4
10
|
static getRandomInt(min: number, max: number): number;
|
|
5
|
-
|
|
6
|
-
|
|
11
|
+
/**
|
|
12
|
+
* returns null if list is empty
|
|
13
|
+
* @param list
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
static getRandomListElement<T>(list: T[]): T | null;
|
|
17
|
+
/**
|
|
18
|
+
* returns a random weighted element from the list
|
|
19
|
+
* (returns null if list is empty)
|
|
20
|
+
* @param weights
|
|
21
|
+
* @returns
|
|
22
|
+
*/
|
|
23
|
+
static getRandomWeighted<T>(weights: DyFM_RandomWeight<T>[]): T | null;
|
|
7
24
|
}
|
|
8
25
|
//# sourceMappingURL=random.util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"random.util.d.ts","sourceRoot":"","sources":["../../../../src/_collections/utils/math/random.util.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qDAAqD,CAAC;
|
|
1
|
+
{"version":3,"file":"random.util.d.ts","sourceRoot":"","sources":["../../../../src/_collections/utils/math/random.util.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qDAAqD,CAAC;AAGxF;;GAEG;AACH,qBAAa,WAAW;IACtB;;OAEG;IACH,MAAM,CAAC,oBAAoB,CACzB,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,iBAAiB,CAAC,MAAM,CAAC,EAAE,GACnC,MAAM;IA6BT,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM;IAIrD;;;;OAIG;IACH,MAAM,CAAC,oBAAoB,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,GAAG,IAAI;IAQnD;;;;;OAKG;IACH,MAAM,CAAC,iBAAiB,CAAC,CAAC,EAAE,OAAO,EAAE,iBAAiB,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,IAAI;CAkCvE"}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DyFM_Random = void 0;
|
|
4
|
+
const log_util_1 = require("../log.util");
|
|
5
|
+
/**
|
|
6
|
+
* this class is a collection of static methods for random operations
|
|
7
|
+
*/
|
|
4
8
|
class DyFM_Random {
|
|
9
|
+
/**
|
|
10
|
+
* returns a random weighted integer between the min and max
|
|
11
|
+
*/
|
|
5
12
|
static getRandomWeightedInt(min, max, weights) {
|
|
6
13
|
weights = weights.sort((a, b) => b.chance - a.chance);
|
|
7
14
|
let weightChanceSum = 0;
|
|
@@ -28,6 +35,11 @@ class DyFM_Random {
|
|
|
28
35
|
static getRandomInt(min, max) {
|
|
29
36
|
return min + Math.round((max - min) * Math.random());
|
|
30
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* returns null if list is empty
|
|
40
|
+
* @param list
|
|
41
|
+
* @returns
|
|
42
|
+
*/
|
|
31
43
|
static getRandomListElement(list) {
|
|
32
44
|
if (0 < list.length) {
|
|
33
45
|
return list[this.getRandomInt(0, list.length - 1)];
|
|
@@ -36,6 +48,12 @@ class DyFM_Random {
|
|
|
36
48
|
return null;
|
|
37
49
|
}
|
|
38
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* returns a random weighted element from the list
|
|
53
|
+
* (returns null if list is empty)
|
|
54
|
+
* @param weights
|
|
55
|
+
* @returns
|
|
56
|
+
*/
|
|
39
57
|
static getRandomWeighted(weights) {
|
|
40
58
|
if (!weights?.length) {
|
|
41
59
|
return null;
|
|
@@ -57,6 +75,10 @@ class DyFM_Random {
|
|
|
57
75
|
result = weights[i].result;
|
|
58
76
|
}
|
|
59
77
|
}
|
|
78
|
+
if (result === undefined) {
|
|
79
|
+
log_util_1.DyFM_Log.error('DyFM_Random failed to get a random weighted element from the list');
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
60
82
|
return result;
|
|
61
83
|
}
|
|
62
84
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"random.util.js","sourceRoot":"","sources":["../../../../src/_collections/utils/math/random.util.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"random.util.js","sourceRoot":"","sources":["../../../../src/_collections/utils/math/random.util.ts"],"names":[],"mappings":";;;AAGA,0CAAuC;AAEvC;;GAEG;AACH,MAAa,WAAW;IACtB;;OAEG;IACH,MAAM,CAAC,oBAAoB,CACzB,GAAW,EACX,GAAW,EACX,OAAoC;QAEpC,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAU,EAAE,CAAC,CAAC,CAAC,MAAM,GAA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AC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -26,69 +26,191 @@ export declare class DyFM_Vector2_Util implements DyFM_Vector2 {
|
|
|
26
26
|
get y(): number;
|
|
27
27
|
private _magintude;
|
|
28
28
|
get magintude(): number;
|
|
29
|
+
/**
|
|
30
|
+
* zero vector
|
|
31
|
+
*/
|
|
29
32
|
static readonly zero: DyFM_Vector2;
|
|
33
|
+
/**
|
|
34
|
+
* up vector
|
|
35
|
+
*/
|
|
30
36
|
static readonly up: DyFM_Vector2;
|
|
37
|
+
/**
|
|
38
|
+
* down vector
|
|
39
|
+
*/
|
|
31
40
|
static readonly down: DyFM_Vector2;
|
|
41
|
+
/**
|
|
42
|
+
* right vector
|
|
43
|
+
*/
|
|
32
44
|
static readonly right: DyFM_Vector2;
|
|
45
|
+
/**
|
|
46
|
+
* left vector
|
|
47
|
+
*/
|
|
33
48
|
static readonly left: DyFM_Vector2;
|
|
34
49
|
constructor(xOrXyOrVector?: number | DyFM_Vector2, y?: number);
|
|
50
|
+
/**
|
|
51
|
+
* returns true if the vector is constructed
|
|
52
|
+
*/
|
|
35
53
|
constructed?(): boolean;
|
|
54
|
+
/**
|
|
55
|
+
* returns the distance between two vectors
|
|
56
|
+
*/
|
|
36
57
|
static distance(a: DyFM_Vector2, b: DyFM_Vector2): number;
|
|
37
|
-
distance
|
|
58
|
+
distance(to: DyFM_Vector2): number;
|
|
59
|
+
/**
|
|
60
|
+
* returns a new vector with the negative values of the original vector
|
|
61
|
+
*/
|
|
38
62
|
static minus(a: DyFM_Vector2, minusB: DyFM_Vector2): DyFM_Vector2_Util;
|
|
39
|
-
minus
|
|
63
|
+
minus(vector: DyFM_Vector2): this;
|
|
64
|
+
/**
|
|
65
|
+
* returns a new vector with the sum of two vectors
|
|
66
|
+
*/
|
|
40
67
|
static plus(a: DyFM_Vector2, plusB: DyFM_Vector2): DyFM_Vector2_Util;
|
|
41
|
-
plus
|
|
68
|
+
plus(vector: DyFM_Vector2): this;
|
|
42
69
|
static readonly add: typeof DyFM_Vector2_Util.plus;
|
|
43
|
-
readonly add
|
|
70
|
+
readonly add: (vector: DyFM_Vector2) => this;
|
|
44
71
|
/** returns new multiplied Vector2 */
|
|
45
72
|
static multiply(v: DyFM_Vector2, n: number): DyFM_Vector2_Util;
|
|
46
|
-
multiply
|
|
73
|
+
multiply(n: number): this;
|
|
47
74
|
/** returns new divided Vector2 */
|
|
48
75
|
static divide(v: DyFM_Vector2, divideBy: number): DyFM_Vector2_Util;
|
|
49
|
-
divide
|
|
76
|
+
divide(n: number): this;
|
|
50
77
|
static negative(v: DyFM_Vector2): DyFM_Vector2_Util;
|
|
51
78
|
/** this returns a new instance */
|
|
52
|
-
getNegative
|
|
53
|
-
negate
|
|
79
|
+
getNegative(): DyFM_Vector2_Util;
|
|
80
|
+
negate(): this;
|
|
81
|
+
/**
|
|
82
|
+
* returns a new vector with the sum of a vector and the difference of two vectors
|
|
83
|
+
*/
|
|
54
84
|
static rebase(v: DyFM_Vector2, baseFrom: DyFM_Vector2, baseTo: DyFM_Vector2): DyFM_Vector2_Util;
|
|
55
|
-
rebase
|
|
85
|
+
rebase(baseFrom: DyFM_Vector2, baseTo: DyFM_Vector2): this;
|
|
86
|
+
/**
|
|
87
|
+
* returns a new vector with the sum of a vector and the difference of two vectors
|
|
88
|
+
*/
|
|
56
89
|
static rotate(vector: DyFM_Vector2, angle: number): DyFM_Vector2_Util;
|
|
90
|
+
/**
|
|
91
|
+
* returns a new vector with the sum of a vector and the difference of two vectors
|
|
92
|
+
*/
|
|
57
93
|
static rotateRad(vector: DyFM_Vector2, rad: number): DyFM_Vector2_Util;
|
|
58
|
-
|
|
59
|
-
|
|
94
|
+
/**
|
|
95
|
+
* returns a new vector with the sum of a vector and the difference of two vectors
|
|
96
|
+
*/
|
|
97
|
+
rotate(angle: number): this;
|
|
98
|
+
/**
|
|
99
|
+
* returns a new vector with the sum of a vector and the difference of two vectors
|
|
100
|
+
*/
|
|
101
|
+
rotateRad(rad: number): this;
|
|
102
|
+
/**
|
|
103
|
+
* returns a new vector with the sum of a vector and the difference of two vectors
|
|
104
|
+
*/
|
|
60
105
|
newValues(newV: DyFM_Vector2): this;
|
|
61
|
-
|
|
106
|
+
/**
|
|
107
|
+
* returns a new vector with the sum of a vector and the difference of two vectors
|
|
108
|
+
*/
|
|
109
|
+
newXY(newX: number, newY: number): this;
|
|
110
|
+
/**
|
|
111
|
+
* returns a new vector with the sum of a vector and the difference of two vectors
|
|
112
|
+
*/
|
|
113
|
+
static newValues(to: DyFM_Vector2, newV: DyFM_Vector2): DyFM_Vector2;
|
|
114
|
+
static readonly newXY: typeof DyFM_Vector2_Util.newValues;
|
|
115
|
+
/**
|
|
116
|
+
* returns the angle between two vectors
|
|
117
|
+
*/
|
|
62
118
|
static angle(from: DyFM_Vector2, to: DyFM_Vector2): number;
|
|
119
|
+
/**
|
|
120
|
+
* returns the angle between two vectors in radians
|
|
121
|
+
*/
|
|
63
122
|
static angleRad(from: DyFM_Vector2, to: DyFM_Vector2): number;
|
|
64
|
-
|
|
123
|
+
/**
|
|
124
|
+
* returns the angle between two vectors
|
|
125
|
+
*/
|
|
126
|
+
angle(from: DyFM_Vector2, to: DyFM_Vector2): number;
|
|
127
|
+
/**
|
|
128
|
+
* returns the angle between two vectors in degrees
|
|
129
|
+
*/
|
|
65
130
|
static deg(vector: DyFM_Vector2): number;
|
|
131
|
+
/**
|
|
132
|
+
* returns the angle between two vectors in radians
|
|
133
|
+
*/
|
|
66
134
|
static rad(vector: DyFM_Vector2): number;
|
|
67
|
-
|
|
135
|
+
/**
|
|
136
|
+
* returns the angle between two vectors in degrees
|
|
137
|
+
*/
|
|
138
|
+
deg(): number;
|
|
139
|
+
/**
|
|
140
|
+
* returns math floor of the vector
|
|
141
|
+
*/
|
|
68
142
|
static floor(v: DyFM_Vector2): DyFM_Vector2_Util;
|
|
69
|
-
|
|
143
|
+
/**
|
|
144
|
+
* returns math floor of the vector
|
|
145
|
+
*/
|
|
146
|
+
floor(): DyFM_Vector2_Util;
|
|
147
|
+
/**
|
|
148
|
+
* returns the direction vector from one point to another
|
|
149
|
+
*/
|
|
70
150
|
static direction(from: DyFM_Vector2, to: DyFM_Vector2): DyFM_Vector2_Util;
|
|
71
|
-
|
|
151
|
+
/**
|
|
152
|
+
* returns the direction vector from one point to another
|
|
153
|
+
*/
|
|
154
|
+
direction(to: DyFM_Vector2): DyFM_Vector2_Util;
|
|
155
|
+
/**
|
|
156
|
+
* returns a normalized vector
|
|
157
|
+
*/
|
|
72
158
|
static normalize(v: DyFM_Vector2): DyFM_Vector2_Util;
|
|
73
|
-
|
|
159
|
+
/**
|
|
160
|
+
* returns a normalized vector
|
|
161
|
+
*/
|
|
162
|
+
normalize(): void;
|
|
74
163
|
/**
|
|
75
164
|
* this will return a new instance,
|
|
76
165
|
* if you want to change the current instance, use normalize()
|
|
77
166
|
*/
|
|
78
|
-
normalized
|
|
167
|
+
normalized(): DyFM_Vector2_Util;
|
|
168
|
+
/**
|
|
169
|
+
* returns the magnitude of the vector
|
|
170
|
+
*/
|
|
79
171
|
private calcMagnitude;
|
|
80
|
-
|
|
172
|
+
/**
|
|
173
|
+
* returns a new vector with the same values
|
|
174
|
+
*/
|
|
175
|
+
clone(): DyFM_Vector2_Util;
|
|
176
|
+
/**
|
|
177
|
+
* returns true if the vector has changed
|
|
178
|
+
*/
|
|
81
179
|
static isChanged(a: DyFM_Vector2_Util, b: DyFM_Vector2_Util): boolean;
|
|
180
|
+
/**
|
|
181
|
+
* returns true if the vectors are equal
|
|
182
|
+
*/
|
|
82
183
|
static isEqual(a: DyFM_Vector2, b: DyFM_Vector2): boolean;
|
|
184
|
+
/**
|
|
185
|
+
* returns true if the vectors are equal
|
|
186
|
+
*/
|
|
83
187
|
static vectorChanged(a: DyFM_Vector2, b: DyFM_Vector2): boolean;
|
|
188
|
+
/**
|
|
189
|
+
* returns true if the vectors are equal
|
|
190
|
+
*/
|
|
84
191
|
static equals(a: DyFM_Vector2, b: DyFM_Vector2): boolean;
|
|
192
|
+
/**
|
|
193
|
+
* returns a new vector with the absolute values of the original vector
|
|
194
|
+
*/
|
|
85
195
|
static abs(v: DyFM_Vector2): DyFM_Vector2_Util;
|
|
86
|
-
abs
|
|
196
|
+
abs(): this;
|
|
197
|
+
/**
|
|
198
|
+
* returns a new vector with the rounded values of the original vector
|
|
199
|
+
*/
|
|
87
200
|
static round(v: DyFM_Vector2, decimals?: number): DyFM_Vector2_Util;
|
|
201
|
+
/**
|
|
202
|
+
* returns a instance of DyFM_Vector2 from a DyFM_Vector2_Util
|
|
203
|
+
*/
|
|
88
204
|
static toVector2(v: DyFM_Vector2_Util): DyFM_Vector2;
|
|
205
|
+
/**
|
|
206
|
+
* returns a instance of DyFM_Vector2 from a DyFM_Vector2_Util
|
|
207
|
+
*/
|
|
89
208
|
get(): DyFM_Vector2;
|
|
90
209
|
getVector2: () => DyFM_Vector2;
|
|
91
210
|
toVector2: () => DyFM_Vector2;
|
|
211
|
+
/**
|
|
212
|
+
* returns a new vector with the same values
|
|
213
|
+
*/
|
|
92
214
|
static clone(v: DyFM_Vector2): DyFM_Vector2;
|
|
93
215
|
}
|
|
94
216
|
//# sourceMappingURL=vector2.util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vector2.util.d.ts","sourceRoot":"","sources":["../../../../src/_collections/utils/math/vector2.util.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAK7E,MAAM,MAAM,SAAS,GAAG,iBAAiB,CAAC;AAC1C,MAAM,MAAM,YAAY,GAAG,iBAAiB,CAAC;AAC7C,MAAM,MAAM,cAAc,GAAG,iBAAiB,CAAC;AAC/C;;;;;GAKG;AACH,qBAAa,iBAAkB,YAAW,YAAY;IACpD,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAQ;IAEvC,OAAO,CAAC,EAAE,CAAa;IACvB;;;SAGK;IACL,IAAI,CAAC,CAAE,KAAK,EAAE,MAAM,EAInB;IACD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