@adobe/magento-storefront-events-sdk 1.5.3 → 1.6.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/README.md +18 -518
- package/dist/index.js +1 -1
- package/dist/index.js.LICENSE.txt +1 -1
- package/dist/types/PublishManager.d.ts +1 -0
- package/dist/types/PublishManager.d.ts.map +1 -1
- package/dist/types/SubscribeManager.d.ts +1 -0
- package/dist/types/SubscribeManager.d.ts.map +1 -1
- package/dist/types/UnsubscribeManager.d.ts +1 -0
- package/dist/types/UnsubscribeManager.d.ts.map +1 -1
- package/dist/types/events.d.ts +1 -0
- package/dist/types/events.d.ts.map +1 -1
- package/dist/types/types/events.d.ts +1 -1
- package/dist/types/types/events.d.ts.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
## Overview
|
|
11
11
|
|
|
12
|
-
This package serves as the foundation for eventing on an [Adobe Commerce][commerce] storefront. It provides access to
|
|
12
|
+
This package serves as the foundation for eventing on an [Adobe Commerce][commerce] storefront. It provides access to the Adobe data layer, and an event publishing service.
|
|
13
13
|
|
|
14
14
|
You can handle the events in a custom implementation, or use the [Adobe Commerce Events Collectors][collectors] package that listens for events and sends them to Adobe Commerce edges for processing.
|
|
15
15
|
|
|
@@ -40,14 +40,14 @@ npm install @adobe/commerce-events-sdk
|
|
|
40
40
|
|
|
41
41
|
Once imported, you have access to the four main functions of the Events SDK.
|
|
42
42
|
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
43
|
+
- `Context` - set context data
|
|
44
|
+
- `Publish` - publish events
|
|
45
|
+
- `Subscribe` - subscribe to events
|
|
46
|
+
- `Unsubscribe` - unsubscribe from events
|
|
47
47
|
|
|
48
48
|
Below is a code example of how to get started.
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
**IMPORTANT** Relevant context data must be populated before publishing events that require it.
|
|
51
51
|
|
|
52
52
|
```javascript
|
|
53
53
|
import mse from "@adobe/commerce-events-sdk";
|
|
@@ -93,531 +93,35 @@ Addiontally, you can publish custom events or add a custom context to a supporte
|
|
|
93
93
|
|
|
94
94
|
## API reference
|
|
95
95
|
|
|
96
|
-
The SDK is broken down into four major parts:
|
|
96
|
+
The SDK is broken down into four major parts: `Context`, `Publish`, `Subscribe`, `Unsubscribe`.
|
|
97
97
|
|
|
98
98
|
### Context
|
|
99
99
|
|
|
100
|
-
|
|
100
|
+
Pre-defined contexts are listed in the [ContextManager](./src/ContextManager.ts).
|
|
101
101
|
|
|
102
|
-
|
|
102
|
+
Examples of setting context under [examples/events/example-contexts](../../examples/events/example-contexts/).
|
|
103
103
|
|
|
104
|
-
|
|
105
|
-
mse.context.setAEP(aepCtx);
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
Sets the `AEP` context which can be used by event handlers to forward events to the Adobe Experience Platform. A client must have an AEP subscription and provide a valid [IMS Org Id and Datastream Id](https://experienceleague.adobe.com/docs/experience-platform/edge/fundamentals/datastreams.html?lang=en).
|
|
109
|
-
|
|
110
|
-
- [context schema definition](https://github.com/adobe/commerce-events/tree/main/packages/commerce-events-sdk/src/types/schemas/aep.ts)
|
|
111
|
-
- [context example](https://github.com/adobe/commerce-events/blob/main/packages/commerce-events-sdk/tests/mocks.ts#L25)
|
|
112
|
-
|
|
113
|
-
#### `setCategory`
|
|
114
|
-
|
|
115
|
-
```javascript
|
|
116
|
-
mse.context.setCategory(categoryCtx);
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
Sets the `Category` context.
|
|
120
|
-
|
|
121
|
-
- [context schema definition](https://github.com/adobe/commerce-events/tree/main/packages/commerce-events-sdk/src/types/schemas/category.ts)
|
|
122
|
-
- [context example](https://github.com/adobe/commerce-events/blob/main/packages/commerce-events-sdk/tests/mocks.ts#L31)
|
|
123
|
-
|
|
124
|
-
#### `setChangedProducts`
|
|
125
|
-
|
|
126
|
-
```javascript
|
|
127
|
-
mse.context.setChangedProducts(changedProductsCtx);
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
Sets the `ChangedProducts` context.
|
|
131
|
-
|
|
132
|
-
- [context schema definition](https://github.com/adobe/commerce-events/blob/main/packages/storefront-events-sdk/src/types/schemas/changedProducts.ts)
|
|
133
|
-
- [context example](https://github.com/adobe/commerce-events/blob/main/packages/storefront-events-collector/tests/utils/mocks/dataLayer.ts#L31)
|
|
134
|
-
|
|
135
|
-
#### `setAccount`
|
|
136
|
-
|
|
137
|
-
```javascript
|
|
138
|
-
mse.context.setAccount(accountCtx);
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
Sets the `Account` context.
|
|
142
|
-
|
|
143
|
-
#### `setCustomUrl`
|
|
144
|
-
|
|
145
|
-
```javascript
|
|
146
|
-
mse.context.setCustomUrl(customUrlCtx);
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
Sets the `CustomUrl` context.
|
|
150
|
-
|
|
151
|
-
- [context schema definition](https://github.com/adobe/commerce-events/tree/main/packages/commerce-events-sdk/src/types/schemas/customUrl.ts)
|
|
152
|
-
- [context example](https://github.com/adobe/commerce-events/blob/main/packages/commerce-events-sdk/tests/mocks.ts#L40)
|
|
153
|
-
|
|
154
|
-
#### `setEventForwarding`
|
|
155
|
-
|
|
156
|
-
```javascript
|
|
157
|
-
mse.context.setEventForwarding(eventForwardingCtx);
|
|
158
|
-
```
|
|
159
|
-
|
|
160
|
-
Sets the `EventForwarding` context. Tells a handler if it should forward events to Adobe Commerce DataSolutions (`commerce: true`), Adobe Experience Platform (`aep: true`), or both.
|
|
161
|
-
|
|
162
|
-
- [context schema definition](https://github.com/adobe/commerce-events/tree/main/packages/commerce-events-sdk/src/types/schemas/eventForwarding.ts)
|
|
163
|
-
- [context example](https://github.com/adobe/commerce-events/blob/main/packages/commerce-events-sdk/tests/mocks.ts#L47)
|
|
164
|
-
|
|
165
|
-
#### `setMagentoExtension` @deprecated
|
|
166
|
-
|
|
167
|
-
```javascript
|
|
168
|
-
mse.context.setMagentoExtension(magentoExtensionCtx);
|
|
169
|
-
```
|
|
170
|
-
|
|
171
|
-
Sets the `MagentoExtension` context. Includes Data Services extension version.
|
|
172
|
-
|
|
173
|
-
This field is deprecated. `setDataServicesExtension` should be used instead.
|
|
174
|
-
|
|
175
|
-
- [context schema definition](https://github.com/adobe/commerce-events/tree/main/packages/commerce-events-sdk/src/types/schemas/magentoExtension.ts)
|
|
176
|
-
- [context example](https://github.com/adobe/commerce-events/blob/main/packages/commerce-events-sdk/tests/mocks.ts#L55)
|
|
177
|
-
|
|
178
|
-
#### `setDataServicesExtension`
|
|
179
|
-
|
|
180
|
-
```javascript
|
|
181
|
-
mse.context.setDataServicesExtension(dataServicesExtensionCtx);
|
|
182
|
-
```
|
|
183
|
-
|
|
184
|
-
Sets the `DataServicesExtension` context. Includes Data Services extension version.
|
|
185
|
-
|
|
186
|
-
- [context schema definition](https://github.com/adobe/commerce-events/tree/main/packages/commerce-events-sdk/src/types/schemas/dataServicesExtension.ts)
|
|
187
|
-
|
|
188
|
-
#### `setExperiencePlatformConnectorExtension`
|
|
189
|
-
|
|
190
|
-
```javascript
|
|
191
|
-
mse.context.setExperiencePlatformConnectorExtension(experiencePlatformConnectorExtensionCtx);
|
|
192
|
-
```
|
|
193
|
-
|
|
194
|
-
Sets the `ExperiencePlatformConnectorExtension` context. Includes Experience Platform Connector extension version.
|
|
195
|
-
|
|
196
|
-
#### `setOrder`
|
|
197
|
-
|
|
198
|
-
```javascript
|
|
199
|
-
mse.context.setOrder(orderCtx);
|
|
200
|
-
```
|
|
201
|
-
|
|
202
|
-
Sets the `Order` context.
|
|
203
|
-
|
|
204
|
-
- [context schema definition](https://github.com/adobe/commerce-events/tree/main/packages/commerce-events-sdk/src/types/schemas/order.ts)
|
|
205
|
-
- [context example](https://github.com/adobe/commerce-events/blob/main/packages/commerce-events-sdk/tests/mocks.ts#L62)
|
|
206
|
-
|
|
207
|
-
#### `setOrderPage`
|
|
208
|
-
|
|
209
|
-
```javascript
|
|
210
|
-
mse.context.setOrderPage(orderProductsCtx);
|
|
211
|
-
```
|
|
212
|
-
|
|
213
|
-
Sets the `OrderProducts` context.
|
|
214
|
-
|
|
215
|
-
- [context schema definition](https://github.com/adobe/commerce-events/tree/main/packages/commerce-events-sdk/src/types/schemas/orderProducts.ts)
|
|
216
|
-
- [context example](https://github.com/adobe/commerce-events/blob/main/packages/commerce-events-sdk/tests/mocks.ts#L83)
|
|
217
|
-
|
|
218
|
-
#### `setPage`
|
|
219
|
-
|
|
220
|
-
```javascript
|
|
221
|
-
mse.context.setPage(pageCtx);
|
|
222
|
-
```
|
|
223
|
-
|
|
224
|
-
Sets the `Page` context.
|
|
225
|
-
|
|
226
|
-
- [context schema definition](https://github.com/adobe/commerce-events/tree/main/packages/commerce-events-sdk/src/types/schemas/page.ts)
|
|
227
|
-
- [context example](<(https://github.com/adobe/commerce-events/blob/main/packages/commerce-events-sdk/tests/mocks.ts#L76)>)
|
|
228
|
-
|
|
229
|
-
#### `setProduct`
|
|
230
|
-
|
|
231
|
-
```javascript
|
|
232
|
-
mse.context.setProduct(productCtx);
|
|
233
|
-
```
|
|
234
|
-
|
|
235
|
-
Sets the `Product` context.
|
|
236
|
-
|
|
237
|
-
- [context schema definition](https://github.com/adobe/commerce-events/tree/main/packages/commerce-events-sdk/src/types/schemas/product.ts)
|
|
238
|
-
- [context example](https://github.com/adobe/commerce-events/blob/main/packages/commerce-events-sdk/tests/mocks.ts#L88)
|
|
239
|
-
|
|
240
|
-
#### `setRecommendations`
|
|
241
|
-
|
|
242
|
-
```javascript
|
|
243
|
-
mse.context.setRecommendations(recommendationsCtx);
|
|
244
|
-
```
|
|
245
|
-
|
|
246
|
-
Sets the `Recommendations` context.
|
|
247
|
-
|
|
248
|
-
- [context schema definition](https://github.com/adobe/commerce-events/tree/main/packages/commerce-events-sdk/src/types/schemas/recommendations.ts)
|
|
249
|
-
- [context example](https://github.com/adobe/commerce-events/blob/main/packages/commerce-events-sdk/tests/mocks.ts#L105)
|
|
250
|
-
|
|
251
|
-
#### `setRecommendationsExtension`
|
|
252
|
-
|
|
253
|
-
```javascript
|
|
254
|
-
mse.context.setRecommendationsExtension(recommendationsExtensionCtx);
|
|
255
|
-
```
|
|
256
|
-
|
|
257
|
-
Sets the `RecommendationsExtension` context. Includes Recommendations extension version.
|
|
258
|
-
|
|
259
|
-
- [context schema definition](https://github.com/adobe/commerce-events/tree/main/packages/commerce-events-sdk/src/types/schemas/recommendationsExtension.ts)
|
|
260
|
-
|
|
261
|
-
#### `setReferrerUrl`
|
|
262
|
-
|
|
263
|
-
```javascript
|
|
264
|
-
mse.context.setReferrerUrl(referrerUrlCtx);
|
|
265
|
-
```
|
|
266
|
-
|
|
267
|
-
Sets the `ReferrerUrl` context.
|
|
268
|
-
|
|
269
|
-
- [context schema definition](https://github.com/adobe/commerce-events/tree/main/packages/commerce-events-sdk/src/types/schemas/referrerUrl.ts)
|
|
270
|
-
- [context example](https://github.com/adobe/commerce-events/blob/main/packages/commerce-events-sdk/tests/mocks.ts#L230)
|
|
271
|
-
|
|
272
|
-
#### `setRequisitionList`
|
|
273
|
-
|
|
274
|
-
```javascript
|
|
275
|
-
mse.context.setRequisitionList(requisitionListCtx);
|
|
276
|
-
```
|
|
277
|
-
|
|
278
|
-
Sets the `RequisitionList` context.
|
|
279
|
-
|
|
280
|
-
- [context schema definition](https://github.com/adobe/commerce-events/tree/main/packages/commerce-events-sdk/src/types/schemas/requisitionList.ts)
|
|
281
|
-
- [context example](https://github.com/adobe/commerce-events/blob/main/packages/commerce-events-sdk/tests/mocks.ts#L236)
|
|
282
|
-
|
|
283
|
-
#### `setRequisitionList`
|
|
284
|
-
|
|
285
|
-
```javascript
|
|
286
|
-
mse.context.setRequisitionListItems(requisitionListItemsCtx);
|
|
287
|
-
```
|
|
288
|
-
|
|
289
|
-
Sets the `RequisitionListItems` context.
|
|
290
|
-
|
|
291
|
-
- [context schema definition](https://github.com/adobe/commerce-events/tree/main/packages/commerce-events-sdk/src/types/schemas/requisitionList.ts)
|
|
292
|
-
- [context example](https://github.com/adobe/commerce-events/blob/main/packages/commerce-events-sdk/tests/mocks.ts#L243)
|
|
293
|
-
|
|
294
|
-
#### `setSearchExtension`
|
|
295
|
-
|
|
296
|
-
```javascript
|
|
297
|
-
mse.context.setSearchExtension(searchExtensionCtx);
|
|
298
|
-
```
|
|
299
|
-
|
|
300
|
-
Sets the `SearchExtension` context. Includes Live Search extension version.
|
|
301
|
-
|
|
302
|
-
- [context schema definition](https://github.com/adobe/commerce-events/tree/main/packages/commerce-events-sdk/src/types/schemas/searchExtension.ts)
|
|
303
|
-
|
|
304
|
-
#### `setSearchInput`
|
|
305
|
-
|
|
306
|
-
```javascript
|
|
307
|
-
mse.context.setSearchInput(searchInputCtx);
|
|
308
|
-
```
|
|
309
|
-
|
|
310
|
-
Sets the `SearchInput` context.
|
|
311
|
-
|
|
312
|
-
- [context schema definition](https://github.com/adobe/commerce-events/tree/main/packages/commerce-events-sdk/src/types/schemas/searchInput.ts)
|
|
313
|
-
- [context example](https://github.com/adobe/commerce-events/blob/main/packages/commerce-events-sdk/tests/mocks.ts#L237)
|
|
314
|
-
|
|
315
|
-
#### `setSearchResults`
|
|
316
|
-
|
|
317
|
-
```javascript
|
|
318
|
-
mse.context.setSearchResults(searchResultsCtx);
|
|
319
|
-
```
|
|
320
|
-
|
|
321
|
-
Sets the `SearchResults` context.
|
|
322
|
-
|
|
323
|
-
- [context schema definition](https://github.com/adobe/commerce-events/tree/main/packages/commerce-events-sdk/src/types/schemas/searchResults.ts)
|
|
324
|
-
- [context example](https://github.com/adobe/commerce-events/blob/main/packages/commerce-events-sdk/tests/mocks.ts#L255)
|
|
325
|
-
|
|
326
|
-
#### `setShopper`
|
|
327
|
-
|
|
328
|
-
```javascript
|
|
329
|
-
mse.context.setShopper(shopperCtx);
|
|
330
|
-
```
|
|
331
|
-
|
|
332
|
-
Sets the `Shopper` context.
|
|
333
|
-
|
|
334
|
-
- [context schema definition](https://github.com/adobe/commerce-events/tree/main/packages/commerce-events-sdk/src/types/schemas/shopper.ts)
|
|
335
|
-
- [context example](https://github.com/adobe/commerce-events/blob/main/packages/commerce-events-sdk/tests/mocks.ts#L294)
|
|
336
|
-
|
|
337
|
-
#### `setShoppingCart`
|
|
338
|
-
|
|
339
|
-
```javascript
|
|
340
|
-
mse.context.setShoppingCart(shoppingCartCtx);
|
|
341
|
-
```
|
|
342
|
-
|
|
343
|
-
Sets the `ShoppingCart` context.
|
|
344
|
-
|
|
345
|
-
- [context schema definition](https://github.com/adobe/commerce-events/tree/main/packages/commerce-events-sdk/src/types/schemas/shoppingCart.ts)
|
|
346
|
-
- [context example](https://github.com/adobe/commerce-events/blob/main/packages/commerce-events-sdk/tests/mocks.ts#L298)
|
|
347
|
-
|
|
348
|
-
#### `setStorefrontInstance`
|
|
349
|
-
|
|
350
|
-
```javascript
|
|
351
|
-
mse.context.setStorefrontInstance(storefrontCtx);
|
|
352
|
-
```
|
|
353
|
-
|
|
354
|
-
Sets the `StorefrontInstance` context. This context is used when forwarding data to Adobe Commerce Data Services to identify the Adobe Commerce instance associated with the data.
|
|
355
|
-
|
|
356
|
-
- [context schema definition](https://github.com/adobe/commerce-events/tree/main/packages/commerce-events-sdk/src/types/schemas/storefrontInstance.ts)
|
|
357
|
-
- [context example](https://github.com/adobe/commerce-events/blob/main/packages/commerce-events-sdk/tests/mocks.ts#L345)
|
|
358
|
-
|
|
359
|
-
#### `setContext`
|
|
360
|
-
|
|
361
|
-
```javascript
|
|
362
|
-
mse.context.setContext(name, ctx);
|
|
363
|
-
```
|
|
364
|
-
|
|
365
|
-
Sets a custom `Context`.
|
|
366
|
-
|
|
367
|
-
These getters are available for accessing context data:
|
|
368
|
-
|
|
369
|
-
```javascript
|
|
370
|
-
mse.context.getAEP();
|
|
371
|
-
mse.context.getCategory();
|
|
372
|
-
mse.context.getChangedProducts();
|
|
373
|
-
mse.context.getContext(name);
|
|
374
|
-
mse.context.getCustomUrl();
|
|
375
|
-
mse.context.getEventForwarding();
|
|
376
|
-
mse.context.getMagentoExtension();
|
|
377
|
-
mse.context.getDataServicesExtension();
|
|
378
|
-
mse.context.getOrder();
|
|
379
|
-
mse.context.getOrderPage();
|
|
380
|
-
mse.context.getPage();
|
|
381
|
-
mse.context.getProduct();
|
|
382
|
-
mse.context.getRecommendations();
|
|
383
|
-
mse.context.getRecommendationsExtension();
|
|
384
|
-
mse.context.getReferrerUrl();
|
|
385
|
-
mse.context.getRequisitionList();
|
|
386
|
-
mse.context.getRequisitionListItems();
|
|
387
|
-
mse.context.getSearchExtension();
|
|
388
|
-
mse.context.getSearchInput();
|
|
389
|
-
mse.context.getSearchResults();
|
|
390
|
-
mse.context.getShopper();
|
|
391
|
-
mse.context.getShoppingCart();
|
|
392
|
-
```
|
|
104
|
+
Required contexts per event under [examples/events/](../../examples/events/).
|
|
393
105
|
|
|
394
106
|
### Publish
|
|
395
107
|
|
|
396
|
-
|
|
108
|
+
Pre-defined publishable events are listed in the [PublishManager](./src/PublishManager.ts). Any event that is not part of the `PublishManager` should be handled as a custom event.
|
|
397
109
|
|
|
398
|
-
|
|
399
|
-
mse.publish.addToCart();
|
|
400
|
-
```
|
|
401
|
-
|
|
402
|
-
```javascript
|
|
403
|
-
mse.publish.createAccount(ctx);
|
|
404
|
-
```
|
|
405
|
-
|
|
406
|
-
```javascript
|
|
407
|
-
mse.publish.createRequisitionList();
|
|
408
|
-
```
|
|
409
|
-
|
|
410
|
-
```javascript
|
|
411
|
-
// write a `commerce-custom` event to the adobeDataLayer
|
|
412
|
-
// any object passed in will be set under `customContext` for this event
|
|
413
|
-
mse.publish.custom({
|
|
414
|
-
/*...*/
|
|
415
|
-
});
|
|
416
|
-
```
|
|
417
|
-
|
|
418
|
-
```javascript
|
|
419
|
-
mse.publish.customUrl(ctx);
|
|
420
|
-
```
|
|
421
|
-
|
|
422
|
-
```javascript
|
|
423
|
-
mse.publish.editAccount(ctx);
|
|
424
|
-
```
|
|
425
|
-
|
|
426
|
-
```javascript
|
|
427
|
-
mse.publish.initiateCheckout(ctx);
|
|
428
|
-
```
|
|
429
|
-
|
|
430
|
-
```javascript
|
|
431
|
-
mse.publish.openCart(ctx);
|
|
432
|
-
```
|
|
433
|
-
|
|
434
|
-
```javascript
|
|
435
|
-
mse.publish.pageActivitySummary(ctx);
|
|
436
|
-
```
|
|
437
|
-
|
|
438
|
-
```javascript
|
|
439
|
-
mse.publish.pageView(ctx);
|
|
440
|
-
```
|
|
441
|
-
|
|
442
|
-
```javascript
|
|
443
|
-
mse.publish.placeOrder(ctx);
|
|
444
|
-
```
|
|
445
|
-
|
|
446
|
-
```javascript
|
|
447
|
-
mse.publish.productPageView(ctx);
|
|
448
|
-
```
|
|
449
|
-
|
|
450
|
-
```javascript
|
|
451
|
-
mse.publish.recsItemAddToCartClick(unitId, productId, ctx);
|
|
452
|
-
```
|
|
453
|
-
|
|
454
|
-
```javascript
|
|
455
|
-
mse.publish.recsItemClick(unitId, productId, ctx);
|
|
456
|
-
```
|
|
457
|
-
|
|
458
|
-
```javascript
|
|
459
|
-
mse.publish.recsRequestSent(ctx);
|
|
460
|
-
```
|
|
461
|
-
|
|
462
|
-
```javascript
|
|
463
|
-
mse.publish.recsResponseReceived(ctx);
|
|
464
|
-
```
|
|
465
|
-
|
|
466
|
-
```javascript
|
|
467
|
-
// requires recommendationsContext to be set
|
|
468
|
-
mse.publish.recsUnitRender(unitId, ctx);
|
|
469
|
-
```
|
|
470
|
-
|
|
471
|
-
```javascript
|
|
472
|
-
// requires recommendationsContext to be set
|
|
473
|
-
mse.publish.recsUnitView(unitId, ctx);
|
|
474
|
-
```
|
|
475
|
-
|
|
476
|
-
```javascript
|
|
477
|
-
mse.publish.referrerUrl(ctx);
|
|
478
|
-
```
|
|
479
|
-
|
|
480
|
-
```javascript
|
|
481
|
-
mse.publish.removeFromCart(ctx);
|
|
482
|
-
```
|
|
483
|
-
|
|
484
|
-
```javascript
|
|
485
|
-
mse.publish.removeFromRequisitionList(ctx);
|
|
486
|
-
```
|
|
487
|
-
|
|
488
|
-
```javascript
|
|
489
|
-
// requires searchResultsContext to be set
|
|
490
|
-
mse.publish.searchCategoryClick(searchUnitId, name, ctx);
|
|
491
|
-
```
|
|
492
|
-
|
|
493
|
-
```javascript
|
|
494
|
-
// requires searchResultsContext to be set
|
|
495
|
-
mse.publish.searchProductClick(searchUnitId, sku, ctx);
|
|
496
|
-
```
|
|
497
|
-
|
|
498
|
-
```javascript
|
|
499
|
-
// requires searchInputContext to be set
|
|
500
|
-
mse.publish.searchRequestSent(searchUnitId, ctx);
|
|
501
|
-
```
|
|
502
|
-
|
|
503
|
-
```javascript
|
|
504
|
-
// requires searchResultsContext to be set
|
|
505
|
-
mse.publish.searchResponseReceived(searchUnitId, ctx);
|
|
506
|
-
```
|
|
507
|
-
|
|
508
|
-
```javascript
|
|
509
|
-
// requires searchResultsContext to be set
|
|
510
|
-
mse.publish.searchResultsView(searchUnitId, ctx);
|
|
511
|
-
```
|
|
512
|
-
|
|
513
|
-
```javascript
|
|
514
|
-
// requires searchResultsContext to be set
|
|
515
|
-
mse.publish.categoryResultsView(searchUnitId, ctx);
|
|
516
|
-
```
|
|
517
|
-
|
|
518
|
-
```javascript
|
|
519
|
-
// requires searchResultsContext to be set
|
|
520
|
-
mse.publish.searchSuggestionClick(searchUnitId, suggestion, ctx);
|
|
521
|
-
```
|
|
522
|
-
|
|
523
|
-
```javascript
|
|
524
|
-
// requires shoppingCartContext to be set
|
|
525
|
-
mse.publish.shoppingCartView(ctx);
|
|
526
|
-
```
|
|
527
|
-
|
|
528
|
-
```javascript
|
|
529
|
-
mse.publish.signIn(ctx);
|
|
530
|
-
```
|
|
531
|
-
|
|
532
|
-
```javascript
|
|
533
|
-
mse.publish.signOut(ctx);
|
|
534
|
-
```
|
|
535
|
-
|
|
536
|
-
```javascript
|
|
537
|
-
mse.publish.updateCart(ctx);
|
|
538
|
-
```
|
|
110
|
+
A list of examples on publishing events is available under [examples](../../examples/).
|
|
539
111
|
|
|
540
112
|
### Subscribe
|
|
541
113
|
|
|
542
|
-
|
|
114
|
+
Supported `subscibe` events are defined in the [SubscribeManager](./src/SubscribeManager.ts). Any event that is not part of the `SubscribeManager` should be handled as a custom event.
|
|
543
115
|
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
mse.subscribe.createRequisitionList(handler, options);
|
|
548
|
-
mse.subscribe.custom(handler, options);
|
|
549
|
-
mse.subscribe.customUrl(handler, options);
|
|
550
|
-
mse.subscribe.editAccount(handler, options);
|
|
551
|
-
mse.subscribe.dataLayerChange(handler, options);
|
|
552
|
-
mse.subscribe.dataLayerEvent(handler, options);
|
|
553
|
-
mse.subscribe.initiateCheckout(handler, options);
|
|
554
|
-
mse.subscribe.openCart(handler, options);
|
|
555
|
-
mse.subscribe.pageActivitySummary(handler, options);
|
|
556
|
-
mse.subscribe.pageView(handler, options);
|
|
557
|
-
mse.subscribe.placeOrder(handler, options);
|
|
558
|
-
mse.subscribe.productPageView(handler, options);
|
|
559
|
-
mse.subscribe.recsItemAddToCartClick(handler, options);
|
|
560
|
-
mse.subscribe.recsItemClick(handler, options);
|
|
561
|
-
mse.subscribe.recsRequestSent(handler, options);
|
|
562
|
-
mse.subscribe.recsResponseReceived(handler, options);
|
|
563
|
-
mse.subscribe.recsUnitRender(handler, options);
|
|
564
|
-
mse.subscribe.recsUnitView(handler, options);
|
|
565
|
-
mse.subscribe.referrerUrl(handler, options);
|
|
566
|
-
mse.subscribe.removeFromCart(handler, options);
|
|
567
|
-
mse.subscribe.removeFromRequisitionList(handler, options);
|
|
568
|
-
mse.subscribe.searchCategoryClick(handler, options);
|
|
569
|
-
mse.subscribe.searchProductClick(handler, options);
|
|
570
|
-
mse.subscribe.searchRequestSent(handler, options);
|
|
571
|
-
mse.subscribe.searchResponseReceived(handler, options);
|
|
572
|
-
mse.subscribe.searchResultsView(handler, options);
|
|
573
|
-
mse.subscribe.categoryResultsView(handler, options);
|
|
574
|
-
mse.subscribe.searchSuggestionClick(handler, options);
|
|
575
|
-
mse.subscribe.shoppingCartView(handler, options);
|
|
576
|
-
mse.subscribe.signIn(handler, options);
|
|
577
|
-
mse.subscribe.signOut(handler, options);
|
|
578
|
-
mse.subscribe.updateCart(handler, options);
|
|
579
|
-
```
|
|
116
|
+
Note that a large number of custom events with different schemas is an anti-pattern (most events you need should be supported by `SubscribeManager`). If there are standard events you believe should be supported by `SubscribeManager`, please submit an [issue](https://github.com/adobe/commerce-events/issues).
|
|
117
|
+
|
|
118
|
+
Note that it is rare for an application utilizing the SDK to have to subscribe to events. In most cases subscribes and unsubscribes are handled by the [Storefront Events Collector](../storefront-events-collector/).
|
|
580
119
|
|
|
581
120
|
### Unsubscribe
|
|
582
121
|
|
|
583
|
-
|
|
122
|
+
Supported `unsubscibe` events are defined in the [UnubscribeManager](./src/UnsubscribeManager.ts).
|
|
584
123
|
|
|
585
|
-
|
|
586
|
-
mse.unsubscribe.addToCart(handler);
|
|
587
|
-
mse.unsubscribe.createAccount(handler);
|
|
588
|
-
mse.unsubscribe.createRequisitionList(handler);
|
|
589
|
-
mse.unsubscribe.custom(handler);
|
|
590
|
-
mse.unsubscribe.customUrl(handler);
|
|
591
|
-
mse.unsubscribe.editAccount(handler);
|
|
592
|
-
mse.unsubscribe.dataLayerChange(handler);
|
|
593
|
-
mse.unsubscribe.dataLayerEvent(handler);
|
|
594
|
-
mse.unsubscribe.initiateCheckout(handler);
|
|
595
|
-
mse.unsubscribe.openCart(handler);
|
|
596
|
-
mse.unsubscribe.pageActivitySummary(handler);
|
|
597
|
-
mse.unsubscribe.pageView(handler);
|
|
598
|
-
mse.unsubscribe.placeOrder(handler);
|
|
599
|
-
mse.unsubscribe.productPageView(handler);
|
|
600
|
-
mse.unsubscribe.recsItemAddToCartClick(handler);
|
|
601
|
-
mse.unsubscribe.recsItemClick(handler);
|
|
602
|
-
mse.unsubscribe.recsRequestSent(handler);
|
|
603
|
-
mse.unsubscribe.recsResponseReceived(handler);
|
|
604
|
-
mse.unsubscribe.recsUnitRender(handler);
|
|
605
|
-
mse.unsubscribe.recsUnitView(handler);
|
|
606
|
-
mse.unsubscribe.referrerUrl(handler);
|
|
607
|
-
mse.unsubscribe.removeFromCart(handler);
|
|
608
|
-
mse.unsubscribe.removeFromRequisitionList(handler);
|
|
609
|
-
mse.unsubscribe.searchCategoryClick(handler);
|
|
610
|
-
mse.unsubscribe.searchProductClick(handler);
|
|
611
|
-
mse.unsubscribe.searchRequestSent(handler);
|
|
612
|
-
mse.unsubscribe.searchResponseReceived(handler);
|
|
613
|
-
mse.unsubscribe.searchResultsView(handler);
|
|
614
|
-
mse.unsubscribe.categoryResultsView(handler);
|
|
615
|
-
mse.unsubscribe.searchSuggestionClick(handler);
|
|
616
|
-
mse.unsubscribe.shoppingCartView(handler);
|
|
617
|
-
mse.unsubscribe.signIn(handler);
|
|
618
|
-
mse.unsubscribe.signOut(handler);
|
|
619
|
-
mse.unsubscribe.updateCart(handler);
|
|
620
|
-
```
|
|
124
|
+
As noted above, it is rare for an SDK and Collector user to have to call these functions directly.
|
|
621
125
|
|
|
622
126
|
## Support
|
|
623
127
|
|
|
@@ -637,8 +141,4 @@ If you have any questions or encounter any issues, please reach out on [GitHub][
|
|
|
637
141
|
[commerce]: https://business.adobe.com/products/magento/magento-commerce.html
|
|
638
142
|
[collectors]: https://github.com/adobe/commerce-events/tree/main/packages/storefront-events-collector
|
|
639
143
|
[unpkg]: https://unpkg.com/@adobe/magento-storefront-events-sdk/dist/index.js
|
|
640
|
-
[context]: #context
|
|
641
|
-
[publish]: #publish
|
|
642
|
-
[subscribe]: #subscribe
|
|
643
|
-
[unsubscribe]: #unsubscribe
|
|
644
144
|
[issues]: https://github.com/adobe/commerce-events/issues
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("magentoStorefrontEvents",[],e):"object"==typeof exports?exports.magentoStorefrontEvents=e():t.magentoStorefrontEvents=e()}(self,(()=>(()=>{"use strict";var t={525:(t,e,n)=>{function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}}(t,e)||i(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t){if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=i(t))){var e=0,n=function(){};return{s:n,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,s=!0,a=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw o}}}}function i(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function t(e,n,r){function o(s,a){if(!n[s]){if(!e[s]){if(i)return i(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[s]={exports:{}};e[s][0].call(u.exports,(function(t){return o(e[s][1][t]||t)}),u,u.exports,t,e,n,r)}return n[s].exports}for(var i=void 0,s=0;s<r.length;s++)o(r[s]);return o}({1:[function(t,e,r){(function(t){(function(){function n(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var s=t[n];e(s,n,t)&&(i[o++]=s)}return i}function o(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function i(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}function s(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function c(t,e,n){var r=t.length;for(n+=-1;++n<r;)if(e(t[n],n,t))return n;return-1}function u(t){return t!=t}function f(t){return function(e){return t(e)}}function l(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function h(t){var e=Object;return function(n){return t(e(n))}}function p(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function d(){}function v(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function g(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function y(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function b(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new y;++e<n;)this.add(t[e])}function m(t){this.size=(this.__data__=new g(t)).size}function E(t,e){var n,r=bn(t),o=!r&&yn(t),i=!r&&!o&&mn(t),s=!r&&!o&&!i&&xn(t);if(r=r||o||i||s){o=t.length;for(var a=String,c=-1,u=Array(o);++c<o;)u[c]=a(c);o=u}else o=[];for(n in a=o.length,t)!e&&!be.call(t,n)||r&&("length"==n||i&&("offset"==n||"parent"==n)||s&&("buffer"==n||"byteLength"==n||"byteOffset"==n)||et(n,a))||o.push(n);return o}function j(t,e,n){(n===Mt||pt(t[e],n))&&(n!==Mt||e in t)||L(t,e,n)}function x(t,e,n){var r=t[e];be.call(t,e)&&pt(r,n)&&(n!==Mt||e in t)||L(t,e,n)}function C(t,e){for(var n=t.length;n--;)if(pt(t[n][0],e))return n;return-1}function L(t,e,n){"__proto__"==e&&Te?Te(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function _(t,e,n,r,o,i){var s,a=1&e,c=2&e,u=4&e;if(n&&(s=o?n(t,r,o,i):n(t)),s!==Mt)return s;if(!bt(t))return t;if(r=bn(t)){if(s=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&be.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!a)return z(t,s)}else{var f=sn(t),l="[object Function]"==f||"[object GeneratorFunction]"==f;if(mn(t))return M(t,a);if("[object Object]"==f||"[object Arguments]"==f||l&&!o){if(s=c||l?{}:Z(t),!a)return c?function(t,e){return $(t,on(t),e)}(t,function(t,e){return t&&$(e,kt(e),t)}(s,t)):function(t,e){return $(t,rn(t),e)}(t,function(t,e){return t&&$(e,Rt(e),t)}(s,t))}else{if(!te[f])return o?t:{};s=function(t,e,n){var r=t.constructor;switch(e){case"[object ArrayBuffer]":return V(t);case"[object Boolean]":case"[object Date]":return new r(+t);case"[object DataView]":return e=n?V(t.buffer):t.buffer,new t.constructor(e,t.byteOffset,t.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return q(t,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(t);case"[object RegExp]":return(e=new t.constructor(t.source,Ht.exec(t))).lastIndex=t.lastIndex,e;case"[object Symbol]":return Qe?Object(Qe.call(t)):{}}}(t,f,a)}}if(o=(i=i||new m).get(t))return o;if(i.set(t,s),jn(t))return t.forEach((function(r){s.add(_(r,e,n,r,t,i))})),s;if(En(t))return t.forEach((function(r,o){s.set(o,_(r,e,n,o,t,i))})),s;c=u?c?J:H:c?kt:Rt;var h=r?Mt:c(t);return function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n););}(h||t,(function(r,o){h&&(r=t[o=r]),x(s,o,_(r,e,n,o,t,i))})),s}function w(t,e){for(var n=0,r=(e=N(e,t)).length;null!=t&&n<r;)t=t[st(e[n++])];return n&&n==r?t:Mt}function A(t,e,n){return e=e(t),bn(t)?e:i(e,n(t))}function O(t){if(null==t)t=t===Mt?"[object Undefined]":"[object Null]";else if(Ie&&Ie in Object(t)){var e=be.call(t,Ie),n=t[Ie];try{t[Ie]=Mt;var r=!0}catch(t){}var o=Ee.call(t);r&&(e?t[Ie]=n:delete t[Ie]),t=o}else t=Ee.call(t);return t}function S(t,e){return null!=t&&be.call(t,e)}function R(t,e){return null!=t&&e in Object(t)}function k(t){return mt(t)&&"[object Arguments]"==O(t)}function I(t,e,n,r,o){if(t===e)e=!0;else if(null==t||null==e||!mt(t)&&!mt(e))e=t!=t&&e!=e;else t:{var i,s,a=bn(t),c=bn(e),u="[object Object]"==(i="[object Arguments]"==(i=a?"[object Array]":sn(t))?"[object Object]":i);if(c="[object Object]"==(s="[object Arguments]"==(s=c?"[object Array]":sn(e))?"[object Object]":s),(s=i==s)&&mn(t)){if(!mn(e)){e=!1;break t}u=!(a=!0)}if(s&&!u)o=o||new m,e=a||xn(t)?G(t,e,n,r,I,o):function(t,e,n,r,o,i,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)break;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":if(t.byteLength!=e.byteLength||!i(new _e(t),new _e(e)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return pt(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var a=l;case"[object Set]":if(a=a||p,t.size!=e.size&&!(1&r))break;return(n=s.get(t))?n==e:(r|=2,s.set(t,e),e=G(a(t),a(e),r,o,i,s),s.delete(t),e);case"[object Symbol]":if(Qe)return Qe.call(t)==Qe.call(e)}return!1}(t,e,i,n,r,I,o);else{if(!(1&n)&&(a=u&&be.call(t,"__wrapped__"),i=c&&be.call(e,"__wrapped__"),a||i)){e=I(t=a?t.value():t,e=i?e.value():e,n,r,o=o||new m);break t}if(s)e:if(o=o||new m,a=1&n,i=H(t),c=i.length,s=H(e).length,c==s||a){for(u=c;u--;){var f=i[u];if(!(a?f in e:be.call(e,f))){e=!1;break e}}if((s=o.get(t))&&o.get(e))e=s==e;else{s=!0,o.set(t,e),o.set(e,t);for(var h=a;++u<c;){var d=t[f=i[u]],v=e[f];if(r)var g=a?r(v,d,f,e,t,o):r(d,v,f,t,e,o);if(g===Mt?d!==v&&!I(d,v,n,r,o):!g){s=!1;break}h=h||"constructor"==f}s&&!h&&(n=t.constructor)!=(r=e.constructor)&&"constructor"in t&&"constructor"in e&&!("function"==typeof n&&n instanceof n&&"function"==typeof r&&r instanceof r)&&(s=!1),o.delete(t),o.delete(e),e=s}}else e=!1;else e=!1}}return e}function T(t){return"function"==typeof t?t:null==t?Dt:"object"==a(t)?bn(t)?function(t,e){return nt(t)&&e==e&&!bt(e)?ot(st(t),e):function(n){var r=Ot(n,t);return r===Mt&&r===e?St(n,t):I(e,r,3)}}(t[0],t[1]):function(t){var e=function(t){for(var e=Rt(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,o==o&&!bt(o)]}return e}(t);return 1==e.length&&e[0][2]?ot(e[0][0],e[0][1]):function(n){return n===t||function(t,e){var n=e.length,r=n;if(null==t)return!r;for(t=Object(t);n--;)if((o=e[n])[2]?o[1]!==t[o[0]]:!(o[0]in t))return!1;for(;++n<r;){var o,i=(o=e[n])[0],s=t[i],a=o[1];if(o[2]){if(s===Mt&&!(i in t))return!1}else if(!I(a,s,3,void 0,o=new m))return!1}return!0}(n,e)}}(t):Pt(t)}function D(t){if(!rt(t))return Pe(t);var e,n=[];for(e in Object(t))be.call(t,e)&&"constructor"!=e&&n.push(e);return n}function U(t,e,n,r,o){t!==e&&en(e,(function(i,s){if(bt(i)){var a=o=o||new m,c="__proto__"==s?Mt:t[s],u="__proto__"==s?Mt:e[s];if(d=a.get(u))j(t,s,d);else{var f=(d=r?r(c,u,s+"",t,e,a):Mt)===Mt;if(f){var l=bn(u),h=!l&&mn(u),p=!l&&!h&&xn(u),d=u;l||h||p?d=bn(c)?c:vt(c)?z(c):h?M(u,!(f=!1)):p?q(u,!(f=!1)):[]:Et(u)||yn(u)?yn(d=c)?d=wt(c):(!bt(c)||n&>(c))&&(d=Z(u)):f=!1}f&&(a.set(u,d),U(d,u,n,r,a),a.delete(u)),j(t,s,d)}}else(a=r?r("__proto__"==s?Mt:t[s],i,s+"",t,e,o):Mt)===Mt&&(a=i),j(t,s,a)}),kt)}function P(t){if("string"==typeof t)return t;if(bn(t))return o(t,P)+"";if(xt(t))return Xe?Xe.call(t):"";var e=t+"";return"0"==e&&1/t==-Vt?"-0":e}function F(t,e){var n;if((e=N(e,t)).length<2)n=t;else{var r=0,o=-1,i=-1,s=(n=e).length;for(r<0&&(r=s<-r?0:s+r),(o=s<o?s:o)<0&&(o+=s),s=o<r?0:o-r>>>0,r>>>=0,o=Array(s);++i<s;)o[i]=n[i+r];n=w(t,o)}null==(t=n)||delete t[st(ft(e))]}function N(t,e){return bn(t)?t:nt(t,e)?[t]:dn(At(t))}function M(t,e){if(e)return t.slice();var n=t.length;return n=we?we(n):new t.constructor(n),t.copy(n),n}function V(t){var e=new t.constructor(t.byteLength);return new _e(e).set(new _e(t)),e}function q(t,e){return new t.constructor(e?V(t.buffer):t.buffer,t.byteOffset,t.length)}function z(t,e){var n=-1,r=t.length;for(e=e||Array(r);++n<r;)e[n]=t[n];return e}function $(t,e,n){var r=!n;n=n||{};for(var o=-1,i=e.length;++o<i;){var s=e[o],a=Mt;a===Mt&&(a=t[s]),r?L(n,s,a):x(n,s,a)}return n}function B(t){return function(t){return pn(it(t,void 0,Dt),t+"")}((function(e,n){var r,o=-1,i=n.length,s=1<i?n[i-1]:Mt,c=2<i?n[2]:Mt;if(s=3<t.length&&"function"==typeof s?(i--,s):Mt,r=c){r=n[0];var u=n[1];if(bt(c)){var f=a(u);r=!!("number"==f?dt(c)&&et(u,c.length):"string"==f&&u in c)&&pt(c[u],r)}else r=!1}for(r&&(s=i<3?Mt:s,i=1),e=Object(e);++o<i;)(c=n[o])&&t(e,c,o,s);return e}))}function W(t){return Et(t)?Mt:t}function G(t,e,n,r,o,i){var a=1&n,c=t.length;if(c!=(u=e.length)&&!(a&&c<u))return!1;if((u=i.get(t))&&i.get(e))return u==e;var u=-1,f=!0,l=2&n?new b:Mt;for(i.set(t,e),i.set(e,t);++u<c;){var h=t[u],p=e[u];if(r)var d=a?r(p,h,u,e,t,i):r(h,p,u,t,e,i);if(d!==Mt){if(d)continue;f=!1;break}if(l){if(!s(e,(function(t,e){if(!l.has(e)&&(h===t||o(h,t,n,r,i)))return l.push(e)}))){f=!1;break}}else if(h!==p&&!o(h,p,n,r,i)){f=!1;break}}return i.delete(t),i.delete(e),f}function H(t){return A(t,Rt,rn)}function J(t){return A(t,kt,on)}function Y(t,e){var n=(n=d.iteratee||Ut)===Ut?T:n;return arguments.length?n(t,e):n}function K(t,e){var n=t.__data__,r=a(e);return("string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==e:null===e)?n["string"==typeof e?"string":"hash"]:n.map}function Q(t,e){var n=null==t?Mt:t[e];return!bt(n)||me&&me in n||!(gt(n)?xe:Kt).test(at(n))?Mt:n}function X(t,e,n){for(var r=-1,o=(e=N(e,t)).length,i=!1;++r<o;){var s=st(e[r]);if(!(i=null!=t&&n(t,s)))break;t=t[s]}return i||++r!=o?i:!!(o=null==t?0:t.length)&&yt(o)&&et(s,o)&&(bn(t)||yn(t))}function Z(t){return"function"!=typeof t.constructor||rt(t)?{}:Ze(Ae(t))}function tt(t){return bn(t)||yn(t)||!!(ke&&t&&t[ke])}function et(t,e){var n=a(t);return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Xt.test(t))&&-1<t&&0==t%1&&t<e}function nt(t,e){if(bn(t))return!1;var n=a(t);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!xt(t))||$t.test(t)||!zt.test(t)||null!=e&&t in Object(e)}function rt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||ve)}function ot(t,e){return function(n){return null!=n&&n[t]===e&&(e!==Mt||t in Object(n))}}function it(t,e,n){return e=Fe(e===Mt?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=Fe(r.length-e,0),s=Array(i);++o<i;)s[o]=r[e+o];for(o=-1,i=Array(e+1);++o<e;)i[o]=r[o];return i[e]=n(s),function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}(t,this,i)}}function st(t){if("string"==typeof t||xt(t))return t;var e=t+"";return"0"==e&&1/t==-Vt?"-0":e}function at(t){if(null==t)return"";try{return ye.call(t)}catch(t){}return t+""}function ct(t,e,n){var r=null==t?0:t.length;return r?((n=null==n?0:Lt(n))<0&&(n=Fe(r+n,0)),c(t,Y(e,3),n)):-1}function ut(t){return null!=t&&t.length?function t(e,n,r,o,s){var a=-1,c=e.length;for(r=r||tt,s=s||[];++a<c;){var u=e[a];0<n&&r(u)?1<n?t(u,n-1,r,o,s):i(s,u):o||(s[s.length]=u)}return s}(t,1):[]}function ft(t){var e=null==t?0:t.length;return e?t[e-1]:Mt}function lt(t,e){function n(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;return i.has(o)?i.get(o):(r=t.apply(this,r),n.cache=i.set(o,r)||i,r)}if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");return n.cache=new(lt.Cache||y),n}function ht(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function pt(t,e){return t===e||t!=t&&e!=e}function dt(t){return null!=t&&yt(t.length)&&!gt(t)}function vt(t){return mt(t)&&dt(t)}function gt(t){return!!bt(t)&&("[object Function]"==(t=O(t))||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t)}function yt(t){return"number"==typeof t&&-1<t&&0==t%1&&t<=9007199254740991}function bt(t){var e=a(t);return null!=t&&("object"==e||"function"==e)}function mt(t){return null!=t&&"object"==a(t)}function Et(t){return!(!mt(t)||"[object Object]"!=O(t))&&(null===(t=Ae(t))||"function"==typeof(t=be.call(t,"constructor")&&t.constructor)&&t instanceof t&&ye.call(t)==je)}function jt(t){return"string"==typeof t||!bn(t)&&mt(t)&&"[object String]"==O(t)}function xt(t){return"symbol"==a(t)||mt(t)&&"[object Symbol]"==O(t)}function Ct(t){return t?(t=_t(t))===Vt||t===-Vt?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function Lt(t){var e=(t=Ct(t))%1;return t==t?e?t-e:t:0}function _t(t){if("number"==typeof t)return t;if(xt(t))return qt;if(bt(t)&&(t=bt(t="function"==typeof t.valueOf?t.valueOf():t)?t+"":t),"string"!=typeof t)return 0===t?t:+t;t=t.replace(Wt,"");var e=Yt.test(t);return e||Qt.test(t)?ne(t.slice(2),e?2:8):Jt.test(t)?qt:+t}function wt(t){return $(t,kt(t))}function At(t){return null==t?"":P(t)}function Ot(t,e,n){return(t=null==t?Mt:w(t,e))===Mt?n:t}function St(t,e){return null!=t&&X(t,e,R)}function Rt(t){return dt(t)?E(t):D(t)}function kt(t){if(dt(t))t=E(t,!0);else if(bt(t)){var e,n=rt(t),r=[];for(e in t)("constructor"!=e||!n&&be.call(t,e))&&r.push(e);t=r}else{if(e=[],null!=t)for(n in Object(t))e.push(n);t=e}return t}function It(t){return null==t?[]:function(t,e){return o(e,(function(e){return t[e]}))}(t,Rt(t))}function Tt(t){return function(){return t}}function Dt(t){return t}function Ut(t){return T("function"==typeof t?t:_(t,1))}function Pt(t){return nt(t)?function(t){return function(e){return null==e?Mt:e[t]}}(st(t)):function(t){return function(e){return w(e,t)}}(t)}function Ft(){return[]}function Nt(){return!1}var Mt,Vt=1/0,qt=NaN,zt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$t=/^\w*$/,Bt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Wt=/^\s+|\s+$/g,Gt=/\\(\\)?/g,Ht=/\w*$/,Jt=/^[-+]0x[0-9a-f]+$/i,Yt=/^0b[01]+$/i,Kt=/^\[object .+?Constructor\]$/,Qt=/^0o[0-7]+$/i,Xt=/^(?:0|[1-9]\d*)$/,Zt={};Zt["[object Float32Array]"]=Zt["[object Float64Array]"]=Zt["[object Int8Array]"]=Zt["[object Int16Array]"]=Zt["[object Int32Array]"]=Zt["[object Uint8Array]"]=Zt["[object Uint8ClampedArray]"]=Zt["[object Uint16Array]"]=Zt["[object Uint32Array]"]=!0,Zt["[object Arguments]"]=Zt["[object Array]"]=Zt["[object ArrayBuffer]"]=Zt["[object Boolean]"]=Zt["[object DataView]"]=Zt["[object Date]"]=Zt["[object Error]"]=Zt["[object Function]"]=Zt["[object Map]"]=Zt["[object Number]"]=Zt["[object Object]"]=Zt["[object RegExp]"]=Zt["[object Set]"]=Zt["[object String]"]=Zt["[object WeakMap]"]=!1;var te={};te["[object Arguments]"]=te["[object Array]"]=te["[object ArrayBuffer]"]=te["[object DataView]"]=te["[object Boolean]"]=te["[object Date]"]=te["[object Float32Array]"]=te["[object Float64Array]"]=te["[object Int8Array]"]=te["[object Int16Array]"]=te["[object Int32Array]"]=te["[object Map]"]=te["[object Number]"]=te["[object Object]"]=te["[object RegExp]"]=te["[object Set]"]=te["[object String]"]=te["[object Symbol]"]=te["[object Uint8Array]"]=te["[object Uint8ClampedArray]"]=te["[object Uint16Array]"]=te["[object Uint32Array]"]=!0,te["[object Error]"]=te["[object Function]"]=te["[object WeakMap]"]=!1;var ee,ne=parseInt,re="object"==a(t)&&t&&t.Object===Object&&t,oe="object"==("undefined"==typeof self?"undefined":a(self))&&self&&self.Object===Object&&self,ie=re||oe||Function("return this")(),se="object"==a(r)&&r&&!r.nodeType&&r,ae=se&&"object"==a(e)&&e&&!e.nodeType&&e,ce=ae&&ae.exports===se,ue=ce&&re.process;t:{try{ee=ue&&ue.binding&&ue.binding("util");break t}catch(f){}ee=void 0}var fe,le=ee&&ee.isMap,he=ee&&ee.isSet,pe=ee&&ee.isTypedArray,de=Array.prototype,ve=Object.prototype,ge=ie["__core-js_shared__"],ye=Function.prototype.toString,be=ve.hasOwnProperty,me=(fe=/[^.]+$/.exec(ge&&ge.keys&&ge.keys.IE_PROTO||""))?"Symbol(src)_1."+fe:"",Ee=ve.toString,je=ye.call(Object),xe=RegExp("^"+ye.call(be).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ce=ce?ie.Buffer:Mt,Le=ie.Symbol,_e=ie.Uint8Array,we=Ce?Ce.a:Mt,Ae=h(Object.getPrototypeOf),Oe=Object.create,Se=ve.propertyIsEnumerable,Re=de.splice,ke=Le?Le.isConcatSpreadable:Mt,Ie=Le?Le.toStringTag:Mt,Te=function(){try{var t=Q(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),De=Object.getOwnPropertySymbols,Ue=Ce?Ce.isBuffer:Mt,Pe=h(Object.keys),Fe=Math.max,Ne=Date.now,Me=Q(ie,"DataView"),Ve=Q(ie,"Map"),qe=Q(ie,"Promise"),ze=Q(ie,"Set"),$e=Q(ie,"WeakMap"),Be=Q(Object,"create"),We=at(Me),Ge=at(Ve),He=at(qe),Je=at(ze),Ye=at($e),Ke=Le?Le.prototype:Mt,Qe=Ke?Ke.valueOf:Mt,Xe=Ke?Ke.toString:Mt,Ze=function(t){return bt(t)?Oe?Oe(t):(tn.prototype=t,t=new tn,tn.prototype=Mt,t):{}};function tn(){}v.prototype.clear=function(){this.__data__=Be?Be(null):{},this.size=0},v.prototype.delete=function(t){return t=this.has(t)&&delete this.__data__[t],this.size-=t?1:0,t},v.prototype.get=function(t){var e=this.__data__;return Be?"__lodash_hash_undefined__"===(t=e[t])?Mt:t:be.call(e,t)?e[t]:Mt},v.prototype.has=function(t){var e=this.__data__;return Be?e[t]!==Mt:be.call(e,t)},v.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Be&&e===Mt?"__lodash_hash_undefined__":e,this},g.prototype.clear=function(){this.__data__=[],this.size=0},g.prototype.delete=function(t){var e=this.__data__;return!((t=C(e,t))<0||(t==e.length-1?e.pop():Re.call(e,t,1),--this.size,0))},g.prototype.get=function(t){var e=this.__data__;return(t=C(e,t))<0?Mt:e[t][1]},g.prototype.has=function(t){return-1<C(this.__data__,t)},g.prototype.set=function(t,e){var n=this.__data__,r=C(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},y.prototype.clear=function(){this.size=0,this.__data__={hash:new v,map:new(Ve||g),string:new v}},y.prototype.delete=function(t){return t=K(this,t).delete(t),this.size-=t?1:0,t},y.prototype.get=function(t){return K(this,t).get(t)},y.prototype.has=function(t){return K(this,t).has(t)},y.prototype.set=function(t,e){var n=K(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},b.prototype.add=b.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},b.prototype.has=function(t){return this.__data__.has(t)},m.prototype.clear=function(){this.__data__=new g,this.size=0},m.prototype.delete=function(t){var e=this.__data__;return t=e.delete(t),this.size=e.size,t},m.prototype.get=function(t){return this.__data__.get(t)},m.prototype.has=function(t){return this.__data__.has(t)},m.prototype.set=function(t,e){var n=this.__data__;if(n instanceof g){var r=n.__data__;if(!Ve||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new y(r)}return n.set(t,e),this.size=n.size,this};var en=function(t,e,n){for(var r=-1,o=Object(t),i=(n=n(t)).length;i--;){var s=n[++r];if(!1===e(o[s],s,o))break}return t},nn=Te?function(t,e){return Te(t,"toString",{configurable:!0,enumerable:!1,value:Tt(e),writable:!0})}:Dt,rn=De?function(t){return null==t?[]:(t=Object(t),n(De(t),(function(e){return Se.call(t,e)})))}:Ft,on=De?function(t){for(var e=[];t;)i(e,rn(t)),t=Ae(t);return e}:Ft,sn=O;(Me&&"[object DataView]"!=sn(new Me(new ArrayBuffer(1)))||Ve&&"[object Map]"!=sn(new Ve)||qe&&"[object Promise]"!=sn(qe.resolve())||ze&&"[object Set]"!=sn(new ze)||$e&&"[object WeakMap]"!=sn(new $e))&&(sn=function(t){var e=O(t);if(t=(t="[object Object]"==e?t.constructor:Mt)?at(t):"")switch(t){case We:return"[object DataView]";case Ge:return"[object Map]";case He:return"[object Promise]";case Je:return"[object Set]";case Ye:return"[object WeakMap]"}return e});var an,cn,un,fn,ln,hn,pn=(fn=nn,hn=ln=0,function(){var t=Ne(),e=16-(t-hn);if(hn=t,0<e){if(800<=++ln)return arguments[0]}else ln=0;return fn.apply(Mt,arguments)}),dn=(un=(cn=lt(cn=function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Bt,(function(t,n,r,o){e.push(r?o.replace(Gt,"$1"):n||t)})),e},(function(t){return 500===un.size&&un.clear(),t}))).cache,cn),vn=(an=ct,function(t,e,n){var r=Object(t);if(!dt(t)){var o=Y(e,3);t=Rt(t),e=function(t){return o(r[t],t,r)}}return-1<(e=an(t,e,n))?r[o?t[e]:e]:Mt});lt.Cache=y;var gn,yn=k(function(){return arguments}())?k:function(t){return mt(t)&&be.call(t,"callee")&&!Se.call(t,"callee")},bn=Array.isArray,mn=Ue||Nt,En=le?f(le):function(t){return mt(t)&&"[object Map]"==sn(t)},jn=he?f(he):function(t){return mt(t)&&"[object Set]"==sn(t)},xn=pe?f(pe):function(t){return mt(t)&&yt(t.length)&&!!Zt[O(t)]},Cn=B((function(t,e,n){U(t,e,n)})),Ln=B((function(t,e,n,r){U(t,e,n,r)})),_n=pn(it(gn=function(t,e){var n={};if(null==t)return n;var r=!1;e=o(e,(function(e){return e=N(e,t),r=r||1<e.length,e})),$(t,J(t),n),r&&(n=_(n,7,W));for(var i=e.length;i--;)F(n,e[i]);return n},Mt,ut),gn+"");d.constant=Tt,d.flatten=ut,d.iteratee=Ut,d.keys=Rt,d.keysIn=kt,d.memoize=lt,d.merge=Cn,d.mergeWith=Ln,d.negate=ht,d.omit=_n,d.property=Pt,d.reject=function(t,e){return(bn(t)?n:function(t,e){var n=[];return function(t,e){if(null==t)return t;if(!dt(t))return function(t,e){return t&&en(t,e,Rt)}(t,e);for(var n=t.length,r=-1,o=Object(t);++r<n&&!1!==e(o[r],r,o););}(t,(function(t,r,o){e(t,r,o)&&n.push(t)})),n})(t,ht(Y(e,3)))},d.toPlainObject=wt,d.values=It,d.cloneDeep=function(t){return _(t,5)},d.cloneDeepWith=function(t,e){return _(t,5,e="function"==typeof e?e:Mt)},d.eq=pt,d.find=vn,d.findIndex=ct,d.get=Ot,d.has=function(t,e){return null!=t&&X(t,e,S)},d.hasIn=St,d.identity=Dt,d.includes=function(t,e,n,r){if(t=dt(t)?t:It(t),n=n&&!r?Lt(n):0,r=t.length,n<0&&(n=Fe(r+n,0)),jt(t))t=n<=r&&-1<t.indexOf(e,n);else{if(r=!!r){if(e==e)t:{for(n-=1,r=t.length;++n<r;)if(t[n]===e){t=n;break t}t=-1}else t=c(t,u,n);r=-1<t}t=r}return t},d.isArguments=yn,d.isArray=bn,d.isArrayLike=dt,d.isArrayLikeObject=vt,d.isBuffer=mn,d.isEmpty=function(t){if(null==t)return!0;if(dt(t)&&(bn(t)||"string"==typeof t||"function"==typeof t.splice||mn(t)||xn(t)||yn(t)))return!t.length;var e=sn(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(rt(t))return!D(t).length;for(var n in t)if(be.call(t,n))return!1;return!0},d.isEqual=function(t,e){return I(t,e)},d.isFunction=gt,d.isLength=yt,d.isMap=En,d.isNull=function(t){return null===t},d.isObject=bt,d.isObjectLike=mt,d.isPlainObject=Et,d.isSet=jn,d.isString=jt,d.isSymbol=xt,d.isTypedArray=xn,d.last=ft,d.stubArray=Ft,d.stubFalse=Nt,d.toFinite=Ct,d.toInteger=Lt,d.toNumber=_t,d.toString=At,d.VERSION="4.17.5",ae&&((ae.exports=d)._=d,se._=d)}).call(this)}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(t,e,n){e.exports={itemType:{DATA:"data",FCTN:"fctn",EVENT:"event",LISTENER_ON:"listenerOn",LISTENER_OFF:"listenerOff"},dataLayerEvent:{CHANGE:"adobeDataLayer:change",EVENT:"adobeDataLayer:event"},listenerScope:{PAST:"past",FUTURE:"future",ALL:"all"}}},{}],3:[function(t,e,n){var r=t("../custom-lodash"),i=t("../version.json").version,s=r.cloneDeep,a=r.get,c=t("./item"),u=t("./listener"),f=t("./listenerManager"),l=t("./constants"),h=t("./utils/customMerge");e.exports=function(t){var e,n,r=t||{},p=[],d={},v={getState:function(){return d},getDataLayer:function(){return p}};function g(t){d=h(d,t.data)}function y(t){function n(t){return 0===p.length||t.index>p.length-1?[]:p.slice(0,t.index).map((function(t){return c(t)}))}t.valid?{data:function(t){g(t),e.triggerListeners(t)},fctn:function(t){t.config.call(p,p)},event:function(t){t.data&&g(t),e.triggerListeners(t)},listenerOn:function(t){var r=u(t);switch(r.scope){case l.listenerScope.PAST:var i,s=o(n(t));try{for(s.s();!(i=s.n()).done;){var a=i.value;e.triggerListener(r,a)}}catch(t){s.e(t)}finally{s.f()}break;case l.listenerScope.FUTURE:e.register(r);break;case l.listenerScope.ALL:if(e.register(r)){var c,f=o(n(t));try{for(f.s();!(c=f.n()).done;){var h=c.value;e.triggerListener(r,h)}}catch(t){f.e(t)}finally{f.f()}}}},listenerOff:function(t){e.unregister(u(t))}}[t.type](t):b(t)}function b(t){var e="The following item cannot be handled by the data layer because it does not have a valid format: "+JSON.stringify(t.config);console.error(e)}return Array.isArray(r.dataLayer)||(r.dataLayer=[]),n=r.dataLayer.splice(0,r.dataLayer.length),(p=r.dataLayer).version=i,d={},e=f(v),p.push=function(t){var e=arguments,n=arguments;if(Object.keys(e).forEach((function(t){var r=c(e[t]);switch(r.valid||(b(r),delete n[t]),r.type){case l.itemType.DATA:case l.itemType.EVENT:y(r);break;case l.itemType.FCTN:delete n[t],y(r);break;case l.itemType.LISTENER_ON:case l.itemType.LISTENER_OFF:delete n[t]}})),n[0])return Array.prototype.push.apply(this,n)},p.getState=function(t){return t?a(s(d),t):s(d)},p.addEventListener=function(t,e,n){y(c({on:t,handler:e,scope:n&&n.scope,path:n&&n.path}))},p.removeEventListener=function(t,e){y(c({off:t,handler:e}))},function(){for(var t=0;t<n.length;t++)p.push(n[t])}(),v}},{"../custom-lodash":1,"../version.json":14,"./constants":2,"./item":5,"./listener":7,"./listenerManager":8,"./utils/customMerge":10}],4:[function(t,e,n){var r={Manager:t("./dataLayerManager")};window.adobeDataLayer=window.adobeDataLayer||[],window.adobeDataLayer.version?console.warn("Adobe Client Data Layer v".concat(window.adobeDataLayer.version," has already been imported/initialized on this page. You may be erroneously loading it a second time.")):r.Manager({dataLayer:window.adobeDataLayer}),e.exports=r},{"./dataLayerManager":3}],5:[function(t,e,n){var r=t("../custom-lodash"),o=r.isPlainObject,i=r.isEmpty,s=r.omit,a=r.find,c=t("./utils/dataMatchesContraints"),u=t("./itemConstraints"),f=t("./constants");e.exports=function(t,e){var n=t,r=e,l=a(Object.keys(u),(function(t){return c(n,u[t])}))||"function"==typeof n&&f.itemType.FCTN||o(n)&&f.itemType.DATA,h=function(){var t=s(n,Object.keys(u.event));if(!i(t))return t}();return{config:n,type:l,data:h,valid:!!l,index:r}}},{"../custom-lodash":1,"./constants":2,"./itemConstraints":6,"./utils/dataMatchesContraints":11}],6:[function(t,e,n){e.exports={event:{event:{type:"string"},eventInfo:{optional:!0}},listenerOn:{on:{type:"string"},handler:{type:"function"},scope:{type:"string",values:["past","future","all"],optional:!0},path:{type:"string",optional:!0}},listenerOff:{off:{type:"string"},handler:{type:"function",optional:!0},scope:{type:"string",values:["past","future","all"],optional:!0},path:{type:"string",optional:!0}}}},{}],7:[function(t,e,n){var r=t("./constants");e.exports=function(t){return{event:t.config.on||t.config.off,handler:t.config.handler||null,scope:t.config.scope||t.config.on&&r.listenerScope.ALL||null,path:t.config.path||null}}},{"./constants":2}],8:[function(t,e,n){var r=t("../custom-lodash").cloneDeep,i=t("./constants"),s=t("./utils/listenerMatch"),a=t("./utils/indexOfListener");e.exports=function(t){var e={},n=t,c=a.bind(null,e);function u(t,e){if(s(t,e)){var o=[r(e.config)];t.handler.apply(n.getDataLayer(),o)}}return{register:function(t){var n=t.event;return Object.prototype.hasOwnProperty.call(e,n)?-1===c(t)&&(e[t.event].push(t),!0):(e[t.event]=[t],!0)},unregister:function(t){var n=t.event;if(Object.prototype.hasOwnProperty.call(e,n))if(t.handler||t.scope||t.path){var r=c(t);-1<r&&e[n].splice(r,1)}else e[n]=[]},triggerListeners:function(t){(function(t){var e=[];switch(t.type){case i.itemType.DATA:e.push(i.dataLayerEvent.CHANGE);break;case i.itemType.EVENT:e.push(i.dataLayerEvent.EVENT),t.data&&e.push(i.dataLayerEvent.CHANGE),t.config.event!==i.dataLayerEvent.CHANGE&&e.push(t.config.event)}return e})(t).forEach((function(n){if(Object.prototype.hasOwnProperty.call(e,n)){var r,i=o(e[n]);try{for(i.s();!(r=i.n()).done;)u(r.value,t)}catch(n){i.e(n)}finally{i.f()}}}))},triggerListener:function(t,e){u(t,e)}}}},{"../custom-lodash":1,"./constants":2,"./utils/indexOfListener":12,"./utils/listenerMatch":13}],9:[function(t,e,n){var r=t("../../custom-lodash"),o=r.has,i=r.get;e.exports=function(t,e){for(var n=e.substring(0,e.lastIndexOf("."));n;){if(o(t,n)&&null==i(t,n))return!0;n=n.substring(0,n.lastIndexOf("."))}return!1}},{"../../custom-lodash":1}],10:[function(t,e,n){var r=t("../../custom-lodash"),o=r.cloneDeepWith,i=r.isObject,s=r.isArray,a=r.reject,c=r.mergeWith,u=r.isNull;e.exports=function(t,e){return c(t,e,(function(t,e,n,r){if(null==e)return null})),function(t,e){return o(t,(n=1<arguments.length&&void 0!==e?e:function(t){return!t},function t(e,r,c,u){if(i(e)){if(s(e))return a(e,n).map((function(e){return o(e,t)}));for(var f={},l=0,h=Object.keys(e);l<h.length;l++){var p=h[l];n(e[p])||(f[p]=o(e[p],t))}return f}}));var n}(t,u)}},{"../../custom-lodash":1}],11:[function(t,e,n){var r=t("../../custom-lodash"),o=r.find,i=r.includes;e.exports=function(t,e){return void 0===o(Object.keys(e),(function(n){var r=e[n].type,o=n&&e[n].values,s=!e[n].optional,c=t[n],u=a(c),f=r&&u!==r,l=o&&!i(o,c);return s?!c||f||l:c&&(f||l)}))}},{"../../custom-lodash":1}],12:[function(t,e,n){var i=t("../../custom-lodash").isEqual;e.exports=function(t,e){var n=e.event;if(Object.prototype.hasOwnProperty.call(t,n)){var s,a=o(t[n].entries());try{for(a.s();!(s=a.n()).done;){var c=r(s.value,2),u=c[0],f=c[1];if(i(f.handler,e.handler))return u}}catch(t){a.e(t)}finally{a.f()}}return-1}},{"../../custom-lodash":1}],13:[function(t,e,n){var r=t("../../custom-lodash").has,o=t("../constants"),i=t("./ancestorRemoved");function s(t,e){return!e.data||!t.path||r(e.data,t.path)||i(e.data,t.path)}e.exports=function(t,e){var n=t.event,r=e.config,i=!1;return e.type===o.itemType.DATA?n===o.dataLayerEvent.CHANGE&&(i=s(t,e)):e.type===o.itemType.EVENT&&(n!==o.dataLayerEvent.EVENT&&n!==r.event||(i=s(t,e)),e.data&&n===o.dataLayerEvent.CHANGE&&(i=s(t,e))),i}},{"../../custom-lodash":1,"../constants":2,"./ancestorRemoved":9}],14:[function(t,e,n){e.exports={version:"2.0.2"}},{}]},{},[4])}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r={};return(()=>{n.d(r,{default:()=>pt}),n(525);class t{setContext(t,e){window.adobeDataLayer.push({[t]:null}),window.adobeDataLayer.push({[t]:e})}getContext(t){return window.adobeDataLayer.getState?window.adobeDataLayer.getState(t):{}}addEventListener(t,e,n){window.adobeDataLayer.push((r=>{r.addEventListener(t,e,n)}))}removeEventListener(t,e){window.adobeDataLayer.push((n=>{n.removeEventListener(t,e)}))}pushEvent(t,e={}){window.adobeDataLayer.push((n=>{n.push({event:t,eventInfo:Object.assign(Object.assign({},this.getContext()),e)})}))}}const e="aepContext",o="accountContext",i="changedProductsContext",s="categoryContext",a="customUrlContext",c="dataServicesExtensionContext",u="debugContext",f="eventForwardingContext",l="experiencePlatformConnectorExtensionContext",h="magentoExtensionContext",p="orderContext",d="orderPageContext",v="pageContext",g="productContext",y="recommendationsContext",b="recommendationsExtensionContext",m="referrerUrlContext",E="requisitionListContext",j="requisitionListItemsContext",x="searchExtensionContext",C="searchInputContext",L="searchResultsContext",_="shopperContext",w="shoppingCartContext",A="storefrontInstanceContext";class O extends t{getAEP(){return this.getContext(e)}setAEP(t){this.setContext(e,t)}getAccount(){return this.getContext(o)}setAccount(t){this.setContext(o,t)}getChangedProducts(){return this.getContext(i)}setChangedProducts(t){this.setContext(i,t)}getCategory(){return this.getContext(s)}setCategory(t){this.setContext(s,t)}getDebug(){return this.getContext(u)}setDebug(t){this.setContext(u,t)}getEventForwarding(){return this.getContext(f)}setEventForwarding(t){this.setContext(f,t)}getExperiencePlatformConnectorExtension(){return this.getContext(l)}setExperiencePlatformConnectorExtension(t){this.setContext(l,t)}getCustomUrl(){return this.getContext(a)}setCustomUrl(t){this.setContext(a,t)}getDataServicesExtension(){return this.getContext(c)}setDataServicesExtension(t){this.setContext(c,t)}getMagentoExtension(){return this.getContext(h)}setMagentoExtension(t){this.setContext(h,t)}getOrder(){return this.getContext(p)}setOrder(t){this.setContext(p,t)}getOrderPage(){return this.getContext(d)}setOrderPage(t){this.setContext(d,t)}getPage(){return this.getContext(v)}setPage(t){this.setContext(v,t)}getProduct(){return this.getContext(g)}setProduct(t){this.setContext(g,t)}getRecommendations(){return this.getContext(y)}setRecommendations(t){this.setContext(y,t)}getRecommendationsExtension(){return this.getContext(b)}setRecommendationsExtension(t){this.setContext(b,t)}getReferrerUrl(){return this.getContext(m)}setReferrerUrl(t){this.setContext(m,t)}getRequisitionList(){return this.getContext(E)}setRequisitionList(t){this.setContext(E,t)}getRequisitionListItems(){return this.getContext(j)}setRequisitionListItems(t){this.setContext(j,t)}getSearchExtension(){return this.getContext(x)}setSearchExtension(t){this.setContext(x,t)}getSearchInput(){return this.getContext(C)}setSearchInput(t){this.setContext(C,t)}getSearchResults(){return this.getContext(L)}setSearchResults(t){this.setContext(L,t)}getShopper(){return this.getContext(_)}setShopper(t){this.setContext(_,t)}getShoppingCart(){return this.getContext(w)}setShoppingCart(t){this.setContext(w,t)}getStorefrontInstance(){return this.getContext(A)}setStorefrontInstance(t){this.setContext(A,t)}getContext(t){return super.getContext(t)}setContext(t,e){super.setContext(t,e)}}const S="add-to-cart",R="add-to-requisition-list",k="create-account",I="create-requisition-list",T="commerce-custom",D="custom-url",U="adobeDataLayer:change",P="adobeDataLayer:event",F="edit-account",N="initiate-checkout",M="open-cart",V="page-activity-summary",q="page-view",z="place-order",$="product-page-view",B="recs-item-click",W="recs-item-add-to-cart-click",G="recs-api-request-sent",H="recs-api-response-received",J="recs-unit-impression-render",Y="recs-unit-view",K="referrer-url",Q="remove-from-cart",X="remove-from-requisition-list",Z="search-category-click",tt="search-product-click",et="search-request-sent",nt="search-response-received",rt="search-results-view",ot="category-results-view",it="search-suggestion-click",st="shopping-cart-view",at="sign-in",ct="sign-out",ut="update-cart";class ft extends t{addToCart(t){this.pushEvent(S,{customContext:t})}addToRequisitionList(t){this.pushEvent(R,{customContext:t})}createAccount(t){this.pushEvent(k,{customContext:t})}createRequisitionList(t){this.pushEvent(I,{customContext:t})}custom(t){this.pushEvent(T,{customContext:t})}customUrl(t){this.pushEvent(D,{customContext:t})}editAccount(t){this.pushEvent(F,{customContext:t})}initiateCheckout(t){this.pushEvent(N,{customContext:t})}openCart(t){this.pushEvent(M,{customContext:t})}pageActivitySummary(t){this.pushEvent(V,{customContext:t})}pageView(t){this.pushEvent(q,{customContext:t})}placeOrder(t){this.pushEvent(z,{customContext:t})}productPageView(t){this.pushEvent($,{customContext:t})}recsItemAddToCartClick(t,e,n){this.pushEvent(W,{unitId:t,productId:e,customContext:n})}recsItemClick(t,e,n){this.pushEvent(B,{unitId:t,productId:e,customContext:n})}recsRequestSent(t){this.pushEvent(G,{customContext:t})}recsResponseReceived(t){this.pushEvent(H,{customContext:t})}recsUnitRender(t,e){this.pushEvent(J,{unitId:t,customContext:e})}recsUnitView(t,e){this.pushEvent(Y,{unitId:t,customContext:e})}referrerUrl(t){this.pushEvent(K,{customContext:t})}removeFromCart(t){this.pushEvent(Q,{customContext:t})}removeFromRequisitionList(t){this.pushEvent(X,{customContext:t})}searchCategoryClick(t,e,n){this.pushEvent(Z,{searchUnitId:t,name:e,customContext:n})}searchProductClick(t,e,n){this.pushEvent(tt,{searchUnitId:t,sku:e,customContext:n})}searchRequestSent(t,e){this.pushEvent(et,{searchUnitId:t,customContext:e})}searchResponseReceived(t,e){this.pushEvent(nt,{searchUnitId:t,customContext:e})}searchResultsView(t,e){this.pushEvent(rt,{searchUnitId:t,customContext:e})}categoryResultsView(t,e){this.pushEvent(ot,{searchUnitId:t,customContext:e})}searchSuggestionClick(t,e,n){this.pushEvent(it,{searchUnitId:t,suggestion:e,customContext:n})}shoppingCartView(t){this.pushEvent(st,{customContext:t})}signIn(t){this.pushEvent(at,{customContext:t})}signOut(t){this.pushEvent(ct,{customContext:t})}updateCart(t){this.pushEvent(ut,{customContext:t})}}class lt extends t{addToCart(t,e){this.addEventListener(S,t,e)}addToRequisitionList(t,e){this.addEventListener(R,t,e)}createAccount(t,e){this.addEventListener(k,t,e)}createRequisitionList(t,e){this.addEventListener(I,t,e)}custom(t,e){this.addEventListener(T,t,e)}customUrl(t,e){this.addEventListener(D,t,e)}editAccount(t,e){this.addEventListener(F,t,e)}dataLayerChange(t,e){this.addEventListener(U,t,e)}dataLayerEvent(t,e){this.addEventListener(P,t,e)}initiateCheckout(t,e){this.addEventListener(N,t,e)}openCart(t,e){this.addEventListener(M,t,e)}pageActivitySummary(t,e){this.addEventListener(V,t,e)}pageView(t,e){this.addEventListener(q,t,e)}placeOrder(t,e){this.addEventListener(z,t,e)}productPageView(t,e){this.addEventListener($,t,e)}recsItemAddToCartClick(t,e){this.addEventListener(W,t,e)}recsItemClick(t,e){this.addEventListener(B,t,e)}recsRequestSent(t,e){this.addEventListener(G,t,e)}recsResponseReceived(t,e){this.addEventListener(H,t,e)}recsUnitRender(t,e){this.addEventListener(J,t,e)}recsUnitView(t,e){this.addEventListener(Y,t,e)}referrerUrl(t,e){this.addEventListener(K,t,e)}removeFromCart(t,e){this.addEventListener(Q,t,e)}removeFromRequisitionList(t,e){this.addEventListener(X,t,e)}searchCategoryClick(t){this.addEventListener(Z,t)}searchProductClick(t){this.addEventListener(tt,t)}searchRequestSent(t){this.addEventListener(et,t)}searchResponseReceived(t){this.addEventListener(nt,t)}searchResultsView(t){this.addEventListener(rt,t)}categoryResultsView(t){this.addEventListener(ot,t)}searchSuggestionClick(t){this.addEventListener(it,t)}shoppingCartView(t){this.addEventListener(st,t)}signIn(t,e){this.addEventListener(at,t,e)}signOut(t,e){this.addEventListener(ct,t,e)}updateCart(t){this.addEventListener(ut,t)}}class ht extends t{addToCart(t){this.removeEventListener(S,t)}addToRequisitionList(t){this.removeEventListener(R,t)}createAccount(t){this.removeEventListener(k,t)}createRequisitionList(t){this.removeEventListener(I,t)}custom(t){this.removeEventListener(T,t)}customUrl(t){this.removeEventListener(D,t)}editAccount(t){this.removeEventListener(F,t)}dataLayerChange(t){this.removeEventListener(U,t)}dataLayerEvent(t){this.removeEventListener(P,t)}initiateCheckout(t){this.removeEventListener(N,t)}openCart(t){this.removeEventListener(M,t)}pageActivitySummary(t){this.removeEventListener(V,t)}pageView(t){this.removeEventListener(q,t)}placeOrder(t){this.removeEventListener(z,t)}productPageView(t){this.removeEventListener($,t)}recsItemAddToCartClick(t){this.removeEventListener(W,t)}recsItemClick(t){this.removeEventListener(B,t)}recsRequestSent(t){this.removeEventListener(G,t)}recsResponseReceived(t){this.removeEventListener(H,t)}recsUnitRender(t){this.removeEventListener(J,t)}recsUnitView(t){this.removeEventListener(Y,t)}referrerUrl(t){this.removeEventListener(K,t)}removeFromCart(t){this.removeEventListener(Q,t)}removeFromRequisitionList(t){this.removeEventListener(X,t)}searchCategoryClick(t){this.removeEventListener(Z,t)}searchProductClick(t){this.removeEventListener(tt,t)}searchRequestSent(t){this.removeEventListener(et,t)}searchResponseReceived(t){this.removeEventListener(nt,t)}searchResultsView(t){this.removeEventListener(rt,t)}categoryResultsView(t){this.removeEventListener(ot,t)}searchSuggestionClick(t){this.removeEventListener(it,t)}shoppingCartView(t){this.removeEventListener(st,t)}signIn(t){this.removeEventListener(at,t)}signOut(t){this.removeEventListener(ct,t)}updateCart(t){this.removeEventListener(ut,t)}}const pt=new class{constructor(){this.context=new O,this.publish=new ft,this.subscribe=new lt,this.unsubscribe=new ht,window.adobeDataLayer=window.adobeDataLayer||[],window.postMessage("magento-storefront-events-sdk","*")}}})(),r.default})()));
|
|
2
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("magentoStorefrontEvents",[],e):"object"==typeof exports?exports.magentoStorefrontEvents=e():t.magentoStorefrontEvents=e()}(self,(()=>(()=>{"use strict";var t={525:(t,e,n)=>{function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}}(t,e)||i(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t){if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=i(t))){var e=0,n=function(){};return{s:n,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,s=!0,a=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw o}}}}function i(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function t(e,n,r){function o(s,a){if(!n[s]){if(!e[s]){if(i)return i(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[s]={exports:{}};e[s][0].call(u.exports,(function(t){return o(e[s][1][t]||t)}),u,u.exports,t,e,n,r)}return n[s].exports}for(var i=void 0,s=0;s<r.length;s++)o(r[s]);return o}({1:[function(t,e,r){(function(t){(function(){function n(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var s=t[n];e(s,n,t)&&(i[o++]=s)}return i}function o(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function i(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}function s(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function c(t,e,n){var r=t.length;for(n+=-1;++n<r;)if(e(t[n],n,t))return n;return-1}function u(t){return t!=t}function f(t){return function(e){return t(e)}}function l(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function h(t){var e=Object;return function(n){return t(e(n))}}function d(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function p(){}function v(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function g(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function y(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function b(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new y;++e<n;)this.add(t[e])}function m(t){this.size=(this.__data__=new g(t)).size}function E(t,e){var n,r=bn(t),o=!r&&yn(t),i=!r&&!o&&mn(t),s=!r&&!o&&!i&&xn(t);if(r=r||o||i||s){o=t.length;for(var a=String,c=-1,u=Array(o);++c<o;)u[c]=a(c);o=u}else o=[];for(n in a=o.length,t)!e&&!be.call(t,n)||r&&("length"==n||i&&("offset"==n||"parent"==n)||s&&("buffer"==n||"byteLength"==n||"byteOffset"==n)||et(n,a))||o.push(n);return o}function j(t,e,n){(n===Mt||dt(t[e],n))&&(n!==Mt||e in t)||L(t,e,n)}function x(t,e,n){var r=t[e];be.call(t,e)&&dt(r,n)&&(n!==Mt||e in t)||L(t,e,n)}function C(t,e){for(var n=t.length;n--;)if(dt(t[n][0],e))return n;return-1}function L(t,e,n){"__proto__"==e&&Te?Te(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function _(t,e,n,r,o,i){var s,a=1&e,c=2&e,u=4&e;if(n&&(s=o?n(t,r,o,i):n(t)),s!==Mt)return s;if(!bt(t))return t;if(r=bn(t)){if(s=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&be.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!a)return z(t,s)}else{var f=sn(t),l="[object Function]"==f||"[object GeneratorFunction]"==f;if(mn(t))return M(t,a);if("[object Object]"==f||"[object Arguments]"==f||l&&!o){if(s=c||l?{}:Z(t),!a)return c?function(t,e){return $(t,on(t),e)}(t,function(t,e){return t&&$(e,kt(e),t)}(s,t)):function(t,e){return $(t,rn(t),e)}(t,function(t,e){return t&&$(e,Rt(e),t)}(s,t))}else{if(!te[f])return o?t:{};s=function(t,e,n){var r=t.constructor;switch(e){case"[object ArrayBuffer]":return q(t);case"[object Boolean]":case"[object Date]":return new r(+t);case"[object DataView]":return e=n?q(t.buffer):t.buffer,new t.constructor(e,t.byteOffset,t.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return V(t,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(t);case"[object RegExp]":return(e=new t.constructor(t.source,Ht.exec(t))).lastIndex=t.lastIndex,e;case"[object Symbol]":return Qe?Object(Qe.call(t)):{}}}(t,f,a)}}if(o=(i=i||new m).get(t))return o;if(i.set(t,s),jn(t))return t.forEach((function(r){s.add(_(r,e,n,r,t,i))})),s;if(En(t))return t.forEach((function(r,o){s.set(o,_(r,e,n,o,t,i))})),s;c=u?c?J:H:c?kt:Rt;var h=r?Mt:c(t);return function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n););}(h||t,(function(r,o){h&&(r=t[o=r]),x(s,o,_(r,e,n,o,t,i))})),s}function w(t,e){for(var n=0,r=(e=N(e,t)).length;null!=t&&n<r;)t=t[st(e[n++])];return n&&n==r?t:Mt}function A(t,e,n){return e=e(t),bn(t)?e:i(e,n(t))}function O(t){if(null==t)t=t===Mt?"[object Undefined]":"[object Null]";else if(Ie&&Ie in Object(t)){var e=be.call(t,Ie),n=t[Ie];try{t[Ie]=Mt;var r=!0}catch(t){}var o=Ee.call(t);r&&(e?t[Ie]=n:delete t[Ie]),t=o}else t=Ee.call(t);return t}function S(t,e){return null!=t&&be.call(t,e)}function R(t,e){return null!=t&&e in Object(t)}function k(t){return mt(t)&&"[object Arguments]"==O(t)}function I(t,e,n,r,o){if(t===e)e=!0;else if(null==t||null==e||!mt(t)&&!mt(e))e=t!=t&&e!=e;else t:{var i,s,a=bn(t),c=bn(e),u="[object Object]"==(i="[object Arguments]"==(i=a?"[object Array]":sn(t))?"[object Object]":i);if(c="[object Object]"==(s="[object Arguments]"==(s=c?"[object Array]":sn(e))?"[object Object]":s),(s=i==s)&&mn(t)){if(!mn(e)){e=!1;break t}u=!(a=!0)}if(s&&!u)o=o||new m,e=a||xn(t)?G(t,e,n,r,I,o):function(t,e,n,r,o,i,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)break;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":if(t.byteLength!=e.byteLength||!i(new _e(t),new _e(e)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return dt(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var a=l;case"[object Set]":if(a=a||d,t.size!=e.size&&!(1&r))break;return(n=s.get(t))?n==e:(r|=2,s.set(t,e),e=G(a(t),a(e),r,o,i,s),s.delete(t),e);case"[object Symbol]":if(Qe)return Qe.call(t)==Qe.call(e)}return!1}(t,e,i,n,r,I,o);else{if(!(1&n)&&(a=u&&be.call(t,"__wrapped__"),i=c&&be.call(e,"__wrapped__"),a||i)){e=I(t=a?t.value():t,e=i?e.value():e,n,r,o=o||new m);break t}if(s)e:if(o=o||new m,a=1&n,i=H(t),c=i.length,s=H(e).length,c==s||a){for(u=c;u--;){var f=i[u];if(!(a?f in e:be.call(e,f))){e=!1;break e}}if((s=o.get(t))&&o.get(e))e=s==e;else{s=!0,o.set(t,e),o.set(e,t);for(var h=a;++u<c;){var p=t[f=i[u]],v=e[f];if(r)var g=a?r(v,p,f,e,t,o):r(p,v,f,t,e,o);if(g===Mt?p!==v&&!I(p,v,n,r,o):!g){s=!1;break}h=h||"constructor"==f}s&&!h&&(n=t.constructor)!=(r=e.constructor)&&"constructor"in t&&"constructor"in e&&!("function"==typeof n&&n instanceof n&&"function"==typeof r&&r instanceof r)&&(s=!1),o.delete(t),o.delete(e),e=s}}else e=!1;else e=!1}}return e}function T(t){return"function"==typeof t?t:null==t?Dt:"object"==a(t)?bn(t)?function(t,e){return nt(t)&&e==e&&!bt(e)?ot(st(t),e):function(n){var r=Ot(n,t);return r===Mt&&r===e?St(n,t):I(e,r,3)}}(t[0],t[1]):function(t){var e=function(t){for(var e=Rt(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,o==o&&!bt(o)]}return e}(t);return 1==e.length&&e[0][2]?ot(e[0][0],e[0][1]):function(n){return n===t||function(t,e){var n=e.length,r=n;if(null==t)return!r;for(t=Object(t);n--;)if((o=e[n])[2]?o[1]!==t[o[0]]:!(o[0]in t))return!1;for(;++n<r;){var o,i=(o=e[n])[0],s=t[i],a=o[1];if(o[2]){if(s===Mt&&!(i in t))return!1}else if(!I(a,s,3,void 0,o=new m))return!1}return!0}(n,e)}}(t):Pt(t)}function D(t){if(!rt(t))return Pe(t);var e,n=[];for(e in Object(t))be.call(t,e)&&"constructor"!=e&&n.push(e);return n}function U(t,e,n,r,o){t!==e&&en(e,(function(i,s){if(bt(i)){var a=o=o||new m,c="__proto__"==s?Mt:t[s],u="__proto__"==s?Mt:e[s];if(p=a.get(u))j(t,s,p);else{var f=(p=r?r(c,u,s+"",t,e,a):Mt)===Mt;if(f){var l=bn(u),h=!l&&mn(u),d=!l&&!h&&xn(u),p=u;l||h||d?p=bn(c)?c:vt(c)?z(c):h?M(u,!(f=!1)):d?V(u,!(f=!1)):[]:Et(u)||yn(u)?yn(p=c)?p=wt(c):(!bt(c)||n&>(c))&&(p=Z(u)):f=!1}f&&(a.set(u,p),U(p,u,n,r,a),a.delete(u)),j(t,s,p)}}else(a=r?r("__proto__"==s?Mt:t[s],i,s+"",t,e,o):Mt)===Mt&&(a=i),j(t,s,a)}),kt)}function P(t){if("string"==typeof t)return t;if(bn(t))return o(t,P)+"";if(xt(t))return Xe?Xe.call(t):"";var e=t+"";return"0"==e&&1/t==-qt?"-0":e}function F(t,e){var n;if((e=N(e,t)).length<2)n=t;else{var r=0,o=-1,i=-1,s=(n=e).length;for(r<0&&(r=s<-r?0:s+r),(o=s<o?s:o)<0&&(o+=s),s=o<r?0:o-r>>>0,r>>>=0,o=Array(s);++i<s;)o[i]=n[i+r];n=w(t,o)}null==(t=n)||delete t[st(ft(e))]}function N(t,e){return bn(t)?t:nt(t,e)?[t]:pn(At(t))}function M(t,e){if(e)return t.slice();var n=t.length;return n=we?we(n):new t.constructor(n),t.copy(n),n}function q(t){var e=new t.constructor(t.byteLength);return new _e(e).set(new _e(t)),e}function V(t,e){return new t.constructor(e?q(t.buffer):t.buffer,t.byteOffset,t.length)}function z(t,e){var n=-1,r=t.length;for(e=e||Array(r);++n<r;)e[n]=t[n];return e}function $(t,e,n){var r=!n;n=n||{};for(var o=-1,i=e.length;++o<i;){var s=e[o],a=Mt;a===Mt&&(a=t[s]),r?L(n,s,a):x(n,s,a)}return n}function B(t){return function(t){return dn(it(t,void 0,Dt),t+"")}((function(e,n){var r,o=-1,i=n.length,s=1<i?n[i-1]:Mt,c=2<i?n[2]:Mt;if(s=3<t.length&&"function"==typeof s?(i--,s):Mt,r=c){r=n[0];var u=n[1];if(bt(c)){var f=a(u);r=!!("number"==f?pt(c)&&et(u,c.length):"string"==f&&u in c)&&dt(c[u],r)}else r=!1}for(r&&(s=i<3?Mt:s,i=1),e=Object(e);++o<i;)(c=n[o])&&t(e,c,o,s);return e}))}function W(t){return Et(t)?Mt:t}function G(t,e,n,r,o,i){var a=1&n,c=t.length;if(c!=(u=e.length)&&!(a&&c<u))return!1;if((u=i.get(t))&&i.get(e))return u==e;var u=-1,f=!0,l=2&n?new b:Mt;for(i.set(t,e),i.set(e,t);++u<c;){var h=t[u],d=e[u];if(r)var p=a?r(d,h,u,e,t,i):r(h,d,u,t,e,i);if(p!==Mt){if(p)continue;f=!1;break}if(l){if(!s(e,(function(t,e){if(!l.has(e)&&(h===t||o(h,t,n,r,i)))return l.push(e)}))){f=!1;break}}else if(h!==d&&!o(h,d,n,r,i)){f=!1;break}}return i.delete(t),i.delete(e),f}function H(t){return A(t,Rt,rn)}function J(t){return A(t,kt,on)}function Y(t,e){var n=(n=p.iteratee||Ut)===Ut?T:n;return arguments.length?n(t,e):n}function K(t,e){var n=t.__data__,r=a(e);return("string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==e:null===e)?n["string"==typeof e?"string":"hash"]:n.map}function Q(t,e){var n=null==t?Mt:t[e];return!bt(n)||me&&me in n||!(gt(n)?xe:Kt).test(at(n))?Mt:n}function X(t,e,n){for(var r=-1,o=(e=N(e,t)).length,i=!1;++r<o;){var s=st(e[r]);if(!(i=null!=t&&n(t,s)))break;t=t[s]}return i||++r!=o?i:!!(o=null==t?0:t.length)&&yt(o)&&et(s,o)&&(bn(t)||yn(t))}function Z(t){return"function"!=typeof t.constructor||rt(t)?{}:Ze(Ae(t))}function tt(t){return bn(t)||yn(t)||!!(ke&&t&&t[ke])}function et(t,e){var n=a(t);return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Xt.test(t))&&-1<t&&0==t%1&&t<e}function nt(t,e){if(bn(t))return!1;var n=a(t);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!xt(t))||$t.test(t)||!zt.test(t)||null!=e&&t in Object(e)}function rt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||ve)}function ot(t,e){return function(n){return null!=n&&n[t]===e&&(e!==Mt||t in Object(n))}}function it(t,e,n){return e=Fe(e===Mt?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=Fe(r.length-e,0),s=Array(i);++o<i;)s[o]=r[e+o];for(o=-1,i=Array(e+1);++o<e;)i[o]=r[o];return i[e]=n(s),function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}(t,this,i)}}function st(t){if("string"==typeof t||xt(t))return t;var e=t+"";return"0"==e&&1/t==-qt?"-0":e}function at(t){if(null==t)return"";try{return ye.call(t)}catch(t){}return t+""}function ct(t,e,n){var r=null==t?0:t.length;return r?((n=null==n?0:Lt(n))<0&&(n=Fe(r+n,0)),c(t,Y(e,3),n)):-1}function ut(t){return null!=t&&t.length?function t(e,n,r,o,s){var a=-1,c=e.length;for(r=r||tt,s=s||[];++a<c;){var u=e[a];0<n&&r(u)?1<n?t(u,n-1,r,o,s):i(s,u):o||(s[s.length]=u)}return s}(t,1):[]}function ft(t){var e=null==t?0:t.length;return e?t[e-1]:Mt}function lt(t,e){function n(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;return i.has(o)?i.get(o):(r=t.apply(this,r),n.cache=i.set(o,r)||i,r)}if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");return n.cache=new(lt.Cache||y),n}function ht(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function dt(t,e){return t===e||t!=t&&e!=e}function pt(t){return null!=t&&yt(t.length)&&!gt(t)}function vt(t){return mt(t)&&pt(t)}function gt(t){return!!bt(t)&&("[object Function]"==(t=O(t))||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t)}function yt(t){return"number"==typeof t&&-1<t&&0==t%1&&t<=9007199254740991}function bt(t){var e=a(t);return null!=t&&("object"==e||"function"==e)}function mt(t){return null!=t&&"object"==a(t)}function Et(t){return!(!mt(t)||"[object Object]"!=O(t))&&(null===(t=Ae(t))||"function"==typeof(t=be.call(t,"constructor")&&t.constructor)&&t instanceof t&&ye.call(t)==je)}function jt(t){return"string"==typeof t||!bn(t)&&mt(t)&&"[object String]"==O(t)}function xt(t){return"symbol"==a(t)||mt(t)&&"[object Symbol]"==O(t)}function Ct(t){return t?(t=_t(t))===qt||t===-qt?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function Lt(t){var e=(t=Ct(t))%1;return t==t?e?t-e:t:0}function _t(t){if("number"==typeof t)return t;if(xt(t))return Vt;if(bt(t)&&(t=bt(t="function"==typeof t.valueOf?t.valueOf():t)?t+"":t),"string"!=typeof t)return 0===t?t:+t;t=t.replace(Wt,"");var e=Yt.test(t);return e||Qt.test(t)?ne(t.slice(2),e?2:8):Jt.test(t)?Vt:+t}function wt(t){return $(t,kt(t))}function At(t){return null==t?"":P(t)}function Ot(t,e,n){return(t=null==t?Mt:w(t,e))===Mt?n:t}function St(t,e){return null!=t&&X(t,e,R)}function Rt(t){return pt(t)?E(t):D(t)}function kt(t){if(pt(t))t=E(t,!0);else if(bt(t)){var e,n=rt(t),r=[];for(e in t)("constructor"!=e||!n&&be.call(t,e))&&r.push(e);t=r}else{if(e=[],null!=t)for(n in Object(t))e.push(n);t=e}return t}function It(t){return null==t?[]:function(t,e){return o(e,(function(e){return t[e]}))}(t,Rt(t))}function Tt(t){return function(){return t}}function Dt(t){return t}function Ut(t){return T("function"==typeof t?t:_(t,1))}function Pt(t){return nt(t)?function(t){return function(e){return null==e?Mt:e[t]}}(st(t)):function(t){return function(e){return w(e,t)}}(t)}function Ft(){return[]}function Nt(){return!1}var Mt,qt=1/0,Vt=NaN,zt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$t=/^\w*$/,Bt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Wt=/^\s+|\s+$/g,Gt=/\\(\\)?/g,Ht=/\w*$/,Jt=/^[-+]0x[0-9a-f]+$/i,Yt=/^0b[01]+$/i,Kt=/^\[object .+?Constructor\]$/,Qt=/^0o[0-7]+$/i,Xt=/^(?:0|[1-9]\d*)$/,Zt={};Zt["[object Float32Array]"]=Zt["[object Float64Array]"]=Zt["[object Int8Array]"]=Zt["[object Int16Array]"]=Zt["[object Int32Array]"]=Zt["[object Uint8Array]"]=Zt["[object Uint8ClampedArray]"]=Zt["[object Uint16Array]"]=Zt["[object Uint32Array]"]=!0,Zt["[object Arguments]"]=Zt["[object Array]"]=Zt["[object ArrayBuffer]"]=Zt["[object Boolean]"]=Zt["[object DataView]"]=Zt["[object Date]"]=Zt["[object Error]"]=Zt["[object Function]"]=Zt["[object Map]"]=Zt["[object Number]"]=Zt["[object Object]"]=Zt["[object RegExp]"]=Zt["[object Set]"]=Zt["[object String]"]=Zt["[object WeakMap]"]=!1;var te={};te["[object Arguments]"]=te["[object Array]"]=te["[object ArrayBuffer]"]=te["[object DataView]"]=te["[object Boolean]"]=te["[object Date]"]=te["[object Float32Array]"]=te["[object Float64Array]"]=te["[object Int8Array]"]=te["[object Int16Array]"]=te["[object Int32Array]"]=te["[object Map]"]=te["[object Number]"]=te["[object Object]"]=te["[object RegExp]"]=te["[object Set]"]=te["[object String]"]=te["[object Symbol]"]=te["[object Uint8Array]"]=te["[object Uint8ClampedArray]"]=te["[object Uint16Array]"]=te["[object Uint32Array]"]=!0,te["[object Error]"]=te["[object Function]"]=te["[object WeakMap]"]=!1;var ee,ne=parseInt,re="object"==a(t)&&t&&t.Object===Object&&t,oe="object"==("undefined"==typeof self?"undefined":a(self))&&self&&self.Object===Object&&self,ie=re||oe||Function("return this")(),se="object"==a(r)&&r&&!r.nodeType&&r,ae=se&&"object"==a(e)&&e&&!e.nodeType&&e,ce=ae&&ae.exports===se,ue=ce&&re.process;t:{try{ee=ue&&ue.binding&&ue.binding("util");break t}catch(f){}ee=void 0}var fe,le=ee&&ee.isMap,he=ee&&ee.isSet,de=ee&&ee.isTypedArray,pe=Array.prototype,ve=Object.prototype,ge=ie["__core-js_shared__"],ye=Function.prototype.toString,be=ve.hasOwnProperty,me=(fe=/[^.]+$/.exec(ge&&ge.keys&&ge.keys.IE_PROTO||""))?"Symbol(src)_1."+fe:"",Ee=ve.toString,je=ye.call(Object),xe=RegExp("^"+ye.call(be).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ce=ce?ie.Buffer:Mt,Le=ie.Symbol,_e=ie.Uint8Array,we=Ce?Ce.a:Mt,Ae=h(Object.getPrototypeOf),Oe=Object.create,Se=ve.propertyIsEnumerable,Re=pe.splice,ke=Le?Le.isConcatSpreadable:Mt,Ie=Le?Le.toStringTag:Mt,Te=function(){try{var t=Q(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),De=Object.getOwnPropertySymbols,Ue=Ce?Ce.isBuffer:Mt,Pe=h(Object.keys),Fe=Math.max,Ne=Date.now,Me=Q(ie,"DataView"),qe=Q(ie,"Map"),Ve=Q(ie,"Promise"),ze=Q(ie,"Set"),$e=Q(ie,"WeakMap"),Be=Q(Object,"create"),We=at(Me),Ge=at(qe),He=at(Ve),Je=at(ze),Ye=at($e),Ke=Le?Le.prototype:Mt,Qe=Ke?Ke.valueOf:Mt,Xe=Ke?Ke.toString:Mt,Ze=function(t){return bt(t)?Oe?Oe(t):(tn.prototype=t,t=new tn,tn.prototype=Mt,t):{}};function tn(){}v.prototype.clear=function(){this.__data__=Be?Be(null):{},this.size=0},v.prototype.delete=function(t){return t=this.has(t)&&delete this.__data__[t],this.size-=t?1:0,t},v.prototype.get=function(t){var e=this.__data__;return Be?"__lodash_hash_undefined__"===(t=e[t])?Mt:t:be.call(e,t)?e[t]:Mt},v.prototype.has=function(t){var e=this.__data__;return Be?e[t]!==Mt:be.call(e,t)},v.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Be&&e===Mt?"__lodash_hash_undefined__":e,this},g.prototype.clear=function(){this.__data__=[],this.size=0},g.prototype.delete=function(t){var e=this.__data__;return!((t=C(e,t))<0||(t==e.length-1?e.pop():Re.call(e,t,1),--this.size,0))},g.prototype.get=function(t){var e=this.__data__;return(t=C(e,t))<0?Mt:e[t][1]},g.prototype.has=function(t){return-1<C(this.__data__,t)},g.prototype.set=function(t,e){var n=this.__data__,r=C(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},y.prototype.clear=function(){this.size=0,this.__data__={hash:new v,map:new(qe||g),string:new v}},y.prototype.delete=function(t){return t=K(this,t).delete(t),this.size-=t?1:0,t},y.prototype.get=function(t){return K(this,t).get(t)},y.prototype.has=function(t){return K(this,t).has(t)},y.prototype.set=function(t,e){var n=K(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},b.prototype.add=b.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},b.prototype.has=function(t){return this.__data__.has(t)},m.prototype.clear=function(){this.__data__=new g,this.size=0},m.prototype.delete=function(t){var e=this.__data__;return t=e.delete(t),this.size=e.size,t},m.prototype.get=function(t){return this.__data__.get(t)},m.prototype.has=function(t){return this.__data__.has(t)},m.prototype.set=function(t,e){var n=this.__data__;if(n instanceof g){var r=n.__data__;if(!qe||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new y(r)}return n.set(t,e),this.size=n.size,this};var en=function(t,e,n){for(var r=-1,o=Object(t),i=(n=n(t)).length;i--;){var s=n[++r];if(!1===e(o[s],s,o))break}return t},nn=Te?function(t,e){return Te(t,"toString",{configurable:!0,enumerable:!1,value:Tt(e),writable:!0})}:Dt,rn=De?function(t){return null==t?[]:(t=Object(t),n(De(t),(function(e){return Se.call(t,e)})))}:Ft,on=De?function(t){for(var e=[];t;)i(e,rn(t)),t=Ae(t);return e}:Ft,sn=O;(Me&&"[object DataView]"!=sn(new Me(new ArrayBuffer(1)))||qe&&"[object Map]"!=sn(new qe)||Ve&&"[object Promise]"!=sn(Ve.resolve())||ze&&"[object Set]"!=sn(new ze)||$e&&"[object WeakMap]"!=sn(new $e))&&(sn=function(t){var e=O(t);if(t=(t="[object Object]"==e?t.constructor:Mt)?at(t):"")switch(t){case We:return"[object DataView]";case Ge:return"[object Map]";case He:return"[object Promise]";case Je:return"[object Set]";case Ye:return"[object WeakMap]"}return e});var an,cn,un,fn,ln,hn,dn=(fn=nn,hn=ln=0,function(){var t=Ne(),e=16-(t-hn);if(hn=t,0<e){if(800<=++ln)return arguments[0]}else ln=0;return fn.apply(Mt,arguments)}),pn=(un=(cn=lt(cn=function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Bt,(function(t,n,r,o){e.push(r?o.replace(Gt,"$1"):n||t)})),e},(function(t){return 500===un.size&&un.clear(),t}))).cache,cn),vn=(an=ct,function(t,e,n){var r=Object(t);if(!pt(t)){var o=Y(e,3);t=Rt(t),e=function(t){return o(r[t],t,r)}}return-1<(e=an(t,e,n))?r[o?t[e]:e]:Mt});lt.Cache=y;var gn,yn=k(function(){return arguments}())?k:function(t){return mt(t)&&be.call(t,"callee")&&!Se.call(t,"callee")},bn=Array.isArray,mn=Ue||Nt,En=le?f(le):function(t){return mt(t)&&"[object Map]"==sn(t)},jn=he?f(he):function(t){return mt(t)&&"[object Set]"==sn(t)},xn=de?f(de):function(t){return mt(t)&&yt(t.length)&&!!Zt[O(t)]},Cn=B((function(t,e,n){U(t,e,n)})),Ln=B((function(t,e,n,r){U(t,e,n,r)})),_n=dn(it(gn=function(t,e){var n={};if(null==t)return n;var r=!1;e=o(e,(function(e){return e=N(e,t),r=r||1<e.length,e})),$(t,J(t),n),r&&(n=_(n,7,W));for(var i=e.length;i--;)F(n,e[i]);return n},Mt,ut),gn+"");p.constant=Tt,p.flatten=ut,p.iteratee=Ut,p.keys=Rt,p.keysIn=kt,p.memoize=lt,p.merge=Cn,p.mergeWith=Ln,p.negate=ht,p.omit=_n,p.property=Pt,p.reject=function(t,e){return(bn(t)?n:function(t,e){var n=[];return function(t,e){if(null==t)return t;if(!pt(t))return function(t,e){return t&&en(t,e,Rt)}(t,e);for(var n=t.length,r=-1,o=Object(t);++r<n&&!1!==e(o[r],r,o););}(t,(function(t,r,o){e(t,r,o)&&n.push(t)})),n})(t,ht(Y(e,3)))},p.toPlainObject=wt,p.values=It,p.cloneDeep=function(t){return _(t,5)},p.cloneDeepWith=function(t,e){return _(t,5,e="function"==typeof e?e:Mt)},p.eq=dt,p.find=vn,p.findIndex=ct,p.get=Ot,p.has=function(t,e){return null!=t&&X(t,e,S)},p.hasIn=St,p.identity=Dt,p.includes=function(t,e,n,r){if(t=pt(t)?t:It(t),n=n&&!r?Lt(n):0,r=t.length,n<0&&(n=Fe(r+n,0)),jt(t))t=n<=r&&-1<t.indexOf(e,n);else{if(r=!!r){if(e==e)t:{for(n-=1,r=t.length;++n<r;)if(t[n]===e){t=n;break t}t=-1}else t=c(t,u,n);r=-1<t}t=r}return t},p.isArguments=yn,p.isArray=bn,p.isArrayLike=pt,p.isArrayLikeObject=vt,p.isBuffer=mn,p.isEmpty=function(t){if(null==t)return!0;if(pt(t)&&(bn(t)||"string"==typeof t||"function"==typeof t.splice||mn(t)||xn(t)||yn(t)))return!t.length;var e=sn(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(rt(t))return!D(t).length;for(var n in t)if(be.call(t,n))return!1;return!0},p.isEqual=function(t,e){return I(t,e)},p.isFunction=gt,p.isLength=yt,p.isMap=En,p.isNull=function(t){return null===t},p.isObject=bt,p.isObjectLike=mt,p.isPlainObject=Et,p.isSet=jn,p.isString=jt,p.isSymbol=xt,p.isTypedArray=xn,p.last=ft,p.stubArray=Ft,p.stubFalse=Nt,p.toFinite=Ct,p.toInteger=Lt,p.toNumber=_t,p.toString=At,p.VERSION="4.17.5",ae&&((ae.exports=p)._=p,se._=p)}).call(this)}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(t,e,n){e.exports={itemType:{DATA:"data",FCTN:"fctn",EVENT:"event",LISTENER_ON:"listenerOn",LISTENER_OFF:"listenerOff"},dataLayerEvent:{CHANGE:"adobeDataLayer:change",EVENT:"adobeDataLayer:event"},listenerScope:{PAST:"past",FUTURE:"future",ALL:"all"}}},{}],3:[function(t,e,n){var r=t("../custom-lodash"),i=t("../version.json").version,s=r.cloneDeep,a=r.get,c=t("./item"),u=t("./listener"),f=t("./listenerManager"),l=t("./constants"),h=t("./utils/customMerge");e.exports=function(t){var e,n,r=t||{},d=[],p={},v={getState:function(){return p},getDataLayer:function(){return d}};function g(t){p=h(p,t.data)}function y(t){function n(t){return 0===d.length||t.index>d.length-1?[]:d.slice(0,t.index).map((function(t){return c(t)}))}t.valid?{data:function(t){g(t),e.triggerListeners(t)},fctn:function(t){t.config.call(d,d)},event:function(t){t.data&&g(t),e.triggerListeners(t)},listenerOn:function(t){var r=u(t);switch(r.scope){case l.listenerScope.PAST:var i,s=o(n(t));try{for(s.s();!(i=s.n()).done;){var a=i.value;e.triggerListener(r,a)}}catch(t){s.e(t)}finally{s.f()}break;case l.listenerScope.FUTURE:e.register(r);break;case l.listenerScope.ALL:if(e.register(r)){var c,f=o(n(t));try{for(f.s();!(c=f.n()).done;){var h=c.value;e.triggerListener(r,h)}}catch(t){f.e(t)}finally{f.f()}}}},listenerOff:function(t){e.unregister(u(t))}}[t.type](t):b(t)}function b(t){var e="The following item cannot be handled by the data layer because it does not have a valid format: "+JSON.stringify(t.config);console.error(e)}return Array.isArray(r.dataLayer)||(r.dataLayer=[]),n=r.dataLayer.splice(0,r.dataLayer.length),(d=r.dataLayer).version=i,p={},e=f(v),d.push=function(t){var e=arguments,n=arguments;if(Object.keys(e).forEach((function(t){var r=c(e[t]);switch(r.valid||(b(r),delete n[t]),r.type){case l.itemType.DATA:case l.itemType.EVENT:y(r);break;case l.itemType.FCTN:delete n[t],y(r);break;case l.itemType.LISTENER_ON:case l.itemType.LISTENER_OFF:delete n[t]}})),n[0])return Array.prototype.push.apply(this,n)},d.getState=function(t){return t?a(s(p),t):s(p)},d.addEventListener=function(t,e,n){y(c({on:t,handler:e,scope:n&&n.scope,path:n&&n.path}))},d.removeEventListener=function(t,e){y(c({off:t,handler:e}))},function(){for(var t=0;t<n.length;t++)d.push(n[t])}(),v}},{"../custom-lodash":1,"../version.json":14,"./constants":2,"./item":5,"./listener":7,"./listenerManager":8,"./utils/customMerge":10}],4:[function(t,e,n){var r={Manager:t("./dataLayerManager")};window.adobeDataLayer=window.adobeDataLayer||[],window.adobeDataLayer.version?console.warn("Adobe Client Data Layer v".concat(window.adobeDataLayer.version," has already been imported/initialized on this page. You may be erroneously loading it a second time.")):r.Manager({dataLayer:window.adobeDataLayer}),e.exports=r},{"./dataLayerManager":3}],5:[function(t,e,n){var r=t("../custom-lodash"),o=r.isPlainObject,i=r.isEmpty,s=r.omit,a=r.find,c=t("./utils/dataMatchesContraints"),u=t("./itemConstraints"),f=t("./constants");e.exports=function(t,e){var n=t,r=e,l=a(Object.keys(u),(function(t){return c(n,u[t])}))||"function"==typeof n&&f.itemType.FCTN||o(n)&&f.itemType.DATA,h=function(){var t=s(n,Object.keys(u.event));if(!i(t))return t}();return{config:n,type:l,data:h,valid:!!l,index:r}}},{"../custom-lodash":1,"./constants":2,"./itemConstraints":6,"./utils/dataMatchesContraints":11}],6:[function(t,e,n){e.exports={event:{event:{type:"string"},eventInfo:{optional:!0}},listenerOn:{on:{type:"string"},handler:{type:"function"},scope:{type:"string",values:["past","future","all"],optional:!0},path:{type:"string",optional:!0}},listenerOff:{off:{type:"string"},handler:{type:"function",optional:!0},scope:{type:"string",values:["past","future","all"],optional:!0},path:{type:"string",optional:!0}}}},{}],7:[function(t,e,n){var r=t("./constants");e.exports=function(t){return{event:t.config.on||t.config.off,handler:t.config.handler||null,scope:t.config.scope||t.config.on&&r.listenerScope.ALL||null,path:t.config.path||null}}},{"./constants":2}],8:[function(t,e,n){var r=t("../custom-lodash").cloneDeep,i=t("./constants"),s=t("./utils/listenerMatch"),a=t("./utils/indexOfListener");e.exports=function(t){var e={},n=t,c=a.bind(null,e);function u(t,e){if(s(t,e)){var o=[r(e.config)];t.handler.apply(n.getDataLayer(),o)}}return{register:function(t){var n=t.event;return Object.prototype.hasOwnProperty.call(e,n)?-1===c(t)&&(e[t.event].push(t),!0):(e[t.event]=[t],!0)},unregister:function(t){var n=t.event;if(Object.prototype.hasOwnProperty.call(e,n))if(t.handler||t.scope||t.path){var r=c(t);-1<r&&e[n].splice(r,1)}else e[n]=[]},triggerListeners:function(t){(function(t){var e=[];switch(t.type){case i.itemType.DATA:e.push(i.dataLayerEvent.CHANGE);break;case i.itemType.EVENT:e.push(i.dataLayerEvent.EVENT),t.data&&e.push(i.dataLayerEvent.CHANGE),t.config.event!==i.dataLayerEvent.CHANGE&&e.push(t.config.event)}return e})(t).forEach((function(n){if(Object.prototype.hasOwnProperty.call(e,n)){var r,i=o(e[n]);try{for(i.s();!(r=i.n()).done;)u(r.value,t)}catch(n){i.e(n)}finally{i.f()}}}))},triggerListener:function(t,e){u(t,e)}}}},{"../custom-lodash":1,"./constants":2,"./utils/indexOfListener":12,"./utils/listenerMatch":13}],9:[function(t,e,n){var r=t("../../custom-lodash"),o=r.has,i=r.get;e.exports=function(t,e){for(var n=e.substring(0,e.lastIndexOf("."));n;){if(o(t,n)&&null==i(t,n))return!0;n=n.substring(0,n.lastIndexOf("."))}return!1}},{"../../custom-lodash":1}],10:[function(t,e,n){var r=t("../../custom-lodash"),o=r.cloneDeepWith,i=r.isObject,s=r.isArray,a=r.reject,c=r.mergeWith,u=r.isNull;e.exports=function(t,e){return c(t,e,(function(t,e,n,r){if(null==e)return null})),function(t,e){return o(t,(n=1<arguments.length&&void 0!==e?e:function(t){return!t},function t(e,r,c,u){if(i(e)){if(s(e))return a(e,n).map((function(e){return o(e,t)}));for(var f={},l=0,h=Object.keys(e);l<h.length;l++){var d=h[l];n(e[d])||(f[d]=o(e[d],t))}return f}}));var n}(t,u)}},{"../../custom-lodash":1}],11:[function(t,e,n){var r=t("../../custom-lodash"),o=r.find,i=r.includes;e.exports=function(t,e){return void 0===o(Object.keys(e),(function(n){var r=e[n].type,o=n&&e[n].values,s=!e[n].optional,c=t[n],u=a(c),f=r&&u!==r,l=o&&!i(o,c);return s?!c||f||l:c&&(f||l)}))}},{"../../custom-lodash":1}],12:[function(t,e,n){var i=t("../../custom-lodash").isEqual;e.exports=function(t,e){var n=e.event;if(Object.prototype.hasOwnProperty.call(t,n)){var s,a=o(t[n].entries());try{for(a.s();!(s=a.n()).done;){var c=r(s.value,2),u=c[0],f=c[1];if(i(f.handler,e.handler))return u}}catch(t){a.e(t)}finally{a.f()}}return-1}},{"../../custom-lodash":1}],13:[function(t,e,n){var r=t("../../custom-lodash").has,o=t("../constants"),i=t("./ancestorRemoved");function s(t,e){return!e.data||!t.path||r(e.data,t.path)||i(e.data,t.path)}e.exports=function(t,e){var n=t.event,r=e.config,i=!1;return e.type===o.itemType.DATA?n===o.dataLayerEvent.CHANGE&&(i=s(t,e)):e.type===o.itemType.EVENT&&(n!==o.dataLayerEvent.EVENT&&n!==r.event||(i=s(t,e)),e.data&&n===o.dataLayerEvent.CHANGE&&(i=s(t,e))),i}},{"../../custom-lodash":1,"../constants":2,"./ancestorRemoved":9}],14:[function(t,e,n){e.exports={version:"2.0.2"}},{}]},{},[4])}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r={};return(()=>{n.d(r,{default:()=>pt}),n(525);class t{setContext(t,e){window.adobeDataLayer.push({[t]:null}),window.adobeDataLayer.push({[t]:e})}getContext(t){return window.adobeDataLayer.getState?window.adobeDataLayer.getState(t):{}}addEventListener(t,e,n){window.adobeDataLayer.push((r=>{r.addEventListener(t,e,n)}))}removeEventListener(t,e){window.adobeDataLayer.push((n=>{n.removeEventListener(t,e)}))}pushEvent(t,e={}){window.adobeDataLayer.push((n=>{n.push({event:t,eventInfo:Object.assign(Object.assign({},this.getContext()),e)})}))}}const e="aepContext",o="accountContext",i="changedProductsContext",s="categoryContext",a="customUrlContext",c="dataServicesExtensionContext",u="debugContext",f="eventForwardingContext",l="experiencePlatformConnectorExtensionContext",h="magentoExtensionContext",d="orderContext",p="orderPageContext",v="pageContext",g="productContext",y="recommendationsContext",b="recommendationsExtensionContext",m="referrerUrlContext",E="requisitionListContext",j="requisitionListItemsContext",x="searchExtensionContext",C="searchInputContext",L="searchResultsContext",_="shopperContext",w="shoppingCartContext",A="storefrontInstanceContext";class O extends t{getAEP(){return this.getContext(e)}setAEP(t){this.setContext(e,t)}getAccount(){return this.getContext(o)}setAccount(t){this.setContext(o,t)}getChangedProducts(){return this.getContext(i)}setChangedProducts(t){this.setContext(i,t)}getCategory(){return this.getContext(s)}setCategory(t){this.setContext(s,t)}getDebug(){return this.getContext(u)}setDebug(t){this.setContext(u,t)}getEventForwarding(){return this.getContext(f)}setEventForwarding(t){this.setContext(f,t)}getExperiencePlatformConnectorExtension(){return this.getContext(l)}setExperiencePlatformConnectorExtension(t){this.setContext(l,t)}getCustomUrl(){return this.getContext(a)}setCustomUrl(t){this.setContext(a,t)}getDataServicesExtension(){return this.getContext(c)}setDataServicesExtension(t){this.setContext(c,t)}getMagentoExtension(){return this.getContext(h)}setMagentoExtension(t){this.setContext(h,t)}getOrder(){return this.getContext(d)}setOrder(t){this.setContext(d,t)}getOrderPage(){return this.getContext(p)}setOrderPage(t){this.setContext(p,t)}getPage(){return this.getContext(v)}setPage(t){this.setContext(v,t)}getProduct(){return this.getContext(g)}setProduct(t){this.setContext(g,t)}getRecommendations(){return this.getContext(y)}setRecommendations(t){this.setContext(y,t)}getRecommendationsExtension(){return this.getContext(b)}setRecommendationsExtension(t){this.setContext(b,t)}getReferrerUrl(){return this.getContext(m)}setReferrerUrl(t){this.setContext(m,t)}getRequisitionList(){return this.getContext(E)}setRequisitionList(t){this.setContext(E,t)}getRequisitionListItems(){return this.getContext(j)}setRequisitionListItems(t){this.setContext(j,t)}getSearchExtension(){return this.getContext(x)}setSearchExtension(t){this.setContext(x,t)}getSearchInput(){return this.getContext(C)}setSearchInput(t){this.setContext(C,t)}getSearchResults(){return this.getContext(L)}setSearchResults(t){this.setContext(L,t)}getShopper(){return this.getContext(_)}setShopper(t){this.setContext(_,t)}getShoppingCart(){return this.getContext(w)}setShoppingCart(t){this.setContext(w,t)}getStorefrontInstance(){return this.getContext(A)}setStorefrontInstance(t){this.setContext(A,t)}getContext(t){return super.getContext(t)}setContext(t,e){super.setContext(t,e)}}const S="add-to-cart",R="add-to-requisition-list",k="create-account",I="create-requisition-list",T="delete-requisition-list",D="commerce-custom",U="custom-url",P="adobeDataLayer:change",F="adobeDataLayer:event",N="edit-account",M="initiate-checkout",q="open-cart",V="page-activity-summary",z="page-view",$="place-order",B="product-page-view",W="recs-item-click",G="recs-item-add-to-cart-click",H="recs-api-request-sent",J="recs-api-response-received",Y="recs-unit-impression-render",K="recs-unit-view",Q="referrer-url",X="remove-from-cart",Z="remove-from-requisition-list",tt="search-category-click",et="search-product-click",nt="search-request-sent",rt="search-response-received",ot="search-results-view",it="category-results-view",st="search-suggestion-click",at="shopping-cart-view",ct="sign-in",ut="sign-out",ft="update-cart";class lt extends t{addToCart(t){this.pushEvent(S,{customContext:t})}addToRequisitionList(t){this.pushEvent(R,{customContext:t})}createAccount(t){this.pushEvent(k,{customContext:t})}createRequisitionList(t){this.pushEvent(I,{customContext:t})}deleteRequisitionList(t){this.pushEvent(T,{customContext:t})}custom(t){this.pushEvent(D,{customContext:t})}customUrl(t){this.pushEvent(U,{customContext:t})}editAccount(t){this.pushEvent(N,{customContext:t})}initiateCheckout(t){this.pushEvent(M,{customContext:t})}openCart(t){this.pushEvent(q,{customContext:t})}pageActivitySummary(t){this.pushEvent(V,{customContext:t})}pageView(t){this.pushEvent(z,{customContext:t})}placeOrder(t){this.pushEvent($,{customContext:t})}productPageView(t){this.pushEvent(B,{customContext:t})}recsItemAddToCartClick(t,e,n){this.pushEvent(G,{unitId:t,productId:e,customContext:n})}recsItemClick(t,e,n){this.pushEvent(W,{unitId:t,productId:e,customContext:n})}recsRequestSent(t){this.pushEvent(H,{customContext:t})}recsResponseReceived(t){this.pushEvent(J,{customContext:t})}recsUnitRender(t,e){this.pushEvent(Y,{unitId:t,customContext:e})}recsUnitView(t,e){this.pushEvent(K,{unitId:t,customContext:e})}referrerUrl(t){this.pushEvent(Q,{customContext:t})}removeFromCart(t){this.pushEvent(X,{customContext:t})}removeFromRequisitionList(t){this.pushEvent(Z,{customContext:t})}searchCategoryClick(t,e,n){this.pushEvent(tt,{searchUnitId:t,name:e,customContext:n})}searchProductClick(t,e,n){this.pushEvent(et,{searchUnitId:t,sku:e,customContext:n})}searchRequestSent(t,e){this.pushEvent(nt,{searchUnitId:t,customContext:e})}searchResponseReceived(t,e){this.pushEvent(rt,{searchUnitId:t,customContext:e})}searchResultsView(t,e){this.pushEvent(ot,{searchUnitId:t,customContext:e})}categoryResultsView(t,e){this.pushEvent(it,{searchUnitId:t,customContext:e})}searchSuggestionClick(t,e,n){this.pushEvent(st,{searchUnitId:t,suggestion:e,customContext:n})}shoppingCartView(t){this.pushEvent(at,{customContext:t})}signIn(t){this.pushEvent(ct,{customContext:t})}signOut(t){this.pushEvent(ut,{customContext:t})}updateCart(t){this.pushEvent(ft,{customContext:t})}}class ht extends t{addToCart(t,e){this.addEventListener(S,t,e)}addToRequisitionList(t,e){this.addEventListener(R,t,e)}createAccount(t,e){this.addEventListener(k,t,e)}createRequisitionList(t,e){this.addEventListener(I,t,e)}deleteRequisitionList(t,e){this.addEventListener(T,t,e)}custom(t,e){this.addEventListener(D,t,e)}customUrl(t,e){this.addEventListener(U,t,e)}editAccount(t,e){this.addEventListener(N,t,e)}dataLayerChange(t,e){this.addEventListener(P,t,e)}dataLayerEvent(t,e){this.addEventListener(F,t,e)}initiateCheckout(t,e){this.addEventListener(M,t,e)}openCart(t,e){this.addEventListener(q,t,e)}pageActivitySummary(t,e){this.addEventListener(V,t,e)}pageView(t,e){this.addEventListener(z,t,e)}placeOrder(t,e){this.addEventListener($,t,e)}productPageView(t,e){this.addEventListener(B,t,e)}recsItemAddToCartClick(t,e){this.addEventListener(G,t,e)}recsItemClick(t,e){this.addEventListener(W,t,e)}recsRequestSent(t,e){this.addEventListener(H,t,e)}recsResponseReceived(t,e){this.addEventListener(J,t,e)}recsUnitRender(t,e){this.addEventListener(Y,t,e)}recsUnitView(t,e){this.addEventListener(K,t,e)}referrerUrl(t,e){this.addEventListener(Q,t,e)}removeFromCart(t,e){this.addEventListener(X,t,e)}removeFromRequisitionList(t,e){this.addEventListener(Z,t,e)}searchCategoryClick(t){this.addEventListener(tt,t)}searchProductClick(t){this.addEventListener(et,t)}searchRequestSent(t){this.addEventListener(nt,t)}searchResponseReceived(t){this.addEventListener(rt,t)}searchResultsView(t){this.addEventListener(ot,t)}categoryResultsView(t){this.addEventListener(it,t)}searchSuggestionClick(t){this.addEventListener(st,t)}shoppingCartView(t){this.addEventListener(at,t)}signIn(t,e){this.addEventListener(ct,t,e)}signOut(t,e){this.addEventListener(ut,t,e)}updateCart(t){this.addEventListener(ft,t)}}class dt extends t{addToCart(t){this.removeEventListener(S,t)}addToRequisitionList(t){this.removeEventListener(R,t)}createAccount(t){this.removeEventListener(k,t)}createRequisitionList(t){this.removeEventListener(I,t)}deleteRequisitionList(t){this.removeEventListener(T,t)}custom(t){this.removeEventListener(D,t)}customUrl(t){this.removeEventListener(U,t)}editAccount(t){this.removeEventListener(N,t)}dataLayerChange(t){this.removeEventListener(P,t)}dataLayerEvent(t){this.removeEventListener(F,t)}initiateCheckout(t){this.removeEventListener(M,t)}openCart(t){this.removeEventListener(q,t)}pageActivitySummary(t){this.removeEventListener(V,t)}pageView(t){this.removeEventListener(z,t)}placeOrder(t){this.removeEventListener($,t)}productPageView(t){this.removeEventListener(B,t)}recsItemAddToCartClick(t){this.removeEventListener(G,t)}recsItemClick(t){this.removeEventListener(W,t)}recsRequestSent(t){this.removeEventListener(H,t)}recsResponseReceived(t){this.removeEventListener(J,t)}recsUnitRender(t){this.removeEventListener(Y,t)}recsUnitView(t){this.removeEventListener(K,t)}referrerUrl(t){this.removeEventListener(Q,t)}removeFromCart(t){this.removeEventListener(X,t)}removeFromRequisitionList(t){this.removeEventListener(Z,t)}searchCategoryClick(t){this.removeEventListener(tt,t)}searchProductClick(t){this.removeEventListener(et,t)}searchRequestSent(t){this.removeEventListener(nt,t)}searchResponseReceived(t){this.removeEventListener(rt,t)}searchResultsView(t){this.removeEventListener(ot,t)}categoryResultsView(t){this.removeEventListener(it,t)}searchSuggestionClick(t){this.removeEventListener(st,t)}shoppingCartView(t){this.removeEventListener(at,t)}signIn(t){this.removeEventListener(ct,t)}signOut(t){this.removeEventListener(ut,t)}updateCart(t){this.removeEventListener(ft,t)}}const pt=new class{constructor(){this.context=new O,this.publish=new lt,this.subscribe=new ht,this.unsubscribe=new dt,window.adobeDataLayer=window.adobeDataLayer||[],window.postMessage("magento-storefront-events-sdk","*")}}})(),r.default})()));
|
|
@@ -6,6 +6,7 @@ export default class PublishManager extends Base {
|
|
|
6
6
|
addToRequisitionList(context?: CustomContext): void;
|
|
7
7
|
createAccount(context?: CustomContext): void;
|
|
8
8
|
createRequisitionList(context?: CustomContext): void;
|
|
9
|
+
deleteRequisitionList(context?: CustomContext): void;
|
|
9
10
|
custom(context?: CustomContext): void;
|
|
10
11
|
customUrl(context?: CustomContext): void;
|
|
11
12
|
editAccount(context?: CustomContext): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublishManager.d.ts","sourceRoot":"","sources":["../../src/PublishManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EACH,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,sBAAsB,EACzB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,IAAI;IAC5C,SAAS,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI;IAIxC,oBAAoB,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI;IAInD,aAAa,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI;IAI5C,qBAAqB,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI;IAIpD,MAAM,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI;IAIrC,SAAS,CAAC,OAAO,CAAC,E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AE,gBAAgB,CAAC,cAAc,CAAC,EAC9C,UAAU,EAAE,sBAAsB,CAAC,YAAY,CAAC,EAChD,OAAO,CAAC,EAAE,aAAa,GACxB,IAAI;IAQP,gBAAgB,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI;IAI/C,MAAM,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI;IAIrC,OAAO,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI;IAItC,UAAU,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI;CAG5C"}
|
|
@@ -5,6 +5,7 @@ export default class SubscribeManager extends Base {
|
|
|
5
5
|
addToRequisitionList(handler: EventHandler, options?: ListenerOptions): void;
|
|
6
6
|
createAccount(handler: EventHandler, options?: ListenerOptions): void;
|
|
7
7
|
createRequisitionList(handler: EventHandler, options?: ListenerOptions): void;
|
|
8
|
+
deleteRequisitionList(handler: EventHandler, options?: ListenerOptions): void;
|
|
8
9
|
custom(handler: EventHandler, options?: ListenerOptions): void;
|
|
9
10
|
customUrl(handler: EventHandler, options?: ListenerOptions): void;
|
|
10
11
|
editAccount(handler: EventHandler, options?: ListenerOptions): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubscribeManager.d.ts","sourceRoot":"","sources":["../../src/SubscribeManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE/D,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,IAAI;IAC9C,SAAS,CAAC,OAAO,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,IAAI;IAIjE,oBAAoB,CAAC,OAAO,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,IAAI;IAI5E,aAAa,CAAC,OAAO,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,eAAe,G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,IAAI;IAIlD,gBAAgB,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;IAI7C,MAAM,CAAC,OAAO,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,IAAI;IAI9D,OAAO,CAAC,OAAO,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,IAAI;IAI/D,UAAU,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;CAG1C"}
|
|
@@ -5,6 +5,7 @@ export default class UnsubscribeManager extends Base {
|
|
|
5
5
|
addToRequisitionList(handler: EventHandler): void;
|
|
6
6
|
createAccount(handler: EventHandler): void;
|
|
7
7
|
createRequisitionList(handler: EventHandler): void;
|
|
8
|
+
deleteRequisitionList(handler: EventHandler): void;
|
|
8
9
|
custom(handler: EventHandler): void;
|
|
9
10
|
customUrl(handler: EventHandler): void;
|
|
10
11
|
editAccount(handler: EventHandler): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnsubscribeManager.d.ts","sourceRoot":"","sources":["../../src/UnsubscribeManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,IAAI;IAChD,SAAS,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;IAItC,oBAAoB,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;IAIjD,aAAa,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;IAI1C,qBAAqB,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;IAIlD,MAAM,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;IAInC,SAAS,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;IAItC,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;IAIxC,eAAe,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;IAI5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AInD,aAAa,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;IAI1C,eAAe,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;IAI5C,oBAAoB,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;IAIjD,cAAc,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;IAI3C,YAAY,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;IAIzC,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;IAIxC,cAAc,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;IAI3C,yBAAyB,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;IAItD,mBAAmB,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;IAIhD,kBAAkB,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;IAI/C,iBAAiB,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;IAI9C,sBAAsB,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;IAInD,iBAAiB,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;IAI9C,mBAAmB,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;IAIhD,qBAAqB,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;IAIlD,gBAAgB,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;IAI7C,MAAM,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;IAInC,OAAO,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;IAIpC,UAAU,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;CAG1C"}
|
package/dist/types/events.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ declare const events: {
|
|
|
3
3
|
readonly ADD_TO_REQUISITION_LIST: "add-to-requisition-list";
|
|
4
4
|
readonly CREATE_ACCOUNT: "create-account";
|
|
5
5
|
readonly CREATE_REQUISITION_LIST: "create-requisition-list";
|
|
6
|
+
readonly DELETE_REQUISITION_LIST: "delete-requisition-list";
|
|
6
7
|
readonly CUSTOM: "commerce-custom";
|
|
7
8
|
readonly CUSTOM_URL: "custom-url";
|
|
8
9
|
readonly DATA_LAYER_CHANGE: "adobeDataLayer:change";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/events.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/events.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCF,CAAC;AAEX,eAAe,MAAM,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CustomContext, Context } from "./contexts";
|
|
2
2
|
import events from "../events";
|
|
3
|
-
export declare type EventName = typeof events.ADD_TO_CART | typeof events.ADD_TO_REQUISITION_LIST | typeof events.CREATE_ACCOUNT | typeof events.CREATE_REQUISITION_LIST | typeof events.CUSTOM | typeof events.CUSTOM_URL | typeof events.DATA_LAYER_CHANGE | typeof events.DATA_LAYER_EVENT | typeof events.EDIT_ACCOUNT | typeof events.INITIATE_CHECKOUT | typeof events.OPEN_CART | typeof events.PAGE_ACTIVITY_SUMMARY | typeof events.PAGE_VIEW | typeof events.PLACE_ORDER | typeof events.PRODUCT_PAGE_VIEW | typeof events.RECS_ITEM_CLICK | typeof events.RECS_ITEM_ADD_TO_CART_CLICK | typeof events.RECS_REQUEST_SENT | typeof events.RECS_RESPONSE_RECEIVED | typeof events.RECS_UNIT_RENDER | typeof events.RECS_UNIT_VIEW | typeof events.REFERRER_URL | typeof events.REMOVE_FROM_CART | typeof events.REMOVE_FROM_REQUISITION_LIST | typeof events.SEARCH_CATEGORY_CLICK | typeof events.SEARCH_PRODUCT_CLICK | typeof events.SEARCH_REQUEST_SENT | typeof events.SEARCH_RESPONSE_RECEIVED | typeof events.SEARCH_RESULTS_VIEW | typeof events.CATEGORY_RESULTS_VIEW | typeof events.SEARCH_SUGGESTION_CLICK | typeof events.SHOPPING_CART_VIEW | typeof events.SIGN_IN | typeof events.SIGN_OUT | typeof events.UPDATE_CART;
|
|
3
|
+
export declare type EventName = typeof events.ADD_TO_CART | typeof events.ADD_TO_REQUISITION_LIST | typeof events.CREATE_ACCOUNT | typeof events.CREATE_REQUISITION_LIST | typeof events.DELETE_REQUISITION_LIST | typeof events.CUSTOM | typeof events.CUSTOM_URL | typeof events.DATA_LAYER_CHANGE | typeof events.DATA_LAYER_EVENT | typeof events.EDIT_ACCOUNT | typeof events.INITIATE_CHECKOUT | typeof events.OPEN_CART | typeof events.PAGE_ACTIVITY_SUMMARY | typeof events.PAGE_VIEW | typeof events.PLACE_ORDER | typeof events.PRODUCT_PAGE_VIEW | typeof events.RECS_ITEM_CLICK | typeof events.RECS_ITEM_ADD_TO_CART_CLICK | typeof events.RECS_REQUEST_SENT | typeof events.RECS_RESPONSE_RECEIVED | typeof events.RECS_UNIT_RENDER | typeof events.RECS_UNIT_VIEW | typeof events.REFERRER_URL | typeof events.REMOVE_FROM_CART | typeof events.REMOVE_FROM_REQUISITION_LIST | typeof events.SEARCH_CATEGORY_CLICK | typeof events.SEARCH_PRODUCT_CLICK | typeof events.SEARCH_REQUEST_SENT | typeof events.SEARCH_RESPONSE_RECEIVED | typeof events.SEARCH_RESULTS_VIEW | typeof events.CATEGORY_RESULTS_VIEW | typeof events.SEARCH_SUGGESTION_CLICK | typeof events.SHOPPING_CART_VIEW | typeof events.SIGN_IN | typeof events.SIGN_OUT | typeof events.UPDATE_CART;
|
|
4
4
|
export declare type Event = {
|
|
5
5
|
event: EventName;
|
|
6
6
|
eventInfo: Context & CustomContext;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/types/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,MAAM,MAAM,WAAW,CAAC;AAE/B,oBAA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C,qBAAqB,GACnC,OAAO,MAAM,CAAC,oBAAoB,GAClC,OAAO,MAAM,CAAC,mBAAmB,GACjC,OAAO,MAAM,CAAC,wBAAwB,GACtC,OAAO,MAAM,CAAC,mBAAmB,GACjC,OAAO,MAAM,CAAC,qBAAqB,GACnC,OAAO,MAAM,CAAC,uBAAuB,GACrC,OAAO,MAAM,CAAC,kBAAkB,GAChC,OAAO,MAAM,CAAC,OAAO,GACrB,OAAO,MAAM,CAAC,QAAQ,GACtB,OAAO,MAAM,CAAC,WAAW,CAAC;AAEhC,oBAAY,KAAK,GAAG;IAChB,KAAK,EAAE,SAAS,CAAC;IACjB,SAAS,EAAE,OAAO,GAAG,aAAa,CAAC;CACtC,CAAC;AAEF,oBAAY,YAAY,GAAG,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;AAElD,oBAAY,eAAe,GAAG;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;CACrC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/magento-storefront-events-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "SDK for working with events on an Adobe Commerce storefront",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"type": "git",
|
|
18
18
|
"url": "git+https://github.com/adobe/commerce-events"
|
|
19
19
|
},
|
|
20
|
-
"homepage": "https://github.com/adobe/commerce-events/tree/main/packages/
|
|
20
|
+
"homepage": "https://github.com/adobe/commerce-events/tree/main/packages/storefront-events-sdk#readme",
|
|
21
21
|
"bugs": {
|
|
22
22
|
"url": "https://github.com/adobe/commerce-events/issues"
|
|
23
23
|
},
|