@learncard/react 2.9.28 → 2.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (273) hide show
  1. package/dist/cjs/BadgeThumbnailImg-02df88f9.js +55 -0
  2. package/dist/cjs/BadgeThumbnailImg-02df88f9.js.map +1 -0
  3. package/dist/cjs/{BoostGenericCard-310cd633.js → BoostGenericCard-d4056c6a.js} +5 -4
  4. package/dist/cjs/BoostGenericCard-d4056c6a.js.map +1 -0
  5. package/dist/cjs/{BoostSmallCard-4e200046.js → BoostSmallCard-ece8f97e.js} +4 -3
  6. package/dist/cjs/BoostSmallCard-ece8f97e.js.map +1 -0
  7. package/dist/cjs/{CertificateDisplayCard-6658f859.js → CertificateDisplayCard-217ce543.js} +43 -9
  8. package/dist/cjs/CertificateDisplayCard-217ce543.js.map +1 -0
  9. package/dist/cjs/{GenericCard-2b20ab4b.js → GenericCard-cdc6eede.js} +3 -2
  10. package/dist/cjs/GenericCard-cdc6eede.js.map +1 -0
  11. package/dist/cjs/{MeritBadgeDisplayCard-5e198547.js → MeritBadgeDisplayCard-f610c4e8.js} +44 -9
  12. package/dist/cjs/MeritBadgeDisplayCard-f610c4e8.js.map +1 -0
  13. package/dist/cjs/{MeritBadgeSkillsCount-8307d493.js → MeritBadgeSkillsCount-1120813b.js} +2 -2
  14. package/dist/cjs/{MeritBadgeSkillsCount-8307d493.js.map → MeritBadgeSkillsCount-1120813b.js.map} +1 -1
  15. package/dist/cjs/{NotificationBoostCard-80dbf681.js → NotificationBoostCard-3ed9ec86.js} +2 -2
  16. package/dist/cjs/{NotificationBoostCard-80dbf681.js.map → NotificationBoostCard-3ed9ec86.js.map} +1 -1
  17. package/dist/cjs/{SchoolIDCard-e22d0d80.js → SchoolIDCard-dddb3b1d.js} +3 -1184
  18. package/dist/cjs/SchoolIDCard-dddb3b1d.js.map +1 -0
  19. package/dist/cjs/{UserProfilePicture-22944d8f.js → UserProfilePicture-80675455.js} +8 -3
  20. package/dist/cjs/UserProfilePicture-80675455.js.map +1 -0
  21. package/dist/cjs/{VCCard-1dae1967.js → VCCard-675144fc.js} +3 -3
  22. package/dist/cjs/{VCCard-1dae1967.js.map → VCCard-675144fc.js.map} +1 -1
  23. package/dist/cjs/{VCDisplayBackFace-f220ad7d.js → VCDisplayBackFace-be7d1e31.js} +3 -3
  24. package/dist/cjs/{VCDisplayBackFace-f220ad7d.js.map → VCDisplayBackFace-be7d1e31.js.map} +1 -1
  25. package/dist/cjs/{VCDisplayCard-b3f9ae8d.js → VCDisplayCard-e50b4801.js} +4 -4
  26. package/dist/cjs/{VCDisplayCard-b3f9ae8d.js.map → VCDisplayCard-e50b4801.js.map} +1 -1
  27. package/dist/cjs/{VCDisplayCard2-1bb03756.js → VCDisplayCard2-648a9543.js} +49 -14
  28. package/dist/cjs/VCDisplayCard2-648a9543.js.map +1 -0
  29. package/dist/cjs/{VCVerificationPill-ae3e2fbb.js → VCVerificationPill-93260164.js} +2 -2
  30. package/dist/cjs/{VCVerificationPill-ae3e2fbb.js.map → VCVerificationPill-93260164.js.map} +1 -1
  31. package/dist/cjs/{VerifierStateBadgeAndText-7c29504e.js → VerifierStateBadgeAndText-806b6c2c.js} +363 -604
  32. package/dist/cjs/VerifierStateBadgeAndText-806b6c2c.js.map +1 -0
  33. package/dist/cjs/{credential.helpers-4e3cf40c.js → credential.helpers-a11b14f1.js} +2 -2
  34. package/dist/cjs/{credential.helpers-4e3cf40c.js.map → credential.helpers-a11b14f1.js.map} +1 -1
  35. package/dist/cjs/index-838fa72c.js +1186 -0
  36. package/dist/cjs/index-838fa72c.js.map +1 -0
  37. package/dist/cjs/index.js +189 -30
  38. package/dist/cjs/index.js.map +1 -1
  39. package/dist/cjs/index10.js +2 -27
  40. package/dist/cjs/index10.js.map +1 -1
  41. package/dist/cjs/index11.js +31 -2
  42. package/dist/cjs/index11.js.map +1 -1
  43. package/dist/cjs/index12.js +2 -46
  44. package/dist/cjs/index12.js.map +1 -1
  45. package/dist/cjs/index13.js +5 -175
  46. package/dist/cjs/index13.js.map +1 -1
  47. package/dist/cjs/index14.js +217 -1
  48. package/dist/cjs/index14.js.map +1 -1
  49. package/dist/cjs/index15.js +3 -21
  50. package/dist/cjs/index15.js.map +1 -1
  51. package/dist/cjs/index16.js +21 -3
  52. package/dist/cjs/index16.js.map +1 -1
  53. package/dist/cjs/index17.js +3 -5
  54. package/dist/cjs/index17.js.map +1 -1
  55. package/dist/cjs/index18.js +5 -20
  56. package/dist/cjs/index18.js.map +1 -1
  57. package/dist/cjs/index19.js +20 -3
  58. package/dist/cjs/index19.js.map +1 -1
  59. package/dist/cjs/index20.js +3 -2
  60. package/dist/cjs/index20.js.map +1 -1
  61. package/dist/cjs/index21.js +2 -28
  62. package/dist/cjs/index21.js.map +1 -1
  63. package/dist/cjs/index22.js +28 -3
  64. package/dist/cjs/index22.js.map +1 -1
  65. package/dist/cjs/index23.js +3 -10
  66. package/dist/cjs/index23.js.map +1 -1
  67. package/dist/cjs/index24.js +5 -7
  68. package/dist/cjs/index24.js.map +1 -1
  69. package/dist/cjs/index25.js +9 -3
  70. package/dist/cjs/index25.js.map +1 -1
  71. package/dist/cjs/index26.js +3 -5
  72. package/dist/cjs/index26.js.map +1 -1
  73. package/dist/cjs/index27.js +8 -3
  74. package/dist/cjs/index27.js.map +1 -1
  75. package/dist/cjs/index28.js +3 -28
  76. package/dist/cjs/index28.js.map +1 -1
  77. package/dist/cjs/index29.js +4 -28
  78. package/dist/cjs/index29.js.map +1 -1
  79. package/dist/cjs/index3.js +0 -58
  80. package/dist/cjs/index3.js.map +1 -1
  81. package/dist/cjs/index30.js +52 -2
  82. package/dist/cjs/index30.js.map +1 -1
  83. package/dist/cjs/index31.js +3 -3
  84. package/dist/cjs/index32.js +3 -3
  85. package/dist/cjs/index33.js +3 -29
  86. package/dist/cjs/index33.js.map +1 -1
  87. package/dist/cjs/index34.js +29 -3
  88. package/dist/cjs/index34.js.map +1 -1
  89. package/dist/cjs/index35.js +3 -3
  90. package/dist/cjs/index36.js +3 -27
  91. package/dist/cjs/index36.js.map +1 -1
  92. package/dist/cjs/index37.js +27 -2
  93. package/dist/cjs/index37.js.map +1 -1
  94. package/dist/cjs/index38.js +2 -42
  95. package/dist/cjs/index38.js.map +1 -1
  96. package/dist/cjs/index39.js +35 -9
  97. package/dist/cjs/index39.js.map +1 -1
  98. package/dist/cjs/index4.js +11 -6
  99. package/dist/cjs/index4.js.map +1 -1
  100. package/dist/cjs/index40.js +9 -13
  101. package/dist/cjs/index40.js.map +1 -1
  102. package/dist/cjs/index41.js +15 -28
  103. package/dist/cjs/index41.js.map +1 -1
  104. package/dist/cjs/index42.js +38 -3
  105. package/dist/cjs/index42.js.map +1 -1
  106. package/dist/cjs/index43.js +3 -7
  107. package/dist/cjs/index43.js.map +1 -1
  108. package/dist/cjs/index44.js +4 -6
  109. package/dist/cjs/index44.js.map +1 -1
  110. package/dist/cjs/index45.js +6 -6
  111. package/dist/cjs/index46.js +15 -0
  112. package/dist/cjs/index46.js.map +1 -0
  113. package/dist/cjs/index5.js +51 -2
  114. package/dist/cjs/index5.js.map +1 -1
  115. package/dist/cjs/index6.js +2 -29
  116. package/dist/cjs/index6.js.map +1 -1
  117. package/dist/cjs/index7.js +28 -27
  118. package/dist/cjs/index7.js.map +1 -1
  119. package/dist/cjs/index8.js +4 -5
  120. package/dist/cjs/index8.js.map +1 -1
  121. package/dist/cjs/index9.js +28 -5
  122. package/dist/cjs/index9.js.map +1 -1
  123. package/dist/cjs/{types.esm-674d5934.js → types.esm-4d399274.js} +11 -4
  124. package/dist/cjs/types.esm-4d399274.js.map +1 -0
  125. package/dist/esm/BadgeThumbnailImg-7d436367.js +49 -0
  126. package/dist/esm/BadgeThumbnailImg-7d436367.js.map +1 -0
  127. package/dist/esm/{BoostGenericCard-956474fc.js → BoostGenericCard-b83ff069.js} +5 -4
  128. package/dist/esm/BoostGenericCard-b83ff069.js.map +1 -0
  129. package/dist/esm/{BoostSmallCard-6d63f0b3.js → BoostSmallCard-a73b6800.js} +4 -3
  130. package/dist/esm/BoostSmallCard-a73b6800.js.map +1 -0
  131. package/dist/esm/{CertificateDisplayCard-0642d8af.js → CertificateDisplayCard-d2fa3f05.js} +43 -9
  132. package/dist/esm/CertificateDisplayCard-d2fa3f05.js.map +1 -0
  133. package/dist/esm/{GenericCard-24648e62.js → GenericCard-a469f2f0.js} +3 -2
  134. package/dist/esm/GenericCard-a469f2f0.js.map +1 -0
  135. package/dist/esm/{MeritBadgeDisplayCard-f6b064a6.js → MeritBadgeDisplayCard-eba507ab.js} +44 -9
  136. package/dist/esm/MeritBadgeDisplayCard-eba507ab.js.map +1 -0
  137. package/dist/esm/{MeritBadgeSkillsCount-e906d83f.js → MeritBadgeSkillsCount-7871d74f.js} +2 -2
  138. package/dist/esm/{MeritBadgeSkillsCount-e906d83f.js.map → MeritBadgeSkillsCount-7871d74f.js.map} +1 -1
  139. package/dist/esm/{NotificationBoostCard-fdfa0cf4.js → NotificationBoostCard-cfebc09e.js} +2 -2
  140. package/dist/esm/{NotificationBoostCard-fdfa0cf4.js.map → NotificationBoostCard-cfebc09e.js.map} +1 -1
  141. package/dist/esm/{SchoolIDCard-8b151cd3.js → SchoolIDCard-4e51671c.js} +2 -1183
  142. package/dist/esm/SchoolIDCard-4e51671c.js.map +1 -0
  143. package/dist/esm/{UserProfilePicture-7e131f5d.js → UserProfilePicture-50c34186.js} +8 -3
  144. package/dist/esm/UserProfilePicture-50c34186.js.map +1 -0
  145. package/dist/esm/{VCCard-7b394980.js → VCCard-8a27387d.js} +3 -3
  146. package/dist/esm/{VCCard-7b394980.js.map → VCCard-8a27387d.js.map} +1 -1
  147. package/dist/esm/{VCDisplayBackFace-ce80f06d.js → VCDisplayBackFace-fbb3235f.js} +3 -3
  148. package/dist/esm/{VCDisplayBackFace-ce80f06d.js.map → VCDisplayBackFace-fbb3235f.js.map} +1 -1
  149. package/dist/esm/{VCDisplayCard-a40c4c7a.js → VCDisplayCard-8463d18d.js} +4 -4
  150. package/dist/esm/{VCDisplayCard-a40c4c7a.js.map → VCDisplayCard-8463d18d.js.map} +1 -1
  151. package/dist/esm/{VCDisplayCard2-3937fbc9.js → VCDisplayCard2-5ed2777f.js} +49 -14
  152. package/dist/esm/VCDisplayCard2-5ed2777f.js.map +1 -0
  153. package/dist/esm/{VCVerificationPill-8f82b17c.js → VCVerificationPill-a412a211.js} +2 -2
  154. package/dist/esm/{VCVerificationPill-8f82b17c.js.map → VCVerificationPill-a412a211.js.map} +1 -1
  155. package/dist/esm/{VerifierStateBadgeAndText-5152c28e.js → VerifierStateBadgeAndText-0db85894.js} +359 -605
  156. package/dist/esm/VerifierStateBadgeAndText-0db85894.js.map +1 -0
  157. package/dist/esm/{credential.helpers-bd29e893.js → credential.helpers-108b5fb6.js} +2 -2
  158. package/dist/esm/{credential.helpers-bd29e893.js.map → credential.helpers-108b5fb6.js.map} +1 -1
  159. package/dist/esm/index-4fa491c1.js +1184 -0
  160. package/dist/esm/index-4fa491c1.js.map +1 -0
  161. package/dist/esm/index.js +178 -29
  162. package/dist/esm/index.js.map +1 -1
  163. package/dist/esm/index10.js +1 -26
  164. package/dist/esm/index10.js.map +1 -1
  165. package/dist/esm/index11.js +30 -1
  166. package/dist/esm/index11.js.map +1 -1
  167. package/dist/esm/index12.js +1 -45
  168. package/dist/esm/index12.js.map +1 -1
  169. package/dist/esm/index13.js +5 -94
  170. package/dist/esm/index13.js.map +1 -1
  171. package/dist/esm/index14.js +136 -1
  172. package/dist/esm/index14.js.map +1 -1
  173. package/dist/esm/index15.js +2 -19
  174. package/dist/esm/index15.js.map +1 -1
  175. package/dist/esm/index16.js +19 -2
  176. package/dist/esm/index16.js.map +1 -1
  177. package/dist/esm/index17.js +2 -4
  178. package/dist/esm/index17.js.map +1 -1
  179. package/dist/esm/index18.js +4 -19
  180. package/dist/esm/index18.js.map +1 -1
  181. package/dist/esm/index19.js +19 -2
  182. package/dist/esm/index19.js.map +1 -1
  183. package/dist/esm/index20.js +2 -1
  184. package/dist/esm/index20.js.map +1 -1
  185. package/dist/esm/index21.js +1 -24
  186. package/dist/esm/index21.js.map +1 -1
  187. package/dist/esm/index22.js +24 -2
  188. package/dist/esm/index22.js.map +1 -1
  189. package/dist/esm/index23.js +2 -8
  190. package/dist/esm/index23.js.map +1 -1
  191. package/dist/esm/index24.js +3 -6
  192. package/dist/esm/index24.js.map +1 -1
  193. package/dist/esm/index25.js +8 -2
  194. package/dist/esm/index25.js.map +1 -1
  195. package/dist/esm/index26.js +2 -3
  196. package/dist/esm/index26.js.map +1 -1
  197. package/dist/esm/index27.js +6 -2
  198. package/dist/esm/index27.js.map +1 -1
  199. package/dist/esm/index28.js +2 -26
  200. package/dist/esm/index28.js.map +1 -1
  201. package/dist/esm/index29.js +2 -23
  202. package/dist/esm/index29.js.map +1 -1
  203. package/dist/esm/index3.js +0 -53
  204. package/dist/esm/index3.js.map +1 -1
  205. package/dist/esm/index30.js +47 -1
  206. package/dist/esm/index30.js.map +1 -1
  207. package/dist/esm/index31.js +2 -1
  208. package/dist/esm/index31.js.map +1 -1
  209. package/dist/esm/index32.js +1 -2
  210. package/dist/esm/index32.js.map +1 -1
  211. package/dist/esm/index33.js +2 -28
  212. package/dist/esm/index33.js.map +1 -1
  213. package/dist/esm/index34.js +28 -2
  214. package/dist/esm/index34.js.map +1 -1
  215. package/dist/esm/index35.js +2 -2
  216. package/dist/esm/index36.js +2 -9
  217. package/dist/esm/index36.js.map +1 -1
  218. package/dist/esm/index37.js +9 -1
  219. package/dist/esm/index37.js.map +1 -1
  220. package/dist/esm/index38.js +1 -41
  221. package/dist/esm/index38.js.map +1 -1
  222. package/dist/esm/index39.js +34 -8
  223. package/dist/esm/index39.js.map +1 -1
  224. package/dist/esm/index4.js +10 -5
  225. package/dist/esm/index4.js.map +1 -1
  226. package/dist/esm/index40.js +8 -12
  227. package/dist/esm/index40.js.map +1 -1
  228. package/dist/esm/index41.js +14 -24
  229. package/dist/esm/index41.js.map +1 -1
  230. package/dist/esm/index42.js +30 -3
  231. package/dist/esm/index42.js.map +1 -1
  232. package/dist/esm/index43.js +3 -2
  233. package/dist/esm/index43.js.map +1 -1
  234. package/dist/esm/index44.js +3 -3
  235. package/dist/esm/index45.js +3 -5
  236. package/dist/esm/index45.js.map +1 -1
  237. package/dist/esm/index46.js +7 -0
  238. package/dist/esm/index46.js.map +1 -0
  239. package/dist/esm/index5.js +50 -1
  240. package/dist/esm/index5.js.map +1 -1
  241. package/dist/esm/index6.js +1 -23
  242. package/dist/esm/index6.js.map +1 -1
  243. package/dist/esm/index7.js +22 -26
  244. package/dist/esm/index7.js.map +1 -1
  245. package/dist/esm/index8.js +3 -3
  246. package/dist/esm/index9.js +26 -4
  247. package/dist/esm/index9.js.map +1 -1
  248. package/dist/esm/{types.esm-e2b75956.js → types.esm-aa0345d0.js} +11 -4
  249. package/dist/esm/types.esm-aa0345d0.js.map +1 -0
  250. package/dist/index.d.ts +82 -1
  251. package/dist/main.css +1 -1
  252. package/dist/main.js +1 -1
  253. package/package.json +3 -3
  254. package/dist/cjs/BoostGenericCard-310cd633.js.map +0 -1
  255. package/dist/cjs/BoostSmallCard-4e200046.js.map +0 -1
  256. package/dist/cjs/CertificateDisplayCard-6658f859.js.map +0 -1
  257. package/dist/cjs/GenericCard-2b20ab4b.js.map +0 -1
  258. package/dist/cjs/MeritBadgeDisplayCard-5e198547.js.map +0 -1
  259. package/dist/cjs/SchoolIDCard-e22d0d80.js.map +0 -1
  260. package/dist/cjs/UserProfilePicture-22944d8f.js.map +0 -1
  261. package/dist/cjs/VCDisplayCard2-1bb03756.js.map +0 -1
  262. package/dist/cjs/VerifierStateBadgeAndText-7c29504e.js.map +0 -1
  263. package/dist/cjs/types.esm-674d5934.js.map +0 -1
  264. package/dist/esm/BoostGenericCard-956474fc.js.map +0 -1
  265. package/dist/esm/BoostSmallCard-6d63f0b3.js.map +0 -1
  266. package/dist/esm/CertificateDisplayCard-0642d8af.js.map +0 -1
  267. package/dist/esm/GenericCard-24648e62.js.map +0 -1
  268. package/dist/esm/MeritBadgeDisplayCard-f6b064a6.js.map +0 -1
  269. package/dist/esm/SchoolIDCard-8b151cd3.js.map +0 -1
  270. package/dist/esm/UserProfilePicture-7e131f5d.js.map +0 -1
  271. package/dist/esm/VCDisplayCard2-3937fbc9.js.map +0 -1
  272. package/dist/esm/VerifierStateBadgeAndText-5152c28e.js.map +0 -1
  273. package/dist/esm/types.esm-e2b75956.js.map +0 -1
