inferred-types 0.45.0 → 0.45.2
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/dist/constants/Characters.d.ts +2 -0
- package/dist/constants/Characters.d.ts.map +1 -0
- package/dist/constants/Characters.js +5 -0
- package/dist/constants/NetworkConstants.d.ts.map +1 -1
- package/dist/constants/Phone.d.ts +8 -0
- package/dist/constants/Phone.d.ts.map +1 -0
- package/dist/constants/Phone.js +262 -0
- package/dist/constants/ProxmoxConstants.d.ts +2 -0
- package/dist/constants/ProxmoxConstants.d.ts.map +1 -0
- package/dist/constants/ProxmoxConstants.js +3 -0
- package/dist/constants/index.d.ts +3 -0
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/index.js +3 -0
- package/dist/constants/tsconfig.tsbuildinfo +1 -1
- package/dist/inferred-types/index.cjs +1091 -733
- package/dist/inferred-types/tsconfig.tsbuildinfo +1 -1
- package/dist/runtime/api/defineApi.d.ts +56 -0
- package/dist/runtime/api/defineApi.d.ts.map +1 -0
- package/dist/runtime/api/defineApi.js +97 -0
- package/dist/runtime/api/handleDoneFn.d.ts.map +1 -0
- package/dist/runtime/api/index.d.ts +3 -0
- package/dist/runtime/api/index.d.ts.map +1 -0
- package/dist/runtime/api/index.js +2 -0
- package/dist/runtime/boolean-logic/ifArrayPartial.d.ts +1 -1
- package/dist/runtime/boolean-logic/ifArrayPartial.d.ts.map +1 -1
- package/dist/runtime/boolean-logic/ifArrayPartial.js +1 -1
- package/dist/runtime/boolean-logic/ifLength.d.ts.map +1 -1
- package/dist/runtime/boolean-logic/ifScalar.d.ts.map +1 -1
- package/dist/runtime/boolean-logic/ifScalar.js +1 -1
- package/dist/runtime/boolean-logic/index.d.ts +0 -1
- package/dist/runtime/boolean-logic/index.d.ts.map +1 -1
- package/dist/runtime/boolean-logic/index.js +0 -1
- package/dist/runtime/dictionary/defineOptions.d.ts +26 -0
- package/dist/runtime/dictionary/defineOptions.d.ts.map +1 -0
- package/dist/runtime/dictionary/defineOptions.js +30 -0
- package/dist/runtime/dictionary/keysOf.d.ts +1 -1
- package/dist/runtime/dictionary/keysOf.d.ts.map +1 -1
- package/dist/runtime/errors/KindError.d.ts +2 -2
- package/dist/runtime/errors/KindError.d.ts.map +1 -1
- package/dist/runtime/functions/index.d.ts +1 -0
- package/dist/runtime/functions/index.d.ts.map +1 -1
- package/dist/runtime/functions/index.js +1 -0
- package/dist/runtime/functions/wrapFn.d.ts +2 -0
- package/dist/runtime/functions/wrapFn.d.ts.map +1 -0
- package/dist/runtime/functions/wrapFn.js +24 -0
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +1 -10
- package/dist/runtime/lists/find.d.ts +1 -1
- package/dist/runtime/lists/find.d.ts.map +1 -1
- package/dist/runtime/lists/intersection.d.ts.map +1 -1
- package/dist/runtime/lists/intersection.js +2 -1
- package/dist/runtime/literals/asPhoneNumber.d.ts +10 -0
- package/dist/runtime/literals/asPhoneNumber.d.ts.map +1 -0
- package/dist/runtime/literals/asPhoneNumber.js +62 -0
- package/dist/runtime/literals/index.d.ts +4 -0
- package/dist/runtime/literals/index.d.ts.map +1 -1
- package/dist/runtime/literals/index.js +4 -0
- package/dist/runtime/literals/retainChars.d.ts +16 -0
- package/dist/runtime/literals/retainChars.d.ts.map +1 -0
- package/dist/runtime/literals/retainChars.js +17 -0
- package/dist/runtime/literals/retainWhile.d.ts +11 -0
- package/dist/runtime/literals/retainWhile.d.ts.map +1 -0
- package/dist/runtime/literals/retainWhile.js +12 -0
- package/dist/runtime/literals/stripChars.d.ts +10 -0
- package/dist/runtime/literals/stripChars.d.ts.map +1 -0
- package/dist/runtime/literals/stripChars.js +11 -0
- package/dist/runtime/literals/stripLeading.d.ts +3 -3
- package/dist/runtime/literals/stripLeading.d.ts.map +1 -1
- package/dist/runtime/literals/stripLeading.js +5 -5
- package/dist/runtime/literals/unset.d.ts +8 -0
- package/dist/runtime/literals/unset.d.ts.map +1 -0
- package/dist/runtime/literals/unset.js +14 -0
- package/dist/runtime/meta/youtube-meta.d.ts +8 -1
- package/dist/runtime/meta/youtube-meta.d.ts.map +1 -1
- package/dist/runtime/meta/youtube-meta.js +50 -2
- package/dist/runtime/runtime-types/dict.d.ts +2 -2
- package/dist/runtime/runtime-types/dict.d.ts.map +1 -1
- package/dist/runtime/runtime-types/ip6Prefix.d.ts +1 -1
- package/dist/runtime/runtime-types/parse.d.ts +1 -1
- package/dist/runtime/runtime-types/shape-helpers/getTokenData.d.ts +1 -1
- package/dist/runtime/runtime-types/shape-helpers/getTokenName.d.ts +1 -1
- package/dist/runtime/runtime-types/shape.d.ts +1 -1
- package/dist/runtime/runtime-types/shape.js +1 -1
- package/dist/runtime/tsconfig.tsbuildinfo +1 -1
- package/dist/runtime/type-guards/api-tg.d.ts +33 -0
- package/dist/runtime/type-guards/api-tg.d.ts.map +1 -0
- package/dist/runtime/type-guards/api-tg.js +38 -0
- package/dist/runtime/type-guards/hasWhitespace.d.ts +7 -0
- package/dist/runtime/type-guards/hasWhitespace.d.ts.map +1 -0
- package/dist/runtime/type-guards/hasWhitespace.js +11 -0
- package/dist/runtime/type-guards/index.d.ts +7 -0
- package/dist/runtime/type-guards/index.d.ts.map +1 -1
- package/dist/runtime/type-guards/index.js +7 -0
- package/dist/runtime/type-guards/isConstant.d.ts +6 -0
- package/dist/runtime/type-guards/isConstant.d.ts.map +1 -1
- package/dist/runtime/type-guards/isConstant.js +12 -2
- package/dist/runtime/type-guards/isEmail.d.ts +7 -0
- package/dist/runtime/type-guards/isEmail.d.ts.map +1 -0
- package/dist/runtime/type-guards/isEmail.js +11 -0
- package/dist/runtime/type-guards/isPhoneNumber.d.ts +14 -0
- package/dist/runtime/type-guards/isPhoneNumber.d.ts.map +1 -0
- package/dist/runtime/type-guards/isPhoneNumber.js +26 -0
- package/dist/runtime/type-guards/isSpecificConstant.js +2 -3
- package/dist/runtime/type-guards/isTrimmable.d.ts +7 -0
- package/dist/runtime/type-guards/isTrimmable.d.ts.map +1 -0
- package/dist/runtime/type-guards/isTrimmable.js +9 -0
- package/dist/runtime/type-guards/isUnset.d.ts +18 -0
- package/dist/runtime/type-guards/isUnset.d.ts.map +1 -0
- package/dist/runtime/type-guards/isUnset.js +23 -0
- package/dist/runtime/type-guards/isUrl.d.ts +1 -1
- package/dist/runtime/type-guards/network-tg.d.ts +9 -3
- package/dist/runtime/type-guards/network-tg.d.ts.map +1 -1
- package/dist/runtime/type-guards/network-tg.js +10 -1
- package/dist/runtime/type-guards/repos.d.ts +2 -2
- package/dist/runtime/type-guards/youtube.d.ts +4 -2
- package/dist/runtime/type-guards/youtube.d.ts.map +1 -1
- package/dist/runtime/type-guards/youtube.js +13 -3
- package/dist/types/api/api.d.ts +96 -37
- package/dist/types/api/api.d.ts.map +1 -1
- package/dist/types/base-types/fns/EscapeFunction.d.ts +22 -0
- package/dist/types/base-types/fns/EscapeFunction.d.ts.map +1 -0
- package/dist/types/base-types/fns/OptionalParamFn.d.ts +30 -0
- package/dist/types/base-types/fns/OptionalParamFn.d.ts.map +1 -0
- package/dist/types/base-types/fns/index.d.ts +2 -0
- package/dist/types/base-types/fns/index.d.ts.map +1 -1
- package/dist/types/base-types/fns/index.js +2 -0
- package/dist/types/boolean-logic/branching/If.d.ts +2 -3
- package/dist/types/boolean-logic/branching/If.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/IfUnset.d.ts +12 -0
- package/dist/types/boolean-logic/branching/IfUnset.d.ts.map +1 -0
- package/dist/types/boolean-logic/branching/OnPass.d.ts +4 -3
- package/dist/types/boolean-logic/branching/OnPass.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/WhenNever.d.ts +11 -0
- package/dist/types/boolean-logic/branching/WhenNever.d.ts.map +1 -0
- package/dist/types/boolean-logic/branching/WhenNever.js +1 -0
- package/dist/types/boolean-logic/branching/index.d.ts +2 -0
- package/dist/types/boolean-logic/branching/index.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/index.js +2 -0
- package/dist/types/boolean-logic/combinators/Compare.d.ts +3 -3
- package/dist/types/boolean-logic/combinators/Compare.d.ts.map +1 -1
- package/dist/types/boolean-logic/combinators/Some.d.ts +8 -0
- package/dist/types/boolean-logic/combinators/Some.d.ts.map +1 -0
- package/dist/types/boolean-logic/combinators/Some.js +1 -0
- package/dist/types/boolean-logic/combinators/index.d.ts +1 -0
- package/dist/types/boolean-logic/combinators/index.d.ts.map +1 -1
- package/dist/types/boolean-logic/combinators/index.js +1 -0
- package/dist/types/boolean-logic/narrowing/AsDoneFn.d.ts +2 -2
- package/dist/types/boolean-logic/narrowing/AsDoneFn.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/ApiOperators.d.ts +11 -0
- package/dist/types/boolean-logic/operators/ApiOperators.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/ApiOperators.js +1 -0
- package/dist/types/boolean-logic/operators/HasSameValues.d.ts +4 -3
- package/dist/types/boolean-logic/operators/HasSameValues.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsGreaterThan.d.ts +2 -2
- package/dist/types/boolean-logic/operators/IsGreaterThan.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsUnset.d.ts +9 -0
- package/dist/types/boolean-logic/operators/IsUnset.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/IsUnset.js +1 -0
- package/dist/types/boolean-logic/operators/PhoneOperators.d.ts +33 -0
- package/dist/types/boolean-logic/operators/PhoneOperators.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/PhoneOperators.js +1 -0
- package/dist/types/boolean-logic/operators/index.d.ts +3 -0
- package/dist/types/boolean-logic/operators/index.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/index.js +3 -0
- package/dist/types/dictionary/Keys.d.ts +58 -4
- package/dist/types/dictionary/Keys.d.ts.map +1 -1
- package/dist/types/dictionary/KvFn.d.ts +2 -2
- package/dist/types/dictionary/KvFn.d.ts.map +1 -1
- package/dist/types/dictionary/MakeKeysOptional.d.ts +12 -3
- package/dist/types/dictionary/MakeKeysOptional.d.ts.map +1 -1
- package/dist/types/dictionary/MakeKeysRequired.d.ts +14 -0
- package/dist/types/dictionary/MakeKeysRequired.d.ts.map +1 -0
- package/dist/types/dictionary/MakeKeysRequired.js +1 -0
- package/dist/types/dictionary/OptionalKeys.d.ts +19 -4
- package/dist/types/dictionary/OptionalKeys.d.ts.map +1 -1
- package/dist/types/dictionary/OptionalKeys.js +1 -0
- package/dist/types/dictionary/RequiredKeys.d.ts +14 -6
- package/dist/types/dictionary/RequiredKeys.d.ts.map +1 -1
- package/dist/types/dictionary/Values.d.ts +2 -2
- package/dist/types/dictionary/Values.d.ts.map +1 -1
- package/dist/types/dictionary/index.d.ts +1 -2
- package/dist/types/dictionary/index.d.ts.map +1 -1
- package/dist/types/dictionary/index.js +1 -2
- package/dist/types/errors/KindError.d.ts +1 -1
- package/dist/types/errors/KindError.d.ts.map +1 -1
- package/dist/types/functions/FnFrom.d.ts +5 -0
- package/dist/types/functions/FnFrom.d.ts.map +1 -1
- package/dist/types/functions/{Fn.d.ts → FnWithDescription.d.ts} +2 -2
- package/dist/types/functions/FnWithDescription.d.ts.map +1 -0
- package/dist/types/functions/FnWithDescription.js +1 -0
- package/dist/types/functions/WrapperFn.d.ts +23 -0
- package/dist/types/functions/WrapperFn.d.ts.map +1 -0
- package/dist/types/functions/WrapperFn.js +1 -0
- package/dist/types/functions/index.d.ts +2 -1
- package/dist/types/functions/index.d.ts.map +1 -1
- package/dist/types/functions/index.js +2 -1
- package/dist/types/lists/ConvertSet.d.ts +2 -2
- package/dist/types/lists/ConvertSet.d.ts.map +1 -1
- package/dist/types/lists/Find.d.ts +7 -18
- package/dist/types/lists/Find.d.ts.map +1 -1
- package/dist/types/literals/DoneFnTuple.d.ts +3 -3
- package/dist/types/literals/DoneFnTuple.d.ts.map +1 -1
- package/dist/types/literals/Unset.d.ts +13 -0
- package/dist/types/literals/Unset.d.ts.map +1 -0
- package/dist/types/literals/Unset.js +1 -0
- package/dist/types/literals/index.d.ts +1 -0
- package/dist/types/literals/index.d.ts.map +1 -1
- package/dist/types/literals/index.js +1 -0
- package/dist/types/numeric-literals/NumberLike.d.ts +1 -1
- package/dist/types/numeric-literals/NumberLike.d.ts.map +1 -1
- package/dist/types/string-literals/Proxmox.d.ts +7 -0
- package/dist/types/string-literals/Proxmox.d.ts.map +1 -0
- package/dist/types/string-literals/Proxmox.js +1 -0
- package/dist/types/string-literals/StripLeading.d.ts +2 -2
- package/dist/types/string-literals/StripLeading.d.ts.map +1 -1
- package/dist/types/string-literals/StripUntil.d.ts +12 -0
- package/dist/types/string-literals/StripUntil.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/Whitespace.d.ts +3 -1
- package/dist/types/string-literals/character-sets/Whitespace.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/index.d.ts +1 -0
- package/dist/types/string-literals/character-sets/index.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/index.js +1 -0
- package/dist/types/string-literals/character-sets/phone.d.ts +192 -0
- package/dist/types/string-literals/character-sets/phone.d.ts.map +1 -0
- package/dist/types/string-literals/character-sets/phone.js +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dist/types/type-conversion/ReduceValues.d.ts +19 -0
- package/dist/types/type-conversion/ReduceValues.d.ts.map +1 -0
- package/dist/types/type-conversion/ReduceValues.js +1 -0
- package/dist/types/type-conversion/ReturnValues.d.ts +10 -6
- package/dist/types/type-conversion/ReturnValues.d.ts.map +1 -1
- package/dist/types/type-conversion/Trim.d.ts +3 -1
- package/dist/types/type-conversion/Trim.d.ts.map +1 -1
- package/dist/types/type-conversion/UnionFilter.d.ts +2 -2
- package/dist/types/type-conversion/UnionFilter.d.ts.map +1 -1
- package/dist/types/type-conversion/form-fields.d.ts +5 -1
- package/dist/types/type-conversion/form-fields.d.ts.map +1 -1
- package/dist/types/type-conversion/index.d.ts +1 -0
- package/dist/types/type-conversion/index.d.ts.map +1 -1
- package/dist/types/type-conversion/index.js +1 -0
- package/package.json +17 -11
- package/dist/runtime/boolean-logic/handleDoneFn.d.ts.map +0 -1
- package/dist/types/dictionary/PrivateKeys.d.ts +0 -17
- package/dist/types/dictionary/PrivateKeys.d.ts.map +0 -1
- package/dist/types/dictionary/PublicKeys.d.ts +0 -10
- package/dist/types/dictionary/PublicKeys.d.ts.map +0 -1
- package/dist/types/functions/Fn.d.ts.map +0 -1
- /package/dist/runtime/{boolean-logic → api}/handleDoneFn.d.ts +0 -0
- /package/dist/runtime/{boolean-logic → api}/handleDoneFn.js +0 -0
- /package/dist/types/{dictionary/PrivateKeys.js → base-types/fns/EscapeFunction.js} +0 -0
- /package/dist/types/{dictionary/PublicKeys.js → base-types/fns/OptionalParamFn.js} +0 -0
- /package/dist/types/{functions/Fn.js → boolean-logic/branching/IfUnset.js} +0 -0
|
@@ -55,8 +55,11 @@ __export(inferred_types_exports, {
|
|
|
55
55
|
NUMERIC_DIGIT: () => NUMERIC_DIGIT,
|
|
56
56
|
Never: () => Never,
|
|
57
57
|
OPTION: () => OPTION,
|
|
58
|
+
PHONE_COUNTRY_CODES: () => PHONE_COUNTRY_CODES,
|
|
59
|
+
PHONE_FORMAT: () => PHONE_FORMAT,
|
|
58
60
|
PLURAL_EXCEPTIONS: () => PLURAL_EXCEPTIONS,
|
|
59
61
|
PLURAL_EXCEPTIONS_OLD: () => PLURAL_EXCEPTIONS_OLD,
|
|
62
|
+
PROXMOX_CT_STATE: () => PROXMOX_CT_STATE,
|
|
60
63
|
REPO_PAGE_TYPES: () => REPO_PAGE_TYPES,
|
|
61
64
|
REPO_SOURCES: () => REPO_SOURCES,
|
|
62
65
|
REPO_SOURCE_LOOKUP: () => REPO_SOURCE_LOOKUP,
|
|
@@ -89,6 +92,7 @@ __export(inferred_types_exports, {
|
|
|
89
92
|
US_STATE_LOOKUP: () => US_STATE_LOOKUP,
|
|
90
93
|
US_STATE_LOOKUP_PROVINCES: () => US_STATE_LOOKUP_PROVINCES,
|
|
91
94
|
US_STATE_LOOKUP_STRICT: () => US_STATE_LOOKUP_STRICT,
|
|
95
|
+
WHITESPACE_CHARS: () => WHITESPACE_CHARS,
|
|
92
96
|
WIDE_CONTAINER_TYPE_KINDS: () => WIDE_CONTAINER_TYPE_KINDS,
|
|
93
97
|
WIDE_TYPE_KINDS: () => WIDE_TYPE_KINDS,
|
|
94
98
|
WideAssignment: () => WideAssignment,
|
|
@@ -96,8 +100,15 @@ __export(inferred_types_exports, {
|
|
|
96
100
|
addFnToProps: () => addFnToProps,
|
|
97
101
|
addPropsToFn: () => addPropsToFn,
|
|
98
102
|
and: () => and,
|
|
103
|
+
asApi: () => asApi,
|
|
104
|
+
asApiCallback: () => asApiCallback,
|
|
99
105
|
asArray: () => asArray,
|
|
106
|
+
asCallbackProp: () => asCallbackProp,
|
|
100
107
|
asChars: () => asChars,
|
|
108
|
+
asEscapeFunction: () => asEscapeFunction,
|
|
109
|
+
asHandledApiCallback: () => asHandledApiCallback,
|
|
110
|
+
asOptionalParamFunction: () => asOptionalParamFunction,
|
|
111
|
+
asPhoneNumber: () => asPhoneNumber,
|
|
101
112
|
asRecord: () => asRecord,
|
|
102
113
|
asString: () => asString,
|
|
103
114
|
asVueRef: () => asVueRef,
|
|
@@ -121,45 +132,33 @@ __export(inferred_types_exports, {
|
|
|
121
132
|
fnMeta: () => fnMeta,
|
|
122
133
|
get: () => get,
|
|
123
134
|
getEach: () => getEach,
|
|
135
|
+
getEscapeFunction: () => getEscapeFunction,
|
|
136
|
+
getPhoneCountryCode: () => getPhoneCountryCode,
|
|
124
137
|
getUrlPath: () => getUrlPath,
|
|
125
138
|
getUrlPort: () => getUrlPort,
|
|
126
139
|
getUrlProtocol: () => getUrlProtocol,
|
|
127
140
|
getUrlQueryParams: () => getUrlQueryParams,
|
|
128
141
|
getUrlSource: () => getUrlSource,
|
|
142
|
+
getYouTubePageType: () => getYouTubePageType,
|
|
129
143
|
handleDoneFn: () => handleDoneFn,
|
|
130
144
|
hasDefaultValue: () => hasDefaultValue,
|
|
131
145
|
hasIndexOf: () => hasIndexOf,
|
|
132
146
|
hasKeys: () => hasKeys,
|
|
133
147
|
hasUrlPort: () => hasUrlPort,
|
|
148
|
+
hasUrlQueryParameter: () => hasUrlQueryParameter,
|
|
149
|
+
hasWhiteSpace: () => hasWhiteSpace,
|
|
134
150
|
idLiteral: () => idLiteral,
|
|
135
151
|
idTypeGuard: () => idTypeGuard,
|
|
136
152
|
identity: () => identity,
|
|
137
|
-
ifArray: () => ifArray,
|
|
138
|
-
ifArrayPartial: () => ifArrayPartial,
|
|
139
|
-
ifBoolean: () => ifBoolean,
|
|
140
|
-
ifChar: () => ifChar,
|
|
141
|
-
ifContainer: () => ifContainer,
|
|
142
|
-
ifDefined: () => ifDefined,
|
|
143
|
-
ifFalse: () => ifFalse,
|
|
144
|
-
ifFunction: () => ifFunction,
|
|
145
|
-
ifHasKey: () => ifHasKey,
|
|
146
|
-
ifLength: () => ifLength,
|
|
147
153
|
ifLowercaseChar: () => ifLowercaseChar,
|
|
148
|
-
ifNotNull: () => ifNotNull,
|
|
149
|
-
ifNull: () => ifNull,
|
|
150
|
-
ifNumber: () => ifNumber,
|
|
151
|
-
ifObject: () => ifObject,
|
|
152
|
-
ifSameType: () => ifSameType,
|
|
153
|
-
ifScalar: () => ifScalar,
|
|
154
|
-
ifString: () => ifString,
|
|
155
|
-
ifTrue: () => ifTrue,
|
|
156
|
-
ifUndefined: () => ifUndefined,
|
|
157
154
|
ifUppercaseChar: () => ifUppercaseChar,
|
|
158
155
|
indexOf: () => indexOf,
|
|
159
156
|
intersect: () => intersect,
|
|
160
157
|
intersection: () => intersection,
|
|
161
158
|
ip6GroupExpansion: () => ip6GroupExpansion,
|
|
162
159
|
ip6Prefix: () => ip6Prefix,
|
|
160
|
+
isApi: () => isApi,
|
|
161
|
+
isApiSurface: () => isApiSurface,
|
|
163
162
|
isArray: () => isArray,
|
|
164
163
|
isBitbucketUrl: () => isBitbucketUrl,
|
|
165
164
|
isBoolean: () => isBoolean,
|
|
@@ -171,8 +170,10 @@ __export(inferred_types_exports, {
|
|
|
171
170
|
isDefined: () => isDefined,
|
|
172
171
|
isDomainName: () => isDomainName,
|
|
173
172
|
isDoneFn: () => isDoneFn,
|
|
173
|
+
isEmail: () => isEmail,
|
|
174
174
|
isEqual: () => isEqual,
|
|
175
175
|
isErrorCondition: () => isErrorCondition,
|
|
176
|
+
isEscapeFunction: () => isEscapeFunction,
|
|
176
177
|
isFalse: () => isFalse,
|
|
177
178
|
isFalsy: () => isFalsy,
|
|
178
179
|
isFnWithParams: () => isFnWithParams,
|
|
@@ -193,6 +194,8 @@ __export(inferred_types_exports, {
|
|
|
193
194
|
isNumber: () => isNumber,
|
|
194
195
|
isNumericString: () => isNumericString,
|
|
195
196
|
isObject: () => isObject,
|
|
197
|
+
isOptionalParamFunction: () => isOptionalParamFunction,
|
|
198
|
+
isPhoneNumber: () => isPhoneNumber,
|
|
196
199
|
isReadonlyArray: () => isReadonlyArray,
|
|
197
200
|
isRef: () => isRef,
|
|
198
201
|
isRepoSource: () => isRepoSource,
|
|
@@ -200,10 +203,12 @@ __export(inferred_types_exports, {
|
|
|
200
203
|
isSameTypeOf: () => isSameTypeOf,
|
|
201
204
|
isScalar: () => isScalar,
|
|
202
205
|
isSemanticVersion: () => isSemanticVersion,
|
|
206
|
+
isSet: () => isSet,
|
|
203
207
|
isShape: () => isShape,
|
|
204
208
|
isSpecificConstant: () => isSpecificConstant,
|
|
205
209
|
isString: () => isString,
|
|
206
210
|
isSymbol: () => isSymbol,
|
|
211
|
+
isTrimable: () => isTrimable,
|
|
207
212
|
isTrue: () => isTrue,
|
|
208
213
|
isTruthy: () => isTruthy,
|
|
209
214
|
isTuple: () => isTuple,
|
|
@@ -211,15 +216,18 @@ __export(inferred_types_exports, {
|
|
|
211
216
|
isTypeToken: () => isTypeToken,
|
|
212
217
|
isTypeTuple: () => isTypeTuple,
|
|
213
218
|
isUndefined: () => isUndefined,
|
|
219
|
+
isUnset: () => isUnset,
|
|
214
220
|
isUri: () => isUri,
|
|
215
221
|
isUrl: () => isUrl,
|
|
216
222
|
isUrlPath: () => isUrlPath,
|
|
217
223
|
isUrlSource: () => isUrlSource,
|
|
224
|
+
isYouTubeCreatorUrl: () => isYouTubeCreatorUrl,
|
|
218
225
|
isYouTubeFeedUrl: () => isYouTubeFeedUrl,
|
|
219
226
|
isYouTubePlaylistUrl: () => isYouTubePlaylistUrl,
|
|
220
227
|
isYouTubeShareUrl: () => isYouTubeShareUrl,
|
|
221
228
|
isYouTubeUrl: () => isYouTubeUrl,
|
|
222
229
|
isYouTubeVideoUrl: () => isYouTubeVideoUrl,
|
|
230
|
+
isYouTubeVideosInPlaylist: () => isYouTubeVideosInPlaylist,
|
|
223
231
|
join: () => join,
|
|
224
232
|
keysOf: () => keysOf,
|
|
225
233
|
kindError: () => kindError,
|
|
@@ -242,10 +250,13 @@ __export(inferred_types_exports, {
|
|
|
242
250
|
pathJoin: () => pathJoin,
|
|
243
251
|
pluralize: () => pluralize,
|
|
244
252
|
pop: () => pop,
|
|
253
|
+
removePhoneCountryCode: () => removePhoneCountryCode,
|
|
245
254
|
removeUrlProtocol: () => removeUrlProtocol,
|
|
246
255
|
result: () => result,
|
|
247
256
|
retain: () => retain,
|
|
248
257
|
retainAfter: () => retainAfter,
|
|
258
|
+
retainChars: () => retainChars,
|
|
259
|
+
retainWhile: () => retainWhile,
|
|
249
260
|
reverse: () => reverse,
|
|
250
261
|
shape: () => shape,
|
|
251
262
|
sharedKeys: () => sharedKeys,
|
|
@@ -255,6 +266,7 @@ __export(inferred_types_exports, {
|
|
|
255
266
|
startsWith: () => startsWith,
|
|
256
267
|
stripAfter: () => stripAfter,
|
|
257
268
|
stripBefore: () => stripBefore,
|
|
269
|
+
stripChars: () => stripChars,
|
|
258
270
|
stripLeading: () => stripLeading,
|
|
259
271
|
stripTrailing: () => stripTrailing,
|
|
260
272
|
surround: () => surround,
|
|
@@ -289,7 +301,8 @@ __export(inferred_types_exports, {
|
|
|
289
301
|
withKeys: () => withKeys,
|
|
290
302
|
withoutKeys: () => withoutKeys,
|
|
291
303
|
withoutValue: () => withoutValue,
|
|
292
|
-
|
|
304
|
+
wrapFn: () => wrapFn,
|
|
305
|
+
youtubeMeta: () => youtubeMeta
|
|
293
306
|
});
|
|
294
307
|
module.exports = __toCommonJS(inferred_types_exports);
|
|
295
308
|
|
|
@@ -1186,6 +1199,281 @@ var TOP_LEVEL_DOMAINS = [
|
|
|
1186
1199
|
"london"
|
|
1187
1200
|
];
|
|
1188
1201
|
|
|
1202
|
+
// dist/constants/Characters.js
|
|
1203
|
+
var WHITESPACE_CHARS = [
|
|
1204
|
+
" ",
|
|
1205
|
+
"\n",
|
|
1206
|
+
" "
|
|
1207
|
+
];
|
|
1208
|
+
|
|
1209
|
+
// dist/constants/Phone.js
|
|
1210
|
+
var PHONE_FORMAT = [
|
|
1211
|
+
"Dashed (e.g., 456-555-1212)",
|
|
1212
|
+
"Dotted (e.g., 456.555.1212)",
|
|
1213
|
+
"ParaSpaced (e.g., (456) 555 1212)",
|
|
1214
|
+
"ParaDashed (e.g., (456) 555-1212)"
|
|
1215
|
+
];
|
|
1216
|
+
var PHONE_COUNTRY_CODES = [
|
|
1217
|
+
["886", "TWN", "TW"],
|
|
1218
|
+
["93", "AFG", "AF"],
|
|
1219
|
+
["355", "ALB", "AL"],
|
|
1220
|
+
["213", "DZA", "DZ"],
|
|
1221
|
+
["1-684", "ASM", "AS"],
|
|
1222
|
+
["376", "AND", "AD"],
|
|
1223
|
+
["244", "AGO", "AO"],
|
|
1224
|
+
["1-264", "AIA", "AI"],
|
|
1225
|
+
["672", "ATA", "AQ"],
|
|
1226
|
+
["1-268", "ATG", "AG"],
|
|
1227
|
+
["54", "ARG", "AR"],
|
|
1228
|
+
["374", "ARM", "AM"],
|
|
1229
|
+
["297", "ABW", "AW"],
|
|
1230
|
+
["61", "AUS", "AU"],
|
|
1231
|
+
["43", "AUT", "AT"],
|
|
1232
|
+
["994", "AZE", "AZ"],
|
|
1233
|
+
["1-242", "BHS", "BS"],
|
|
1234
|
+
["973", "BHR", "BH"],
|
|
1235
|
+
["880", "BGD", "BD"],
|
|
1236
|
+
["1-246", "BRB", "BB"],
|
|
1237
|
+
["375", "BLR", "BY"],
|
|
1238
|
+
["32", "BEL", "BE"],
|
|
1239
|
+
["501", "BLZ", "BZ"],
|
|
1240
|
+
["229", "BEN", "BJ"],
|
|
1241
|
+
["1-441", "BMU", "BM"],
|
|
1242
|
+
["975", "BTN", "BT"],
|
|
1243
|
+
["591", "BOL", "BO"],
|
|
1244
|
+
["599", "BES", "BQ"],
|
|
1245
|
+
["387", "BIH", "BA"],
|
|
1246
|
+
["267", "BWA", "BW"],
|
|
1247
|
+
["47", "BVT", "BV"],
|
|
1248
|
+
["55", "BRA", "BR"],
|
|
1249
|
+
["246", "IOT", "IO"],
|
|
1250
|
+
["1-284", "VGB", "VG"],
|
|
1251
|
+
["673", "BRN", "BN"],
|
|
1252
|
+
["359", "BGR", "BG"],
|
|
1253
|
+
["226", "BFA", "BF"],
|
|
1254
|
+
["257", "BDI", "BI"],
|
|
1255
|
+
["238", "CPV", "CV"],
|
|
1256
|
+
["855", "KHM", "KH"],
|
|
1257
|
+
["237", "CMR", "CM"],
|
|
1258
|
+
["1", "CAN", "CA"],
|
|
1259
|
+
["1-345", "CYM", "KY"],
|
|
1260
|
+
["236", "CAF", "CF"],
|
|
1261
|
+
["235", "TCD", "TD"],
|
|
1262
|
+
["56", "CHL", "CL"],
|
|
1263
|
+
["86", "CHN", "CN"],
|
|
1264
|
+
["852", "HKG", "HK"],
|
|
1265
|
+
["853", "MAC", "MO"],
|
|
1266
|
+
["61", "CXR", "CX"],
|
|
1267
|
+
["61", "CCK", "CC"],
|
|
1268
|
+
["57", "COL", "CO"],
|
|
1269
|
+
["269", "COM", "KM"],
|
|
1270
|
+
["242", "COG", "CG"],
|
|
1271
|
+
["682", "COK", "CK"],
|
|
1272
|
+
["506", "CRI", "CR"],
|
|
1273
|
+
["385", "HRV", "HR"],
|
|
1274
|
+
["53", "CUB", "CU"],
|
|
1275
|
+
["599", "CUW", "CW"],
|
|
1276
|
+
["357", "CYP", "CY"],
|
|
1277
|
+
["420", "CZE", "CZ"],
|
|
1278
|
+
["225", "CIV", "CI"],
|
|
1279
|
+
["850", "PRK", "KP"],
|
|
1280
|
+
["243", "COD", "CD"],
|
|
1281
|
+
["45", "DNK", "DK"],
|
|
1282
|
+
["253", "DJI", "DJ"],
|
|
1283
|
+
["1-767", "DMA", "DM"],
|
|
1284
|
+
["1-809", "DOM", "DO"],
|
|
1285
|
+
["1-829", "DOM", "DO"],
|
|
1286
|
+
["1-849", "DOM", "DO"],
|
|
1287
|
+
["593", "ECU", "EC"],
|
|
1288
|
+
["20", "EGY", "EG"],
|
|
1289
|
+
["503", "SLV", "SV"],
|
|
1290
|
+
["240", "GNQ", "GQ"],
|
|
1291
|
+
["291", "ERI", "ER"],
|
|
1292
|
+
["372", "EST", "EE"],
|
|
1293
|
+
["268", "SWZ", "SZ"],
|
|
1294
|
+
["251", "ETH", "ET"],
|
|
1295
|
+
["500", "FLK", "FK"],
|
|
1296
|
+
["298", "FRO", "FO"],
|
|
1297
|
+
["679", "FJI", "FJ"],
|
|
1298
|
+
["358", "FIN", "FI"],
|
|
1299
|
+
["33", "FRA", "FR"],
|
|
1300
|
+
["594", "GUF", "GF"],
|
|
1301
|
+
["689", "PYF", "PF"],
|
|
1302
|
+
["262", "ATF", "TF"],
|
|
1303
|
+
["241", "GAB", "GA"],
|
|
1304
|
+
["220", "GMB", "GM"],
|
|
1305
|
+
["995", "GEO", "GE"],
|
|
1306
|
+
["49", "DEU", "DE"],
|
|
1307
|
+
["233", "GHA", "GH"],
|
|
1308
|
+
["350", "GIB", "GI"],
|
|
1309
|
+
["30", "GRC", "GR"],
|
|
1310
|
+
["299", "GRL", "GL"],
|
|
1311
|
+
["1-473", "GRD", "GD"],
|
|
1312
|
+
["590", "GLP", "GP"],
|
|
1313
|
+
["1-671", "GUM", "GU"],
|
|
1314
|
+
["502", "GTM", "GT"],
|
|
1315
|
+
["44", "GGY", "GG"],
|
|
1316
|
+
["224", "GIN", "GN"],
|
|
1317
|
+
["245", "GNB", "GW"],
|
|
1318
|
+
["592", "GUY", "GY"],
|
|
1319
|
+
["509", "HTI", "HT"],
|
|
1320
|
+
["672", "HMD", "HM"],
|
|
1321
|
+
["39-06", "VAT", "VA"],
|
|
1322
|
+
["504", "HND", "HN"],
|
|
1323
|
+
["36", "HUN", "HU"],
|
|
1324
|
+
["354", "ISL", "IS"],
|
|
1325
|
+
["91", "IND", "IN"],
|
|
1326
|
+
["62", "IDN", "ID"],
|
|
1327
|
+
["98", "IRN", "IR"],
|
|
1328
|
+
["964", "IRQ", "IQ"],
|
|
1329
|
+
["353", "IRL", "IE"],
|
|
1330
|
+
["44", "IMN", "IM"],
|
|
1331
|
+
["972", "ISR", "IL"],
|
|
1332
|
+
["39", "ITA", "IT"],
|
|
1333
|
+
["1-876", "JAM", "JM"],
|
|
1334
|
+
["81", "JPN", "JP"],
|
|
1335
|
+
["44", "JEY", "JE"],
|
|
1336
|
+
["962", "JOR", "JO"],
|
|
1337
|
+
["7", "KAZ", "KZ"],
|
|
1338
|
+
["254", "KEN", "KE"],
|
|
1339
|
+
["686", "KIR", "KI"],
|
|
1340
|
+
["965", "KWT", "KW"],
|
|
1341
|
+
["996", "KGZ", "KG"],
|
|
1342
|
+
["856", "LAO", "LA"],
|
|
1343
|
+
["371", "LVA", "LV"],
|
|
1344
|
+
["961", "LBN", "LB"],
|
|
1345
|
+
["266", "LSO", "LS"],
|
|
1346
|
+
["231", "LBR", "LR"],
|
|
1347
|
+
["218", "LBY", "LY"],
|
|
1348
|
+
["423", "LIE", "LI"],
|
|
1349
|
+
["370", "LTU", "LT"],
|
|
1350
|
+
["352", "LUX", "LU"],
|
|
1351
|
+
["261", "MDG", "MG"],
|
|
1352
|
+
["265", "MWI", "MW"],
|
|
1353
|
+
["60", "MYS", "MY"],
|
|
1354
|
+
["960", "MDV", "MV"],
|
|
1355
|
+
["223", "MLI", "ML"],
|
|
1356
|
+
["356", "MLT", "MT"],
|
|
1357
|
+
["692", "MHL", "MH"],
|
|
1358
|
+
["596", "MTQ", "MQ"],
|
|
1359
|
+
["222", "MRT", "MR"],
|
|
1360
|
+
["230", "MUS", "MU"],
|
|
1361
|
+
["262", "MYT", "YT"],
|
|
1362
|
+
["52", "MEX", "MX"],
|
|
1363
|
+
["691", "FSM", "FM"],
|
|
1364
|
+
["377", "MCO", "MC"],
|
|
1365
|
+
["976", "MNG", "MN"],
|
|
1366
|
+
["382", "MNE", "ME"],
|
|
1367
|
+
["1-664", "MSR", "MS"],
|
|
1368
|
+
["212", "MAR", "MA"],
|
|
1369
|
+
["258", "MOZ", "MZ"],
|
|
1370
|
+
["95", "MMR", "MM"],
|
|
1371
|
+
["264", "NAM", "NA"],
|
|
1372
|
+
["674", "NRU", "NR"],
|
|
1373
|
+
["977", "NPL", "NP"],
|
|
1374
|
+
["31", "NLD", "NL"],
|
|
1375
|
+
["687", "NCL", "NC"],
|
|
1376
|
+
["64", "NZL", "NZ"],
|
|
1377
|
+
["505", "NIC", "NI"],
|
|
1378
|
+
["227", "NER", "NE"],
|
|
1379
|
+
["234", "NGA", "NG"],
|
|
1380
|
+
["683", "NIU", "NU"],
|
|
1381
|
+
["672", "NFK", "NF"],
|
|
1382
|
+
["1-670", "MNP", "MP"],
|
|
1383
|
+
["47", "NOR", "NO"],
|
|
1384
|
+
["968", "OMN", "OM"],
|
|
1385
|
+
["92", "PAK", "PK"],
|
|
1386
|
+
["680", "PLW", "PW"],
|
|
1387
|
+
["507", "PAN", "PA"],
|
|
1388
|
+
["675", "PNG", "PG"],
|
|
1389
|
+
["595", "PRY", "PY"],
|
|
1390
|
+
["51", "PER", "PE"],
|
|
1391
|
+
["63", "PHL", "PH"],
|
|
1392
|
+
["870", "PCN", "PN"],
|
|
1393
|
+
["48", "POL", "PL"],
|
|
1394
|
+
["351", "PRT", "PT"],
|
|
1395
|
+
["974", "QAT", "QA"],
|
|
1396
|
+
["82", "KOR", "KR"],
|
|
1397
|
+
["373", "MDA", "MD"],
|
|
1398
|
+
["40", "ROU", "RO"],
|
|
1399
|
+
["7", "RUS", "RU"],
|
|
1400
|
+
["250", "RWA", "RW"],
|
|
1401
|
+
["262", "REU", "RE"],
|
|
1402
|
+
["590", "BLM", "BL"],
|
|
1403
|
+
["290", "SHN", "SH"],
|
|
1404
|
+
["1-869", "KNA", "KN"],
|
|
1405
|
+
["1-758", "LCA", "LC"],
|
|
1406
|
+
["590", "MAF", "MF"],
|
|
1407
|
+
["508", "SPM", "PM"],
|
|
1408
|
+
["1-784", "VCT", "VC"],
|
|
1409
|
+
["685", "WSM", "WS"],
|
|
1410
|
+
["378", "SMR", "SM"],
|
|
1411
|
+
["239", "STP", "ST"],
|
|
1412
|
+
["966", "SAU", "SA"],
|
|
1413
|
+
["221", "SEN", "SN"],
|
|
1414
|
+
["381", "SRB", "RS"],
|
|
1415
|
+
["248", "SYC", "SC"],
|
|
1416
|
+
["232", "SLE", "SL"],
|
|
1417
|
+
["65", "SGP", "SG"],
|
|
1418
|
+
["1-721", "SXM", "SX"],
|
|
1419
|
+
["421", "SVK", "SK"],
|
|
1420
|
+
["386", "SVN", "SI"],
|
|
1421
|
+
["677", "SLB", "SB"],
|
|
1422
|
+
["252", "SOM", "SO"],
|
|
1423
|
+
["27", "ZAF", "ZA"],
|
|
1424
|
+
["500", "SGS", "GS"],
|
|
1425
|
+
["211", "SSD", "SS"],
|
|
1426
|
+
["34", "ESP", "ES"],
|
|
1427
|
+
["94", "LKA", "LK"],
|
|
1428
|
+
["970", "PSE", "PS"],
|
|
1429
|
+
["249", "SDN", "SD"],
|
|
1430
|
+
["597", "SUR", "SR"],
|
|
1431
|
+
["47", "SJM", "SJ"],
|
|
1432
|
+
["46", "SWE", "SE"],
|
|
1433
|
+
["41", "CHE", "CH"],
|
|
1434
|
+
["963", "SYR", "SY"],
|
|
1435
|
+
["992", "TJK", "TJ"],
|
|
1436
|
+
["66", "THA", "TH"],
|
|
1437
|
+
["389", "MKD", "MK"],
|
|
1438
|
+
["670", "TLS", "TL"],
|
|
1439
|
+
["228", "TGO", "TG"],
|
|
1440
|
+
["690", "TKL", "TK"],
|
|
1441
|
+
["676", "TON", "TO"],
|
|
1442
|
+
["1-868", "TTO", "TT"],
|
|
1443
|
+
["216", "TUN", "TN"],
|
|
1444
|
+
["90", "TUR", "TR"],
|
|
1445
|
+
["993", "TKM", "TM"],
|
|
1446
|
+
["1-649", "TCA", "TC"],
|
|
1447
|
+
["688", "TUV", "TV"],
|
|
1448
|
+
["256", "UGA", "UG"],
|
|
1449
|
+
["380", "UKR", "UA"],
|
|
1450
|
+
["971", "ARE", "AE"],
|
|
1451
|
+
["44", "GBR", "GB"],
|
|
1452
|
+
["255", "TZA", "TZ"],
|
|
1453
|
+
["1-340", "VIR", "VI"],
|
|
1454
|
+
["1", "USA", "US"],
|
|
1455
|
+
["598", "URY", "UY"],
|
|
1456
|
+
["998", "UZB", "UZ"],
|
|
1457
|
+
["678", "VUT", "VU"],
|
|
1458
|
+
["58", "VEN", "VE"],
|
|
1459
|
+
["84", "VNM", "VN"],
|
|
1460
|
+
["681", "WLF", "WF"],
|
|
1461
|
+
["212", "ESH", "EH"],
|
|
1462
|
+
["967", "YEM", "YE"],
|
|
1463
|
+
["260", "ZMB", "ZM"],
|
|
1464
|
+
["263", "ZWE", "ZW"],
|
|
1465
|
+
["358", "ALA", "AX"]
|
|
1466
|
+
];
|
|
1467
|
+
|
|
1468
|
+
// dist/constants/ProxmoxConstants.js
|
|
1469
|
+
var PROXMOX_CT_STATE = [
|
|
1470
|
+
"started",
|
|
1471
|
+
"stopped",
|
|
1472
|
+
"enabled",
|
|
1473
|
+
"disabled",
|
|
1474
|
+
"ignored"
|
|
1475
|
+
];
|
|
1476
|
+
|
|
1189
1477
|
// dist/types/dictionary/MapTo.js
|
|
1190
1478
|
var toFinalizedConfig = (config) => {
|
|
1191
1479
|
return { ...config, finalized: true };
|
|
@@ -1212,401 +1500,224 @@ var MapCardinality;
|
|
|
1212
1500
|
MapCardinality2["ManyToOne"] = "I[] -> O";
|
|
1213
1501
|
})(MapCardinality || (MapCardinality = {}));
|
|
1214
1502
|
|
|
1215
|
-
// dist/runtime/
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
}
|
|
1503
|
+
// dist/runtime/api/defineApi.js
|
|
1504
|
+
var asEscapeFunction = (fn2) => createFnWithProps(fn2, { escape: true });
|
|
1505
|
+
var asOptionalParamFunction = (fn2) => createFnWithProps(fn2, { optionalParams: true });
|
|
1506
|
+
var asApi = (api) => isApi(api) ? api : isApiSurface(api) ? { _kind: "api", surface: api } : createErrorCondition("invalid-api");
|
|
1507
|
+
var asCallbackProp = (...args) => args;
|
|
1508
|
+
var getEscapeFunction = (api) => {
|
|
1509
|
+
const surface = api.surface;
|
|
1510
|
+
return isFunction(surface) && "escape" in surface && surface.escape === true ? surface : isObject(surface) ? surface[Object.keys(surface).find((k) => isEscapeFunction(surface[k]))] : Never;
|
|
1511
|
+
};
|
|
1512
|
+
var defaultApiHandler = (_api) => {
|
|
1513
|
+
return (_result) => {
|
|
1514
|
+
};
|
|
1515
|
+
};
|
|
1516
|
+
var cb = (api) => (cb2) => {
|
|
1517
|
+
try {
|
|
1518
|
+
return cb2(api.surface);
|
|
1519
|
+
} catch (e) {
|
|
1520
|
+
throw new Error("oops");
|
|
1521
|
+
}
|
|
1522
|
+
};
|
|
1523
|
+
var asApiCallback = (api) => cb(api);
|
|
1524
|
+
var asHandledApiCallback = (api, handler) => {
|
|
1525
|
+
let _h = handler ? handler : defaultApiHandler;
|
|
1526
|
+
let _cb = asApiCallback(api);
|
|
1527
|
+
};
|
|
1219
1528
|
|
|
1220
|
-
// dist/runtime/
|
|
1221
|
-
|
|
1222
|
-
return
|
|
1223
|
-
}
|
|
1529
|
+
// dist/runtime/api/handleDoneFn.js
|
|
1530
|
+
var handleDoneFn = (val, call_bare_fn = false) => {
|
|
1531
|
+
return isObject(val) || isFunction(val) ? isDoneFn(val) ? val.done() : isFunction(val) ? call_bare_fn ? val() : val : val : isFunction(val) ? call_bare_fn ? val() : val : val;
|
|
1532
|
+
};
|
|
1224
1533
|
|
|
1225
|
-
// dist/runtime/
|
|
1226
|
-
|
|
1227
|
-
return
|
|
1228
|
-
}
|
|
1534
|
+
// dist/runtime/combinators/and.js
|
|
1535
|
+
var and = (...values) => {
|
|
1536
|
+
return values.every((i) => i === true);
|
|
1537
|
+
};
|
|
1229
1538
|
|
|
1230
|
-
// dist/runtime/
|
|
1231
|
-
function
|
|
1232
|
-
|
|
1539
|
+
// dist/runtime/combinators/or.js
|
|
1540
|
+
function or(...conditions) {
|
|
1541
|
+
const values = conditions.some((v) => v === true ? true : false);
|
|
1542
|
+
return values;
|
|
1233
1543
|
}
|
|
1234
1544
|
|
|
1235
|
-
// dist/runtime/
|
|
1236
|
-
function
|
|
1237
|
-
|
|
1545
|
+
// dist/runtime/dictionary/keysOf.js
|
|
1546
|
+
function keysOf(container) {
|
|
1547
|
+
const keys = Array.isArray(container) ? Object.keys(container).map((i) => Number(i)) : isObject(container) ? isRef(container) ? ["value"] : Object.keys(container) : [];
|
|
1548
|
+
return keys;
|
|
1238
1549
|
}
|
|
1239
1550
|
|
|
1240
|
-
// dist/runtime/
|
|
1241
|
-
function
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1551
|
+
// dist/runtime/dictionary/entries.js
|
|
1552
|
+
function entries(obj) {
|
|
1553
|
+
const iterable = {
|
|
1554
|
+
*[Symbol.iterator]() {
|
|
1555
|
+
for (const k of keysOf(obj)) {
|
|
1556
|
+
yield [k, obj[k]];
|
|
1557
|
+
}
|
|
1558
|
+
}
|
|
1559
|
+
};
|
|
1560
|
+
return iterable;
|
|
1246
1561
|
}
|
|
1247
1562
|
|
|
1248
|
-
// dist/runtime/
|
|
1249
|
-
function
|
|
1250
|
-
return
|
|
1563
|
+
// dist/runtime/dictionary/get.js
|
|
1564
|
+
function updatedDotPath(value, dotpath, segment) {
|
|
1565
|
+
return isRef(value) ? dotpath.replace(segment, `Ref(${segment})`) : dotpath;
|
|
1251
1566
|
}
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1567
|
+
function getValue(value, dotPath, defaultValue, handleInvalid, fullDotPath) {
|
|
1568
|
+
const pathSegments = isTruthy(dotPath) ? dotPath.split(".") : [];
|
|
1569
|
+
const idx = pathSegments[0];
|
|
1570
|
+
const hasMoreSegments = pathSegments.length > 1;
|
|
1571
|
+
const valueIsIndexable = isContainer(value) && hasIndexOf(value, idx);
|
|
1572
|
+
const hasHandler = !isSpecificConstant("not-defined")(handleInvalid);
|
|
1573
|
+
const invalidDotPath = createErrorCondition("invalid-dot-path", `The segment "${idx}" in the dotpath "${fullDotPath}" was not indexable and no default value existed on: ${JSON.stringify(value)}`);
|
|
1574
|
+
const current = hasMoreSegments ? isContainer(value) && idx in value ? getValue(indexOf(value, idx), pathSegments.join(".").replace(`${idx}.`, ""), defaultValue, handleInvalid, updatedDotPath(value, fullDotPath, idx)) : hasHandler ? handleInvalid : invalidDotPath : valueIsIndexable ? hasDefaultValue(hasDefaultValue) ? indexOf(value, idx) || defaultValue : indexOf(value, idx) : hasHandler ? handleInvalid : invalidDotPath;
|
|
1575
|
+
return current;
|
|
1256
1576
|
}
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
return Array.isArray(value) && value.length === length ? ifVal(value) : elseVal(value);
|
|
1577
|
+
function get(value, dotPath, options = {
|
|
1578
|
+
defaultValue: NO_DEFAULT_VALUE,
|
|
1579
|
+
handleInvalidDotpath: NOT_DEFINED
|
|
1580
|
+
}) {
|
|
1581
|
+
const outcome = dotPath === null || dotPath === "" ? value : getValue(value, dotPath, (options == null ? void 0 : options.defaultValue) || NO_DEFAULT_VALUE, (options == null ? void 0 : options.handleInvalidDotpath) || NOT_DEFINED, String(dotPath));
|
|
1582
|
+
return outcome;
|
|
1264
1583
|
}
|
|
1265
1584
|
|
|
1266
|
-
// dist/runtime/
|
|
1267
|
-
function
|
|
1268
|
-
const
|
|
1269
|
-
return
|
|
1585
|
+
// dist/runtime/dictionary/omit.js
|
|
1586
|
+
function omit(obj, ...removeKeys) {
|
|
1587
|
+
const keys = Object.keys(obj);
|
|
1588
|
+
return keys.reduce((acc, key) => removeKeys.includes(key) ? acc : {
|
|
1589
|
+
...acc,
|
|
1590
|
+
[key]: obj[key]
|
|
1591
|
+
}, {});
|
|
1270
1592
|
}
|
|
1271
1593
|
|
|
1272
|
-
// dist/runtime/
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1594
|
+
// dist/runtime/dictionary/retain.js
|
|
1595
|
+
var retain = (dict2, ...keys) => {
|
|
1596
|
+
let output = {};
|
|
1597
|
+
for (const k of keys) {
|
|
1598
|
+
output = {
|
|
1599
|
+
...output,
|
|
1600
|
+
[k]: dict2[k]
|
|
1601
|
+
};
|
|
1602
|
+
}
|
|
1603
|
+
return output;
|
|
1604
|
+
};
|
|
1276
1605
|
|
|
1277
|
-
// dist/runtime/
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1606
|
+
// dist/runtime/dictionary/sharedKeys.js
|
|
1607
|
+
var sharedKeys = (a, b) => {
|
|
1608
|
+
const ka = Object.keys(a);
|
|
1609
|
+
const kb = Object.keys(b);
|
|
1610
|
+
return ka.filter((k) => kb.includes(k));
|
|
1611
|
+
};
|
|
1281
1612
|
|
|
1282
|
-
// dist/runtime/
|
|
1283
|
-
|
|
1284
|
-
return (
|
|
1285
|
-
|
|
1286
|
-
isTrue(val) ? ifVal(val) : elseVal(val)
|
|
1287
|
-
);
|
|
1288
|
-
}
|
|
1613
|
+
// dist/runtime/dictionary/takeProp.js
|
|
1614
|
+
var takeProp = (val, prop, otherwise) => {
|
|
1615
|
+
return (isObject(val) || isArray(val)) && prop in val ? val[prop] : otherwise;
|
|
1616
|
+
};
|
|
1289
1617
|
|
|
1290
|
-
// dist/runtime/
|
|
1291
|
-
|
|
1292
|
-
return isFalse(val) ? ifVal : elseVal;
|
|
1293
|
-
}
|
|
1618
|
+
// dist/runtime/dictionary/withKeys.js
|
|
1619
|
+
var withKeys = (dict2, ...keys) => retain(dict2, ...keys);
|
|
1294
1620
|
|
|
1295
|
-
// dist/runtime/
|
|
1296
|
-
var
|
|
1297
|
-
var def_else = () => Never;
|
|
1298
|
-
function ifChar(ch, callback_if_match = def_if, callback_not_match = def_else) {
|
|
1299
|
-
return ch.length === 1 ? callback_if_match(ch) : callback_not_match(ch);
|
|
1300
|
-
}
|
|
1621
|
+
// dist/runtime/dictionary/withoutKeys.js
|
|
1622
|
+
var withoutKeys = (dict2, ...exclude) => omit(dict2, ...exclude);
|
|
1301
1623
|
|
|
1302
|
-
// dist/runtime/
|
|
1303
|
-
function
|
|
1304
|
-
return
|
|
1624
|
+
// dist/runtime/dictionary/withoutValue.js
|
|
1625
|
+
function withoutValue(val) {
|
|
1626
|
+
return (obj) => {
|
|
1627
|
+
return Object.keys(obj).reduce((acc, key) => val === obj[key] ? acc : { ...acc, [key]: obj[key] }, {});
|
|
1628
|
+
};
|
|
1305
1629
|
}
|
|
1306
1630
|
|
|
1307
|
-
// dist/runtime/
|
|
1308
|
-
var
|
|
1309
|
-
|
|
1631
|
+
// dist/runtime/dictionary/withDefaults.js
|
|
1632
|
+
var withDefaults = (with_defaults) => (obj) => {
|
|
1633
|
+
const merged = {
|
|
1634
|
+
...with_defaults,
|
|
1635
|
+
...obj
|
|
1636
|
+
};
|
|
1637
|
+
return merged;
|
|
1310
1638
|
};
|
|
1311
1639
|
|
|
1312
|
-
// dist/runtime/
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
}
|
|
1640
|
+
// dist/runtime/dictionary/valuesOf.js
|
|
1641
|
+
var valuesOf = (obj) => {
|
|
1642
|
+
const values = [];
|
|
1643
|
+
for (const k of Object.keys(obj)) {
|
|
1644
|
+
values.push(obj[k]);
|
|
1645
|
+
}
|
|
1646
|
+
return values;
|
|
1647
|
+
};
|
|
1321
1648
|
|
|
1322
|
-
// dist/runtime/
|
|
1323
|
-
var
|
|
1324
|
-
return
|
|
1649
|
+
// dist/runtime/errors/createErrorCondition.js
|
|
1650
|
+
var createErrorCondition = (kind, msg = "", utility = "") => {
|
|
1651
|
+
return {
|
|
1652
|
+
__kind: "ErrorCondition",
|
|
1653
|
+
kind,
|
|
1654
|
+
msg,
|
|
1655
|
+
utility
|
|
1656
|
+
};
|
|
1325
1657
|
};
|
|
1326
1658
|
|
|
1327
|
-
// dist/runtime/
|
|
1328
|
-
function
|
|
1329
|
-
|
|
1659
|
+
// dist/runtime/literals/box.js
|
|
1660
|
+
function box(value) {
|
|
1661
|
+
const rtn = {
|
|
1662
|
+
__type: "box",
|
|
1663
|
+
value,
|
|
1664
|
+
unbox: (...p) => {
|
|
1665
|
+
return typeof value === "function" ? value(...p) : value;
|
|
1666
|
+
}
|
|
1667
|
+
};
|
|
1668
|
+
return rtn;
|
|
1330
1669
|
}
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
function isUndefined(value) {
|
|
1334
|
-
return typeof value === "undefined" ? true : false;
|
|
1670
|
+
function isBox(thing) {
|
|
1671
|
+
return typeof thing === "object" && "__type" in thing && thing.__type === "box";
|
|
1335
1672
|
}
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
return typeof value === "boolean";
|
|
1673
|
+
function boxDictionaryValues(dict2) {
|
|
1674
|
+
const keys = Object.keys(dict2);
|
|
1675
|
+
return keys.reduce((acc, key) => ({ ...acc, [key]: box(dict2[key]) }), {});
|
|
1340
1676
|
}
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
function isString(value) {
|
|
1344
|
-
return typeof value === "string";
|
|
1677
|
+
function unbox(val) {
|
|
1678
|
+
return isBox(val) ? val.value : val;
|
|
1345
1679
|
}
|
|
1346
1680
|
|
|
1347
|
-
// dist/runtime/
|
|
1348
|
-
|
|
1349
|
-
return Array.isArray(value) || typeof value === "object" && keysOf(value).length > 0 ? true : false;
|
|
1350
|
-
}
|
|
1681
|
+
// dist/runtime/literals/identity.js
|
|
1682
|
+
var identity = (v) => v;
|
|
1351
1683
|
|
|
1352
|
-
// dist/runtime/
|
|
1353
|
-
function
|
|
1354
|
-
return
|
|
1684
|
+
// dist/runtime/literals/literal.js
|
|
1685
|
+
function idLiteral(o) {
|
|
1686
|
+
return { ...o, id: o.id };
|
|
1355
1687
|
}
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
function isTrue(value) {
|
|
1359
|
-
return value === true;
|
|
1688
|
+
function nameLiteral(o) {
|
|
1689
|
+
return o;
|
|
1360
1690
|
}
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
function isArray(value) {
|
|
1364
|
-
return Array.isArray(value) === true;
|
|
1691
|
+
function kindLiteral(o) {
|
|
1692
|
+
return o;
|
|
1365
1693
|
}
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
function isConstant(value) {
|
|
1369
|
-
return isObject(value) && "_type" in value && isTypeOf("string")(value._type) && isEqual(value._type)("Constant") ? true : false;
|
|
1694
|
+
function idTypeGuard(_o) {
|
|
1695
|
+
return true;
|
|
1370
1696
|
}
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
var isNever = (val) => {
|
|
1374
|
-
return isConstant(val) && val.kind === "never";
|
|
1375
|
-
};
|
|
1376
|
-
|
|
1377
|
-
// dist/runtime/type-guards/isContainer.js
|
|
1378
|
-
function isContainer(value) {
|
|
1379
|
-
return Array.isArray(value) || isObject(value) ? true : false;
|
|
1697
|
+
function literal(obj) {
|
|
1698
|
+
return obj;
|
|
1380
1699
|
}
|
|
1381
1700
|
|
|
1382
|
-
// dist/runtime/
|
|
1383
|
-
var
|
|
1384
|
-
return typeof
|
|
1701
|
+
// dist/runtime/literals/stripTrailing.js
|
|
1702
|
+
var switchType = (content) => (val) => {
|
|
1703
|
+
return typeof content === "number" ? Number(val) : val;
|
|
1385
1704
|
};
|
|
1705
|
+
function stripTrailing(content, strip) {
|
|
1706
|
+
var _a;
|
|
1707
|
+
const re = new RegExp(`(.*)${strip}$`);
|
|
1708
|
+
return ((_a = String(content)) == null ? void 0 : _a.endsWith(String(strip))) ? switchType(content)(String(content).replace(re, "$1")) : switchType(content)(String(content));
|
|
1709
|
+
}
|
|
1386
1710
|
|
|
1387
|
-
// dist/runtime/
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
// dist/runtime/type-guards/isReadonlyArray.js
|
|
1398
|
-
function isReadonlyArray(value) {
|
|
1399
|
-
return Array.isArray(value) === true;
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
// dist/runtime/type-guards/hasIndexOf.js
|
|
1403
|
-
var hasIndexOf = (value, idx) => {
|
|
1404
|
-
const result2 = isObject(value) ? String(idx) in value : Array.isArray(value) ? Number(idx) in value : false;
|
|
1405
|
-
return isErrorCondition(result2, "invalid-index") ? false : result2;
|
|
1406
|
-
};
|
|
1407
|
-
|
|
1408
|
-
// dist/runtime/type-guards/isRef.js
|
|
1409
|
-
function isRef(value) {
|
|
1410
|
-
return isObject(value) && "value" in value && Array.from(Object.keys(value)).includes("_value");
|
|
1411
|
-
}
|
|
1412
|
-
|
|
1413
|
-
// dist/runtime/type-guards/isFalse.js
|
|
1414
|
-
function isFalse(i) {
|
|
1415
|
-
return typeof i === "boolean" && !i;
|
|
1416
|
-
}
|
|
1417
|
-
|
|
1418
|
-
// dist/runtime/type-guards/hasDefaultValue.js
|
|
1419
|
-
function hasDefaultValue(value) {
|
|
1420
|
-
const noDefault = isSpecificConstant("no-default-value");
|
|
1421
|
-
return noDefault(value) ? false : true;
|
|
1422
|
-
}
|
|
1423
|
-
|
|
1424
|
-
// dist/runtime/literals/split.js
|
|
1425
|
-
function split(str, sep = "") {
|
|
1426
|
-
return str.split(sep);
|
|
1427
|
-
}
|
|
1428
|
-
|
|
1429
|
-
// dist/runtime/type-guards/isNumericString.js
|
|
1430
|
-
function isNumericString(value) {
|
|
1431
|
-
const validChars = [...NUMERIC_CHAR, "x", "E"];
|
|
1432
|
-
return typeof value === "string" && split(value).every((i) => validChars.includes(i));
|
|
1433
|
-
}
|
|
1434
|
-
|
|
1435
|
-
// dist/runtime/type-guards/isFnWithParams.js
|
|
1436
|
-
function isFnWithParams(input) {
|
|
1437
|
-
var _a;
|
|
1438
|
-
return typeof input === "function" && ((_a = Object.keys(input)) == null ? void 0 : _a.length) > 0;
|
|
1439
|
-
}
|
|
1440
|
-
|
|
1441
|
-
// dist/runtime/type-guards/isFunction.js
|
|
1442
|
-
function isFunction(value) {
|
|
1443
|
-
return typeof value === "function" ? true : false;
|
|
1444
|
-
}
|
|
1445
|
-
|
|
1446
|
-
// dist/runtime/type-guards/isNumber.js
|
|
1447
|
-
function isNumber(value) {
|
|
1448
|
-
return typeof value === "number";
|
|
1449
|
-
}
|
|
1450
|
-
|
|
1451
|
-
// dist/runtime/type-guards/isNothing.js
|
|
1452
|
-
function isNothing(val) {
|
|
1453
|
-
return val === null || val === void 0 ? true : false;
|
|
1454
|
-
}
|
|
1455
|
-
|
|
1456
|
-
// dist/runtime/type-guards/isSymbol.js
|
|
1457
|
-
function isSymbol(value) {
|
|
1458
|
-
return typeof value === "symbol";
|
|
1459
|
-
}
|
|
1460
|
-
|
|
1461
|
-
// dist/runtime/type-guards/isScalar.js
|
|
1462
|
-
function isScalar(value) {
|
|
1463
|
-
return isString(value) || isNumber(value) || isSymbol(value) || isNull(value);
|
|
1464
|
-
}
|
|
1465
|
-
|
|
1466
|
-
// dist/runtime/type-guards/isTypeToken.js
|
|
1467
|
-
function isTypeToken(val) {
|
|
1468
|
-
if (isString(val) && startsWith("<<")(val) && endsWith(">>")(val)) {
|
|
1469
|
-
return true;
|
|
1470
|
-
} else {
|
|
1471
|
-
return false;
|
|
1472
|
-
}
|
|
1473
|
-
}
|
|
1474
|
-
|
|
1475
|
-
// dist/runtime/type-guards/isErrorCondition.js
|
|
1476
|
-
function isErrorCondition(value, kind = null) {
|
|
1477
|
-
return isObject(value) && "__kind" in value && value.__kind === "ErrorCondition" && "kind" in value ? kind !== null ? value["kind"] === kind : true : false;
|
|
1478
|
-
}
|
|
1479
|
-
|
|
1480
|
-
// dist/runtime/type-guards/hasKeys.js
|
|
1481
|
-
var hasKeys = (...props) => (
|
|
1482
|
-
/**
|
|
1483
|
-
* Type guard which validates whether the configured properties
|
|
1484
|
-
* exist on a given `Record<ObjectKey, unknown` and if they do at
|
|
1485
|
-
* runtime will provide the type support for them.
|
|
1486
|
-
*/
|
|
1487
|
-
(val) => {
|
|
1488
|
-
const keys = Array.isArray(props) ? props : Object.keys(props).filter((i) => typeof i === "string");
|
|
1489
|
-
return (isFunction(val) || isObject(val)) && keys.every((k) => k in val) ? true : false;
|
|
1490
|
-
}
|
|
1491
|
-
);
|
|
1492
|
-
|
|
1493
|
-
// dist/runtime/type-guards/isDoneFn.js
|
|
1494
|
-
var isDoneFn = (val) => {
|
|
1495
|
-
return hasKeys("done")(val) && typeof val.done === "function";
|
|
1496
|
-
};
|
|
1497
|
-
|
|
1498
|
-
// dist/runtime/type-guards/isUrl.js
|
|
1499
|
-
var isUri = (val, ...protocols) => {
|
|
1500
|
-
const p = protocols.length === 0 ? valuesOf(NETWORK_PROTOCOL_LOOKUP).flat().filter((i) => i) : protocols;
|
|
1501
|
-
return isString(val) && p.some((i) => val.startsWith(`${i}://`));
|
|
1502
|
-
};
|
|
1503
|
-
var isUrl = (val, ...protocols) => {
|
|
1504
|
-
const p = protocols.length === 0 ? ["http", "https"] : protocols;
|
|
1505
|
-
return isString(val) && p.some((i) => val.startsWith(`${i}://`));
|
|
1506
|
-
};
|
|
1507
|
-
|
|
1508
|
-
// dist/runtime/type-guards/isCssAspectRatio.js
|
|
1509
|
-
var tokens = [
|
|
1510
|
-
"1",
|
|
1511
|
-
"inherit",
|
|
1512
|
-
"initial",
|
|
1513
|
-
"revert",
|
|
1514
|
-
"revert-layer",
|
|
1515
|
-
"unset",
|
|
1516
|
-
"auto"
|
|
1517
|
-
];
|
|
1518
|
-
var isRatio = (val) => /[0-9]{1,4}\s*\/\s*[0-9]{1,4}/.test(val);
|
|
1519
|
-
var isCssAspectRatio = (val) => {
|
|
1520
|
-
return isString(val) && val.split(/\s+/).every((i) => tokens.includes(i) || isRatio(i));
|
|
1521
|
-
};
|
|
1522
|
-
|
|
1523
|
-
// dist/runtime/type-guards/isInlineSvg.js
|
|
1524
|
-
var isInlineSvg = (v) => {
|
|
1525
|
-
return isString(v) && v.trim().startsWith(`<svg`) && v.trim().endsWith(`</svg>`);
|
|
1526
|
-
};
|
|
1527
|
-
|
|
1528
|
-
// dist/runtime/type-guards/youtube.js
|
|
1529
|
-
var isYouTubeUrl = (val) => {
|
|
1530
|
-
return isString(val) && (val.startsWith("https://www.youtube.com") || val.startsWith("https://youtube.com") || val.startsWith("https://youtu.be"));
|
|
1531
|
-
};
|
|
1532
|
-
var isYouTubeShareUrl = (val) => {
|
|
1533
|
-
return isString(val) && val.startsWith(`https://youtu.be`);
|
|
1534
|
-
};
|
|
1535
|
-
var isYouTubeVideoUrl = (val) => {
|
|
1536
|
-
return isString(val) && (val.startsWith("https://www.youtube.com") || val.startsWith("https://youtube.com") || val.startsWith("https://youtu.be"));
|
|
1537
|
-
};
|
|
1538
|
-
var isYouTubePlaylistUrl = (val) => {
|
|
1539
|
-
return isString(val) && (val === `https://www.youtube.com/feed/playlists` || val === `https://youtube.com/feed/playlists` || val === `https://www.youtube.com/channel/playlists` || val === `https://youtube.com/channel/playlists` || val.startsWith(`https://www.youtube.com/@`) && val.endsWith(`/playlists`) || val.startsWith(`https://youtube.com/@`) && val.endsWith(`/playlists`));
|
|
1540
|
-
};
|
|
1541
|
-
var feed_map = (type) => {
|
|
1542
|
-
return isUndefined(type) ? `/feed` : type === "liked" ? `/playlist?list=LL` : ["history", "playlists", "trending", "subscriptions"].includes(type) ? `/feed/${type}` : `/feed/`;
|
|
1543
|
-
};
|
|
1544
|
-
var isYouTubeFeedUrl = (val, kind) => {
|
|
1545
|
-
return isString(val) && (val.startsWith(`https://www.youtube.com/${feed_map(kind)}`) || val.startsWith(`https://youtube.com/feed${feed_map(kind)}`));
|
|
1546
|
-
};
|
|
1547
|
-
|
|
1548
|
-
// dist/runtime/literals/box.js
|
|
1549
|
-
function box(value) {
|
|
1550
|
-
const rtn = {
|
|
1551
|
-
__type: "box",
|
|
1552
|
-
value,
|
|
1553
|
-
unbox: (...p) => {
|
|
1554
|
-
return typeof value === "function" ? value(...p) : value;
|
|
1555
|
-
}
|
|
1556
|
-
};
|
|
1557
|
-
return rtn;
|
|
1558
|
-
}
|
|
1559
|
-
function isBox(thing) {
|
|
1560
|
-
return typeof thing === "object" && "__type" in thing && thing.__type === "box";
|
|
1561
|
-
}
|
|
1562
|
-
function boxDictionaryValues(dict2) {
|
|
1563
|
-
const keys = Object.keys(dict2);
|
|
1564
|
-
return keys.reduce((acc, key) => ({ ...acc, [key]: box(dict2[key]) }), {});
|
|
1565
|
-
}
|
|
1566
|
-
function unbox(val) {
|
|
1567
|
-
return isBox(val) ? val.value : val;
|
|
1568
|
-
}
|
|
1569
|
-
|
|
1570
|
-
// dist/runtime/literals/identity.js
|
|
1571
|
-
var identity = (v) => v;
|
|
1572
|
-
|
|
1573
|
-
// dist/runtime/literals/literal.js
|
|
1574
|
-
function idLiteral(o) {
|
|
1575
|
-
return { ...o, id: o.id };
|
|
1576
|
-
}
|
|
1577
|
-
function nameLiteral(o) {
|
|
1578
|
-
return o;
|
|
1579
|
-
}
|
|
1580
|
-
function kindLiteral(o) {
|
|
1581
|
-
return o;
|
|
1582
|
-
}
|
|
1583
|
-
function idTypeGuard(_o) {
|
|
1584
|
-
return true;
|
|
1585
|
-
}
|
|
1586
|
-
function literal(obj) {
|
|
1587
|
-
return obj;
|
|
1588
|
-
}
|
|
1589
|
-
|
|
1590
|
-
// dist/runtime/literals/stripTrailing.js
|
|
1591
|
-
var switchType = (content) => (val) => {
|
|
1592
|
-
return typeof content === "number" ? Number(val) : val;
|
|
1593
|
-
};
|
|
1594
|
-
function stripTrailing(content, strip) {
|
|
1595
|
-
var _a;
|
|
1596
|
-
const re = new RegExp(`(.*)${strip}$`);
|
|
1597
|
-
return ((_a = String(content)) == null ? void 0 : _a.endsWith(String(strip))) ? switchType(content)(String(content).replace(re, "$1")) : switchType(content)(String(content));
|
|
1598
|
-
}
|
|
1599
|
-
|
|
1600
|
-
// dist/runtime/literals/stripLeading.js
|
|
1601
|
-
function stripLeading(content, strip) {
|
|
1602
|
-
const re = new RegExp(`^${strip}(.*)`);
|
|
1603
|
-
return content.startsWith(strip) ? (
|
|
1604
|
-
// starts with
|
|
1605
|
-
content.replace(re, "$1")
|
|
1606
|
-
) : (
|
|
1607
|
-
// does not
|
|
1608
|
-
content
|
|
1609
|
-
);
|
|
1711
|
+
// dist/runtime/literals/stripLeading.js
|
|
1712
|
+
function stripLeading(content, ...strip) {
|
|
1713
|
+
const stripper = strip.find((i) => content.startsWith(i));
|
|
1714
|
+
return stripper ? (
|
|
1715
|
+
// starts with
|
|
1716
|
+
content.slice(stripper.length)
|
|
1717
|
+
) : (
|
|
1718
|
+
// does not
|
|
1719
|
+
content
|
|
1720
|
+
);
|
|
1610
1721
|
}
|
|
1611
1722
|
|
|
1612
1723
|
// dist/runtime/literals/ensureTrailing.js
|
|
@@ -1653,6 +1764,11 @@ function narrow(...values) {
|
|
|
1653
1764
|
return values.length === 1 ? values[0] : values;
|
|
1654
1765
|
}
|
|
1655
1766
|
|
|
1767
|
+
// dist/runtime/literals/split.js
|
|
1768
|
+
function split(str, sep = "") {
|
|
1769
|
+
return str.split(sep);
|
|
1770
|
+
}
|
|
1771
|
+
|
|
1656
1772
|
// dist/runtime/literals/tuple.js
|
|
1657
1773
|
var tuple = (...values) => {
|
|
1658
1774
|
const arr = values.length === 1 ? values[0] : values;
|
|
@@ -1820,164 +1936,42 @@ var takeNumericCharacters = (content) => {
|
|
|
1820
1936
|
return content.slice(0, nonNumericIdx);
|
|
1821
1937
|
};
|
|
1822
1938
|
|
|
1823
|
-
// dist/runtime/
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
}
|
|
1939
|
+
// dist/runtime/type-conversion/asChars.js
|
|
1940
|
+
var asChars = (str) => {
|
|
1941
|
+
return str.split("");
|
|
1942
|
+
};
|
|
1828
1943
|
|
|
1829
|
-
// dist/runtime/
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1944
|
+
// dist/runtime/literals/retainChars.js
|
|
1945
|
+
var retainChars = (content, ...retain2) => {
|
|
1946
|
+
return asChars(content).filter((c) => retain2.includes(c)).join("");
|
|
1947
|
+
};
|
|
1948
|
+
|
|
1949
|
+
// dist/runtime/literals/stripChars.js
|
|
1950
|
+
var stripChars = (content, ...strip) => {
|
|
1951
|
+
return asChars(content).filter((c) => !strip.includes(c)).join("");
|
|
1952
|
+
};
|
|
1953
|
+
|
|
1954
|
+
// dist/runtime/type-conversion/mergeObjects.js
|
|
1955
|
+
function mergeObjects(defVal, override) {
|
|
1956
|
+
const intersectingKeys = sharedKeys(defVal, override);
|
|
1957
|
+
const defUnique = withoutKeys(defVal, ...intersectingKeys);
|
|
1958
|
+
const overrideUnique = withoutKeys(defVal, ...intersectingKeys);
|
|
1959
|
+
const merged = {
|
|
1960
|
+
...intersectingKeys.reduce((acc, key) => typeof override[key] === "undefined" ? { ...acc, [key]: defVal[key] } : { ...acc, [key]: override[key] }, {}),
|
|
1961
|
+
...defUnique,
|
|
1962
|
+
...overrideUnique
|
|
1837
1963
|
};
|
|
1838
|
-
return
|
|
1964
|
+
return merged;
|
|
1839
1965
|
}
|
|
1840
1966
|
|
|
1841
|
-
// dist/runtime/
|
|
1842
|
-
function
|
|
1843
|
-
return
|
|
1844
|
-
}
|
|
1845
|
-
function getValue(value, dotPath, defaultValue, handleInvalid, fullDotPath) {
|
|
1846
|
-
const pathSegments = isTruthy(dotPath) ? dotPath.split(".") : [];
|
|
1847
|
-
const idx = pathSegments[0];
|
|
1848
|
-
const hasMoreSegments = pathSegments.length > 1;
|
|
1849
|
-
const valueIsIndexable = isContainer(value) && hasIndexOf(value, idx);
|
|
1850
|
-
const hasHandler = !isSpecificConstant("not-defined")(handleInvalid);
|
|
1851
|
-
const invalidDotPath = createErrorCondition("invalid-dot-path", `The segment "${idx}" in the dotpath "${fullDotPath}" was not indexable and no default value existed on: ${JSON.stringify(value)}`);
|
|
1852
|
-
const current = hasMoreSegments ? isContainer(value) && idx in value ? getValue(indexOf(value, idx), pathSegments.join(".").replace(`${idx}.`, ""), defaultValue, handleInvalid, updatedDotPath(value, fullDotPath, idx)) : hasHandler ? handleInvalid : invalidDotPath : valueIsIndexable ? hasDefaultValue(hasDefaultValue) ? indexOf(value, idx) || defaultValue : indexOf(value, idx) : hasHandler ? handleInvalid : invalidDotPath;
|
|
1853
|
-
return current;
|
|
1854
|
-
}
|
|
1855
|
-
function get(value, dotPath, options = {
|
|
1856
|
-
defaultValue: NO_DEFAULT_VALUE,
|
|
1857
|
-
handleInvalidDotpath: NOT_DEFINED
|
|
1858
|
-
}) {
|
|
1859
|
-
const outcome = dotPath === null || dotPath === "" ? value : getValue(value, dotPath, (options == null ? void 0 : options.defaultValue) || NO_DEFAULT_VALUE, (options == null ? void 0 : options.handleInvalidDotpath) || NOT_DEFINED, String(dotPath));
|
|
1860
|
-
return outcome;
|
|
1861
|
-
}
|
|
1862
|
-
|
|
1863
|
-
// dist/runtime/dictionary/omit.js
|
|
1864
|
-
function omit(obj, ...removeKeys) {
|
|
1865
|
-
const keys = Object.keys(obj);
|
|
1866
|
-
return keys.reduce((acc, key) => removeKeys.includes(key) ? acc : {
|
|
1867
|
-
...acc,
|
|
1868
|
-
[key]: obj[key]
|
|
1869
|
-
}, {});
|
|
1870
|
-
}
|
|
1871
|
-
|
|
1872
|
-
// dist/runtime/dictionary/retain.js
|
|
1873
|
-
var retain = (dict2, ...keys) => {
|
|
1874
|
-
let output = {};
|
|
1875
|
-
for (const k of keys) {
|
|
1876
|
-
output = {
|
|
1877
|
-
...output,
|
|
1878
|
-
[k]: dict2[k]
|
|
1879
|
-
};
|
|
1880
|
-
}
|
|
1881
|
-
return output;
|
|
1882
|
-
};
|
|
1883
|
-
|
|
1884
|
-
// dist/runtime/dictionary/sharedKeys.js
|
|
1885
|
-
var sharedKeys = (a, b) => {
|
|
1886
|
-
const ka = Object.keys(a);
|
|
1887
|
-
const kb = Object.keys(b);
|
|
1888
|
-
return ka.filter((k) => kb.includes(k));
|
|
1889
|
-
};
|
|
1890
|
-
|
|
1891
|
-
// dist/runtime/dictionary/takeProp.js
|
|
1892
|
-
var takeProp = (val, prop, otherwise) => {
|
|
1893
|
-
return (isObject(val) || isArray(val)) && prop in val ? val[prop] : otherwise;
|
|
1894
|
-
};
|
|
1895
|
-
|
|
1896
|
-
// dist/runtime/dictionary/withKeys.js
|
|
1897
|
-
var withKeys = (dict2, ...keys) => retain(dict2, ...keys);
|
|
1898
|
-
|
|
1899
|
-
// dist/runtime/dictionary/withoutKeys.js
|
|
1900
|
-
var withoutKeys = (dict2, ...exclude) => omit(dict2, ...exclude);
|
|
1901
|
-
|
|
1902
|
-
// dist/runtime/dictionary/withoutValue.js
|
|
1903
|
-
function withoutValue(val) {
|
|
1904
|
-
return (obj) => {
|
|
1905
|
-
return Object.keys(obj).reduce((acc, key) => val === obj[key] ? acc : { ...acc, [key]: obj[key] }, {});
|
|
1906
|
-
};
|
|
1907
|
-
}
|
|
1908
|
-
|
|
1909
|
-
// dist/runtime/dictionary/withDefaults.js
|
|
1910
|
-
var withDefaults = (with_defaults) => (obj) => {
|
|
1911
|
-
const merged = {
|
|
1912
|
-
...with_defaults,
|
|
1913
|
-
...obj
|
|
1914
|
-
};
|
|
1915
|
-
return merged;
|
|
1916
|
-
};
|
|
1917
|
-
|
|
1918
|
-
// dist/runtime/dictionary/valuesOf.js
|
|
1919
|
-
var valuesOf = (obj) => {
|
|
1920
|
-
const values = [];
|
|
1921
|
-
for (const k of Object.keys(obj)) {
|
|
1922
|
-
values.push(obj[k]);
|
|
1923
|
-
}
|
|
1924
|
-
return values;
|
|
1925
|
-
};
|
|
1926
|
-
|
|
1927
|
-
// dist/runtime/type-guards/repos.js
|
|
1928
|
-
var isRepoSource = (v) => {
|
|
1929
|
-
return isString(v) && REPO_SOURCES.includes(v);
|
|
1930
|
-
};
|
|
1931
|
-
var isSemanticVersion = (v, allowPrefix = false) => {
|
|
1932
|
-
return isString(v) && v.split(".").length === 3 && !Number.isNaN(Number(v.split(".")[1])) && !Number.isNaN(Number(v.split(".")[2])) && (!Number.isNaN(Number(v.split(".")[0])) || allowPrefix && !Number.isNaN(Number(stripLeading(v.split(".")[0], "v").trim())));
|
|
1933
|
-
};
|
|
1934
|
-
var isRepoUrl = (val) => {
|
|
1935
|
-
const baseUrls = valuesOf(REPO_SOURCE_LOOKUP).flat();
|
|
1936
|
-
return isString(val) && baseUrls.every((u) => val === u || val.startsWith(`${u}/`));
|
|
1937
|
-
};
|
|
1938
|
-
var isGithubUrl = (val) => {
|
|
1939
|
-
const baseUrls = REPO_SOURCE_LOOKUP["github"];
|
|
1940
|
-
return isString(val) && baseUrls.every((u) => val === u || val.startsWith(`${u}/`));
|
|
1941
|
-
};
|
|
1942
|
-
var isGithubRepoUrl = (val) => {
|
|
1943
|
-
const baseUrls = [""];
|
|
1944
|
-
return isString(val) && baseUrls.every((u) => val === u || val.startsWith(`${u}/`));
|
|
1945
|
-
};
|
|
1946
|
-
var isBitbucketUrl = (val) => {
|
|
1947
|
-
const baseUrls = REPO_SOURCE_LOOKUP["bitbucket"];
|
|
1948
|
-
return isString(val) && baseUrls.every((u) => val === u || val.startsWith(`${u}/`));
|
|
1949
|
-
};
|
|
1950
|
-
var isCodeCommitUrl = (val) => {
|
|
1951
|
-
const baseUrls = REPO_SOURCE_LOOKUP["codecommit"];
|
|
1952
|
-
return isString(val) && baseUrls.every((u) => val === u || val.startsWith(`${u}/`));
|
|
1953
|
-
};
|
|
1954
|
-
|
|
1955
|
-
// dist/runtime/type-conversion/asChars.js
|
|
1956
|
-
var asChars = (str) => {
|
|
1957
|
-
return str.split("");
|
|
1958
|
-
};
|
|
1959
|
-
|
|
1960
|
-
// dist/runtime/type-guards/isAlpha.js
|
|
1961
|
-
var isAlpha = (value) => {
|
|
1962
|
-
return isString(value) && split(value).every((v) => ALPHA_CHARS.includes(v));
|
|
1963
|
-
};
|
|
1964
|
-
|
|
1965
|
-
// dist/runtime/type-conversion/mergeObjects.js
|
|
1966
|
-
function mergeObjects(defVal, override) {
|
|
1967
|
-
const intersectingKeys = sharedKeys(defVal, override);
|
|
1968
|
-
const defUnique = withoutKeys(defVal, ...intersectingKeys);
|
|
1969
|
-
const overrideUnique = withoutKeys(defVal, ...intersectingKeys);
|
|
1970
|
-
const merged = {
|
|
1971
|
-
...intersectingKeys.reduce((acc, key) => typeof override[key] === "undefined" ? { ...acc, [key]: defVal[key] } : { ...acc, [key]: override[key] }, {}),
|
|
1972
|
-
...defUnique,
|
|
1973
|
-
...overrideUnique
|
|
1974
|
-
};
|
|
1975
|
-
return merged;
|
|
1967
|
+
// dist/runtime/type-conversion/optional.js
|
|
1968
|
+
function optional(...values) {
|
|
1969
|
+
return values.length === 1 ? values[0] : values;
|
|
1976
1970
|
}
|
|
1977
1971
|
|
|
1978
|
-
// dist/runtime/type-
|
|
1979
|
-
function
|
|
1980
|
-
return
|
|
1972
|
+
// dist/runtime/type-guards/isUndefined.js
|
|
1973
|
+
function isUndefined(value) {
|
|
1974
|
+
return typeof value === "undefined" ? true : false;
|
|
1981
1975
|
}
|
|
1982
1976
|
|
|
1983
1977
|
// dist/runtime/type-conversion/mergeScalars.js
|
|
@@ -2041,206 +2035,108 @@ var ip6GroupExpansion = (ip) => {
|
|
|
2041
2035
|
return stripTrailing(ip.replaceAll("::", ":0000:"), ":");
|
|
2042
2036
|
};
|
|
2043
2037
|
|
|
2044
|
-
// dist/runtime/
|
|
2045
|
-
var
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
// dist/runtime/meta/youtube-meta.js
|
|
2050
|
-
var youtube = (url) => {
|
|
2051
|
-
return isYouTubeUrl(url) ? {
|
|
2052
|
-
url,
|
|
2053
|
-
isYouTubeUrl: true,
|
|
2054
|
-
isShareUrl: isYouTubeShareUrl(url)
|
|
2055
|
-
} : {
|
|
2056
|
-
url,
|
|
2057
|
-
isYouTubeUrl: false
|
|
2058
|
-
};
|
|
2038
|
+
// dist/runtime/literals/retainWhile.js
|
|
2039
|
+
var retainWhile = (content, ...retain2) => {
|
|
2040
|
+
const stopIdx = asChars(content).findIndex((c) => !retain2.includes(c));
|
|
2041
|
+
return content.slice(0, stopIdx);
|
|
2059
2042
|
};
|
|
2060
2043
|
|
|
2061
|
-
// dist/runtime/
|
|
2062
|
-
var
|
|
2063
|
-
|
|
2064
|
-
const proto = PROTOCOLS.find((p) => url.startsWith(`${p}://`));
|
|
2065
|
-
return proto;
|
|
2066
|
-
};
|
|
2067
|
-
var removeUrlProtocol = (url) => {
|
|
2068
|
-
return stripBefore(url, "://");
|
|
2044
|
+
// dist/runtime/literals/asPhoneNumber.js
|
|
2045
|
+
var getPhoneCountryCode = (phone) => {
|
|
2046
|
+
return phone.trim().startsWith("+") || phone.trim().startsWith("00") ? retainWhile(stripLeading(stripLeading(phone.trim(), "+"), "00"), ...NUMERIC_CHAR) : "";
|
|
2069
2047
|
};
|
|
2070
|
-
var
|
|
2071
|
-
|
|
2072
|
-
return
|
|
2048
|
+
var removePhoneCountryCode = (phone) => {
|
|
2049
|
+
const countryCode = getPhoneCountryCode(phone);
|
|
2050
|
+
return countryCode !== "" ? stripLeading(stripLeading(phone.trim(), "+", "00"), countryCode).trim() : phone.trim();
|
|
2073
2051
|
};
|
|
2074
|
-
var
|
|
2075
|
-
const
|
|
2076
|
-
|
|
2052
|
+
var convert = (countryCode, phone, delimiter, para) => {
|
|
2053
|
+
const parts = stripChars(phone, "(", ")").trim().split(/[-. ]/);
|
|
2054
|
+
const isRegional = parts.length === 2 ? true : false;
|
|
2055
|
+
const isCountry = parts.length === 3 ? true : false;
|
|
2056
|
+
const isShortCode = parts.length === 1 && asChars(phone).length < 7 ? true : false;
|
|
2057
|
+
const replacement = isShortCode ? phone : isRegional ? parts.join(delimiter) : isCountry && para ? `(${parts[0]}) ${parts.slice(1).join(delimiter)}` : isCountry ? parts.join(delimiter) : void 0;
|
|
2058
|
+
if (!replacement) {
|
|
2059
|
+
throw new Error(`invalid phone number: ${phone}. Unable to parse!`);
|
|
2060
|
+
}
|
|
2061
|
+
return countryCode === "" ? replacement : `+${countryCode} ${replacement}`;
|
|
2077
2062
|
};
|
|
2078
|
-
var
|
|
2079
|
-
|
|
2080
|
-
|
|
2063
|
+
var asPhoneNumber = (phone, format = "Dotted (e.g., 456.555.1212)") => {
|
|
2064
|
+
if (!isPhoneNumber(phone)) {
|
|
2065
|
+
throw new Error(`Invalid phone number presented to asPhoneNumber(phone,format)!`);
|
|
2066
|
+
}
|
|
2067
|
+
const countryCode = getPhoneCountryCode(phone);
|
|
2068
|
+
const remaining = removePhoneCountryCode(phone);
|
|
2069
|
+
let result2;
|
|
2070
|
+
switch (format) {
|
|
2071
|
+
case "Dashed (e.g., 456-555-1212)":
|
|
2072
|
+
result2 = convert(countryCode, remaining, "-", false);
|
|
2073
|
+
break;
|
|
2074
|
+
case "Dotted (e.g., 456.555.1212)":
|
|
2075
|
+
result2 = convert(countryCode, remaining, ".", false);
|
|
2076
|
+
break;
|
|
2077
|
+
case "ParaDashed (e.g., (456) 555-1212)":
|
|
2078
|
+
result2 = convert(countryCode, remaining, "-", true);
|
|
2079
|
+
break;
|
|
2080
|
+
case "ParaSpaced (e.g., (456) 555 1212)":
|
|
2081
|
+
result2 = convert(countryCode, remaining, " ", true);
|
|
2082
|
+
break;
|
|
2083
|
+
}
|
|
2084
|
+
return result2;
|
|
2081
2085
|
};
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2086
|
+
|
|
2087
|
+
// dist/runtime/errors/kindedError.js
|
|
2088
|
+
var kindError = (kind, _defineContext) => (msg, context) => {
|
|
2089
|
+
const err = new Error(msg);
|
|
2090
|
+
err.name = toPascalCase(kind);
|
|
2091
|
+
err.kind = toKebabCase(kind);
|
|
2092
|
+
err.__kind = "KindError";
|
|
2093
|
+
err.context = context;
|
|
2094
|
+
return err;
|
|
2085
2095
|
};
|
|
2086
|
-
|
|
2096
|
+
|
|
2097
|
+
// dist/runtime/functional/result.js
|
|
2098
|
+
var result = "NOT READY";
|
|
2099
|
+
|
|
2100
|
+
// dist/runtime/functions/fnMeta.js
|
|
2101
|
+
var fnMeta = (func) => {
|
|
2102
|
+
const fn2 = (...args) => func(...args);
|
|
2103
|
+
const props = Object.keys(fn2).reduce((acc, key) => ({ ...acc, [key]: fn2[key] }), {});
|
|
2087
2104
|
return {
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
protocol: getUrlProtocol(url),
|
|
2091
|
-
path: getUrlPath(url),
|
|
2092
|
-
queryParameters: getUrlQueryParams(url),
|
|
2093
|
-
port: getUrlPort(url),
|
|
2094
|
-
source: getUrlSource(url),
|
|
2095
|
-
isIpAddress: isIpAddress(getUrlSource(url)),
|
|
2096
|
-
isIp4Address: isIp4Address(getUrlSource(url)),
|
|
2097
|
-
isIp6Address: isIp6Address(getUrlSource(url))
|
|
2105
|
+
fn: fn2,
|
|
2106
|
+
props
|
|
2098
2107
|
};
|
|
2099
2108
|
};
|
|
2100
2109
|
|
|
2101
|
-
// dist/runtime/
|
|
2102
|
-
var
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
var
|
|
2106
|
-
const
|
|
2107
|
-
return
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
return isString(val) && asChars(removeUrlProtocol(val)).some((i) => i === ":");
|
|
2114
|
-
};
|
|
2115
|
-
var isUrlPath = (val) => {
|
|
2116
|
-
return isString(val) && (val === "" || val.startsWith("/")) && asChars(val).every((c) => isAlpha(c) || isNumericString(c) || c === "_" || c === "@" || c === "." || c === "-");
|
|
2117
|
-
};
|
|
2118
|
-
var isDomainName = (val) => {
|
|
2119
|
-
return isString(val) && val.split(".").filter((i) => i).length > 1 && isString(val.split(".").filter((i) => i).pop()) && asChars(val.split(".").filter((i) => i).pop()).length > 1 && val.split(".").filter((i) => i).every((i) => isAlpha(i) || isNumericString(i) || i === "-" || i === "_");
|
|
2120
|
-
};
|
|
2121
|
-
var isUrlSource = (val) => {
|
|
2122
|
-
return isDomainName(val) || isIpAddress(val);
|
|
2110
|
+
// dist/runtime/functions/wrapFn.js
|
|
2111
|
+
var wrapFn = "NOT IMPLEMENTED";
|
|
2112
|
+
|
|
2113
|
+
// dist/runtime/initializers/addFnToProps.js
|
|
2114
|
+
var addPropsToFn = (fn2, clone_fn) => {
|
|
2115
|
+
const localFn = clone_fn ? (...args) => fn2(args) : fn2;
|
|
2116
|
+
return (obj) => {
|
|
2117
|
+
for (const k in obj) {
|
|
2118
|
+
localFn[k] = obj[k];
|
|
2119
|
+
}
|
|
2120
|
+
return localFn;
|
|
2121
|
+
};
|
|
2123
2122
|
};
|
|
2124
2123
|
|
|
2125
|
-
// dist/runtime/
|
|
2126
|
-
var
|
|
2127
|
-
|
|
2124
|
+
// dist/runtime/initializers/addPropsToFn.js
|
|
2125
|
+
var addFnToProps = (props, _clone_fn) => (fn2) => {
|
|
2126
|
+
const localFn = (...args) => fn2(args);
|
|
2127
|
+
for (const k in props) {
|
|
2128
|
+
localFn[k] = props[k];
|
|
2129
|
+
}
|
|
2130
|
+
return localFn;
|
|
2128
2131
|
};
|
|
2129
2132
|
|
|
2130
|
-
// dist/runtime/
|
|
2131
|
-
var
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
return isArray(value) ? isEqual(value.length)(len) ? true : false : isString(value) ? isEqual(value.length)(len) ? true : false : isObject(value) ? isEqual(keysOf(value))(len) ? true : false : false;
|
|
2138
|
-
}
|
|
2139
|
-
|
|
2140
|
-
// dist/runtime/type-guards/higher-order/isTypeOf.js
|
|
2141
|
-
var isTypeOf = (type) => (value) => {
|
|
2142
|
-
return typeof value === type;
|
|
2143
|
-
};
|
|
2144
|
-
|
|
2145
|
-
// dist/runtime/type-guards/higher-order/isTuple.js
|
|
2146
|
-
var isTuple = (...tuple3) => {
|
|
2147
|
-
const results = tuple3.map((i) => i(ShapeApiImplementation)).map((i) => isDoneFn(i) ? i.done() : i);
|
|
2148
|
-
return (v) => {
|
|
2149
|
-
return isArray(v) && v.length === results.length && results.every(isShape) && v.every((item, idx) => isSameTypeOf(results[idx])(item));
|
|
2150
|
-
};
|
|
2151
|
-
};
|
|
2152
|
-
|
|
2153
|
-
// dist/runtime/boolean-logic/ifUndefined.js
|
|
2154
|
-
function ifUndefined(val, ifUndefined2, ifDefined2) {
|
|
2155
|
-
return isUndefined(val) ? ifUndefined2() : ifDefined2(val);
|
|
2156
|
-
}
|
|
2157
|
-
function ifDefined(val, ifVal, elseVal) {
|
|
2158
|
-
return isDefined(val) ? ifVal : elseVal;
|
|
2159
|
-
}
|
|
2160
|
-
|
|
2161
|
-
// dist/runtime/boolean-logic/ifArrayPartial.js
|
|
2162
|
-
function ifArrayPartial() {
|
|
2163
|
-
return (isAnArray, isNotAnArray) => {
|
|
2164
|
-
return (val) => ifArray(val, isAnArray, isNotAnArray);
|
|
2165
|
-
};
|
|
2166
|
-
}
|
|
2167
|
-
|
|
2168
|
-
// dist/runtime/boolean-logic/handleDoneFn.js
|
|
2169
|
-
var handleDoneFn = (val, call_bare_fn = false) => {
|
|
2170
|
-
return isObject(val) || isFunction(val) ? isDoneFn(val) ? val.done() : isFunction(val) ? call_bare_fn ? val() : val : val : isFunction(val) ? call_bare_fn ? val() : val : val;
|
|
2171
|
-
};
|
|
2172
|
-
|
|
2173
|
-
// dist/runtime/combinators/and.js
|
|
2174
|
-
var and = (...values) => {
|
|
2175
|
-
return values.every((i) => i === true);
|
|
2176
|
-
};
|
|
2177
|
-
|
|
2178
|
-
// dist/runtime/combinators/or.js
|
|
2179
|
-
function or(...conditions) {
|
|
2180
|
-
const values = conditions.some((v) => v === true ? true : false);
|
|
2181
|
-
return values;
|
|
2182
|
-
}
|
|
2183
|
-
|
|
2184
|
-
// dist/runtime/errors/createErrorCondition.js
|
|
2185
|
-
var createErrorCondition = (kind, msg = "", utility = "") => {
|
|
2186
|
-
return {
|
|
2187
|
-
__kind: "ErrorCondition",
|
|
2188
|
-
kind,
|
|
2189
|
-
msg,
|
|
2190
|
-
utility
|
|
2191
|
-
};
|
|
2192
|
-
};
|
|
2193
|
-
|
|
2194
|
-
// dist/runtime/errors/kindedError.js
|
|
2195
|
-
var kindError = (kind, _defineContext) => (msg, context) => {
|
|
2196
|
-
const err = new Error(msg);
|
|
2197
|
-
err.name = toPascalCase(kind);
|
|
2198
|
-
err.kind = toKebabCase(kind);
|
|
2199
|
-
err.__kind = "KindError";
|
|
2200
|
-
err.context = context;
|
|
2201
|
-
return err;
|
|
2202
|
-
};
|
|
2203
|
-
|
|
2204
|
-
// dist/runtime/functional/result.js
|
|
2205
|
-
var result = "NOT READY";
|
|
2206
|
-
|
|
2207
|
-
// dist/runtime/functions/fnMeta.js
|
|
2208
|
-
var fnMeta = (func) => {
|
|
2209
|
-
const fn2 = (...args) => func(...args);
|
|
2210
|
-
const props = Object.keys(fn2).reduce((acc, key) => ({ ...acc, [key]: fn2[key] }), {});
|
|
2211
|
-
return {
|
|
2212
|
-
fn: fn2,
|
|
2213
|
-
props
|
|
2214
|
-
};
|
|
2215
|
-
};
|
|
2216
|
-
|
|
2217
|
-
// dist/runtime/initializers/addFnToProps.js
|
|
2218
|
-
var addPropsToFn = (fn2, clone_fn) => {
|
|
2219
|
-
const localFn = clone_fn ? (...args) => fn2(args) : fn2;
|
|
2220
|
-
return (obj) => {
|
|
2221
|
-
for (const k in obj) {
|
|
2222
|
-
localFn[k] = obj[k];
|
|
2223
|
-
}
|
|
2224
|
-
return localFn;
|
|
2225
|
-
};
|
|
2226
|
-
};
|
|
2227
|
-
|
|
2228
|
-
// dist/runtime/initializers/addPropsToFn.js
|
|
2229
|
-
var addFnToProps = (props, _clone_fn) => (fn2) => {
|
|
2230
|
-
const localFn = (...args) => fn2(args);
|
|
2231
|
-
for (const k in props) {
|
|
2232
|
-
localFn[k] = props[k];
|
|
2233
|
-
}
|
|
2234
|
-
return localFn;
|
|
2235
|
-
};
|
|
2236
|
-
|
|
2237
|
-
// dist/runtime/initializers/createFnWithProps.js
|
|
2238
|
-
var createFnWithProps = (fn2, props, narrowing = false) => {
|
|
2239
|
-
const fnWithProps = fn2;
|
|
2240
|
-
for (const prop of keysOf(props)) {
|
|
2241
|
-
fnWithProps[prop] = props[prop];
|
|
2242
|
-
}
|
|
2243
|
-
return isTrue(narrowing) ? fnWithProps : fnWithProps;
|
|
2133
|
+
// dist/runtime/initializers/createFnWithProps.js
|
|
2134
|
+
var createFnWithProps = (fn2, props, narrowing = false) => {
|
|
2135
|
+
const fnWithProps = fn2;
|
|
2136
|
+
for (const prop of keysOf(props)) {
|
|
2137
|
+
fnWithProps[prop] = props[prop];
|
|
2138
|
+
}
|
|
2139
|
+
return isTrue(narrowing) ? fnWithProps : fnWithProps;
|
|
2244
2140
|
};
|
|
2245
2141
|
|
|
2246
2142
|
// dist/runtime/initializers/defineObj.js
|
|
@@ -2283,6 +2179,11 @@ function indexOf(val, index) {
|
|
|
2283
2179
|
return index === null ? val : isNull(idx) ? val : isArray(val) ? Number(idx) in val ? val[Number(idx)] : Never : isObject(val) ? String(idx) in val ? val[String(idx)] : Never : Never;
|
|
2284
2180
|
}
|
|
2285
2181
|
|
|
2182
|
+
// dist/runtime/boolean-logic/ifNotNull.js
|
|
2183
|
+
function ifNotNull(val, ifVal, elseVal) {
|
|
2184
|
+
return isNull(val) ? elseVal() : ifVal(val);
|
|
2185
|
+
}
|
|
2186
|
+
|
|
2286
2187
|
// dist/runtime/lists/intersection.js
|
|
2287
2188
|
function intersectWithOffset(a, b, deref) {
|
|
2288
2189
|
const aIndexable = a.every((i) => isIndexable(i));
|
|
@@ -2396,6 +2297,62 @@ var shift = (list2) => {
|
|
|
2396
2297
|
return list2.length > 0 ? [list2[0], list2.slice(1)] : void 0;
|
|
2397
2298
|
};
|
|
2398
2299
|
|
|
2300
|
+
// dist/runtime/meta/youtube-meta.js
|
|
2301
|
+
var getYouTubePageType = (url) => {
|
|
2302
|
+
return isYouTubeUrl(url) ? isYouTubeVideoUrl(url) && (hasUrlQueryParameter(url, "v") || isYouTubeShareUrl(url)) ? hasUrlQueryParameter(url, "list") ? isYouTubeShareUrl(url) ? hasUrlQueryParameter(url, "t") ? `play::video::in-list::share-link::with-timestamp` : `play::video::in-list::share-link` : `play::video::in-list` : isYouTubeShareUrl(url) ? hasUrlQueryParameter(url, "t") ? `play::video::solo::share-link::with-timestamp` : `play::video::solo::share-link` : `play::video::solo` : isYouTubeCreatorUrl(url) ? getUrlPath(url).includes("/videos") ? "creator::videos" : getUrlPath(url).includes("/playlists") ? "creator::playlists" : last(getUrlPath(url).split("/")).startsWith("@") || getUrlPath(url).includes("/featured") ? "creator::featured" : "creator::other" : isYouTubeFeedUrl(url) ? isYouTubeFeedUrl(url, "history") ? "feed::history" : isYouTubeFeedUrl(url, "playlists") ? "feed::playlists" : isYouTubeFeedUrl(url, "liked") ? "feed::liked" : isYouTubeFeedUrl(url, "subscriptions") ? "feed::subscriptions" : isYouTubeFeedUrl(url, "trending") ? "feed::trending" : "feed::other" : isYouTubeVideosInPlaylist(url) ? "playlist::show" : "other" : Never;
|
|
2303
|
+
};
|
|
2304
|
+
var youtubeMeta = (url) => {
|
|
2305
|
+
return isYouTubeUrl(url) ? {
|
|
2306
|
+
url,
|
|
2307
|
+
isYouTubeUrl: true,
|
|
2308
|
+
isShareUrl: isYouTubeShareUrl(url),
|
|
2309
|
+
pageType: getYouTubePageType(url)
|
|
2310
|
+
} : {
|
|
2311
|
+
url,
|
|
2312
|
+
isYouTubeUrl: false
|
|
2313
|
+
};
|
|
2314
|
+
};
|
|
2315
|
+
|
|
2316
|
+
// dist/runtime/meta/urlMeta.js
|
|
2317
|
+
var PROTOCOLS = Object.values(NETWORK_PROTOCOL_LOOKUP).flat().filter((i) => i !== "");
|
|
2318
|
+
var getUrlProtocol = (url) => {
|
|
2319
|
+
const proto = PROTOCOLS.find((p) => url.startsWith(`${p}://`));
|
|
2320
|
+
return proto;
|
|
2321
|
+
};
|
|
2322
|
+
var removeUrlProtocol = (url) => {
|
|
2323
|
+
return stripBefore(url, "://");
|
|
2324
|
+
};
|
|
2325
|
+
var ensurePath = (val) => val === "" ? "" : stripTrailing(ensureLeading(val, "/"), "/");
|
|
2326
|
+
var getUrlPath = (url) => {
|
|
2327
|
+
return isUrl(url) ? ensurePath(stripAfter(stripBefore(removeUrlProtocol(url), "/"), "?")) : Never;
|
|
2328
|
+
};
|
|
2329
|
+
var getUrlQueryParams = (url) => {
|
|
2330
|
+
const qp = stripBefore(url, "?");
|
|
2331
|
+
return qp === "" ? qp : `?${qp}`;
|
|
2332
|
+
};
|
|
2333
|
+
var getUrlPort = (url) => {
|
|
2334
|
+
const candidate = takeNumericCharacters(stripBefore(removeUrlProtocol(url), ":"));
|
|
2335
|
+
return candidate === "" ? "default" : Number(candidate);
|
|
2336
|
+
};
|
|
2337
|
+
var getUrlSource = (url) => {
|
|
2338
|
+
const candidate = stripAfter(stripAfter(stripAfter(removeUrlProtocol(url), "/"), "?"), ":");
|
|
2339
|
+
return isIpAddress(candidate) || isDomainName(candidate) ? candidate : Never;
|
|
2340
|
+
};
|
|
2341
|
+
var urlMeta = (url) => {
|
|
2342
|
+
return {
|
|
2343
|
+
url,
|
|
2344
|
+
isUrl: isUrl(url),
|
|
2345
|
+
protocol: getUrlProtocol(url),
|
|
2346
|
+
path: getUrlPath(url),
|
|
2347
|
+
queryParameters: getUrlQueryParams(url),
|
|
2348
|
+
port: getUrlPort(url),
|
|
2349
|
+
source: getUrlSource(url),
|
|
2350
|
+
isIpAddress: isIpAddress(getUrlSource(url)),
|
|
2351
|
+
isIp4Address: isIp4Address(getUrlSource(url)),
|
|
2352
|
+
isIp6Address: isIp6Address(getUrlSource(url))
|
|
2353
|
+
};
|
|
2354
|
+
};
|
|
2355
|
+
|
|
2399
2356
|
// dist/runtime/runtime-types/shape-helpers/addToken.js
|
|
2400
2357
|
var addToken = (token, ...params) => `<<${token}${params.length > 0 ? `::${params.join("::")}` : ""}>>`;
|
|
2401
2358
|
|
|
@@ -2496,8 +2453,8 @@ var ShapeApiImplementation = {
|
|
|
2496
2453
|
dictionary,
|
|
2497
2454
|
tuple: tuple2
|
|
2498
2455
|
};
|
|
2499
|
-
var shape = (
|
|
2500
|
-
const rtn =
|
|
2456
|
+
var shape = (cb2) => {
|
|
2457
|
+
const rtn = cb2(ShapeApiImplementation);
|
|
2501
2458
|
return handleDoneFn(isAddOrDone(rtn) ? rtn.done() : rtn);
|
|
2502
2459
|
};
|
|
2503
2460
|
var isShape = (v) => {
|
|
@@ -2574,6 +2531,11 @@ var parse = (value) => {
|
|
|
2574
2531
|
};
|
|
2575
2532
|
};
|
|
2576
2533
|
|
|
2534
|
+
// dist/runtime/type-guards/isArray.js
|
|
2535
|
+
function isArray(value) {
|
|
2536
|
+
return Array.isArray(value) === true;
|
|
2537
|
+
}
|
|
2538
|
+
|
|
2577
2539
|
// dist/runtime/sets/uniqueKeys.js
|
|
2578
2540
|
var uniqueKeys = (left, right) => {
|
|
2579
2541
|
const isNumeric = isArray(left) && isArray(right) ? true : false;
|
|
@@ -2594,6 +2556,389 @@ var uniqueKeys = (left, right) => {
|
|
|
2594
2556
|
];
|
|
2595
2557
|
};
|
|
2596
2558
|
|
|
2559
|
+
// dist/runtime/type-guards/isDefined.js
|
|
2560
|
+
function isDefined(value) {
|
|
2561
|
+
return typeof value === "undefined" ? false : true;
|
|
2562
|
+
}
|
|
2563
|
+
|
|
2564
|
+
// dist/runtime/type-guards/isFalsy.js
|
|
2565
|
+
var isFalsy = (val) => {
|
|
2566
|
+
return FALSY_VALUES.includes(val);
|
|
2567
|
+
};
|
|
2568
|
+
|
|
2569
|
+
// dist/runtime/type-guards/isNull.js
|
|
2570
|
+
function isNull(value) {
|
|
2571
|
+
return value === null ? true : false;
|
|
2572
|
+
}
|
|
2573
|
+
|
|
2574
|
+
// dist/runtime/type-guards/isNotNull.js
|
|
2575
|
+
function isNotNull(value) {
|
|
2576
|
+
return value === null ? true : false;
|
|
2577
|
+
}
|
|
2578
|
+
|
|
2579
|
+
// dist/runtime/type-guards/isTruthy.js
|
|
2580
|
+
var isTruthy = (val) => {
|
|
2581
|
+
return !FALSY_VALUES.includes(val);
|
|
2582
|
+
};
|
|
2583
|
+
|
|
2584
|
+
// dist/runtime/type-guards/isTypeTuple.js
|
|
2585
|
+
function isTypeTuple(value) {
|
|
2586
|
+
return Array.isArray(value) && value.length === 3 && typeof value[1] === "function";
|
|
2587
|
+
}
|
|
2588
|
+
|
|
2589
|
+
// dist/runtime/type-guards/isBoolean.js
|
|
2590
|
+
function isBoolean(value) {
|
|
2591
|
+
return typeof value === "boolean";
|
|
2592
|
+
}
|
|
2593
|
+
|
|
2594
|
+
// dist/runtime/type-guards/isString.js
|
|
2595
|
+
function isString(value) {
|
|
2596
|
+
return typeof value === "string";
|
|
2597
|
+
}
|
|
2598
|
+
|
|
2599
|
+
// dist/runtime/type-guards/isIndexable.js
|
|
2600
|
+
function isIndexable(value) {
|
|
2601
|
+
return Array.isArray(value) || typeof value === "object" && keysOf(value).length > 0 ? true : false;
|
|
2602
|
+
}
|
|
2603
|
+
|
|
2604
|
+
// dist/runtime/type-guards/isObject.js
|
|
2605
|
+
function isObject(value) {
|
|
2606
|
+
return typeof value === "object" && value !== null && Array.isArray(value) === false;
|
|
2607
|
+
}
|
|
2608
|
+
|
|
2609
|
+
// dist/runtime/type-guards/isTrue.js
|
|
2610
|
+
function isTrue(value) {
|
|
2611
|
+
return value === true;
|
|
2612
|
+
}
|
|
2613
|
+
|
|
2614
|
+
// dist/runtime/type-guards/isConstant.js
|
|
2615
|
+
function isConstant(value) {
|
|
2616
|
+
return isObject(value) && "_type" in value && "kind" in value && value._type === "Constant" ? true : false;
|
|
2617
|
+
}
|
|
2618
|
+
|
|
2619
|
+
// dist/runtime/type-guards/isNever.js
|
|
2620
|
+
var isNever = (val) => {
|
|
2621
|
+
return isConstant(val) && val.kind === "never";
|
|
2622
|
+
};
|
|
2623
|
+
|
|
2624
|
+
// dist/runtime/type-guards/isContainer.js
|
|
2625
|
+
function isContainer(value) {
|
|
2626
|
+
return Array.isArray(value) || isObject(value) ? true : false;
|
|
2627
|
+
}
|
|
2628
|
+
|
|
2629
|
+
// dist/runtime/type-guards/isSpecificConstant.js
|
|
2630
|
+
function isSpecificConstant(kind) {
|
|
2631
|
+
return (value) => {
|
|
2632
|
+
return isConstant(value) && value.kind === kind ? true : false;
|
|
2633
|
+
};
|
|
2634
|
+
}
|
|
2635
|
+
|
|
2636
|
+
// dist/runtime/type-guards/isReadonlyArray.js
|
|
2637
|
+
function isReadonlyArray(value) {
|
|
2638
|
+
return Array.isArray(value) === true;
|
|
2639
|
+
}
|
|
2640
|
+
|
|
2641
|
+
// dist/runtime/type-guards/hasIndexOf.js
|
|
2642
|
+
var hasIndexOf = (value, idx) => {
|
|
2643
|
+
const result2 = isObject(value) ? String(idx) in value : Array.isArray(value) ? Number(idx) in value : false;
|
|
2644
|
+
return isErrorCondition(result2, "invalid-index") ? false : result2;
|
|
2645
|
+
};
|
|
2646
|
+
|
|
2647
|
+
// dist/runtime/type-guards/isRef.js
|
|
2648
|
+
function isRef(value) {
|
|
2649
|
+
return isObject(value) && "value" in value && Array.from(Object.keys(value)).includes("_value");
|
|
2650
|
+
}
|
|
2651
|
+
|
|
2652
|
+
// dist/runtime/type-guards/isFalse.js
|
|
2653
|
+
function isFalse(i) {
|
|
2654
|
+
return typeof i === "boolean" && !i;
|
|
2655
|
+
}
|
|
2656
|
+
|
|
2657
|
+
// dist/runtime/type-guards/hasDefaultValue.js
|
|
2658
|
+
function hasDefaultValue(value) {
|
|
2659
|
+
const noDefault = isSpecificConstant("no-default-value");
|
|
2660
|
+
return noDefault(value) ? false : true;
|
|
2661
|
+
}
|
|
2662
|
+
|
|
2663
|
+
// dist/runtime/type-guards/isNumericString.js
|
|
2664
|
+
function isNumericString(value) {
|
|
2665
|
+
const validChars = [...NUMERIC_CHAR, "x", "E"];
|
|
2666
|
+
return typeof value === "string" && split(value).every((i) => validChars.includes(i));
|
|
2667
|
+
}
|
|
2668
|
+
|
|
2669
|
+
// dist/runtime/type-guards/isFnWithParams.js
|
|
2670
|
+
function isFnWithParams(input) {
|
|
2671
|
+
var _a;
|
|
2672
|
+
return typeof input === "function" && ((_a = Object.keys(input)) == null ? void 0 : _a.length) > 0;
|
|
2673
|
+
}
|
|
2674
|
+
|
|
2675
|
+
// dist/runtime/type-guards/isFunction.js
|
|
2676
|
+
function isFunction(value) {
|
|
2677
|
+
return typeof value === "function" ? true : false;
|
|
2678
|
+
}
|
|
2679
|
+
|
|
2680
|
+
// dist/runtime/type-guards/isNumber.js
|
|
2681
|
+
function isNumber(value) {
|
|
2682
|
+
return typeof value === "number";
|
|
2683
|
+
}
|
|
2684
|
+
|
|
2685
|
+
// dist/runtime/type-guards/isNothing.js
|
|
2686
|
+
function isNothing(val) {
|
|
2687
|
+
return val === null || val === void 0 ? true : false;
|
|
2688
|
+
}
|
|
2689
|
+
|
|
2690
|
+
// dist/runtime/type-guards/isSymbol.js
|
|
2691
|
+
function isSymbol(value) {
|
|
2692
|
+
return typeof value === "symbol";
|
|
2693
|
+
}
|
|
2694
|
+
|
|
2695
|
+
// dist/runtime/type-guards/isScalar.js
|
|
2696
|
+
function isScalar(value) {
|
|
2697
|
+
return isString(value) || isNumber(value) || isSymbol(value) || isNull(value);
|
|
2698
|
+
}
|
|
2699
|
+
|
|
2700
|
+
// dist/runtime/type-guards/isTypeToken.js
|
|
2701
|
+
function isTypeToken(val) {
|
|
2702
|
+
if (isString(val) && startsWith("<<")(val) && endsWith(">>")(val)) {
|
|
2703
|
+
return true;
|
|
2704
|
+
} else {
|
|
2705
|
+
return false;
|
|
2706
|
+
}
|
|
2707
|
+
}
|
|
2708
|
+
|
|
2709
|
+
// dist/runtime/type-guards/isErrorCondition.js
|
|
2710
|
+
function isErrorCondition(value, kind = null) {
|
|
2711
|
+
return isObject(value) && "__kind" in value && value.__kind === "ErrorCondition" && "kind" in value ? kind !== null ? value["kind"] === kind : true : false;
|
|
2712
|
+
}
|
|
2713
|
+
|
|
2714
|
+
// dist/runtime/type-guards/hasKeys.js
|
|
2715
|
+
var hasKeys = (...props) => (
|
|
2716
|
+
/**
|
|
2717
|
+
* Type guard which validates whether the configured properties
|
|
2718
|
+
* exist on a given `Record<ObjectKey, unknown` and if they do at
|
|
2719
|
+
* runtime will provide the type support for them.
|
|
2720
|
+
*/
|
|
2721
|
+
(val) => {
|
|
2722
|
+
const keys = Array.isArray(props) ? props : Object.keys(props).filter((i) => typeof i === "string");
|
|
2723
|
+
return (isFunction(val) || isObject(val)) && keys.every((k) => k in val) ? true : false;
|
|
2724
|
+
}
|
|
2725
|
+
);
|
|
2726
|
+
|
|
2727
|
+
// dist/runtime/type-guards/isDoneFn.js
|
|
2728
|
+
var isDoneFn = (val) => {
|
|
2729
|
+
return hasKeys("done")(val) && typeof val.done === "function";
|
|
2730
|
+
};
|
|
2731
|
+
|
|
2732
|
+
// dist/runtime/type-guards/isUrl.js
|
|
2733
|
+
var isUri = (val, ...protocols) => {
|
|
2734
|
+
const p = protocols.length === 0 ? valuesOf(NETWORK_PROTOCOL_LOOKUP).flat().filter((i) => i) : protocols;
|
|
2735
|
+
return isString(val) && p.some((i) => val.startsWith(`${i}://`));
|
|
2736
|
+
};
|
|
2737
|
+
var isUrl = (val, ...protocols) => {
|
|
2738
|
+
const p = protocols.length === 0 ? ["http", "https"] : protocols;
|
|
2739
|
+
return isString(val) && p.some((i) => val.startsWith(`${i}://`));
|
|
2740
|
+
};
|
|
2741
|
+
|
|
2742
|
+
// dist/runtime/type-guards/isCssAspectRatio.js
|
|
2743
|
+
var tokens = [
|
|
2744
|
+
"1",
|
|
2745
|
+
"inherit",
|
|
2746
|
+
"initial",
|
|
2747
|
+
"revert",
|
|
2748
|
+
"revert-layer",
|
|
2749
|
+
"unset",
|
|
2750
|
+
"auto"
|
|
2751
|
+
];
|
|
2752
|
+
var isRatio = (val) => /[0-9]{1,4}\s*\/\s*[0-9]{1,4}/.test(val);
|
|
2753
|
+
var isCssAspectRatio = (val) => {
|
|
2754
|
+
return isString(val) && val.split(/\s+/).every((i) => tokens.includes(i) || isRatio(i));
|
|
2755
|
+
};
|
|
2756
|
+
|
|
2757
|
+
// dist/runtime/type-guards/isInlineSvg.js
|
|
2758
|
+
var isInlineSvg = (v) => {
|
|
2759
|
+
return isString(v) && v.trim().startsWith(`<svg`) && v.trim().endsWith(`</svg>`);
|
|
2760
|
+
};
|
|
2761
|
+
|
|
2762
|
+
// dist/runtime/type-guards/isAlpha.js
|
|
2763
|
+
var isAlpha = (value) => {
|
|
2764
|
+
return isString(value) && split(value).every((v) => ALPHA_CHARS.includes(v));
|
|
2765
|
+
};
|
|
2766
|
+
|
|
2767
|
+
// dist/runtime/type-guards/isHexadecimal.js
|
|
2768
|
+
var isHexadecimal = (val) => {
|
|
2769
|
+
return isString(val) && asChars(val).every((i) => isNumericString(i) || ["a", "b", "c", "d", "e", "f"].includes(i.toLowerCase()));
|
|
2770
|
+
};
|
|
2771
|
+
|
|
2772
|
+
// dist/runtime/type-guards/network-tg.js
|
|
2773
|
+
var isIp4Address = (val) => {
|
|
2774
|
+
return isString(val) && val.split(".").length === 4 && val.split(".").every((i) => isNumericString(i)) && val.split(".").every((i) => Number(i) >= 0 && Number(i) <= 255);
|
|
2775
|
+
};
|
|
2776
|
+
var isIp6Address = (val) => {
|
|
2777
|
+
const expanded = isString(val) ? ip6GroupExpansion(val) : "";
|
|
2778
|
+
return isString(val) && isString(expanded) && expanded.split(":").every((i) => asChars(i).length >= 1 && asChars(i).length <= 4) && expanded.split(":").every((i) => isHexadecimal(i));
|
|
2779
|
+
};
|
|
2780
|
+
var isIpAddress = (val) => {
|
|
2781
|
+
return isIp4Address(val) || isIp6Address(val);
|
|
2782
|
+
};
|
|
2783
|
+
var hasUrlPort = (val) => {
|
|
2784
|
+
return isString(val) && asChars(removeUrlProtocol(val)).some((i) => i === ":");
|
|
2785
|
+
};
|
|
2786
|
+
var isUrlPath = (val) => {
|
|
2787
|
+
return isString(val) && (val === "" || val.startsWith("/")) && asChars(val).every((c) => isAlpha(c) || isNumericString(c) || c === "_" || c === "@" || c === "." || c === "-");
|
|
2788
|
+
};
|
|
2789
|
+
var isDomainName = (val) => {
|
|
2790
|
+
return isString(val) && val.split(".").filter((i) => i).length > 1 && isString(val.split(".").filter((i) => i).pop()) && asChars(val.split(".").filter((i) => i).pop()).length > 1 && val.split(".").filter((i) => i).every((i) => isAlpha(i) || isNumericString(i) || i === "-" || i === "_");
|
|
2791
|
+
};
|
|
2792
|
+
var isUrlSource = (val) => {
|
|
2793
|
+
return isDomainName(val) || isIpAddress(val);
|
|
2794
|
+
};
|
|
2795
|
+
var hasUrlQueryParameter = (val, prop) => {
|
|
2796
|
+
const re = new RegExp(`${prop}=`);
|
|
2797
|
+
return isString(val) && re.test(getUrlQueryParams(val));
|
|
2798
|
+
};
|
|
2799
|
+
|
|
2800
|
+
// dist/runtime/type-guards/youtube.js
|
|
2801
|
+
var isYouTubeUrl = (val) => {
|
|
2802
|
+
return isString(val) && (val.startsWith("https://www.youtube.com") || val.startsWith("https://youtube.com") || val.startsWith("https://youtu.be"));
|
|
2803
|
+
};
|
|
2804
|
+
var isYouTubeShareUrl = (val) => {
|
|
2805
|
+
return isString(val) && val.startsWith(`https://youtu.be`);
|
|
2806
|
+
};
|
|
2807
|
+
var isYouTubeVideoUrl = (val) => {
|
|
2808
|
+
return isString(val) && (val.startsWith("https://www.youtube.com") || val.startsWith("https://youtube.com") || val.startsWith("https://youtu.be"));
|
|
2809
|
+
};
|
|
2810
|
+
var isYouTubePlaylistUrl = (val) => {
|
|
2811
|
+
return isString(val) && (val === `https://www.youtube.com/feed/playlists` || val === `https://youtube.com/feed/playlists` || val === `https://www.youtube.com/channel/playlists` || val === `https://youtube.com/channel/playlists` || val.startsWith(`https://www.youtube.com/@`) && val.endsWith(`/playlists`) || val.startsWith(`https://youtube.com/@`) && val.endsWith(`/playlists`));
|
|
2812
|
+
};
|
|
2813
|
+
var feed_map = (type) => {
|
|
2814
|
+
return isUndefined(type) ? `/feed` : type === "liked" ? `/playlist?list=LL` : ["history", "playlists", "trending", "subscriptions"].includes(type) ? `/feed/${type}` : `/feed/`;
|
|
2815
|
+
};
|
|
2816
|
+
var isYouTubeFeedUrl = (val, type = void 0) => {
|
|
2817
|
+
return isString(val) && (val.startsWith(`https://www.youtube.com${feed_map(type)}`) || val.startsWith(`https://youtube.com${feed_map(type)}`));
|
|
2818
|
+
};
|
|
2819
|
+
var isYouTubeCreatorUrl = (url) => {
|
|
2820
|
+
return isString(url) && (url.startsWith(`https://www.youtube.com/@`) || url.startsWith(`https://youtube.com/@`) || url.startsWith(`https://www.youtube.com/channel/`));
|
|
2821
|
+
};
|
|
2822
|
+
var isYouTubeVideosInPlaylist = (val) => {
|
|
2823
|
+
return isString(val) && (val.startsWith(`https://www.youtube.com/playlist?`) || val.startsWith(`https://youtube.com/playlist?`)) && hasUrlQueryParameter(val, "list");
|
|
2824
|
+
};
|
|
2825
|
+
|
|
2826
|
+
// dist/runtime/type-guards/repos.js
|
|
2827
|
+
var isRepoSource = (v) => {
|
|
2828
|
+
return isString(v) && REPO_SOURCES.includes(v);
|
|
2829
|
+
};
|
|
2830
|
+
var isSemanticVersion = (v, allowPrefix = false) => {
|
|
2831
|
+
return isString(v) && v.split(".").length === 3 && !Number.isNaN(Number(v.split(".")[1])) && !Number.isNaN(Number(v.split(".")[2])) && (!Number.isNaN(Number(v.split(".")[0])) || allowPrefix && !Number.isNaN(Number(stripLeading(v.split(".")[0], "v").trim())));
|
|
2832
|
+
};
|
|
2833
|
+
var isRepoUrl = (val) => {
|
|
2834
|
+
const baseUrls = valuesOf(REPO_SOURCE_LOOKUP).flat();
|
|
2835
|
+
return isString(val) && baseUrls.every((u) => val === u || val.startsWith(`${u}/`));
|
|
2836
|
+
};
|
|
2837
|
+
var isGithubUrl = (val) => {
|
|
2838
|
+
const baseUrls = REPO_SOURCE_LOOKUP["github"];
|
|
2839
|
+
return isString(val) && baseUrls.every((u) => val === u || val.startsWith(`${u}/`));
|
|
2840
|
+
};
|
|
2841
|
+
var isGithubRepoUrl = (val) => {
|
|
2842
|
+
const baseUrls = [""];
|
|
2843
|
+
return isString(val) && baseUrls.every((u) => val === u || val.startsWith(`${u}/`));
|
|
2844
|
+
};
|
|
2845
|
+
var isBitbucketUrl = (val) => {
|
|
2846
|
+
const baseUrls = REPO_SOURCE_LOOKUP["bitbucket"];
|
|
2847
|
+
return isString(val) && baseUrls.every((u) => val === u || val.startsWith(`${u}/`));
|
|
2848
|
+
};
|
|
2849
|
+
var isCodeCommitUrl = (val) => {
|
|
2850
|
+
const baseUrls = REPO_SOURCE_LOOKUP["codecommit"];
|
|
2851
|
+
return isString(val) && baseUrls.every((u) => val === u || val.startsWith(`${u}/`));
|
|
2852
|
+
};
|
|
2853
|
+
|
|
2854
|
+
// dist/runtime/type-guards/isTrimmable.js
|
|
2855
|
+
var isTrimable = (val) => {
|
|
2856
|
+
return isString(val) && val !== val.trim();
|
|
2857
|
+
};
|
|
2858
|
+
|
|
2859
|
+
// dist/runtime/type-guards/hasWhitespace.js
|
|
2860
|
+
var hasWhiteSpace = (val) => {
|
|
2861
|
+
return isString(val) && asChars(val).some((c) => WHITESPACE_CHARS.includes(c));
|
|
2862
|
+
};
|
|
2863
|
+
|
|
2864
|
+
// dist/runtime/type-guards/isEmail.js
|
|
2865
|
+
var isEmail = (val) => {
|
|
2866
|
+
return isString(val) && (val.split("@").length === 2 && val.split("@")[1].split(".").length > 1 && asChars(last(val.split("@")[1].split("."))).length > 1);
|
|
2867
|
+
};
|
|
2868
|
+
|
|
2869
|
+
// dist/runtime/type-guards/isPhoneNumber.js
|
|
2870
|
+
var isPhoneNumber = (val) => {
|
|
2871
|
+
return isString(val) && ["+", "(", ...NUMERIC_CHAR].includes(asChars(val.trim())[0]) && [...NUMERIC_CHAR].includes([...asChars(val.trim())].pop()) && (val.trim().startsWith(`+`) ? asChars(retainChars(val, ...NUMERIC_CHAR)).length >= 8 : val.trim().startsWith("00") ? asChars(retainChars(val, ...NUMERIC_CHAR)).length >= 10 : asChars(retainChars(val, ...NUMERIC_CHAR)).length >= 7) && stripChars(val, ...NUMERIC_CHAR, ...WHITESPACE_CHARS, "(", ")", "+", ".", "-") === "";
|
|
2872
|
+
};
|
|
2873
|
+
|
|
2874
|
+
// dist/runtime/type-guards/isUnset.js
|
|
2875
|
+
var isUnset = (val) => {
|
|
2876
|
+
return isObject(val) && val.kind === "Unset";
|
|
2877
|
+
};
|
|
2878
|
+
var isSet = (val) => {
|
|
2879
|
+
return isObject(val) ? val.kind !== "Unset" ? true : false : true;
|
|
2880
|
+
};
|
|
2881
|
+
|
|
2882
|
+
// dist/runtime/type-guards/api-tg.js
|
|
2883
|
+
var isEscapeFunction = (val) => {
|
|
2884
|
+
return isFunction(val) && "escape" in val && val.escape === true;
|
|
2885
|
+
};
|
|
2886
|
+
var isOptionalParamFunction = (val) => {
|
|
2887
|
+
return isFunction(val) && "optionalParams" in val && val.optionalParams === true;
|
|
2888
|
+
};
|
|
2889
|
+
var isApi = (api) => {
|
|
2890
|
+
return isObject(api) && "surface" in api && "_kind" in api && api._kind === "api";
|
|
2891
|
+
};
|
|
2892
|
+
var isApiSurface = (val) => {
|
|
2893
|
+
return isObject(val) && Object.keys(val).some((k) => isEscapeFunction(val[k]));
|
|
2894
|
+
};
|
|
2895
|
+
|
|
2896
|
+
// dist/runtime/boolean-logic/ifString.js
|
|
2897
|
+
function ifString(val, ifVal, elseVal) {
|
|
2898
|
+
return isString(val) ? ifVal(val) : elseVal(val);
|
|
2899
|
+
}
|
|
2900
|
+
|
|
2901
|
+
// dist/runtime/boolean-logic/ifNumber.js
|
|
2902
|
+
function ifNumber(val, ifVal, elseVal) {
|
|
2903
|
+
return isNumber(val) ? ifVal(val) : elseVal(val);
|
|
2904
|
+
}
|
|
2905
|
+
|
|
2906
|
+
// dist/runtime/type-guards/higher-order/endsWith.js
|
|
2907
|
+
var endsWith = (endingIn2) => (val) => {
|
|
2908
|
+
return ifString(val, (v) => v.endsWith(endingIn2) ? true : false, (v) => ifNumber(v, (n) => String(n).endsWith(endingIn2) ? true : false, () => false));
|
|
2909
|
+
};
|
|
2910
|
+
|
|
2911
|
+
// dist/runtime/type-guards/higher-order/startsWith.js
|
|
2912
|
+
var startsWith = (startingWith) => (val) => {
|
|
2913
|
+
return isString(val) ? val.startsWith(startingWith) ? true : false : isNumber(val) ? String(val).startsWith(startingWith) ? true : false : false;
|
|
2914
|
+
};
|
|
2915
|
+
|
|
2916
|
+
// dist/runtime/type-guards/higher-order/isSameTypeOf.js
|
|
2917
|
+
var isSameTypeOf = (base) => (compare) => {
|
|
2918
|
+
return typeof base === typeof compare;
|
|
2919
|
+
};
|
|
2920
|
+
|
|
2921
|
+
// dist/runtime/type-guards/higher-order/isEqual.js
|
|
2922
|
+
var isEqual = (base) => (value) => isSameTypeOf(base)(value) ? value === base ? true : false : false;
|
|
2923
|
+
|
|
2924
|
+
// dist/runtime/type-guards/higher-order/isLength.js
|
|
2925
|
+
function isLength(value, len) {
|
|
2926
|
+
return isArray(value) ? isEqual(value.length)(len) ? true : false : isString(value) ? isEqual(value.length)(len) ? true : false : isObject(value) ? isEqual(keysOf(value))(len) ? true : false : false;
|
|
2927
|
+
}
|
|
2928
|
+
|
|
2929
|
+
// dist/runtime/type-guards/higher-order/isTypeOf.js
|
|
2930
|
+
var isTypeOf = (type) => (value) => {
|
|
2931
|
+
return typeof value === type;
|
|
2932
|
+
};
|
|
2933
|
+
|
|
2934
|
+
// dist/runtime/type-guards/higher-order/isTuple.js
|
|
2935
|
+
var isTuple = (...tuple3) => {
|
|
2936
|
+
const results = tuple3.map((i) => i(ShapeApiImplementation)).map((i) => isDoneFn(i) ? i.done() : i);
|
|
2937
|
+
return (v) => {
|
|
2938
|
+
return isArray(v) && v.length === results.length && results.every(isShape) && v.every((item, idx) => isSameTypeOf(results[idx])(item));
|
|
2939
|
+
};
|
|
2940
|
+
};
|
|
2941
|
+
|
|
2597
2942
|
// dist/runtime/vuejs/asVueRef.js
|
|
2598
2943
|
var asVueRef = (value) => ({
|
|
2599
2944
|
value,
|
|
@@ -2637,8 +2982,11 @@ var asVueRef = (value) => ({
|
|
|
2637
2982
|
NUMERIC_DIGIT,
|
|
2638
2983
|
Never,
|
|
2639
2984
|
OPTION,
|
|
2985
|
+
PHONE_COUNTRY_CODES,
|
|
2986
|
+
PHONE_FORMAT,
|
|
2640
2987
|
PLURAL_EXCEPTIONS,
|
|
2641
2988
|
PLURAL_EXCEPTIONS_OLD,
|
|
2989
|
+
PROXMOX_CT_STATE,
|
|
2642
2990
|
REPO_PAGE_TYPES,
|
|
2643
2991
|
REPO_SOURCES,
|
|
2644
2992
|
REPO_SOURCE_LOOKUP,
|
|
@@ -2671,6 +3019,7 @@ var asVueRef = (value) => ({
|
|
|
2671
3019
|
US_STATE_LOOKUP,
|
|
2672
3020
|
US_STATE_LOOKUP_PROVINCES,
|
|
2673
3021
|
US_STATE_LOOKUP_STRICT,
|
|
3022
|
+
WHITESPACE_CHARS,
|
|
2674
3023
|
WIDE_CONTAINER_TYPE_KINDS,
|
|
2675
3024
|
WIDE_TYPE_KINDS,
|
|
2676
3025
|
WideAssignment,
|
|
@@ -2678,8 +3027,15 @@ var asVueRef = (value) => ({
|
|
|
2678
3027
|
addFnToProps,
|
|
2679
3028
|
addPropsToFn,
|
|
2680
3029
|
and,
|
|
3030
|
+
asApi,
|
|
3031
|
+
asApiCallback,
|
|
2681
3032
|
asArray,
|
|
3033
|
+
asCallbackProp,
|
|
2682
3034
|
asChars,
|
|
3035
|
+
asEscapeFunction,
|
|
3036
|
+
asHandledApiCallback,
|
|
3037
|
+
asOptionalParamFunction,
|
|
3038
|
+
asPhoneNumber,
|
|
2683
3039
|
asRecord,
|
|
2684
3040
|
asString,
|
|
2685
3041
|
asVueRef,
|
|
@@ -2703,45 +3059,33 @@ var asVueRef = (value) => ({
|
|
|
2703
3059
|
fnMeta,
|
|
2704
3060
|
get,
|
|
2705
3061
|
getEach,
|
|
3062
|
+
getEscapeFunction,
|
|
3063
|
+
getPhoneCountryCode,
|
|
2706
3064
|
getUrlPath,
|
|
2707
3065
|
getUrlPort,
|
|
2708
3066
|
getUrlProtocol,
|
|
2709
3067
|
getUrlQueryParams,
|
|
2710
3068
|
getUrlSource,
|
|
3069
|
+
getYouTubePageType,
|
|
2711
3070
|
handleDoneFn,
|
|
2712
3071
|
hasDefaultValue,
|
|
2713
3072
|
hasIndexOf,
|
|
2714
3073
|
hasKeys,
|
|
2715
3074
|
hasUrlPort,
|
|
3075
|
+
hasUrlQueryParameter,
|
|
3076
|
+
hasWhiteSpace,
|
|
2716
3077
|
idLiteral,
|
|
2717
3078
|
idTypeGuard,
|
|
2718
3079
|
identity,
|
|
2719
|
-
ifArray,
|
|
2720
|
-
ifArrayPartial,
|
|
2721
|
-
ifBoolean,
|
|
2722
|
-
ifChar,
|
|
2723
|
-
ifContainer,
|
|
2724
|
-
ifDefined,
|
|
2725
|
-
ifFalse,
|
|
2726
|
-
ifFunction,
|
|
2727
|
-
ifHasKey,
|
|
2728
|
-
ifLength,
|
|
2729
3080
|
ifLowercaseChar,
|
|
2730
|
-
ifNotNull,
|
|
2731
|
-
ifNull,
|
|
2732
|
-
ifNumber,
|
|
2733
|
-
ifObject,
|
|
2734
|
-
ifSameType,
|
|
2735
|
-
ifScalar,
|
|
2736
|
-
ifString,
|
|
2737
|
-
ifTrue,
|
|
2738
|
-
ifUndefined,
|
|
2739
3081
|
ifUppercaseChar,
|
|
2740
3082
|
indexOf,
|
|
2741
3083
|
intersect,
|
|
2742
3084
|
intersection,
|
|
2743
3085
|
ip6GroupExpansion,
|
|
2744
3086
|
ip6Prefix,
|
|
3087
|
+
isApi,
|
|
3088
|
+
isApiSurface,
|
|
2745
3089
|
isArray,
|
|
2746
3090
|
isBitbucketUrl,
|
|
2747
3091
|
isBoolean,
|
|
@@ -2753,8 +3097,10 @@ var asVueRef = (value) => ({
|
|
|
2753
3097
|
isDefined,
|
|
2754
3098
|
isDomainName,
|
|
2755
3099
|
isDoneFn,
|
|
3100
|
+
isEmail,
|
|
2756
3101
|
isEqual,
|
|
2757
3102
|
isErrorCondition,
|
|
3103
|
+
isEscapeFunction,
|
|
2758
3104
|
isFalse,
|
|
2759
3105
|
isFalsy,
|
|
2760
3106
|
isFnWithParams,
|
|
@@ -2775,6 +3121,8 @@ var asVueRef = (value) => ({
|
|
|
2775
3121
|
isNumber,
|
|
2776
3122
|
isNumericString,
|
|
2777
3123
|
isObject,
|
|
3124
|
+
isOptionalParamFunction,
|
|
3125
|
+
isPhoneNumber,
|
|
2778
3126
|
isReadonlyArray,
|
|
2779
3127
|
isRef,
|
|
2780
3128
|
isRepoSource,
|
|
@@ -2782,10 +3130,12 @@ var asVueRef = (value) => ({
|
|
|
2782
3130
|
isSameTypeOf,
|
|
2783
3131
|
isScalar,
|
|
2784
3132
|
isSemanticVersion,
|
|
3133
|
+
isSet,
|
|
2785
3134
|
isShape,
|
|
2786
3135
|
isSpecificConstant,
|
|
2787
3136
|
isString,
|
|
2788
3137
|
isSymbol,
|
|
3138
|
+
isTrimable,
|
|
2789
3139
|
isTrue,
|
|
2790
3140
|
isTruthy,
|
|
2791
3141
|
isTuple,
|
|
@@ -2793,15 +3143,18 @@ var asVueRef = (value) => ({
|
|
|
2793
3143
|
isTypeToken,
|
|
2794
3144
|
isTypeTuple,
|
|
2795
3145
|
isUndefined,
|
|
3146
|
+
isUnset,
|
|
2796
3147
|
isUri,
|
|
2797
3148
|
isUrl,
|
|
2798
3149
|
isUrlPath,
|
|
2799
3150
|
isUrlSource,
|
|
3151
|
+
isYouTubeCreatorUrl,
|
|
2800
3152
|
isYouTubeFeedUrl,
|
|
2801
3153
|
isYouTubePlaylistUrl,
|
|
2802
3154
|
isYouTubeShareUrl,
|
|
2803
3155
|
isYouTubeUrl,
|
|
2804
3156
|
isYouTubeVideoUrl,
|
|
3157
|
+
isYouTubeVideosInPlaylist,
|
|
2805
3158
|
join,
|
|
2806
3159
|
keysOf,
|
|
2807
3160
|
kindError,
|
|
@@ -2824,10 +3177,13 @@ var asVueRef = (value) => ({
|
|
|
2824
3177
|
pathJoin,
|
|
2825
3178
|
pluralize,
|
|
2826
3179
|
pop,
|
|
3180
|
+
removePhoneCountryCode,
|
|
2827
3181
|
removeUrlProtocol,
|
|
2828
3182
|
result,
|
|
2829
3183
|
retain,
|
|
2830
3184
|
retainAfter,
|
|
3185
|
+
retainChars,
|
|
3186
|
+
retainWhile,
|
|
2831
3187
|
reverse,
|
|
2832
3188
|
shape,
|
|
2833
3189
|
sharedKeys,
|
|
@@ -2837,6 +3193,7 @@ var asVueRef = (value) => ({
|
|
|
2837
3193
|
startsWith,
|
|
2838
3194
|
stripAfter,
|
|
2839
3195
|
stripBefore,
|
|
3196
|
+
stripChars,
|
|
2840
3197
|
stripLeading,
|
|
2841
3198
|
stripTrailing,
|
|
2842
3199
|
surround,
|
|
@@ -2871,5 +3228,6 @@ var asVueRef = (value) => ({
|
|
|
2871
3228
|
withKeys,
|
|
2872
3229
|
withoutKeys,
|
|
2873
3230
|
withoutValue,
|
|
2874
|
-
|
|
3231
|
+
wrapFn,
|
|
3232
|
+
youtubeMeta
|
|
2875
3233
|
});
|