@ozdao/prometheus-framework 0.2.42 → 0.2.44
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main-2247448a.js +91 -0
- package/dist/main-6c51a895.mjs +13628 -0
- package/dist/main-Ft_OvlW_.mjs +13606 -0
- package/dist/main-iZBAe91V.js +91 -0
- package/dist/main.css +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.cjs +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +9 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.cjs +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/classCallCheck.cjs +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/createClass.cjs +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/createClass.js +15 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.cjs +2 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js +52 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/createSuper.cjs +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/createSuper.js +18 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.cjs +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.cjs +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/inherits.cjs +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/inherits.js +17 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.cjs +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.cjs +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.cjs +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.cjs +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +16 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.cjs +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +9 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.cjs +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js +11 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.cjs +1 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +15 -0
- package/dist/node_modules/@capacitor/core/dist/index.cjs +1 -0
- package/dist/node_modules/@capacitor/core/dist/index.js +337 -0
- package/dist/node_modules/@capacitor/preferences/dist/esm/index.cjs +1 -0
- package/dist/node_modules/@capacitor/preferences/dist/esm/index.js +7 -0
- package/dist/node_modules/@capacitor/preferences/dist/esm/web.cjs +1 -0
- package/dist/node_modules/@capacitor/preferences/dist/esm/web.js +54 -0
- package/dist/node_modules/@vuepic/vue-datepicker/dist/main.css.cjs +1 -0
- package/dist/node_modules/@vuepic/vue-datepicker/dist/main.css.js +1 -0
- package/dist/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs +1 -0
- package/dist/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +4912 -0
- package/dist/node_modules/axios/lib/adapters/adapters.cjs +3 -0
- package/dist/node_modules/axios/lib/adapters/adapters.js +51 -0
- package/dist/node_modules/axios/lib/adapters/xhr.cjs +1 -0
- package/dist/node_modules/axios/lib/adapters/xhr.js +109 -0
- package/dist/node_modules/axios/lib/axios.cjs +1 -0
- package/dist/node_modules/axios/lib/axios.js +47 -0
- package/dist/node_modules/axios/lib/cancel/CancelToken.cjs +1 -0
- package/dist/node_modules/axios/lib/cancel/CancelToken.js +73 -0
- package/dist/node_modules/axios/lib/cancel/CanceledError.cjs +1 -0
- package/dist/node_modules/axios/lib/cancel/CanceledError.js +11 -0
- package/dist/node_modules/axios/lib/cancel/isCancel.cjs +1 -0
- package/dist/node_modules/axios/lib/cancel/isCancel.js +6 -0
- package/dist/node_modules/axios/lib/core/Axios.cjs +2 -0
- package/dist/node_modules/axios/lib/core/Axios.js +131 -0
- package/dist/node_modules/axios/lib/core/AxiosError.cjs +1 -0
- package/dist/node_modules/axios/lib/core/AxiosError.js +54 -0
- package/dist/node_modules/axios/lib/core/AxiosHeaders.cjs +2 -0
- package/dist/node_modules/axios/lib/core/AxiosHeaders.js +165 -0
- package/dist/node_modules/axios/lib/core/InterceptorManager.cjs +1 -0
- package/dist/node_modules/axios/lib/core/InterceptorManager.js +58 -0
- package/dist/node_modules/axios/lib/core/buildFullPath.cjs +1 -0
- package/dist/node_modules/axios/lib/core/buildFullPath.js +8 -0
- package/dist/node_modules/axios/lib/core/dispatchRequest.cjs +1 -0
- package/dist/node_modules/axios/lib/core/dispatchRequest.js +31 -0
- package/dist/node_modules/axios/lib/core/mergeConfig.cjs +1 -0
- package/dist/node_modules/axios/lib/core/mergeConfig.js +72 -0
- package/dist/node_modules/axios/lib/core/settle.cjs +1 -0
- package/dist/node_modules/axios/lib/core/settle.js +14 -0
- package/dist/node_modules/axios/lib/core/transformData.cjs +1 -0
- package/dist/node_modules/axios/lib/core/transformData.js +13 -0
- package/dist/node_modules/axios/lib/defaults/index.cjs +1 -0
- package/dist/node_modules/axios/lib/defaults/index.js +88 -0
- package/dist/node_modules/axios/lib/defaults/transitional.cjs +1 -0
- package/dist/node_modules/axios/lib/defaults/transitional.js +8 -0
- package/dist/node_modules/axios/lib/env/data.cjs +1 -0
- package/dist/node_modules/axios/lib/env/data.js +4 -0
- package/dist/node_modules/axios/lib/helpers/AxiosURLSearchParams.cjs +1 -0
- package/dist/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +33 -0
- package/dist/node_modules/axios/lib/helpers/HttpStatusCode.cjs +1 -0
- package/dist/node_modules/axios/lib/helpers/HttpStatusCode.js +72 -0
- package/dist/node_modules/axios/lib/helpers/bind.cjs +1 -0
- package/dist/node_modules/axios/lib/helpers/bind.js +8 -0
- package/dist/node_modules/axios/lib/helpers/buildURL.cjs +1 -0
- package/dist/node_modules/axios/lib/helpers/buildURL.js +19 -0
- package/dist/node_modules/axios/lib/helpers/combineURLs.cjs +1 -0
- package/dist/node_modules/axios/lib/helpers/combineURLs.js +6 -0
- package/dist/node_modules/axios/lib/helpers/cookies.cjs +1 -0
- package/dist/node_modules/axios/lib/helpers/cookies.js +32 -0
- package/dist/node_modules/axios/lib/helpers/formDataToJSON.cjs +1 -0
- package/dist/node_modules/axios/lib/helpers/formDataToJSON.js +32 -0
- package/dist/node_modules/axios/lib/helpers/isAbsoluteURL.cjs +1 -0
- package/dist/node_modules/axios/lib/helpers/isAbsoluteURL.js +6 -0
- package/dist/node_modules/axios/lib/helpers/isAxiosError.cjs +1 -0
- package/dist/node_modules/axios/lib/helpers/isAxiosError.js +7 -0
- package/dist/node_modules/axios/lib/helpers/isURLSameOrigin.cjs +1 -0
- package/dist/node_modules/axios/lib/helpers/isURLSameOrigin.js +37 -0
- package/dist/node_modules/axios/lib/helpers/null.cjs +1 -0
- package/dist/node_modules/axios/lib/helpers/null.js +4 -0
- package/dist/node_modules/axios/lib/helpers/parseHeaders.cjs +2 -0
- package/dist/node_modules/axios/lib/helpers/parseHeaders.js +30 -0
- package/dist/node_modules/axios/lib/helpers/parseProtocol.cjs +1 -0
- package/dist/node_modules/axios/lib/helpers/parseProtocol.js +7 -0
- package/dist/node_modules/axios/lib/helpers/speedometer.cjs +1 -0
- package/dist/node_modules/axios/lib/helpers/speedometer.js +19 -0
- package/dist/node_modules/axios/lib/helpers/spread.cjs +1 -0
- package/dist/node_modules/axios/lib/helpers/spread.js +8 -0
- package/dist/node_modules/axios/lib/helpers/toFormData.cjs +1 -0
- package/dist/node_modules/axios/lib/helpers/toFormData.js +84 -0
- package/dist/node_modules/axios/lib/helpers/toURLEncodedForm.cjs +1 -0
- package/dist/node_modules/axios/lib/helpers/toURLEncodedForm.js +13 -0
- package/dist/node_modules/axios/lib/helpers/validator.cjs +1 -0
- package/dist/node_modules/axios/lib/helpers/validator.js +51 -0
- package/dist/node_modules/axios/lib/platform/browser/classes/Blob.cjs +1 -0
- package/dist/node_modules/axios/lib/platform/browser/classes/Blob.js +4 -0
- package/dist/node_modules/axios/lib/platform/browser/classes/FormData.cjs +1 -0
- package/dist/node_modules/axios/lib/platform/browser/classes/FormData.js +4 -0
- package/dist/node_modules/axios/lib/platform/browser/classes/URLSearchParams.cjs +1 -0
- package/dist/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +5 -0
- package/dist/node_modules/axios/lib/platform/browser/index.cjs +1 -0
- package/dist/node_modules/axios/lib/platform/browser/index.js +15 -0
- package/dist/node_modules/axios/lib/platform/common/utils.cjs +1 -0
- package/dist/node_modules/axios/lib/platform/common/utils.js +7 -0
- package/dist/node_modules/axios/lib/platform/index.cjs +1 -0
- package/dist/node_modules/axios/lib/platform/index.js +9 -0
- package/dist/node_modules/axios/lib/utils.cjs +1 -0
- package/dist/node_modules/axios/lib/utils.js +224 -0
- package/dist/node_modules/bignumber.js/bignumber.cjs +1 -0
- package/dist/node_modules/bignumber.js/bignumber.js +701 -0
- package/dist/node_modules/date-fns/esm/_lib/addLeadingZeros/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/addLeadingZeros/index.js +8 -0
- package/dist/node_modules/date-fns/esm/_lib/assign/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/assign/index.js +10 -0
- package/dist/node_modules/date-fns/esm/_lib/defaultLocale/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/defaultLocale/index.js +4 -0
- package/dist/node_modules/date-fns/esm/_lib/defaultOptions/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/defaultOptions/index.js +7 -0
- package/dist/node_modules/date-fns/esm/_lib/format/formatters/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/format/formatters/index.js +573 -0
- package/dist/node_modules/date-fns/esm/_lib/format/lightFormatters/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/format/lightFormatters/index.js +58 -0
- package/dist/node_modules/date-fns/esm/_lib/format/longFormatters/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/format/longFormatters/index.js +76 -0
- package/dist/node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js +7 -0
- package/dist/node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.js +13 -0
- package/dist/node_modules/date-fns/esm/_lib/getUTCISOWeek/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js +13 -0
- package/dist/node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js +15 -0
- package/dist/node_modules/date-fns/esm/_lib/getUTCWeek/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/getUTCWeek/index.js +13 -0
- package/dist/node_modules/date-fns/esm/_lib/getUTCWeekYear/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js +21 -0
- package/dist/node_modules/date-fns/esm/_lib/protectedTokens/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/protectedTokens/index.js +22 -0
- package/dist/node_modules/date-fns/esm/_lib/requiredArgs/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/requiredArgs/index.js +7 -0
- package/dist/node_modules/date-fns/esm/_lib/setUTCDay/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/setUTCDay/index.js +16 -0
- package/dist/node_modules/date-fns/esm/_lib/setUTCISODay/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/setUTCISODay/index.js +13 -0
- package/dist/node_modules/date-fns/esm/_lib/setUTCISOWeek/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/setUTCISOWeek/index.js +12 -0
- package/dist/node_modules/date-fns/esm/_lib/setUTCWeek/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/setUTCWeek/index.js +12 -0
- package/dist/node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js +10 -0
- package/dist/node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js +13 -0
- package/dist/node_modules/date-fns/esm/_lib/startOfUTCWeek/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js +16 -0
- package/dist/node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js +16 -0
- package/dist/node_modules/date-fns/esm/_lib/toInteger/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/_lib/toInteger/index.js +9 -0
- package/dist/node_modules/date-fns/esm/add/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/add/index.js +15 -0
- package/dist/node_modules/date-fns/esm/addDays/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/addDays/index.js +11 -0
- package/dist/node_modules/date-fns/esm/addMilliseconds/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/addMilliseconds/index.js +11 -0
- package/dist/node_modules/date-fns/esm/addMonths/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/addMonths/index.js +18 -0
- package/dist/node_modules/date-fns/esm/addQuarters/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/addQuarters/index.js +11 -0
- package/dist/node_modules/date-fns/esm/addYears/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/addYears/index.js +11 -0
- package/dist/node_modules/date-fns/esm/constants/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/constants/index.js +6 -0
- package/dist/node_modules/date-fns/esm/differenceInCalendarDays/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/differenceInCalendarDays/index.js +12 -0
- package/dist/node_modules/date-fns/esm/eachDayOfInterval/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/eachDayOfInterval/index.js +20 -0
- package/dist/node_modules/date-fns/esm/eachQuarterOfInterval/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/eachQuarterOfInterval/index.js +18 -0
- package/dist/node_modules/date-fns/esm/endOfQuarter/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/endOfQuarter/index.js +10 -0
- package/dist/node_modules/date-fns/esm/endOfWeek/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/endOfWeek/index.js +16 -0
- package/dist/node_modules/date-fns/esm/endOfYear/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/endOfYear/index.js +10 -0
- package/dist/node_modules/date-fns/esm/format/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/format/index.js +62 -0
- package/dist/node_modules/date-fns/esm/getDay/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/getDay/index.js +10 -0
- package/dist/node_modules/date-fns/esm/getDaysInMonth/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/getDaysInMonth/index.js +10 -0
- package/dist/node_modules/date-fns/esm/getHours/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/getHours/index.js +10 -0
- package/dist/node_modules/date-fns/esm/getISOWeek/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/getISOWeek/index.js +13 -0
- package/dist/node_modules/date-fns/esm/getISOWeekYear/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/getISOWeekYear/index.js +15 -0
- package/dist/node_modules/date-fns/esm/getMinutes/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/getMinutes/index.js +10 -0
- package/dist/node_modules/date-fns/esm/getMonth/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/getMonth/index.js +10 -0
- package/dist/node_modules/date-fns/esm/getQuarter/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/getQuarter/index.js +10 -0
- package/dist/node_modules/date-fns/esm/getSeconds/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/getSeconds/index.js +10 -0
- package/dist/node_modules/date-fns/esm/getWeek/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/getWeek/index.js +13 -0
- package/dist/node_modules/date-fns/esm/getWeekYear/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/getWeekYear/index.js +21 -0
- package/dist/node_modules/date-fns/esm/getYear/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/getYear/index.js +8 -0
- package/dist/node_modules/date-fns/esm/isAfter/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/isAfter/index.js +10 -0
- package/dist/node_modules/date-fns/esm/isBefore/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/isBefore/index.js +10 -0
- package/dist/node_modules/date-fns/esm/isDate/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/isDate/index.js +8 -0
- package/dist/node_modules/date-fns/esm/isEqual/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/isEqual/index.js +10 -0
- package/dist/node_modules/date-fns/esm/isSameQuarter/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/isSameQuarter/index.js +10 -0
- package/dist/node_modules/date-fns/esm/isValid/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/isValid/index.js +12 -0
- package/dist/node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js +9 -0
- package/dist/node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js +17 -0
- package/dist/node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js +31 -0
- package/dist/node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js +20 -0
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js +70 -0
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js +34 -0
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js +14 -0
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/localize/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js +124 -0
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/match/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/match/index.js +89 -0
- package/dist/node_modules/date-fns/esm/locale/en-US/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/locale/en-US/index.js +21 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/Parser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/Parser.js +27 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/Setter.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/Setter.js +59 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/constants.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/constants.js +49 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/AMPMMidnightParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/AMPMMidnightParser.js +61 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/AMPMParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/AMPMParser.js +61 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/DateParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/DateParser.js +49 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/DayOfYearParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/DayOfYearParser.js +50 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/DayParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/DayParser.js +80 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/DayPeriodParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/DayPeriodParser.js +61 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/EraParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/EraParser.js +54 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/ExtendedYearParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/ExtendedYearParser.js +33 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/FractionOfSecondParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/FractionOfSecondParser.js +36 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/Hour0To11Parser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/Hour0To11Parser.js +49 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/Hour0to23Parser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/Hour0to23Parser.js +48 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/Hour1To24Parser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/Hour1To24Parser.js +49 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/Hour1to12Parser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/Hour1to12Parser.js +49 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/ISODayParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/ISODayParser.js +89 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneParser.js +46 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneWithZParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneWithZParser.js +46 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekParser.js +50 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekYearParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekYearParser.js +35 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/LocalDayParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/LocalDayParser.js +90 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekParser.js +50 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekYearParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekYearParser.js +61 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/MinuteParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/MinuteParser.js +48 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/MonthParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/MonthParser.js +76 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/QuarterParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/QuarterParser.js +71 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/SecondParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/SecondParser.js +48 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/StandAloneLocalDayParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/StandAloneLocalDayParser.js +90 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/StandAloneMonthParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/StandAloneMonthParser.js +76 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/StandAloneQuarterParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/StandAloneQuarterParser.js +71 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/TimestampMillisecondsParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/TimestampMillisecondsParser.js +35 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/TimestampSecondsParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/TimestampSecondsParser.js +35 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/YearParser.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/YearParser.js +59 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/parsers/index.js +67 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/utils.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/_lib/utils.js +102 -0
- package/dist/node_modules/date-fns/esm/parse/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parse/index.js +128 -0
- package/dist/node_modules/date-fns/esm/parseISO/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/parseISO/index.js +120 -0
- package/dist/node_modules/date-fns/esm/set/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/set/index.js +14 -0
- package/dist/node_modules/date-fns/esm/setHours/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/setHours/index.js +11 -0
- package/dist/node_modules/date-fns/esm/setMilliseconds/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/setMilliseconds/index.js +11 -0
- package/dist/node_modules/date-fns/esm/setMinutes/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/setMinutes/index.js +11 -0
- package/dist/node_modules/date-fns/esm/setMonth/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/setMonth/index.js +14 -0
- package/dist/node_modules/date-fns/esm/setSeconds/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/setSeconds/index.js +11 -0
- package/dist/node_modules/date-fns/esm/setYear/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/setYear/index.js +11 -0
- package/dist/node_modules/date-fns/esm/startOfDay/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/startOfDay/index.js +10 -0
- package/dist/node_modules/date-fns/esm/startOfISOWeek/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/startOfISOWeek/index.js +10 -0
- package/dist/node_modules/date-fns/esm/startOfISOWeekYear/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/startOfISOWeekYear/index.js +13 -0
- package/dist/node_modules/date-fns/esm/startOfQuarter/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/startOfQuarter/index.js +10 -0
- package/dist/node_modules/date-fns/esm/startOfWeek/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/startOfWeek/index.js +16 -0
- package/dist/node_modules/date-fns/esm/startOfWeekYear/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/startOfWeekYear/index.js +16 -0
- package/dist/node_modules/date-fns/esm/startOfYear/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/startOfYear/index.js +10 -0
- package/dist/node_modules/date-fns/esm/sub/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/sub/index.js +14 -0
- package/dist/node_modules/date-fns/esm/subDays/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/subDays/index.js +11 -0
- package/dist/node_modules/date-fns/esm/subMilliseconds/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/subMilliseconds/index.js +11 -0
- package/dist/node_modules/date-fns/esm/subMonths/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/subMonths/index.js +11 -0
- package/dist/node_modules/date-fns/esm/subYears/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/subYears/index.js +11 -0
- package/dist/node_modules/date-fns/esm/toDate/index.cjs +1 -0
- package/dist/node_modules/date-fns/esm/toDate/index.js +10 -0
- package/dist/node_modules/libphonenumber-js/es6/ParseError.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/ParseError.js +113 -0
- package/dist/node_modules/libphonenumber-js/es6/PhoneNumber.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/PhoneNumber.js +150 -0
- package/dist/node_modules/libphonenumber-js/es6/constants.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/constants.js +10 -0
- package/dist/node_modules/libphonenumber-js/es6/format.cjs +2 -0
- package/dist/node_modules/libphonenumber-js/es6/format.js +134 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/RFC3966.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/RFC3966.js +11 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js +7 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js +22 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js +11 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js +18 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +47 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +22 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js +23 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js +35 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +31 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.js +23 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +27 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +17 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.cjs +2 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js +58 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js +12 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/getNumberType.cjs +2 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +56 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js +14 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/isObject.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/isObject.js +7 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js +20 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js +6 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/mergeArrays.cjs +2 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/mergeArrays.js +43 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/parseDigits.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/parseDigits.js +79 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js +19 -0
- package/dist/node_modules/libphonenumber-js/es6/isPossible.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/isPossible.js +38 -0
- package/dist/node_modules/libphonenumber-js/es6/isValid.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/isValid.js +12 -0
- package/dist/node_modules/libphonenumber-js/es6/metadata.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/metadata.js +460 -0
- package/dist/node_modules/libphonenumber-js/es6/normalizeArguments.cjs +2 -0
- package/dist/node_modules/libphonenumber-js/es6/normalizeArguments.js +96 -0
- package/dist/node_modules/libphonenumber-js/es6/parse.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/parse.js +121 -0
- package/dist/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.cjs +2 -0
- package/dist/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +53 -0
- package/dist/node_modules/libphonenumber-js/es6/parsePhoneNumber.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/parsePhoneNumber.js +9 -0
- package/dist/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js +33 -0
- package/dist/node_modules/libphonenumber-js/es6/parsePhoneNumber_.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/parsePhoneNumber_.js +41 -0
- package/dist/node_modules/libphonenumber-js/es6/tools/semver-compare.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/es6/tools/semver-compare.js +18 -0
- package/dist/node_modules/libphonenumber-js/metadata.min.json.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/metadata.min.json.js +4 -0
- package/dist/node_modules/libphonenumber-js/min/exports/parsePhoneNumber.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/min/exports/parsePhoneNumber.js +8 -0
- package/dist/node_modules/libphonenumber-js/min/exports/withMetadataArgument.cjs +1 -0
- package/dist/node_modules/libphonenumber-js/min/exports/withMetadataArgument.js +8 -0
- package/dist/prometheus-framework.cjs.js +1 -36
- package/dist/prometheus-framework.es.js +37 -9163
- package/dist/style.css +1 -1
- package/dist/web-65c35f46.mjs +55 -0
- package/dist/web-Ot-Nyiix.mjs +55 -0
- package/dist/web-adbe95b6.js +1 -0
- package/dist/web-tkW-RBhL.js +1 -0
- package/package.json +2 -2
- package/src/components/Status/Status.vue +3 -1
- package/src/components/index.js +20 -0
- package/src/main.js +60 -2
- package/src/modules/payments/{controller → controllers}/payments.controller.js +15 -11
- package/src/modules/products/products.client.js +35 -0
- package/src/modules/products/products.server.js +2 -2
- /package/src/modules/payments/{controller → controllers}/payments.tinkoff.controller.js +0 -0
@@ -0,0 +1,22 @@
|
|
1
|
+
import u from "./mergeArrays.js";
|
2
|
+
function _(i, r) {
|
3
|
+
return s(i, void 0, r);
|
4
|
+
}
|
5
|
+
function s(i, r, n) {
|
6
|
+
var I = n.type(r), e = I && I.possibleLengths() || n.possibleLengths();
|
7
|
+
if (!e)
|
8
|
+
return "IS_POSSIBLE";
|
9
|
+
if (r === "FIXED_LINE_OR_MOBILE") {
|
10
|
+
if (!n.type("FIXED_LINE"))
|
11
|
+
return s(i, "MOBILE", n);
|
12
|
+
var t = n.type("MOBILE");
|
13
|
+
t && (e = u(e, t.possibleLengths()));
|
14
|
+
} else if (r && !I)
|
15
|
+
return "INVALID_LENGTH";
|
16
|
+
var L = i.length, f = e[0];
|
17
|
+
return f === L ? "IS_POSSIBLE" : f > L ? "TOO_SHORT" : e[e.length - 1] < L ? "TOO_LONG" : e.indexOf(L, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
|
18
|
+
}
|
19
|
+
export {
|
20
|
+
s as checkNumberLengthForType,
|
21
|
+
_ as default
|
22
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const g=require("../../constants.cjs");var A=";ext=",t=function(e){return"([".concat(g.VALID_DIGITS,"]{1,").concat(e,"})")};function S(o){var e="20",x="15",i="9",s="6",u="[ \\t,]*",a="[:\\..]?[ \\t,-]*",r="#?",l="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",F="(?:[xx##~~]|int|int)",E="[- ]+",n="[ \\t]*",v="(?:,{2}|;)",b=A+t(e),c=u+l+a+t(e)+r,m=u+F+a+t(i)+r,L=E+t(s)+"#",f=n+v+a+t(x)+r,p=n+"(?:,)+"+a+t(i)+r;return b+"|"+c+"|"+m+"|"+L+"|"+f+"|"+p}exports.default=S;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { VALID_DIGITS as A } from "../../constants.js";
|
2
|
+
var g = ";ext=", t = function(a) {
|
3
|
+
return "([".concat(A, "]{1,").concat(a, "})");
|
4
|
+
};
|
5
|
+
function D(x) {
|
6
|
+
var a = "20", o = "15", i = "9", F = "6", n = "[ \\t,]*", e = "[:\\..]?[ \\t,-]*", r = "#?", s = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", E = "(?:[xx##~~]|int|int)", l = "[- ]+", u = "[ \\t]*", v = "(?:,{2}|;)", b = g + t(a), m = n + s + e + t(a) + r, p = n + E + e + t(i) + r, L = l + t(F) + "#", f = u + v + e + t(o) + r, c = u + "(?:,)+" + e + t(i) + r;
|
7
|
+
return b + "|" + m + "|" + p + "|" + L + "|" + f + "|" + c;
|
8
|
+
}
|
9
|
+
export {
|
10
|
+
D as default
|
11
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./createExtensionPattern.cjs");var i=new RegExp("(?:"+u.default()+")$","i");function s(t){var a=t.search(i);if(a<0)return{};for(var n=t.slice(0,a),r=t.match(i),e=1;e<r.length;){if(r[e])return{number:n,ext:r[e]};e++}}exports.default=s;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import o from "./createExtensionPattern.js";
|
2
|
+
var n = new RegExp("(?:" + o() + ")$", "i");
|
3
|
+
function c(e) {
|
4
|
+
var a = e.search(n);
|
5
|
+
if (a < 0)
|
6
|
+
return {};
|
7
|
+
for (var i = e.slice(0, a), r = e.match(n), t = 1; t < r.length; ) {
|
8
|
+
if (r[t])
|
9
|
+
return {
|
10
|
+
number: i,
|
11
|
+
ext: r[t]
|
12
|
+
};
|
13
|
+
t++;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
export {
|
17
|
+
c as default
|
18
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("./stripIddPrefix.cjs"),d=require("./extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.cjs"),C=require("../metadata.cjs"),N=require("../constants.cjs");function M(e,t,l,r){if(!e)return{};var o;if(e[0]!=="+"){var u=c.default(e,t,l,r);if(u&&u!==e)o=!0,e="+"+u;else{if(t||l){var s=d.default(e,t,l,r),f=s.countryCallingCode,_=s.number;if(f)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:f,number:_}}return{number:e}}}if(e[1]==="0")return{};r=new C.default(r);for(var i=2;i-1<=N.MAX_LENGTH_COUNTRY_CODE&&i<=e.length;){var n=e.slice(1,i);if(r.hasCallingCode(n))return r.selectNumberingPlan(n),{countryCallingCodeSource:o?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:n,number:e.slice(i)};i++}return{}}exports.default=M;
|
@@ -0,0 +1,47 @@
|
|
1
|
+
import s from "./stripIddPrefix.js";
|
2
|
+
import M from "./extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js";
|
3
|
+
import u from "../metadata.js";
|
4
|
+
import { MAX_LENGTH_COUNTRY_CODE as I } from "../constants.js";
|
5
|
+
function p(r, o, f, i) {
|
6
|
+
if (!r)
|
7
|
+
return {};
|
8
|
+
var n;
|
9
|
+
if (r[0] !== "+") {
|
10
|
+
var l = s(r, o, f, i);
|
11
|
+
if (l && l !== r)
|
12
|
+
n = !0, r = "+" + l;
|
13
|
+
else {
|
14
|
+
if (o || f) {
|
15
|
+
var _ = M(r, o, f, i), C = _.countryCallingCode, N = _.number;
|
16
|
+
if (C)
|
17
|
+
return {
|
18
|
+
countryCallingCodeSource: "FROM_NUMBER_WITHOUT_PLUS_SIGN",
|
19
|
+
countryCallingCode: C,
|
20
|
+
number: N
|
21
|
+
};
|
22
|
+
}
|
23
|
+
return {
|
24
|
+
// No need to set it to `UNSPECIFIED`. It can be just `undefined`.
|
25
|
+
// countryCallingCodeSource: 'UNSPECIFIED',
|
26
|
+
number: r
|
27
|
+
};
|
28
|
+
}
|
29
|
+
}
|
30
|
+
if (r[1] === "0")
|
31
|
+
return {};
|
32
|
+
i = new u(i);
|
33
|
+
for (var e = 2; e - 1 <= I && e <= r.length; ) {
|
34
|
+
var t = r.slice(1, e);
|
35
|
+
if (i.hasCallingCode(t))
|
36
|
+
return i.selectNumberingPlan(t), {
|
37
|
+
countryCallingCodeSource: n ? "FROM_NUMBER_WITH_IDD" : "FROM_NUMBER_WITH_PLUS_SIGN",
|
38
|
+
countryCallingCode: t,
|
39
|
+
number: r.slice(e)
|
40
|
+
};
|
41
|
+
e++;
|
42
|
+
}
|
43
|
+
return {};
|
44
|
+
}
|
45
|
+
export {
|
46
|
+
p as default
|
47
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../metadata.cjs"),c=require("./matchesEntirely.cjs"),a=require("./extractNationalNumber.cjs"),C=require("./checkNumberLength.cjs");function N(n,r,u,e){var t=r?o.getCountryCallingCode(r,e):u;if(n.indexOf(t)===0){e=new o.default(e),e.selectNumberingPlan(r,u);var l=n.slice(t.length),f=a.default(l,e),g=f.nationalNumber,s=a.default(n,e),i=s.nationalNumber;if(!c.default(i,e.nationalNumberPattern())&&c.default(g,e.nationalNumberPattern())||C.default(i,e)==="TOO_LONG")return{countryCallingCode:t,number:l}}return{number:n}}exports.default=N;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import c, { getCountryCallingCode as m } from "../metadata.js";
|
2
|
+
import u from "./matchesEntirely.js";
|
3
|
+
import f from "./extractNationalNumber.js";
|
4
|
+
import a from "./checkNumberLength.js";
|
5
|
+
function x(n, i, e, r) {
|
6
|
+
var o = i ? m(i, r) : e;
|
7
|
+
if (n.indexOf(o) === 0) {
|
8
|
+
r = new c(r), r.selectNumberingPlan(i, e);
|
9
|
+
var t = n.slice(o.length), C = f(t, r), g = C.nationalNumber, N = f(n, r), l = N.nationalNumber;
|
10
|
+
if (!u(l, r.nationalNumberPattern()) && u(g, r.nationalNumberPattern()) || a(l, r) === "TOO_LONG")
|
11
|
+
return {
|
12
|
+
countryCallingCode: o,
|
13
|
+
number: t
|
14
|
+
};
|
15
|
+
}
|
16
|
+
return {
|
17
|
+
number: n
|
18
|
+
};
|
19
|
+
}
|
20
|
+
export {
|
21
|
+
x as default
|
22
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./extractPhoneContext.cjs"),s=require("../ParseError.cjs");function d(r,u){var _=u.extractFormattedPhoneNumber,n=t.default(r);if(!t.isPhoneContextValid(n))throw new s.default("NOT_A_NUMBER");var e;if(n===null)e=_(r)||"";else{e="",n.charAt(0)===t.PLUS_SIGN&&(e+=n);var i=r.indexOf(t.RFC3966_PREFIX_),o;i>=0?o=i+t.RFC3966_PREFIX_.length:o=0;var l=r.indexOf(t.RFC3966_PHONE_CONTEXT_);e+=r.substring(o,l)}var a=e.indexOf(t.RFC3966_ISDN_SUBADDRESS_);if(a>0&&(e=e.substring(0,a)),e!=="")return e}exports.default=d;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import s, { isPhoneContextValid as x, PLUS_SIGN as F, RFC3966_PREFIX_ as a, RFC3966_PHONE_CONTEXT_ as d, RFC3966_ISDN_SUBADDRESS_ as m } from "./extractPhoneContext.js";
|
2
|
+
import v from "../ParseError.js";
|
3
|
+
function S(r, _) {
|
4
|
+
var f = _.extractFormattedPhoneNumber, e = s(r);
|
5
|
+
if (!x(e))
|
6
|
+
throw new v("NOT_A_NUMBER");
|
7
|
+
var t;
|
8
|
+
if (e === null)
|
9
|
+
t = f(r) || "";
|
10
|
+
else {
|
11
|
+
t = "", e.charAt(0) === F && (t += e);
|
12
|
+
var n = r.indexOf(a), o;
|
13
|
+
n >= 0 ? o = n + a.length : o = 0;
|
14
|
+
var h = r.indexOf(d);
|
15
|
+
t += r.substring(o, h);
|
16
|
+
}
|
17
|
+
var i = t.indexOf(m);
|
18
|
+
if (i > 0 && (t = t.substring(0, i)), t !== "")
|
19
|
+
return t;
|
20
|
+
}
|
21
|
+
export {
|
22
|
+
S as default
|
23
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./extractNationalNumberFromPossiblyIncompleteNumber.cjs"),a=require("./matchesEntirely.cjs"),o=require("./checkNumberLength.cjs");function l(e,r){var t=u.default(e,r),i=t.carrierCode,n=t.nationalNumber;if(n!==e){if(!c(e,n,r))return{nationalNumber:e};if(r.possibleLengths()&&!s(n,r))return{nationalNumber:e}}return{nationalNumber:n,carrierCode:i}}function c(e,r,t){return!(a.default(e,t.nationalNumberPattern())&&!a.default(r,t.nationalNumberPattern()))}function s(e,r){switch(o.default(e,r)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}exports.default=l;
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import a from "./extractNationalNumberFromPossiblyIncompleteNumber.js";
|
2
|
+
import i from "./matchesEntirely.js";
|
3
|
+
import u from "./checkNumberLength.js";
|
4
|
+
function m(r, e) {
|
5
|
+
var t = a(r, e), o = t.carrierCode, n = t.nationalNumber;
|
6
|
+
if (n !== r) {
|
7
|
+
if (!l(r, n, e))
|
8
|
+
return {
|
9
|
+
nationalNumber: r
|
10
|
+
};
|
11
|
+
if (e.possibleLengths() && !N(n, e))
|
12
|
+
return {
|
13
|
+
nationalNumber: r
|
14
|
+
};
|
15
|
+
}
|
16
|
+
return {
|
17
|
+
nationalNumber: n,
|
18
|
+
carrierCode: o
|
19
|
+
};
|
20
|
+
}
|
21
|
+
function l(r, e, t) {
|
22
|
+
return !(i(r, t.nationalNumberPattern()) && !i(e, t.nationalNumberPattern()));
|
23
|
+
}
|
24
|
+
function N(r, e) {
|
25
|
+
switch (u(r, e)) {
|
26
|
+
case "TOO_SHORT":
|
27
|
+
case "INVALID_LENGTH":
|
28
|
+
return !1;
|
29
|
+
default:
|
30
|
+
return !0;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
export {
|
34
|
+
m as default
|
35
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function b(l,i){if(l&&i.numberingPlan.nationalPrefixForParsing()){var g=new RegExp("^(?:"+i.numberingPlan.nationalPrefixForParsing()+")"),n=g.exec(l);if(n){var e,r,o=n.length-1,v=o>0&&n[o];if(i.nationalPrefixTransformRule()&&v)e=l.replace(g,i.nationalPrefixTransformRule()),o>1&&(r=n[1]);else{var f=n[0];e=l.slice(f.length),v&&(r=n[1])}var P;if(v){var s=l.indexOf(n[1]),a=l.slice(0,s);a===i.numberingPlan.nationalPrefix()&&(P=i.numberingPlan.nationalPrefix())}else P=n[0];return{nationalNumber:e,nationalPrefix:P,carrierCode:r}}}return{nationalNumber:l}}exports.default=b;
|
@@ -0,0 +1,31 @@
|
|
1
|
+
function F(l, i) {
|
2
|
+
if (l && i.numberingPlan.nationalPrefixForParsing()) {
|
3
|
+
var g = new RegExp("^(?:" + i.numberingPlan.nationalPrefixForParsing() + ")"), n = g.exec(l);
|
4
|
+
if (n) {
|
5
|
+
var r, P, v = n.length - 1, e = v > 0 && n[v];
|
6
|
+
if (i.nationalPrefixTransformRule() && e)
|
7
|
+
r = l.replace(g, i.nationalPrefixTransformRule()), v > 1 && (P = n[1]);
|
8
|
+
else {
|
9
|
+
var o = n[0];
|
10
|
+
r = l.slice(o.length), e && (P = n[1]);
|
11
|
+
}
|
12
|
+
var f;
|
13
|
+
if (e) {
|
14
|
+
var s = l.indexOf(n[1]), a = l.slice(0, s);
|
15
|
+
a === i.numberingPlan.nationalPrefix() && (f = i.numberingPlan.nationalPrefix());
|
16
|
+
} else
|
17
|
+
f = n[0];
|
18
|
+
return {
|
19
|
+
nationalNumber: r,
|
20
|
+
nationalPrefix: f,
|
21
|
+
carrierCode: P
|
22
|
+
};
|
23
|
+
}
|
24
|
+
}
|
25
|
+
return {
|
26
|
+
nationalNumber: l
|
27
|
+
};
|
28
|
+
}
|
29
|
+
export {
|
30
|
+
F as default
|
31
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../constants.cjs");var a="+",i="[\\-\\.\\(\\)]?",A="(["+r.VALID_DIGITS+"]|"+i+")",S="^\\"+a+A+"*["+r.VALID_DIGITS+"]"+A+"*$",u=new RegExp(S,"g"),t=r.VALID_DIGITS,v="["+t+"]+((\\-)*["+t+"])*",C="a-zA-Z",D="["+C+"]+((\\-)*["+t+"])*",N="^("+v+"\\.)*"+D+"\\.?$",l=new RegExp(N,"g"),s="tel:",n=";phone-context=",P=";isub=";function E(_){var I=_.indexOf(n);if(I<0)return null;var e=I+n.length;if(e>=_.length)return"";var R=_.indexOf(";",e);return R>=0?_.substring(e,R):_.substring(e)}function L(_){return _===null?!0:_.length===0?!1:u.test(_)||l.test(_)}exports.PLUS_SIGN=a;exports.RFC3966_ISDN_SUBADDRESS_=P;exports.RFC3966_PHONE_CONTEXT_=n;exports.RFC3966_PREFIX_=s;exports.default=E;exports.isPhoneContextValid=L;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { VALID_DIGITS as n } from "../constants.js";
|
2
|
+
var v = "+", I = "[\\-\\.\\(\\)]?", R = "([" + n + "]|" + I + ")", i = "^\\" + v + R + "*[" + n + "]" + R + "*$", N = new RegExp(i, "g"), r = n, C = "[" + r + "]+((\\-)*[" + r + "])*", L = "a-zA-Z", f = "[" + L + "]+((\\-)*[" + r + "])*", E = "^(" + C + "\\.)*" + f + "\\.?$", O = new RegExp(E, "g"), l = "tel:", a = ";phone-context=", u = ";isub=";
|
3
|
+
function D(_) {
|
4
|
+
var t = _.indexOf(a);
|
5
|
+
if (t < 0)
|
6
|
+
return null;
|
7
|
+
var e = t + a.length;
|
8
|
+
if (e >= _.length)
|
9
|
+
return "";
|
10
|
+
var A = _.indexOf(";", e);
|
11
|
+
return A >= 0 ? _.substring(e, A) : _.substring(e);
|
12
|
+
}
|
13
|
+
function S(_) {
|
14
|
+
return _ === null ? !0 : _.length === 0 ? !1 : N.test(_) || O.test(_);
|
15
|
+
}
|
16
|
+
export {
|
17
|
+
v as PLUS_SIGN,
|
18
|
+
u as RFC3966_ISDN_SUBADDRESS_,
|
19
|
+
a as RFC3966_PHONE_CONTEXT_,
|
20
|
+
l as RFC3966_PREFIX_,
|
21
|
+
D as default,
|
22
|
+
S as isPhoneContextValid
|
23
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./applyInternationalSeparatorStyle.cjs");var n=/(\$\d)/;function u(i,e,t){var a=t.useInternationalFormat,o=t.withNationalPrefix;t.carrierCode,t.metadata;var r=i.replace(new RegExp(e.pattern()),a?e.internationalFormat():o&&e.nationalPrefixFormattingRule()?e.format().replace(n,e.nationalPrefixFormattingRule()):e.format());return a?l.default(r):r}exports.FIRST_GROUP_PATTERN=n;exports.default=u;
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import o from "./applyInternationalSeparatorStyle.js";
|
2
|
+
var l = /(\$\d)/;
|
3
|
+
function u(n, a, t) {
|
4
|
+
var r = t.useInternationalFormat, i = t.withNationalPrefix;
|
5
|
+
t.carrierCode, t.metadata;
|
6
|
+
var e = n.replace(new RegExp(a.pattern()), r ? a.internationalFormat() : (
|
7
|
+
// This library doesn't use `domestic_carrier_code_formatting_rule`,
|
8
|
+
// because that one is only used when formatting phone numbers
|
9
|
+
// for dialing from a mobile phone, and this is not a dialing library.
|
10
|
+
// carrierCode && format.domesticCarrierCodeFormattingRule()
|
11
|
+
// // First, replace the $CC in the formatting rule with the desired carrier code.
|
12
|
+
// // Then, replace the $FG in the formatting rule with the first group
|
13
|
+
// // and the carrier code combined in the appropriate way.
|
14
|
+
// ? format.format().replace(FIRST_GROUP_PATTERN, format.domesticCarrierCodeFormattingRule().replace('$CC', carrierCode))
|
15
|
+
// : (
|
16
|
+
// withNationalPrefix && format.nationalPrefixFormattingRule()
|
17
|
+
// ? format.format().replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule())
|
18
|
+
// : format.format()
|
19
|
+
// )
|
20
|
+
i && a.nationalPrefixFormattingRule() ? a.format().replace(l, a.nationalPrefixFormattingRule()) : a.format()
|
21
|
+
));
|
22
|
+
return r ? o(e) : e;
|
23
|
+
}
|
24
|
+
export {
|
25
|
+
l as FIRST_GROUP_PATTERN,
|
26
|
+
u as default
|
27
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./getCountryByNationalNumber.cjs");var i=!1;function l(r,t){var u=t.nationalNumber,n=t.defaultCountry,a=t.metadata;if(i&&a.isNonGeographicCallingCode(r))return"001";var e=a.getCountryCodesForCallingCode(r);if(e)return e.length===1?e[0]:o.default(u,{countries:e,defaultCountry:n,metadata:a.metadata})}exports.default=l;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import u from "./getCountryByNationalNumber.js";
|
2
|
+
var i = !1;
|
3
|
+
function l(r, a) {
|
4
|
+
var n = a.nationalNumber, o = a.defaultCountry, e = a.metadata;
|
5
|
+
if (i && e.isNonGeographicCallingCode(r))
|
6
|
+
return "001";
|
7
|
+
var t = e.getCountryCodesForCallingCode(r);
|
8
|
+
if (t)
|
9
|
+
return t.length === 1 ? t[0] : u(n, {
|
10
|
+
countries: t,
|
11
|
+
defaultCountry: o,
|
12
|
+
metadata: e.metadata
|
13
|
+
});
|
14
|
+
}
|
15
|
+
export {
|
16
|
+
l as default
|
17
|
+
};
|
@@ -0,0 +1,2 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("../metadata.cjs"),s=require("./getNumberType.cjs");function c(e,r){var t=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=y(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var a=0;return function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y(e,r){if(e){if(typeof e=="string")return o(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return o(e,r)}}function o(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}function g(e,r){var t=r.countries,a=r.defaultCountry,i=r.metadata;i=new d.default(i);for(var u=[],l=c(t),f;!(f=l()).done;){var n=f.value;if(i.country(n),i.leadingDigits()){if(e&&e.search(i.leadingDigits())===0)return n}else if(s.default({phone:e,country:n},void 0,i.metadata))if(a){if(n===a)return n;u.push(n)}else return n}if(u.length>0)return u[0]}exports.default=g;
|
@@ -0,0 +1,58 @@
|
|
1
|
+
import d from "../metadata.js";
|
2
|
+
import s from "./getNumberType.js";
|
3
|
+
function m(t, e) {
|
4
|
+
var r = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
5
|
+
if (r)
|
6
|
+
return (r = r.call(t)).next.bind(r);
|
7
|
+
if (Array.isArray(t) || (r = y(t)) || e && t && typeof t.length == "number") {
|
8
|
+
r && (t = r);
|
9
|
+
var a = 0;
|
10
|
+
return function() {
|
11
|
+
return a >= t.length ? { done: !0 } : { done: !1, value: t[a++] };
|
12
|
+
};
|
13
|
+
}
|
14
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
15
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
16
|
+
}
|
17
|
+
function y(t, e) {
|
18
|
+
if (t) {
|
19
|
+
if (typeof t == "string")
|
20
|
+
return o(t, e);
|
21
|
+
var r = Object.prototype.toString.call(t).slice(8, -1);
|
22
|
+
if (r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set")
|
23
|
+
return Array.from(t);
|
24
|
+
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))
|
25
|
+
return o(t, e);
|
26
|
+
}
|
27
|
+
}
|
28
|
+
function o(t, e) {
|
29
|
+
(e == null || e > t.length) && (e = t.length);
|
30
|
+
for (var r = 0, a = new Array(e); r < e; r++)
|
31
|
+
a[r] = t[r];
|
32
|
+
return a;
|
33
|
+
}
|
34
|
+
function g(t, e) {
|
35
|
+
var r = e.countries, a = e.defaultCountry, i = e.metadata;
|
36
|
+
i = new d(i);
|
37
|
+
for (var u = [], l = m(r), f; !(f = l()).done; ) {
|
38
|
+
var n = f.value;
|
39
|
+
if (i.country(n), i.leadingDigits()) {
|
40
|
+
if (t && t.search(i.leadingDigits()) === 0)
|
41
|
+
return n;
|
42
|
+
} else if (s({
|
43
|
+
phone: t,
|
44
|
+
country: n
|
45
|
+
}, void 0, i.metadata))
|
46
|
+
if (a) {
|
47
|
+
if (n === a)
|
48
|
+
return n;
|
49
|
+
u.push(n);
|
50
|
+
} else
|
51
|
+
return n;
|
52
|
+
}
|
53
|
+
if (u.length > 0)
|
54
|
+
return u[0];
|
55
|
+
}
|
56
|
+
export {
|
57
|
+
g as default
|
58
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("../metadata.cjs");var i=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function d(t,r,u){var e=new a.default(u);if(e.selectNumberingPlan(t,r),e.defaultIDDPrefix())return e.defaultIDDPrefix();if(i.test(e.IDDPrefix()))return e.IDDPrefix()}exports.default=d;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import f from "../metadata.js";
|
2
|
+
var u = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
|
3
|
+
function D(t, r, a) {
|
4
|
+
var e = new f(a);
|
5
|
+
if (e.selectNumberingPlan(t, r), e.defaultIDDPrefix())
|
6
|
+
return e.defaultIDDPrefix();
|
7
|
+
if (u.test(e.IDDPrefix()))
|
8
|
+
return e.IDDPrefix();
|
9
|
+
}
|
10
|
+
export {
|
11
|
+
D as default
|
12
|
+
};
|
@@ -0,0 +1,2 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const E=require("../metadata.cjs"),f=require("./matchesEntirely.cjs");function I(r,t){var e=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(e)return(e=e.call(r)).next.bind(e);if(Array.isArray(r)||(e=c(r))||t&&r&&typeof r.length=="number"){e&&(r=e);var n=0;return function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c(r,t){if(r){if(typeof r=="string")return o(r,t);var e=Object.prototype.toString.call(r).slice(8,-1);if(e==="Object"&&r.constructor&&(e=r.constructor.name),e==="Map"||e==="Set")return Array.from(r);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return o(r,t)}}function o(r,t){(t==null||t>r.length)&&(t=r.length);for(var e=0,n=new Array(t);e<t;e++)n[e]=r[e];return n}var s=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function y(r,t,e){if(t=t||{},!(!r.country&&!r.countryCallingCode)){e=new E.default(e),e.selectNumberingPlan(r.country,r.countryCallingCode);var n=t.v2?r.nationalNumber:r.phone;if(f.default(n,e.nationalNumberPattern())){if(u(n,"FIXED_LINE",e))return e.type("MOBILE")&&e.type("MOBILE").pattern()===""||!e.type("MOBILE")||u(n,"MOBILE",e)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var a=I(s),i;!(i=a()).done;){var l=i.value;if(u(n,l,e))return l}}}}function u(r,t,e){return t=e.type(t),!t||!t.pattern()||t.possibleLengths()&&t.possibleLengths().indexOf(r.length)<0?!1:f.default(r,t.pattern())}exports.default=y;exports.isNumberTypeEqualTo=u;
|
@@ -0,0 +1,56 @@
|
|
1
|
+
import a from "../metadata.js";
|
2
|
+
import l from "./matchesEntirely.js";
|
3
|
+
function I(r, n) {
|
4
|
+
var e = typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
|
5
|
+
if (e)
|
6
|
+
return (e = e.call(r)).next.bind(e);
|
7
|
+
if (Array.isArray(r) || (e = c(r)) || n && r && typeof r.length == "number") {
|
8
|
+
e && (r = e);
|
9
|
+
var t = 0;
|
10
|
+
return function() {
|
11
|
+
return t >= r.length ? { done: !0 } : { done: !1, value: r[t++] };
|
12
|
+
};
|
13
|
+
}
|
14
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
15
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
16
|
+
}
|
17
|
+
function c(r, n) {
|
18
|
+
if (r) {
|
19
|
+
if (typeof r == "string")
|
20
|
+
return f(r, n);
|
21
|
+
var e = Object.prototype.toString.call(r).slice(8, -1);
|
22
|
+
if (e === "Object" && r.constructor && (e = r.constructor.name), e === "Map" || e === "Set")
|
23
|
+
return Array.from(r);
|
24
|
+
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))
|
25
|
+
return f(r, n);
|
26
|
+
}
|
27
|
+
}
|
28
|
+
function f(r, n) {
|
29
|
+
(n == null || n > r.length) && (n = r.length);
|
30
|
+
for (var e = 0, t = new Array(n); e < n; e++)
|
31
|
+
t[e] = r[e];
|
32
|
+
return t;
|
33
|
+
}
|
34
|
+
var s = ["MOBILE", "PREMIUM_RATE", "TOLL_FREE", "SHARED_COST", "VOIP", "PERSONAL_NUMBER", "PAGER", "UAN", "VOICEMAIL"];
|
35
|
+
function L(r, n, e) {
|
36
|
+
if (n = n || {}, !(!r.country && !r.countryCallingCode)) {
|
37
|
+
e = new a(e), e.selectNumberingPlan(r.country, r.countryCallingCode);
|
38
|
+
var t = n.v2 ? r.nationalNumber : r.phone;
|
39
|
+
if (l(t, e.nationalNumberPattern())) {
|
40
|
+
if (u(t, "FIXED_LINE", e))
|
41
|
+
return e.type("MOBILE") && e.type("MOBILE").pattern() === "" || !e.type("MOBILE") || u(t, "MOBILE", e) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
|
42
|
+
for (var E = I(s), i; !(i = E()).done; ) {
|
43
|
+
var o = i.value;
|
44
|
+
if (u(t, o, e))
|
45
|
+
return o;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
function u(r, n, e) {
|
51
|
+
return n = e.type(n), !n || !n.pattern() || n.possibleLengths() && n.possibleLengths().indexOf(r.length) < 0 ? !1 : l(r, n.pattern());
|
52
|
+
}
|
53
|
+
export {
|
54
|
+
L as default,
|
55
|
+
u as isNumberTypeEqualTo
|
56
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../metadata.cjs");function a(r,n,e){var t=new o.default(e),u=t.getCountryCodesForCallingCode(r);return u?u.filter(function(l){return i(n,l,e)}):[]}function i(r,n,e){var t=new o.default(e);return t.selectNumberingPlan(n),t.numberingPlan.possibleLengths().indexOf(r.length)>=0}exports.default=a;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import u from "../metadata.js";
|
2
|
+
function s(r, t, e) {
|
3
|
+
var n = new u(e), o = n.getCountryCodesForCallingCode(r);
|
4
|
+
return o ? o.filter(function(a) {
|
5
|
+
return i(t, a, e);
|
6
|
+
}) : [];
|
7
|
+
}
|
8
|
+
function i(r, t, e) {
|
9
|
+
var n = new u(e);
|
10
|
+
return n.selectNumberingPlan(t), n.numberingPlan.possibleLengths().indexOf(r.length) >= 0;
|
11
|
+
}
|
12
|
+
export {
|
13
|
+
s as default
|
14
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var t={}.constructor;function r(e){return e!=null&&e.constructor===t}exports.default=r;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const _=require("../constants.cjs"),t=require("./extension/createExtensionPattern.cjs");var E="["+_.VALID_DIGITS+"]{"+_.MIN_LENGTH_FOR_NSN+"}",N="["+_.PLUS_CHARS+"]{0,1}(?:["+_.VALID_PUNCTUATION+"]*["+_.VALID_DIGITS+"]){3,}["+_.VALID_PUNCTUATION+_.VALID_DIGITS+"]*",r=new RegExp("^["+_.PLUS_CHARS+"]{0,1}(?:["+_.VALID_PUNCTUATION+"]*["+_.VALID_DIGITS+"]){1,2}$","i"),I=N+"(?:"+t.default()+")?",T=new RegExp("^"+E+"$|^"+I+"$","i");function A(e){return e.length>=_.MIN_LENGTH_FOR_NSN&&T.test(e)}function n(e){return r.test(e)}exports.VALID_PHONE_NUMBER=N;exports.VALID_PHONE_NUMBER_WITH_EXTENSION=I;exports.default=A;exports.isViablePhoneNumberStart=n;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { MIN_LENGTH_FOR_NSN as e, VALID_DIGITS as _, PLUS_CHARS as t, VALID_PUNCTUATION as E } from "../constants.js";
|
2
|
+
import r from "./extension/createExtensionPattern.js";
|
3
|
+
var n = "[" + _ + "]{" + e + "}", I = "[" + t + "]{0,1}(?:[" + E + "]*[" + _ + "]){3,}[" + E + _ + "]*", P = new RegExp("^[" + t + "]{0,1}(?:[" + E + "]*[" + _ + "]){1,2}$", "i"), R = I + // Phone number extensions
|
4
|
+
"(?:" + r() + ")?", T = new RegExp(
|
5
|
+
// Either a short two-digit-only phone number
|
6
|
+
"^" + n + "$|^" + R + "$",
|
7
|
+
"i"
|
8
|
+
);
|
9
|
+
function A(N) {
|
10
|
+
return N.length >= e && T.test(N);
|
11
|
+
}
|
12
|
+
function o(N) {
|
13
|
+
return P.test(N);
|
14
|
+
}
|
15
|
+
export {
|
16
|
+
I as VALID_PHONE_NUMBER,
|
17
|
+
R as VALID_PHONE_NUMBER_WITH_EXTENSION,
|
18
|
+
A as default,
|
19
|
+
o as isViablePhoneNumberStart
|
20
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function u(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}exports.default=u;
|
@@ -0,0 +1,2 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function l(r,t){var e=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(e)return(e=e.call(r)).next.bind(e);if(Array.isArray(r)||(e=c(r))||t&&r&&typeof r.length=="number"){e&&(r=e);var n=0;return function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c(r,t){if(r){if(typeof r=="string")return i(r,t);var e=Object.prototype.toString.call(r).slice(8,-1);if(e==="Object"&&r.constructor&&(e=r.constructor.name),e==="Map"||e==="Set")return Array.from(r);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return i(r,t)}}function i(r,t){(t==null||t>r.length)&&(t=r.length);for(var e=0,n=new Array(t);e<t;e++)n[e]=r[e];return n}function s(r,t){for(var e=r.slice(),n=l(t),a;!(a=n()).done;){var u=a.value;r.indexOf(u)<0&&e.push(u)}return e.sort(function(o,f){return o-f})}exports.default=s;
|
@@ -0,0 +1,43 @@
|
|
1
|
+
function l(r, e) {
|
2
|
+
var t = typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
|
3
|
+
if (t)
|
4
|
+
return (t = t.call(r)).next.bind(t);
|
5
|
+
if (Array.isArray(r) || (t = c(r)) || e && r && typeof r.length == "number") {
|
6
|
+
t && (r = t);
|
7
|
+
var n = 0;
|
8
|
+
return function() {
|
9
|
+
return n >= r.length ? { done: !0 } : { done: !1, value: r[n++] };
|
10
|
+
};
|
11
|
+
}
|
12
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
13
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
14
|
+
}
|
15
|
+
function c(r, e) {
|
16
|
+
if (r) {
|
17
|
+
if (typeof r == "string")
|
18
|
+
return u(r, e);
|
19
|
+
var t = Object.prototype.toString.call(r).slice(8, -1);
|
20
|
+
if (t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set")
|
21
|
+
return Array.from(r);
|
22
|
+
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
|
23
|
+
return u(r, e);
|
24
|
+
}
|
25
|
+
}
|
26
|
+
function u(r, e) {
|
27
|
+
(e == null || e > r.length) && (e = r.length);
|
28
|
+
for (var t = 0, n = new Array(e); t < e; t++)
|
29
|
+
n[t] = r[t];
|
30
|
+
return n;
|
31
|
+
}
|
32
|
+
function y(r, e) {
|
33
|
+
for (var t = r.slice(), n = l(e), a; !(a = n()).done; ) {
|
34
|
+
var i = a.value;
|
35
|
+
r.indexOf(i) < 0 && t.push(i);
|
36
|
+
}
|
37
|
+
return t.sort(function(o, f) {
|
38
|
+
return o - f;
|
39
|
+
});
|
40
|
+
}
|
41
|
+
export {
|
42
|
+
y as default
|
43
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var u={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function e(F){return u[F]}exports.DIGITS=u;exports.parseDigit=e;
|