@@ -11,7 +11,7 @@ var Social = require('./social.png');
11
11
  var Stem = require('./stem.png');
12
12
  var Trade = require('./trade.png');
13
13
  var PuzzlePiece = require('./PuzzlePiece-e64f4596.js');
14
- var types_esm = require('./types.esm-674d5934.js');
14
+ var types_esm = require('./types.esm-4d399274.js');
15
15
 
16
16
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
17
17
 
@@ -2389,138 +2389,6 @@ const SkillsBox = ({ skills }) => {
2389
2389
  })));
2390
2390
  };
2391
2391
 
2392
- var token = '%[a-f0-9]{2}';
2393
- var singleMatcher = new RegExp('(' + token + ')|([^%]+?)', 'gi');
2394
- var multiMatcher = new RegExp('(' + token + ')+', 'gi');
2395
-
2396
- function decodeComponents(components, split) {
2397
- try {
2398
- // Try to decode the entire string first
2399
- return [decodeURIComponent(components.join(''))];
2400
- } catch (err) {
2401
- // Do nothing
2402
- }
2403
-
2404
- if (components.length === 1) {
2405
- return components;
2406
- }
2407
-
2408
- split = split || 1;
2409
-
2410
- // Split the array in 2 parts
2411
- var left = components.slice(0, split);
2412
- var right = components.slice(split);
2413
-
2414
- return Array.prototype.concat.call([], decodeComponents(left), decodeComponents(right));
2415
- }
2416
-
2417
- function decode$1(input) {
2418
- try {
2419
- return decodeURIComponent(input);
2420
- } catch (err) {
2421
- var tokens = input.match(singleMatcher) || [];
2422
-
2423
- for (var i = 1; i < tokens.length; i++) {
2424
- input = decodeComponents(tokens, i).join('');
2425
-
2426
- tokens = input.match(singleMatcher) || [];
2427
- }
2428
-
2429
- return input;
2430
- }
2431
- }
2432
-
2433
- function customDecodeURIComponent(input) {
2434
- // Keep track of all the replacements and prefill the map with the `BOM`
2435
- var replaceMap = {
2436
- '%FE%FF': '\uFFFD\uFFFD',
2437
- '%FF%FE': '\uFFFD\uFFFD'
2438
- };
2439
-
2440
- var match = multiMatcher.exec(input);
2441
- while (match) {
2442
- try {
2443
- // Decode as big chunks as possible
2444
- replaceMap[match[0]] = decodeURIComponent(match[0]);
2445
- } catch (err) {
2446
- var result = decode$1(match[0]);
2447
-
2448
- if (result !== match[0]) {
2449
- replaceMap[match[0]] = result;
2450
- }
2451
- }
2452
-
2453
- match = multiMatcher.exec(input);
2454
- }
2455
-
2456
- // Add `%C2` at the end of the map to make sure it does not replace the combinator before everything else
2457
- replaceMap['%C2'] = '\uFFFD';
2458
-
2459
- var entries = Object.keys(replaceMap);
2460
-
2461
- for (var i = 0; i < entries.length; i++) {
2462
- // Replace all decoded components
2463
- var key = entries[i];
2464
- input = input.replace(new RegExp(key, 'g'), replaceMap[key]);
2465
- }
2466
-
2467
- return input;
2468
- }
2469
-
2470
- var decodeUriComponent = function (encodedURI) {
2471
- if (typeof encodedURI !== 'string') {
2472
- throw new TypeError('Expected `encodedURI` to be of type `string`, got `' + typeof encodedURI + '`');
2473
- }
2474
-
2475
- try {
2476
- encodedURI = encodedURI.replace(/\+/g, ' ');
2477
-
2478
- // Try the built in decoder first
2479
- return decodeURIComponent(encodedURI);
2480
- } catch (err) {
2481
- // Fallback to a more advanced decoder
2482
- return customDecodeURIComponent(encodedURI);
2483
- }
2484
- };
2485
-
2486
- var filterObj = function (obj, predicate) {
2487
- var ret = {};
2488
- var keys = Object.keys(obj);
2489
- var isArr = Array.isArray(predicate);
2490
-
2491
- for (var i = 0; i < keys.length; i++) {
2492
- var key = keys[i];
2493
- var val = obj[key];
2494
-
2495
- if (isArr ? predicate.indexOf(key) !== -1 : predicate(key, val, obj)) {
2496
- ret[key] = val;
2497
- }
2498
- }
2499
-
2500
- return ret;
2501
- };
2502
-
2503
- var splitOnFirst = (string, separator) => {
2504
- if (!(typeof string === 'string' && typeof separator === 'string')) {
2505
- throw new TypeError('Expected the arguments to be of type `string`');
2506
- }
2507
-
2508
- if (separator === '') {
2509
- return [string];
2510
- }
2511
-
2512
- const separatorIndex = string.indexOf(separator);
2513
-
2514
- if (separatorIndex === -1) {
2515
- return [string];
2516
- }
2517
-
2518
- return [
2519
- string.slice(0, separatorIndex),
2520
- string.slice(separatorIndex + separator.length)
2521
- ];
2522
- };
2523
-
2524
2392
  // src/utils/env.ts
