@pendo/agent 2.280.1 → 2.281.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dom.esm.js +1070 -1018
- package/dist/pendo.module.js +202 -90
- package/dist/pendo.module.min.js +6 -6
- package/package.json +1 -1
package/dist/dom.esm.js
CHANGED
|
@@ -2085,368 +2085,773 @@ var underscore = {exports: {}};
|
|
|
2085
2085
|
var underscoreExports = underscore.exports;
|
|
2086
2086
|
var _ = /*@__PURE__*/getDefaultExportFromCjs(underscoreExports);
|
|
2087
2087
|
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2088
|
+
/*
|
|
2089
|
+
* @license MIT - https://github.com/taylorhakes/promise-polyfill
|
|
2090
|
+
*/
|
|
2091
|
+
// Modified to not affect global environment
|
|
2092
|
+
var Promise$1 = window.Promise;
|
|
2093
|
+
|
|
2094
|
+
Promise$1 = (function (global, factory) {
|
|
2095
|
+
var nativePromise = global.Promise;
|
|
2096
|
+
if (typeof nativePromise !== 'function' || !/native/.test(nativePromise)) {
|
|
2097
|
+
return factory();
|
|
2098
|
+
}
|
|
2099
|
+
|
|
2100
|
+
return nativePromise;
|
|
2101
|
+
}(window, (function () {
|
|
2102
|
+
/**
|
|
2103
|
+
* @this {Promise}
|
|
2104
|
+
*/
|
|
2105
|
+
function finallyConstructor(callback) {
|
|
2106
|
+
var constructor = this.constructor;
|
|
2107
|
+
return this.then(
|
|
2108
|
+
function(value) {
|
|
2109
|
+
// @ts-ignore
|
|
2110
|
+
return constructor.resolve(callback()).then(function() {
|
|
2111
|
+
return value;
|
|
2112
|
+
});
|
|
2113
|
+
},
|
|
2114
|
+
function(reason) {
|
|
2115
|
+
// @ts-ignore
|
|
2116
|
+
return constructor.resolve(callback()).then(function() {
|
|
2117
|
+
// @ts-ignore
|
|
2118
|
+
return constructor.reject(reason);
|
|
2119
|
+
});
|
|
2105
2120
|
}
|
|
2106
|
-
|
|
2121
|
+
);
|
|
2107
2122
|
}
|
|
2108
2123
|
|
|
2109
|
-
|
|
2124
|
+
function allSettled(arr) {
|
|
2125
|
+
var P = this;
|
|
2126
|
+
return new P(function(resolve, reject) {
|
|
2127
|
+
if (!(arr && typeof arr.length !== 'undefined')) {
|
|
2128
|
+
return reject(
|
|
2129
|
+
new TypeError(
|
|
2130
|
+
typeof arr +
|
|
2131
|
+
' ' +
|
|
2132
|
+
arr +
|
|
2133
|
+
' is not iterable(cannot read property Symbol(Symbol.iterator))'
|
|
2134
|
+
)
|
|
2135
|
+
);
|
|
2136
|
+
}
|
|
2137
|
+
var args = Array.prototype.slice.call(arr);
|
|
2138
|
+
if (args.length === 0) return resolve([]);
|
|
2139
|
+
var remaining = args.length;
|
|
2110
2140
|
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2141
|
+
function res(i, val) {
|
|
2142
|
+
if (val && (typeof val === 'object' || typeof val === 'function')) {
|
|
2143
|
+
var then = val.then;
|
|
2144
|
+
if (typeof then === 'function') {
|
|
2145
|
+
then.call(
|
|
2146
|
+
val,
|
|
2147
|
+
function(val) {
|
|
2148
|
+
res(i, val);
|
|
2149
|
+
},
|
|
2150
|
+
function(e) {
|
|
2151
|
+
args[i] = { status: 'rejected', reason: e };
|
|
2152
|
+
if (--remaining === 0) {
|
|
2153
|
+
resolve(args);
|
|
2154
|
+
}
|
|
2155
|
+
}
|
|
2156
|
+
);
|
|
2157
|
+
return;
|
|
2158
|
+
}
|
|
2159
|
+
}
|
|
2160
|
+
args[i] = { status: 'fulfilled', value: val };
|
|
2161
|
+
if (--remaining === 0) {
|
|
2162
|
+
resolve(args);
|
|
2163
|
+
}
|
|
2164
|
+
}
|
|
2124
2165
|
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
rbuggyQSA,
|
|
2131
|
-
rbuggyMatches,
|
|
2132
|
-
matches,
|
|
2133
|
-
contains,
|
|
2166
|
+
for (var i = 0; i < args.length; i++) {
|
|
2167
|
+
res(i, args[i]);
|
|
2168
|
+
}
|
|
2169
|
+
});
|
|
2170
|
+
}
|
|
2134
2171
|
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
dirruns = 0,
|
|
2139
|
-
done = 0,
|
|
2140
|
-
classCache = createCache(),
|
|
2141
|
-
tokenCache = createCache(),
|
|
2142
|
-
compilerCache = createCache(),
|
|
2143
|
-
nonnativeSelectorCache = createCache(),
|
|
2144
|
-
sortOrder = function( a, b ) {
|
|
2145
|
-
if ( a === b ) {
|
|
2146
|
-
hasDuplicate = true;
|
|
2147
|
-
}
|
|
2148
|
-
return 0;
|
|
2149
|
-
},
|
|
2172
|
+
// Store setTimeout reference so promise-polyfill will be unaffected by
|
|
2173
|
+
// other code modifying setTimeout (like sinon.useFakeTimers())
|
|
2174
|
+
var setTimeoutFunc = setTimeout$1;
|
|
2150
2175
|
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
pop = arr.pop,
|
|
2155
|
-
pushNative = arr.push,
|
|
2156
|
-
push = arr.push,
|
|
2157
|
-
slice = arr.slice,
|
|
2176
|
+
function isArray(x) {
|
|
2177
|
+
return Boolean(x && typeof x.length !== 'undefined');
|
|
2178
|
+
}
|
|
2158
2179
|
|
|
2159
|
-
|
|
2160
|
-
// https://jsperf.com/thor-indexof-vs-for/5
|
|
2161
|
-
indexOf = function( list, elem ) {
|
|
2162
|
-
var i = 0,
|
|
2163
|
-
len = list.length;
|
|
2164
|
-
for ( ; i < len; i++ ) {
|
|
2165
|
-
if ( list[ i ] === elem ) {
|
|
2166
|
-
return i;
|
|
2167
|
-
}
|
|
2168
|
-
}
|
|
2169
|
-
return -1;
|
|
2170
|
-
},
|
|
2180
|
+
function noop() {}
|
|
2171
2181
|
|
|
2172
|
-
|
|
2173
|
-
|
|
2182
|
+
// Polyfill for Function.prototype.bind
|
|
2183
|
+
function bind(fn, thisArg) {
|
|
2184
|
+
return function() {
|
|
2185
|
+
fn.apply(thisArg, arguments);
|
|
2186
|
+
};
|
|
2187
|
+
}
|
|
2174
2188
|
|
|
2175
|
-
|
|
2189
|
+
/**
|
|
2190
|
+
* @constructor
|
|
2191
|
+
* @param {Function} fn
|
|
2192
|
+
*/
|
|
2193
|
+
function Promise(fn) {
|
|
2194
|
+
if (!(this instanceof Promise))
|
|
2195
|
+
throw new TypeError('Promises must be constructed via new');
|
|
2196
|
+
if (typeof fn !== 'function') throw new TypeError('not a function');
|
|
2197
|
+
/** @type {!number} */
|
|
2198
|
+
this._state = 0;
|
|
2199
|
+
/** @type {!boolean} */
|
|
2200
|
+
this._handled = false;
|
|
2201
|
+
/** @type {Promise|undefined} */
|
|
2202
|
+
this._value = undefined;
|
|
2203
|
+
/** @type {!Array<!Function>} */
|
|
2204
|
+
this._deferreds = [];
|
|
2176
2205
|
|
|
2177
|
-
|
|
2178
|
-
|
|
2206
|
+
doResolve(fn, this);
|
|
2207
|
+
}
|
|
2179
2208
|
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2209
|
+
function handle(self, deferred) {
|
|
2210
|
+
while (self._state === 3) {
|
|
2211
|
+
self = self._value;
|
|
2212
|
+
}
|
|
2213
|
+
if (self._state === 0) {
|
|
2214
|
+
self._deferreds.push(deferred);
|
|
2215
|
+
return;
|
|
2216
|
+
}
|
|
2217
|
+
self._handled = true;
|
|
2218
|
+
Promise._immediateFn(function() {
|
|
2219
|
+
var cb = self._state === 1 ? deferred.onFulfilled : deferred.onRejected;
|
|
2220
|
+
if (cb === null) {
|
|
2221
|
+
(self._state === 1 ? resolve : reject)(deferred.promise, self._value);
|
|
2222
|
+
return;
|
|
2223
|
+
}
|
|
2224
|
+
var ret;
|
|
2225
|
+
try {
|
|
2226
|
+
ret = cb(self._value);
|
|
2227
|
+
} catch (e) {
|
|
2228
|
+
reject(deferred.promise, e);
|
|
2229
|
+
return;
|
|
2230
|
+
}
|
|
2231
|
+
resolve(deferred.promise, ret);
|
|
2232
|
+
});
|
|
2233
|
+
}
|
|
2183
2234
|
|
|
2184
|
-
|
|
2185
|
-
|
|
2235
|
+
function resolve(self, newValue) {
|
|
2236
|
+
try {
|
|
2237
|
+
// Promise Resolution Procedure: https://github.com/promises-aplus/promises-spec#the-promise-resolution-procedure
|
|
2238
|
+
if (newValue === self)
|
|
2239
|
+
throw new TypeError('A promise cannot be resolved with itself.');
|
|
2240
|
+
if (
|
|
2241
|
+
newValue &&
|
|
2242
|
+
(typeof newValue === 'object' || typeof newValue === 'function')
|
|
2243
|
+
) {
|
|
2244
|
+
var then = newValue.then;
|
|
2245
|
+
if (newValue instanceof Promise) {
|
|
2246
|
+
self._state = 3;
|
|
2247
|
+
self._value = newValue;
|
|
2248
|
+
finale(self);
|
|
2249
|
+
return;
|
|
2250
|
+
} else if (typeof then === 'function') {
|
|
2251
|
+
doResolve(bind(then, newValue), self);
|
|
2252
|
+
return;
|
|
2253
|
+
}
|
|
2254
|
+
}
|
|
2255
|
+
self._state = 1;
|
|
2256
|
+
self._value = newValue;
|
|
2257
|
+
finale(self);
|
|
2258
|
+
} catch (e) {
|
|
2259
|
+
reject(self, e);
|
|
2260
|
+
}
|
|
2261
|
+
}
|
|
2186
2262
|
|
|
2187
|
-
|
|
2188
|
-
|
|
2263
|
+
function reject(self, newValue) {
|
|
2264
|
+
self._state = 2;
|
|
2265
|
+
self._value = newValue;
|
|
2266
|
+
finale(self);
|
|
2267
|
+
}
|
|
2189
2268
|
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
// 1. quoted (capture 3; capture 4 or capture 5)
|
|
2199
|
-
"('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" +
|
|
2200
|
-
|
|
2201
|
-
// 2. simple (capture 6)
|
|
2202
|
-
"((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" +
|
|
2203
|
-
|
|
2204
|
-
// 3. anything else (capture 2)
|
|
2205
|
-
".*" +
|
|
2206
|
-
")\\)|)",
|
|
2207
|
-
|
|
2208
|
-
// Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
|
|
2209
|
-
rwhitespace = new RegExp( whitespace + "+", "g" ),
|
|
2210
|
-
rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" +
|
|
2211
|
-
whitespace + "+$", "g" ),
|
|
2269
|
+
function finale(self) {
|
|
2270
|
+
if (self._state === 2 && self._deferreds.length === 0) {
|
|
2271
|
+
Promise._immediateFn(function() {
|
|
2272
|
+
if (!self._handled) {
|
|
2273
|
+
Promise._unhandledRejectionFn(self._value);
|
|
2274
|
+
}
|
|
2275
|
+
});
|
|
2276
|
+
}
|
|
2212
2277
|
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2278
|
+
for (var i = 0, len = self._deferreds.length; i < len; i++) {
|
|
2279
|
+
handle(self, self._deferreds[i]);
|
|
2280
|
+
}
|
|
2281
|
+
self._deferreds = null;
|
|
2282
|
+
}
|
|
2217
2283
|
|
|
2218
|
-
|
|
2219
|
-
|
|
2284
|
+
/**
|
|
2285
|
+
* @constructor
|
|
2286
|
+
*/
|
|
2287
|
+
function Handler(onFulfilled, onRejected, promise) {
|
|
2288
|
+
this.onFulfilled = typeof onFulfilled === 'function' ? onFulfilled : null;
|
|
2289
|
+
this.onRejected = typeof onRejected === 'function' ? onRejected : null;
|
|
2290
|
+
this.promise = promise;
|
|
2291
|
+
}
|
|
2220
2292
|
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2293
|
+
/**
|
|
2294
|
+
* Take a potentially misbehaving resolver function and make sure
|
|
2295
|
+
* onFulfilled and onRejected are only called once.
|
|
2296
|
+
*
|
|
2297
|
+
* Makes no guarantees about asynchrony.
|
|
2298
|
+
*/
|
|
2299
|
+
function doResolve(fn, self) {
|
|
2300
|
+
var done = false;
|
|
2301
|
+
try {
|
|
2302
|
+
fn(
|
|
2303
|
+
function(value) {
|
|
2304
|
+
if (done) return;
|
|
2305
|
+
done = true;
|
|
2306
|
+
resolve(self, value);
|
|
2307
|
+
},
|
|
2308
|
+
function(reason) {
|
|
2309
|
+
if (done) return;
|
|
2310
|
+
done = true;
|
|
2311
|
+
reject(self, reason);
|
|
2312
|
+
}
|
|
2313
|
+
);
|
|
2314
|
+
} catch (ex) {
|
|
2315
|
+
if (done) return;
|
|
2316
|
+
done = true;
|
|
2317
|
+
reject(self, ex);
|
|
2318
|
+
}
|
|
2319
|
+
}
|
|
2231
2320
|
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + whitespace +
|
|
2236
|
-
"*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" )
|
|
2237
|
-
},
|
|
2321
|
+
Promise.prototype['catch'] = function(onRejected) {
|
|
2322
|
+
return this.then(null, onRejected);
|
|
2323
|
+
};
|
|
2238
2324
|
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2325
|
+
Promise.prototype.then = function(onFulfilled, onRejected) {
|
|
2326
|
+
// @ts-ignore
|
|
2327
|
+
var prom = new this.constructor(noop);
|
|
2242
2328
|
|
|
2243
|
-
|
|
2329
|
+
handle(this, new Handler(onFulfilled, onRejected, prom));
|
|
2330
|
+
return prom;
|
|
2331
|
+
};
|
|
2244
2332
|
|
|
2245
|
-
|
|
2246
|
-
rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
|
|
2333
|
+
Promise.prototype['finally'] = finallyConstructor;
|
|
2247
2334
|
|
|
2248
|
-
|
|
2335
|
+
Promise.all = function(arr) {
|
|
2336
|
+
return new Promise(function(resolve, reject) {
|
|
2337
|
+
if (!isArray(arr)) {
|
|
2338
|
+
return reject(new TypeError('Promise.all accepts an array'));
|
|
2339
|
+
}
|
|
2249
2340
|
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
funescape = function( escape, nonHex ) {
|
|
2254
|
-
var high = "0x" + escape.slice( 1 ) - 0x10000;
|
|
2341
|
+
var args = Array.prototype.slice.call(arr);
|
|
2342
|
+
if (args.length === 0) return resolve([]);
|
|
2343
|
+
var remaining = args.length;
|
|
2255
2344
|
|
|
2256
|
-
|
|
2345
|
+
function res(i, val) {
|
|
2346
|
+
try {
|
|
2347
|
+
if (val && (typeof val === 'object' || typeof val === 'function')) {
|
|
2348
|
+
var then = val.then;
|
|
2349
|
+
if (typeof then === 'function') {
|
|
2350
|
+
then.call(
|
|
2351
|
+
val,
|
|
2352
|
+
function(val) {
|
|
2353
|
+
res(i, val);
|
|
2354
|
+
},
|
|
2355
|
+
reject
|
|
2356
|
+
);
|
|
2357
|
+
return;
|
|
2358
|
+
}
|
|
2359
|
+
}
|
|
2360
|
+
args[i] = val;
|
|
2361
|
+
if (--remaining === 0) {
|
|
2362
|
+
resolve(args);
|
|
2363
|
+
}
|
|
2364
|
+
} catch (ex) {
|
|
2365
|
+
reject(ex);
|
|
2366
|
+
}
|
|
2367
|
+
}
|
|
2257
2368
|
|
|
2258
|
-
|
|
2259
|
-
|
|
2369
|
+
for (var i = 0; i < args.length; i++) {
|
|
2370
|
+
res(i, args[i]);
|
|
2371
|
+
}
|
|
2372
|
+
});
|
|
2373
|
+
};
|
|
2260
2374
|
|
|
2261
|
-
|
|
2262
|
-
// Support: IE <=11+
|
|
2263
|
-
// For values outside the Basic Multilingual Plane (BMP), manually construct a
|
|
2264
|
-
// surrogate pair
|
|
2265
|
-
high < 0 ?
|
|
2266
|
-
String.fromCharCode( high + 0x10000 ) :
|
|
2267
|
-
String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );
|
|
2268
|
-
},
|
|
2375
|
+
Promise.allSettled = allSettled;
|
|
2269
2376
|
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
if ( asCodePoint ) {
|
|
2377
|
+
Promise.resolve = function(value) {
|
|
2378
|
+
if (value && typeof value === 'object' && value.constructor === Promise) {
|
|
2379
|
+
return value;
|
|
2380
|
+
}
|
|
2275
2381
|
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2382
|
+
return new Promise(function(resolve) {
|
|
2383
|
+
resolve(value);
|
|
2384
|
+
});
|
|
2385
|
+
};
|
|
2280
2386
|
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2387
|
+
Promise.reject = function(value) {
|
|
2388
|
+
return new Promise(function(resolve, reject) {
|
|
2389
|
+
reject(value);
|
|
2390
|
+
});
|
|
2391
|
+
};
|
|
2285
2392
|
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2393
|
+
Promise.race = function(arr) {
|
|
2394
|
+
return new Promise(function(resolve, reject) {
|
|
2395
|
+
if (!isArray(arr)) {
|
|
2396
|
+
return reject(new TypeError('Promise.race accepts an array'));
|
|
2397
|
+
}
|
|
2289
2398
|
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
setDocument();
|
|
2296
|
-
},
|
|
2399
|
+
for (var i = 0, len = arr.length; i < len; i++) {
|
|
2400
|
+
Promise.resolve(arr[i]).then(resolve, reject);
|
|
2401
|
+
}
|
|
2402
|
+
});
|
|
2403
|
+
};
|
|
2297
2404
|
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2405
|
+
// Use polyfill for setImmediate for performance gains
|
|
2406
|
+
Promise._immediateFn =
|
|
2407
|
+
// @ts-ignore
|
|
2408
|
+
(typeof setImmediate === 'function' &&
|
|
2409
|
+
function(fn) {
|
|
2410
|
+
// @ts-ignore
|
|
2411
|
+
setImmediate(fn);
|
|
2412
|
+
}) ||
|
|
2413
|
+
function(fn) {
|
|
2414
|
+
setTimeoutFunc(fn, 0);
|
|
2415
|
+
};
|
|
2304
2416
|
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
);
|
|
2417
|
+
Promise._unhandledRejectionFn = function _unhandledRejectionFn(err) {
|
|
2418
|
+
if (typeof console !== 'undefined' && console) {
|
|
2419
|
+
console.warn('Possible Unhandled Promise Rejection:', err); // eslint-disable-line no-console
|
|
2420
|
+
}
|
|
2421
|
+
};
|
|
2311
2422
|
|
|
2312
|
-
|
|
2313
|
-
// Detect silently failing push.apply
|
|
2314
|
-
// eslint-disable-next-line no-unused-expressions
|
|
2315
|
-
arr[ preferredDoc.childNodes.length ].nodeType;
|
|
2316
|
-
} catch ( e ) {
|
|
2317
|
-
push = { apply: arr.length ?
|
|
2423
|
+
return Promise;
|
|
2318
2424
|
|
|
2319
|
-
|
|
2320
|
-
function( target, els ) {
|
|
2321
|
-
pushNative.apply( target, slice.call( els ) );
|
|
2322
|
-
} :
|
|
2425
|
+
})));
|
|
2323
2426
|
|
|
2324
|
-
|
|
2325
|
-
// Otherwise append directly
|
|
2326
|
-
function( target, els ) {
|
|
2327
|
-
var j = target.length,
|
|
2328
|
-
i = 0;
|
|
2427
|
+
var Promise$2 = Promise$1;
|
|
2329
2428
|
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2429
|
+
/******************************************************************************
|
|
2430
|
+
Copyright (c) Microsoft Corporation.
|
|
2431
|
+
|
|
2432
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
2433
|
+
purpose with or without fee is hereby granted.
|
|
2434
|
+
|
|
2435
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
2436
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
2437
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
2438
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
2439
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
2440
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
2441
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
2442
|
+
***************************************************************************** */
|
|
2443
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
2444
|
+
|
|
2445
|
+
var extendStatics = function(d, b) {
|
|
2446
|
+
extendStatics = Object.setPrototypeOf ||
|
|
2447
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
2448
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
2449
|
+
return extendStatics(d, b);
|
|
2450
|
+
};
|
|
2451
|
+
|
|
2452
|
+
function __extends(d, b) {
|
|
2453
|
+
if (typeof b !== "function" && b !== null)
|
|
2454
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
2455
|
+
extendStatics(d, b);
|
|
2456
|
+
function __() { this.constructor = d; }
|
|
2457
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
2458
|
+
}
|
|
2459
|
+
|
|
2460
|
+
function __generator(thisArg, body) {
|
|
2461
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
2462
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
2463
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
2464
|
+
function step(op) {
|
|
2465
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
2466
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
2467
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
2468
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
2469
|
+
switch (op[0]) {
|
|
2470
|
+
case 0: case 1: t = op; break;
|
|
2471
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
2472
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
2473
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
2474
|
+
default:
|
|
2475
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
2476
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
2477
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
2478
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
2479
|
+
if (t[2]) _.ops.pop();
|
|
2480
|
+
_.trys.pop(); continue;
|
|
2481
|
+
}
|
|
2482
|
+
op = body.call(thisArg, _);
|
|
2483
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
2484
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
2485
|
+
}
|
|
2486
|
+
}
|
|
2487
|
+
|
|
2488
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
2489
|
+
var e = new Error(message);
|
|
2490
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
2491
|
+
};
|
|
2340
2492
|
|
|
2341
|
-
|
|
2342
|
-
|
|
2493
|
+
var policy;
|
|
2494
|
+
var policyOptions = {
|
|
2495
|
+
'createScriptURL': function (str) { return str; },
|
|
2496
|
+
'createHTML': function (str) { return str; }
|
|
2497
|
+
};
|
|
2498
|
+
function getPolicy(pendo) {
|
|
2499
|
+
if (!policy) {
|
|
2500
|
+
if (pendo.trustedTypesPolicy) {
|
|
2501
|
+
policy = pendo.trustedTypesPolicy;
|
|
2502
|
+
}
|
|
2503
|
+
else if (window.trustedTypes && typeof window.trustedTypes.createPolicy === 'function') {
|
|
2504
|
+
policy = window.trustedTypes.createPolicy('pendo', policyOptions);
|
|
2505
|
+
}
|
|
2506
|
+
else {
|
|
2507
|
+
policy = policyOptions;
|
|
2508
|
+
}
|
|
2509
|
+
pendo.trustedTypesPolicy = policy;
|
|
2510
|
+
}
|
|
2511
|
+
return policy;
|
|
2512
|
+
}
|
|
2343
2513
|
|
|
2344
|
-
|
|
2514
|
+
var sizzle = {exports: {}};
|
|
2345
2515
|
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2516
|
+
(function (module) {
|
|
2517
|
+
( function( window ) {
|
|
2518
|
+
var i,
|
|
2519
|
+
support,
|
|
2520
|
+
Expr,
|
|
2521
|
+
getText,
|
|
2522
|
+
isXML,
|
|
2523
|
+
tokenize,
|
|
2524
|
+
compile,
|
|
2525
|
+
select,
|
|
2526
|
+
outermostContext,
|
|
2527
|
+
sortInput,
|
|
2528
|
+
hasDuplicate,
|
|
2349
2529
|
|
|
2350
|
-
|
|
2351
|
-
|
|
2530
|
+
// Local document vars
|
|
2531
|
+
setDocument,
|
|
2532
|
+
document,
|
|
2533
|
+
docElem,
|
|
2534
|
+
documentIsHTML,
|
|
2535
|
+
rbuggyQSA,
|
|
2536
|
+
rbuggyMatches,
|
|
2537
|
+
matches,
|
|
2538
|
+
contains,
|
|
2352
2539
|
|
|
2353
|
-
//
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2540
|
+
// Instance-specific data
|
|
2541
|
+
expando = "sizzle" + 1 * new Date(),
|
|
2542
|
+
preferredDoc = window.document,
|
|
2543
|
+
dirruns = 0,
|
|
2544
|
+
done = 0,
|
|
2545
|
+
classCache = createCache(),
|
|
2546
|
+
tokenCache = createCache(),
|
|
2547
|
+
compilerCache = createCache(),
|
|
2548
|
+
nonnativeSelectorCache = createCache(),
|
|
2549
|
+
sortOrder = function( a, b ) {
|
|
2550
|
+
if ( a === b ) {
|
|
2551
|
+
hasDuplicate = true;
|
|
2552
|
+
}
|
|
2553
|
+
return 0;
|
|
2554
|
+
},
|
|
2357
2555
|
|
|
2358
|
-
|
|
2556
|
+
// Instance methods
|
|
2557
|
+
hasOwn = ( {} ).hasOwnProperty,
|
|
2558
|
+
arr = [],
|
|
2559
|
+
pop = arr.pop,
|
|
2560
|
+
pushNative = arr.push,
|
|
2561
|
+
push = arr.push,
|
|
2562
|
+
slice = arr.slice,
|
|
2359
2563
|
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2564
|
+
// Use a stripped-down indexOf as it's faster than native
|
|
2565
|
+
// https://jsperf.com/thor-indexof-vs-for/5
|
|
2566
|
+
indexOf = function( list, elem ) {
|
|
2567
|
+
var i = 0,
|
|
2568
|
+
len = list.length;
|
|
2569
|
+
for ( ; i < len; i++ ) {
|
|
2570
|
+
if ( list[ i ] === elem ) {
|
|
2571
|
+
return i;
|
|
2572
|
+
}
|
|
2573
|
+
}
|
|
2574
|
+
return -1;
|
|
2575
|
+
},
|
|
2363
2576
|
|
|
2364
|
-
|
|
2365
|
-
|
|
2577
|
+
booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|" +
|
|
2578
|
+
"ismap|loop|multiple|open|readonly|required|scoped",
|
|
2366
2579
|
|
|
2367
|
-
|
|
2368
|
-
if ( nodeType === 9 ) {
|
|
2369
|
-
if ( ( elem = context.getElementById( m ) ) ) {
|
|
2580
|
+
// Regular expressions
|
|
2370
2581
|
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
// getElementById can match elements by name instead of ID
|
|
2374
|
-
if ( elem.id === m ) {
|
|
2375
|
-
results.push( elem );
|
|
2376
|
-
return results;
|
|
2377
|
-
}
|
|
2378
|
-
} else {
|
|
2379
|
-
return results;
|
|
2380
|
-
}
|
|
2582
|
+
// http://www.w3.org/TR/css3-selectors/#whitespace
|
|
2583
|
+
whitespace = "[\\x20\\t\\r\\n\\f]",
|
|
2381
2584
|
|
|
2382
|
-
|
|
2383
|
-
|
|
2585
|
+
// https://www.w3.org/TR/css-syntax-3/#ident-token-diagram
|
|
2586
|
+
identifier = "(?:\\\\[\\da-fA-F]{1,6}" + whitespace +
|
|
2587
|
+
"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",
|
|
2384
2588
|
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
// getElementById can match elements by name instead of ID
|
|
2388
|
-
if ( newContext && ( elem = newContext.getElementById( m ) ) &&
|
|
2389
|
-
contains( context, elem ) &&
|
|
2390
|
-
elem.id === m ) {
|
|
2589
|
+
// Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors
|
|
2590
|
+
attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace +
|
|
2391
2591
|
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
}
|
|
2395
|
-
}
|
|
2592
|
+
// Operator (capture 2)
|
|
2593
|
+
"*([*^$|!~]?=)" + whitespace +
|
|
2396
2594
|
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2595
|
+
// "Attribute values must be CSS identifiers [capture 5]
|
|
2596
|
+
// or strings [capture 3 or capture 4]"
|
|
2597
|
+
"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" +
|
|
2598
|
+
whitespace + "*\\]",
|
|
2401
2599
|
|
|
2402
|
-
|
|
2403
|
-
} else if ( ( m = match[ 3 ] ) && support.getElementsByClassName &&
|
|
2404
|
-
context.getElementsByClassName ) {
|
|
2600
|
+
pseudos = ":(" + identifier + ")(?:\\((" +
|
|
2405
2601
|
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
}
|
|
2602
|
+
// To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:
|
|
2603
|
+
// 1. quoted (capture 3; capture 4 or capture 5)
|
|
2604
|
+
"('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" +
|
|
2410
2605
|
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
!nonnativeSelectorCache[ selector + " " ] &&
|
|
2414
|
-
( !rbuggyQSA || !rbuggyQSA.test( selector ) ) &&
|
|
2606
|
+
// 2. simple (capture 6)
|
|
2607
|
+
"((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" +
|
|
2415
2608
|
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2609
|
+
// 3. anything else (capture 2)
|
|
2610
|
+
".*" +
|
|
2611
|
+
")\\)|)",
|
|
2419
2612
|
|
|
2420
|
-
|
|
2421
|
-
|
|
2613
|
+
// Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
|
|
2614
|
+
rwhitespace = new RegExp( whitespace + "+", "g" ),
|
|
2615
|
+
rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" +
|
|
2616
|
+
whitespace + "+$", "g" ),
|
|
2422
2617
|
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
// The technique has to be used as well when a leading combinator is used
|
|
2428
|
-
// as such selectors are not recognized by querySelectorAll.
|
|
2429
|
-
// Thanks to Andrew Dupont for this technique.
|
|
2430
|
-
if ( nodeType === 1 &&
|
|
2431
|
-
( rdescend.test( selector ) || rcombinators.test( selector ) ) ) {
|
|
2618
|
+
rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ),
|
|
2619
|
+
rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace +
|
|
2620
|
+
"*" ),
|
|
2621
|
+
rdescend = new RegExp( whitespace + "|>" ),
|
|
2432
2622
|
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
context;
|
|
2623
|
+
rpseudo = new RegExp( pseudos ),
|
|
2624
|
+
ridentifier = new RegExp( "^" + identifier + "$" ),
|
|
2436
2625
|
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2626
|
+
matchExpr = {
|
|
2627
|
+
"ID": new RegExp( "^#(" + identifier + ")" ),
|
|
2628
|
+
"CLASS": new RegExp( "^\\.(" + identifier + ")" ),
|
|
2629
|
+
"TAG": new RegExp( "^(" + identifier + "|[*])" ),
|
|
2630
|
+
"ATTR": new RegExp( "^" + attributes ),
|
|
2631
|
+
"PSEUDO": new RegExp( "^" + pseudos ),
|
|
2632
|
+
"CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" +
|
|
2633
|
+
whitespace + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" +
|
|
2634
|
+
whitespace + "*(\\d+)|))" + whitespace + "*\\)|)", "i" ),
|
|
2635
|
+
"bool": new RegExp( "^(?:" + booleans + ")$", "i" ),
|
|
2440
2636
|
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
}
|
|
2637
|
+
// For use in libraries implementing .is()
|
|
2638
|
+
// We use this for POS matching in `select`
|
|
2639
|
+
"needsContext": new RegExp( "^" + whitespace +
|
|
2640
|
+
"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + whitespace +
|
|
2641
|
+
"*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" )
|
|
2642
|
+
},
|
|
2448
2643
|
|
|
2449
|
-
|
|
2644
|
+
rhtml = /HTML$/i,
|
|
2645
|
+
rinputs = /^(?:input|select|textarea|button)$/i,
|
|
2646
|
+
rheader = /^h\d$/i,
|
|
2647
|
+
|
|
2648
|
+
rnative = /^[^{]+\{\s*\[native \w/,
|
|
2649
|
+
|
|
2650
|
+
// Easily-parseable/retrievable ID or TAG or CLASS selectors
|
|
2651
|
+
rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
|
|
2652
|
+
|
|
2653
|
+
rsibling = /[+~]/,
|
|
2654
|
+
|
|
2655
|
+
// CSS escapes
|
|
2656
|
+
// http://www.w3.org/TR/CSS21/syndata.html#escaped-characters
|
|
2657
|
+
runescape = new RegExp( "\\\\[\\da-fA-F]{1,6}" + whitespace + "?|\\\\([^\\r\\n\\f])", "g" ),
|
|
2658
|
+
funescape = function( escape, nonHex ) {
|
|
2659
|
+
var high = "0x" + escape.slice( 1 ) - 0x10000;
|
|
2660
|
+
|
|
2661
|
+
return nonHex ?
|
|
2662
|
+
|
|
2663
|
+
// Strip the backslash prefix from a non-hex escape sequence
|
|
2664
|
+
nonHex :
|
|
2665
|
+
|
|
2666
|
+
// Replace a hexadecimal escape sequence with the encoded Unicode code point
|
|
2667
|
+
// Support: IE <=11+
|
|
2668
|
+
// For values outside the Basic Multilingual Plane (BMP), manually construct a
|
|
2669
|
+
// surrogate pair
|
|
2670
|
+
high < 0 ?
|
|
2671
|
+
String.fromCharCode( high + 0x10000 ) :
|
|
2672
|
+
String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );
|
|
2673
|
+
},
|
|
2674
|
+
|
|
2675
|
+
// CSS string/identifier serialization
|
|
2676
|
+
// https://drafts.csswg.org/cssom/#common-serializing-idioms
|
|
2677
|
+
rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,
|
|
2678
|
+
fcssescape = function( ch, asCodePoint ) {
|
|
2679
|
+
if ( asCodePoint ) {
|
|
2680
|
+
|
|
2681
|
+
// U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER
|
|
2682
|
+
if ( ch === "\0" ) {
|
|
2683
|
+
return "\uFFFD";
|
|
2684
|
+
}
|
|
2685
|
+
|
|
2686
|
+
// Control characters and (dependent upon position) numbers get escaped as code points
|
|
2687
|
+
return ch.slice( 0, -1 ) + "\\" +
|
|
2688
|
+
ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " ";
|
|
2689
|
+
}
|
|
2690
|
+
|
|
2691
|
+
// Other potentially-special ASCII characters get backslash-escaped
|
|
2692
|
+
return "\\" + ch;
|
|
2693
|
+
},
|
|
2694
|
+
|
|
2695
|
+
// Used for iframes
|
|
2696
|
+
// See setDocument()
|
|
2697
|
+
// Removing the function wrapper causes a "Permission Denied"
|
|
2698
|
+
// error in IE
|
|
2699
|
+
unloadHandler = function() {
|
|
2700
|
+
setDocument();
|
|
2701
|
+
},
|
|
2702
|
+
|
|
2703
|
+
inDisabledFieldset = addCombinator(
|
|
2704
|
+
function( elem ) {
|
|
2705
|
+
return elem.disabled === true && elem.nodeName.toLowerCase() === "fieldset";
|
|
2706
|
+
},
|
|
2707
|
+
{ dir: "parentNode", next: "legend" }
|
|
2708
|
+
);
|
|
2709
|
+
|
|
2710
|
+
// Optimize for push.apply( _, NodeList )
|
|
2711
|
+
try {
|
|
2712
|
+
push.apply(
|
|
2713
|
+
( arr = slice.call( preferredDoc.childNodes ) ),
|
|
2714
|
+
preferredDoc.childNodes
|
|
2715
|
+
);
|
|
2716
|
+
|
|
2717
|
+
// Support: Android<4.0
|
|
2718
|
+
// Detect silently failing push.apply
|
|
2719
|
+
// eslint-disable-next-line no-unused-expressions
|
|
2720
|
+
arr[ preferredDoc.childNodes.length ].nodeType;
|
|
2721
|
+
} catch ( e ) {
|
|
2722
|
+
push = { apply: arr.length ?
|
|
2723
|
+
|
|
2724
|
+
// Leverage slice if possible
|
|
2725
|
+
function( target, els ) {
|
|
2726
|
+
pushNative.apply( target, slice.call( els ) );
|
|
2727
|
+
} :
|
|
2728
|
+
|
|
2729
|
+
// Support: IE<9
|
|
2730
|
+
// Otherwise append directly
|
|
2731
|
+
function( target, els ) {
|
|
2732
|
+
var j = target.length,
|
|
2733
|
+
i = 0;
|
|
2734
|
+
|
|
2735
|
+
// Can't trust NodeList.length
|
|
2736
|
+
while ( ( target[ j++ ] = els[ i++ ] ) ) {}
|
|
2737
|
+
target.length = j - 1;
|
|
2738
|
+
}
|
|
2739
|
+
};
|
|
2740
|
+
}
|
|
2741
|
+
|
|
2742
|
+
function Sizzle( selector, context, results, seed ) {
|
|
2743
|
+
var m, i, elem, nid, match, groups, newSelector,
|
|
2744
|
+
newContext = context && context.ownerDocument,
|
|
2745
|
+
|
|
2746
|
+
// nodeType defaults to 9, since context defaults to document
|
|
2747
|
+
nodeType = context ? context.nodeType : 9;
|
|
2748
|
+
|
|
2749
|
+
results = results || [];
|
|
2750
|
+
|
|
2751
|
+
// Return early from calls with invalid selector or context
|
|
2752
|
+
if ( typeof selector !== "string" || !selector ||
|
|
2753
|
+
nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) {
|
|
2754
|
+
|
|
2755
|
+
return results;
|
|
2756
|
+
}
|
|
2757
|
+
|
|
2758
|
+
// Try to shortcut find operations (as opposed to filters) in HTML documents
|
|
2759
|
+
if ( !seed ) {
|
|
2760
|
+
setDocument( context );
|
|
2761
|
+
context = context || document;
|
|
2762
|
+
|
|
2763
|
+
if ( documentIsHTML ) {
|
|
2764
|
+
|
|
2765
|
+
// If the selector is sufficiently simple, try using a "get*By*" DOM method
|
|
2766
|
+
// (excepting DocumentFragment context, where the methods don't exist)
|
|
2767
|
+
if ( nodeType !== 11 && ( match = rquickExpr.exec( selector ) ) ) {
|
|
2768
|
+
|
|
2769
|
+
// ID selector
|
|
2770
|
+
if ( ( m = match[ 1 ] ) ) {
|
|
2771
|
+
|
|
2772
|
+
// Document context
|
|
2773
|
+
if ( nodeType === 9 ) {
|
|
2774
|
+
if ( ( elem = context.getElementById( m ) ) ) {
|
|
2775
|
+
|
|
2776
|
+
// Support: IE, Opera, Webkit
|
|
2777
|
+
// TODO: identify versions
|
|
2778
|
+
// getElementById can match elements by name instead of ID
|
|
2779
|
+
if ( elem.id === m ) {
|
|
2780
|
+
results.push( elem );
|
|
2781
|
+
return results;
|
|
2782
|
+
}
|
|
2783
|
+
} else {
|
|
2784
|
+
return results;
|
|
2785
|
+
}
|
|
2786
|
+
|
|
2787
|
+
// Element context
|
|
2788
|
+
} else {
|
|
2789
|
+
|
|
2790
|
+
// Support: IE, Opera, Webkit
|
|
2791
|
+
// TODO: identify versions
|
|
2792
|
+
// getElementById can match elements by name instead of ID
|
|
2793
|
+
if ( newContext && ( elem = newContext.getElementById( m ) ) &&
|
|
2794
|
+
contains( context, elem ) &&
|
|
2795
|
+
elem.id === m ) {
|
|
2796
|
+
|
|
2797
|
+
results.push( elem );
|
|
2798
|
+
return results;
|
|
2799
|
+
}
|
|
2800
|
+
}
|
|
2801
|
+
|
|
2802
|
+
// Type selector
|
|
2803
|
+
} else if ( match[ 2 ] ) {
|
|
2804
|
+
push.apply( results, context.getElementsByTagName( selector ) );
|
|
2805
|
+
return results;
|
|
2806
|
+
|
|
2807
|
+
// Class selector
|
|
2808
|
+
} else if ( ( m = match[ 3 ] ) && support.getElementsByClassName &&
|
|
2809
|
+
context.getElementsByClassName ) {
|
|
2810
|
+
|
|
2811
|
+
push.apply( results, context.getElementsByClassName( m ) );
|
|
2812
|
+
return results;
|
|
2813
|
+
}
|
|
2814
|
+
}
|
|
2815
|
+
|
|
2816
|
+
// Take advantage of querySelectorAll
|
|
2817
|
+
if ( support.qsa &&
|
|
2818
|
+
!nonnativeSelectorCache[ selector + " " ] &&
|
|
2819
|
+
( !rbuggyQSA || !rbuggyQSA.test( selector ) ) &&
|
|
2820
|
+
|
|
2821
|
+
// Support: IE 8 only
|
|
2822
|
+
// Exclude object elements
|
|
2823
|
+
( nodeType !== 1 || context.nodeName.toLowerCase() !== "object" ) ) {
|
|
2824
|
+
|
|
2825
|
+
newSelector = selector;
|
|
2826
|
+
newContext = context;
|
|
2827
|
+
|
|
2828
|
+
// qSA considers elements outside a scoping root when evaluating child or
|
|
2829
|
+
// descendant combinators, which is not what we want.
|
|
2830
|
+
// In such cases, we work around the behavior by prefixing every selector in the
|
|
2831
|
+
// list with an ID selector referencing the scope context.
|
|
2832
|
+
// The technique has to be used as well when a leading combinator is used
|
|
2833
|
+
// as such selectors are not recognized by querySelectorAll.
|
|
2834
|
+
// Thanks to Andrew Dupont for this technique.
|
|
2835
|
+
if ( nodeType === 1 &&
|
|
2836
|
+
( rdescend.test( selector ) || rcombinators.test( selector ) ) ) {
|
|
2837
|
+
|
|
2838
|
+
// Expand context for sibling selectors
|
|
2839
|
+
newContext = rsibling.test( selector ) && testContext( context.parentNode ) ||
|
|
2840
|
+
context;
|
|
2841
|
+
|
|
2842
|
+
// We can use :scope instead of the ID hack if the browser
|
|
2843
|
+
// supports it & if we're not changing the context.
|
|
2844
|
+
if ( newContext !== context || !support.scope ) {
|
|
2845
|
+
|
|
2846
|
+
// Capture the context ID, setting it first if necessary
|
|
2847
|
+
if ( ( nid = context.getAttribute( "id" ) ) ) {
|
|
2848
|
+
nid = nid.replace( rcssescape, fcssescape );
|
|
2849
|
+
} else {
|
|
2850
|
+
context.setAttribute( "id", ( nid = expando ) );
|
|
2851
|
+
}
|
|
2852
|
+
}
|
|
2853
|
+
|
|
2854
|
+
// Prefix every selector in the list
|
|
2450
2855
|
groups = tokenize( selector );
|
|
2451
2856
|
i = groups.length;
|
|
2452
2857
|
while ( i-- ) {
|
|
@@ -4560,750 +4965,396 @@ var sizzle = {exports: {}};
|
|
|
4560
4965
|
Sizzle.noConflict = function() {
|
|
4561
4966
|
if ( window.Sizzle === Sizzle ) {
|
|
4562
4967
|
window.Sizzle = _sizzle;
|
|
4563
|
-
}
|
|
4564
|
-
|
|
4565
|
-
return Sizzle;
|
|
4566
|
-
};
|
|
4567
|
-
|
|
4568
|
-
if ( module.exports ) {
|
|
4569
|
-
module.exports = Sizzle;
|
|
4570
|
-
} else {
|
|
4571
|
-
window.Sizzle = Sizzle;
|
|
4572
|
-
}
|
|
4573
|
-
|
|
4574
|
-
// EXPOSE
|
|
4575
|
-
|
|
4576
|
-
} )( window );
|
|
4577
|
-
} (sizzle));
|
|
4578
|
-
|
|
4579
|
-
var sizzleExports = sizzle.exports;
|
|
4580
|
-
var Sizzle = /*@__PURE__*/getDefaultExportFromCjs(sizzleExports);
|
|
4581
|
-
|
|
4582
|
-
function wrapSizzle(Sizzle) {
|
|
4583
|
-
var proxy = _.extend(function () {
|
|
4584
|
-
return proxy.Sizzle.apply(this, arguments);
|
|
4585
|
-
}, Sizzle);
|
|
4586
|
-
proxy.reset = function () {
|
|
4587
|
-
proxy.Sizzle = Sizzle;
|
|
4588
|
-
proxy.matchesSelector = Sizzle.matchesSelector;
|
|
4589
|
-
proxy.matches = Sizzle.matches;
|
|
4590
|
-
};
|
|
4591
|
-
proxy.intercept = function (fn, methodName) {
|
|
4592
|
-
if (methodName === void 0) { methodName = 'Sizzle'; }
|
|
4593
|
-
proxy[methodName] = _.wrap(proxy[methodName], fn);
|
|
4594
|
-
};
|
|
4595
|
-
proxy.reset();
|
|
4596
|
-
return proxy;
|
|
4597
|
-
}
|
|
4598
|
-
var SizzleProxy = wrapSizzle(Sizzle);
|
|
4599
|
-
|
|
4600
|
-
/**
|
|
4601
|
-
* Find all Elements that match the CSS Selector.
|
|
4602
|
-
*
|
|
4603
|
-
* @param {string} cssSelector CSS selector used to search DOM
|
|
4604
|
-
* @returns {DomQuery} array with the matching elements
|
|
4605
|
-
* @access public
|
|
4606
|
-
* @category DOM
|
|
4607
|
-
* @example
|
|
4608
|
-
* pendo.dom('h1')[0].remove()
|
|
4609
|
-
* @example
|
|
4610
|
-
* pendo.dom('.left').css({ 'text-align': 'center' })
|
|
4611
|
-
*/ /**
|
|
4612
|
-
* Creates new DOM elements from HTML text.
|
|
4613
|
-
*
|
|
4614
|
-
* @param {string} htmlString HTML syntax used to produce new DOM elements
|
|
4615
|
-
* @returns {DomQuery} array with the matching elements
|
|
4616
|
-
* @access public
|
|
4617
|
-
* @category DOM
|
|
4618
|
-
* @example
|
|
4619
|
-
* pendo.dom('<div><span>this should create an unattached DOM node</span></div>');
|
|
4620
|
-
*/
|
|
4621
|
-
function dom(selection, context) {
|
|
4622
|
-
var self = this;
|
|
4623
|
-
var nodes;
|
|
4624
|
-
var tag;
|
|
4625
|
-
if (selection && selection instanceof dom) {
|
|
4626
|
-
return selection;
|
|
4627
|
-
}
|
|
4628
|
-
if (!(self instanceof dom)) {
|
|
4629
|
-
// eslint-disable-next-line new-cap
|
|
4630
|
-
return new dom(selection, context);
|
|
4631
|
-
}
|
|
4632
|
-
if (!selection) {
|
|
4633
|
-
nodes = [];
|
|
4634
|
-
}
|
|
4635
|
-
else if (selection.nodeType) {
|
|
4636
|
-
nodes = [selection];
|
|
4637
|
-
}
|
|
4638
|
-
else if ((tag = /^<(\w+)\/?>$/.exec(selection))) {
|
|
4639
|
-
nodes = [document.createElement(tag[1])];
|
|
4640
|
-
}
|
|
4641
|
-
else if (/^<[\w\W]+>$/.test(selection)) {
|
|
4642
|
-
var container = document.createElement('div');
|
|
4643
|
-
container.innerHTML = selection;
|
|
4644
|
-
nodes = _.toArray(container.childNodes);
|
|
4645
|
-
}
|
|
4646
|
-
else if (_.isString(selection)) {
|
|
4647
|
-
if (context instanceof dom) {
|
|
4648
|
-
context = context.length > 0 ? context[0] : null;
|
|
4649
|
-
}
|
|
4650
|
-
// CSS selector
|
|
4651
|
-
try {
|
|
4652
|
-
nodes = SizzleProxy(selection, context);
|
|
4653
|
-
}
|
|
4654
|
-
catch (e) {
|
|
4655
|
-
nodes = [];
|
|
4656
|
-
}
|
|
4657
|
-
}
|
|
4658
|
-
else {
|
|
4659
|
-
// handle case where selection is not sizzle-able (window, numbers, etc.)
|
|
4660
|
-
nodes = [selection];
|
|
4661
|
-
}
|
|
4662
|
-
_.each(nodes, function (node, i) {
|
|
4663
|
-
self[i] = node;
|
|
4664
|
-
});
|
|
4665
|
-
self.context = context;
|
|
4666
|
-
self.length = nodes.length;
|
|
4667
|
-
return self;
|
|
4668
|
-
}
|
|
4669
|
-
|
|
4670
|
-
/**
|
|
4671
|
-
* Utility function to check if passed value exists. Returns false for `null` and `undefined`.
|
|
4672
|
-
*
|
|
4673
|
-
* @access public
|
|
4674
|
-
* @category Utility
|
|
4675
|
-
* @param {any} value argument to type check
|
|
4676
|
-
* @returns {Boolean}
|
|
4677
|
-
* @example
|
|
4678
|
-
* pendo.doesExist(null) => false
|
|
4679
|
-
* pendo.doesExist('foo') => true
|
|
4680
|
-
*/
|
|
4681
|
-
function doesExist(arg) {
|
|
4682
|
-
return !(typeof arg === 'undefined' || arg === null);
|
|
4683
|
-
}
|
|
4684
|
-
|
|
4685
|
-
var rtrim = /^\s+|\s+$/g;
|
|
4686
|
-
var trim = String.prototype.trim;
|
|
4687
|
-
if (!trim) {
|
|
4688
|
-
trim = function () {
|
|
4689
|
-
return this.replace(rtrim, '');
|
|
4690
|
-
};
|
|
4691
|
-
}
|
|
4692
|
-
|
|
4693
|
-
var deflate_min = {exports: {}};
|
|
4694
|
-
|
|
4695
|
-
/*
|
|
4696
|
-
* @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License
|
|
4697
|
-
*/
|
|
4698
|
-
|
|
4699
|
-
(function (module) {
|
|
4700
|
-
(function() {var n=void 0,w=!0,aa=this;function ba(f,d){var c=f.split("."),e=aa;!(c[0]in e)&&e.execScript&&e.execScript("var "+c[0]);for(var b;c.length&&(b=c.shift());)!c.length&&d!==n?e[b]=d:e=e[b]?e[b]:e[b]={};}var C="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array;function K(f,d){this.index="number"===typeof d?d:0;this.e=0;this.buffer=f instanceof(C?Uint8Array:Array)?f:new (C?Uint8Array:Array)(32768);if(2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&ca(this);}function ca(f){var d=f.buffer,c,e=d.length,b=new (C?Uint8Array:Array)(e<<1);if(C)b.set(d);else for(c=0;c<e;++c)b[c]=d[c];return f.buffer=b}
|
|
4701
|
-
K.prototype.b=function(f,d,c){var e=this.buffer,b=this.index,a=this.e,g=e[b],m;c&&1<d&&(f=8<d?(L[f&255]<<24|L[f>>>8&255]<<16|L[f>>>16&255]<<8|L[f>>>24&255])>>32-d:L[f]>>8-d);if(8>d+a)g=g<<d|f,a+=d;else for(m=0;m<d;++m)g=g<<1|f>>d-m-1&1,8===++a&&(a=0,e[b++]=L[g],g=0,b===e.length&&(e=ca(this)));e[b]=g;this.buffer=e;this.e=a;this.index=b;};K.prototype.finish=function(){var f=this.buffer,d=this.index,c;0<this.e&&(f[d]<<=8-this.e,f[d]=L[f[d]],d++);C?c=f.subarray(0,d):(f.length=d,c=f);return c};
|
|
4702
|
-
var da=new (C?Uint8Array:Array)(256),M;for(M=0;256>M;++M){for(var N=M,S=N,ea=7,N=N>>>1;N;N>>>=1)S<<=1,S|=N&1,--ea;da[M]=(S<<ea&255)>>>0;}var L=da;function ia(f){this.buffer=new (C?Uint16Array:Array)(2*f);this.length=0;}ia.prototype.getParent=function(f){return 2*((f-2)/4|0)};ia.prototype.push=function(f,d){var c,e,b=this.buffer,a;c=this.length;b[this.length++]=d;for(b[this.length++]=f;0<c;)if(e=this.getParent(c),b[c]>b[e])a=b[c],b[c]=b[e],b[e]=a,a=b[c+1],b[c+1]=b[e+1],b[e+1]=a,c=e;else break;return this.length};
|
|
4703
|
-
ia.prototype.pop=function(){var f,d,c=this.buffer,e,b,a;d=c[0];f=c[1];this.length-=2;c[0]=c[this.length];c[1]=c[this.length+1];for(a=0;;){b=2*a+2;if(b>=this.length)break;b+2<this.length&&c[b+2]>c[b]&&(b+=2);if(c[b]>c[a])e=c[a],c[a]=c[b],c[b]=e,e=c[a+1],c[a+1]=c[b+1],c[b+1]=e;else break;a=b;}return {index:f,value:d,length:this.length}};function ka(f,d){this.d=la;this.i=0;this.input=C&&f instanceof Array?new Uint8Array(f):f;this.c=0;d&&(d.lazy&&(this.i=d.lazy),"number"===typeof d.compressionType&&(this.d=d.compressionType),d.outputBuffer&&(this.a=C&&d.outputBuffer instanceof Array?new Uint8Array(d.outputBuffer):d.outputBuffer),"number"===typeof d.outputIndex&&(this.c=d.outputIndex));this.a||(this.a=new (C?Uint8Array:Array)(32768));}var la=2,na={NONE:0,h:1,g:la,n:3},T=[],U;
|
|
4704
|
-
for(U=0;288>U;U++)switch(w){case 143>=U:T.push([U+48,8]);break;case 255>=U:T.push([U-144+400,9]);break;case 279>=U:T.push([U-256+0,7]);break;case 287>=U:T.push([U-280+192,8]);break;default:throw "invalid literal: "+U;}
|
|
4705
|
-
ka.prototype.f=function(){var f,d,c,e,b=this.input;switch(this.d){case 0:c=0;for(e=b.length;c<e;){d=C?b.subarray(c,c+65535):b.slice(c,c+65535);c+=d.length;var a=d,g=c===e,m=n,k=n,p=n,t=n,u=n,l=this.a,h=this.c;if(C){for(l=new Uint8Array(this.a.buffer);l.length<=h+a.length+5;)l=new Uint8Array(l.length<<1);l.set(this.a);}m=g?1:0;l[h++]=m|0;k=a.length;p=~k+65536&65535;l[h++]=k&255;l[h++]=k>>>8&255;l[h++]=p&255;l[h++]=p>>>8&255;if(C)l.set(a,h),h+=a.length,l=l.subarray(0,h);else {t=0;for(u=a.length;t<u;++t)l[h++]=
|
|
4706
|
-
a[t];l.length=h;}this.c=h;this.a=l;}break;case 1:var q=new K(C?new Uint8Array(this.a.buffer):this.a,this.c);q.b(1,1,w);q.b(1,2,w);var s=oa(this,b),x,fa,z;x=0;for(fa=s.length;x<fa;x++)if(z=s[x],K.prototype.b.apply(q,T[z]),256<z)q.b(s[++x],s[++x],w),q.b(s[++x],5),q.b(s[++x],s[++x],w);else if(256===z)break;this.a=q.finish();this.c=this.a.length;break;case la:var B=new K(C?new Uint8Array(this.a.buffer):this.a,this.c),ta,J,O,P,Q,La=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],X,ua,Y,va,ga,ja=Array(19),
|
|
4707
|
-
wa,R,ha,y,xa;ta=la;B.b(1,1,w);B.b(ta,2,w);J=oa(this,b);X=pa(this.m,15);ua=qa(X);Y=pa(this.l,7);va=qa(Y);for(O=286;257<O&&0===X[O-1];O--);for(P=30;1<P&&0===Y[P-1];P--);var ya=O,za=P,F=new (C?Uint32Array:Array)(ya+za),r,G,v,Z,E=new (C?Uint32Array:Array)(316),D,A,H=new (C?Uint8Array:Array)(19);for(r=G=0;r<ya;r++)F[G++]=X[r];for(r=0;r<za;r++)F[G++]=Y[r];if(!C){r=0;for(Z=H.length;r<Z;++r)H[r]=0;}r=D=0;for(Z=F.length;r<Z;r+=G){for(G=1;r+G<Z&&F[r+G]===F[r];++G);v=G;if(0===F[r])if(3>v)for(;0<v--;)E[D++]=0,
|
|
4708
|
-
H[0]++;else for(;0<v;)A=138>v?v:138,A>v-3&&A<v&&(A=v-3),10>=A?(E[D++]=17,E[D++]=A-3,H[17]++):(E[D++]=18,E[D++]=A-11,H[18]++),v-=A;else if(E[D++]=F[r],H[F[r]]++,v--,3>v)for(;0<v--;)E[D++]=F[r],H[F[r]]++;else for(;0<v;)A=6>v?v:6,A>v-3&&A<v&&(A=v-3),E[D++]=16,E[D++]=A-3,H[16]++,v-=A;}f=C?E.subarray(0,D):E.slice(0,D);ga=pa(H,7);for(y=0;19>y;y++)ja[y]=ga[La[y]];for(Q=19;4<Q&&0===ja[Q-1];Q--);wa=qa(ga);B.b(O-257,5,w);B.b(P-1,5,w);B.b(Q-4,4,w);for(y=0;y<Q;y++)B.b(ja[y],3,w);y=0;for(xa=f.length;y<xa;y++)if(R=
|
|
4709
|
-
f[y],B.b(wa[R],ga[R],w),16<=R){y++;switch(R){case 16:ha=2;break;case 17:ha=3;break;case 18:ha=7;break;default:throw "invalid code: "+R;}B.b(f[y],ha,w);}var Aa=[ua,X],Ba=[va,Y],I,Ca,$,ma,Da,Ea,Fa,Ga;Da=Aa[0];Ea=Aa[1];Fa=Ba[0];Ga=Ba[1];I=0;for(Ca=J.length;I<Ca;++I)if($=J[I],B.b(Da[$],Ea[$],w),256<$)B.b(J[++I],J[++I],w),ma=J[++I],B.b(Fa[ma],Ga[ma],w),B.b(J[++I],J[++I],w);else if(256===$)break;this.a=B.finish();this.c=this.a.length;break;default:throw "invalid compression type";}return this.a};
|
|
4710
|
-
function ra(f,d){this.length=f;this.k=d;}
|
|
4711
|
-
var sa=function(){function f(b){switch(w){case 3===b:return [257,b-3,0];case 4===b:return [258,b-4,0];case 5===b:return [259,b-5,0];case 6===b:return [260,b-6,0];case 7===b:return [261,b-7,0];case 8===b:return [262,b-8,0];case 9===b:return [263,b-9,0];case 10===b:return [264,b-10,0];case 12>=b:return [265,b-11,1];case 14>=b:return [266,b-13,1];case 16>=b:return [267,b-15,1];case 18>=b:return [268,b-17,1];case 22>=b:return [269,b-19,2];case 26>=b:return [270,b-23,2];case 30>=b:return [271,b-27,2];case 34>=b:return [272,
|
|
4712
|
-
b-31,2];case 42>=b:return [273,b-35,3];case 50>=b:return [274,b-43,3];case 58>=b:return [275,b-51,3];case 66>=b:return [276,b-59,3];case 82>=b:return [277,b-67,4];case 98>=b:return [278,b-83,4];case 114>=b:return [279,b-99,4];case 130>=b:return [280,b-115,4];case 162>=b:return [281,b-131,5];case 194>=b:return [282,b-163,5];case 226>=b:return [283,b-195,5];case 257>=b:return [284,b-227,5];case 258===b:return [285,b-258,0];default:throw "invalid length: "+b;}}var d=[],c,e;for(c=3;258>=c;c++)e=f(c),d[c]=e[2]<<24|
|
|
4713
|
-
e[1]<<16|e[0];return d}(),Ha=C?new Uint32Array(sa):sa;
|
|
4714
|
-
function oa(f,d){function c(b,c){var a=b.k,d=[],e=0,f;f=Ha[b.length];d[e++]=f&65535;d[e++]=f>>16&255;d[e++]=f>>24;var g;switch(w){case 1===a:g=[0,a-1,0];break;case 2===a:g=[1,a-2,0];break;case 3===a:g=[2,a-3,0];break;case 4===a:g=[3,a-4,0];break;case 6>=a:g=[4,a-5,1];break;case 8>=a:g=[5,a-7,1];break;case 12>=a:g=[6,a-9,2];break;case 16>=a:g=[7,a-13,2];break;case 24>=a:g=[8,a-17,3];break;case 32>=a:g=[9,a-25,3];break;case 48>=a:g=[10,a-33,4];break;case 64>=a:g=[11,a-49,4];break;case 96>=a:g=[12,a-
|
|
4715
|
-
65,5];break;case 128>=a:g=[13,a-97,5];break;case 192>=a:g=[14,a-129,6];break;case 256>=a:g=[15,a-193,6];break;case 384>=a:g=[16,a-257,7];break;case 512>=a:g=[17,a-385,7];break;case 768>=a:g=[18,a-513,8];break;case 1024>=a:g=[19,a-769,8];break;case 1536>=a:g=[20,a-1025,9];break;case 2048>=a:g=[21,a-1537,9];break;case 3072>=a:g=[22,a-2049,10];break;case 4096>=a:g=[23,a-3073,10];break;case 6144>=a:g=[24,a-4097,11];break;case 8192>=a:g=[25,a-6145,11];break;case 12288>=a:g=[26,a-8193,12];break;case 16384>=
|
|
4716
|
-
a:g=[27,a-12289,12];break;case 24576>=a:g=[28,a-16385,13];break;case 32768>=a:g=[29,a-24577,13];break;default:throw "invalid distance";}f=g;d[e++]=f[0];d[e++]=f[1];d[e++]=f[2];var k,m;k=0;for(m=d.length;k<m;++k)l[h++]=d[k];s[d[0]]++;x[d[3]]++;q=b.length+c-1;u=null;}var e,b,a,g,m,k={},p,t,u,l=C?new Uint16Array(2*d.length):[],h=0,q=0,s=new (C?Uint32Array:Array)(286),x=new (C?Uint32Array:Array)(30),fa=f.i,z;if(!C){for(a=0;285>=a;)s[a++]=0;for(a=0;29>=a;)x[a++]=0;}s[256]=1;e=0;for(b=d.length;e<b;++e){a=
|
|
4717
|
-
m=0;for(g=3;a<g&&e+a!==b;++a)m=m<<8|d[e+a];k[m]===n&&(k[m]=[]);p=k[m];if(!(0<q--)){for(;0<p.length&&32768<e-p[0];)p.shift();if(e+3>=b){u&&c(u,-1);a=0;for(g=b-e;a<g;++a)z=d[e+a],l[h++]=z,++s[z];break}0<p.length?(t=Ia(d,e,p),u?u.length<t.length?(z=d[e-1],l[h++]=z,++s[z],c(t,0)):c(u,-1):t.length<fa?u=t:c(t,0)):u?c(u,-1):(z=d[e],l[h++]=z,++s[z]);}p.push(e);}l[h++]=256;s[256]++;f.m=s;f.l=x;return C?l.subarray(0,h):l}
|
|
4718
|
-
function Ia(f,d,c){var e,b,a=0,g,m,k,p,t=f.length;m=0;p=c.length;a:for(;m<p;m++){e=c[p-m-1];g=3;if(3<a){for(k=a;3<k;k--)if(f[e+k-1]!==f[d+k-1])continue a;g=a;}for(;258>g&&d+g<t&&f[e+g]===f[d+g];)++g;g>a&&(b=e,a=g);if(258===g)break}return new ra(a,d-b)}
|
|
4719
|
-
function pa(f,d){var c=f.length,e=new ia(572),b=new (C?Uint8Array:Array)(c),a,g,m,k,p;if(!C)for(k=0;k<c;k++)b[k]=0;for(k=0;k<c;++k)0<f[k]&&e.push(k,f[k]);a=Array(e.length/2);g=new (C?Uint32Array:Array)(e.length/2);if(1===a.length)return b[e.pop().index]=1,b;k=0;for(p=e.length/2;k<p;++k)a[k]=e.pop(),g[k]=a[k].value;m=Ja(g,g.length,d);k=0;for(p=a.length;k<p;++k)b[a[k].index]=m[k];return b}
|
|
4720
|
-
function Ja(f,d,c){function e(a){var b=k[a][p[a]];b===d?(e(a+1),e(a+1)):--g[b];++p[a];}var b=new (C?Uint16Array:Array)(c),a=new (C?Uint8Array:Array)(c),g=new (C?Uint8Array:Array)(d),m=Array(c),k=Array(c),p=Array(c),t=(1<<c)-d,u=1<<c-1,l,h,q,s,x;b[c-1]=d;for(h=0;h<c;++h)t<u?a[h]=0:(a[h]=1,t-=u),t<<=1,b[c-2-h]=(b[c-1-h]/2|0)+d;b[0]=a[0];m[0]=Array(b[0]);k[0]=Array(b[0]);for(h=1;h<c;++h)b[h]>2*b[h-1]+a[h]&&(b[h]=2*b[h-1]+a[h]),m[h]=Array(b[h]),k[h]=Array(b[h]);for(l=0;l<d;++l)g[l]=c;for(q=0;q<b[c-1];++q)m[c-
|
|
4721
|
-
1][q]=f[q],k[c-1][q]=q;for(l=0;l<c;++l)p[l]=0;1===a[c-1]&&(--g[0],++p[c-1]);for(h=c-2;0<=h;--h){s=l=0;x=p[h+1];for(q=0;q<b[h];q++)s=m[h+1][x]+m[h+1][x+1],s>f[l]?(m[h][q]=s,k[h][q]=d,x+=2):(m[h][q]=f[l],k[h][q]=l,++l);p[h]=0;1===a[h]&&e(h);}return g}
|
|
4722
|
-
function qa(f){var d=new (C?Uint16Array:Array)(f.length),c=[],e=[],b=0,a,g,m,k;a=0;for(g=f.length;a<g;a++)c[f[a]]=(c[f[a]]|0)+1;a=1;for(g=16;a<=g;a++)e[a]=b,b+=c[a]|0,b<<=1;a=0;for(g=f.length;a<g;a++){b=e[f[a]];e[f[a]]+=1;m=d[a]=0;for(k=f[a];m<k;m++)d[a]=d[a]<<1|b&1,b>>>=1;}return d}function Ka(f,d){this.input=f;this.a=new (C?Uint8Array:Array)(32768);this.d=V.g;var c={},e;if((d||!(d={}))&&"number"===typeof d.compressionType)this.d=d.compressionType;for(e in d)c[e]=d[e];c.outputBuffer=this.a;this.j=new ka(this.input,c);}var V=na;
|
|
4723
|
-
Ka.prototype.f=function(){var f,d,c,e,b,a,g=0;a=this.a;switch(8){case 8:f=Math.LOG2E*Math.log(32768)-8;break;default:throw Error("invalid compression method");}d=f<<4|8;a[g++]=d;switch(8){case 8:switch(this.d){case V.NONE:e=0;break;case V.h:e=1;break;case V.g:e=2;break;default:throw Error("unsupported compression type");}break;default:throw Error("invalid compression method");}c=e<<6|0;a[g++]=c|31-(256*d+c)%31;var m=this.input;if("string"===typeof m){var k=m.split(""),p,t;p=0;for(t=k.length;p<t;p++)k[p]=
|
|
4724
|
-
(k[p].charCodeAt(0)&255)>>>0;m=k;}for(var u=1,l=0,h=m.length,q,s=0;0<h;){q=1024<h?1024:h;h-=q;do u+=m[s++],l+=u;while(--q);u%=65521;l%=65521;}b=(l<<16|u)>>>0;this.j.c=g;a=this.j.f();g=a.length;C&&(a=new Uint8Array(a.buffer),a.length<=g+4&&(this.a=new Uint8Array(a.length+4),this.a.set(a),a=this.a),a=a.subarray(0,g+4));a[g++]=b>>24&255;a[g++]=b>>16&255;a[g++]=b>>8&255;a[g++]=b&255;return a};ba("Zlib.Deflate",Ka);ba("Zlib.Deflate.compress",function(f,d){return (new Ka(f,d)).f()});ba("Zlib.Deflate.prototype.compress",Ka.prototype.f);var Ma={NONE:V.NONE,FIXED:V.h,DYNAMIC:V.g},Na,Oa,W,Pa;if(Object.keys)Na=Object.keys(Ma);else for(Oa in Na=[],W=0,Ma)Na[W++]=Oa;W=0;for(Pa=Na.length;W<Pa;++W)Oa=Na[W],ba("Zlib.Deflate.CompressionType."+Oa,Ma[Oa]);}).call(module.exports);
|
|
4725
|
-
} (deflate_min));
|
|
4726
|
-
|
|
4727
|
-
var deflate_minExports = deflate_min.exports;
|
|
4728
|
-
var ZLibDeflate = /*@__PURE__*/getDefaultExportFromCjs(deflate_minExports);
|
|
4729
|
-
|
|
4730
|
-
({
|
|
4731
|
-
'Deflate': ZLibDeflate.Zlib.Deflate
|
|
4732
|
-
});
|
|
4733
|
-
|
|
4734
|
-
function getZoneSafeMethod$1(_, method, target) {
|
|
4735
|
-
if (target === void 0) { target = window; }
|
|
4736
|
-
var zoneSymbol = '__symbol__';
|
|
4737
|
-
/* global Zone */
|
|
4738
|
-
if (typeof Zone !== 'undefined' && _.isFunction(Zone[zoneSymbol])) {
|
|
4739
|
-
var fn = target[Zone[zoneSymbol](method)];
|
|
4740
|
-
if (_.isFunction(fn)) {
|
|
4741
|
-
return fn;
|
|
4742
|
-
}
|
|
4743
|
-
}
|
|
4744
|
-
return target[method];
|
|
4745
|
-
}
|
|
4746
|
-
|
|
4747
|
-
var crc32_min = {exports: {}};
|
|
4748
|
-
|
|
4749
|
-
/*
|
|
4750
|
-
* @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License
|
|
4751
|
-
*/
|
|
4752
|
-
|
|
4753
|
-
(function (module) {
|
|
4754
|
-
(function() {var f=this;function h(c,a){var b=c.split("."),e=f;!(b[0]in e)&&e.execScript&&e.execScript("var "+b[0]);for(var d;b.length&&(d=b.shift());)!b.length&&void 0!==a?e[d]=a:e=e[d]?e[d]:e[d]={};}var l={c:function(c,a,b){return l.update(c,0,a,b)},update:function(c,a,b,e){var d=l.a,g="number"===typeof b?b:b=0,k="number"===typeof e?e:c.length;a^=4294967295;for(g=k&7;g--;++b)a=a>>>8^d[(a^c[b])&255];for(g=k>>3;g--;b+=8)a=a>>>8^d[(a^c[b])&255],a=a>>>8^d[(a^c[b+1])&255],a=a>>>8^d[(a^c[b+2])&255],a=a>>>8^d[(a^c[b+3])&255],a=a>>>8^d[(a^c[b+4])&255],a=a>>>8^d[(a^c[b+5])&255],a=a>>>8^d[(a^c[b+6])&255],a=a>>>8^d[(a^c[b+7])&255];return (a^4294967295)>>>0},d:function(c,a){return (l.a[(c^a)&255]^c>>>8)>>>
|
|
4755
|
-
0},b:[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,
|
|
4756
|
-
2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,
|
|
4757
|
-
2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,
|
|
4758
|
-
2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,
|
|
4759
|
-
3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,
|
|
4760
|
-
936918E3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]};l.a="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array?new Uint32Array(l.b):l.b;h("Zlib.CRC32",l);h("Zlib.CRC32.calc",l.c);h("Zlib.CRC32.update",l.update);}).call(module.exports);
|
|
4761
|
-
} (crc32_min));
|
|
4762
|
-
|
|
4763
|
-
var crc32_minExports = crc32_min.exports;
|
|
4764
|
-
var ZlibCRC32 = /*@__PURE__*/getDefaultExportFromCjs(crc32_minExports);
|
|
4765
|
-
|
|
4766
|
-
({
|
|
4767
|
-
'CRC32': ZlibCRC32.Zlib.CRC32
|
|
4768
|
-
});
|
|
4769
|
-
function randomElement(array) {
|
|
4770
|
-
return array[Math.floor(Math.random() * array.length)];
|
|
4771
|
-
}
|
|
4772
|
-
function randomString(length) {
|
|
4773
|
-
var letters = 'abcdefghijklmnopqrstuvwxyz';
|
|
4774
|
-
var charset = letters + letters.toUpperCase() + '1234567890';
|
|
4775
|
-
var R = '';
|
|
4776
|
-
var charsetArray = charset.split('');
|
|
4777
|
-
for (var i = 0; i < length; i++) {
|
|
4778
|
-
R += randomElement(charsetArray);
|
|
4779
|
-
}
|
|
4780
|
-
return R;
|
|
4781
|
-
}
|
|
4782
|
-
// Date.now() can be overridden by libraries to return a Date object instead of timestamp
|
|
4783
|
-
// This is our now() function
|
|
4784
|
-
function getNow() {
|
|
4785
|
-
return new Date().getTime();
|
|
4786
|
-
}
|
|
4787
|
-
function getZoneSafeMethod(method, target) {
|
|
4788
|
-
if (target === void 0) { target = window; }
|
|
4789
|
-
return getZoneSafeMethod$1(_, method, target);
|
|
4790
|
-
}
|
|
4791
|
-
function getIsFiniteImpl(window) {
|
|
4792
|
-
return _.isFunction(window.isFinite) ? window.isFinite
|
|
4793
|
-
: (window.Number && _.isFunction(window.Number.isFinite)) ? window.Number.isFinite
|
|
4794
|
-
: function (obj) {
|
|
4795
|
-
return obj != Infinity && obj != -Infinity && !isNaN(obj);
|
|
4796
|
-
};
|
|
4797
|
-
}
|
|
4798
|
-
getIsFiniteImpl(window);
|
|
4799
|
-
|
|
4800
|
-
function DomData() {
|
|
4801
|
-
this.ownerKey = '_pendo_' + randomString(8);
|
|
4802
|
-
}
|
|
4803
|
-
_.extend(DomData.prototype, {
|
|
4804
|
-
'cache': function (owner) {
|
|
4805
|
-
if (!_.isObject(owner))
|
|
4806
|
-
return {};
|
|
4807
|
-
var cache = owner[this.ownerKey];
|
|
4808
|
-
if (!cache) {
|
|
4809
|
-
cache = {};
|
|
4810
|
-
owner[this.ownerKey] = cache;
|
|
4811
|
-
}
|
|
4812
|
-
return cache;
|
|
4813
|
-
},
|
|
4814
|
-
'set': function (owner, key, value) {
|
|
4815
|
-
var cache = this.cache(owner);
|
|
4816
|
-
cache[key] = value;
|
|
4817
|
-
return cache;
|
|
4818
|
-
},
|
|
4819
|
-
'get': function (owner, key) {
|
|
4820
|
-
return key === undefined ? this.cache(owner) : owner[this.ownerKey] && owner[this.ownerKey][key];
|
|
4821
|
-
},
|
|
4822
|
-
'remove': function (owner, key) {
|
|
4823
|
-
var cache = this.cache(owner);
|
|
4824
|
-
delete cache[key];
|
|
4825
|
-
if (key === undefined || _.isEmpty(cache)) {
|
|
4826
|
-
owner[this.ownerKey] = undefined;
|
|
4827
|
-
}
|
|
4828
|
-
}
|
|
4829
|
-
});
|
|
4830
|
-
var DomData$1 = new DomData();
|
|
4831
|
-
|
|
4832
|
-
function hasComposedPath(evt) {
|
|
4833
|
-
return evt && _.isFunction(evt.composedPath);
|
|
4834
|
-
}
|
|
4835
|
-
function getComposedPath(evt) {
|
|
4836
|
-
if (hasComposedPath(evt)) {
|
|
4837
|
-
try {
|
|
4838
|
-
return evt.composedPath();
|
|
4839
|
-
}
|
|
4840
|
-
catch (e) {
|
|
4841
|
-
return evt.path;
|
|
4842
|
-
}
|
|
4843
|
-
}
|
|
4844
|
-
return null;
|
|
4845
|
-
}
|
|
4846
|
-
function getShadowRoot(elem) {
|
|
4847
|
-
return elem.shadowRoot;
|
|
4848
|
-
}
|
|
4849
|
-
function isElementShadowRoot(elem, _win) {
|
|
4850
|
-
if (!_win) {
|
|
4851
|
-
_win = window;
|
|
4852
|
-
}
|
|
4853
|
-
return typeof _win.ShadowRoot !== 'undefined' && elem instanceof _win.ShadowRoot && elem.host;
|
|
4854
|
-
}
|
|
4855
|
-
function getParent(elem, _win) {
|
|
4856
|
-
return isElementShadowRoot(elem, _win) ? elem.host : elem.parentNode;
|
|
4857
|
-
}
|
|
4858
|
-
|
|
4859
|
-
var shadowAPI = (function () {
|
|
4860
|
-
function isShadowSelector(selector) {
|
|
4861
|
-
return selector ? selector.indexOf(shadowAPI.PSEUDO_ELEMENT) > -1 : false;
|
|
4862
|
-
}
|
|
4863
|
-
function stringifyTokens(selector) {
|
|
4864
|
-
return _.reduce(selector, function (string, selectorChunk) {
|
|
4865
|
-
if (selectorChunk.value === shadowAPI.PSEUDO_SAFE) {
|
|
4866
|
-
return string + shadowAPI.PSEUDO_ELEMENT;
|
|
4867
|
-
}
|
|
4868
|
-
return string + selectorChunk.value;
|
|
4869
|
-
}, '');
|
|
4870
|
-
}
|
|
4871
|
-
function tokenizeSelectors(selection, Sizzle) {
|
|
4872
|
-
var safeSelection = selection.replace(shadowAPI.PSEUDO_REGEX, shadowAPI.PSEUDO_SAFE);
|
|
4873
|
-
return _.map(Sizzle.tokenize(safeSelection), stringifyTokens);
|
|
4874
|
-
}
|
|
4875
|
-
function parseShadowSelector(selector) {
|
|
4876
|
-
var splitter = selector.split(shadowAPI.PSEUDO_ELEMENT);
|
|
4877
|
-
var css = splitter.splice(0, 1)[0];
|
|
4878
|
-
var shadowCss = splitter.join(shadowAPI.PSEUDO_ELEMENT);
|
|
4879
|
-
return { 'baseCss': css, 'shadowCss': shadowCss };
|
|
4880
|
-
}
|
|
4881
|
-
return {
|
|
4882
|
-
'PSEUDO_ELEMENT': '::shadow',
|
|
4883
|
-
'PSEUDO_SAFE': ':shadow',
|
|
4884
|
-
'PSEUDO_REGEX': /::shadow/g,
|
|
4885
|
-
'getComposedPath': getComposedPath,
|
|
4886
|
-
'getShadowRoot': getShadowRoot,
|
|
4887
|
-
'isElementShadowRoot': isElementShadowRoot,
|
|
4888
|
-
'getParent': getParent,
|
|
4889
|
-
'isShadowSelector': isShadowSelector,
|
|
4890
|
-
'wrapSizzle': function (Sizzle) {
|
|
4891
|
-
Sizzle.intercept(function (Sizzle, selection, context, results, seed) {
|
|
4892
|
-
if (!isShadowSelector(selection)) {
|
|
4893
|
-
return Sizzle(selection, context, results, seed);
|
|
4894
|
-
}
|
|
4895
|
-
if (!_.isFunction(document.documentElement.attachShadow)) {
|
|
4896
|
-
return Sizzle(selection.replace(shadowAPI.PSEUDO_REGEX, ''), context, results, seed);
|
|
4897
|
-
}
|
|
4898
|
-
// We'll need to potentially be a Recursive Descent Parser if the Selector
|
|
4899
|
-
// has Shadow Root piercing pseudo selector.
|
|
4900
|
-
function shadowSizzleWrapper(query, context, results, seed) {
|
|
4901
|
-
if (isShadowSelector(query)) {
|
|
4902
|
-
var shadowQuery = parseShadowSelector(query);
|
|
4903
|
-
var baseElem = shadowSizzleWrapper(shadowQuery.baseCss, context);
|
|
4904
|
-
return _.reduce(baseElem, function (shadowResults, base) {
|
|
4905
|
-
if (!shadowAPI.getShadowRoot(base))
|
|
4906
|
-
return shadowResults;
|
|
4907
|
-
return shadowResults.concat(shadowSizzleWrapper(shadowQuery.shadowCss, shadowAPI.getShadowRoot(base), results, seed));
|
|
4908
|
-
}, []);
|
|
4909
|
-
}
|
|
4910
|
-
// base case
|
|
4911
|
-
return Sizzle(query, context, results, seed);
|
|
4912
|
-
}
|
|
4913
|
-
var selectors = tokenizeSelectors(selection, Sizzle);
|
|
4914
|
-
return _.reduce(selectors, function (nodes, query) {
|
|
4915
|
-
return nodes.concat(shadowSizzleWrapper(query, context, results, seed));
|
|
4916
|
-
}, []);
|
|
4917
|
-
});
|
|
4918
|
-
Sizzle.intercept(function (matchesSelector, element, selector) {
|
|
4919
|
-
if (shadowAPI.isElementShadowRoot(element)) {
|
|
4920
|
-
return false;
|
|
4921
|
-
}
|
|
4922
|
-
if (isShadowSelector(selector)) {
|
|
4923
|
-
return Sizzle(selector, document, null, [element]).length > 0;
|
|
4924
|
-
}
|
|
4925
|
-
return matchesSelector(element, selector);
|
|
4926
|
-
}, 'matchesSelector');
|
|
4927
|
-
}
|
|
4928
|
-
};
|
|
4929
|
-
})();
|
|
4930
|
-
|
|
4931
|
-
/*
|
|
4932
|
-
* @license MIT - https://github.com/taylorhakes/promise-polyfill
|
|
4933
|
-
*/
|
|
4934
|
-
// Modified to not affect global environment
|
|
4935
|
-
var Promise$1 = window.Promise;
|
|
4936
|
-
|
|
4937
|
-
Promise$1 = (function (global, factory) {
|
|
4938
|
-
var nativePromise = global.Promise;
|
|
4939
|
-
if (typeof nativePromise !== 'function' || !/native/.test(nativePromise)) {
|
|
4940
|
-
return factory();
|
|
4941
|
-
}
|
|
4942
|
-
|
|
4943
|
-
return nativePromise;
|
|
4944
|
-
}(window, (function () {
|
|
4945
|
-
/**
|
|
4946
|
-
* @this {Promise}
|
|
4947
|
-
*/
|
|
4948
|
-
function finallyConstructor(callback) {
|
|
4949
|
-
var constructor = this.constructor;
|
|
4950
|
-
return this.then(
|
|
4951
|
-
function(value) {
|
|
4952
|
-
// @ts-ignore
|
|
4953
|
-
return constructor.resolve(callback()).then(function() {
|
|
4954
|
-
return value;
|
|
4955
|
-
});
|
|
4956
|
-
},
|
|
4957
|
-
function(reason) {
|
|
4958
|
-
// @ts-ignore
|
|
4959
|
-
return constructor.resolve(callback()).then(function() {
|
|
4960
|
-
// @ts-ignore
|
|
4961
|
-
return constructor.reject(reason);
|
|
4962
|
-
});
|
|
4963
|
-
}
|
|
4964
|
-
);
|
|
4965
|
-
}
|
|
4966
|
-
|
|
4967
|
-
function allSettled(arr) {
|
|
4968
|
-
var P = this;
|
|
4969
|
-
return new P(function(resolve, reject) {
|
|
4970
|
-
if (!(arr && typeof arr.length !== 'undefined')) {
|
|
4971
|
-
return reject(
|
|
4972
|
-
new TypeError(
|
|
4973
|
-
typeof arr +
|
|
4974
|
-
' ' +
|
|
4975
|
-
arr +
|
|
4976
|
-
' is not iterable(cannot read property Symbol(Symbol.iterator))'
|
|
4977
|
-
)
|
|
4978
|
-
);
|
|
4979
|
-
}
|
|
4980
|
-
var args = Array.prototype.slice.call(arr);
|
|
4981
|
-
if (args.length === 0) return resolve([]);
|
|
4982
|
-
var remaining = args.length;
|
|
4983
|
-
|
|
4984
|
-
function res(i, val) {
|
|
4985
|
-
if (val && (typeof val === 'object' || typeof val === 'function')) {
|
|
4986
|
-
var then = val.then;
|
|
4987
|
-
if (typeof then === 'function') {
|
|
4988
|
-
then.call(
|
|
4989
|
-
val,
|
|
4990
|
-
function(val) {
|
|
4991
|
-
res(i, val);
|
|
4992
|
-
},
|
|
4993
|
-
function(e) {
|
|
4994
|
-
args[i] = { status: 'rejected', reason: e };
|
|
4995
|
-
if (--remaining === 0) {
|
|
4996
|
-
resolve(args);
|
|
4997
|
-
}
|
|
4998
|
-
}
|
|
4999
|
-
);
|
|
5000
|
-
return;
|
|
5001
|
-
}
|
|
5002
|
-
}
|
|
5003
|
-
args[i] = { status: 'fulfilled', value: val };
|
|
5004
|
-
if (--remaining === 0) {
|
|
5005
|
-
resolve(args);
|
|
5006
|
-
}
|
|
5007
|
-
}
|
|
5008
|
-
|
|
5009
|
-
for (var i = 0; i < args.length; i++) {
|
|
5010
|
-
res(i, args[i]);
|
|
5011
|
-
}
|
|
5012
|
-
});
|
|
5013
|
-
}
|
|
5014
|
-
|
|
5015
|
-
// Store setTimeout reference so promise-polyfill will be unaffected by
|
|
5016
|
-
// other code modifying setTimeout (like sinon.useFakeTimers())
|
|
5017
|
-
var setTimeoutFunc = setTimeout$1;
|
|
5018
|
-
|
|
5019
|
-
function isArray(x) {
|
|
5020
|
-
return Boolean(x && typeof x.length !== 'undefined');
|
|
5021
|
-
}
|
|
5022
|
-
|
|
5023
|
-
function noop() {}
|
|
5024
|
-
|
|
5025
|
-
// Polyfill for Function.prototype.bind
|
|
5026
|
-
function bind(fn, thisArg) {
|
|
5027
|
-
return function() {
|
|
5028
|
-
fn.apply(thisArg, arguments);
|
|
5029
|
-
};
|
|
5030
|
-
}
|
|
5031
|
-
|
|
5032
|
-
/**
|
|
5033
|
-
* @constructor
|
|
5034
|
-
* @param {Function} fn
|
|
5035
|
-
*/
|
|
5036
|
-
function Promise(fn) {
|
|
5037
|
-
if (!(this instanceof Promise))
|
|
5038
|
-
throw new TypeError('Promises must be constructed via new');
|
|
5039
|
-
if (typeof fn !== 'function') throw new TypeError('not a function');
|
|
5040
|
-
/** @type {!number} */
|
|
5041
|
-
this._state = 0;
|
|
5042
|
-
/** @type {!boolean} */
|
|
5043
|
-
this._handled = false;
|
|
5044
|
-
/** @type {Promise|undefined} */
|
|
5045
|
-
this._value = undefined;
|
|
5046
|
-
/** @type {!Array<!Function>} */
|
|
5047
|
-
this._deferreds = [];
|
|
5048
|
-
|
|
5049
|
-
doResolve(fn, this);
|
|
5050
|
-
}
|
|
5051
|
-
|
|
5052
|
-
function handle(self, deferred) {
|
|
5053
|
-
while (self._state === 3) {
|
|
5054
|
-
self = self._value;
|
|
5055
|
-
}
|
|
5056
|
-
if (self._state === 0) {
|
|
5057
|
-
self._deferreds.push(deferred);
|
|
5058
|
-
return;
|
|
5059
|
-
}
|
|
5060
|
-
self._handled = true;
|
|
5061
|
-
Promise._immediateFn(function() {
|
|
5062
|
-
var cb = self._state === 1 ? deferred.onFulfilled : deferred.onRejected;
|
|
5063
|
-
if (cb === null) {
|
|
5064
|
-
(self._state === 1 ? resolve : reject)(deferred.promise, self._value);
|
|
5065
|
-
return;
|
|
5066
|
-
}
|
|
5067
|
-
var ret;
|
|
5068
|
-
try {
|
|
5069
|
-
ret = cb(self._value);
|
|
5070
|
-
} catch (e) {
|
|
5071
|
-
reject(deferred.promise, e);
|
|
5072
|
-
return;
|
|
5073
|
-
}
|
|
5074
|
-
resolve(deferred.promise, ret);
|
|
5075
|
-
});
|
|
5076
|
-
}
|
|
5077
|
-
|
|
5078
|
-
function resolve(self, newValue) {
|
|
5079
|
-
try {
|
|
5080
|
-
// Promise Resolution Procedure: https://github.com/promises-aplus/promises-spec#the-promise-resolution-procedure
|
|
5081
|
-
if (newValue === self)
|
|
5082
|
-
throw new TypeError('A promise cannot be resolved with itself.');
|
|
5083
|
-
if (
|
|
5084
|
-
newValue &&
|
|
5085
|
-
(typeof newValue === 'object' || typeof newValue === 'function')
|
|
5086
|
-
) {
|
|
5087
|
-
var then = newValue.then;
|
|
5088
|
-
if (newValue instanceof Promise) {
|
|
5089
|
-
self._state = 3;
|
|
5090
|
-
self._value = newValue;
|
|
5091
|
-
finale(self);
|
|
5092
|
-
return;
|
|
5093
|
-
} else if (typeof then === 'function') {
|
|
5094
|
-
doResolve(bind(then, newValue), self);
|
|
5095
|
-
return;
|
|
5096
|
-
}
|
|
5097
|
-
}
|
|
5098
|
-
self._state = 1;
|
|
5099
|
-
self._value = newValue;
|
|
5100
|
-
finale(self);
|
|
5101
|
-
} catch (e) {
|
|
5102
|
-
reject(self, e);
|
|
5103
|
-
}
|
|
5104
|
-
}
|
|
4968
|
+
}
|
|
5105
4969
|
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
self._value = newValue;
|
|
5109
|
-
finale(self);
|
|
5110
|
-
}
|
|
4970
|
+
return Sizzle;
|
|
4971
|
+
};
|
|
5111
4972
|
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
}
|
|
5118
|
-
});
|
|
5119
|
-
}
|
|
4973
|
+
if ( module.exports ) {
|
|
4974
|
+
module.exports = Sizzle;
|
|
4975
|
+
} else {
|
|
4976
|
+
window.Sizzle = Sizzle;
|
|
4977
|
+
}
|
|
5120
4978
|
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
4979
|
+
// EXPOSE
|
|
4980
|
+
|
|
4981
|
+
} )( window );
|
|
4982
|
+
} (sizzle));
|
|
4983
|
+
|
|
4984
|
+
var sizzleExports = sizzle.exports;
|
|
4985
|
+
var Sizzle = /*@__PURE__*/getDefaultExportFromCjs(sizzleExports);
|
|
4986
|
+
|
|
4987
|
+
function wrapSizzle(Sizzle) {
|
|
4988
|
+
var proxy = _.extend(function () {
|
|
4989
|
+
return proxy.Sizzle.apply(this, arguments);
|
|
4990
|
+
}, Sizzle);
|
|
4991
|
+
proxy.reset = function () {
|
|
4992
|
+
proxy.Sizzle = Sizzle;
|
|
4993
|
+
proxy.matchesSelector = Sizzle.matchesSelector;
|
|
4994
|
+
proxy.matches = Sizzle.matches;
|
|
4995
|
+
};
|
|
4996
|
+
proxy.intercept = function (fn, methodName) {
|
|
4997
|
+
if (methodName === void 0) { methodName = 'Sizzle'; }
|
|
4998
|
+
proxy[methodName] = _.wrap(proxy[methodName], fn);
|
|
4999
|
+
};
|
|
5000
|
+
proxy.reset();
|
|
5001
|
+
return proxy;
|
|
5125
5002
|
}
|
|
5003
|
+
var SizzleProxy = wrapSizzle(Sizzle);
|
|
5126
5004
|
|
|
5127
5005
|
/**
|
|
5128
|
-
*
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
|
|
5006
|
+
* Find all Elements that match the CSS Selector.
|
|
5007
|
+
*
|
|
5008
|
+
* @param {string} cssSelector CSS selector used to search DOM
|
|
5009
|
+
* @returns {DomQuery} array with the matching elements
|
|
5010
|
+
* @access public
|
|
5011
|
+
* @category DOM
|
|
5012
|
+
* @example
|
|
5013
|
+
* pendo.dom('h1')[0].remove()
|
|
5014
|
+
* @example
|
|
5015
|
+
* pendo.dom('.left').css({ 'text-align': 'center' })
|
|
5016
|
+
*/ /**
|
|
5017
|
+
* Creates new DOM elements from HTML text.
|
|
5018
|
+
*
|
|
5019
|
+
* @param {string} htmlString HTML syntax used to produce new DOM elements
|
|
5020
|
+
* @returns {DomQuery} array with the matching elements
|
|
5021
|
+
* @access public
|
|
5022
|
+
* @category DOM
|
|
5023
|
+
* @example
|
|
5024
|
+
* pendo.dom('<div><span>this should create an unattached DOM node</span></div>');
|
|
5025
|
+
*/
|
|
5026
|
+
function dom(selection, context) {
|
|
5027
|
+
var self = this;
|
|
5028
|
+
var nodes;
|
|
5029
|
+
var tag;
|
|
5030
|
+
if (selection && selection instanceof dom) {
|
|
5031
|
+
return selection;
|
|
5032
|
+
}
|
|
5033
|
+
if (!(self instanceof dom)) {
|
|
5034
|
+
// eslint-disable-next-line new-cap
|
|
5035
|
+
return new dom(selection, context);
|
|
5036
|
+
}
|
|
5037
|
+
if (!selection) {
|
|
5038
|
+
nodes = [];
|
|
5039
|
+
}
|
|
5040
|
+
else if (selection.nodeType) {
|
|
5041
|
+
nodes = [selection];
|
|
5042
|
+
}
|
|
5043
|
+
else if ((tag = /^<(\w+)\/?>$/.exec(selection))) {
|
|
5044
|
+
nodes = [document.createElement(tag[1])];
|
|
5045
|
+
}
|
|
5046
|
+
else if (/^<[\w\W]+>$/.test(selection)) {
|
|
5047
|
+
var container = document.createElement('div');
|
|
5048
|
+
container.innerHTML = selection;
|
|
5049
|
+
nodes = _.toArray(container.childNodes);
|
|
5050
|
+
}
|
|
5051
|
+
else if (_.isString(selection)) {
|
|
5052
|
+
if (context instanceof dom) {
|
|
5053
|
+
context = context.length > 0 ? context[0] : null;
|
|
5054
|
+
}
|
|
5055
|
+
// CSS selector
|
|
5056
|
+
try {
|
|
5057
|
+
nodes = SizzleProxy(selection, context);
|
|
5058
|
+
}
|
|
5059
|
+
catch (e) {
|
|
5060
|
+
nodes = [];
|
|
5061
|
+
}
|
|
5062
|
+
}
|
|
5063
|
+
else {
|
|
5064
|
+
// handle case where selection is not sizzle-able (window, numbers, etc.)
|
|
5065
|
+
nodes = [selection];
|
|
5066
|
+
}
|
|
5067
|
+
_.each(nodes, function (node, i) {
|
|
5068
|
+
self[i] = node;
|
|
5069
|
+
});
|
|
5070
|
+
self.context = context;
|
|
5071
|
+
self.length = nodes.length;
|
|
5072
|
+
if (typeof Symbol !== 'undefined' && Symbol.iterator) {
|
|
5073
|
+
self[Symbol.iterator] = function () {
|
|
5074
|
+
var _i, nodes_1, node;
|
|
5075
|
+
return __generator(this, function (_a) {
|
|
5076
|
+
switch (_a.label) {
|
|
5077
|
+
case 0:
|
|
5078
|
+
_i = 0, nodes_1 = nodes;
|
|
5079
|
+
_a.label = 1;
|
|
5080
|
+
case 1:
|
|
5081
|
+
if (!(_i < nodes_1.length)) return [3 /*break*/, 4];
|
|
5082
|
+
node = nodes_1[_i];
|
|
5083
|
+
return [4 /*yield*/, node];
|
|
5084
|
+
case 2:
|
|
5085
|
+
_a.sent();
|
|
5086
|
+
_a.label = 3;
|
|
5087
|
+
case 3:
|
|
5088
|
+
_i++;
|
|
5089
|
+
return [3 /*break*/, 1];
|
|
5090
|
+
case 4: return [2 /*return*/];
|
|
5091
|
+
}
|
|
5092
|
+
});
|
|
5093
|
+
};
|
|
5094
|
+
}
|
|
5095
|
+
return self;
|
|
5134
5096
|
}
|
|
5135
5097
|
|
|
5136
5098
|
/**
|
|
5137
|
-
*
|
|
5138
|
-
* onFulfilled and onRejected are only called once.
|
|
5099
|
+
* Utility function to check if passed value exists. Returns false for `null` and `undefined`.
|
|
5139
5100
|
*
|
|
5140
|
-
*
|
|
5101
|
+
* @access public
|
|
5102
|
+
* @category Utility
|
|
5103
|
+
* @param {any} value argument to type check
|
|
5104
|
+
* @returns {Boolean}
|
|
5105
|
+
* @example
|
|
5106
|
+
* pendo.doesExist(null) => false
|
|
5107
|
+
* pendo.doesExist('foo') => true
|
|
5141
5108
|
*/
|
|
5142
|
-
function
|
|
5143
|
-
|
|
5144
|
-
try {
|
|
5145
|
-
fn(
|
|
5146
|
-
function(value) {
|
|
5147
|
-
if (done) return;
|
|
5148
|
-
done = true;
|
|
5149
|
-
resolve(self, value);
|
|
5150
|
-
},
|
|
5151
|
-
function(reason) {
|
|
5152
|
-
if (done) return;
|
|
5153
|
-
done = true;
|
|
5154
|
-
reject(self, reason);
|
|
5155
|
-
}
|
|
5156
|
-
);
|
|
5157
|
-
} catch (ex) {
|
|
5158
|
-
if (done) return;
|
|
5159
|
-
done = true;
|
|
5160
|
-
reject(self, ex);
|
|
5161
|
-
}
|
|
5109
|
+
function doesExist(arg) {
|
|
5110
|
+
return !(typeof arg === 'undefined' || arg === null);
|
|
5162
5111
|
}
|
|
5163
5112
|
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5113
|
+
var rtrim = /^\s+|\s+$/g;
|
|
5114
|
+
var trim = String.prototype.trim;
|
|
5115
|
+
if (!trim) {
|
|
5116
|
+
trim = function () {
|
|
5117
|
+
return this.replace(rtrim, '');
|
|
5118
|
+
};
|
|
5119
|
+
}
|
|
5167
5120
|
|
|
5168
|
-
|
|
5169
|
-
// @ts-ignore
|
|
5170
|
-
var prom = new this.constructor(noop);
|
|
5121
|
+
var deflate_min = {exports: {}};
|
|
5171
5122
|
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5123
|
+
/*
|
|
5124
|
+
* @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License
|
|
5125
|
+
*/
|
|
5175
5126
|
|
|
5176
|
-
|
|
5127
|
+
(function (module) {
|
|
5128
|
+
(function() {var n=void 0,w=!0,aa=this;function ba(f,d){var c=f.split("."),e=aa;!(c[0]in e)&&e.execScript&&e.execScript("var "+c[0]);for(var b;c.length&&(b=c.shift());)!c.length&&d!==n?e[b]=d:e=e[b]?e[b]:e[b]={};}var C="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array;function K(f,d){this.index="number"===typeof d?d:0;this.e=0;this.buffer=f instanceof(C?Uint8Array:Array)?f:new (C?Uint8Array:Array)(32768);if(2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&ca(this);}function ca(f){var d=f.buffer,c,e=d.length,b=new (C?Uint8Array:Array)(e<<1);if(C)b.set(d);else for(c=0;c<e;++c)b[c]=d[c];return f.buffer=b}
|
|
5129
|
+
K.prototype.b=function(f,d,c){var e=this.buffer,b=this.index,a=this.e,g=e[b],m;c&&1<d&&(f=8<d?(L[f&255]<<24|L[f>>>8&255]<<16|L[f>>>16&255]<<8|L[f>>>24&255])>>32-d:L[f]>>8-d);if(8>d+a)g=g<<d|f,a+=d;else for(m=0;m<d;++m)g=g<<1|f>>d-m-1&1,8===++a&&(a=0,e[b++]=L[g],g=0,b===e.length&&(e=ca(this)));e[b]=g;this.buffer=e;this.e=a;this.index=b;};K.prototype.finish=function(){var f=this.buffer,d=this.index,c;0<this.e&&(f[d]<<=8-this.e,f[d]=L[f[d]],d++);C?c=f.subarray(0,d):(f.length=d,c=f);return c};
|
|
5130
|
+
var da=new (C?Uint8Array:Array)(256),M;for(M=0;256>M;++M){for(var N=M,S=N,ea=7,N=N>>>1;N;N>>>=1)S<<=1,S|=N&1,--ea;da[M]=(S<<ea&255)>>>0;}var L=da;function ia(f){this.buffer=new (C?Uint16Array:Array)(2*f);this.length=0;}ia.prototype.getParent=function(f){return 2*((f-2)/4|0)};ia.prototype.push=function(f,d){var c,e,b=this.buffer,a;c=this.length;b[this.length++]=d;for(b[this.length++]=f;0<c;)if(e=this.getParent(c),b[c]>b[e])a=b[c],b[c]=b[e],b[e]=a,a=b[c+1],b[c+1]=b[e+1],b[e+1]=a,c=e;else break;return this.length};
|
|
5131
|
+
ia.prototype.pop=function(){var f,d,c=this.buffer,e,b,a;d=c[0];f=c[1];this.length-=2;c[0]=c[this.length];c[1]=c[this.length+1];for(a=0;;){b=2*a+2;if(b>=this.length)break;b+2<this.length&&c[b+2]>c[b]&&(b+=2);if(c[b]>c[a])e=c[a],c[a]=c[b],c[b]=e,e=c[a+1],c[a+1]=c[b+1],c[b+1]=e;else break;a=b;}return {index:f,value:d,length:this.length}};function ka(f,d){this.d=la;this.i=0;this.input=C&&f instanceof Array?new Uint8Array(f):f;this.c=0;d&&(d.lazy&&(this.i=d.lazy),"number"===typeof d.compressionType&&(this.d=d.compressionType),d.outputBuffer&&(this.a=C&&d.outputBuffer instanceof Array?new Uint8Array(d.outputBuffer):d.outputBuffer),"number"===typeof d.outputIndex&&(this.c=d.outputIndex));this.a||(this.a=new (C?Uint8Array:Array)(32768));}var la=2,na={NONE:0,h:1,g:la,n:3},T=[],U;
|
|
5132
|
+
for(U=0;288>U;U++)switch(w){case 143>=U:T.push([U+48,8]);break;case 255>=U:T.push([U-144+400,9]);break;case 279>=U:T.push([U-256+0,7]);break;case 287>=U:T.push([U-280+192,8]);break;default:throw "invalid literal: "+U;}
|
|
5133
|
+
ka.prototype.f=function(){var f,d,c,e,b=this.input;switch(this.d){case 0:c=0;for(e=b.length;c<e;){d=C?b.subarray(c,c+65535):b.slice(c,c+65535);c+=d.length;var a=d,g=c===e,m=n,k=n,p=n,t=n,u=n,l=this.a,h=this.c;if(C){for(l=new Uint8Array(this.a.buffer);l.length<=h+a.length+5;)l=new Uint8Array(l.length<<1);l.set(this.a);}m=g?1:0;l[h++]=m|0;k=a.length;p=~k+65536&65535;l[h++]=k&255;l[h++]=k>>>8&255;l[h++]=p&255;l[h++]=p>>>8&255;if(C)l.set(a,h),h+=a.length,l=l.subarray(0,h);else {t=0;for(u=a.length;t<u;++t)l[h++]=
|
|
5134
|
+
a[t];l.length=h;}this.c=h;this.a=l;}break;case 1:var q=new K(C?new Uint8Array(this.a.buffer):this.a,this.c);q.b(1,1,w);q.b(1,2,w);var s=oa(this,b),x,fa,z;x=0;for(fa=s.length;x<fa;x++)if(z=s[x],K.prototype.b.apply(q,T[z]),256<z)q.b(s[++x],s[++x],w),q.b(s[++x],5),q.b(s[++x],s[++x],w);else if(256===z)break;this.a=q.finish();this.c=this.a.length;break;case la:var B=new K(C?new Uint8Array(this.a.buffer):this.a,this.c),ta,J,O,P,Q,La=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],X,ua,Y,va,ga,ja=Array(19),
|
|
5135
|
+
wa,R,ha,y,xa;ta=la;B.b(1,1,w);B.b(ta,2,w);J=oa(this,b);X=pa(this.m,15);ua=qa(X);Y=pa(this.l,7);va=qa(Y);for(O=286;257<O&&0===X[O-1];O--);for(P=30;1<P&&0===Y[P-1];P--);var ya=O,za=P,F=new (C?Uint32Array:Array)(ya+za),r,G,v,Z,E=new (C?Uint32Array:Array)(316),D,A,H=new (C?Uint8Array:Array)(19);for(r=G=0;r<ya;r++)F[G++]=X[r];for(r=0;r<za;r++)F[G++]=Y[r];if(!C){r=0;for(Z=H.length;r<Z;++r)H[r]=0;}r=D=0;for(Z=F.length;r<Z;r+=G){for(G=1;r+G<Z&&F[r+G]===F[r];++G);v=G;if(0===F[r])if(3>v)for(;0<v--;)E[D++]=0,
|
|
5136
|
+
H[0]++;else for(;0<v;)A=138>v?v:138,A>v-3&&A<v&&(A=v-3),10>=A?(E[D++]=17,E[D++]=A-3,H[17]++):(E[D++]=18,E[D++]=A-11,H[18]++),v-=A;else if(E[D++]=F[r],H[F[r]]++,v--,3>v)for(;0<v--;)E[D++]=F[r],H[F[r]]++;else for(;0<v;)A=6>v?v:6,A>v-3&&A<v&&(A=v-3),E[D++]=16,E[D++]=A-3,H[16]++,v-=A;}f=C?E.subarray(0,D):E.slice(0,D);ga=pa(H,7);for(y=0;19>y;y++)ja[y]=ga[La[y]];for(Q=19;4<Q&&0===ja[Q-1];Q--);wa=qa(ga);B.b(O-257,5,w);B.b(P-1,5,w);B.b(Q-4,4,w);for(y=0;y<Q;y++)B.b(ja[y],3,w);y=0;for(xa=f.length;y<xa;y++)if(R=
|
|
5137
|
+
f[y],B.b(wa[R],ga[R],w),16<=R){y++;switch(R){case 16:ha=2;break;case 17:ha=3;break;case 18:ha=7;break;default:throw "invalid code: "+R;}B.b(f[y],ha,w);}var Aa=[ua,X],Ba=[va,Y],I,Ca,$,ma,Da,Ea,Fa,Ga;Da=Aa[0];Ea=Aa[1];Fa=Ba[0];Ga=Ba[1];I=0;for(Ca=J.length;I<Ca;++I)if($=J[I],B.b(Da[$],Ea[$],w),256<$)B.b(J[++I],J[++I],w),ma=J[++I],B.b(Fa[ma],Ga[ma],w),B.b(J[++I],J[++I],w);else if(256===$)break;this.a=B.finish();this.c=this.a.length;break;default:throw "invalid compression type";}return this.a};
|
|
5138
|
+
function ra(f,d){this.length=f;this.k=d;}
|
|
5139
|
+
var sa=function(){function f(b){switch(w){case 3===b:return [257,b-3,0];case 4===b:return [258,b-4,0];case 5===b:return [259,b-5,0];case 6===b:return [260,b-6,0];case 7===b:return [261,b-7,0];case 8===b:return [262,b-8,0];case 9===b:return [263,b-9,0];case 10===b:return [264,b-10,0];case 12>=b:return [265,b-11,1];case 14>=b:return [266,b-13,1];case 16>=b:return [267,b-15,1];case 18>=b:return [268,b-17,1];case 22>=b:return [269,b-19,2];case 26>=b:return [270,b-23,2];case 30>=b:return [271,b-27,2];case 34>=b:return [272,
|
|
5140
|
+
b-31,2];case 42>=b:return [273,b-35,3];case 50>=b:return [274,b-43,3];case 58>=b:return [275,b-51,3];case 66>=b:return [276,b-59,3];case 82>=b:return [277,b-67,4];case 98>=b:return [278,b-83,4];case 114>=b:return [279,b-99,4];case 130>=b:return [280,b-115,4];case 162>=b:return [281,b-131,5];case 194>=b:return [282,b-163,5];case 226>=b:return [283,b-195,5];case 257>=b:return [284,b-227,5];case 258===b:return [285,b-258,0];default:throw "invalid length: "+b;}}var d=[],c,e;for(c=3;258>=c;c++)e=f(c),d[c]=e[2]<<24|
|
|
5141
|
+
e[1]<<16|e[0];return d}(),Ha=C?new Uint32Array(sa):sa;
|
|
5142
|
+
function oa(f,d){function c(b,c){var a=b.k,d=[],e=0,f;f=Ha[b.length];d[e++]=f&65535;d[e++]=f>>16&255;d[e++]=f>>24;var g;switch(w){case 1===a:g=[0,a-1,0];break;case 2===a:g=[1,a-2,0];break;case 3===a:g=[2,a-3,0];break;case 4===a:g=[3,a-4,0];break;case 6>=a:g=[4,a-5,1];break;case 8>=a:g=[5,a-7,1];break;case 12>=a:g=[6,a-9,2];break;case 16>=a:g=[7,a-13,2];break;case 24>=a:g=[8,a-17,3];break;case 32>=a:g=[9,a-25,3];break;case 48>=a:g=[10,a-33,4];break;case 64>=a:g=[11,a-49,4];break;case 96>=a:g=[12,a-
|
|
5143
|
+
65,5];break;case 128>=a:g=[13,a-97,5];break;case 192>=a:g=[14,a-129,6];break;case 256>=a:g=[15,a-193,6];break;case 384>=a:g=[16,a-257,7];break;case 512>=a:g=[17,a-385,7];break;case 768>=a:g=[18,a-513,8];break;case 1024>=a:g=[19,a-769,8];break;case 1536>=a:g=[20,a-1025,9];break;case 2048>=a:g=[21,a-1537,9];break;case 3072>=a:g=[22,a-2049,10];break;case 4096>=a:g=[23,a-3073,10];break;case 6144>=a:g=[24,a-4097,11];break;case 8192>=a:g=[25,a-6145,11];break;case 12288>=a:g=[26,a-8193,12];break;case 16384>=
|
|
5144
|
+
a:g=[27,a-12289,12];break;case 24576>=a:g=[28,a-16385,13];break;case 32768>=a:g=[29,a-24577,13];break;default:throw "invalid distance";}f=g;d[e++]=f[0];d[e++]=f[1];d[e++]=f[2];var k,m;k=0;for(m=d.length;k<m;++k)l[h++]=d[k];s[d[0]]++;x[d[3]]++;q=b.length+c-1;u=null;}var e,b,a,g,m,k={},p,t,u,l=C?new Uint16Array(2*d.length):[],h=0,q=0,s=new (C?Uint32Array:Array)(286),x=new (C?Uint32Array:Array)(30),fa=f.i,z;if(!C){for(a=0;285>=a;)s[a++]=0;for(a=0;29>=a;)x[a++]=0;}s[256]=1;e=0;for(b=d.length;e<b;++e){a=
|
|
5145
|
+
m=0;for(g=3;a<g&&e+a!==b;++a)m=m<<8|d[e+a];k[m]===n&&(k[m]=[]);p=k[m];if(!(0<q--)){for(;0<p.length&&32768<e-p[0];)p.shift();if(e+3>=b){u&&c(u,-1);a=0;for(g=b-e;a<g;++a)z=d[e+a],l[h++]=z,++s[z];break}0<p.length?(t=Ia(d,e,p),u?u.length<t.length?(z=d[e-1],l[h++]=z,++s[z],c(t,0)):c(u,-1):t.length<fa?u=t:c(t,0)):u?c(u,-1):(z=d[e],l[h++]=z,++s[z]);}p.push(e);}l[h++]=256;s[256]++;f.m=s;f.l=x;return C?l.subarray(0,h):l}
|
|
5146
|
+
function Ia(f,d,c){var e,b,a=0,g,m,k,p,t=f.length;m=0;p=c.length;a:for(;m<p;m++){e=c[p-m-1];g=3;if(3<a){for(k=a;3<k;k--)if(f[e+k-1]!==f[d+k-1])continue a;g=a;}for(;258>g&&d+g<t&&f[e+g]===f[d+g];)++g;g>a&&(b=e,a=g);if(258===g)break}return new ra(a,d-b)}
|
|
5147
|
+
function pa(f,d){var c=f.length,e=new ia(572),b=new (C?Uint8Array:Array)(c),a,g,m,k,p;if(!C)for(k=0;k<c;k++)b[k]=0;for(k=0;k<c;++k)0<f[k]&&e.push(k,f[k]);a=Array(e.length/2);g=new (C?Uint32Array:Array)(e.length/2);if(1===a.length)return b[e.pop().index]=1,b;k=0;for(p=e.length/2;k<p;++k)a[k]=e.pop(),g[k]=a[k].value;m=Ja(g,g.length,d);k=0;for(p=a.length;k<p;++k)b[a[k].index]=m[k];return b}
|
|
5148
|
+
function Ja(f,d,c){function e(a){var b=k[a][p[a]];b===d?(e(a+1),e(a+1)):--g[b];++p[a];}var b=new (C?Uint16Array:Array)(c),a=new (C?Uint8Array:Array)(c),g=new (C?Uint8Array:Array)(d),m=Array(c),k=Array(c),p=Array(c),t=(1<<c)-d,u=1<<c-1,l,h,q,s,x;b[c-1]=d;for(h=0;h<c;++h)t<u?a[h]=0:(a[h]=1,t-=u),t<<=1,b[c-2-h]=(b[c-1-h]/2|0)+d;b[0]=a[0];m[0]=Array(b[0]);k[0]=Array(b[0]);for(h=1;h<c;++h)b[h]>2*b[h-1]+a[h]&&(b[h]=2*b[h-1]+a[h]),m[h]=Array(b[h]),k[h]=Array(b[h]);for(l=0;l<d;++l)g[l]=c;for(q=0;q<b[c-1];++q)m[c-
|
|
5149
|
+
1][q]=f[q],k[c-1][q]=q;for(l=0;l<c;++l)p[l]=0;1===a[c-1]&&(--g[0],++p[c-1]);for(h=c-2;0<=h;--h){s=l=0;x=p[h+1];for(q=0;q<b[h];q++)s=m[h+1][x]+m[h+1][x+1],s>f[l]?(m[h][q]=s,k[h][q]=d,x+=2):(m[h][q]=f[l],k[h][q]=l,++l);p[h]=0;1===a[h]&&e(h);}return g}
|
|
5150
|
+
function qa(f){var d=new (C?Uint16Array:Array)(f.length),c=[],e=[],b=0,a,g,m,k;a=0;for(g=f.length;a<g;a++)c[f[a]]=(c[f[a]]|0)+1;a=1;for(g=16;a<=g;a++)e[a]=b,b+=c[a]|0,b<<=1;a=0;for(g=f.length;a<g;a++){b=e[f[a]];e[f[a]]+=1;m=d[a]=0;for(k=f[a];m<k;m++)d[a]=d[a]<<1|b&1,b>>>=1;}return d}function Ka(f,d){this.input=f;this.a=new (C?Uint8Array:Array)(32768);this.d=V.g;var c={},e;if((d||!(d={}))&&"number"===typeof d.compressionType)this.d=d.compressionType;for(e in d)c[e]=d[e];c.outputBuffer=this.a;this.j=new ka(this.input,c);}var V=na;
|
|
5151
|
+
Ka.prototype.f=function(){var f,d,c,e,b,a,g=0;a=this.a;switch(8){case 8:f=Math.LOG2E*Math.log(32768)-8;break;default:throw Error("invalid compression method");}d=f<<4|8;a[g++]=d;switch(8){case 8:switch(this.d){case V.NONE:e=0;break;case V.h:e=1;break;case V.g:e=2;break;default:throw Error("unsupported compression type");}break;default:throw Error("invalid compression method");}c=e<<6|0;a[g++]=c|31-(256*d+c)%31;var m=this.input;if("string"===typeof m){var k=m.split(""),p,t;p=0;for(t=k.length;p<t;p++)k[p]=
|
|
5152
|
+
(k[p].charCodeAt(0)&255)>>>0;m=k;}for(var u=1,l=0,h=m.length,q,s=0;0<h;){q=1024<h?1024:h;h-=q;do u+=m[s++],l+=u;while(--q);u%=65521;l%=65521;}b=(l<<16|u)>>>0;this.j.c=g;a=this.j.f();g=a.length;C&&(a=new Uint8Array(a.buffer),a.length<=g+4&&(this.a=new Uint8Array(a.length+4),this.a.set(a),a=this.a),a=a.subarray(0,g+4));a[g++]=b>>24&255;a[g++]=b>>16&255;a[g++]=b>>8&255;a[g++]=b&255;return a};ba("Zlib.Deflate",Ka);ba("Zlib.Deflate.compress",function(f,d){return (new Ka(f,d)).f()});ba("Zlib.Deflate.prototype.compress",Ka.prototype.f);var Ma={NONE:V.NONE,FIXED:V.h,DYNAMIC:V.g},Na,Oa,W,Pa;if(Object.keys)Na=Object.keys(Ma);else for(Oa in Na=[],W=0,Ma)Na[W++]=Oa;W=0;for(Pa=Na.length;W<Pa;++W)Oa=Na[W],ba("Zlib.Deflate.CompressionType."+Oa,Ma[Oa]);}).call(module.exports);
|
|
5153
|
+
} (deflate_min));
|
|
5177
5154
|
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
if (!isArray(arr)) {
|
|
5181
|
-
return reject(new TypeError('Promise.all accepts an array'));
|
|
5182
|
-
}
|
|
5155
|
+
var deflate_minExports = deflate_min.exports;
|
|
5156
|
+
var ZLibDeflate = /*@__PURE__*/getDefaultExportFromCjs(deflate_minExports);
|
|
5183
5157
|
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5158
|
+
({
|
|
5159
|
+
'Deflate': ZLibDeflate.Zlib.Deflate
|
|
5160
|
+
});
|
|
5187
5161
|
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
res(i, val);
|
|
5197
|
-
},
|
|
5198
|
-
reject
|
|
5199
|
-
);
|
|
5200
|
-
return;
|
|
5201
|
-
}
|
|
5202
|
-
}
|
|
5203
|
-
args[i] = val;
|
|
5204
|
-
if (--remaining === 0) {
|
|
5205
|
-
resolve(args);
|
|
5162
|
+
function getZoneSafeMethod$1(_, method, target) {
|
|
5163
|
+
if (target === void 0) { target = window; }
|
|
5164
|
+
var zoneSymbol = '__symbol__';
|
|
5165
|
+
/* global Zone */
|
|
5166
|
+
if (typeof Zone !== 'undefined' && _.isFunction(Zone[zoneSymbol])) {
|
|
5167
|
+
var fn = target[Zone[zoneSymbol](method)];
|
|
5168
|
+
if (_.isFunction(fn)) {
|
|
5169
|
+
return fn;
|
|
5206
5170
|
}
|
|
5207
|
-
} catch (ex) {
|
|
5208
|
-
reject(ex);
|
|
5209
|
-
}
|
|
5210
|
-
}
|
|
5211
|
-
|
|
5212
|
-
for (var i = 0; i < args.length; i++) {
|
|
5213
|
-
res(i, args[i]);
|
|
5214
5171
|
}
|
|
5215
|
-
|
|
5216
|
-
}
|
|
5172
|
+
return target[method];
|
|
5173
|
+
}
|
|
5217
5174
|
|
|
5218
|
-
|
|
5175
|
+
var crc32_min = {exports: {}};
|
|
5219
5176
|
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
}
|
|
5177
|
+
/*
|
|
5178
|
+
* @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License
|
|
5179
|
+
*/
|
|
5224
5180
|
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5181
|
+
(function (module) {
|
|
5182
|
+
(function() {var f=this;function h(c,a){var b=c.split("."),e=f;!(b[0]in e)&&e.execScript&&e.execScript("var "+b[0]);for(var d;b.length&&(d=b.shift());)!b.length&&void 0!==a?e[d]=a:e=e[d]?e[d]:e[d]={};}var l={c:function(c,a,b){return l.update(c,0,a,b)},update:function(c,a,b,e){var d=l.a,g="number"===typeof b?b:b=0,k="number"===typeof e?e:c.length;a^=4294967295;for(g=k&7;g--;++b)a=a>>>8^d[(a^c[b])&255];for(g=k>>3;g--;b+=8)a=a>>>8^d[(a^c[b])&255],a=a>>>8^d[(a^c[b+1])&255],a=a>>>8^d[(a^c[b+2])&255],a=a>>>8^d[(a^c[b+3])&255],a=a>>>8^d[(a^c[b+4])&255],a=a>>>8^d[(a^c[b+5])&255],a=a>>>8^d[(a^c[b+6])&255],a=a>>>8^d[(a^c[b+7])&255];return (a^4294967295)>>>0},d:function(c,a){return (l.a[(c^a)&255]^c>>>8)>>>
|
|
5183
|
+
0},b:[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,
|
|
5184
|
+
2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,
|
|
5185
|
+
2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,
|
|
5186
|
+
2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,
|
|
5187
|
+
3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,
|
|
5188
|
+
936918E3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]};l.a="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array?new Uint32Array(l.b):l.b;h("Zlib.CRC32",l);h("Zlib.CRC32.calc",l.c);h("Zlib.CRC32.update",l.update);}).call(module.exports);
|
|
5189
|
+
} (crc32_min));
|
|
5229
5190
|
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
reject(value);
|
|
5233
|
-
});
|
|
5234
|
-
};
|
|
5191
|
+
var crc32_minExports = crc32_min.exports;
|
|
5192
|
+
var ZlibCRC32 = /*@__PURE__*/getDefaultExportFromCjs(crc32_minExports);
|
|
5235
5193
|
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5194
|
+
({
|
|
5195
|
+
'CRC32': ZlibCRC32.Zlib.CRC32
|
|
5196
|
+
});
|
|
5197
|
+
function randomElement(array) {
|
|
5198
|
+
return array[Math.floor(Math.random() * array.length)];
|
|
5199
|
+
}
|
|
5200
|
+
function randomString(length) {
|
|
5201
|
+
var letters = 'abcdefghijklmnopqrstuvwxyz';
|
|
5202
|
+
var charset = letters + letters.toUpperCase() + '1234567890';
|
|
5203
|
+
var R = '';
|
|
5204
|
+
var charsetArray = charset.split('');
|
|
5205
|
+
for (var i = 0; i < length; i++) {
|
|
5206
|
+
R += randomElement(charsetArray);
|
|
5240
5207
|
}
|
|
5208
|
+
return R;
|
|
5209
|
+
}
|
|
5210
|
+
// Date.now() can be overridden by libraries to return a Date object instead of timestamp
|
|
5211
|
+
// This is our now() function
|
|
5212
|
+
function getNow() {
|
|
5213
|
+
return new Date().getTime();
|
|
5214
|
+
}
|
|
5215
|
+
function getZoneSafeMethod(method, target) {
|
|
5216
|
+
if (target === void 0) { target = window; }
|
|
5217
|
+
return getZoneSafeMethod$1(_, method, target);
|
|
5218
|
+
}
|
|
5219
|
+
function getIsFiniteImpl(window) {
|
|
5220
|
+
return _.isFunction(window.isFinite) ? window.isFinite
|
|
5221
|
+
: (window.Number && _.isFunction(window.Number.isFinite)) ? window.Number.isFinite
|
|
5222
|
+
: function (obj) {
|
|
5223
|
+
return obj != Infinity && obj != -Infinity && !isNaN(obj);
|
|
5224
|
+
};
|
|
5225
|
+
}
|
|
5226
|
+
getIsFiniteImpl(window);
|
|
5241
5227
|
|
|
5242
|
-
|
|
5243
|
-
|
|
5228
|
+
function DomData() {
|
|
5229
|
+
this.ownerKey = '_pendo_' + randomString(8);
|
|
5230
|
+
}
|
|
5231
|
+
_.extend(DomData.prototype, {
|
|
5232
|
+
'cache': function (owner) {
|
|
5233
|
+
if (!_.isObject(owner))
|
|
5234
|
+
return {};
|
|
5235
|
+
var cache = owner[this.ownerKey];
|
|
5236
|
+
if (!cache) {
|
|
5237
|
+
cache = {};
|
|
5238
|
+
owner[this.ownerKey] = cache;
|
|
5239
|
+
}
|
|
5240
|
+
return cache;
|
|
5241
|
+
},
|
|
5242
|
+
'set': function (owner, key, value) {
|
|
5243
|
+
var cache = this.cache(owner);
|
|
5244
|
+
cache[key] = value;
|
|
5245
|
+
return cache;
|
|
5246
|
+
},
|
|
5247
|
+
'get': function (owner, key) {
|
|
5248
|
+
return key === undefined ? this.cache(owner) : owner[this.ownerKey] && owner[this.ownerKey][key];
|
|
5249
|
+
},
|
|
5250
|
+
'remove': function (owner, key) {
|
|
5251
|
+
var cache = this.cache(owner);
|
|
5252
|
+
delete cache[key];
|
|
5253
|
+
if (key === undefined || _.isEmpty(cache)) {
|
|
5254
|
+
owner[this.ownerKey] = undefined;
|
|
5255
|
+
}
|
|
5244
5256
|
}
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
// Use polyfill for setImmediate for performance gains
|
|
5249
|
-
Promise._immediateFn =
|
|
5250
|
-
// @ts-ignore
|
|
5251
|
-
(typeof setImmediate === 'function' &&
|
|
5252
|
-
function(fn) {
|
|
5253
|
-
// @ts-ignore
|
|
5254
|
-
setImmediate(fn);
|
|
5255
|
-
}) ||
|
|
5256
|
-
function(fn) {
|
|
5257
|
-
setTimeoutFunc(fn, 0);
|
|
5258
|
-
};
|
|
5259
|
-
|
|
5260
|
-
Promise._unhandledRejectionFn = function _unhandledRejectionFn(err) {
|
|
5261
|
-
if (typeof console !== 'undefined' && console) {
|
|
5262
|
-
console.warn('Possible Unhandled Promise Rejection:', err); // eslint-disable-line no-console
|
|
5263
|
-
}
|
|
5264
|
-
};
|
|
5265
|
-
|
|
5266
|
-
return Promise;
|
|
5267
|
-
|
|
5268
|
-
})));
|
|
5257
|
+
});
|
|
5258
|
+
var DomData$1 = new DomData();
|
|
5269
5259
|
|
|
5270
|
-
|
|
5260
|
+
function hasComposedPath(evt) {
|
|
5261
|
+
return evt && _.isFunction(evt.composedPath);
|
|
5262
|
+
}
|
|
5263
|
+
function getComposedPath(evt) {
|
|
5264
|
+
if (hasComposedPath(evt)) {
|
|
5265
|
+
try {
|
|
5266
|
+
return evt.composedPath();
|
|
5267
|
+
}
|
|
5268
|
+
catch (e) {
|
|
5269
|
+
return evt.path;
|
|
5270
|
+
}
|
|
5271
|
+
}
|
|
5272
|
+
return null;
|
|
5273
|
+
}
|
|
5274
|
+
function getShadowRoot(elem) {
|
|
5275
|
+
return elem.shadowRoot;
|
|
5276
|
+
}
|
|
5277
|
+
function isElementShadowRoot(elem, _win) {
|
|
5278
|
+
if (!_win) {
|
|
5279
|
+
_win = window;
|
|
5280
|
+
}
|
|
5281
|
+
return typeof _win.ShadowRoot !== 'undefined' && elem instanceof _win.ShadowRoot && elem.host;
|
|
5282
|
+
}
|
|
5283
|
+
function getParent(elem, _win) {
|
|
5284
|
+
return isElementShadowRoot(elem, _win) ? elem.host : elem.parentNode;
|
|
5285
|
+
}
|
|
5271
5286
|
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
}
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5287
|
+
var shadowAPI = (function () {
|
|
5288
|
+
function isShadowSelector(selector) {
|
|
5289
|
+
return selector ? selector.indexOf(shadowAPI.PSEUDO_ELEMENT) > -1 : false;
|
|
5290
|
+
}
|
|
5291
|
+
function stringifyTokens(selector) {
|
|
5292
|
+
return _.reduce(selector, function (string, selectorChunk) {
|
|
5293
|
+
if (selectorChunk.value === shadowAPI.PSEUDO_SAFE) {
|
|
5294
|
+
return string + shadowAPI.PSEUDO_ELEMENT;
|
|
5295
|
+
}
|
|
5296
|
+
return string + selectorChunk.value;
|
|
5297
|
+
}, '');
|
|
5298
|
+
}
|
|
5299
|
+
function tokenizeSelectors(selection, Sizzle) {
|
|
5300
|
+
var safeSelection = selection.replace(shadowAPI.PSEUDO_REGEX, shadowAPI.PSEUDO_SAFE);
|
|
5301
|
+
return _.map(Sizzle.tokenize(safeSelection), stringifyTokens);
|
|
5302
|
+
}
|
|
5303
|
+
function parseShadowSelector(selector) {
|
|
5304
|
+
var splitter = selector.split(shadowAPI.PSEUDO_ELEMENT);
|
|
5305
|
+
var css = splitter.splice(0, 1)[0];
|
|
5306
|
+
var shadowCss = splitter.join(shadowAPI.PSEUDO_ELEMENT);
|
|
5307
|
+
return { 'baseCss': css, 'shadowCss': shadowCss };
|
|
5308
|
+
}
|
|
5309
|
+
return {
|
|
5310
|
+
'PSEUDO_ELEMENT': '::shadow',
|
|
5311
|
+
'PSEUDO_SAFE': ':shadow',
|
|
5312
|
+
'PSEUDO_REGEX': /::shadow/g,
|
|
5313
|
+
'getComposedPath': getComposedPath,
|
|
5314
|
+
'getShadowRoot': getShadowRoot,
|
|
5315
|
+
'isElementShadowRoot': isElementShadowRoot,
|
|
5316
|
+
'getParent': getParent,
|
|
5317
|
+
'isShadowSelector': isShadowSelector,
|
|
5318
|
+
'wrapSizzle': function (Sizzle) {
|
|
5319
|
+
Sizzle.intercept(function (Sizzle, selection, context, results, seed) {
|
|
5320
|
+
if (!isShadowSelector(selection)) {
|
|
5321
|
+
return Sizzle(selection, context, results, seed);
|
|
5322
|
+
}
|
|
5323
|
+
if (!_.isFunction(document.documentElement.attachShadow)) {
|
|
5324
|
+
return Sizzle(selection.replace(shadowAPI.PSEUDO_REGEX, ''), context, results, seed);
|
|
5325
|
+
}
|
|
5326
|
+
// We'll need to potentially be a Recursive Descent Parser if the Selector
|
|
5327
|
+
// has Shadow Root piercing pseudo selector.
|
|
5328
|
+
function shadowSizzleWrapper(query, context, results, seed) {
|
|
5329
|
+
if (isShadowSelector(query)) {
|
|
5330
|
+
var shadowQuery = parseShadowSelector(query);
|
|
5331
|
+
var baseElem = shadowSizzleWrapper(shadowQuery.baseCss, context);
|
|
5332
|
+
return _.reduce(baseElem, function (shadowResults, base) {
|
|
5333
|
+
if (!shadowAPI.getShadowRoot(base))
|
|
5334
|
+
return shadowResults;
|
|
5335
|
+
return shadowResults.concat(shadowSizzleWrapper(shadowQuery.shadowCss, shadowAPI.getShadowRoot(base), results, seed));
|
|
5336
|
+
}, []);
|
|
5337
|
+
}
|
|
5338
|
+
// base case
|
|
5339
|
+
return Sizzle(query, context, results, seed);
|
|
5340
|
+
}
|
|
5341
|
+
var selectors = tokenizeSelectors(selection, Sizzle);
|
|
5342
|
+
return _.reduce(selectors, function (nodes, query) {
|
|
5343
|
+
return nodes.concat(shadowSizzleWrapper(query, context, results, seed));
|
|
5344
|
+
}, []);
|
|
5345
|
+
});
|
|
5346
|
+
Sizzle.intercept(function (matchesSelector, element, selector) {
|
|
5347
|
+
if (shadowAPI.isElementShadowRoot(element)) {
|
|
5348
|
+
return false;
|
|
5349
|
+
}
|
|
5350
|
+
if (isShadowSelector(selector)) {
|
|
5351
|
+
return Sizzle(selector, document, null, [element]).length > 0;
|
|
5352
|
+
}
|
|
5353
|
+
return matchesSelector(element, selector);
|
|
5354
|
+
}, 'matchesSelector');
|
|
5355
|
+
}
|
|
5356
|
+
};
|
|
5357
|
+
})();
|
|
5307
5358
|
|
|
5308
5359
|
var EventTarget = /** @class */ (function () {
|
|
5309
5360
|
function EventTarget() {
|
|
@@ -7243,7 +7294,7 @@ function getScreenPosition(element) {
|
|
|
7243
7294
|
};
|
|
7244
7295
|
}
|
|
7245
7296
|
|
|
7246
|
-
var VERSION = '2.
|
|
7297
|
+
var VERSION = '2.281.0_';
|
|
7247
7298
|
function isExtensionAgent() {
|
|
7248
7299
|
var installType = getPendoConfigValue('installType') || getPendoConfigFromEnclosingScope().installType;
|
|
7249
7300
|
return installType === EXTENSION_INSTALL_TYPE;
|
|
@@ -9798,6 +9849,7 @@ var ElementGetter = /** @class */ (function () {
|
|
|
9798
9849
|
if (el && isInDoc)
|
|
9799
9850
|
return el;
|
|
9800
9851
|
if (el && !isInDoc) {
|
|
9852
|
+
this.teardown(el);
|
|
9801
9853
|
return undefined;
|
|
9802
9854
|
}
|
|
9803
9855
|
el = dom(this.cssSelector)[0];
|
|
@@ -9824,16 +9876,16 @@ var ElementGetter = /** @class */ (function () {
|
|
|
9824
9876
|
el.addEventListener(event, function (e) { return _this.onEvent(e); });
|
|
9825
9877
|
}
|
|
9826
9878
|
}
|
|
9827
|
-
this.listeners[event] = this.listeners[event]
|
|
9828
|
-
|
|
9879
|
+
this.listeners[event] = this.listeners[event] || [];
|
|
9880
|
+
this.listeners[event].push(callback);
|
|
9829
9881
|
};
|
|
9830
9882
|
ElementGetter.prototype.onEvent = function (evt) {
|
|
9831
9883
|
var type = evt.type;
|
|
9832
9884
|
_.each(this.listeners[type], function (cb) { return cb(evt); });
|
|
9833
9885
|
};
|
|
9834
|
-
ElementGetter.prototype.teardown = function () {
|
|
9886
|
+
ElementGetter.prototype.teardown = function (el) {
|
|
9835
9887
|
var _this = this;
|
|
9836
|
-
|
|
9888
|
+
if (el === void 0) { el = this.get(); }
|
|
9837
9889
|
if (el) {
|
|
9838
9890
|
_.each(this.events, function (evtType) { return el.removeEventListener(evtType, _this.onEvent); });
|
|
9839
9891
|
}
|