@sparkstudio/accounts-sdk 1.1.72 → 1.1.74
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/index.cjs +10 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -3
- package/dist/index.d.ts +16 -3
- package/dist/index.js +9 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/index.ts
|
|
21
21
|
var index_exports = {};
|
|
22
22
|
__export(index_exports, {
|
|
23
|
+
AuthResponseDTO: () => AuthResponseDTO,
|
|
23
24
|
Home: () => Home,
|
|
24
25
|
SparkStudioAccountsSDK: () => SparkStudioAccountsSDK,
|
|
25
26
|
UserDTO: () => UserDTO,
|
|
@@ -67,21 +68,6 @@ var Users = class {
|
|
|
67
68
|
if (!response.ok) throw new Error(await response.text());
|
|
68
69
|
return await response.json();
|
|
69
70
|
}
|
|
70
|
-
async CreateUser(userDTO) {
|
|
71
|
-
const url = `${this.baseUrl}/api/Users/CreateUser`;
|
|
72
|
-
const token = localStorage.getItem("auth_token");
|
|
73
|
-
const requestOptions = {
|
|
74
|
-
method: "POST",
|
|
75
|
-
headers: {
|
|
76
|
-
"Content-Type": "application/json",
|
|
77
|
-
...token && { Authorization: `Bearer ${token}` }
|
|
78
|
-
},
|
|
79
|
-
body: JSON.stringify(userDTO)
|
|
80
|
-
};
|
|
81
|
-
const response = await fetch(url, requestOptions);
|
|
82
|
-
if (!response.ok) throw new Error(await response.text());
|
|
83
|
-
return await response.json();
|
|
84
|
-
}
|
|
85
71
|
};
|
|
86
72
|
|
|
87
73
|
// src/api/SparkStudioAccountsSDK.ts
|
|
@@ -92,6 +78,14 @@ var SparkStudioAccountsSDK = class {
|
|
|
92
78
|
}
|
|
93
79
|
};
|
|
94
80
|
|
|
81
|
+
// src/api/DTOs/AuthResponseDTO.ts
|
|
82
|
+
var AuthResponseDTO = class {
|
|
83
|
+
constructor(init) {
|
|
84
|
+
this.Token = init.Token;
|
|
85
|
+
this.User = init.User;
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
|
|
95
89
|
// src/api/DTOs/UserDTO.ts
|
|
96
90
|
var UserDTO = class {
|
|
97
91
|
constructor(init) {
|
|
@@ -104,6 +98,7 @@ var UserDTO = class {
|
|
|
104
98
|
};
|
|
105
99
|
// Annotate the CommonJS export names for ESM import in node:
|
|
106
100
|
0 && (module.exports = {
|
|
101
|
+
AuthResponseDTO,
|
|
107
102
|
Home,
|
|
108
103
|
SparkStudioAccountsSDK,
|
|
109
104
|
UserDTO,
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../src/api/Controllers/Home.ts","../src/api/Controllers/Users.ts","../src/api/SparkStudioAccountsSDK.ts","../src/api/DTOs/UserDTO.ts"],"sourcesContent":["export * from \"./api/SparkStudioAccountsSDK\";\r\n\r\n\r\nexport * from \"./api/DTOs/UserDTO\";\r\n\r\n\r\nexport * from \"./api/Controllers/Home\";\r\n\r\nexport * from \"./api/Controllers/Users\";\r\n","\r\n\r\n /**\r\n * Auto-generated client for the Home controller.\r\n */\r\nexport class Home {\r\n private baseUrl: string;\r\n\r\n constructor(baseUrl: string) {\r\n this.baseUrl = baseUrl;\r\n }\r\n\r\n}","\r\nimport type { UserDTO } from \"../DTOs/UserDTO\";\r\n\r\n /**\r\n * Auto-generated client for the Users controller.\r\n */\r\nexport class Users {\r\n private baseUrl: string;\r\n\r\n constructor(baseUrl: string) {\r\n this.baseUrl = baseUrl;\r\n }\r\n\r\n public async SyncUser( ): Promise<
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/api/Controllers/Home.ts","../src/api/Controllers/Users.ts","../src/api/SparkStudioAccountsSDK.ts","../src/api/DTOs/AuthResponseDTO.ts","../src/api/DTOs/UserDTO.ts"],"sourcesContent":["export * from \"./api/SparkStudioAccountsSDK\";\r\n\r\n\r\nexport * from \"./api/DTOs/AuthResponseDTO\";\r\n\r\nexport * from \"./api/DTOs/UserDTO\";\r\n\r\n\r\nexport * from \"./api/Controllers/Home\";\r\n\r\nexport * from \"./api/Controllers/Users\";\r\n","\r\n\r\n /**\r\n * Auto-generated client for the Home controller.\r\n */\r\nexport class Home {\r\n private baseUrl: string;\r\n\r\n constructor(baseUrl: string) {\r\n this.baseUrl = baseUrl;\r\n }\r\n\r\n}","\r\nimport type { AuthResponseDTO } from \"../DTOs/AuthResponseDTO\";\r\nimport type { UserDTO } from \"../DTOs/UserDTO\";\r\n\r\n /**\r\n * Auto-generated client for the Users controller.\r\n */\r\nexport class Users {\r\n private baseUrl: string;\r\n\r\n constructor(baseUrl: string) {\r\n this.baseUrl = baseUrl;\r\n }\r\n\r\n public async SyncUser( ): Promise<AuthResponseDTO> {\r\n const url = `${this.baseUrl}/api/Users/SyncUser`\r\n\r\n const token = localStorage.getItem(\"auth_token\");\r\n\r\n // Construct the request options\r\n const requestOptions: RequestInit = {\r\n method: 'GET',\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n ...(token && { Authorization: `Bearer ${token}` })\r\n }, \r\n };\r\n\r\n // Perform the fetch request\r\n const response = await fetch(url, requestOptions);\r\n\r\n // Throw an error if the response is not successful\r\n if (!response.ok) throw new Error(await response.text());\r\n\r\n // Return the parsed response\r\n return await response.json();\r\n } \r\n public async GetUser(id: string ): Promise<UserDTO> {\r\n const url = `${this.baseUrl}/api/Users/GetUser/` + id + ``\r\n\r\n const token = localStorage.getItem(\"auth_token\");\r\n\r\n // Construct the request options\r\n const requestOptions: RequestInit = {\r\n method: 'GET',\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n ...(token && { Authorization: `Bearer ${token}` })\r\n }, \r\n };\r\n\r\n // Perform the fetch request\r\n const response = await fetch(url, requestOptions);\r\n\r\n // Throw an error if the response is not successful\r\n if (!response.ok) throw new Error(await response.text());\r\n\r\n // Return the parsed response\r\n return await response.json();\r\n } \r\n}","\r\nimport { Home } from \"./Controllers/Home\";\r\nimport { Users } from \"./Controllers/Users\";\r\n\r\n /**\r\n * Auto-generated API client.\r\n */\r\nexport class SparkStudioAccountsSDK {\r\n\r\n public home: Home;\r\n public users: Users;\r\n\r\n constructor(baseUrl: string) { \r\n this.home = new Home(baseUrl);\r\n this.users = new Users(baseUrl);\r\n }\r\n}\r\n\r\n","import type { UserDTO } from \"../DTOs/UserDTO\";/**\r\n * Represents an Auto-generated model for AuthResponseDTO.\r\n */\r\ninterface IAuthResponseDTO {\r\n Token?: string;\r\n User: UserDTO;\r\n}type AuthResponseDTOInit =\r\n Partial<IAuthResponseDTO> &\r\n Pick<IAuthResponseDTO, \"User\">;\r\n\r\nclass AuthResponseDTO implements IAuthResponseDTO {\r\n public Token?: string;\r\n public User: UserDTO;\r\n\r\n constructor(init: AuthResponseDTOInit) {\r\n this.Token = init.Token;\r\n this.User = init.User;\r\n }\r\n}\r\n\r\nexport { AuthResponseDTO };\r\nexport type { IAuthResponseDTO };\r\n","/**\r\n * Represents an Auto-generated model for UserDTO.\r\n */\r\ninterface IUserDTO {\r\n Id: string;\r\n Sub?: string;\r\n Name?: string;\r\n Email?: string;\r\n ProfilePicture?: string;\r\n}type UserDTOInit =\r\n Partial<IUserDTO> &\r\n Pick<IUserDTO, \"Id\">;\r\n\r\nclass UserDTO implements IUserDTO {\r\n public Id: string;\r\n public Sub?: string;\r\n public Name?: string;\r\n public Email?: string;\r\n public ProfilePicture?: string;\r\n\r\n constructor(init: UserDTOInit) {\r\n this.Id = init.Id;\r\n this.Sub = init.Sub;\r\n this.Name = init.Name;\r\n this.Email = init.Email;\r\n this.ProfilePicture = init.ProfilePicture;\r\n }\r\n}\r\n\r\nexport { UserDTO };\r\nexport type { IUserDTO };\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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2B;AACnC,SAAK,QAAQ,KAAK;AAClB,SAAK,OAAO,KAAK;AAAA,EACrB;AACJ;;;ACLA,IAAM,UAAN,MAAkC;AAAA,EAO9B,YAAY,MAAmB;AAC3B,SAAK,KAAK,KAAK;AACf,SAAK,MAAM,KAAK;AAChB,SAAK,OAAO,KAAK;AACjB,SAAK,QAAQ,KAAK;AAClB,SAAK,iBAAiB,KAAK;AAAA,EAC/B;AACJ;","names":[]}
|
package/dist/index.d.cts
CHANGED
|
@@ -26,15 +26,28 @@ declare class UserDTO implements IUserDTO {
|
|
|
26
26
|
constructor(init: UserDTOInit);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
/**
|
|
30
|
+
* Represents an Auto-generated model for AuthResponseDTO.
|
|
31
|
+
*/
|
|
32
|
+
interface IAuthResponseDTO {
|
|
33
|
+
Token?: string;
|
|
34
|
+
User: UserDTO;
|
|
35
|
+
}
|
|
36
|
+
type AuthResponseDTOInit = Partial<IAuthResponseDTO> & Pick<IAuthResponseDTO, "User">;
|
|
37
|
+
declare class AuthResponseDTO implements IAuthResponseDTO {
|
|
38
|
+
Token?: string;
|
|
39
|
+
User: UserDTO;
|
|
40
|
+
constructor(init: AuthResponseDTOInit);
|
|
41
|
+
}
|
|
42
|
+
|
|
29
43
|
/**
|
|
30
44
|
* Auto-generated client for the Users controller.
|
|
31
45
|
*/
|
|
32
46
|
declare class Users {
|
|
33
47
|
private baseUrl;
|
|
34
48
|
constructor(baseUrl: string);
|
|
35
|
-
SyncUser(): Promise<
|
|
49
|
+
SyncUser(): Promise<AuthResponseDTO>;
|
|
36
50
|
GetUser(id: string): Promise<UserDTO>;
|
|
37
|
-
CreateUser(userDTO: UserDTO): Promise<UserDTO>;
|
|
38
51
|
}
|
|
39
52
|
|
|
40
53
|
/**
|
|
@@ -46,4 +59,4 @@ declare class SparkStudioAccountsSDK {
|
|
|
46
59
|
constructor(baseUrl: string);
|
|
47
60
|
}
|
|
48
61
|
|
|
49
|
-
export { Home, type IUserDTO, SparkStudioAccountsSDK, UserDTO, Users };
|
|
62
|
+
export { AuthResponseDTO, Home, type IAuthResponseDTO, type IUserDTO, SparkStudioAccountsSDK, UserDTO, Users };
|
package/dist/index.d.ts
CHANGED
|
@@ -26,15 +26,28 @@ declare class UserDTO implements IUserDTO {
|
|
|
26
26
|
constructor(init: UserDTOInit);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
/**
|
|
30
|
+
* Represents an Auto-generated model for AuthResponseDTO.
|
|
31
|
+
*/
|
|
32
|
+
interface IAuthResponseDTO {
|
|
33
|
+
Token?: string;
|
|
34
|
+
User: UserDTO;
|
|
35
|
+
}
|
|
36
|
+
type AuthResponseDTOInit = Partial<IAuthResponseDTO> & Pick<IAuthResponseDTO, "User">;
|
|
37
|
+
declare class AuthResponseDTO implements IAuthResponseDTO {
|
|
38
|
+
Token?: string;
|
|
39
|
+
User: UserDTO;
|
|
40
|
+
constructor(init: AuthResponseDTOInit);
|
|
41
|
+
}
|
|
42
|
+
|
|
29
43
|
/**
|
|
30
44
|
* Auto-generated client for the Users controller.
|
|
31
45
|
*/
|
|
32
46
|
declare class Users {
|
|
33
47
|
private baseUrl;
|
|
34
48
|
constructor(baseUrl: string);
|
|
35
|
-
SyncUser(): Promise<
|
|
49
|
+
SyncUser(): Promise<AuthResponseDTO>;
|
|
36
50
|
GetUser(id: string): Promise<UserDTO>;
|
|
37
|
-
CreateUser(userDTO: UserDTO): Promise<UserDTO>;
|
|
38
51
|
}
|
|
39
52
|
|
|
40
53
|
/**
|
|
@@ -46,4 +59,4 @@ declare class SparkStudioAccountsSDK {
|
|
|
46
59
|
constructor(baseUrl: string);
|
|
47
60
|
}
|
|
48
61
|
|
|
49
|
-
export { Home, type IUserDTO, SparkStudioAccountsSDK, UserDTO, Users };
|
|
62
|
+
export { AuthResponseDTO, Home, type IAuthResponseDTO, type IUserDTO, SparkStudioAccountsSDK, UserDTO, Users };
|
package/dist/index.js
CHANGED
|
@@ -38,21 +38,6 @@ var Users = class {
|
|
|
38
38
|
if (!response.ok) throw new Error(await response.text());
|
|
39
39
|
return await response.json();
|
|
40
40
|
}
|
|
41
|
-
async CreateUser(userDTO) {
|
|
42
|
-
const url = `${this.baseUrl}/api/Users/CreateUser`;
|
|
43
|
-
const token = localStorage.getItem("auth_token");
|
|
44
|
-
const requestOptions = {
|
|
45
|
-
method: "POST",
|
|
46
|
-
headers: {
|
|
47
|
-
"Content-Type": "application/json",
|
|
48
|
-
...token && { Authorization: `Bearer ${token}` }
|
|
49
|
-
},
|
|
50
|
-
body: JSON.stringify(userDTO)
|
|
51
|
-
};
|
|
52
|
-
const response = await fetch(url, requestOptions);
|
|
53
|
-
if (!response.ok) throw new Error(await response.text());
|
|
54
|
-
return await response.json();
|
|
55
|
-
}
|
|
56
41
|
};
|
|
57
42
|
|
|
58
43
|
// src/api/SparkStudioAccountsSDK.ts
|
|
@@ -63,6 +48,14 @@ var SparkStudioAccountsSDK = class {
|
|
|
63
48
|
}
|
|
64
49
|
};
|
|
65
50
|
|
|
51
|
+
// src/api/DTOs/AuthResponseDTO.ts
|
|
52
|
+
var AuthResponseDTO = class {
|
|
53
|
+
constructor(init) {
|
|
54
|
+
this.Token = init.Token;
|
|
55
|
+
this.User = init.User;
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
|
|
66
59
|
// src/api/DTOs/UserDTO.ts
|
|
67
60
|
var UserDTO = class {
|
|
68
61
|
constructor(init) {
|
|
@@ -74,6 +67,7 @@ var UserDTO = class {
|
|
|
74
67
|
}
|
|
75
68
|
};
|
|
76
69
|
export {
|
|
70
|
+
AuthResponseDTO,
|
|
77
71
|
Home,
|
|
78
72
|
SparkStudioAccountsSDK,
|
|
79
73
|
UserDTO,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/api/Controllers/Home.ts","../src/api/Controllers/Users.ts","../src/api/SparkStudioAccountsSDK.ts","../src/api/DTOs/UserDTO.ts"],"sourcesContent":["\r\n\r\n /**\r\n * Auto-generated client for the Home controller.\r\n */\r\nexport class Home {\r\n private baseUrl: string;\r\n\r\n constructor(baseUrl: string) {\r\n this.baseUrl = baseUrl;\r\n }\r\n\r\n}","\r\nimport type { UserDTO } from \"../DTOs/UserDTO\";\r\n\r\n /**\r\n * Auto-generated client for the Users controller.\r\n */\r\nexport class Users {\r\n private baseUrl: string;\r\n\r\n constructor(baseUrl: string) {\r\n this.baseUrl = baseUrl;\r\n }\r\n\r\n public async SyncUser( ): Promise<
|
|
1
|
+
{"version":3,"sources":["../src/api/Controllers/Home.ts","../src/api/Controllers/Users.ts","../src/api/SparkStudioAccountsSDK.ts","../src/api/DTOs/AuthResponseDTO.ts","../src/api/DTOs/UserDTO.ts"],"sourcesContent":["\r\n\r\n /**\r\n * Auto-generated client for the Home controller.\r\n */\r\nexport class Home {\r\n private baseUrl: string;\r\n\r\n constructor(baseUrl: string) {\r\n this.baseUrl = baseUrl;\r\n }\r\n\r\n}","\r\nimport type { AuthResponseDTO } from \"../DTOs/AuthResponseDTO\";\r\nimport type { UserDTO } from \"../DTOs/UserDTO\";\r\n\r\n /**\r\n * Auto-generated client for the Users controller.\r\n */\r\nexport class Users {\r\n private baseUrl: string;\r\n\r\n constructor(baseUrl: string) {\r\n this.baseUrl = baseUrl;\r\n }\r\n\r\n public async SyncUser( ): Promise<AuthResponseDTO> {\r\n const url = `${this.baseUrl}/api/Users/SyncUser`\r\n\r\n const token = localStorage.getItem(\"auth_token\");\r\n\r\n // Construct the request options\r\n const requestOptions: RequestInit = {\r\n method: 'GET',\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n ...(token && { Authorization: `Bearer ${token}` })\r\n }, \r\n };\r\n\r\n // Perform the fetch request\r\n const response = await fetch(url, requestOptions);\r\n\r\n // Throw an error if the response is not successful\r\n if (!response.ok) throw new Error(await response.text());\r\n\r\n // Return the parsed response\r\n return await response.json();\r\n } \r\n public async GetUser(id: string ): Promise<UserDTO> {\r\n const url = `${this.baseUrl}/api/Users/GetUser/` + id + ``\r\n\r\n const token = localStorage.getItem(\"auth_token\");\r\n\r\n // Construct the request options\r\n const requestOptions: RequestInit = {\r\n method: 'GET',\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n ...(token && { Authorization: `Bearer ${token}` })\r\n }, \r\n };\r\n\r\n // Perform the fetch request\r\n const response = await fetch(url, requestOptions);\r\n\r\n // Throw an error if the response is not successful\r\n if (!response.ok) throw new Error(await response.text());\r\n\r\n // Return the parsed response\r\n return await response.json();\r\n } \r\n}","\r\nimport { Home } from \"./Controllers/Home\";\r\nimport { Users } from \"./Controllers/Users\";\r\n\r\n /**\r\n * Auto-generated API client.\r\n */\r\nexport class SparkStudioAccountsSDK {\r\n\r\n public home: Home;\r\n public users: Users;\r\n\r\n constructor(baseUrl: string) { \r\n this.home = new Home(baseUrl);\r\n this.users = new Users(baseUrl);\r\n }\r\n}\r\n\r\n","import type { UserDTO } from \"../DTOs/UserDTO\";/**\r\n * Represents an Auto-generated model for AuthResponseDTO.\r\n */\r\ninterface IAuthResponseDTO {\r\n Token?: string;\r\n User: UserDTO;\r\n}type AuthResponseDTOInit =\r\n Partial<IAuthResponseDTO> &\r\n Pick<IAuthResponseDTO, \"User\">;\r\n\r\nclass AuthResponseDTO implements IAuthResponseDTO {\r\n public Token?: string;\r\n public User: UserDTO;\r\n\r\n constructor(init: AuthResponseDTOInit) {\r\n this.Token = init.Token;\r\n this.User = init.User;\r\n }\r\n}\r\n\r\nexport { AuthResponseDTO };\r\nexport type { IAuthResponseDTO };\r\n","/**\r\n * Represents an Auto-generated model for UserDTO.\r\n */\r\ninterface IUserDTO {\r\n Id: string;\r\n Sub?: string;\r\n Name?: string;\r\n Email?: string;\r\n ProfilePicture?: string;\r\n}type UserDTOInit =\r\n Partial<IUserDTO> &\r\n Pick<IUserDTO, \"Id\">;\r\n\r\nclass UserDTO implements IUserDTO {\r\n public Id: string;\r\n public Sub?: string;\r\n public Name?: string;\r\n public Email?: string;\r\n public ProfilePicture?: string;\r\n\r\n constructor(init: UserDTOInit) {\r\n this.Id = init.Id;\r\n this.Sub = init.Sub;\r\n this.Name = init.Name;\r\n this.Email = init.Email;\r\n this.ProfilePicture = init.ProfilePicture;\r\n }\r\n}\r\n\r\nexport { UserDTO };\r\nexport type { IUserDTO };\r\n"],"mappings":";AAKO,IAAM,OAAN,MAAW;AAAA,EAGd,YAAY,SAAiB;AACzB,SAAK,UAAU;AAAA,EACnB;AAEJ;;;ACLO,IAAM,QAAN,MAAY;AAAA,EAGf,YAAY,SAAiB;AACzB,SAAK,UAAU;AAAA,EACnB;AAAA,EAEA,MAAa,WAAsC;AAC/C,UAAM,MAAM,GAAG,KAAK,OAAO;AAE3B,UAAM,QAAQ,aAAa,QAAQ,YAAY;AAG/C,UAAM,iBAA8B;AAAA,MAChC,QAAQ;AAAA,MACR,SAAS;AAAA,QACL,gBAAgB;AAAA,QAChB,GAAI,SAAS,EAAE,eAAe,UAAU,KAAK,GAAG;AAAA,MACpD;AAAA,IACJ;AAGA,UAAM,WAAW,MAAM,MAAM,KAAK,cAAc;AAGhD,QAAI,CAAC,SAAS,GAAI,OAAM,IAAI,MAAM,MAAM,SAAS,KAAK,CAAC;AAGvD,WAAO,MAAM,SAAS,KAAK;AAAA,EAC/B;AAAA,EACA,MAAa,QAAQ,IAA+B;AAChD,UAAM,MAAM,GAAG,KAAK,OAAO,wBAAwB;AAEnD,UAAM,QAAQ,aAAa,QAAQ,YAAY;AAG/C,UAAM,iBAA8B;AAAA,MAChC,QAAQ;AAAA,MACR,SAAS;AAAA,QACL,gBAAgB;AAAA,QAChB,GAAI,SAAS,EAAE,eAAe,UAAU,KAAK,GAAG;AAAA,MACpD;AAAA,IACJ;AAGA,UAAM,WAAW,MAAM,MAAM,KAAK,cAAc;AAGhD,QAAI,CAAC,SAAS,GAAI,OAAM,IAAI,MAAM,MAAM,SAAS,KAAK,CAAC;AAGvD,WAAO,MAAM,SAAS,KAAK;AAAA,EAC/B;AACJ;;;ACrDO,IAA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