sift.csp.min.js
27.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = global || self, factory(global.sift = {}));
}(this, (function (exports) { 'use strict';
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
/* global Reflect, Promise */
var extendStatics = function(d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
function __extends(d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}
var typeChecker = function (type) {
var typeString = "[object " + type + "]";
return function (value) {
return getClassName(value) === typeString;
};
};
var getClassName = function (value) { return Object.prototype.toString.call(value); };
var comparable = function (value) {
if (value instanceof Date) {
return value.getTime();
}
else if (isArray(value)) {
return value.map(comparable);
}
else if (value && typeof value.toJSON === "function") {
return value.toJSON();
}
return value;
};
var isArray = typeChecker("Array");
var isObject = typeChecker("Object");
var isFunction = typeChecker("Function");
var isVanillaObject = function (value) {
return (value &&
(value.constructor === Object ||
value.constructor === Array ||
value.constructor.toString() === "function Object() { [native code] }" ||
value.constructor.toString() === "function Array() { [native code] }") &&
!value.toJSON);
};
var equals = function (a, b) {
if (a == null && a == b) {
return true;
}
if (a === b) {
return true;
}
if (Object.prototype.toString.call(a) !== Object.prototype.toString.call(b)) {
return false;
}
if (isArray(a)) {
if (a.length !== b.length) {
return false;
}
for (var i = 0, length_1 = a.length; i < length_1; i++) {
if (!equals(a[i], b[i]))
return false;
}
return true;
}
else if (isObject(a)) {
if (Object.keys(a).length !== Object.keys(b).length) {
return false;
}
for (var key in a) {
if (!equals(a[key], b[key]))
return false;
}
return true;
}
return false;
};
/**
* Walks through each value given the context - used for nested operations. E.g:
* { "person.address": { $eq: "blarg" }}
*/
var walkKeyPathValues = function (item, keyPath, next, depth, key, owner) {
var currentKey = keyPath[depth];
// if array, then try matching. Might fall through for cases like:
// { $eq: [1, 2, 3] }, [ 1, 2, 3 ].
if (isArray(item) && isNaN(Number(currentKey))) {
for (var i = 0, length_1 = item.length; i < length_1; i++) {
// if FALSE is returned, then terminate walker. For operations, this simply
// means that the search critera was met.
if (!walkKeyPathValues(item[i], keyPath, next, depth, i, item)) {
return false;
}
}
}
if (depth === keyPath.length || item == null) {
return next(item, key, owner);
}
return walkKeyPathValues(item[currentKey], keyPath, next, depth + 1, currentKey, item);
};
var BaseOperation = /** @class */ (function () {
function BaseOperation(params, owneryQuery, options) {
this.params = params;
this.owneryQuery = owneryQuery;
this.options = options;
this.init();
}
BaseOperation.prototype.init = function () { };
BaseOperation.prototype.reset = function () {
this.done = false;
this.keep = false;
};
return BaseOperation;
}());
var NamedBaseOperation = /** @class */ (function (_super) {
__extends(NamedBaseOperation, _super);
function NamedBaseOperation(params, owneryQuery, options, name) {
var _this = _super.call(this, params, owneryQuery, options) || this;
_this.name = name;
return _this;
}
return NamedBaseOperation;
}(BaseOperation));
var GroupOperation = /** @class */ (function (_super) {
__extends(GroupOperation, _super);
function GroupOperation(params, owneryQuery, options, children) {
var _this = _super.call(this, params, owneryQuery, options) || this;
_this.children = children;
return _this;
}
/**
*/
GroupOperation.prototype.reset = function () {
this.keep = false;
this.done = false;
for (var i = 0, length_2 = this.children.length; i < length_2; i++) {
this.children[i].reset();
}
};
/**
*/
GroupOperation.prototype.childrenNext = function (item, key, owner) {
var done = true;
var keep = true;
for (var i = 0, length_3 = this.children.length; i < length_3; i++) {
var childOperation = this.children[i];
childOperation.next(item, key, owner);
if (!childOperation.keep) {
keep = false;
}
if (childOperation.done) {
if (!childOperation.keep) {
break;
}
}
else {
done = false;
}
}
this.done = done;
this.keep = keep;
};
return GroupOperation;
}(BaseOperation));
var NamedGroupOperation = /** @class */ (function (_super) {
__extends(NamedGroupOperation, _super);
function NamedGroupOperation(params, owneryQuery, options, children, name) {
var _this = _super.call(this, params, owneryQuery, options, children) || this;
_this.name = name;
return _this;
}
return NamedGroupOperation;
}(GroupOperation));
var QueryOperation = /** @class */ (function (_super) {
__extends(QueryOperation, _super);
function QueryOperation() {
return _super !== null && _super.apply(this, arguments) || this;
}
/**
*/
QueryOperation.prototype.next = function (item, key, parent) {
this.childrenNext(item, key, parent);
};
return QueryOperation;
}(GroupOperation));
var NestedOperation = /** @class */ (function (_super) {
__extends(NestedOperation, _super);
function NestedOperation(keyPath, params, owneryQuery, options, children) {
var _this = _super.call(this, params, owneryQuery, options, children) || this;
_this.keyPath = keyPath;
/**
*/
_this._nextNestedValue = function (value, key, owner) {
_this.childrenNext(value, key, owner);
return !_this.done;
};
return _this;
}
/**
*/
NestedOperation.prototype.next = function (item, key, parent) {
walkKeyPathValues(item, this.keyPath, this._nextNestedValue, 0, key, parent);
};
return NestedOperation;
}(GroupOperation));
var createTester = function (a, compare) {
if (a instanceof Function) {
return a;
}
if (a instanceof RegExp) {
return function (b) {
var result = typeof b === "string" && a.test(b);
a.lastIndex = 0;
return result;
};
}
var comparableA = comparable(a);
return function (b) { return compare(comparableA, comparable(b)); };
};
var EqualsOperation = /** @class */ (function (_super) {
__extends(EqualsOperation, _super);
function EqualsOperation() {
return _super !== null && _super.apply(this, arguments) || this;
}
EqualsOperation.prototype.init = function () {
this._test = createTester(this.params, this.options.compare);
};
EqualsOperation.prototype.next = function (item, key, parent) {
if (!Array.isArray(parent) || parent.hasOwnProperty(key)) {
if (this._test(item, key, parent)) {
this.done = true;
this.keep = true;
}
}
};
return EqualsOperation;
}(BaseOperation));
var createEqualsOperation = function (params, owneryQuery, options) { return new EqualsOperation(params, owneryQuery, options); };
var NopeOperation = /** @class */ (function (_super) {
__extends(NopeOperation, _super);
function NopeOperation() {
return _super !== null && _super.apply(this, arguments) || this;
}
NopeOperation.prototype.next = function () {
this.done = true;
this.keep = false;
};
return NopeOperation;
}(BaseOperation));
var numericalOperationCreator = function (createNumericalOperation) { return function (params, owneryQuery, options, name) {
if (params == null) {
return new NopeOperation(params, owneryQuery, options);
}
return createNumericalOperation(params, owneryQuery, options, name);
}; };
var numericalOperation = function (createTester) {
return numericalOperationCreator(function (params, owneryQuery, options) {
var typeofParams = typeof comparable(params);
var test = createTester(params);
return new EqualsOperation(function (b) {
return typeof comparable(b) === typeofParams && test(b);
}, owneryQuery, options);
});
};
var createNamedOperation = function (name, params, parentQuery, options) {
var operationCreator = options.operations[name];
if (!operationCreator) {
throw new Error("Unsupported operation: " + name);
}
return operationCreator(params, parentQuery, options, name);
};
var containsOperation = function (query) {
for (var key in query) {
if (key.charAt(0) === "$")
return true;
}
return false;
};
var createNestedOperation = function (keyPath, nestedQuery, owneryQuery, options) {
if (containsOperation(nestedQuery)) {
var _a = createQueryOperations(nestedQuery, options), selfOperations = _a[0], nestedOperations = _a[1];
if (nestedOperations.length) {
throw new Error("Property queries must contain only operations, or exact objects.");
}
return new NestedOperation(keyPath, nestedQuery, owneryQuery, options, selfOperations);
}
return new NestedOperation(keyPath, nestedQuery, owneryQuery, options, [
new EqualsOperation(nestedQuery, owneryQuery, options)
]);
};
var createQueryOperation = function (query, owneryQuery, _a) {
if (owneryQuery === void 0) { owneryQuery = null; }
var _b = _a === void 0 ? {} : _a, compare = _b.compare, operations = _b.operations;
var options = {
compare: compare || equals,
operations: Object.assign({}, operations || {})
};
var _c = createQueryOperations(query, options), selfOperations = _c[0], nestedOperations = _c[1];
var ops = [];
if (selfOperations.length) {
ops.push(new NestedOperation([], query, owneryQuery, options, selfOperations));
}
ops.push.apply(ops, nestedOperations);
if (ops.length === 1) {
return ops[0];
}
return new QueryOperation(query, owneryQuery, options, ops);
};
var createQueryOperations = function (query, options) {
var selfOperations = [];
var nestedOperations = [];
if (!isVanillaObject(query)) {
selfOperations.push(new EqualsOperation(query, query, options));
return [selfOperations, nestedOperations];
}
for (var key in query) {
if (key.charAt(0) === "$") {
var op = createNamedOperation(key, query[key], query, options);
// probably just a flag for another operation (like $options)
if (op != null) {
selfOperations.push(op);
}
}
else {
nestedOperations.push(createNestedOperation(key.split("."), query[key], query, options));
}
}
return [selfOperations, nestedOperations];
};
var createOperationTester = function (operation) { return function (item, key, owner) {
operation.reset();
operation.next(item, key, owner);
return operation.keep;
}; };
var createQueryTester = function (query, options) {
if (options === void 0) { options = {}; }
return createOperationTester(createQueryOperation(query, null, options));
};
var $Ne = /** @class */ (function (_super) {
__extends($Ne, _super);
function $Ne() {
return _super !== null && _super.apply(this, arguments) || this;
}
$Ne.prototype.init = function () {
this._test = createTester(this.params, this.options.compare);
};
$Ne.prototype.reset = function () {
_super.prototype.reset.call(this);
this.keep = true;
};
$Ne.prototype.next = function (item) {
if (this._test(item)) {
this.done = true;
this.keep = false;
}
};
return $Ne;
}(NamedBaseOperation));
// https://docs.mongodb.com/manual/reference/operator/query/elemMatch/
var $ElemMatch = /** @class */ (function (_super) {
__extends($ElemMatch, _super);
function $ElemMatch() {
return _super !== null && _super.apply(this, arguments) || this;
}
$ElemMatch.prototype.init = function () {
this._queryOperation = createQueryOperation(this.params, this.owneryQuery, this.options);
};
$ElemMatch.prototype.reset = function () {
_super.prototype.reset.call(this);
this._queryOperation.reset();
};
$ElemMatch.prototype.next = function (item) {
if (isArray(item)) {
for (var i = 0, length_1 = item.length; i < length_1; i++) {
// reset query operation since item being tested needs to pass _all_ query
// operations for it to be a success
this._queryOperation.reset();
// check item
this._queryOperation.next(item[i], i, item);
this.keep = this.keep || this._queryOperation.keep;
}
this.done = true;
}
else {
this.done = false;
this.keep = false;
}
};
return $ElemMatch;
}(NamedBaseOperation));
var $Not = /** @class */ (function (_super) {
__extends($Not, _super);
function $Not() {
return _super !== null && _super.apply(this, arguments) || this;
}
$Not.prototype.init = function () {
this._queryOperation = createQueryOperation(this.params, this.owneryQuery, this.options);
};
$Not.prototype.reset = function () {
this._queryOperation.reset();
};
$Not.prototype.next = function (item, key, owner) {
this._queryOperation.next(item, key, owner);
this.done = this._queryOperation.done;
this.keep = !this._queryOperation.keep;
};
return $Not;
}(NamedBaseOperation));
var $Size = /** @class */ (function (_super) {
__extends($Size, _super);
function $Size() {
return _super !== null && _super.apply(this, arguments) || this;
}
$Size.prototype.init = function () { };
$Size.prototype.next = function (item) {
if (isArray(item) && item.length === this.params) {
this.done = true;
this.keep = true;
}
// if (parent && parent.length === this.params) {
// this.done = true;
// this.keep = true;
// }
};
return $Size;
}(NamedBaseOperation));
var $Or = /** @class */ (function (_super) {
__extends($Or, _super);
function $Or() {
return _super !== null && _super.apply(this, arguments) || this;
}
$Or.prototype.init = function () {
var _this = this;
this._ops = this.params.map(function (op) {
return createQueryOperation(op, null, _this.options);
});
};
$Or.prototype.reset = function () {
this.done = false;
this.keep = false;
for (var i = 0, length_2 = this._ops.length; i < length_2; i++) {
this._ops[i].reset();
}
};
$Or.prototype.next = function (item, key, owner) {
var done = false;
var success = false;
for (var i = 0, length_3 = this._ops.length; i < length_3; i++) {
var op = this._ops[i];
op.next(item, key, owner);
if (op.keep) {
done = true;
success = op.keep;
break;
}
}
this.keep = success;
this.done = done;
};
return $Or;
}(NamedBaseOperation));
var $Nor = /** @class */ (function (_super) {
__extends($Nor, _super);
function $Nor() {
return _super !== null && _super.apply(this, arguments) || this;
}
$Nor.prototype.next = function (item, key, owner) {
_super.prototype.next.call(this, item, key, owner);
this.keep = !this.keep;
};
return $Nor;
}($Or));
var $In = /** @class */ (function (_super) {
__extends($In, _super);
function $In() {
return _super !== null && _super.apply(this, arguments) || this;
}
$In.prototype.init = function () {
var _this = this;
this._testers = this.params.map(function (value) {
if (containsOperation(value)) {
throw new Error("cannot nest $ under " + _this.constructor.name.toLowerCase());
}
return createTester(value, _this.options.compare);
});
};
$In.prototype.next = function (item, key, owner) {
var done = false;
var success = false;
for (var i = 0, length_4 = this._testers.length; i < length_4; i++) {
var test = this._testers[i];
if (test(item)) {
done = true;
success = true;
break;
}
}
this.keep = success;
this.done = done;
};
return $In;
}(NamedBaseOperation));
var $Nin = /** @class */ (function (_super) {
__extends($Nin, _super);
function $Nin() {
return _super !== null && _super.apply(this, arguments) || this;
}
$Nin.prototype.next = function (item, key, owner) {
_super.prototype.next.call(this, item, key, owner);
this.keep = !this.keep;
};
return $Nin;
}($In));
var $Exists = /** @class */ (function (_super) {
__extends($Exists, _super);
function $Exists() {
return _super !== null && _super.apply(this, arguments) || this;
}
$Exists.prototype.next = function (item, key, owner) {
if (owner.hasOwnProperty(key) === this.params) {
this.done = true;
this.keep = true;
}
};
return $Exists;
}(NamedBaseOperation));
var $And = /** @class */ (function (_super) {
__extends($And, _super);
function $And(params, owneryQuery, options, name) {
return _super.call(this, params, owneryQuery, options, params.map(function (query) { return createQueryOperation(query, owneryQuery, options); }), name) || this;
}
$And.prototype.next = function (item, key, owner) {
this.childrenNext(item, key, owner);
};
return $And;
}(NamedGroupOperation));
var $eq = function (params, owneryQuery, options) {
return new EqualsOperation(params, owneryQuery, options);
};
var $ne = function (params, owneryQuery, options, name) { return new $Ne(params, owneryQuery, options, name); };
var $or = function (params, owneryQuery, options, name) { return new $Or(params, owneryQuery, options, name); };
var $nor = function (params, owneryQuery, options, name) { return new $Nor(params, owneryQuery, options, name); };
var $elemMatch = function (params, owneryQuery, options, name) { return new $ElemMatch(params, owneryQuery, options, name); };
var $nin = function (params, owneryQuery, options, name) { return new $Nin(params, owneryQuery, options, name); };
var $in = function (params, owneryQuery, options, name) { return new $In(params, owneryQuery, options, name); };
var $lt = numericalOperation(function (params) { return function (b) { return b < params; }; });
var $lte = numericalOperation(function (params) { return function (b) { return b <= params; }; });
var $gt = numericalOperation(function (params) { return function (b) { return b > params; }; });
var $gte = numericalOperation(function (params) { return function (b) { return b >= params; }; });
var $mod = function (_a, owneryQuery, options) {
var mod = _a[0], equalsValue = _a[1];
return new EqualsOperation(function (b) { return comparable(b) % mod === equalsValue; }, owneryQuery, options);
};
var $exists = function (params, owneryQuery, options, name) { return new $Exists(params, owneryQuery, options, name); };
var $regex = function (pattern, owneryQuery, options) {
return new EqualsOperation(new RegExp(pattern, owneryQuery.$options), owneryQuery, options);
};
var $not = function (params, owneryQuery, options, name) { return new $Not(params, owneryQuery, options, name); };
var typeAliases = {
number: function (v) { return typeof v === "number"; },
string: function (v) { return typeof v === "string"; },
bool: function (v) { return typeof v === "boolean"; },
array: function (v) { return Array.isArray(v); },
null: function (v) { return v === null; },
timestamp: function (v) { return v instanceof Date; }
};
var $type = function (clazz, owneryQuery, options) {
return new EqualsOperation(function (b) {
if (typeof clazz === "string") {
if (!typeAliases[clazz]) {
throw new Error("Type alias does not exist");
}
return typeAliases[clazz](b);
}
return b != null ? b instanceof clazz || b.constructor === clazz : false;
}, owneryQuery, options);
};
var $and = function (params, ownerQuery, options, name) { return new $And(params, ownerQuery, options, name); };
var $all = $and;
var $size = function (params, ownerQuery, options) { return new $Size(params, ownerQuery, options, "$size"); };
var $options = function () { return null; };
var $where = function (params, ownerQuery, options) {
var test;
if (isFunction(params)) {
test = params;
}
else {
throw new Error("In CSP mode, sift does not support strings in \"$where\" condition");
}
return new EqualsOperation(function (b) { return test.bind(b)(b); }, ownerQuery, options);
};
var defaultOperations = /*#__PURE__*/Object.freeze({
__proto__: null,
$Size: $Size,
$eq: $eq,
$ne: $ne,
$or: $or,
$nor: $nor,
$elemMatch: $elemMatch,
$nin: $nin,
$in: $in,
$lt: $lt,
$lte: $lte,
$gt: $gt,
$gte: $gte,
$mod: $mod,
$exists: $exists,
$regex: $regex,
$not: $not,
$type: $type,
$and: $and,
$all: $all,
$size: $size,
$options: $options,
$where: $where
});
var createDefaultQueryOperation = function (query, ownerQuery, _a) {
var _b = _a === void 0 ? {} : _a, compare = _b.compare, operations = _b.operations;
return createQueryOperation(query, ownerQuery, {
compare: compare,
operations: Object.assign({}, defaultOperations, operations || {})
});
};
var createDefaultQueryTester = function (query, options) {
if (options === void 0) { options = {}; }
var op = createDefaultQueryOperation(query, null, options);
return createOperationTester(op);
};
exports.$Size = $Size;
exports.$all = $all;
exports.$and = $and;
exports.$elemMatch = $elemMatch;
exports.$eq = $eq;
exports.$exists = $exists;
exports.$gt = $gt;
exports.$gte = $gte;
exports.$in = $in;
exports.$lt = $lt;
exports.$lte = $lte;
exports.$mod = $mod;
exports.$ne = $ne;
exports.$nin = $nin;
exports.$nor = $nor;
exports.$not = $not;
exports.$options = $options;
exports.$or = $or;
exports.$regex = $regex;
exports.$size = $size;
exports.$type = $type;
exports.$where = $where;
exports.EqualsOperation = EqualsOperation;
exports.createDefaultQueryOperation = createDefaultQueryOperation;
exports.createEqualsOperation = createEqualsOperation;
exports.createOperationTester = createOperationTester;
exports.createQueryOperation = createQueryOperation;
exports.createQueryTester = createQueryTester;
exports.default = createDefaultQueryTester;
Object.defineProperty(exports, '__esModule', { value: true });
})));
//# sourceMappingURL=sift.csp.min.js.map