@walkeros/web-destination-piwikpro 2.0.1 → 2.1.1

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.
@@ -41,189 +41,240 @@ var push = {
41
41
  }
42
42
  };
43
43
 
44
- // src/examples/events.ts
45
- var events_exports = {};
46
- __export(events_exports, {
44
+ // src/examples/step.ts
45
+ var step_exports = {};
46
+ __export(step_exports, {
47
+ cartUpdate: () => cartUpdate,
47
48
  ecommerceAddToCart: () => ecommerceAddToCart,
48
- ecommerceCartUpdate: () => ecommerceCartUpdate,
49
49
  ecommerceOrder: () => ecommerceOrder,
50
- ecommerceProductDetailView: () => ecommerceProductDetailView
50
+ productDetailView: () => productDetailView
51
51
  });
52
- import { getEvent } from "@walkeros/core";
53
- function getProduct(entity) {
54
- return {
55
- sku: entity.data.id,
56
- name: entity.data.name,
57
- price: entity.data.price,
58
- quantity: 1,
59
- variant: entity.data.color,
60
- customDimensions: {
61
- 1: entity.data.size
52
+ import { getEvent, isObject } from "@walkeros/core";
53
+ var ecommerceOrder = {
54
+ in: getEvent("order complete", { timestamp: 1700000300 }),
55
+ mapping: {
56
+ name: "ecommerceOrder",
57
+ data: {
58
+ set: [
59
+ {
60
+ loop: [
61
+ "nested",
62
+ {
63
+ condition: (entity) => isObject(entity) && entity.entity === "product",
64
+ map: {
65
+ sku: "data.id",
66
+ name: "data.name",
67
+ price: "data.price",
68
+ quantity: { value: 1 },
69
+ variant: { key: "data.color" },
70
+ customDimensions: {
71
+ map: {
72
+ 1: "data.size"
73
+ }
74
+ }
75
+ }
76
+ }
77
+ ]
78
+ },
79
+ {
80
+ map: {
81
+ orderId: "data.id",
82
+ grandTotal: "data.total",
83
+ tax: "data.taxes",
84
+ shipping: "data.shipping"
85
+ }
86
+ },
87
+ {
88
+ map: {
89
+ currencyCode: { value: "EUR" }
90
+ }
91
+ }
92
+ ]
62
93
  }
63
- };
64
- }
65
- function ecommerceOrder() {
66
- const event = getEvent("order complete");
67
- return [
94
+ },
95
+ out: [
68
96
  [
69
97
  "ecommerceOrder",
70
- event.nested.filter((item) => item.entity === "product").map(getProduct),
98
+ [
99
+ {
100
+ sku: "ers",
101
+ name: "Everyday Ruck Snack",
102
+ price: 420,
103
+ quantity: 1,
104
+ variant: "black",
105
+ customDimensions: { 1: "l" }
106
+ },
107
+ {
108
+ sku: "cc",
109
+ name: "Cool Cap",
110
+ price: 42,
111
+ quantity: 1,
112
+ variant: void 0,
113
+ customDimensions: { 1: "one size" }
114
+ }
115
+ ],
71
116
  {
72
- orderId: event.data.id,
73
- grandTotal: event.data.total,
74
- tax: event.data.taxes,
75
- shipping: event.data.shipping
117
+ orderId: "0rd3r1d",
118
+ grandTotal: 555,
119
+ tax: 73.76,
120
+ shipping: 5.22
76
121
  },
77
122
  { currencyCode: "EUR" }
78
123
  ]
79
- ];
80
- }
81
- function ecommerceAddToCart() {
82
- const event = getEvent("product add");
83
- return [
84
- ["ecommerceAddToCart", [getProduct(event), ,], { currencyCode: "EUR" }]
85
- ];
86
- }
87
- function ecommerceProductDetailView() {
88
- const event = getEvent("product view");
89
- return [
90
- [
91
- "ecommerceProductDetailView",
92
- [getProduct(event), ,],
93
- { currencyCode: "EUR" }
94
- ]
95
- ];
96
- }
97
- function ecommerceCartUpdate() {
98
- const event = getEvent("cart view");
99
- return [
100
- [
101
- "ecommerceCartUpdate",
102
- event.nested.filter((item) => item.entity === "product").map(getProduct),
103
- event.data.value,
104
- { currencyCode: "EUR" }
105
- ]
106
- ];
107
- }
108
-
109
- // src/examples/mapping.ts
110
- var mapping_exports = {};
111
- __export(mapping_exports, {
112
- config: () => config,
113
- ecommerceAddToCart: () => ecommerceAddToCart2,
114
- ecommerceCartUpdate: () => ecommerceCartUpdate2,
115
- ecommerceOrder: () => ecommerceOrder2,
116
- ecommerceProductDetailView: () => ecommerceProductDetailView2
117
- });
118
- import { isObject } from "@walkeros/core";
119
- var productMap = {
120
- sku: "data.id",
121
- name: "data.name",
122
- price: "data.price",
123
- quantity: { value: 1 },
124
- variant: { key: "data.color" },
125
- customDimensions: {
126
- map: {
127
- 1: "data.size"
128
- }
129
- }
124
+ ]
130
125
  };
131
- var ecommerceOrder2 = {
132
- name: "ecommerceOrder",
133
- data: {
134
- set: [
135
- {
136
- loop: [
137
- "nested",
138
- {
139
- condition: (entity) => isObject(entity) && entity.entity === "product",
140
- map: productMap
126
+ var ecommerceAddToCart = {
127
+ in: getEvent("product add", { timestamp: 1700000301 }),
128
+ mapping: {
129
+ name: "ecommerceAddToCart",
130
+ data: {
131
+ set: [
132
+ {
133
+ set: [
134
+ {
135
+ map: {
136
+ sku: "data.id",
137
+ name: "data.name",
138
+ price: "data.price",
139
+ quantity: { value: 1 },
140
+ variant: { key: "data.color" },
141
+ customDimensions: {
142
+ map: {
143
+ 1: "data.size"
144
+ }
145
+ }
146
+ }
147
+ }
148
+ ]
149
+ },
150
+ {
151
+ map: {
152
+ currencyCode: { value: "EUR" }
141
153
  }
142
- ]
143
- },
144
- {
145
- map: {
146
- orderId: "data.id",
147
- grandTotal: "data.total",
148
- tax: "data.taxes",
149
- shipping: "data.shipping"
150
154
  }
151
- },
152
- {
153
- map: {
154
- currencyCode: { value: "EUR" }
155
+ ]
156
+ }
157
+ },
158
+ out: [
159
+ [
160
+ "ecommerceAddToCart",
161
+ [
162
+ {
163
+ sku: "ers",
164
+ name: "Everyday Ruck Snack",
165
+ price: 420,
166
+ quantity: 1,
167
+ variant: "black",
168
+ customDimensions: { 1: "l" }
155
169
  }
156
- }
170
+ ],
171
+ { currencyCode: "EUR" }
157
172
  ]
158
- }
173
+ ]
159
174
  };
160
- var ecommerceAddToCart2 = {
161
- name: "ecommerceAddToCart",
162
- data: {
163
- set: [
164
- {
165
- set: [
166
- {
167
- map: productMap
175
+ var productDetailView = {
176
+ in: getEvent("product view", { timestamp: 1700000302 }),
177
+ mapping: {
178
+ name: "ecommerceProductDetailView",
179
+ data: {
180
+ set: [
181
+ {
182
+ set: [
183
+ {
184
+ map: {
185
+ sku: "data.id",
186
+ name: "data.name",
187
+ price: "data.price",
188
+ quantity: { value: 1 },
189
+ variant: { key: "data.color" },
190
+ customDimensions: {
191
+ map: {
192
+ 1: "data.size"
193
+ }
194
+ }
195
+ }
196
+ }
197
+ ]
198
+ },
199
+ {
200
+ map: {
201
+ currencyCode: { value: "EUR" }
168
202
  }
169
- ]
170
- },
171
- {
172
- map: {
173
- currencyCode: { value: "EUR" }
174
203
  }
175
- }
176
- ]
177
- }
178
- };
179
- var ecommerceProductDetailView2 = {
180
- name: "ecommerceProductDetailView",
181
- data: {
182
- set: [
183
- {
184
- set: [
185
- {
186
- map: productMap
187
- }
188
- ]
189
- },
190
- {
191
- map: {
192
- currencyCode: { value: "EUR" }
204
+ ]
205
+ }
206
+ },
207
+ out: [
208
+ [
209
+ "ecommerceProductDetailView",
210
+ [
211
+ {
212
+ sku: "ers",
213
+ name: "Everyday Ruck Snack",
214
+ price: 420,
215
+ quantity: 1,
216
+ variant: "black",
217
+ customDimensions: { 1: "l" }
193
218
  }
194
- }
219
+ ],
220
+ { currencyCode: "EUR" }
195
221
  ]
196
- }
222
+ ]
197
223
  };
198
- var ecommerceCartUpdate2 = {
199
- name: "ecommerceCartUpdate",
200
- data: {
201
- set: [
202
- {
203
- loop: [
204
- "nested",
205
- {
206
- condition: (entity) => isObject(entity) && entity.entity === "product",
207
- map: productMap
224
+ var cartUpdate = {
225
+ in: getEvent("cart view", { timestamp: 1700000303 }),
226
+ mapping: {
227
+ name: "ecommerceCartUpdate",
228
+ data: {
229
+ set: [
230
+ {
231
+ loop: [
232
+ "nested",
233
+ {
234
+ condition: (entity) => isObject(entity) && entity.entity === "product",
235
+ map: {
236
+ sku: "data.id",
237
+ name: "data.name",
238
+ price: "data.price",
239
+ quantity: { value: 1 },
240
+ variant: { key: "data.color" },
241
+ customDimensions: {
242
+ map: {
243
+ 1: "data.size"
244
+ }
245
+ }
246
+ }
247
+ }
248
+ ]
249
+ },
250
+ "data.value",
251
+ {
252
+ map: {
253
+ currencyCode: { value: "EUR" }
208
254
  }
209
- ]
210
- },
211
- "data.value",
212
- {
213
- map: {
214
- currencyCode: { value: "EUR" }
215
255
  }
216
- }
256
+ ]
257
+ }
258
+ },
259
+ out: [
260
+ [
261
+ "ecommerceCartUpdate",
262
+ [
263
+ {
264
+ sku: "ers",
265
+ name: "Everyday Ruck Snack",
266
+ price: 420,
267
+ quantity: 1,
268
+ variant: "black",
269
+ customDimensions: { 1: "l" }
270
+ }
271
+ ],
272
+ 840,
273
+ { currencyCode: "EUR" }
217
274
  ]
218
- }
219
- };
220
- var config = {
221
- order: { complete: ecommerceOrder2 },
222
- product: { add: ecommerceAddToCart2, view: ecommerceProductDetailView2 },
223
- cart: { view: ecommerceCartUpdate2 }
275
+ ]
224
276
  };
225
277
  export {
226
278
  env_exports as env,
227
- events_exports as events,
228
- mapping_exports as mapping
279
+ step_exports as step
229
280
  };
@@ -1 +1 @@
1
- "use strict";var Destination=(()=>{var t=Object.defineProperty,e=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,r={};((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})(r,{DestinationPiwikPro:()=>m,default:()=>h,destinationPiwikPro:()=>O});var i=Object.defineProperty;((t,e)=>{for(var n in e)i(t,n,{get:e[n],enumerable:!0})})({},{Level:()=>c});var a,c=((a=c||{})[a.ERROR=0]="ERROR",a[a.INFO=1]="INFO",a[a.DEBUG=2]="DEBUG",a);function s(t){return Array.isArray(t)}function u(t){return void 0!==t}function l(t){return"object"==typeof t&&null!==t&&!s(t)&&"[object Object]"===Object.prototype.toString.call(t)}function f(t){return"string"==typeof t}function p(t,e="",n){const o=e.split(".");let r=t;for(let t=0;t<o.length;t++){const e=o[t];if("*"===e&&s(r)){const e=o.slice(t+1).join("."),i=[];for(const t of r){const o=p(t,e,n);i.push(o)}return i}if(r=r instanceof Object?r[e]:void 0,!r)break}return u(r)?r:n}function d(t){return function(t){return"boolean"==typeof t}(t)||f(t)||function(t){return"number"==typeof t&&!Number.isNaN(t)}(t)||!u(t)||s(t)&&t.every(d)||l(t)&&Object.values(t).every(d)}function w(t){return d(t)?t:void 0}function y(t,e,n){return async function(...o){try{return await t(...o)}catch(t){if(!e)return;return await e(t)}finally{await(null==n?void 0:n())}}}async function v(t,e={},n={}){var o;if(!u(t))return;const r=l(t)&&t.consent||n.consent||(null==(o=n.collector)?void 0:o.consent),i=s(e)?e:[e];for(const e of i){const o=await y(g)(t,e,{...n,consent:r});if(u(o))return o}}async function g(t,e,n={}){const{collector:o,consent:r}=n;return(s(e)?e:[e]).reduce(async(e,i)=>{const a=await e;if(a)return a;const c=f(i)?{key:i}:i;if(!Object.keys(c).length)return;const{condition:l,consent:d,fn:b,key:m,loop:O,map:j,set:h,validate:k,value:P}=c;if(l&&!await y(l)(t,i,o))return;if(d&&!function(t,e={},n={}){const o={...e,...n},r={};let i=void 0===t;return Object.keys(o).forEach(e=>{o[e]&&(r[e]=!0,t&&t[e]&&(i=!0))}),!!i&&r}(d,r))return P;let I=u(P)?P:t;if(b&&(I=await y(b)(t,i,n)),m&&(I=p(t,m,P)),O){const[e,o]=O,r="this"===e?[t]:await v(t,e,n);s(r)&&(I=(await Promise.all(r.map(t=>v(t,o,n)))).filter(u))}else j?I=await Object.entries(j).reduce(async(e,[o,r])=>{const i=await e,a=await v(t,r,n);return u(a)&&(i[o]=a),i},Promise.resolve({})):h&&(I=await Promise.all(h.map(e=>g(t,e,n))));k&&!await y(k)(I)&&(I=void 0);const E=w(I);return u(E)?E:w(P)},Promise.resolve(void 0))}function b(t){return{window:"undefined"!=typeof window?window:globalThis.window,document:"undefined"!=typeof document?document:globalThis.document,...t}}var m={},O={type:"piwikpro",config:{},init({config:t,env:e,logger:n}){const{window:o}=b(e),r=o,{settings:i,loadScript:a}=t,{appId:c,url:s}=i||{};c||n.throw("Config settings appId missing"),s||n.throw("Config settings url missing"),r._paq=r._paq||[];const u=r._paq.push;a&&(!function(t,e){const{document:n}=b(e),o=n,r=o.createElement("script");r.type="text/javascript",r.src=t+"ppms.js",r.async=!0,r.defer=!0,o.head.appendChild(r)}(s,e),u(["setTrackerUrl",s+"ppms.php"]),u(["setSiteId",c])),!1!==(null==i?void 0:i.linkTracking)&&u(["enableLinkTracking"])},async push(t,{rule:e={},data:n,env:o}){const{window:r}=b(o),i=r._paq.push;if("page view"===t.name&&!e.settings)return void i(["trackPageView",await v(t,"data.title")]);const a=e.settings||{},c=s(n)?n:[n];if(i([t.name,...c]),a.goalId){const e=a.goalValue?v(t,a.goalValue):void 0;i(["trackGoal",a.goalId,e])}}};var j,h=O;return j=r,((r,i,a,c)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let s of n(i))o.call(r,s)||s===a||t(r,s,{get:()=>i[s],enumerable:!(c=e(i,s))||c.enumerable});return r})(t({},"__esModule",{value:!0}),j)})();
1
+ "use strict";var Destination=(()=>{var t=Object.defineProperty,e=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,r={};((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})(r,{DestinationPiwikPro:()=>m,default:()=>h,destinationPiwikPro:()=>O});var i=Object.defineProperty;((t,e)=>{for(var n in e)i(t,n,{get:e[n],enumerable:!0})})({},{Level:()=>c});var a,c=((a=c||{})[a.ERROR=0]="ERROR",a[a.WARN=1]="WARN",a[a.INFO=2]="INFO",a[a.DEBUG=3]="DEBUG",a);function s(t){return Array.isArray(t)}function u(t){return void 0!==t}function l(t){return"object"==typeof t&&null!==t&&!s(t)&&"[object Object]"===Object.prototype.toString.call(t)}function f(t){return"string"==typeof t}function p(t,e="",n){const o=e.split(".");let r=t;for(let t=0;t<o.length;t++){const e=o[t];if("*"===e&&s(r)){const e=o.slice(t+1).join("."),i=[];for(const t of r){const o=p(t,e,n);i.push(o)}return i}if(r=r instanceof Object?r[e]:void 0,!r)break}return u(r)?r:n}function d(t){return function(t){return"boolean"==typeof t}(t)||f(t)||function(t){return"number"==typeof t&&!Number.isNaN(t)}(t)||!u(t)||s(t)&&t.every(d)||l(t)&&Object.values(t).every(d)}function w(t){return d(t)?t:void 0}function y(t,e,n){return async function(...o){try{return await t(...o)}catch(t){if(!e)return;return await e(t)}finally{await(null==n?void 0:n())}}}async function v(t,e={},n={}){var o;if(!u(t))return;const r=l(t)&&t.consent||n.consent||(null==(o=n.collector)?void 0:o.consent),i=s(e)?e:[e];for(const e of i){const o=await y(g)(t,e,{...n,consent:r});if(u(o))return o}}async function g(t,e,n={}){const{collector:o,consent:r}=n;return(s(e)?e:[e]).reduce(async(e,i)=>{const a=await e;if(a)return a;const c=f(i)?{key:i}:i;if(!Object.keys(c).length)return;const{condition:l,consent:d,fn:b,key:m,loop:O,map:j,set:h,validate:k,value:P}=c;if(l&&!await y(l)(t,i,o))return;if(d&&!function(t,e={},n={}){const o={...e,...n},r={};let i=void 0===t;return Object.keys(o).forEach(e=>{o[e]&&(r[e]=!0,t&&t[e]&&(i=!0))}),!!i&&r}(d,r))return P;let N=u(P)?P:t;if(b&&(N=await y(b)(t,i,n)),m&&(N=p(t,m,P)),O){const[e,o]=O,r="this"===e?[t]:await v(t,e,n);s(r)&&(N=(await Promise.all(r.map(t=>v(t,o,n)))).filter(u))}else j?N=await Object.entries(j).reduce(async(e,[o,r])=>{const i=await e,a=await v(t,r,n);return u(a)&&(i[o]=a),i},Promise.resolve({})):h&&(N=await Promise.all(h.map(e=>g(t,e,n))));k&&!await y(k)(N)&&(N=void 0);const R=w(N);return u(R)?R:w(P)},Promise.resolve(void 0))}function b(t){return{window:"undefined"!=typeof window?window:globalThis.window,document:"undefined"!=typeof document?document:globalThis.document,...t}}var m={},O={type:"piwikpro",config:{},init({config:t,env:e,logger:n}){const{window:o}=b(e),r=o,{settings:i,loadScript:a}=t,{appId:c,url:s}=i||{};c||n.throw("Config settings appId missing"),s||n.throw("Config settings url missing"),r._paq=r._paq||[];const u=r._paq.push;a&&(!function(t,e){const{document:n}=b(e),o=n,r=o.createElement("script");r.type="text/javascript",r.src=t+"ppms.js",r.async=!0,r.defer=!0,o.head.appendChild(r)}(s,e),u(["setTrackerUrl",s+"ppms.php"]),u(["setSiteId",c])),!1!==(null==i?void 0:i.linkTracking)&&u(["enableLinkTracking"])},async push(t,{rule:e={},data:n,env:o}){const{window:r}=b(o),i=r._paq.push;if("page view"===t.name&&!e.settings)return void i(["trackPageView",await v(t,"data.title")]);const a=e.settings||{},c=s(n)?n:[n];if(i([t.name,...c]),a.goalId){const e=a.goalValue?v(t,a.goalValue):void 0;i(["trackGoal",a.goalId,e])}}};var j,h=O;return j=r,((r,i,a,c)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let s of n(i))o.call(r,s)||s===a||t(r,s,{get:()=>i[s],enumerable:!(c=e(i,s))||c.enumerable});return r})(t({},"__esModule",{value:!0}),j)})();
package/dist/index.es5.js CHANGED
@@ -1 +1 @@
1
- "use strict";function _array_like_to_array(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _array_with_holes(e){if(Array.isArray(e))return e}function _array_without_holes(e){if(Array.isArray(e))return _array_like_to_array(e)}function asyncGeneratorStep(e,t,r,n,o,a,i){try{var u=e[a](i),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function _async_to_generator(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(e){asyncGeneratorStep(a,n,o,i,u,"next",e)}function u(e){asyncGeneratorStep(a,n,o,i,u,"throw",e)}i(void 0)})}}function _define_property(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _instanceof(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function _iterable_to_array(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _iterable_to_array_limit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,u=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){u=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(u)throw o}}return a}}function _non_iterable_rest(){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 _non_iterable_spread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _object_spread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){_define_property(e,t,r[t])})}return e}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _object_spread_props(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function _sliced_to_array(e,t){return _array_with_holes(e)||_iterable_to_array_limit(e,t)||_unsupported_iterable_to_array(e,t)||_non_iterable_rest()}function _to_consumable_array(e){return _array_without_holes(e)||_iterable_to_array(e)||_unsupported_iterable_to_array(e)||_non_iterable_spread()}function _type_of(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function _unsupported_iterable_to_array(e,t){if(e){if("string"==typeof e)return _array_like_to_array(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_array_like_to_array(e,t):void 0}}function _ts_generator(e,t){var r,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(i,"next",{value:c(0)}),u(i,"throw",{value:c(1)}),u(i,"return",{value:c(2)}),"function"==typeof Symbol&&u(i,Symbol.iterator,{value:function(){return this}}),i;function c(u){return function(c){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}var Destination=function(){var e=function(e){return Array.isArray(e)},t=function(e){return void 0!==e},r=function(t){return"object"==(void 0===t?"undefined":_type_of(t))&&null!==t&&!e(t)&&"[object Object]"===Object.prototype.toString.call(t)},n=function(e){return"string"==typeof e},o=function(e){return v(e)?e:void 0},a=function(e,t,r){return function(){for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return _async_to_generator(function(){var n;return _ts_generator(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,4,6]),[4,e.apply(void 0,_to_consumable_array(o))];case 1:case 3:return[2,a.sent()];case 2:return n=a.sent(),t?[4,t(n)]:[2];case 4:return[4,null==r?void 0:r()];case 5:return a.sent(),[7];case 6:return[2]}})})()}},i=function(n){return _async_to_generator(function(n){var o,i,u,c,l,s,f,y,_,p,b,d,v,g=arguments;return _ts_generator(this,function(m){switch(m.label){case 0:if(o=g.length>1&&void 0!==g[1]?g[1]:{},i=g.length>2&&void 0!==g[2]?g[2]:{},!t(n))return[2];c=r(n)&&n.consent||i.consent||(null===(u=i.collector)||void 0===u?void 0:u.consent),l=e(o)?o:[o],s=!0,f=!1,y=void 0,m.label=1;case 1:m.trys.push([1,6,7,8]),_=l[Symbol.iterator](),m.label=2;case 2:return(s=(p=_.next()).done)?[3,5]:(b=p.value,[4,a(h)(n,b,_object_spread_props(_object_spread({},i),{consent:c}))]);case 3:if(d=m.sent(),t(d))return[2,d];m.label=4;case 4:return s=!0,[3,2];case 5:return[3,8];case 6:return v=m.sent(),f=!0,y=v,[3,8];case 7:try{s||null==_.return||_.return()}finally{if(f)throw y}return[7];case 8:return[2]}})}).apply(this,arguments)},u=function(e){return _object_spread({window:"undefined"!=typeof window?window:globalThis.window,document:"undefined"!=typeof document?document:globalThis.document},e)},c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,y={};!function(e,t){for(var r in t)c(e,r,{get:t[r],enumerable:!0})}(y,{DestinationPiwikPro:function(){return m},default:function(){return O},destinationPiwikPro:function(){return w}});var _=Object.defineProperty;!function(e,t){for(var r in t)_(e,r,{get:t[r],enumerable:!0})}({},{Level:function(){return b}});var p,b=((p=b||{})[p.ERROR=0]="ERROR",p[p.INFO=1]="INFO",p[p.DEBUG=2]="DEBUG",p);function d(r){for(var n=arguments.length>2?arguments[2]:void 0,o=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").split("."),a=r,i=0;i<o.length;i++){var u=o[i];if("*"===u&&e(a)){var c=o.slice(i+1).join("."),l=[],s=!0,f=!1,y=void 0;try{for(var _,p=a[Symbol.iterator]();!(s=(_=p.next()).done);s=!0){var b=d(_.value,c,n);l.push(b)}}catch(e){f=!0,y=e}finally{try{s||null==p.return||p.return()}finally{if(f)throw y}}return l}if(!(a=_instanceof(a,Object)?a[u]:void 0))break}return t(a)?a:n}function v(o){return function(e){return"boolean"==typeof e}(o)||n(o)||function(e){return"number"==typeof e&&!Number.isNaN(e)}(o)||!t(o)||e(o)&&o.every(v)||r(o)&&Object.values(o).every(v)}function h(r,u){return _async_to_generator(function(r,u){var c,l,s,f=arguments;return _ts_generator(this,function(y){return l=(c=f.length>2&&void 0!==f[2]?f[2]:{}).collector,s=c.consent,[2,(e(u)?u:[u]).reduce(function(u,f){return _async_to_generator(function(){var y,_,p,b,v,g,m,w,O,j,P,S,k,I,A,E,D,x,T,G,N;return _ts_generator(this,function(R){switch(R.label){case 0:return[4,u];case 1:return(y=R.sent())?[2,y]:(_=n(f)?{key:f}:f,Object.keys(_).length?(p=_.condition,b=_.consent,v=_.fn,g=_.key,m=_.loop,w=_.map,O=_.set,j=_.validate,P=_.value,(S=p)?[4,a(p)(r,f,l)]:[3,3]):[2]);case 2:S=!R.sent(),R.label=3;case 3:return S?[2]:b&&!function(e){var t=_object_spread({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),r={},n=void 0===e;return Object.keys(t).forEach(function(o){t[o]&&(r[o]=!0,e&&e[o]&&(n=!0))}),!!n&&r}(b,s)?[2,P]:(k=t(P)?P:r,v?[4,a(v)(r,f,c)]:[3,5]);case 4:k=R.sent(),R.label=5;case 5:return g&&(k=d(r,g,P)),m?(I=_sliced_to_array(m,2),A=I[0],E=I[1],"this"!==A?[3,6]:(x=[r],[3,8])):[3,11];case 6:return[4,i(r,A,c)];case 7:x=R.sent(),R.label=8;case 8:return e(D=x)?[4,Promise.all(D.map(function(e){return i(e,E,c)}))]:[3,10];case 9:k=R.sent().filter(t),R.label=10;case 10:return[3,17];case 11:return w?[4,Object.entries(w).reduce(function(e,n){var o=_sliced_to_array(n,2),a=o[0],u=o[1];return _async_to_generator(function(){var n,o;return _ts_generator(this,function(l){switch(l.label){case 0:return[4,e];case 1:return n=l.sent(),[4,i(r,u,c)];case 2:return o=l.sent(),[2,(t(o)&&(n[a]=o),n)]}})})()},Promise.resolve({}))]:[3,13];case 12:return k=R.sent(),[3,16];case 13:return(T=O)?[4,Promise.all(O.map(function(e){return h(r,e,c)}))]:[3,15];case 14:T=k=R.sent(),R.label=15;case 15:R.label=16;case 16:R.label=17;case 17:return(G=j)?[4,a(j)(k)]:[3,19];case 18:G=!R.sent(),R.label=19;case 19:return G&&(k=void 0),N=o(k),[2,t(N)?N:o(P)]}})})()},Promise.resolve(void 0))]})}).apply(this,arguments)}var g,m={},w={type:"piwikpro",config:{},init:function(e){var t=e.config,r=e.env,n=e.logger,o=u(r).window,a=t.settings,i=t.loadScript,c=a||{},l=c.appId,s=c.url;l||n.throw("Config settings appId missing"),s||n.throw("Config settings url missing"),o._paq=o._paq||[];var f=o._paq.push;i&&(!function(e,t){var r=u(t).document,n=r.createElement("script");n.type="text/javascript",n.src=e+"ppms.js",n.async=!0,n.defer=!0,r.head.appendChild(n)}(s,r),f(["setTrackerUrl",s+"ppms.php"]),f(["setSiteId",l])),!1!==(null==a?void 0:a.linkTracking)&&f(["enableLinkTracking"])},push:function(t,r){return _async_to_generator(function(t,r){var n,o,a,c,l,s,f,y,_,p,b;return _ts_generator(this,function(d){switch(d.label){case 0:return n=r.rule,o=void 0===n?{}:n,a=r.data,c=r.env,l=u(c),s=l.window,f=s._paq.push,"page view"!==t.name||o.settings?[3,2]:(y=["trackPageView"],[4,i(t,"data.title")]);case 1:return f.apply(void 0,[y.concat([d.sent()])]),[2];case 2:return _=o.settings||{},p=e(a)?a:[a],f([t.name].concat(_to_consumable_array(p))),_.goalId&&(b=_.goalValue?i(t,_.goalValue):void 0,f(["trackGoal",_.goalId,b])),[2]}})}).apply(this,arguments)}},O=w;return g=y,function(e,t,r,n){if(t&&"object"===(void 0===t?"undefined":_type_of(t))||"function"==typeof t){var o=!0,a=!1,i=void 0;try{for(var u,y=function(){var o=u.value;f.call(e,o)||o===r||c(e,o,{get:function(){return t[o]},enumerable:!(n=l(t,o))||n.enumerable})},_=s(t)[Symbol.iterator]();!(o=(u=_.next()).done);o=!0)y()}catch(e){a=!0,i=e}finally{try{o||null==_.return||_.return()}finally{if(a)throw i}}}return e}(c({},"__esModule",{value:!0}),g)}();
1
+ "use strict";function _array_like_to_array(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _array_with_holes(e){if(Array.isArray(e))return e}function _array_without_holes(e){if(Array.isArray(e))return _array_like_to_array(e)}function asyncGeneratorStep(e,t,r,n,o,a,i){try{var u=e[a](i),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function _async_to_generator(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(e){asyncGeneratorStep(a,n,o,i,u,"next",e)}function u(e){asyncGeneratorStep(a,n,o,i,u,"throw",e)}i(void 0)})}}function _define_property(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _instanceof(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function _iterable_to_array(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _iterable_to_array_limit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,u=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){u=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(u)throw o}}return a}}function _non_iterable_rest(){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 _non_iterable_spread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _object_spread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){_define_property(e,t,r[t])})}return e}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _object_spread_props(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function _sliced_to_array(e,t){return _array_with_holes(e)||_iterable_to_array_limit(e,t)||_unsupported_iterable_to_array(e,t)||_non_iterable_rest()}function _to_consumable_array(e){return _array_without_holes(e)||_iterable_to_array(e)||_unsupported_iterable_to_array(e)||_non_iterable_spread()}function _type_of(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function _unsupported_iterable_to_array(e,t){if(e){if("string"==typeof e)return _array_like_to_array(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_array_like_to_array(e,t):void 0}}function _ts_generator(e,t){var r,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(i,"next",{value:c(0)}),u(i,"throw",{value:c(1)}),u(i,"return",{value:c(2)}),"function"==typeof Symbol&&u(i,Symbol.iterator,{value:function(){return this}}),i;function c(u){return function(c){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}var Destination=function(){var e=function(e){return Array.isArray(e)},t=function(e){return void 0!==e},r=function(t){return"object"==(void 0===t?"undefined":_type_of(t))&&null!==t&&!e(t)&&"[object Object]"===Object.prototype.toString.call(t)},n=function(e){return"string"==typeof e},o=function(e){return v(e)?e:void 0},a=function(e,t,r){return function(){for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return _async_to_generator(function(){var n;return _ts_generator(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,4,6]),[4,e.apply(void 0,_to_consumable_array(o))];case 1:case 3:return[2,a.sent()];case 2:return n=a.sent(),t?[4,t(n)]:[2];case 4:return[4,null==r?void 0:r()];case 5:return a.sent(),[7];case 6:return[2]}})})()}},i=function(n){return _async_to_generator(function(n){var o,i,u,c,l,s,f,y,_,p,b,d,v,g=arguments;return _ts_generator(this,function(m){switch(m.label){case 0:if(o=g.length>1&&void 0!==g[1]?g[1]:{},i=g.length>2&&void 0!==g[2]?g[2]:{},!t(n))return[2];c=r(n)&&n.consent||i.consent||(null===(u=i.collector)||void 0===u?void 0:u.consent),l=e(o)?o:[o],s=!0,f=!1,y=void 0,m.label=1;case 1:m.trys.push([1,6,7,8]),_=l[Symbol.iterator](),m.label=2;case 2:return(s=(p=_.next()).done)?[3,5]:(b=p.value,[4,a(h)(n,b,_object_spread_props(_object_spread({},i),{consent:c}))]);case 3:if(d=m.sent(),t(d))return[2,d];m.label=4;case 4:return s=!0,[3,2];case 5:return[3,8];case 6:return v=m.sent(),f=!0,y=v,[3,8];case 7:try{s||null==_.return||_.return()}finally{if(f)throw y}return[7];case 8:return[2]}})}).apply(this,arguments)},u=function(e){return _object_spread({window:"undefined"!=typeof window?window:globalThis.window,document:"undefined"!=typeof document?document:globalThis.document},e)},c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,y={};!function(e,t){for(var r in t)c(e,r,{get:t[r],enumerable:!0})}(y,{DestinationPiwikPro:function(){return m},default:function(){return O},destinationPiwikPro:function(){return w}});var _=Object.defineProperty;!function(e,t){for(var r in t)_(e,r,{get:t[r],enumerable:!0})}({},{Level:function(){return b}});var p,b=((p=b||{})[p.ERROR=0]="ERROR",p[p.WARN=1]="WARN",p[p.INFO=2]="INFO",p[p.DEBUG=3]="DEBUG",p);function d(r){for(var n=arguments.length>2?arguments[2]:void 0,o=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").split("."),a=r,i=0;i<o.length;i++){var u=o[i];if("*"===u&&e(a)){var c=o.slice(i+1).join("."),l=[],s=!0,f=!1,y=void 0;try{for(var _,p=a[Symbol.iterator]();!(s=(_=p.next()).done);s=!0){var b=d(_.value,c,n);l.push(b)}}catch(e){f=!0,y=e}finally{try{s||null==p.return||p.return()}finally{if(f)throw y}}return l}if(!(a=_instanceof(a,Object)?a[u]:void 0))break}return t(a)?a:n}function v(o){return function(e){return"boolean"==typeof e}(o)||n(o)||function(e){return"number"==typeof e&&!Number.isNaN(e)}(o)||!t(o)||e(o)&&o.every(v)||r(o)&&Object.values(o).every(v)}function h(r,u){return _async_to_generator(function(r,u){var c,l,s,f=arguments;return _ts_generator(this,function(y){return l=(c=f.length>2&&void 0!==f[2]?f[2]:{}).collector,s=c.consent,[2,(e(u)?u:[u]).reduce(function(u,f){return _async_to_generator(function(){var y,_,p,b,v,g,m,w,O,j,P,S,k,I,A,E,D,x,N,R,T;return _ts_generator(this,function(G){switch(G.label){case 0:return[4,u];case 1:return(y=G.sent())?[2,y]:(_=n(f)?{key:f}:f,Object.keys(_).length?(p=_.condition,b=_.consent,v=_.fn,g=_.key,m=_.loop,w=_.map,O=_.set,j=_.validate,P=_.value,(S=p)?[4,a(p)(r,f,l)]:[3,3]):[2]);case 2:S=!G.sent(),G.label=3;case 3:return S?[2]:b&&!function(e){var t=_object_spread({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),r={},n=void 0===e;return Object.keys(t).forEach(function(o){t[o]&&(r[o]=!0,e&&e[o]&&(n=!0))}),!!n&&r}(b,s)?[2,P]:(k=t(P)?P:r,v?[4,a(v)(r,f,c)]:[3,5]);case 4:k=G.sent(),G.label=5;case 5:return g&&(k=d(r,g,P)),m?(I=_sliced_to_array(m,2),A=I[0],E=I[1],"this"!==A?[3,6]:(x=[r],[3,8])):[3,11];case 6:return[4,i(r,A,c)];case 7:x=G.sent(),G.label=8;case 8:return e(D=x)?[4,Promise.all(D.map(function(e){return i(e,E,c)}))]:[3,10];case 9:k=G.sent().filter(t),G.label=10;case 10:return[3,17];case 11:return w?[4,Object.entries(w).reduce(function(e,n){var o=_sliced_to_array(n,2),a=o[0],u=o[1];return _async_to_generator(function(){var n,o;return _ts_generator(this,function(l){switch(l.label){case 0:return[4,e];case 1:return n=l.sent(),[4,i(r,u,c)];case 2:return o=l.sent(),[2,(t(o)&&(n[a]=o),n)]}})})()},Promise.resolve({}))]:[3,13];case 12:return k=G.sent(),[3,16];case 13:return(N=O)?[4,Promise.all(O.map(function(e){return h(r,e,c)}))]:[3,15];case 14:N=k=G.sent(),G.label=15;case 15:G.label=16;case 16:G.label=17;case 17:return(R=j)?[4,a(j)(k)]:[3,19];case 18:R=!G.sent(),G.label=19;case 19:return R&&(k=void 0),T=o(k),[2,t(T)?T:o(P)]}})})()},Promise.resolve(void 0))]})}).apply(this,arguments)}var g,m={},w={type:"piwikpro",config:{},init:function(e){var t=e.config,r=e.env,n=e.logger,o=u(r).window,a=t.settings,i=t.loadScript,c=a||{},l=c.appId,s=c.url;l||n.throw("Config settings appId missing"),s||n.throw("Config settings url missing"),o._paq=o._paq||[];var f=o._paq.push;i&&(!function(e,t){var r=u(t).document,n=r.createElement("script");n.type="text/javascript",n.src=e+"ppms.js",n.async=!0,n.defer=!0,r.head.appendChild(n)}(s,r),f(["setTrackerUrl",s+"ppms.php"]),f(["setSiteId",l])),!1!==(null==a?void 0:a.linkTracking)&&f(["enableLinkTracking"])},push:function(t,r){return _async_to_generator(function(t,r){var n,o,a,c,l,s,f,y,_,p,b;return _ts_generator(this,function(d){switch(d.label){case 0:return n=r.rule,o=void 0===n?{}:n,a=r.data,c=r.env,l=u(c),s=l.window,f=s._paq.push,"page view"!==t.name||o.settings?[3,2]:(y=["trackPageView"],[4,i(t,"data.title")]);case 1:return f.apply(void 0,[y.concat([d.sent()])]),[2];case 2:return _=o.settings||{},p=e(a)?a:[a],f([t.name].concat(_to_consumable_array(p))),_.goalId&&(b=_.goalValue?i(t,_.goalValue):void 0,f(["trackGoal",_.goalId,b])),[2]}})}).apply(this,arguments)}},O=w;return g=y,function(e,t,r,n){if(t&&"object"===(void 0===t?"undefined":_type_of(t))||"function"==typeof t){var o=!0,a=!1,i=void 0;try{for(var u,y=function(){var o=u.value;f.call(e,o)||o===r||c(e,o,{get:function(){return t[o]},enumerable:!(n=l(t,o))||n.enumerable})},_=s(t)[Symbol.iterator]();!(o=(u=_.next()).done);o=!0)y()}catch(e){a=!0,i=e}finally{try{o||null==_.return||_.return()}finally{if(a)throw i}}}return e}(c({},"__esModule",{value:!0}),g)}();