@tonysamperi/ts-mapi-core 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +17 -0
- package/changelog.md +2 -0
- package/dist/cjs/index.cjs +2 -0
- package/dist/cjs/index.cjs.map +1 -0
- package/dist/cjs/index.d.cts +59 -0
- package/dist/cjs/services/firebase/index.cjs +2 -0
- package/dist/cjs/services/firebase/index.cjs.map +1 -0
- package/dist/cjs/services/firebase/index.d.cts +7 -0
- package/dist/cjs/services/firebase/smp-firebase-service-config.interface.cjs +2 -0
- package/dist/cjs/services/firebase/smp-firebase-service-config.interface.cjs.map +1 -0
- package/dist/cjs/services/firebase/smp-firebase-service-config.interface.d.cts +12 -0
- package/dist/cjs/services/firebase/smp-firebase.service.cjs +2 -0
- package/dist/cjs/services/firebase/smp-firebase.service.cjs.map +1 -0
- package/dist/cjs/services/firebase/smp-firebase.service.d.cts +56 -0
- package/dist/cjs/services/http/index.cjs +2 -0
- package/dist/cjs/services/http/index.cjs.map +1 -0
- package/dist/cjs/services/http/index.d.cts +9 -0
- package/dist/cjs/services/http/smp-dynamic-fetch-return.type.cjs +2 -0
- package/dist/cjs/services/http/smp-dynamic-fetch-return.type.cjs.map +1 -0
- package/dist/cjs/services/http/smp-dynamic-fetch-return.type.d.cts +3 -0
- package/dist/cjs/services/http/smp-http-config.interface.cjs +2 -0
- package/dist/cjs/services/http/smp-http-config.interface.cjs.map +1 -0
- package/dist/cjs/services/http/smp-http-config.interface.d.cts +16 -0
- package/dist/cjs/services/http/smp-http-session-storage-cache.class.cjs +2 -0
- package/dist/cjs/services/http/smp-http-session-storage-cache.class.cjs.map +1 -0
- package/dist/cjs/services/http/smp-http-session-storage-cache.class.d.cts +8 -0
- package/dist/cjs/services/http/smp-http-status-code.enum.cjs +2 -0
- package/dist/cjs/services/http/smp-http-status-code.enum.cjs.map +1 -0
- package/dist/cjs/services/http/smp-http-status-code.enum.d.cts +70 -0
- package/dist/cjs/services/http/smp-http.service.cjs +2 -0
- package/dist/cjs/services/http/smp-http.service.cjs.map +1 -0
- package/dist/cjs/services/http/smp-http.service.d.cts +43 -0
- package/dist/cjs/services/index.cjs +2 -0
- package/dist/cjs/services/index.cjs.map +1 -0
- package/dist/cjs/services/index.d.cts +19 -0
- package/dist/cjs/services/smp-dynamo.service.cjs +2 -0
- package/dist/cjs/services/smp-dynamo.service.cjs.map +1 -0
- package/dist/cjs/services/smp-dynamo.service.d.cts +39 -0
- package/dist/cjs/shared/api/index.cjs +2 -0
- package/dist/cjs/shared/api/index.cjs.map +1 -0
- package/dist/cjs/shared/api/index.d.cts +10 -0
- package/dist/cjs/shared/api/smp-api-common-utils.class.cjs +2 -0
- package/dist/cjs/shared/api/smp-api-common-utils.class.cjs.map +1 -0
- package/dist/cjs/shared/api/smp-api-common-utils.class.d.cts +15 -0
- package/dist/cjs/shared/api/smp-error-response.class.cjs +2 -0
- package/dist/cjs/shared/api/smp-error-response.class.cjs.map +1 -0
- package/dist/cjs/shared/api/smp-error-response.class.d.cts +35 -0
- package/dist/cjs/shared/api/smp-generic-response-base.interface.cjs +2 -0
- package/dist/cjs/shared/api/smp-generic-response-base.interface.cjs.map +1 -0
- package/dist/cjs/shared/api/smp-generic-response-base.interface.d.cts +9 -0
- package/dist/cjs/shared/api/smp-generic-response.class.cjs +2 -0
- package/dist/cjs/shared/api/smp-generic-response.class.cjs.map +1 -0
- package/dist/cjs/shared/api/smp-generic-response.class.d.cts +20 -0
- package/dist/cjs/shared/api/smp-healtz.const.cjs +2 -0
- package/dist/cjs/shared/api/smp-healtz.const.cjs.map +1 -0
- package/dist/cjs/shared/api/smp-healtz.const.d.cts +5 -0
- package/dist/cjs/shared/api/smp-response-message-base.interface.cjs +2 -0
- package/dist/cjs/shared/api/smp-response-message-base.interface.cjs.map +1 -0
- package/dist/cjs/shared/api/smp-response-message-base.interface.d.cts +8 -0
- package/dist/cjs/shared/api/smp-response-message-types.enum.cjs +2 -0
- package/dist/cjs/shared/api/smp-response-message-types.enum.cjs.map +1 -0
- package/dist/cjs/shared/api/smp-response-message-types.enum.d.cts +8 -0
- package/dist/cjs/shared/api/smp-response-message.class.cjs +2 -0
- package/dist/cjs/shared/api/smp-response-message.class.cjs.map +1 -0
- package/dist/cjs/shared/api/smp-response-message.class.d.cts +13 -0
- package/dist/cjs/shared/api/smp-rest-verbs.enum.cjs +2 -0
- package/dist/cjs/shared/api/smp-rest-verbs.enum.cjs.map +1 -0
- package/dist/cjs/shared/api/smp-rest-verbs.enum.d.cts +9 -0
- package/dist/cjs/shared/common/index.cjs +2 -0
- package/dist/cjs/shared/common/index.cjs.map +1 -0
- package/dist/cjs/shared/common/index.d.cts +4 -0
- package/dist/cjs/shared/common/smp-generic-constructor.type.cjs +2 -0
- package/dist/cjs/shared/common/smp-generic-constructor.type.cjs.map +1 -0
- package/dist/cjs/shared/common/smp-generic-constructor.type.d.cts +3 -0
- package/dist/cjs/shared/common/smp-primitives.type.cjs +2 -0
- package/dist/cjs/shared/common/smp-primitives.type.cjs.map +1 -0
- package/dist/cjs/shared/common/smp-primitives.type.d.cts +3 -0
- package/dist/cjs/shared/common/smp-social-sign-in-keys.enum.cjs +2 -0
- package/dist/cjs/shared/common/smp-social-sign-in-keys.enum.cjs.map +1 -0
- package/dist/cjs/shared/common/smp-social-sign-in-keys.enum.d.cts +7 -0
- package/dist/cjs/shared/common/smp-social-sign-in-ux-modes.enum.cjs +2 -0
- package/dist/cjs/shared/common/smp-social-sign-in-ux-modes.enum.cjs.map +1 -0
- package/dist/cjs/shared/common/smp-social-sign-in-ux-modes.enum.d.cts +6 -0
- package/dist/cjs/shared/crypto/index.cjs +2 -0
- package/dist/cjs/shared/crypto/index.cjs.map +1 -0
- package/dist/cjs/shared/crypto/index.d.cts +3 -0
- package/dist/cjs/shared/crypto/smp-aes-crypt.class.cjs +2 -0
- package/dist/cjs/shared/crypto/smp-aes-crypt.class.cjs.map +1 -0
- package/dist/cjs/shared/crypto/smp-aes-crypt.class.d.cts +1 -0
- package/dist/cjs/shared/crypto/smp-crypto.class.cjs +2 -0
- package/dist/cjs/shared/crypto/smp-crypto.class.cjs.map +1 -0
- package/dist/cjs/shared/crypto/smp-crypto.class.d.cts +10 -0
- package/dist/cjs/shared/crypto/smp-secure-code.class.cjs +2 -0
- package/dist/cjs/shared/crypto/smp-secure-code.class.cjs.map +1 -0
- package/dist/cjs/shared/crypto/smp-secure-code.class.d.cts +15 -0
- package/dist/cjs/shared/firebase/index.cjs +2 -0
- package/dist/cjs/shared/firebase/index.cjs.map +1 -0
- package/dist/cjs/shared/firebase/index.d.cts +1 -0
- package/dist/cjs/shared/firebase/smp-firebase-errors.enum.cjs +2 -0
- package/dist/cjs/shared/firebase/smp-firebase-errors.enum.cjs.map +1 -0
- package/dist/cjs/shared/firebase/smp-firebase-errors.enum.d.cts +14 -0
- package/dist/cjs/shared/giftcard/index.cjs +2 -0
- package/dist/cjs/shared/giftcard/index.cjs.map +1 -0
- package/dist/cjs/shared/giftcard/index.d.cts +8 -0
- package/dist/cjs/shared/giftcard/smp-giftcard-transaction-config.interface.cjs +2 -0
- package/dist/cjs/shared/giftcard/smp-giftcard-transaction-config.interface.cjs.map +1 -0
- package/dist/cjs/shared/giftcard/smp-giftcard-transaction-config.interface.d.cts +11 -0
- package/dist/cjs/shared/giftcard/smp-giftcard-transaction-hash-strategies.enum.cjs +2 -0
- package/dist/cjs/shared/giftcard/smp-giftcard-transaction-hash-strategies.enum.cjs.map +1 -0
- package/dist/cjs/shared/giftcard/smp-giftcard-transaction-hash-strategies.enum.d.cts +8 -0
- package/dist/cjs/shared/giftcard/smp-giftcard-transaction-ops.enum.cjs +2 -0
- package/dist/cjs/shared/giftcard/smp-giftcard-transaction-ops.enum.cjs.map +1 -0
- package/dist/cjs/shared/giftcard/smp-giftcard-transaction-ops.enum.d.cts +16 -0
- package/dist/cjs/shared/giftcard/smp-giftcard-transaction-plain.interface.cjs +2 -0
- package/dist/cjs/shared/giftcard/smp-giftcard-transaction-plain.interface.cjs.map +1 -0
- package/dist/cjs/shared/giftcard/smp-giftcard-transaction-plain.interface.d.cts +8 -0
- package/dist/cjs/shared/giftcard/smp-giftcard-transaction.class.cjs +2 -0
- package/dist/cjs/shared/giftcard/smp-giftcard-transaction.class.cjs.map +1 -0
- package/dist/cjs/shared/giftcard/smp-giftcard-transaction.class.d.cts +56 -0
- package/dist/cjs/shared/marketing-cloud/index.cjs +2 -0
- package/dist/cjs/shared/marketing-cloud/index.cjs.map +1 -0
- package/dist/cjs/shared/marketing-cloud/index.d.cts +2 -0
- package/dist/cjs/shared/marketing-cloud/smp-marketing-cloud-validation-response.interface.cjs +2 -0
- package/dist/cjs/shared/marketing-cloud/smp-marketing-cloud-validation-response.interface.cjs.map +1 -0
- package/dist/cjs/shared/marketing-cloud/smp-marketing-cloud-validation-response.interface.d.cts +14 -0
- package/dist/cjs/shared/marketing-cloud/smp-marketing-cloud-validators.enum.cjs +2 -0
- package/dist/cjs/shared/marketing-cloud/smp-marketing-cloud-validators.enum.cjs.map +1 -0
- package/dist/cjs/shared/marketing-cloud/smp-marketing-cloud-validators.enum.d.cts +7 -0
- package/dist/cjs/shared/rxjs/index.cjs +2 -0
- package/dist/cjs/shared/rxjs/index.cjs.map +1 -0
- package/dist/cjs/shared/rxjs/index.d.cts +3 -0
- package/dist/cjs/shared/rxjs/smp-rxjs-throw-if-empty.function.cjs +2 -0
- package/dist/cjs/shared/rxjs/smp-rxjs-throw-if-empty.function.cjs.map +1 -0
- package/dist/cjs/shared/rxjs/smp-rxjs-throw-if-empty.function.d.cts +38 -0
- package/dist/cjs/shared/rxjs/smp-rxjs-throw-on-condition.function.cjs +2 -0
- package/dist/cjs/shared/rxjs/smp-rxjs-throw-on-condition.function.cjs.map +1 -0
- package/dist/cjs/shared/rxjs/smp-rxjs-throw-on-condition.function.d.cts +30 -0
- package/dist/cjs/shared/utils/cache/index.cjs +2 -0
- package/dist/cjs/shared/utils/cache/index.cjs.map +1 -0
- package/dist/cjs/shared/utils/cache/index.d.cts +3 -0
- package/dist/cjs/shared/utils/cache/smp-browser-cache.class.cjs +2 -0
- package/dist/cjs/shared/utils/cache/smp-browser-cache.class.cjs.map +1 -0
- package/dist/cjs/shared/utils/cache/smp-browser-cache.class.d.cts +13 -0
- package/dist/cjs/shared/utils/cache/smp-cache-strategy.interface.cjs +2 -0
- package/dist/cjs/shared/utils/cache/smp-cache-strategy.interface.cjs.map +1 -0
- package/dist/cjs/shared/utils/cache/smp-cache-strategy.interface.d.cts +8 -0
- package/dist/cjs/shared/utils/cache/smp-in-memory-cache.class.cjs +2 -0
- package/dist/cjs/shared/utils/cache/smp-in-memory-cache.class.cjs.map +1 -0
- package/dist/cjs/shared/utils/cache/smp-in-memory-cache.class.d.cts +12 -0
- package/dist/cjs/shared/utils/index.cjs +2 -0
- package/dist/cjs/shared/utils/index.cjs.map +1 -0
- package/dist/cjs/shared/utils/index.d.cts +10 -0
- package/dist/cjs/shared/utils/smp-ascii-words.function.cjs +2 -0
- package/dist/cjs/shared/utils/smp-ascii-words.function.cjs.map +1 -0
- package/dist/cjs/shared/utils/smp-ascii-words.function.d.cts +3 -0
- package/dist/cjs/shared/utils/smp-common-utils.class.cjs +2 -0
- package/dist/cjs/shared/utils/smp-common-utils.class.cjs.map +1 -0
- package/dist/cjs/shared/utils/smp-common-utils.class.d.cts +100 -0
- package/dist/cjs/shared/utils/smp-filter-exception.class.cjs +2 -0
- package/dist/cjs/shared/utils/smp-filter-exception.class.cjs.map +1 -0
- package/dist/cjs/shared/utils/smp-filter-exception.class.d.cts +7 -0
- package/dist/cjs/shared/utils/smp-gcpsid-raw.interface.cjs +2 -0
- package/dist/cjs/shared/utils/smp-gcpsid-raw.interface.cjs.map +1 -0
- package/dist/cjs/shared/utils/smp-gcpsid-raw.interface.d.cts +6 -0
- package/dist/cjs/shared/utils/smp-noop.function.cjs +2 -0
- package/dist/cjs/shared/utils/smp-noop.function.cjs.map +1 -0
- package/dist/cjs/shared/utils/smp-noop.function.d.cts +3 -0
- package/dist/cjs/shared/utils/smp-regular-expressions.class.cjs +2 -0
- package/dist/cjs/shared/utils/smp-regular-expressions.class.cjs.map +1 -0
- package/dist/cjs/shared/utils/smp-regular-expressions.class.d.cts +16 -0
- package/dist/cjs/shared/utils/smp-sid.class.cjs +2 -0
- package/dist/cjs/shared/utils/smp-sid.class.cjs.map +1 -0
- package/dist/cjs/shared/utils/smp-sid.class.d.cts +18 -0
- package/dist/cjs/shared/utils/smp-unicode-words.class.cjs +2 -0
- package/dist/cjs/shared/utils/smp-unicode-words.class.cjs.map +1 -0
- package/dist/cjs/shared/utils/smp-unicode-words.class.d.cts +15 -0
- package/dist/cjs/smp-aes-crypt.class-CI82T7GV.d.cts +470 -0
- package/dist/cjs/smp-logger-methods.class-F7p-lMeQ.d.cts +66 -0
- package/dist/esm/chunk-24AHYMAJ.js +0 -0
- package/dist/esm/chunk-2DFXGAWG.js +1 -0
- package/dist/esm/chunk-2Q3A3WHV.js +1 -0
- package/dist/esm/chunk-2TQSQ6UP.js +1 -0
- package/dist/esm/chunk-2YYH6VGI.js +1 -0
- package/dist/esm/chunk-4S2VS5TZ.js +1 -0
- package/dist/esm/chunk-5D4O273A.js +1 -0
- package/dist/esm/chunk-5VHPHFOY.js +1 -0
- package/dist/esm/chunk-73A5OTVH.js +1 -0
- package/dist/esm/chunk-77XHVETN.js +0 -0
- package/dist/esm/chunk-7FC5ZQDK.js +1 -0
- package/dist/esm/chunk-7ZJA47VN.js +1 -0
- package/dist/esm/chunk-AOHQUNHA.js +0 -0
- package/dist/esm/chunk-APLEU3C2.js +1 -0
- package/dist/esm/chunk-BCKQYO6O.js +0 -0
- package/dist/esm/chunk-BIAKHPIF.js +0 -0
- package/dist/esm/chunk-BWZ6SM6P.js +0 -0
- package/dist/esm/chunk-BYEFRPVT.js +1 -0
- package/dist/esm/chunk-C2FQU2TR.js +1 -0
- package/dist/esm/chunk-D66G2KIE.js +0 -0
- package/dist/esm/chunk-EHABREBA.js +0 -0
- package/dist/esm/chunk-EZ4NN7JG.js +0 -0
- package/dist/esm/chunk-GYZH6FYB.js +1 -0
- package/dist/esm/chunk-H5UU33RN.js +1 -0
- package/dist/esm/chunk-HA3BETKN.js +1 -0
- package/dist/esm/chunk-HOM5S5W3.js +0 -0
- package/dist/esm/chunk-HTUF5T5K.js +1 -0
- package/dist/esm/chunk-IFZTF7A7.js +1 -0
- package/dist/esm/chunk-IZD3BY3X.js +1 -0
- package/dist/esm/chunk-J6MWJEP3.js +1 -0
- package/dist/esm/chunk-JCZRE6MU.js +1 -0
- package/dist/esm/chunk-JFKSI6I7.js +1 -0
- package/dist/esm/chunk-JP7P2SIN.js +1 -0
- package/dist/esm/chunk-JSNCOALE.js +0 -0
- package/dist/esm/chunk-KIMBWGNC.js +1 -0
- package/dist/esm/chunk-NIN4PUZX.js +0 -0
- package/dist/esm/chunk-NOYOAWWX.js +1 -0
- package/dist/esm/chunk-NPHREL4D.js +1 -0
- package/dist/esm/chunk-NQICKEAS.js +0 -0
- package/dist/esm/chunk-NRABUNRU.js +1 -0
- package/dist/esm/chunk-OMUFNPZF.js +1 -0
- package/dist/esm/chunk-Q77KUWBZ.js +0 -0
- package/dist/esm/chunk-QCY65CEY.js +1 -0
- package/dist/esm/chunk-RFVBH4FB.js +1 -0
- package/dist/esm/chunk-RQMWVXXI.js +1 -0
- package/dist/esm/chunk-SCRNHKVE.js +0 -0
- package/dist/esm/chunk-SDQLEPBS.js +0 -0
- package/dist/esm/chunk-T3P4NVTG.js +0 -0
- package/dist/esm/chunk-THA6XUM5.js +1 -0
- package/dist/esm/chunk-THUEL7AA.js +0 -0
- package/dist/esm/chunk-UHEBXSHT.js +0 -0
- package/dist/esm/chunk-VA34RBMX.js +0 -0
- package/dist/esm/chunk-VFSRM2TJ.js +1 -0
- package/dist/esm/chunk-VQRTVHM5.js +1 -0
- package/dist/esm/chunk-VU2BXAMO.js +0 -0
- package/dist/esm/chunk-WVAB4IBD.js +0 -0
- package/dist/esm/chunk-XBCBZ3FR.js +1 -0
- package/dist/esm/chunk-YSQCITEQ.js +1 -0
- package/dist/esm/index.d.ts +54 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/services/firebase/index.d.ts +7 -0
- package/dist/esm/services/firebase/index.js +1 -0
- package/dist/esm/services/firebase/smp-firebase-service-config.interface.d.ts +12 -0
- package/dist/esm/services/firebase/smp-firebase-service-config.interface.js +1 -0
- package/dist/esm/services/firebase/smp-firebase.service.d.ts +56 -0
- package/dist/esm/services/firebase/smp-firebase.service.js +1 -0
- package/dist/esm/services/http/index.d.ts +9 -0
- package/dist/esm/services/http/index.js +1 -0
- package/dist/esm/services/http/smp-dynamic-fetch-return.type.d.ts +3 -0
- package/dist/esm/services/http/smp-dynamic-fetch-return.type.js +0 -0
- package/dist/esm/services/http/smp-http-config.interface.d.ts +16 -0
- package/dist/esm/services/http/smp-http-config.interface.js +1 -0
- package/dist/esm/services/http/smp-http-session-storage-cache.class.d.ts +8 -0
- package/dist/esm/services/http/smp-http-session-storage-cache.class.js +1 -0
- package/dist/esm/services/http/smp-http-status-code.enum.d.ts +70 -0
- package/dist/esm/services/http/smp-http-status-code.enum.js +1 -0
- package/dist/esm/services/http/smp-http.service.d.ts +43 -0
- package/dist/esm/services/http/smp-http.service.js +1 -0
- package/dist/esm/services/index.d.ts +19 -0
- package/dist/esm/services/index.js +1 -0
- package/dist/esm/services/smp-dynamo.service.d.ts +39 -0
- package/dist/esm/services/smp-dynamo.service.js +1 -0
- package/dist/esm/shared/api/index.d.ts +10 -0
- package/dist/esm/shared/api/index.js +1 -0
- package/dist/esm/shared/api/smp-api-common-utils.class.d.ts +15 -0
- package/dist/esm/shared/api/smp-api-common-utils.class.js +1 -0
- package/dist/esm/shared/api/smp-error-response.class.d.ts +35 -0
- package/dist/esm/shared/api/smp-error-response.class.js +1 -0
- package/dist/esm/shared/api/smp-generic-response-base.interface.d.ts +9 -0
- package/dist/esm/shared/api/smp-generic-response-base.interface.js +1 -0
- package/dist/esm/shared/api/smp-generic-response.class.d.ts +20 -0
- package/dist/esm/shared/api/smp-generic-response.class.js +1 -0
- package/dist/esm/shared/api/smp-healtz.const.d.ts +5 -0
- package/dist/esm/shared/api/smp-healtz.const.js +1 -0
- package/dist/esm/shared/api/smp-response-message-base.interface.d.ts +8 -0
- package/dist/esm/shared/api/smp-response-message-base.interface.js +1 -0
- package/dist/esm/shared/api/smp-response-message-types.enum.d.ts +8 -0
- package/dist/esm/shared/api/smp-response-message-types.enum.js +1 -0
- package/dist/esm/shared/api/smp-response-message.class.d.ts +13 -0
- package/dist/esm/shared/api/smp-response-message.class.js +1 -0
- package/dist/esm/shared/api/smp-rest-verbs.enum.d.ts +9 -0
- package/dist/esm/shared/api/smp-rest-verbs.enum.js +1 -0
- package/dist/esm/shared/common/index.d.ts +4 -0
- package/dist/esm/shared/common/index.js +1 -0
- package/dist/esm/shared/common/smp-generic-constructor.type.d.ts +3 -0
- package/dist/esm/shared/common/smp-generic-constructor.type.js +1 -0
- package/dist/esm/shared/common/smp-primitives.type.d.ts +3 -0
- package/dist/esm/shared/common/smp-primitives.type.js +1 -0
- package/dist/esm/shared/common/smp-social-sign-in-keys.enum.d.ts +7 -0
- package/dist/esm/shared/common/smp-social-sign-in-keys.enum.js +1 -0
- package/dist/esm/shared/common/smp-social-sign-in-ux-modes.enum.d.ts +6 -0
- package/dist/esm/shared/common/smp-social-sign-in-ux-modes.enum.js +1 -0
- package/dist/esm/shared/crypto/index.d.ts +3 -0
- package/dist/esm/shared/crypto/index.js +1 -0
- package/dist/esm/shared/crypto/smp-aes-crypt.class.d.ts +1 -0
- package/dist/esm/shared/crypto/smp-aes-crypt.class.js +1 -0
- package/dist/esm/shared/crypto/smp-crypto.class.d.ts +10 -0
- package/dist/esm/shared/crypto/smp-crypto.class.js +1 -0
- package/dist/esm/shared/crypto/smp-secure-code.class.d.ts +15 -0
- package/dist/esm/shared/crypto/smp-secure-code.class.js +1 -0
- package/dist/esm/shared/firebase/index.d.ts +1 -0
- package/dist/esm/shared/firebase/index.js +1 -0
- package/dist/esm/shared/firebase/smp-firebase-errors.enum.d.ts +14 -0
- package/dist/esm/shared/firebase/smp-firebase-errors.enum.js +1 -0
- package/dist/esm/shared/giftcard/index.d.ts +8 -0
- package/dist/esm/shared/giftcard/index.js +1 -0
- package/dist/esm/shared/giftcard/smp-giftcard-transaction-config.interface.d.ts +11 -0
- package/dist/esm/shared/giftcard/smp-giftcard-transaction-config.interface.js +1 -0
- package/dist/esm/shared/giftcard/smp-giftcard-transaction-hash-strategies.enum.d.ts +8 -0
- package/dist/esm/shared/giftcard/smp-giftcard-transaction-hash-strategies.enum.js +1 -0
- package/dist/esm/shared/giftcard/smp-giftcard-transaction-ops.enum.d.ts +16 -0
- package/dist/esm/shared/giftcard/smp-giftcard-transaction-ops.enum.js +1 -0
- package/dist/esm/shared/giftcard/smp-giftcard-transaction-plain.interface.d.ts +8 -0
- package/dist/esm/shared/giftcard/smp-giftcard-transaction-plain.interface.js +1 -0
- package/dist/esm/shared/giftcard/smp-giftcard-transaction.class.d.ts +56 -0
- package/dist/esm/shared/giftcard/smp-giftcard-transaction.class.js +1 -0
- package/dist/esm/shared/marketing-cloud/index.d.ts +2 -0
- package/dist/esm/shared/marketing-cloud/index.js +1 -0
- package/dist/esm/shared/marketing-cloud/smp-marketing-cloud-validation-response.interface.d.ts +14 -0
- package/dist/esm/shared/marketing-cloud/smp-marketing-cloud-validation-response.interface.js +1 -0
- package/dist/esm/shared/marketing-cloud/smp-marketing-cloud-validators.enum.d.ts +7 -0
- package/dist/esm/shared/marketing-cloud/smp-marketing-cloud-validators.enum.js +1 -0
- package/dist/esm/shared/rxjs/index.d.ts +3 -0
- package/dist/esm/shared/rxjs/index.js +1 -0
- package/dist/esm/shared/rxjs/smp-rxjs-throw-if-empty.function.d.ts +38 -0
- package/dist/esm/shared/rxjs/smp-rxjs-throw-if-empty.function.js +1 -0
- package/dist/esm/shared/rxjs/smp-rxjs-throw-on-condition.function.d.ts +30 -0
- package/dist/esm/shared/rxjs/smp-rxjs-throw-on-condition.function.js +1 -0
- package/dist/esm/shared/utils/cache/index.d.ts +3 -0
- package/dist/esm/shared/utils/cache/index.js +1 -0
- package/dist/esm/shared/utils/cache/smp-browser-cache.class.d.ts +13 -0
- package/dist/esm/shared/utils/cache/smp-browser-cache.class.js +1 -0
- package/dist/esm/shared/utils/cache/smp-cache-strategy.interface.d.ts +8 -0
- package/dist/esm/shared/utils/cache/smp-cache-strategy.interface.js +1 -0
- package/dist/esm/shared/utils/cache/smp-in-memory-cache.class.d.ts +12 -0
- package/dist/esm/shared/utils/cache/smp-in-memory-cache.class.js +1 -0
- package/dist/esm/shared/utils/index.d.ts +10 -0
- package/dist/esm/shared/utils/index.js +1 -0
- package/dist/esm/shared/utils/smp-ascii-words.function.d.ts +3 -0
- package/dist/esm/shared/utils/smp-ascii-words.function.js +1 -0
- package/dist/esm/shared/utils/smp-common-utils.class.d.ts +100 -0
- package/dist/esm/shared/utils/smp-common-utils.class.js +1 -0
- package/dist/esm/shared/utils/smp-filter-exception.class.d.ts +7 -0
- package/dist/esm/shared/utils/smp-filter-exception.class.js +1 -0
- package/dist/esm/shared/utils/smp-gcpsid-raw.interface.d.ts +6 -0
- package/dist/esm/shared/utils/smp-gcpsid-raw.interface.js +0 -0
- package/dist/esm/shared/utils/smp-noop.function.d.ts +3 -0
- package/dist/esm/shared/utils/smp-noop.function.js +1 -0
- package/dist/esm/shared/utils/smp-regular-expressions.class.d.ts +16 -0
- package/dist/esm/shared/utils/smp-regular-expressions.class.js +1 -0
- package/dist/esm/shared/utils/smp-sid.class.d.ts +18 -0
- package/dist/esm/shared/utils/smp-sid.class.js +1 -0
- package/dist/esm/shared/utils/smp-unicode-words.class.d.ts +15 -0
- package/dist/esm/shared/utils/smp-unicode-words.class.js +1 -0
- package/dist/esm/smp-aes-crypt.class-CI82T7GV.d.ts +470 -0
- package/dist/esm/smp-logger-methods.class-F7p-lMeQ.d.ts +66 -0
- package/package.json +88 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare class SmpUnicodeWords {
|
|
2
|
+
static readonly HAS_UNICODE_WORD: (string: string) => boolean;
|
|
3
|
+
static readonly RE_UNICODE_WORDS: RegExp;
|
|
4
|
+
static readonly RS_EMOJI: string;
|
|
5
|
+
/**
|
|
6
|
+
* Splits a Unicode `string` into an array of its words.
|
|
7
|
+
*
|
|
8
|
+
* @private
|
|
9
|
+
* @param string {string} string: the string to inspect.
|
|
10
|
+
* @returns {Array<string>} Returns the words of `string`.
|
|
11
|
+
*/
|
|
12
|
+
static unicodeWords(string: string): string[] | null;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { SmpUnicodeWords };
|
|
@@ -0,0 +1,470 @@
|
|
|
1
|
+
declare class WordArray {
|
|
2
|
+
sigBytes: number;
|
|
3
|
+
words: number[];
|
|
4
|
+
/**
|
|
5
|
+
* Initializes a newly created word array.
|
|
6
|
+
*
|
|
7
|
+
* @param words (Optional) An array of 32-bit words.
|
|
8
|
+
* @param sigBytes (Optional) The number of significant bytes in the words.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
*
|
|
12
|
+
* let wordArray = new WordArray();
|
|
13
|
+
* let wordArray = new WordArray([0x00010203, 0x04050607]);
|
|
14
|
+
* let wordArray = new WordArray([0x00010203, 0x04050607], 6);
|
|
15
|
+
*/
|
|
16
|
+
constructor(words?: number[], sigBytes?: number);
|
|
17
|
+
/**
|
|
18
|
+
* Creates a word array filled with random bytes.
|
|
19
|
+
*
|
|
20
|
+
* @param nBytes The number of random bytes to generate.
|
|
21
|
+
*
|
|
22
|
+
* @return The random word array.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
*
|
|
26
|
+
* let wordArray = WordArray.random(16);
|
|
27
|
+
*/
|
|
28
|
+
static random(nBytes: number): WordArray;
|
|
29
|
+
/**
|
|
30
|
+
* Removes insignificant bits.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
*
|
|
34
|
+
* wordArray.clamp();
|
|
35
|
+
*/
|
|
36
|
+
clamp(): void;
|
|
37
|
+
/**
|
|
38
|
+
* Creates a copy of this word array.
|
|
39
|
+
*
|
|
40
|
+
* @return The clone.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
*
|
|
44
|
+
* let clone = wordArray.clone();
|
|
45
|
+
*/
|
|
46
|
+
clone(): WordArray;
|
|
47
|
+
/**
|
|
48
|
+
* Concatenates a word array to this word array.
|
|
49
|
+
*
|
|
50
|
+
* @param wordArray The word array to append.
|
|
51
|
+
*
|
|
52
|
+
* @return This word array.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
*
|
|
56
|
+
* wordArray1.concat(wordArray2);
|
|
57
|
+
*/
|
|
58
|
+
concat(wordArray: WordArray): WordArray;
|
|
59
|
+
/**
|
|
60
|
+
* Converts this word array to a string.
|
|
61
|
+
*
|
|
62
|
+
* @param encoder (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex
|
|
63
|
+
*
|
|
64
|
+
* @return The stringified word array.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
*
|
|
68
|
+
* let string = wordArray + '';
|
|
69
|
+
* let string = wordArray.toString();
|
|
70
|
+
* let string = wordArray.toString(CryptoJS.enc.Utf8);
|
|
71
|
+
*/
|
|
72
|
+
toString<T extends {
|
|
73
|
+
stringify: (arg: WordArray) => string;
|
|
74
|
+
}>(encoder?: T): string;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
declare abstract class BlockCipherModeAlgorithm {
|
|
78
|
+
__creator: ((cipher: BlockCipher, iv: number[]) => BlockCipherMode) | undefined;
|
|
79
|
+
protected _cipher: BlockCipher;
|
|
80
|
+
protected _iv: number[] | undefined;
|
|
81
|
+
constructor(cipher: BlockCipher, iv: number[]);
|
|
82
|
+
abstract processBlock(words: number[], offset: number): void;
|
|
83
|
+
/**
|
|
84
|
+
* Initializes a newly created mode.
|
|
85
|
+
*
|
|
86
|
+
* @param cipher A block cipher instance.
|
|
87
|
+
* @param iv The IV words.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
*
|
|
91
|
+
* var mode = CBC.Encryptor.create(cipher, iv.words);
|
|
92
|
+
*/
|
|
93
|
+
init(cipher: BlockCipher, iv?: number[]): void;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
declare abstract class BlockCipherMode {
|
|
97
|
+
static Decryptor: any;
|
|
98
|
+
static Encryptor: any;
|
|
99
|
+
/**
|
|
100
|
+
* Creates this mode for decryption.
|
|
101
|
+
*
|
|
102
|
+
* @param cipher A block cipher instance.
|
|
103
|
+
* @param iv The IV words.
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
*
|
|
107
|
+
* const mode = CBC.createDecryptor(cipher, iv.words);
|
|
108
|
+
*/
|
|
109
|
+
static createDecryptor(cipher: BlockCipher, iv: number[]): BlockCipherModeAlgorithm;
|
|
110
|
+
/**
|
|
111
|
+
* Creates this mode for encryption.
|
|
112
|
+
*
|
|
113
|
+
* @param cipher A block cipher instance.
|
|
114
|
+
* @param iv The IV words.
|
|
115
|
+
*
|
|
116
|
+
* @example
|
|
117
|
+
*
|
|
118
|
+
* var mode = CBC.createEncryptor(cipher, iv.words);
|
|
119
|
+
*/
|
|
120
|
+
static createEncryptor(cipher: BlockCipher, iv: number[]): BlockCipherModeAlgorithm;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
declare abstract class AbstractPadding {
|
|
124
|
+
static pad: (data: WordArray, blockSize: number) => void;
|
|
125
|
+
static unpad: (data: WordArray) => void;
|
|
126
|
+
}
|
|
127
|
+
type Padding = typeof AbstractPadding;
|
|
128
|
+
|
|
129
|
+
declare class CipherParams {
|
|
130
|
+
algorithm?: typeof Cipher;
|
|
131
|
+
blockSize?: number;
|
|
132
|
+
ciphertext?: WordArray;
|
|
133
|
+
formatter?: Formatter;
|
|
134
|
+
iv?: WordArray;
|
|
135
|
+
key?: WordArray | string;
|
|
136
|
+
mode?: typeof BlockCipherMode;
|
|
137
|
+
padding?: Padding;
|
|
138
|
+
salt?: WordArray | string;
|
|
139
|
+
/**
|
|
140
|
+
* Initializes a newly created cipher params object.
|
|
141
|
+
*
|
|
142
|
+
* @param cipherParams An object with any of the possible cipher parameters.
|
|
143
|
+
*
|
|
144
|
+
* @example
|
|
145
|
+
*
|
|
146
|
+
* let cipherParams = CipherParams.create({
|
|
147
|
+
* ciphertext: ciphertextWordArray,
|
|
148
|
+
* key: keyWordArray,
|
|
149
|
+
* iv: ivWordArray,
|
|
150
|
+
* salt: saltWordArray,
|
|
151
|
+
* algorithm: AES,
|
|
152
|
+
* mode: CBC,
|
|
153
|
+
* padding: PKCS7,
|
|
154
|
+
* blockSize: 4,
|
|
155
|
+
* formatter: OpenSSLFormatter
|
|
156
|
+
* });
|
|
157
|
+
*/
|
|
158
|
+
constructor(cipherParams: Omit<CipherParams, "extend" | "toString">);
|
|
159
|
+
extend(additionalParams: CipherParams): CipherParams;
|
|
160
|
+
/**
|
|
161
|
+
* Converts this cipher params object to a string.
|
|
162
|
+
*
|
|
163
|
+
* @param formatter (Optional) The formatting strategy to use.
|
|
164
|
+
*
|
|
165
|
+
* @return The stringified cipher params.
|
|
166
|
+
*
|
|
167
|
+
* @throws Error If neither the formatter nor the default formatter is set.
|
|
168
|
+
*
|
|
169
|
+
* @example
|
|
170
|
+
*
|
|
171
|
+
* let string = cipherParams + '';
|
|
172
|
+
* let string = cipherParams.toString();
|
|
173
|
+
* let string = cipherParams.toString(CryptoJS.format.OpenSSL);
|
|
174
|
+
*/
|
|
175
|
+
toString(formatter?: Formatter): string;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
interface Formatter {
|
|
179
|
+
stringify: (cipherParams: CipherParams) => string;
|
|
180
|
+
parse: (paramsStr: string) => CipherParams;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
declare abstract class AbstractKDF {
|
|
184
|
+
static execute: (password: string, keySize: number, ivSize: number, salt?: WordArray | string) => CipherParams;
|
|
185
|
+
abstract compute?(password: WordArray | string, salt: WordArray | string): WordArray;
|
|
186
|
+
}
|
|
187
|
+
type KDF = typeof AbstractKDF;
|
|
188
|
+
|
|
189
|
+
interface BufferedBlockAlgorithmConfig {
|
|
190
|
+
blockSize?: number;
|
|
191
|
+
iv?: WordArray;
|
|
192
|
+
format?: Formatter;
|
|
193
|
+
kdf?: KDF;
|
|
194
|
+
mode?: typeof BlockCipherMode;
|
|
195
|
+
padding?: Padding;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
declare abstract class BufferedBlockAlgorithm {
|
|
199
|
+
cfg: BufferedBlockAlgorithmConfig;
|
|
200
|
+
protected _data: WordArray;
|
|
201
|
+
protected _minBufferSize: number;
|
|
202
|
+
protected _nDataBytes: number;
|
|
203
|
+
protected abstract _doProcessBlock(wordArray: number[], offset: number): void;
|
|
204
|
+
constructor(cfg?: BufferedBlockAlgorithmConfig);
|
|
205
|
+
/**
|
|
206
|
+
* Creates a copy of this object.
|
|
207
|
+
*
|
|
208
|
+
* @return The clone.
|
|
209
|
+
*
|
|
210
|
+
* @example
|
|
211
|
+
*
|
|
212
|
+
* let clone = bufferedBlockAlgorithm.clone();
|
|
213
|
+
*/
|
|
214
|
+
clone(): BufferedBlockAlgorithm;
|
|
215
|
+
/**
|
|
216
|
+
* Resets this block algorithm's data buffer to its initial state.
|
|
217
|
+
*
|
|
218
|
+
* @example
|
|
219
|
+
*
|
|
220
|
+
* bufferedBlockAlgorithm.reset();
|
|
221
|
+
*/
|
|
222
|
+
reset(): void;
|
|
223
|
+
/**
|
|
224
|
+
* Adds new data to this block algorithm's buffer.
|
|
225
|
+
*
|
|
226
|
+
* @param data The data to append. Strings are converted to a WordArray using UTF-8.
|
|
227
|
+
*
|
|
228
|
+
* @example
|
|
229
|
+
*
|
|
230
|
+
* bufferedBlockAlgorithm._append('data');
|
|
231
|
+
* bufferedBlockAlgorithm._append(wordArray);
|
|
232
|
+
*/
|
|
233
|
+
protected _append(data: string | WordArray): void;
|
|
234
|
+
/**
|
|
235
|
+
* Processes available data blocks.
|
|
236
|
+
*
|
|
237
|
+
* This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype.
|
|
238
|
+
*
|
|
239
|
+
* @param doFlush Whether all blocks and partial blocks should be processed.
|
|
240
|
+
*
|
|
241
|
+
* @return The processed data.
|
|
242
|
+
*
|
|
243
|
+
* @example
|
|
244
|
+
*
|
|
245
|
+
* let processedData = bufferedBlockAlgorithm._process();
|
|
246
|
+
* let processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
247
|
+
*/
|
|
248
|
+
protected _process(doFlush?: boolean): WordArray;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
declare class CipherHelper {
|
|
252
|
+
private readonly _cipher;
|
|
253
|
+
constructor(_cipher: typeof Cipher);
|
|
254
|
+
decrypt(ciphertext: CipherParams | string, key: WordArray | string, cfg?: BufferedBlockAlgorithmConfig): WordArray;
|
|
255
|
+
encrypt(message: WordArray | string, key: WordArray | string, cfg?: BufferedBlockAlgorithmConfig): CipherParams;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
declare abstract class Cipher extends BufferedBlockAlgorithm {
|
|
259
|
+
/**
|
|
260
|
+
* This cipher's IV size. Default: 4 (128 bits / 32 Bits)
|
|
261
|
+
*/
|
|
262
|
+
static ivSize: number;
|
|
263
|
+
/**
|
|
264
|
+
* This cipher's key size. Default: 4 (128 bits / 32 Bits)
|
|
265
|
+
*/
|
|
266
|
+
static keySize: number;
|
|
267
|
+
/**
|
|
268
|
+
* A constant representing decryption mode.
|
|
269
|
+
*/
|
|
270
|
+
protected static readonly _DEC_XFORM_MODE = 2;
|
|
271
|
+
/**
|
|
272
|
+
* A constant representing encryption mode.
|
|
273
|
+
*/
|
|
274
|
+
protected static readonly _ENC_XFORM_MODE = 1;
|
|
275
|
+
/**
|
|
276
|
+
* The key.
|
|
277
|
+
*/
|
|
278
|
+
protected _key: WordArray;
|
|
279
|
+
/**
|
|
280
|
+
* Either the encryption or decryption transformation mode constant.
|
|
281
|
+
*/
|
|
282
|
+
protected _xformMode: number;
|
|
283
|
+
/**
|
|
284
|
+
* Initializes a newly created cipher.
|
|
285
|
+
*
|
|
286
|
+
* @param xformMode Either the encryption or decryption transormation mode constant.
|
|
287
|
+
* @param key The key.
|
|
288
|
+
* @param cfg (Optional) The configuration options to use for this operation.
|
|
289
|
+
*
|
|
290
|
+
* @example
|
|
291
|
+
*
|
|
292
|
+
* let cipher = AES.create(AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });
|
|
293
|
+
*/
|
|
294
|
+
constructor(xformMode: number, key: WordArray, cfg?: BufferedBlockAlgorithmConfig);
|
|
295
|
+
/**
|
|
296
|
+
* Creates shortcut functions to a cipher's object interface.
|
|
297
|
+
*
|
|
298
|
+
* @param cipher The cipher to create a helper for.
|
|
299
|
+
*
|
|
300
|
+
* @return An object with encrypt and decrypt shortcut functions.
|
|
301
|
+
*
|
|
302
|
+
* @example
|
|
303
|
+
*
|
|
304
|
+
* const AES = Cipher._createHelper(AESAlgorithm);
|
|
305
|
+
*/
|
|
306
|
+
static _createHelper(cipher: typeof Cipher): CipherHelper;
|
|
307
|
+
/**
|
|
308
|
+
* Creates this cipher in decryption mode.
|
|
309
|
+
*
|
|
310
|
+
* @param key The key.
|
|
311
|
+
* @param cfg (Optional) The configuration options to use for this operation.
|
|
312
|
+
*
|
|
313
|
+
* @return A cipher instance.
|
|
314
|
+
*
|
|
315
|
+
* @example
|
|
316
|
+
*
|
|
317
|
+
* let cipher = AES.createDecryptor(keyWordArray, { iv: ivWordArray });
|
|
318
|
+
*/
|
|
319
|
+
static createDecryptor(key: WordArray | string, cfg?: BufferedBlockAlgorithmConfig): Cipher;
|
|
320
|
+
/**
|
|
321
|
+
* Creates this cipher in encryption mode.
|
|
322
|
+
*
|
|
323
|
+
* @param key The key.
|
|
324
|
+
* @param cfg (Optional) The configuration options to use for this operation.
|
|
325
|
+
*
|
|
326
|
+
* @return A cipher instance.
|
|
327
|
+
*
|
|
328
|
+
* @example
|
|
329
|
+
*
|
|
330
|
+
* let cipher = AES.createEncryptor(keyWordArray, { iv: ivWordArray });
|
|
331
|
+
*/
|
|
332
|
+
static createEncryptor(key: WordArray | string, cfg?: BufferedBlockAlgorithmConfig): Cipher;
|
|
333
|
+
/**
|
|
334
|
+
* Finalizes the encryption or decryption process.
|
|
335
|
+
* Note that the finalize operation is effectively a destructive, read-once operation.
|
|
336
|
+
*
|
|
337
|
+
* @param dataUpdate The final data to encrypt or decrypt.
|
|
338
|
+
*
|
|
339
|
+
* @return The data after final processing.
|
|
340
|
+
*
|
|
341
|
+
* @example
|
|
342
|
+
*
|
|
343
|
+
* var encrypted = cipher.finalize();
|
|
344
|
+
* var encrypted = cipher.finalize('data');
|
|
345
|
+
* var encrypted = cipher.finalize(wordArray);
|
|
346
|
+
*/
|
|
347
|
+
finalize(dataUpdate?: WordArray | string): WordArray;
|
|
348
|
+
/**
|
|
349
|
+
* Adds data to be encrypted or decrypted.
|
|
350
|
+
*
|
|
351
|
+
* @param dataUpdate The data to encrypt or decrypt.
|
|
352
|
+
*
|
|
353
|
+
* @return The data after processing.
|
|
354
|
+
*
|
|
355
|
+
* @example
|
|
356
|
+
*
|
|
357
|
+
* let encrypted = cipher.process('data');
|
|
358
|
+
* let encrypted = cipher.process(wordArray);
|
|
359
|
+
*/
|
|
360
|
+
process(dataUpdate: WordArray | string): WordArray;
|
|
361
|
+
/**
|
|
362
|
+
* Cipher specific finalize function explicitly implemented in the derived class.
|
|
363
|
+
*/
|
|
364
|
+
protected abstract _doFinalize(): WordArray;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
declare abstract class BlockCipher extends Cipher {
|
|
368
|
+
protected _mode: BlockCipherModeAlgorithm;
|
|
369
|
+
constructor(xformMode: number, key: WordArray, cfg?: BufferedBlockAlgorithmConfig);
|
|
370
|
+
abstract decryptBlock(M: number[], offset: number): void;
|
|
371
|
+
abstract encryptBlock(M: number[], offset: number): void;
|
|
372
|
+
reset(): void;
|
|
373
|
+
protected _doFinalize(): WordArray;
|
|
374
|
+
protected _doProcessBlock(words: number[], offset: number): void;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
declare class CBCEncryptor extends BlockCipherModeAlgorithm {
|
|
378
|
+
get prevBlock(): number[];
|
|
379
|
+
protected _prevBlock: number[] | undefined;
|
|
380
|
+
/**
|
|
381
|
+
* Processes the data block at offset.
|
|
382
|
+
*
|
|
383
|
+
* @param words The data words to operate on.
|
|
384
|
+
* @param offset The offset where the block starts.
|
|
385
|
+
*
|
|
386
|
+
* @example
|
|
387
|
+
*
|
|
388
|
+
* mode.processBlock(data.words, offset);
|
|
389
|
+
*/
|
|
390
|
+
processBlock(words: number[], offset: number): void;
|
|
391
|
+
xorBlock(words: number[], offset: number, blockSize: number): void;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
declare class CBCDecryptor extends BlockCipherModeAlgorithm {
|
|
395
|
+
get prevBlock(): number[];
|
|
396
|
+
protected _prevBlock: number[] | undefined;
|
|
397
|
+
/**
|
|
398
|
+
* Processes the data block at offset.
|
|
399
|
+
*
|
|
400
|
+
* @param words The data words to operate on.
|
|
401
|
+
* @param offset The offset where the block starts.
|
|
402
|
+
*
|
|
403
|
+
* @example
|
|
404
|
+
*
|
|
405
|
+
* mode.processBlock(data.words, offset);
|
|
406
|
+
*/
|
|
407
|
+
processBlock(words: number[], offset: number): void;
|
|
408
|
+
xorBlock(words: number[], offset: number, blockSize: number): void;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Cipher Block Chaining mode.
|
|
413
|
+
*/
|
|
414
|
+
declare abstract class CBC extends BlockCipherMode {
|
|
415
|
+
static Decryptor: typeof CBCDecryptor;
|
|
416
|
+
static Encryptor: typeof CBCEncryptor;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
declare class PKCS7 implements AbstractPadding {
|
|
420
|
+
/**
|
|
421
|
+
* Pads data using the algorithm defined in PKCS #5/7.
|
|
422
|
+
*
|
|
423
|
+
* @param data The data to pad.
|
|
424
|
+
* @param blockSize The multiple that the data should be padded to.
|
|
425
|
+
*
|
|
426
|
+
* @example
|
|
427
|
+
*
|
|
428
|
+
* PKCS7.pad(wordArray, 4);
|
|
429
|
+
*/
|
|
430
|
+
static pad(data: WordArray, blockSize: number): void;
|
|
431
|
+
/**
|
|
432
|
+
* Unpads data that had been padded using the algorithm defined in PKCS #5/7.
|
|
433
|
+
*
|
|
434
|
+
* @param data The data to unpad.
|
|
435
|
+
*
|
|
436
|
+
* @example
|
|
437
|
+
*
|
|
438
|
+
* PKCS7.unpad(wordArray);
|
|
439
|
+
*/
|
|
440
|
+
static unpad(data: WordArray): void;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
declare class SmpAesCrypt {
|
|
444
|
+
protected _password: string;
|
|
445
|
+
protected _salt: string;
|
|
446
|
+
protected _initVector?: string | undefined;
|
|
447
|
+
protected get _iv(): WordArray | undefined;
|
|
448
|
+
protected _mode: typeof CBC;
|
|
449
|
+
protected _padding: typeof PKCS7;
|
|
450
|
+
constructor(_password: string, _salt: string, _initVector?: string | undefined);
|
|
451
|
+
/**
|
|
452
|
+
* Decodes some data from a symmetric AES encryption
|
|
453
|
+
* @param {string} data
|
|
454
|
+
* @returns {string}
|
|
455
|
+
*/
|
|
456
|
+
decryptAES(data: string): string;
|
|
457
|
+
/**
|
|
458
|
+
* Encodes some data with a symmetric AES encryption
|
|
459
|
+
* @param {string} data
|
|
460
|
+
* @returns {string}
|
|
461
|
+
*/
|
|
462
|
+
encryptAES(data: string): string;
|
|
463
|
+
/**
|
|
464
|
+
* This is the default password generation used by Marketing Cloud in their AMPScript
|
|
465
|
+
* @protected
|
|
466
|
+
*/
|
|
467
|
+
protected _buildKey(): WordArray;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
export { SmpAesCrypt as S, WordArray as W };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
type SmpLoggerMethodKeys = keyof SmpLoggerMethods;
|
|
2
|
+
|
|
3
|
+
declare class SmpConsoleOnlyMethods {
|
|
4
|
+
/**
|
|
5
|
+
* Creates a new inline group in the Web Console log.
|
|
6
|
+
* @param groupTitle An optional title for the group.
|
|
7
|
+
*/
|
|
8
|
+
group: (groupTitle?: string) => void;
|
|
9
|
+
/**
|
|
10
|
+
* Creates a new inline group in the Web Console log that is initially collapsed.
|
|
11
|
+
* @param groupTitle An optional title for the group.
|
|
12
|
+
*/
|
|
13
|
+
groupCollapsed: (groupTitle?: string) => void;
|
|
14
|
+
/**
|
|
15
|
+
* Exits the current inline group in the Web Console.
|
|
16
|
+
*/
|
|
17
|
+
groupEnd: () => void;
|
|
18
|
+
/**
|
|
19
|
+
* Starts a timer you can use to track how long an operation takes.
|
|
20
|
+
* It works only with log {@link KikLoggingLevels} equal or higher than DEBUG.
|
|
21
|
+
*
|
|
22
|
+
* @param timerName The name to give the new timer. This will identify the timer.
|
|
23
|
+
*/
|
|
24
|
+
time: (timerName?: string) => void;
|
|
25
|
+
/**
|
|
26
|
+
* Stops a timer that was previously started by calling {@link KikLoggingLevels.time}.
|
|
27
|
+
* It works only with log {@link KikLoggingLevels} equal or higher than DEBUG.
|
|
28
|
+
*
|
|
29
|
+
* @param timerName The name of the timer to stop. Once stopped, the elapsed time is automatically displayed in the Web Console.
|
|
30
|
+
*/
|
|
31
|
+
timeEnd: (timerName?: string) => void;
|
|
32
|
+
}
|
|
33
|
+
declare class SmpLoggerMethods extends SmpConsoleOnlyMethods {
|
|
34
|
+
/**
|
|
35
|
+
* Outputs a debugging message to the Web Console.
|
|
36
|
+
* @param message A JavaScript string containing zero or more substitution strings.
|
|
37
|
+
* @param optionalParams A list of JavaScript objects to output
|
|
38
|
+
* OR JavaScript objects with which to replace substitution strings within message.
|
|
39
|
+
*/
|
|
40
|
+
debug: (message?: any, ...optionalParams: any[]) => void;
|
|
41
|
+
/**
|
|
42
|
+
* Outputs an error message to the Web Console.
|
|
43
|
+
* @param message A JavaScript string containing zero or more substitution strings.
|
|
44
|
+
* @param optionalParams A list of JavaScript objects to output
|
|
45
|
+
* OR JavaScript objects with which to replace substitution strings within message.
|
|
46
|
+
*/
|
|
47
|
+
error: (message?: any, ...optionalParams: any[]) => void;
|
|
48
|
+
/**
|
|
49
|
+
* Outputs an informational message to the Web Console.
|
|
50
|
+
* @param message A JavaScript string containing zero or more substitution strings.
|
|
51
|
+
* @param optionalParams A list of JavaScript objects to output
|
|
52
|
+
* OR JavaScript objects with which to replace substitution strings within message.
|
|
53
|
+
*/
|
|
54
|
+
info: (message?: any, ...optionalParams: any[]) => void;
|
|
55
|
+
/**
|
|
56
|
+
* Outputs a message to the Web Console.
|
|
57
|
+
* @param message A JavaScript string containing zero or more substitution strings.
|
|
58
|
+
* @param optionalParams A list of JavaScript objects to output
|
|
59
|
+
* OR JavaScript objects with which to replace substitution strings within message.
|
|
60
|
+
*/
|
|
61
|
+
log: (message?: any, ...optionalParams: any[]) => void;
|
|
62
|
+
warn: (message?: any, ...optionalParams: any[]) => void;
|
|
63
|
+
static describe(): SmpLoggerMethodKeys[];
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export { SmpLoggerMethods as S };
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var E=(T=>(T.GET="GET",T.POST="POST",T.PUT="PUT",T.DELETE="DELETE",T.PATCH="PATCH",T))(E||{});export{E as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=(t=>(t.ListDetectiveValidator="ListDetectiveValidator",t.MXValidator="MXValidator",t.SyntaxValidator="SyntaxValidator",t))(a||{});export{a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as p}from"./chunk-JFKSI6I7.js";import{Expose as r}from"class-transformer";var e=class e{constructor(s,t="ERROR"){this._message=s;this._type=t}get message(){return this._message}get type(){return this._type}static sanitizeMessages(s){return typeof s=="string"?s.length?[new e(s)]:[]:[s].flat().map(t=>typeof t=="string"?new e(t):t)}};p([r()],e.prototype,"message",1),p([r()],e.prototype,"type",1);var n=e;export{n as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t={status:"OK"};export{t as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as i}from"./chunk-73A5OTVH.js";var s=class{static{this._javascriptVariablePattern="[a-zA-Z_$][a-zA-Z_$0-9]*"}static{this._logger=new i}static{this._pathParamRegex=new RegExp(`\\{(${this._javascriptVariablePattern})\\}`,"g")}static credentialsToBasicAuth(t,r){return`Basic ${Buffer.from(`${t}:${r}`).toString("base64")}`}static fromBearer(t=""){return t.split(" ")[1]}static getCountryFromReferer(t){return this.getLocaleFromReferer(t)?.split("-")[0]?.toUpperCase()}static getLanguageFromReferer(t){return this.getLocaleFromReferer(t)?.split("-")[1]}static getLocaleFromReferer(t){return t?.match(/\/([A-Z]{2}-[A-Z]{2})\//i)?.[1]}static interpolateParams(t,r){try{return t.replace(this._pathParamRegex,(e,n)=>{let a=r[n];return a!==void 0?encodeURIComponent(a):e})}catch(e){this._logger.warn("KikApiCommonUtils: couldn't interpolate params",e)}return t}};export{s as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var M=(A=>(A.MD5="MD5",A.MD5_HMAC="MD5_HMAC",A.SHA1="SHA1",A.SHA1_HMAC="SHA1_HMAC",A))(M||{});export{M as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,b as i,e as d,f as s,g as o,h as n,i as r}from"./chunk-J6MWJEP3.js";var p=class{constructor(t,a,c){this._password=t;this._salt=a;this._initVector=c;this._mode=d;this._padding=s}get _iv(){return this._initVector?e.parse(this._initVector):void 0}decryptAES(t){return r.decrypt(t,this._buildKey(),{iv:this._iv,mode:this._mode,padding:this._padding}).toString(i)}encryptAES(t){return r.encrypt(t,this._buildKey(),{iv:this._iv,mode:this._mode,padding:this._padding}).toString()}_buildKey(){return n.execute(this._password,e.parse(this._salt),{keySize:256/32,iterations:1e3,hasher:o})}};export{p as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t}from"./chunk-NOYOAWWX.js";var s=class{constructor(){this.group=t,this.groupCollapsed=t,this.groupEnd=t,this.time=t,this.timeEnd=t}},i=class r extends s{constructor(){super(...arguments),this.debug=t,this.error=t,this.info=t,this.log=t,this.warn=t}static describe(){return Object.getOwnPropertyNames(new r).map(e=>e)}};export{i as a};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r=class extends Error{constructor(t="Filter Exception",a){super();this.message=t;this.data=a}};export{r as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as n}from"./chunk-C2FQU2TR.js";import{a as o}from"./chunk-73A5OTVH.js";import{getApps as a,initializeApp as c}from"firebase/app";import{browserLocalPersistence as l,browserSessionPersistence as h,EmailAuthProvider as g,FacebookAuthProvider as p,GoogleAuthProvider as u,OAuthProvider as m,checkActionCode as _,confirmPasswordReset as S,fetchSignInMethodsForEmail as P,getAuth as U,getRedirectResult as v,reauthenticateWithCredential as f,sendEmailVerification as b,sendPasswordResetEmail as I,setPersistence as F,signInWithCustomToken as E,signInWithEmailAndPassword as A,signInWithPopup as w,signInWithRedirect as C,signOut as y,updatePassword as R,updateProfile as O}from"firebase/auth";var d=class s{constructor(e,t){this._enabledSocials=[];this._popupErrors=0;this._socialLoginUxMode="POPUP";this._config=e,this._enabledSocials=t.enabledSocials||[],this._socialLoginUxMode=t.socialLoginUxMode||"POPUP",this._popupFallsBackToRedirect=!!t.popupFallsBackToRedirect,this._buildProviders(),this._logger=t.logger||new o,this._app=a().length?a()[0]:c(e),this._watchAuthState()}static get instance(){if(!(this._instance instanceof s))throw Error(`${this.constructor.name} instance doesn't exist! Call ${this.constructor.name}.init first!`);return this._instance}get config(){return this._config}get enabledSocials(){return this._enabledSocials}get loggedUser(){return this._loggedUser||(this._loggedUser=this._readStoredUser()),this._auth.currentUser||this._loggedUser||void 0}get providersRelation(){return{"facebook.com":"FACEBOOK","google.com":"GOOGLE","apple.com":"APPLE"}}get socialLoginUXMode(){return this._socialLoginUxMode}get storedUserKey(){return"firebaseUser"}get _auth(){return U(this._app)}static init(e,t){return this._instance||(this._instance=new s(e,t)),this._instance}addAuthStateChangedCallback(e){return this._auth.onAuthStateChanged(t=>{e(t||this.loggedUser||null)})}checkActionCode(e){return _(this._auth,e)}confirmPasswordReset(e,t){return S(this._auth,e,t)}fetchSignInMethodsForEmail(e){return P(this._auth,e).then(t=>t.map(r=>this.providersRelation[r]||r))}getRedirectResult(){return v(this._auth).catch(async e=>(await this._expandDifferentCredential(e),Promise.reject(e)))}initAppCheck(){}sendEmailVerification(e){if(!this.loggedUser)throw Error("Firebase: user is not logged!");return b(this.loggedUser,e?{url:e}:void 0)}sendPasswordResetEmail(e,t){return I(this._auth,e,{url:t})}setPersistence(e){return F(this._auth,e?l:h)}signInWithCustomToken(e){return E(this._auth,e)}signInWithEmailAndPassword(e,t){return A(this._auth,e,t).then(async r=>r.user)}signInWithSocialProvider(e){if(!this._providers[e])throw Error(`Firebase: invalid social key provided! Expected one of ${this.enabledSocials}, got ${e}`);return this._signInWithProvider(this._providers[e])}signOut(){return y(this._auth)}updatePassword(e,t){if(!this.loggedUser)throw Error("Firebase: user is not logged!");let r=g.credential(this.loggedUser.email,e);return f(this.loggedUser,r).then(()=>R(this.loggedUser,t))}updateUserProfile(e){if(!this.loggedUser)throw Error("Firebase: user is not logged!");return O(this.loggedUser,e)}async verifyIdToken(){return this._auth.currentUser?.getIdTokenResult()}_buildProviders(){this._providers=this._enabledSocials.reduce((e,t)=>(t in e&&(e[t]=e[t]),e),{APPLE:new m("apple.com"),FACEBOOK:new p().setCustomParameters({prompt:"select_account"}),GOOGLE:new u().setCustomParameters({prompt:"select_account"})})}async _expandDifferentCredential(e){if(e?.code==="auth/account-exists-with-different-credential"){let t=await this.fetchSignInMethodsForEmail(e.customData.email);throw e.code=n["DIFFERENT_CREDENTIAL_"+t[0]],e}}_readStoredUser(){try{let e=localStorage.getItem(this.storedUserKey);if(e){this._logger?.debug("Firebase: found local user",e);let t=JSON.parse(e);return{...t,getIdToken:()=>Promise.resolve(t.stsTokenManager.accessToken)}}}catch(e){this._logger.debug("Firebase: error while getting stored user",e)}}async _signInWithProvider(e,t=this.socialLoginUXMode){return(t==="POPUP"?w:C)(this._auth,e).then(i=>(this._logger.info(`Firebase: signin with provider ${e.providerId} was successful`),i.user)).catch(async i=>i?.code==="auth/popup-blocked"&&(this._logger.warn(`Firebase: social signin popup blocked (${++this._popupErrors}`),this._popupFallsBackToRedirect&&this._popupErrors>1)?(this._popupErrors=0,this._signInWithProvider(e,"REDIRECT")):(this._logger.error(`Firebase: sign in with ${e.providerId} errored`,i),await this._expandDifferentCredential(i),Promise.reject(i)))}_updateLocalUser(e){try{e?localStorage.setItem(this.storedUserKey,JSON.stringify(e)):localStorage.removeItem(this.storedUserKey),this._logger.debug("Firebase: updating local user",e),this._loggedUser=e}catch(t){this._logger.warn("Firebase: couldn't update local user",{user:e,error:t})}}_watchAuthState(){this._auth.onAuthStateChanged(e=>{this._logger.debug("Firebase: firebase detected auth state change",e),this._updateLocalUser(e||void 0)})}};export{d as a};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-73A5OTVH.js";import{DynamoDB as m}from"@aws-sdk/client-dynamodb";import{marshall as l,unmarshall as c}from"@aws-sdk/util-dynamodb";var i=(e=>(e.CouldNotDelete="ERR_COULD_NOT_DELETE",e.CouldNotRead="ERR_COULD_NOT_READ",e.CouldNotWrite="ERR_COULD_NOT_WRITE",e.ConditionalCheckFailedException="ERR_DUPE_TOKEN",e))(i||{}),s=class{constructor(o,r){this._config=o;this._tableName=r;this._db=new m([this._buildConfig()]);this._logger=new a}get marshall(){return l}get unmarshall(){return c}_buildConfig(){return this._config}_delete(o,r=this._tableName,n){let e={TableName:r,Key:this.marshall(o),...n};return this._db.deleteItem(e).catch(t=>(this._logger.error("DynamoActionTokensService: couldn't write token to DB",t),Promise.reject(i[t.code]||"ERR_COULD_NOT_DELETE")))}_read(o,r=this._tableName,n){let e={TableName:r,Key:this.marshall(o),...n};return this._db.getItem(e).catch(t=>(this._logger.error("DynamoActionTokensService: couldn't write token to DB",t),Promise.reject(i[t.code]||"ERR_COULD_NOT_READ")))}_write(o,r=this._tableName,n){let e={TableName:r,Item:this.marshall(o),...n};return this._db.putItem(e).catch(t=>(this._logger.error("DynamoActionTokensService: couldn't write token to DB",t),Promise.reject(i[t.code]||"ERR_COULD_NOT_WRITE")))}};export{s as a};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as n}from"./chunk-2TQSQ6UP.js";import{a as i}from"./chunk-JFKSI6I7.js";import{Expose as a,instanceToPlain as p,plainToInstance as m,Transform as c}from"class-transformer";var s=class s{constructor(e=[],r){this._messages=e;this.data=r}set messages(e){this._messages=n.sanitizeMessages(e)}get messages(){return this._messages}static buildInfo(e,r){return new s([e].flat().map(t=>new n(t,"INFO")),r)}static buildSuccess(e,r){return new s([e].flat().map(t=>new n(t,"SUCCESS")),r)}static fromPlain(e){return m(s,e)}isError(){return!this.isSuccess()}isSuccess(){return"_errorCode"in this&&this._errorCode!==null&&this._errorCode!==void 0}serialize(){return p(this,{excludePrefixes:["_"]})}};i([a(),c(({value:e})=>e?.length?e:void 0)],s.prototype,"messages",1);var o=s;export{o as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var u=(t=>(t.DIFFERENT_CREDENTIAL="auth/account-exists-with-different-credential",t.DIFFERENT_CREDENTIAL_APPLE="auth/account-exists-with-different-credential/apple",t.DIFFERENT_CREDENTIAL_FACEBOOK="auth/account-exists-with-different-credential/facebook",t.DIFFERENT_CREDENTIAL_GOOGLE="auth/account-exists-with-different-credential/google",t.EMAIL_EXISTS="auth/email-already-exists",t.INVALID_ACTION_CODE="auth/invalid-action-code",t.POPUP_BLOCKED="auth/popup-blocked",t.POPUP_CLOSED_BY_USER="auth/popup-closed-by-user",t.USER_NOT_FOUND="auth/user-not-found",t.WRONG_PASSWORD="auth/wrong-password",t))(u||{});export{u as a};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as r}from"./chunk-JCZRE6MU.js";var s=class extends r{constructor(){super(sessionStorage,"smp_rest_cache_")}};export{s as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var C=(N=>(N.INFO="INFO",N.SUCCESS="SUCCESS",N.WARNING="WARNING",N.ERROR="ERROR",N))(C||{});export{C as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as r,c as s,j as i,k as n,l as e,m as a}from"./chunk-J6MWJEP3.js";var g=class{static base64Decode(t){return r.stringify(s.parse(t))}static base64Encode(t){return s.stringify(r.parse(t))}static md5(t){return i(t).toString()}static sha1(t){return n(t).toString()}static sha256(t){return e(t).toString()}static sha512(t){return a(t).toString()}};export{g as a};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a="\\ud800-\\udfff",D="\\u0300-\\u036f",E="\\ufe20-\\ufe2f",M="\\u20d0-\\u20ff",m="\\u1ab0-\\u1aff",A="\\u1dc0-\\u1dff",S=D+E+M+m+A,u="\\u2700-\\u27bf",f="a-z\\xdf-\\xf6\\xf8-\\xff",_="\\xac\\xb1\\xd7\\xf7",z="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Z="\\u2000-\\u206f",L=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",d="A-Z\\xc0-\\xd6\\xd8-\\xde",U="\\ufe0e\\ufe0f",$=_+z+Z+L,i="['\u2019]",n=`[${$}]`,j=`[${S}]`,R="\\d",k=`[${u}]`,x=`[${f}]`,g=`[^${a}${$+R+u+f+d}]`,N="\\ud83c[\\udffb-\\udfff]",h=`(?:${j}|${N})`,w=`[^${a}]`,p="(?:\\ud83c[\\udde6-\\uddff]){2}",b="[\\ud800-\\udbff][\\udc00-\\udfff]",s=`[${d}]`,y="\\u200d",o=`(?:${x}|${g})`,I=`(?:${s}|${g})`,r=`(?:${i}(?:d|ll|m|re|s|t|ve))?`,t=`(?:${i}(?:D|LL|M|RE|S|T|VE))?`,O=`${h}?`,l=`[${U}]?`,W=`(?:${y}(?:${[w,p,b].join("|")})${l+O})*`,H="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",J="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",T=l+O+W,c=`(?:${[k,p,b].join("|")})${T}`,e=class{static{this.HAS_UNICODE_WORD=RegExp.prototype.test.bind(/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/)}static{this.RE_UNICODE_WORDS=RegExp([`${s}?${x}+${r}(?=${[n,s,"$"].join("|")})`,`${I}+${t}(?=${[n,s+o,"$"].join("|")})`,`${s}?${o}+${r}`,`${s}+${t}`,J,H,`${R}+`,c].join("|"),"g")}static{this.RS_EMOJI=c}static unicodeWords(C){return C.match(this.RE_UNICODE_WORDS)}};export{e as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=class{static{this._storage=new Map}get staticStorage(){return this.constructor._storage}flush(){this.staticStorage.clear()}read(t){return this.staticStorage.get(t)}remove(t){this.staticStorage.delete(t)}write(t,r){this.staticStorage.set(t,r)}};export{e as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function i(x){return x.match(r)}export{i as a};
|