2525
2393
  var NOTHING = Symbol.for("immer-nothing");
2526
2394
  var DRAFTABLE = Symbol.for("immer-draftable");
@@ -3282,6 +3150,288 @@ function currentImpl(value) {
3282
3150
  var immer = new Immer2();
3283
3151
  var produce = immer.produce;
3284
3152
 
3153
+ /**
3154
+ * base64.ts
3155
+ *
3156
+ * Licensed under the BSD 3-Clause License.
3157
+ * http://opensource.org/licenses/BSD-3-Clause
3158
+ *
3159
+ * References:
3160
+ * http://en.wikipedia.org/wiki/Base64
3161
+ *
3162
+ * @author Dan Kogai (https://github.com/dankogai)
3163
+ */
3164
+ const version = '3.7.8';
3165
+ /**
3166
+ * @deprecated use lowercase `version`.
3167
+ */
3168
+ const VERSION = version;
3169
+ const _hasBuffer = typeof Buffer === 'function';
3170
+ const _TD = typeof TextDecoder === 'function' ? new TextDecoder() : undefined;
3171
+ const _TE = typeof TextEncoder === 'function' ? new TextEncoder() : undefined;
3172
+ const b64ch = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
3173
+ const b64chs = Array.prototype.slice.call(b64ch);
3174
+ const b64tab = ((a) => {
3175
+ let tab = {};
3176
+ a.forEach((c, i) => tab[c] = i);
3177
+ return tab;
3178
+ })(b64chs);
3179
+ const b64re = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/;
3180
+ const _fromCC = String.fromCharCode.bind(String);
3181
+ const _U8Afrom = typeof Uint8Array.from === 'function'
3182
+ ? Uint8Array.from.bind(Uint8Array)
3183
+ : (it) => new Uint8Array(Array.prototype.slice.call(it, 0));
3184
+ const _mkUriSafe = (src) => src
3185
+ .replace(/=/g, '').replace(/[+\/]/g, (m0) => m0 == '+' ? '-' : '_');
3186
+ const _tidyB64 = (s) => s.replace(/[^A-Za-z0-9\+\/]/g, '');
3187
+ /**
3188
+ * polyfill version of `btoa`
3189
+ */
3190
+ const btoaPolyfill = (bin) => {
3191
+ // console.log('polyfilled');
3192
+ let u32, c0, c1, c2, asc = '';
3193
+ const pad = bin.length % 3;
3194
+ for (let i = 0; i < bin.length;) {
3195
+ if ((c0 = bin.charCodeAt(i++)) > 255 ||
3196
+ (c1 = bin.charCodeAt(i++)) > 255 ||
3197
+ (c2 = bin.charCodeAt(i++)) > 255)
3198
+ throw new TypeError('invalid character found');
3199
+ u32 = (c0 << 16) | (c1 << 8) | c2;
3200
+ asc += b64chs[u32 >> 18 & 63]
3201
+ + b64chs[u32 >> 12 & 63]
3202
+ + b64chs[u32 >> 6 & 63]
3203
+ + b64chs[u32 & 63];
3204
+ }
3205
+ return pad ? asc.slice(0, pad - 3) + "===".substring(pad) : asc;
3206
+ };
3207
+ /**
3208
+ * does what `window.btoa` of web browsers do.
3209
+ * @param {String} bin binary string
3210
+ * @returns {string} Base64-encoded string
3211
+ */
3212
+ const _btoa = typeof btoa === 'function' ? (bin) => btoa(bin)
3213
+ : _hasBuffer ? (bin) => Buffer.from(bin, 'binary').toString('base64')
3214
+ : btoaPolyfill;
3215
+ const _fromUint8Array = _hasBuffer
3216
+ ? (u8a) => Buffer.from(u8a).toString('base64')
3217
+ : (u8a) => {
3218
+ // cf. https://stackoverflow.com/questions/12710001/how-to-convert-uint8-array-to-base64-encoded-string/12713326#12713326
3219
+ const maxargs = 0x1000;
3220
+ let strs = [];
3221
+ for (let i = 0, l = u8a.length; i < l; i += maxargs) {
3222
+ strs.push(_fromCC.apply(null, u8a.subarray(i, i + maxargs)));
3223
+ }
3224
+ return _btoa(strs.join(''));
3225
+ };
3226
+ /**
3227
+ * converts a Uint8Array to a Base64 string.
3228
+ * @param {boolean} [urlsafe] URL-and-filename-safe a la RFC4648 §5
3229
+ * @returns {string} Base64 string
3230
+ */
3231
+ const fromUint8Array = (u8a, urlsafe = false) => urlsafe ? _mkUriSafe(_fromUint8Array(u8a)) : _fromUint8Array(u8a);
3232
+ // This trick is found broken https://github.com/dankogai/js-base64/issues/130
3233
+ // const utob = (src: string) => unescape(encodeURIComponent(src));
3234
+ // reverting good old fationed regexp
3235
+ const cb_utob = (c) => {
3236
+ if (c.length < 2) {
3237
+ var cc = c.charCodeAt(0);
3238
+ return cc < 0x80 ? c
3239
+ : cc < 0x800 ? (_fromCC(0xc0 | (cc >>> 6))
3240
+ + _fromCC(0x80 | (cc & 0x3f)))
3241
+ : (_fromCC(0xe0 | ((cc >>> 12) & 0x0f))
3242
+ + _fromCC(0x80 | ((cc >>> 6) & 0x3f))
3243
+ + _fromCC(0x80 | (cc & 0x3f)));
3244
+ }
3245
+ else {
3246
+ var cc = 0x10000
3247
+ + (c.charCodeAt(0) - 0xD800) * 0x400
3248
+ + (c.charCodeAt(1) - 0xDC00);
3249
+ return (_fromCC(0xf0 | ((cc >>> 18) & 0x07))
3250
+ + _fromCC(0x80 | ((cc >>> 12) & 0x3f))
3251
+ + _fromCC(0x80 | ((cc >>> 6) & 0x3f))
3252
+ + _fromCC(0x80 | (cc & 0x3f)));
3253
+ }
3254
+ };
3255
+ const re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;
3256
+ /**
3257
+ * @deprecated should have been internal use only.
3258
+ * @param {string} src UTF-8 string
3259
+ * @returns {string} UTF-16 string
3260
+ */
3261
+ const utob = (u) => u.replace(re_utob, cb_utob);
3262
+ //
3263
+ const _encode = _hasBuffer
3264
+ ? (s) => Buffer.from(s, 'utf8').toString('base64')
3265
+ : _TE
3266
+ ? (s) => _fromUint8Array(_TE.encode(s))
3267
+ : (s) => _btoa(utob(s));
3268
+ /**
3269
+ * converts a UTF-8-encoded string to a Base64 string.
3270
+ * @param {boolean} [urlsafe] if `true` make the result URL-safe
3271
+ * @returns {string} Base64 string
3272
+ */
3273
+ const encode = (src, urlsafe = false) => urlsafe
3274
+ ? _mkUriSafe(_encode(src))
3275
+ : _encode(src);
3276
+ /**
3277
+ * converts a UTF-8-encoded string to URL-safe Base64 RFC4648 §5.
3278
+ * @returns {string} Base64 string
3279
+ */
3280
+ const encodeURI = (src) => encode(src, true);
3281
+ // This trick is found broken https://github.com/dankogai/js-base64/issues/130
3282
+ // const btou = (src: string) => decodeURIComponent(escape(src));
3283
+ // reverting good old fationed regexp
3284
+ const re_btou = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g;
3285
+ const cb_btou = (cccc) => {
3286
+ switch (cccc.length) {
3287
+ case 4:
3288
+ var cp = ((0x07 & cccc.charCodeAt(0)) << 18)
3289
+ | ((0x3f & cccc.charCodeAt(1)) << 12)
3290
+ | ((0x3f & cccc.charCodeAt(2)) << 6)
3291
+ | (0x3f & cccc.charCodeAt(3)), offset = cp - 0x10000;
3292
+ return (_fromCC((offset >>> 10) + 0xD800)
3293
+ + _fromCC((offset & 0x3FF) + 0xDC00));
3294
+ case 3:
3295
+ return _fromCC(((0x0f & cccc.charCodeAt(0)) << 12)
3296
+ | ((0x3f & cccc.charCodeAt(1)) << 6)
3297
+ | (0x3f & cccc.charCodeAt(2)));
3298
+ default:
3299
+ return _fromCC(((0x1f & cccc.charCodeAt(0)) << 6)
3300
+ | (0x3f & cccc.charCodeAt(1)));
3301
+ }
3302
+ };
3303
+ /**
3304
+ * @deprecated should have been internal use only.
3305
+ * @param {string} src UTF-16 string
3306
+ * @returns {string} UTF-8 string
3307
+ */
3308
+ const btou = (b) => b.replace(re_btou, cb_btou);
3309
+ /**
3310
+ * polyfill version of `atob`
3311
+ */
3312
+ const atobPolyfill = (asc) => {
3313
+ // console.log('polyfilled');
3314
+ asc = asc.replace(/\s+/g, '');
3315
+ if (!b64re.test(asc))
3316
+ throw new TypeError('malformed base64.');
3317
+ asc += '=='.slice(2 - (asc.length & 3));
3318
+ let u24, r1, r2;
3319
+ let binArray = []; // use array to avoid minor gc in loop
3320
+ for (let i = 0; i < asc.length;) {
3321
+ u24 = b64tab[asc.charAt(i++)] << 18
3322
+ | b64tab[asc.charAt(i++)] << 12
3323
+ | (r1 = b64tab[asc.charAt(i++)]) << 6
3324
+ | (r2 = b64tab[asc.charAt(i++)]);
3325
+ if (r1 === 64) {
3326
+ binArray.push(_fromCC(u24 >> 16 & 255));
3327
+ }
3328
+ else if (r2 === 64) {
3329
+ binArray.push(_fromCC(u24 >> 16 & 255, u24 >> 8 & 255));
3330
+ }
3331
+ else {
3332
+ binArray.push(_fromCC(u24 >> 16 & 255, u24 >> 8 & 255, u24 & 255));
3333
+ }
3334
+ }
3335
+ return binArray.join('');
3336
+ };
3337
+ /**
3338
+ * does what `window.atob` of web browsers do.
3339
+ * @param {String} asc Base64-encoded string
3340
+ * @returns {string} binary string
3341
+ */
3342
+ const _atob = typeof atob === 'function' ? (asc) => atob(_tidyB64(asc))
3343
+ : _hasBuffer ? (asc) => Buffer.from(asc, 'base64').toString('binary')
3344
+ : atobPolyfill;
3345
+ //
3346
+ const _toUint8Array = _hasBuffer
3347
+ ? (a) => _U8Afrom(Buffer.from(a, 'base64'))
3348
+ : (a) => _U8Afrom(_atob(a).split('').map(c => c.charCodeAt(0)));
3349
+ /**
3350
+ * converts a Base64 string to a Uint8Array.
3351
+ */
3352
+ const toUint8Array = (a) => _toUint8Array(_unURI(a));
3353
+ //
3354
+ const _decode = _hasBuffer
3355
+ ? (a) => Buffer.from(a, 'base64').toString('utf8')
3356
+ : _TD
3357
+ ? (a) => _TD.decode(_toUint8Array(a))
3358
+ : (a) => btou(_atob(a));
3359
+ const _unURI = (a) => _tidyB64(a.replace(/[-_]/g, (m0) => m0 == '-' ? '+' : '/'));
3360
+ /**
3361
+ * converts a Base64 string to a UTF-8 string.
3362
+ * @param {String} src Base64 string. Both normal and URL-safe are supported
3363
+ * @returns {string} UTF-8 string
3364
+ */
3365
+ const decode = (src) => _decode(_unURI(src));
3366
+ /**
3367
+ * check if a value is a valid Base64 string
3368
+ * @param {String} src a value to check
3369
+ */
3370
+ const isValid = (src) => {
3371
+ if (typeof src !== 'string')
3372
+ return false;
3373
+ const s = src.replace(/\s+/g, '').replace(/={0,2}$/, '');
3374
+ return !/[^\s0-9a-zA-Z\+/]/.test(s) || !/[^\s0-9a-zA-Z\-_]/.test(s);
3375
+ };
3376
+ //
3377
+ const _noEnum = (v) => {
3378
+ return {
3379
+ value: v, enumerable: false, writable: true, configurable: true
3380
+ };
3381
+ };
3382
+ /**
3383
+ * extend String.prototype with relevant methods
3384
+ */
3385
+ const extendString = function () {
3386
+ const _add = (name, body) => Object.defineProperty(String.prototype, name, _noEnum(body));
3387
+ _add('fromBase64', function () { return decode(this); });
3388
+ _add('toBase64', function (urlsafe) { return encode(this, urlsafe); });
3389
+ _add('toBase64URI', function () { return encode(this, true); });
3390
+ _add('toBase64URL', function () { return encode(this, true); });
3391
+ _add('toUint8Array', function () { return toUint8Array(this); });
3392
+ };
3393
+ /**
3394
+ * extend Uint8Array.prototype with relevant methods
3395
+ */
3396
+ const extendUint8Array = function () {
3397
+ const _add = (name, body) => Object.defineProperty(Uint8Array.prototype, name, _noEnum(body));
3398
+ _add('toBase64', function (urlsafe) { return fromUint8Array(this, urlsafe); });
3399
+ _add('toBase64URI', function () { return fromUint8Array(this, true); });
3400
+ _add('toBase64URL', function () { return fromUint8Array(this, true); });
3401
+ };
3402
+ /**
3403
+ * extend Builtin prototypes with relevant methods
3404
+ */
3405
+ const extendBuiltins = () => {
3406
+ extendString();
3407
+ extendUint8Array();
3408
+ };
3409
+ const gBase64 = {
3410
+ version: version,
3411
+ VERSION: VERSION,
3412
+ atob: _atob,
3413
+ atobPolyfill: atobPolyfill,
3414
+ btoa: _btoa,
3415
+ btoaPolyfill: btoaPolyfill,
3416
+ fromBase64: decode,
3417
+ toBase64: encode,
3418
+ encode: encode,
3419
+ encodeURI: encodeURI,
3420
+ encodeURL: encodeURI,
3421
+ utob: utob,
3422
+ btou: btou,
3423
+ decode: decode,
3424
+ isValid: isValid,
3425
+ fromUint8Array: fromUint8Array,
3426
+ toUint8Array: toUint8Array,
3427
+ extendString: extendString,
3428
+ extendUint8Array: extendUint8Array,
3429
+ extendBuiltins: extendBuiltins
3430
+ };
3431
+
3432
+ gBase64.encodeURI;
3433
+ gBase64.decode;
3434
+
3285
3435
  var __defProp = Object.defineProperty;
3286
3436
  var __defProps = Object.defineProperties;
3287
3437
  var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
@@ -3353,7 +3503,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
3353
3503
  mod
3354
3504
  ));
