@pagopa/io-react-native-wallet 0.4.3 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +128 -19
- package/lib/commonjs/index.js +16 -23
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/pid/index.js +3 -8
- package/lib/commonjs/pid/index.js.map +1 -1
- package/lib/commonjs/pid/issuing.js +153 -176
- package/lib/commonjs/pid/issuing.js.map +1 -1
- package/lib/commonjs/rp/__test__/index.test.js +7 -5
- package/lib/commonjs/rp/__test__/index.test.js.map +1 -1
- package/lib/commonjs/rp/index.js +145 -155
- package/lib/commonjs/rp/index.js.map +1 -1
- package/lib/commonjs/rp/types.js +1 -21
- package/lib/commonjs/rp/types.js.map +1 -1
- package/lib/commonjs/trust/index.js +24 -5
- package/lib/commonjs/trust/index.js.map +1 -1
- package/lib/commonjs/trust/types.js +102 -9
- package/lib/commonjs/trust/types.js.map +1 -1
- package/lib/commonjs/utils/crypto.js +46 -0
- package/lib/commonjs/utils/crypto.js.map +1 -0
- package/lib/commonjs/utils/dpop.js +14 -7
- package/lib/commonjs/utils/dpop.js.map +1 -1
- package/lib/commonjs/wallet-instance-attestation/index.js +3 -3
- package/lib/commonjs/wallet-instance-attestation/issuing.js +42 -60
- package/lib/commonjs/wallet-instance-attestation/issuing.js.map +1 -1
- package/lib/module/index.js +4 -6
- package/lib/module/index.js.map +1 -1
- package/lib/module/pid/index.js +1 -1
- package/lib/module/pid/index.js.map +1 -1
- package/lib/module/pid/issuing.js +152 -180
- package/lib/module/pid/issuing.js.map +1 -1
- package/lib/module/rp/__test__/index.test.js +3 -3
- package/lib/module/rp/__test__/index.test.js.map +1 -1
- package/lib/module/rp/index.js +141 -154
- package/lib/module/rp/index.js.map +1 -1
- package/lib/module/rp/types.js +0 -20
- package/lib/module/rp/types.js.map +1 -1
- package/lib/module/trust/index.js +19 -5
- package/lib/module/trust/index.js.map +1 -1
- package/lib/module/trust/types.js +100 -7
- package/lib/module/trust/types.js.map +1 -1
- package/lib/module/utils/crypto.js +40 -0
- package/lib/module/utils/crypto.js.map +1 -0
- package/lib/module/utils/dpop.js +13 -5
- package/lib/module/utils/dpop.js.map +1 -1
- package/lib/module/wallet-instance-attestation/index.js +2 -2
- package/lib/module/wallet-instance-attestation/index.js.map +1 -1
- package/lib/module/wallet-instance-attestation/issuing.js +40 -58
- package/lib/module/wallet-instance-attestation/issuing.js.map +1 -1
- package/lib/typescript/index.d.ts +4 -6
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/pid/index.d.ts +1 -1
- package/lib/typescript/pid/index.d.ts.map +1 -1
- package/lib/typescript/pid/issuing.d.ts +43 -88
- package/lib/typescript/pid/issuing.d.ts.map +1 -1
- package/lib/typescript/rp/index.d.ts +41 -87
- package/lib/typescript/rp/index.d.ts.map +1 -1
- package/lib/typescript/rp/types.d.ts +10 -906
- package/lib/typescript/rp/types.d.ts.map +1 -1
- package/lib/typescript/sd-jwt/index.d.ts +1 -1
- package/lib/typescript/sd-jwt/index.d.ts.map +1 -1
- package/lib/typescript/trust/index.d.ts +806 -3
- package/lib/typescript/trust/index.d.ts.map +1 -1
- package/lib/typescript/trust/types.d.ts +9655 -297
- package/lib/typescript/trust/types.d.ts.map +1 -1
- package/lib/typescript/utils/crypto.d.ts +10 -0
- package/lib/typescript/utils/crypto.d.ts.map +1 -0
- package/lib/typescript/utils/dpop.d.ts +10 -2
- package/lib/typescript/utils/dpop.d.ts.map +1 -1
- package/lib/typescript/wallet-instance-attestation/index.d.ts +2 -2
- package/lib/typescript/wallet-instance-attestation/index.d.ts.map +1 -1
- package/lib/typescript/wallet-instance-attestation/issuing.d.ts +18 -31
- package/lib/typescript/wallet-instance-attestation/issuing.d.ts.map +1 -1
- package/lib/typescript/wallet-instance-attestation/types.d.ts +4 -4
- package/package.json +2 -2
- package/src/index.ts +14 -13
- package/src/pid/index.ts +1 -1
- package/src/pid/issuing.ts +233 -232
- package/src/rp/__test__/index.test.ts +3 -3
- package/src/rp/index.ts +172 -194
- package/src/rp/types.ts +0 -24
- package/src/sd-jwt/index.ts +1 -1
- package/src/trust/index.ts +106 -5
- package/src/trust/types.ts +152 -34
- package/src/utils/crypto.ts +41 -0
- package/src/utils/dpop.ts +17 -7
- package/src/wallet-instance-attestation/index.ts +2 -2
- package/src/wallet-instance-attestation/issuing.ts +51 -63
- package/lib/commonjs/pid/metadata.js +0 -49
- package/lib/commonjs/pid/metadata.js.map +0 -1
- package/lib/module/pid/metadata.js +0 -41
- package/lib/module/pid/metadata.js.map +0 -1
- package/lib/typescript/pid/metadata.d.ts +0 -482
- package/lib/typescript/pid/metadata.d.ts.map +0 -1
- package/src/pid/metadata.ts +0 -46
package/README.md
CHANGED
@@ -15,8 +15,76 @@ npm install @pagopa/io-react-native-wallet
|
|
15
15
|
|
16
16
|
## Usage
|
17
17
|
|
18
|
+
Refer to Example App for actual usages.
|
19
|
+
|
20
|
+
<details>
|
21
|
+
<summary>Handling cryptographic assets</summary>
|
22
|
+
|
23
|
+
User flows implementions make use of tokens signed using asymmetric key pairs. Such cryptographic keys are managed by the device according to its specifications. It's not the intention of this package to handle such cryptographic assets and their peculiarities; instead, an handy interface is used to provide the right abstraction to allow responsibilities segregation:
|
24
|
+
|
25
|
+
- the application knows who to generate/store/delete keys;
|
26
|
+
- the package knows when and where to use them.
|
27
|
+
|
28
|
+
The interface is `CryptoContext` inherited from the `@pagopa/io-react-native-jwt` package.
|
29
|
+
|
30
|
+
This package provides an helper to build a `CryptoContext` object bound to a given key tag
|
31
|
+
|
32
|
+
```ts
|
33
|
+
import { createCryptoContextFor } from "@pagopa/io-react-native-wallet";
|
34
|
+
|
35
|
+
const ctx = createCryptoContextFor("my-tag");
|
36
|
+
```
|
37
|
+
|
38
|
+
Be sure the key for `my-tag` already exists.
|
39
|
+
|
40
|
+
</details>
|
41
|
+
|
42
|
+
<details>
|
43
|
+
<summary>Making HTTP requests</summary>
|
44
|
+
|
45
|
+
This package is compatibile with any http client which implements [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API). Functions that makes http requests allow for an optional `appFetch` parameter to provide a custom http client implementation. If not provided, the built-in implementation on the runtime is used.
|
46
|
+
|
47
|
+
</details>
|
48
|
+
|
18
49
|
### PID
|
19
50
|
|
51
|
+
#### Issuing
|
52
|
+
|
53
|
+
```ts
|
54
|
+
import {
|
55
|
+
PID,
|
56
|
+
createCryptoContextFor,
|
57
|
+
getCredentialIssuerEntityConfiguration,
|
58
|
+
} from "@pagopa/io-react-native-wallet";
|
59
|
+
|
60
|
+
// Obtain PID metadata
|
61
|
+
const pidEntityConfiguration = await getCredentialIssuerEntityConfiguration(
|
62
|
+
"https://pid-provider.example"
|
63
|
+
);
|
64
|
+
|
65
|
+
// Auth Token request
|
66
|
+
const authRequest = PID.Issuing.authorizeIssuing({ wiaCryptoContext });
|
67
|
+
const authConf = await authRequest(
|
68
|
+
/* signed instance attestation */ instanceAttestation,
|
69
|
+
/* the relative wallet provided */ walletProviderBaseUrl,
|
70
|
+
pidEntityConfiguration
|
71
|
+
);
|
72
|
+
|
73
|
+
// Credential request
|
74
|
+
const credentialRequest = PID.Issuing.getCredential({ pidCryptoContext });
|
75
|
+
const pid = await credentialRequest(
|
76
|
+
authConf,
|
77
|
+
pidEntityConfiguration,
|
78
|
+
/* Some personal data */
|
79
|
+
{
|
80
|
+
birthDate: "01/01/1990",
|
81
|
+
fiscalCode: "AAABBB00A00A000A",
|
82
|
+
name: "NAME",
|
83
|
+
surname: "SURNAME",
|
84
|
+
}
|
85
|
+
);
|
86
|
+
```
|
87
|
+
|
20
88
|
#### Encode and Decode
|
21
89
|
|
22
90
|
```ts
|
@@ -34,28 +102,26 @@ PID.SdJwt.verify("<token>");
|
|
34
102
|
#### Issuing
|
35
103
|
|
36
104
|
```ts
|
37
|
-
import {
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
const signature = await yourCustomSignatureFunction(
|
49
|
-
walletInstanceAttestationRequest,
|
50
|
-
"TEE_KEY_TAG"
|
105
|
+
import {
|
106
|
+
WalletInstanceAttestation,
|
107
|
+
createCryptoContextFor,
|
108
|
+
getWalletProviderEntityConfiguration,
|
109
|
+
} from "@pagopa/io-react-native-wallet";
|
110
|
+
// create crypto context for the key pair associated with the Wallet Instance Attestation
|
111
|
+
const wiaCryptoContext = createCryptoContextFor("wia-keytag");
|
112
|
+
|
113
|
+
// obtain Wallet Provider metadata
|
114
|
+
const entityConfiguration = await getWalletProviderEntityConfiguration(
|
115
|
+
"https://wallet-provider.example"
|
51
116
|
);
|
52
117
|
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
);
|
118
|
+
// prepare the request
|
119
|
+
const wiaRequest = WalletInstanceAttestation.getAttestation({
|
120
|
+
wiaCryptoContext,
|
121
|
+
});
|
57
122
|
|
58
|
-
|
123
|
+
// request the signed Wallet Instance Attestation to the Wallet Provider
|
124
|
+
const signedWIA = await wiaRequest(entityConfiguration);
|
59
125
|
```
|
60
126
|
|
61
127
|
#### Encode and Decode
|
@@ -66,6 +132,49 @@ import { WalletInstanceAttestation } from "io-react-native-wallet";
|
|
66
132
|
WalletInstanceAttestation.decode("<token>");
|
67
133
|
```
|
68
134
|
|
135
|
+
### Relying Party
|
136
|
+
|
137
|
+
#### Credential presentation (PID)
|
138
|
+
|
139
|
+
```ts
|
140
|
+
import {
|
141
|
+
RelyingPartySolution,
|
142
|
+
createCryptoContextFor,
|
143
|
+
getRelyingPartyEntityConfiguration,
|
144
|
+
} from "@pagopa/io-react-native-wallet";
|
145
|
+
|
146
|
+
// create crypto context for the key pair associated with the Wallet Instance Attestation
|
147
|
+
const wiaCryptoContext = createCryptoContextFor("wia-keytag");
|
148
|
+
// create crypto context for the key pair associated with PID stored in the device
|
149
|
+
const pidCryptoContext = createCryptoContextFor("pid-keytag");
|
150
|
+
|
151
|
+
// resolve RP's entity configuration
|
152
|
+
const entityConfiguration = await getRelyingPartyEntityConfiguration(
|
153
|
+
"https://relying-party.example"
|
154
|
+
);
|
155
|
+
|
156
|
+
// get request object
|
157
|
+
const getRequestObject = RelyingPartySolution.getRequestObject({
|
158
|
+
wiaCryptoContext,
|
159
|
+
});
|
160
|
+
const requestObj = await getRequestObject(
|
161
|
+
/* signed instance attestation */ walletInstanceAttestation,
|
162
|
+
/* url to request authorization to */ authorizationUrl,
|
163
|
+
entityConfiguration
|
164
|
+
);
|
165
|
+
|
166
|
+
// Submit authorization response
|
167
|
+
const sendAuthorizationResponse =
|
168
|
+
RelyingPartySolution.sendAuthorizationResponse({
|
169
|
+
pidCryptoContext,
|
170
|
+
});
|
171
|
+
|
172
|
+
const result = await sendAuthorizationResponse(requestObj, [
|
173
|
+
/* signed PID token */ pidToken,
|
174
|
+
/* array of claims to disclose from PID */ claims,
|
175
|
+
]);
|
176
|
+
```
|
177
|
+
|
69
178
|
## Example
|
70
179
|
|
71
180
|
### NodeJS and Ruby
|
package/lib/commonjs/index.js
CHANGED
@@ -3,48 +3,41 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
|
6
|
+
exports.WalletInstanceAttestation = exports.RelyingPartySolution = exports.RP = exports.PID = exports.Errors = void 0;
|
7
|
+
Object.defineProperty(exports, "createCryptoContextFor", {
|
7
8
|
enumerable: true,
|
8
9
|
get: function () {
|
9
|
-
return
|
10
|
+
return _crypto.createCryptoContextFor;
|
10
11
|
}
|
11
12
|
});
|
12
|
-
Object.defineProperty(exports, "
|
13
|
+
Object.defineProperty(exports, "getCredentialIssuerEntityConfiguration", {
|
13
14
|
enumerable: true,
|
14
15
|
get: function () {
|
15
|
-
return
|
16
|
+
return _trust.getCredentialIssuerEntityConfiguration;
|
16
17
|
}
|
17
18
|
});
|
18
|
-
|
19
|
-
Object.defineProperty(exports, "RelyingPartySolution", {
|
20
|
-
enumerable: true,
|
21
|
-
get: function () {
|
22
|
-
return RP.RelyingPartySolution;
|
23
|
-
}
|
24
|
-
});
|
25
|
-
Object.defineProperty(exports, "RpEntityConfiguration", {
|
19
|
+
Object.defineProperty(exports, "getEntityConfiguration", {
|
26
20
|
enumerable: true,
|
27
21
|
get: function () {
|
28
|
-
return
|
22
|
+
return _trust.getEntityConfiguration;
|
29
23
|
}
|
30
24
|
});
|
31
|
-
Object.defineProperty(exports, "
|
25
|
+
Object.defineProperty(exports, "getRelyingPartyEntityConfiguration", {
|
32
26
|
enumerable: true,
|
33
27
|
get: function () {
|
34
|
-
return
|
28
|
+
return _trust.getRelyingPartyEntityConfiguration;
|
35
29
|
}
|
36
30
|
});
|
37
|
-
exports
|
38
|
-
Object.defineProperty(exports, "getEntityConfiguration", {
|
31
|
+
Object.defineProperty(exports, "getTrustAnchorEntityConfiguration", {
|
39
32
|
enumerable: true,
|
40
33
|
get: function () {
|
41
|
-
return _trust.
|
34
|
+
return _trust.getTrustAnchorEntityConfiguration;
|
42
35
|
}
|
43
36
|
});
|
44
|
-
Object.defineProperty(exports, "
|
37
|
+
Object.defineProperty(exports, "getWalletProviderEntityConfiguration", {
|
45
38
|
enumerable: true,
|
46
39
|
get: function () {
|
47
|
-
return
|
40
|
+
return _trust.getWalletProviderEntityConfiguration;
|
48
41
|
}
|
49
42
|
});
|
50
43
|
Object.defineProperty(exports, "verifyTrustChain", {
|
@@ -57,15 +50,15 @@ require("react-native-url-polyfill/auto");
|
|
57
50
|
var PID = _interopRequireWildcard(require("./pid"));
|
58
51
|
exports.PID = PID;
|
59
52
|
var RP = _interopRequireWildcard(require("./rp"));
|
53
|
+
var RelyingPartySolution = RP;
|
60
54
|
exports.RP = RP;
|
55
|
+
exports.RelyingPartySolution = RP;
|
61
56
|
var Errors = _interopRequireWildcard(require("./utils/errors"));
|
62
57
|
exports.Errors = Errors;
|
63
58
|
var WalletInstanceAttestation = _interopRequireWildcard(require("./wallet-instance-attestation"));
|
64
59
|
exports.WalletInstanceAttestation = WalletInstanceAttestation;
|
65
|
-
var _dpop = require("./utils/dpop");
|
66
|
-
var _types = require("./rp/types");
|
67
60
|
var _trust = require("./trust");
|
68
|
-
var
|
61
|
+
var _crypto = require("./utils/crypto");
|
69
62
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
70
63
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
71
64
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["require","PID","_interopRequireWildcard","exports","RP","
|
1
|
+
{"version":3,"names":["require","PID","_interopRequireWildcard","exports","RP","RelyingPartySolution","Errors","WalletInstanceAttestation","_trust","_crypto","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEAA,OAAA;AAEA,IAAAC,GAAA,GAAAC,uBAAA,CAAAF,OAAA;AAA6BG,OAAA,CAAAF,GAAA,GAAAA,GAAA;AAC7B,IAA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,IAAA,CAAAC,GAAA,KAAAR,MAAA,CAAAC,cAAA,CAAAH,MAAA,EAAAK,GAAA,EAAAI,IAAA,YAAAT,MAAA,CAAAK,GAAA,IAAAX,GAAA,CAAAW,GAAA,SAAAL,MAAA,CAAAJ,OAAA,GAAAF,GAAA,MAAAG,KAAA,IAAAA,KAAA,CAAAa,GAAA,CAAAhB,GAAA,EAAAM,MAAA,YAAAA,MAAA"}
|
@@ -3,16 +3,11 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
|
7
|
-
enumerable: true,
|
8
|
-
get: function () {
|
9
|
-
return _issuing.Issuing;
|
10
|
-
}
|
11
|
-
});
|
12
|
-
exports.SdJwt = void 0;
|
6
|
+
exports.SdJwt = exports.Issuing = void 0;
|
13
7
|
var SdJwt = _interopRequireWildcard(require("./sd-jwt"));
|
14
8
|
exports.SdJwt = SdJwt;
|
15
|
-
var
|
9
|
+
var Issuing = _interopRequireWildcard(require("./issuing"));
|
10
|
+
exports.Issuing = Issuing;
|
16
11
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
17
12
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
18
13
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["SdJwt","_interopRequireWildcard","require","exports","
|
1
|
+
{"version":3,"names":["SdJwt","_interopRequireWildcard","require","exports","Issuing","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set"],"sourceRoot":"../../../src","sources":["pid/index.ts"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAAkCC,OAAA,CAAAH,KAAA,GAAAA,KAAA;AAClC,IAAAI,OAAA,GAAAH,uBAAA,CAAAC,OAAA;AAAqCC,OAAA,CAAAC,OAAA,GAAAA,OAAA;AAAA,SAAAC,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAL,wBAAAS,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,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