@segment/action-destinations 3.100.1-alpha.1 → 3.101.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.
- package/dist/destinations/1plusx/sendEvent/generated-types.d.ts +1 -1
- package/dist/destinations/1plusx/sendEvent/index.js +1 -2
- package/dist/destinations/1plusx/sendEvent/index.js.map +1 -1
- package/dist/destinations/1plusx/sendPageview/generated-types.d.ts +1 -1
- package/dist/destinations/1plusx/sendPageview/index.js +1 -2
- package/dist/destinations/1plusx/sendPageview/index.js.map +1 -1
- package/dist/destinations/1plusx/sendUserData/generated-types.d.ts +1 -1
- package/dist/destinations/1plusx/sendUserData/index.js +1 -2
- package/dist/destinations/1plusx/sendUserData/index.js.map +1 -1
- package/dist/destinations/actions-pardot/index.js +1 -1
- package/dist/destinations/actions-pardot/index.js.map +1 -1
- package/dist/destinations/actions-pardot/pa-operations.d.ts +1 -1
- package/dist/destinations/actions-pardot/pa-operations.js +3 -3
- package/dist/destinations/actions-pardot/pa-operations.js.map +1 -1
- package/dist/destinations/actions-pardot/prospects/index.js +5 -4
- package/dist/destinations/actions-pardot/prospects/index.js.map +1 -1
- package/dist/destinations/cordial/addProductToCart/index.js +1 -1
- package/dist/destinations/cordial/addProductToCart/index.js.map +1 -1
- package/dist/destinations/cordial/index.js +1 -1
- package/dist/destinations/cordial/index.js.map +1 -1
- package/dist/destinations/cordial/removeProductFromCart/index.js.map +1 -1
- package/dist/destinations/cordial/upsertOrder/index.js +8 -8
- package/dist/destinations/cordial/upsertOrder/index.js.map +1 -1
- package/dist/destinations/customerio/trackEvent/index.js.map +1 -1
- package/dist/destinations/engage-messaging-sendgrid/generated-types.d.ts +0 -1
- package/dist/destinations/engage-messaging-sendgrid/index.js +0 -5
- package/dist/destinations/engage-messaging-sendgrid/index.js.map +1 -1
- package/dist/destinations/engage-messaging-sendgrid/sendEmail/generated-types.d.ts +0 -4
- package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.js +0 -40
- package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.js.map +1 -1
- package/dist/destinations/engage-messaging-twilio/sendSms/index.js +1 -2
- package/dist/destinations/engage-messaging-twilio/sendSms/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/generated-types.d.ts +1 -1
- package/dist/destinations/google-enhanced-conversions/index.js +7 -3
- package/dist/destinations/google-enhanced-conversions/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/postConversion/index.js +1 -7
- package/dist/destinations/google-enhanced-conversions/postConversion/index.js.map +1 -1
- package/dist/destinations/index.js +1 -2
- package/dist/destinations/index.js.map +1 -1
- package/dist/destinations/intercom/groupIdentifyContact/generated-types.d.ts +2 -0
- package/dist/destinations/intercom/groupIdentifyContact/index.js +44 -36
- package/dist/destinations/intercom/groupIdentifyContact/index.js.map +1 -1
- package/dist/destinations/intercom/identifyContact/index.js +24 -54
- package/dist/destinations/intercom/identifyContact/index.js.map +1 -1
- package/dist/destinations/intercom/index.d.ts +1 -1
- package/dist/destinations/intercom/index.js +24 -8
- package/dist/destinations/intercom/index.js.map +1 -1
- package/dist/destinations/intercom/trackEvent/generated-types.d.ts +12 -0
- package/dist/destinations/{salesforce-marketing-cloud/contact → intercom/trackEvent}/generated-types.js +0 -0
- package/dist/destinations/intercom/trackEvent/generated-types.js.map +1 -0
- package/dist/destinations/{salesforce-marketing-cloud/contact → intercom/trackEvent}/index.d.ts +1 -1
- package/dist/destinations/intercom/trackEvent/index.js +111 -0
- package/dist/destinations/intercom/trackEvent/index.js.map +1 -0
- package/dist/destinations/intercom/util.d.ts +11 -0
- package/dist/destinations/intercom/util.js +48 -0
- package/dist/destinations/intercom/util.js.map +1 -0
- package/dist/destinations/mixpanel/alias/index.js +4 -2
- package/dist/destinations/mixpanel/alias/index.js.map +1 -1
- package/dist/destinations/mixpanel/generated-types.d.ts +2 -0
- package/dist/destinations/mixpanel/groupIdentifyUser/index.js +4 -2
- package/dist/destinations/mixpanel/groupIdentifyUser/index.js.map +1 -1
- package/dist/destinations/mixpanel/identifyUser/index.js +8 -4
- package/dist/destinations/mixpanel/identifyUser/index.js.map +1 -1
- package/dist/destinations/mixpanel/index.js +13 -0
- package/dist/destinations/mixpanel/index.js.map +1 -1
- package/dist/destinations/mixpanel/trackEvent/generated-types.d.ts +1 -0
- package/dist/destinations/mixpanel/trackEvent/index.js +79 -66
- package/dist/destinations/mixpanel/trackEvent/index.js.map +1 -1
- package/dist/destinations/mixpanel/utils.d.ts +5 -0
- package/dist/destinations/mixpanel/utils.js +13 -1
- package/dist/destinations/mixpanel/utils.js.map +1 -1
- package/dist/destinations/salesforce/account/index.js +1 -1
- package/dist/destinations/salesforce/account/index.js.map +1 -1
- package/dist/destinations/salesforce/cases/index.js +1 -1
- package/dist/destinations/salesforce/cases/index.js.map +1 -1
- package/dist/destinations/salesforce/contact/index.js +1 -1
- package/dist/destinations/salesforce/contact/index.js.map +1 -1
- package/dist/destinations/salesforce/customObject/index.js +1 -1
- package/dist/destinations/salesforce/customObject/index.js.map +1 -1
- package/dist/destinations/salesforce/lead/index.js +2 -3
- package/dist/destinations/salesforce/lead/index.js.map +1 -1
- package/dist/destinations/salesforce/opportunity/index.js +1 -1
- package/dist/destinations/salesforce/opportunity/index.js.map +1 -1
- package/dist/lib/engage-test-data/create-messaging-test-event.d.ts +1 -15
- package/dist/lib/engage-test-data/create-messaging-test-event.js +0 -15
- package/dist/lib/engage-test-data/create-messaging-test-event.js.map +1 -1
- package/package.json +4 -4
- package/dist/destinations/salesforce-marketing-cloud/contact/generated-types.d.ts +0 -2
- package/dist/destinations/salesforce-marketing-cloud/contact/generated-types.js.map +0 -1
- package/dist/destinations/salesforce-marketing-cloud/contact/index.js +0 -11
- package/dist/destinations/salesforce-marketing-cloud/contact/index.js.map +0 -1
- package/dist/destinations/salesforce-marketing-cloud/generated-types.d.ts +0 -2
- package/dist/destinations/salesforce-marketing-cloud/generated-types.js +0 -3
- package/dist/destinations/salesforce-marketing-cloud/generated-types.js.map +0 -1
- package/dist/destinations/salesforce-marketing-cloud/index.d.ts +0 -4
- package/dist/destinations/salesforce-marketing-cloud/index.js +0 -27
- package/dist/destinations/salesforce-marketing-cloud/index.js.map +0 -1
|
@@ -9,7 +9,7 @@ const sf_operations_1 = __importDefault(require("../sf-operations"));
|
|
|
9
9
|
const OBJECT_NAME = 'Lead';
|
|
10
10
|
const action = {
|
|
11
11
|
title: 'Lead',
|
|
12
|
-
description: '
|
|
12
|
+
description: 'Create, update, or upsert leads in Salesforce.',
|
|
13
13
|
defaultSubscription: 'type = "identify"',
|
|
14
14
|
fields: {
|
|
15
15
|
operation: sf_properties_1.operation,
|
|
@@ -127,9 +127,8 @@ const action = {
|
|
|
127
127
|
},
|
|
128
128
|
customFields: sf_properties_1.customFields
|
|
129
129
|
},
|
|
130
|
-
perform: async (request, { settings, payload
|
|
130
|
+
perform: async (request, { settings, payload }) => {
|
|
131
131
|
const sf = new sf_operations_1.default(settings.instanceUrl, request);
|
|
132
|
-
logger?.info('STRATCONN - 15345 - Test Log - Processing Salesforce Lead action');
|
|
133
132
|
if (payload.operation === 'create') {
|
|
134
133
|
if (!payload.company || !payload.last_name) {
|
|
135
134
|
throw new actions_core_1.IntegrationError('Missing company or last_name value', 'Misconfigured required field', 400);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/salesforce/lead/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA0E;AAG1E,oDAQyB;AACzB,qEAAyC;AAEzC,MAAM,WAAW,GAAG,MAAM,CAAA;AAE1B,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,MAAM;IACb,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/salesforce/lead/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA0E;AAG1E,oDAQyB;AACzB,qEAAyC;AAEzC,MAAM,WAAW,GAAG,MAAM,CAAA;AAE1B,MAAM,MAAM,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AAS,EAAE;gBAC1C,MAAM,IAAI,+BAAgB,CAAC,oCAAoC,EAAE,8BAA8B,EAAE,GAAG,CAAC,CAAA;aACtG;YACD,OAAO,MAAM,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,WAAW,CAAC,CAAA;SACnD;IACH,CAAC;IACD,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QACrD,MAAM,EAAE,GAAe,IAAI,uBAAU,CAAC,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC,CAAA;QAEpE,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,KAAK,QAAQ,EAAE;YACrC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE;gBAChD,MAAM,IAAI,+BAAgB,CAAC,oCAAoC,EAAE,8BAA8B,EAAE,GAAG,CAAC,CAAA;aACtG;SACF;QAED,OAAO,EAAE,CAAC,WAAW,CAAC,OAAO,EAAE,WAAW,CAAC,CAAA;IAC7C,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -9,7 +9,7 @@ const sf_properties_1 = require("../sf-properties");
|
|
|
9
9
|
const OBJECT_NAME = 'Opportunity';
|
|
10
10
|
const action = {
|
|
11
11
|
title: 'Opportunity',
|
|
12
|
-
description: '
|
|
12
|
+
description: 'Create, update, or upsert opportunities in Salesforce.',
|
|
13
13
|
fields: {
|
|
14
14
|
operation: sf_properties_1.operation,
|
|
15
15
|
enable_batching: sf_properties_1.enable_batching,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/salesforce/opportunity/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA0E;AAE1E,qEAAyC;AACzC,oDAQyB;AAGzB,MAAM,WAAW,GAAG,aAAa,CAAA;AAEjC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/salesforce/opportunity/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA0E;AAE1E,qEAAyC;AACzC,oDAQyB;AAGzB,MAAM,WAAW,GAAG,aAAa,CAAA;AAEjC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,wDAAwD;IACrE,MAAM,EAAE;QACN,SAAS,EAAE,yBAAS;QACpB,eAAe,EAAE,+BAAe;QAChC,MAAM,EAAE,sBAAM;QACd,oBAAoB,EAAE,oCAAoB;QAC1C,kBAAkB,EAAE,kCAAkB;QACtC,UAAU,EAAE;YACV,KAAK,EAAE,YAAY;YACnB,WAAW,EACT,uHAAuH;YACzH,IAAI,EAAE,QAAQ;SACf;QACD,IAAI,EAAE;YACJ,KAAK,EAAE,MAAM;YACb,WAAW,EAAE,4EAA4E;YACzF,IAAI,EAAE,QAAQ;SACf;QACD,UAAU,EAAE;YACV,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE,kFAAkF;YAC/F,IAAI,EAAE,QAAQ;SACf;QACD,MAAM,EAAE;YACN,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,QAAQ;SACf;QACD,WAAW,EAAE;YACX,KAAK,EAAE,aAAa;YACpB,WAAW,EAAE,wCAAwC;YACrD,IAAI,EAAE,QAAQ;SACf;QACD,YAAY,EAAE,4BAAY;KAC3B;IACD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QAChD,MAAM,EAAE,GAAe,IAAI,uBAAU,CAAC,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC,CAAA;QAEpE,IAAI,OAAO,CAAC,SAAS,KAAK,QAAQ,EAAE;YAClC,IAAI,CAAC,OAAO,CAAC,UAAU,IAAI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,CAAC,OAAO,EAAE,WAAW,CAAC,CAAA;IAC7C,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1,16 +1,2 @@
|
|
|
1
1
|
import type { SegmentEvent } from '@segment/actions-core';
|
|
2
|
-
declare
|
|
3
|
-
external_ids?: {
|
|
4
|
-
id: string;
|
|
5
|
-
type: 'email' | 'phone';
|
|
6
|
-
isSubscribed: boolean | null;
|
|
7
|
-
collection: 'users';
|
|
8
|
-
encoding: 'none';
|
|
9
|
-
groups?: {
|
|
10
|
-
id: string;
|
|
11
|
-
isSubscribed: boolean | null;
|
|
12
|
-
}[];
|
|
13
|
-
}[];
|
|
14
|
-
};
|
|
15
|
-
export declare function createMessagingTestEvent(event?: Partial<SegmentEventWithExternalIds>): SegmentEventWithExternalIds;
|
|
16
|
-
export {};
|
|
2
|
+
export declare function createMessagingTestEvent(event?: Partial<SegmentEvent>): SegmentEvent;
|
|
@@ -41,21 +41,6 @@ function createMessagingTestEvent(event = {}) {
|
|
|
41
41
|
traits: {},
|
|
42
42
|
type: 'track',
|
|
43
43
|
userId: 'user1234',
|
|
44
|
-
external_ids: [
|
|
45
|
-
{
|
|
46
|
-
collection: 'users',
|
|
47
|
-
encoding: 'none',
|
|
48
|
-
groups: [
|
|
49
|
-
{
|
|
50
|
-
id: uuid_1.v4(),
|
|
51
|
-
isSubscribed: true
|
|
52
|
-
}
|
|
53
|
-
] || undefined,
|
|
54
|
-
id: uuid_1.v4() + '@unittest.com',
|
|
55
|
-
isSubscribed: true,
|
|
56
|
-
type: 'email'
|
|
57
|
-
}
|
|
58
|
-
],
|
|
59
44
|
...event
|
|
60
45
|
};
|
|
61
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-messaging-test-event.js","sourceRoot":"","sources":["../../../src/lib/engage-test-data/create-messaging-test-event.ts"],"names":[],"mappings":";;;AAAA,uCAA2C;
|
|
1
|
+
{"version":3,"file":"create-messaging-test-event.js","sourceRoot":"","sources":["../../../src/lib/engage-test-data/create-messaging-test-event.ts"],"names":[],"mappings":";;;AAAA,uCAA2C;AAG3C,SAAgB,wBAAwB,CAAC,QAA+B,EAAE;IACxE,OAAO;QACL,WAAW,EAAE,SAAM,EAAE;QACrB,OAAO,EAAE;YACP,EAAE,EAAE,SAAS;YACb,OAAO,EAAE;gBACP,IAAI,EAAE,cAAc;gBACpB,OAAO,EAAE,QAAQ;aAClB;YACD,MAAM,EAAE,OAAO;YACf,QAAQ,EAAE;gBACR,IAAI,EAAE,eAAe;gBACrB,OAAO,EAAE,eAAe;gBACxB,QAAQ,EAAE,UAAU;gBACpB,SAAS,EAAE,CAAC,UAAU;gBACtB,KAAK,EAAE,CAAC;aACT;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,WAAW;gBACjB,QAAQ,EAAE,EAAE;gBACZ,MAAM,EAAE,EAAE;gBACV,KAAK,EAAE,mBAAmB;gBAC1B,GAAG,EAAE,8BAA8B;aACpC;YACD,QAAQ,EAAE,kBAAkB;YAC5B,SAAS,EACP,uIAAuI;SAC1I;QACD,KAAK,EAAE,YAAY;QACnB,SAAS,EAAE,SAAM,EAAE;QACnB,UAAU,EAAE;YACV,SAAS,EAAE,YAAY;YACvB,QAAQ,EAAE,UAAU;SACrB;QACD,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;QACpC,MAAM,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;QAChC,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;QACnC,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,OAAO;QACb,MAAM,EAAE,UAAU;QAClB,GAAG,KAAK;KACT,CAAA;AACH,CAAC;AA1CD,4DA0CC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@segment/action-destinations",
|
|
3
3
|
"description": "Destination Actions engine and definitions.",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.101.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/segmentio/action-destinations",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@amplitude/ua-parser-js": "^0.7.25",
|
|
40
40
|
"@segment/a1-notation": "^2.1.4",
|
|
41
|
-
"@segment/actions-core": "^3.
|
|
42
|
-
"@segment/actions-shared": "^1.
|
|
41
|
+
"@segment/actions-core": "^3.32.0",
|
|
42
|
+
"@segment/actions-shared": "^1.15.0",
|
|
43
43
|
"cheerio": "^1.0.0-rc.10",
|
|
44
44
|
"dayjs": "^1.10.7",
|
|
45
45
|
"escape-goat": "^3",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"lcov"
|
|
66
66
|
]
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "3feb303f6e089596ab934a8d5544f4e2aefa31c7"
|
|
69
69
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/salesforce-marketing-cloud/contact/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/salesforce-marketing-cloud/contact/index.ts"],"names":[],"mappings":";;AAIA,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,SAAS;IAChB,WAAW,EAAE,MAAM;IACnB,MAAM,EAAE,EAAE;IACV,OAAO,EAAE,GAAG,EAAE;IAOd,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../src/destinations/salesforce-marketing-cloud/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const contact_1 = __importDefault(require("./contact"));
|
|
7
|
-
const destination = {
|
|
8
|
-
name: 'Salesforce Marketing Cloud (Actions)',
|
|
9
|
-
slug: 'actions-salesforce-marketing-cloud',
|
|
10
|
-
mode: 'cloud',
|
|
11
|
-
authentication: {
|
|
12
|
-
scheme: 'oauth2',
|
|
13
|
-
fields: {}
|
|
14
|
-
},
|
|
15
|
-
extendRequest({ auth }) {
|
|
16
|
-
return {
|
|
17
|
-
headers: {
|
|
18
|
-
authorization: `Bearer ${auth?.accessToken}`
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
},
|
|
22
|
-
actions: {
|
|
23
|
-
contact: contact_1.default
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
exports.default = destination;
|
|
27
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/salesforce-marketing-cloud/index.ts"],"names":[],"mappings":";;;;;AAGA,wDAA+B;AAE/B,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,sCAAsC;IAC5C,IAAI,EAAE,oCAAoC;IAC1C,IAAI,EAAE,OAAO;IAEb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,EAAE;KAoBX;IACD,aAAa,CAAC,EAAE,IAAI,EAAE;QACpB,OAAO;YACL,OAAO,EAAE;gBACP,aAAa,EAAE,UAAU,IAAI,EAAE,WAAW,EAAE;aAC7C;SACF,CAAA;IACH,CAAC;IAOD,OAAO,EAAE;QACP,OAAO,EAAP,iBAAO;KACR;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|