3355
3505
  var require_types_cjs_development = __commonJS({
3356
- "../learn-card-types/dist/types.cjs.development.js"(exports, module) {
3506
+ "../learn-card-types/dist/types.cjs.development.cjs"(exports, module) {
3357
3507
  var _a2, _b, _c, _d, _e, _f, _g, _h;
3358
3508
  var __defProp22 = Object.defineProperty;
3359
3509
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
@@ -3611,6 +3761,7 @@ var require_types_cjs_development = __commonJS({
3611
3761
  SkillTreeNodeValidator: /* @__PURE__ */ __name(() => SkillTreeNodeValidator, "SkillTreeNodeValidator"),
3612
3762
  SkillValidator: /* @__PURE__ */ __name(() => SkillValidator, "SkillValidator"),
3613
3763
  StatusCheckEntryValidator: /* @__PURE__ */ __name(() => StatusCheckEntryValidator, "StatusCheckEntryValidator"),
3764
+ StoredCredentialEnvelopeValidator: /* @__PURE__ */ __name(() => StoredCredentialEnvelopeValidator, "StoredCredentialEnvelopeValidator"),
3614
3765
  StringQuery: /* @__PURE__ */ __name(() => StringQuery, "StringQuery"),
3615
3766
  SummaryCredentialDataValidator: /* @__PURE__ */ __name(() => SummaryCredentialDataValidator, "SummaryCredentialDataValidator"),
3616
3767
  SummaryCredentialKeywordValidator: /* @__PURE__ */ __name(() => SummaryCredentialKeywordValidator, "SummaryCredentialKeywordValidator"),
@@ -3631,7 +3782,8 @@ var require_types_cjs_development = __commonJS({
3631
3782
  VerificationItemValidator: /* @__PURE__ */ __name(() => VerificationItemValidator, "VerificationItemValidator"),
3632
3783
  VerificationMethodValidator: /* @__PURE__ */ __name(() => VerificationMethodValidator, "VerificationMethodValidator"),
3633
3784
  VerificationStatusEnum: /* @__PURE__ */ __name(() => VerificationStatusEnum, "VerificationStatusEnum"),
3634
- VerificationStatusValidator: /* @__PURE__ */ __name(() => VerificationStatusValidator, "VerificationStatusValidator")
3785
+ VerificationStatusValidator: /* @__PURE__ */ __name(() => VerificationStatusValidator, "VerificationStatusValidator"),
3786
+ isStoredCredentialEnvelope: /* @__PURE__ */ __name(() => isStoredCredentialEnvelope2, "isStoredCredentialEnvelope")
3635
3787
  });
3636
3788
  module.exports = __toCommonJS(index_exports);
3637
3789
  var external_exports = {};
@@ -3737,14 +3889,14 @@ var require_types_cjs_development = __commonJS({
3737
3889
  cuid2: /* @__PURE__ */ __name(() => cuid22, "cuid2"),
3738
3890
  custom: /* @__PURE__ */ __name(() => custom, "custom"),
3739
3891
  date: /* @__PURE__ */ __name(() => date3, "date"),
3740
- decode: /* @__PURE__ */ __name(() => decode22, "decode"),
3892
+ decode: /* @__PURE__ */ __name(() => decode2, "decode"),
3741
3893
  decodeAsync: /* @__PURE__ */ __name(() => decodeAsync2, "decodeAsync"),
3742
3894
  describe: /* @__PURE__ */ __name(() => describe2, "describe"),
3743
3895
  discriminatedUnion: /* @__PURE__ */ __name(() => discriminatedUnion, "discriminatedUnion"),
3744
3896
  e164: /* @__PURE__ */ __name(() => e1642, "e164"),
3745
3897
  email: /* @__PURE__ */ __name(() => email2, "email"),
3746
3898
  emoji: /* @__PURE__ */ __name(() => emoji2, "emoji"),
3747
- encode: /* @__PURE__ */ __name(() => encode22, "encode"),
3899
+ encode: /* @__PURE__ */ __name(() => encode2, "encode"),
3748
3900
  encodeAsync: /* @__PURE__ */ __name(() => encodeAsync2, "encodeAsync"),
3749
3901
  endsWith: /* @__PURE__ */ __name(() => _endsWith, "endsWith"),
3750
3902
  enum: /* @__PURE__ */ __name(() => _enum2, "enum"),
@@ -3809,7 +3961,7 @@ var require_types_cjs_development = __commonJS({
3809
3961
  object: /* @__PURE__ */ __name(() => object, "object"),
3810
3962
  optional: /* @__PURE__ */ __name(() => optional, "optional"),
3811
3963
  overwrite: /* @__PURE__ */ __name(() => _overwrite, "overwrite"),
3812
- parse: /* @__PURE__ */ __name(() => parse22, "parse"),
3964
+ parse: /* @__PURE__ */ __name(() => parse2, "parse"),
3813
3965
  parseAsync: /* @__PURE__ */ __name(() => parseAsync2, "parseAsync"),
3814
3966
  partialRecord: /* @__PURE__ */ __name(() => partialRecord, "partialRecord"),
3815
3967
  pipe: /* @__PURE__ */ __name(() => pipe, "pipe"),
@@ -4103,10 +4255,10 @@ var require_types_cjs_development = __commonJS({
4103
4255
  _xid: /* @__PURE__ */ __name(() => _xid, "_xid"),
4104
4256
  clone: /* @__PURE__ */ __name(() => clone, "clone"),
4105
4257
  config: /* @__PURE__ */ __name(() => config, "config"),
4106
- decode: /* @__PURE__ */ __name(() => decode2, "decode"),
4258
+ decode: /* @__PURE__ */ __name(() => decode, "decode"),
4107
4259
  decodeAsync: /* @__PURE__ */ __name(() => decodeAsync, "decodeAsync"),
4108
4260
  describe: /* @__PURE__ */ __name(() => describe, "describe"),
4109
- encode: /* @__PURE__ */ __name(() => encode2, "encode"),
4261
+ encode: /* @__PURE__ */ __name(() => encode, "encode"),
4110
4262
  encodeAsync: /* @__PURE__ */ __name(() => encodeAsync, "encodeAsync"),
4111
4263
  flattenError: /* @__PURE__ */ __name(() => flattenError, "flattenError"),
4112
4264
  formatError: /* @__PURE__ */ __name(() => formatError, "formatError"),
@@ -4117,7 +4269,7 @@ var require_types_cjs_development = __commonJS({
4117
4269
  isValidJWT: /* @__PURE__ */ __name(() => isValidJWT, "isValidJWT"),
4118
4270
  locales: /* @__PURE__ */ __name(() => locales_exports, "locales"),
4119
4271
  meta: /* @__PURE__ */ __name(() => meta, "meta"),
4120
- parse: /* @__PURE__ */ __name(() => parse2, "parse"),
4272
+ parse: /* @__PURE__ */ __name(() => parse, "parse"),
4121
4273
  parseAsync: /* @__PURE__ */ __name(() => parseAsync, "parseAsync"),
4122
4274
  prettifyError: /* @__PURE__ */ __name(() => prettifyError, "prettifyError"),
4123
4275
  regexes: /* @__PURE__ */ __name(() => regexes_exports, "regexes"),
@@ -4269,7 +4421,7 @@ var require_types_cjs_development = __commonJS({
4269
4421
  omit: /* @__PURE__ */ __name(() => omit, "omit"),
4270
4422
  optionalKeys: /* @__PURE__ */ __name(() => optionalKeys, "optionalKeys"),
4271
4423
  partial: /* @__PURE__ */ __name(() => partial, "partial"),
4272
- pick: /* @__PURE__ */ __name(() => pick2, "pick"),
4424
+ pick: /* @__PURE__ */ __name(() => pick, "pick"),
4273
4425
  prefixIssues: /* @__PURE__ */ __name(() => prefixIssues, "prefixIssues"),
4274
4426
  primitiveTypes: /* @__PURE__ */ __name(() => primitiveTypes, "primitiveTypes"),
4275
4427
  promiseAllObject: /* @__PURE__ */ __name(() => promiseAllObject, "promiseAllObject"),
@@ -4661,7 +4813,7 @@ var require_types_cjs_development = __commonJS({
4661
4813
  int64: [/* @__PURE__ */ BigInt("-9223372036854775808"), /* @__PURE__ */ BigInt("9223372036854775807")],
4662
4814
  uint64: [/* @__PURE__ */ BigInt(0), /* @__PURE__ */ BigInt("18446744073709551615")]
4663
4815
  };
4664
- function pick2(schema, mask) {
4816
+ function pick(schema, mask) {
4665
4817
  const currDef = schema._zod.def;
4666
4818
  const def = mergeDefs(schema._zod.def, {
4667
4819
  get shape() {
@@ -4681,8 +4833,8 @@ var require_types_cjs_development = __commonJS({
4681
4833
  });
4682
4834
  return clone(schema, def);
4683
4835
  }
4684
- __name(pick2, "pick");
4685
- __name2(pick2, "pick");
4836
+ __name(pick, "pick");
4837
+ __name2(pick, "pick");
4686
4838
  function omit(schema, mask) {
4687
4839
  const currDef = schema._zod.def;
4688
4840
  const def = mergeDefs(schema._zod.def, {
@@ -5129,7 +5281,7 @@ var require_types_cjs_development = __commonJS({
5129
5281
  }
5130
5282
  return result.value;
5131
5283
  }, "_parse");
5132
- var parse2 = /* @__PURE__ */ _parse($ZodRealError);
5284
+ var parse = /* @__PURE__ */ _parse($ZodRealError);
5133
5285
  var _parseAsync = /* @__PURE__ */ __name2((_Err) => (schema, value, _ctx, params) => __async(null, null, function* () {
5134
5286
  var _a3;
5135
5287
  const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
@@ -5171,11 +5323,11 @@ var require_types_cjs_development = __commonJS({
5171
5323
  const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
5172
5324
  return _parse(_Err)(schema, value, ctx);
5173
5325
  }, "_encode");
5174
- var encode2 = /* @__PURE__ */ _encode($ZodRealError);
5326
+ var encode = /* @__PURE__ */ _encode($ZodRealError);
5175
5327
  var _decode = /* @__PURE__ */ __name2((_Err) => (schema, value, _ctx) => {
5176
5328
  return _parse(_Err)(schema, value, _ctx);
5177
5329
  }, "_decode");
5178
- var decode2 = /* @__PURE__ */ _decode($ZodRealError);
5330
+ var decode = /* @__PURE__ */ _decode($ZodRealError);
5179
5331
  var _encodeAsync = /* @__PURE__ */ __name2((_Err) => (schema, value, _ctx) => __async(null, null, function* () {
5180
5332
  const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
5181
5333
  return _parseAsync(_Err)(schema, value, ctx);
@@ -7774,10 +7926,10 @@ var require_types_cjs_development = __commonJS({
7774
7926
  throw new Error("implement() must be called with a function");
7775
7927
  }
7776
7928
  return function(...args) {
7777
- const parsedArgs = inst._def.input ? parse2(inst._def.input, args) : args;
7929
+ const parsedArgs = inst._def.input ? parse(inst._def.input, args) : args;
7778
7930
  const result = Reflect.apply(func, this, parsedArgs);
7779
7931
  if (inst._def.output) {
7780
- return parse2(inst._def.output, result);
7932
+ return parse(inst._def.output, result);
7781
7933
  }
7782
7934
  return result;
7783
7935
  };
@@ -15832,12 +15984,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15832
15984
  var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
15833
15985
  Parent: Error
15834
15986
  });
15835
- var parse22 = /* @__PURE__ */ _parse(ZodRealError);
15987
+ var parse2 = /* @__PURE__ */ _parse(ZodRealError);
15836
15988
  var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
15837
15989
  var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
15838
15990
  var safeParseAsync2 = /* @__PURE__ */ _safeParseAsync(ZodRealError);
15839
- var encode22 = /* @__PURE__ */ _encode(ZodRealError);
15840
- var decode22 = /* @__PURE__ */ _decode(ZodRealError);
15991
+ var encode2 = /* @__PURE__ */ _encode(ZodRealError);
15992
+ var decode2 = /* @__PURE__ */ _decode(ZodRealError);
15841
15993
  var encodeAsync2 = /* @__PURE__ */ _encodeAsync(ZodRealError);
15842
15994
  var decodeAsync2 = /* @__PURE__ */ _decodeAsync(ZodRealError);
15843
15995
  var safeEncode2 = /* @__PURE__ */ _safeEncode(ZodRealError);
@@ -15864,7 +16016,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15864
16016
  reg.add(inst, meta3);
15865
16017
  return inst;
15866
16018
  });
15867
- inst.parse = (data, params) => parse22(inst, data, params, { callee: inst.parse });
16019
+ inst.parse = (data, params) => parse2(inst, data, params, { callee: inst.parse });
15868
16020
  inst.safeParse = (data, params) => safeParse2(inst, data, params);
15869
16021
  inst.parseAsync = (data, params) => __async(null, null, function* () {
15870
16022
  return parseAsync2(inst, data, params, { callee: inst.parseAsync });
@@ -15873,8 +16025,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15873
16025
  return safeParseAsync2(inst, data, params);
15874
16026
  });
15875
16027
  inst.spa = inst.safeParseAsync;
15876
- inst.encode = (data, params) => encode22(inst, data, params);
15877
- inst.decode = (data, params) => decode22(inst, data, params);
16028
+ inst.encode = (data, params) => encode2(inst, data, params);
16029
+ inst.decode = (data, params) => decode2(inst, data, params);
15878
16030
  inst.encodeAsync = (data, params) => __async(null, null, function* () {
15879
16031
  return encodeAsync2(inst, data, params);
15880
16032
  });
@@ -17507,6 +17659,17 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17507
17659
  "vc+sd-jwt",
17508
17660
  "mso_mdoc"
17509
17661
  ]);
17662
+ var StoredCredentialEnvelopeValidator = external_exports.object({
17663
+ format: CredentialFormatValidator,
17664
+ data: external_exports.string()
17665
+ }).passthrough();
17666
+ var isStoredCredentialEnvelope2 = /* @__PURE__ */ __name2((value) => {
17667
+ if (!value || typeof value !== "object") return false;
17668
+ const candidate = value;
17669
+ if (typeof candidate.format !== "string") return false;
17670
+ if (!CredentialFormatValidator.safeParse(candidate.format).success) return false;
17671
+ return typeof candidate.data === "string" || candidate.data instanceof Uint8Array;
17672
+ }, "isStoredCredentialEnvelope");
17510
17673
  var StatusCheckEntryValidator = external_exports.object({
17511
17674
  /**
17512
17675
  * The `credentialStatus.type` as it appeared on the credential.
@@ -17838,7 +18001,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17838
18001
  to: LCNVisibleProfileValidator,
17839
18002
  from: external_exports.string(),
17840
18003
  received: external_exports.string().optional(),
17841
- uri: external_exports.string().optional()
18004
+ uri: external_exports.string().optional(),
18005
+ status: external_exports.enum(["active", "revoked", "suspended"]).optional()
17842
18006
  });
17843
18007
  var PaginatedBoostRecipientsValidator = PaginationResponseValidator.extend({
17844
18008
  records: BoostRecipientValidator.array()
@@ -17848,7 +18012,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17848
18012
  from: external_exports.string(),
17849
18013
  received: external_exports.string().optional(),
17850
18014
  boostUris: external_exports.array(external_exports.string()),
17851
- credentialUris: external_exports.array(external_exports.string()).optional()
18015
+ credentialUris: external_exports.array(external_exports.string()).optional(),
18016
+ status: external_exports.enum(["active", "revoked", "suspended"]).optional()
17852
18017
  });
17853
18018
  var PaginatedBoostRecipientsWithChildrenValidator = PaginationResponseValidator.extend({
17854
18019
  records: BoostRecipientWithChildrenValidator.array()
@@ -18935,7 +19100,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18935
19100
  inboxCredentialId: external_exports.string().optional(),
18936
19101
  integrationId: external_exports.string().optional(),
18937
19102
  source: CredentialActivitySourceTypeValidator,
18938
- metadata: external_exports.record(external_exports.string(), external_exports.unknown()).optional()
19103
+ metadata: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
19104
+ status: external_exports.enum(["active", "revoked", "suspended"]).optional()
18939
19105
  });
18940
19106
  var CredentialActivityWithDetailsValidator = CredentialActivityValidator.extend({
18941
19107
  boost: external_exports.object({
@@ -18993,7 +19159,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18993
19159
  }
18994
19160
  });
18995
19161
  var require_dist = __commonJS({
18996
- "../learn-card-types/dist/index.js"(exports, module) {
19162
+ "../learn-card-types/dist/index.cjs"(exports, module) {
18997
19163
  {
18998
19164
  module.exports = require_types_cjs_development();
18999
19165
  }
@@ -19090,462 +19256,49 @@ __export(unsplash_helpers_exports, {
19090
19256
  resizeAndChangeQuality: () => resizeAndChangeQuality2,
19091
19257
  resizeUrl: () => resizeUrl2
19092
19258
  });
19093
- var base_exports = {};
19094
- __export(base_exports, {
19095
- exclude: () => exclude,
19096
- extract: () => extract,
19097
- parse: () => parse,
19098
- parseUrl: () => parseUrl,
19099
- pick: () => pick,
19100
- stringify: () => stringify,
19101
- stringifyUrl: () => stringifyUrl
19102
- });
19103
- var isNullOrUndefined = /* @__PURE__ */ __name((value) => value === null || value === void 0, "isNullOrUndefined");
19104
- var strictUriEncode = /* @__PURE__ */ __name((string) => encodeURIComponent(string).replaceAll(/[!'()*]/g, (x) => `%${x.charCodeAt(0).toString(16).toUpperCase()}`), "strictUriEncode");
19105
- var encodeFragmentIdentifier = /* @__PURE__ */ Symbol("encodeFragmentIdentifier");
19106
- function encoderForArrayFormat(options) {
19107
- switch (options.arrayFormat) {
19108
- case "index": {
19109
- return (key) => (result, value) => {
19110
- const index = result.length;
19111
- if (value === void 0 || options.skipNull && value === null || options.skipEmptyString && value === "") {
19112
- return result;
19113
- }
19114
- if (value === null) {
19115
- return [
19116
- ...result,
19117
- [encode(key, options), "[", index, "]"].join("")
19118
- ];
19119
- }
19120
- return [
19121
- ...result,
19122
- [encode(key, options), "[", encode(index, options), "]=", encode(value, options)].join("")
19123
- ];
19124
- };
19125
- }
19126
- case "bracket": {
19127
- return (key) => (result, value) => {
19128
- if (value === void 0 || options.skipNull && value === null || options.skipEmptyString && value === "") {
19129
- return result;
19130
- }
19131
- if (value === null) {
19132
- return [
19133
- ...result,
19134
- [encode(key, options), "[]"].join("")
19135
- ];
19136
- }
19137
- return [
19138
- ...result,
19139
- [encode(key, options), "[]=", encode(value, options)].join("")
19140
- ];
19141
- };
19142
- }
19143
- case "colon-list-separator": {
19144
- return (key) => (result, value) => {
19145
- if (value === void 0 || options.skipNull && value === null || options.skipEmptyString && value === "") {
19146
- return result;
19147
- }
19148
- if (value === null) {
19149
- return [
19150
- ...result,
19151
- [encode(key, options), ":list="].join("")
19152
- ];
19153
- }
19154
- return [
19155
- ...result,
19156
- [encode(key, options), ":list=", encode(value, options)].join("")
19157
- ];
19158
- };
19159
- }
19160
- case "comma":
19161
- case "separator":
19162
- case "bracket-separator": {
19163
- const keyValueSeparator = options.arrayFormat === "bracket-separator" ? "[]=" : "=";
19164
- return (key) => (result, value) => {
19165
- if (value === void 0 || options.skipNull && value === null || options.skipEmptyString && value === "") {
19166
- return result;
19167
- }
19168
- value = value === null ? "" : value;
19169
- if (result.length === 0) {
19170
- return [[encode(key, options), keyValueSeparator, encode(value, options)].join("")];
19171
- }
19172
- return [[result, encode(value, options)].join(options.arrayFormatSeparator)];
19173
- };
19174
- }
19175
- default: {
19176
- return (key) => (result, value) => {
19177
- if (value === void 0 || options.skipNull && value === null || options.skipEmptyString && value === "") {
19178
- return result;
19179
- }
19180
- if (value === null) {
19181
- return [
19182
- ...result,
19183
- encode(key, options)
19184
- ];
19185
- }
19186
- return [
19187
- ...result,
19188
- [encode(key, options), "=", encode(value, options)].join("")
19189
- ];
19190
- };
19191
- }
19192
- }
19193
- }
19194
- __name(encoderForArrayFormat, "encoderForArrayFormat");
19195
- function parserForArrayFormat(options) {
19196
- let result;
19197
- switch (options.arrayFormat) {
19198
- case "index": {
19199
- return (key, value, accumulator) => {
19200
- result = /\[(\d*)]$/.exec(key);
19201
- key = key.replace(/\[\d*]$/, "");
19202
- if (!result) {
19203
- accumulator[key] = value;
19204
- return;
19205
- }
19206
- if (accumulator[key] === void 0) {
19207
- accumulator[key] = {};
19208
- }
19209
- accumulator[key][result[1]] = value;
19210
- };
19211
- }
19212
- case "bracket": {
19213
- return (key, value, accumulator) => {
19214
- result = /(\[])$/.exec(key);
19215
- key = key.replace(/\[]$/, "");
19216
- if (!result) {
19217
- accumulator[key] = value;
19218
- return;
19219
- }
19220
- if (accumulator[key] === void 0) {
19221
- accumulator[key] = [value];
19222
- return;
19223
- }
19224
- accumulator[key] = [...accumulator[key], value];
19225
- };
19226
- }
19227
- case "colon-list-separator": {
19228
- return (key, value, accumulator) => {
19229
- result = /(:list)$/.exec(key);
19230
- key = key.replace(/:list$/, "");
19231
- if (!result) {
19232
- accumulator[key] = value;
19233
- return;
19234
- }
19235
- if (accumulator[key] === void 0) {
19236
- accumulator[key] = [value];
19237
- return;
19238
- }
19239
- accumulator[key] = [...accumulator[key], value];
19240
- };
19241
- }
19242
- case "comma":
19243
- case "separator": {
19244
- return (key, value, accumulator) => {
19245
- const isArray = typeof value === "string" && value.includes(options.arrayFormatSeparator);
19246
- const newValue = isArray ? value.split(options.arrayFormatSeparator).map((item) => decode(item, options)) : value === null ? value : decode(value, options);
19247
- accumulator[key] = newValue;
19248
- };
19249
- }
19250
- case "bracket-separator": {
19251
- return (key, value, accumulator) => {
19252
- const isArray = /(\[])$/.test(key);
19253
- key = key.replace(/\[]$/, "");
19254
- if (!isArray) {
19255
- accumulator[key] = value ? decode(value, options) : value;
19256
- return;
19257
- }
19258
- const arrayValue = value === null ? [] : decode(value, options).split(options.arrayFormatSeparator);
19259
- if (accumulator[key] === void 0) {
19260
- accumulator[key] = arrayValue;
19261
- return;
19262
- }
19263
- accumulator[key] = [...accumulator[key], ...arrayValue];
19264
- };
19265
- }
19266
- default: {
19267
- return (key, value, accumulator) => {
19268
- if (accumulator[key] === void 0) {
19269
- accumulator[key] = value;
19270
- return;
19271
- }
19272
- accumulator[key] = [...[accumulator[key]].flat(), value];
19273
- };
19274
- }
19275
- }
19276
- }
19277
- __name(parserForArrayFormat, "parserForArrayFormat");
19278
- function validateArrayFormatSeparator(value) {
19279
- if (typeof value !== "string" || value.length !== 1) {
19280
- throw new TypeError("arrayFormatSeparator must be single character string");
19281
- }
19282
- }
19283
- __name(validateArrayFormatSeparator, "validateArrayFormatSeparator");
19284
- function encode(value, options) {
19285
- if (options.encode) {
19286
- return options.strict ? strictUriEncode(value) : encodeURIComponent(value);
19287
- }
19288
- return value;
19289
- }
19290
- __name(encode, "encode");
19291
- function decode(value, options) {
19292
- if (options.decode) {
19293
- return decodeUriComponent(value);
19294
- }
19295
- return value;
19296
- }
19297
- __name(decode, "decode");
19298
- function keysSorter(input) {
19299
- if (Array.isArray(input)) {
19300
- return input.sort();
19301
- }
19302
- if (typeof input === "object") {
19303
- return keysSorter(Object.keys(input)).sort((a, b) => Number(a) - Number(b)).map((key) => input[key]);
19304
- }
19305
- return input;
19306
- }
19307
- __name(keysSorter, "keysSorter");
19308
- function removeHash(input) {
19309
- const hashStart = input.indexOf("#");
19310
- if (hashStart !== -1) {
19311
- input = input.slice(0, hashStart);
19312
- }
19313
- return input;
19314
- }
19315
- __name(removeHash, "removeHash");
19316
- function getHash(url) {
19317
- let hash = "";
19318
- const hashStart = url.indexOf("#");
19319
- if (hashStart !== -1) {
19320
- hash = url.slice(hashStart);
19321
- }
19322
- return hash;
19323
- }
19324
- __name(getHash, "getHash");
19325
- function parseValue(value, options, type) {
19326
- if (type === "string" && typeof value === "string") {
19327
- return value;
19328
- }
19329
- if (typeof type === "function" && typeof value === "string") {
19330
- return type(value);
19331
- }
19332
- if (type === "boolean" && value === null) {
19333
- return true;
19334
- }
19335
- if (type === "boolean" && value !== null && (value.toLowerCase() === "true" || value.toLowerCase() === "false")) {
19336
- return value.toLowerCase() === "true";
19337
- }
19338
- if (type === "boolean" && value !== null && (value.toLowerCase() === "1" || value.toLowerCase() === "0")) {
19339
- return value.toLowerCase() === "1";
19340
- }
19341
- if (type === "string[]" && options.arrayFormat !== "none" && typeof value === "string") {
19342
- return [value];
19343
- }
19344
- if (type === "number[]" && options.arrayFormat !== "none" && !Number.isNaN(Number(value)) && (typeof value === "string" && value.trim() !== "")) {
19345
- return [Number(value)];
19346
- }
19347
- if (type === "number" && !Number.isNaN(Number(value)) && (typeof value === "string" && value.trim() !== "")) {
19348
- return Number(value);
19349
- }
19350
- if (options.parseBooleans && value !== null && (value.toLowerCase() === "true" || value.toLowerCase() === "false")) {
19351
- return value.toLowerCase() === "true";
19352
- }
19353
- if (options.parseNumbers && !Number.isNaN(Number(value)) && (typeof value === "string" && value.trim() !== "")) {
19354
- return Number(value);
19355
- }
19356
- return value;
19357
- }
19358
- __name(parseValue, "parseValue");
19359
- function extract(input) {
19360
- input = removeHash(input);
19361
- const queryStart = input.indexOf("?");
19362
- if (queryStart === -1) {
19363
- return "";
19364
- }
19365
- return input.slice(queryStart + 1);
19366
- }
19367
- __name(extract, "extract");
19368
- function parse(query, options) {
19369
- options = __spreadValues({
19370
- decode: true,
19371
- sort: true,
19372
- arrayFormat: "none",
19373
- arrayFormatSeparator: ",",
19374
- parseNumbers: false,
19375
- parseBooleans: false,
19376
- types: /* @__PURE__ */ Object.create(null)
19377
- }, options);
19378
- validateArrayFormatSeparator(options.arrayFormatSeparator);
19379
- const formatter = parserForArrayFormat(options);
19380
- const returnValue = /* @__PURE__ */ Object.create(null);
19381
- if (typeof query !== "string") {
19382
- return returnValue;
19383
- }
19384
- query = query.trim().replace(/^[?#&]/, "");
19385
- if (!query) {
19386
- return returnValue;
19387
- }
19388
- for (const parameter of query.split("&")) {
19389
- if (parameter === "") {
19390
- continue;
19391
- }
19392
- const parameter_ = options.decode ? parameter.replaceAll("+", " ") : parameter;
19393
- let [key, value] = splitOnFirst(parameter_, "=");
19394
- if (key === void 0) {
19395
- key = parameter_;
19396
- }
19397
- value = value === void 0 ? null : ["comma", "separator", "bracket-separator"].includes(options.arrayFormat) ? value : decode(value, options);
19398
- formatter(decode(key, options), value, returnValue);
19399
- }
19400
- for (const [key, value] of Object.entries(returnValue)) {
19401
- if (typeof value === "object" && value !== null && options.types[key] !== "string") {
19402
- for (const [key2, value2] of Object.entries(value)) {
19403
- const typeOption = options.types[key];
19404
- const type = typeof typeOption === "function" ? typeOption : typeOption ? typeOption.replace("[]", "") : void 0;
19405
- value[key2] = parseValue(value2, options, type);
19406
- }
19407
- } else if (typeof value === "object" && value !== null && options.types[key] === "string") {
19408
- returnValue[key] = Object.values(value).join(options.arrayFormatSeparator);
19409
- } else {
19410
- returnValue[key] = parseValue(value, options, options.types[key]);
19411
- }
19412
- }
19413
- if (options.sort === false) {
19414
- return returnValue;
19415
- }
19416
- return (options.sort === true ? Object.keys(returnValue).sort() : Object.keys(returnValue).sort(options.sort)).reduce((result, key) => {
19417
- const value = returnValue[key];
19418
- result[key] = Boolean(value) && typeof value === "object" && !Array.isArray(value) ? keysSorter(value) : value;
19419
- return result;
19420
- }, /* @__PURE__ */ Object.create(null));
19421
- }
19422
- __name(parse, "parse");
19423
- function stringify(object, options) {
19424
- if (!object) {
19425
- return "";
19426
- }
19427
- options = __spreadValues({
19428
- encode: true,
19429
- strict: true,
19430
- arrayFormat: "none",
19431
- arrayFormatSeparator: ","
19432
- }, options);
19433
- validateArrayFormatSeparator(options.arrayFormatSeparator);
19434
- const shouldFilter = /* @__PURE__ */ __name((key) => options.skipNull && isNullOrUndefined(object[key]) || options.skipEmptyString && object[key] === "", "shouldFilter");
19435
- const formatter = encoderForArrayFormat(options);
19436
- const objectCopy = {};
19437
- for (const [key, value] of Object.entries(object)) {
19438
- if (!shouldFilter(key)) {
19439
- objectCopy[key] = value;
19440
- }
19441
- }
19442
- const keys = Object.keys(objectCopy);
19443
- if (options.sort !== false) {
19444
- keys.sort(options.sort);
19445
- }
19446
- return keys.map((key) => {
19447
- let value = object[key];
19448
- if (options.replacer) {
19449
- value = options.replacer(key, value);
19450
- if (value === void 0) {
19451
- return "";
19452
- }
19453
- }
19454
- if (value === void 0) {
19455
- return "";
19456
- }
19457
- if (value === null) {
19458
- return encode(key, options);
19459
- }
19460
- if (Array.isArray(value)) {
19461
- if (value.length === 0 && options.arrayFormat === "bracket-separator") {
19462
- return encode(key, options) + "[]";
19463
- }
19464
- let processedArray = value;
19465
- if (options.replacer) {
19466
- processedArray = value.map(
19467
- (item, index) => options.replacer(`${key}[${index}]`, item)
19468
- ).filter((item) => item !== void 0);
19469
- }
19470
- return processedArray.reduce(formatter(key), []).join("&");
19471
- }
19472
- return encode(key, options) + "=" + encode(value, options);
19473
- }).filter((x) => x.length > 0).join("&");
19474
- }
19475
- __name(stringify, "stringify");
19476
- function parseUrl(url, options) {
19477
- var _a, _b;
19478
- options = __spreadValues({
19479
- decode: true
19480
- }, options);
19481
- let [url_, hash] = splitOnFirst(url, "#");
19482
- if (url_ === void 0) {
19483
- url_ = url;
19484
- }
19259
+ var parseUrl = /* @__PURE__ */ __name((input) => {
19260
+ const hashIndex = input.indexOf("#");
19261
+ const fragmentIdentifier = hashIndex === -1 ? void 0 : input.slice(hashIndex + 1);
19262
+ const withoutFragment = hashIndex === -1 ? input : input.slice(0, hashIndex);
19263
+ const queryIndex = withoutFragment.indexOf("?");
19264
+ const url = queryIndex === -1 ? withoutFragment : withoutFragment.slice(0, queryIndex);
19265
+ const search = queryIndex === -1 ? "" : withoutFragment.slice(queryIndex + 1);
19266
+ const query = {};
19267
+ for (const [key, value] of new URLSearchParams(search)) query[key] = value;
19485
19268
  return __spreadValues({
19486
- url: (_b = (_a = url_ == null ? void 0 : url_.split("?")) == null ? void 0 : _a[0]) != null ? _b : "",
19487
- query: parse(extract(url), options)
19488
- }, options && options.parseFragmentIdentifier && hash ? { fragmentIdentifier: decode(hash, options) } : {});
19489
- }
19490
- __name(parseUrl, "parseUrl");
19491
- function stringifyUrl(object, options) {
19492
- options = __spreadValues({
19493
- encode: true,
19494
- strict: true,
19495
- [encodeFragmentIdentifier]: true
19496
- }, options);
19497
- const url = removeHash(object.url).split("?")[0] || "";
19498
- const queryFromUrl = extract(object.url);
19499
- const query = __spreadValues(__spreadValues({}, parse(queryFromUrl, __spreadValues({ sort: false }, options))), object.query);
19500
- let queryString = stringify(query, options);
19501
- queryString && (queryString = `?${queryString}`);
19502
- let hash = getHash(object.url);
19503
- if (typeof object.fragmentIdentifier === "string") {
19504
- const urlObjectForFragmentEncode = new URL(url);
19505
- urlObjectForFragmentEncode.hash = object.fragmentIdentifier;
19506
- hash = options[encodeFragmentIdentifier] ? urlObjectForFragmentEncode.hash : `#${object.fragmentIdentifier}`;
19507
- }
19508
- return `${url}${queryString}${hash}`;
19509
- }
19510
- __name(stringifyUrl, "stringifyUrl");
19511
- function pick(input, filter, options) {
19512
- options = __spreadValues({
19513
- parseFragmentIdentifier: true,
19514
- [encodeFragmentIdentifier]: false
19515
- }, options);
19516
- const { url, query, fragmentIdentifier } = parseUrl(input, options);
19517
- return stringifyUrl({
19518
19269
  url,
19519
- query: filterObj.includeKeys(query, filter),
19520
- fragmentIdentifier
19521
- }, options);
19522
- }
19523
- __name(pick, "pick");
19524
- function exclude(input, filter, options) {
19525
- const exclusionFilter = Array.isArray(filter) ? (key) => !filter.includes(key) : (key, value) => !filter(key, value);
19526
- return pick(input, exclusionFilter, options);
19527
- }
19528
- __name(exclude, "exclude");
19529
- var query_string_default = base_exports;
19270
+ query
19271
+ }, fragmentIdentifier !== void 0 ? { fragmentIdentifier } : {});
19272
+ }, "parseUrl");
19273
+ var stringifyUrl = /* @__PURE__ */ __name((parsed) => {
19274
+ const params = new URLSearchParams();
19275
+ for (const [key, value] of Object.entries(parsed.query)) {
19276
+ if (value === void 0 || value === null) continue;
19277
+ params.append(key, String(value));
19278
+ }
19279
+ const search = params.toString().replace(/\+/g, "%20");
19280
+ const fragment = parsed.fragmentIdentifier ? `#${parsed.fragmentIdentifier}` : "";
19281
+ return `${parsed.url}${search ? `?${search}` : ""}${fragment}`;
19282
+ }, "stringifyUrl");
19530
19283
  var fixSrcSetString2 = /* @__PURE__ */ __name((srcSetString, _mimetype, _webp = false) => {
19531
19284
  const urls = getUrlsFromSrcSet(srcSetString);
19532
19285
  return urls.map(([url, width]) => `${fixUrl2(url)} ${width}`).join(", ");
19533
19286
  }, "fixSrcSetString");
19534
19287
  var fixUrl2 = /* @__PURE__ */ __name((url, _mimetype, _webp = false) => {
19535
19288
  if (url.split(" ").length > 1) return fixSrcSetString2(url);
19536
- const parsedUrl = query_string_default.parseUrl(url);
19289
+ const parsedUrl = parseUrl(url);
19537
19290
  parsedUrl.query.auto = "format";
19538
- return query_string_default.stringifyUrl(parsedUrl);
19291
+ return stringifyUrl(parsedUrl);
19539
19292
  }, "fixUrl");
19540
19293
  var resizeUrl2 = /* @__PURE__ */ __name((url, size) => {
19541
- const parsedUrl = query_string_default.parseUrl(url);
19294
+ const parsedUrl = parseUrl(url);
19542
19295
  parsedUrl.query.w = size.toString();
19543
- return query_string_default.stringifyUrl(parsedUrl);
19296
+ return stringifyUrl(parsedUrl);
19544
19297
  }, "resizeUrl");
19545
19298
  var changeQuality2 = /* @__PURE__ */ __name((url, quality) => {
19546
- const parsedUrl = query_string_default.parseUrl(url);
19299
+ const parsedUrl = parseUrl(url);
19547
19300
  parsedUrl.query.q = quality.toString();
19548
- return query_string_default.stringifyUrl(parsedUrl);
19301
+ return stringifyUrl(parsedUrl);
19549
19302
  }, "changeQuality");
19550
19303
  var resizeAndChangeQuality2 = /* @__PURE__ */ __name((url, size, quality, { fix = false } = {}) => {
19551
19304
  const updatedUrl = changeQuality2(resizeUrl2(url, size), quality);
@@ -19588,9 +19341,9 @@ var fixUrl3 = /* @__PURE__ */ __name((url, _mimetype, _webp = false) => {
19588
19341
  }, "fixUrl");
19589
19342
  var VALID_DISCORD_SIZES = [20, 32, 40, 60, 64, 80, 100, 128, 256, 512, 1024, 2048, 4096];
19590
19343
  var resizeUrl3 = /* @__PURE__ */ __name((url, size) => {
19591
- const parsedUrl = query_string_default.parseUrl(url);
19344
+ const parsedUrl = parseUrl(url);
19592
19345
  parsedUrl.query.size = quantizeValue(size, VALID_DISCORD_SIZES).toString();
19593
- return query_string_default.stringifyUrl(parsedUrl);
19346
+ return stringifyUrl(parsedUrl);
19594
19347
  }, "resizeUrl");
19595
19348
  var changeQuality3 = /* @__PURE__ */ __name((url, _quality) => {
19596
19349
  return url;
@@ -19686,6 +19439,7 @@ types_esm.object({
19686
19439
  image: types_esm.string(),
19687
19440
  loading: types_esm.union([ImageResizingValidator, ImageUploadingValidator]).optional()
19688
19441
  });
19442
+ __toESM(require_dist());
19689
19443
  var isAppDidWeb = /* @__PURE__ */ __name((did) => {
19690
19444
  if (!did) return false;
19691
19445
  const LCN_APP_DID_WEB_REGEX = /^did:web:.*:app:([^:]+)$/;
@@ -19852,8 +19606,13 @@ exports.VerifiedBadge = VerifiedBadge;
19852
19606
  exports.VerifierStateBadgeAndText = VerifierStateBadgeAndText;
19853
19607
  exports.VideoIcon = VideoIcon;
19854
19608
  exports.capitalize = capitalize;
19609
+ exports.formatDidDisplayName = formatDidDisplayName;
19610
+ exports.getAvatarColorFromString = getAvatarColorFromString;
19611
+ exports.getAvatarLetterFromDid = getAvatarLetterFromDid;
19855
19612
  exports.getBaseUrl = getBaseUrl;
19856
19613
  exports.isAppDidWeb = isAppDidWeb;
19614
+ exports.isDid = isDid;
19615
+ exports.isLearnCardNetworkDid = isLearnCardNetworkDid;
19857
19616
  exports.prettyBytes = prettyBytes;
19858
19617
  exports.resolveProfileDisplay = resolveProfileDisplay;
19859
- //# sourceMappingURL=VerifierStateBadgeAndText-7c29504e.js.map
19618
+ //# sourceMappingURL=VerifierStateBadgeAndText-806b6c2c.js.map