@rebilly/instruments 6.0.1 → 6.0.3
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/CHANGELOG.md +14 -0
- package/dist/index.js +1654 -855
- package/dist/index.min.js +12 -12
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -5323,7 +5323,7 @@ function cloneArrayDeep(val, instanceClone) {
|
|
|
5323
5323
|
return res;
|
|
5324
5324
|
}
|
|
5325
5325
|
var cloneDeep_1 = cloneDeep;
|
|
5326
|
-
const version = "53.0.
|
|
5326
|
+
const version = "53.0.1";
|
|
5327
5327
|
let urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
5328
5328
|
let nanoid = (size2 = 21) => {
|
|
5329
5329
|
let id2 = "";
|
|
@@ -5687,9 +5687,9 @@ function AmlChecksResource({ apiHandler }) {
|
|
|
5687
5687
|
offset = null,
|
|
5688
5688
|
sort = null,
|
|
5689
5689
|
filter = null,
|
|
5690
|
-
q = null
|
|
5690
|
+
q: q2 = null
|
|
5691
5691
|
} = {}) {
|
|
5692
|
-
const params = { limit, offset, sort, filter, q };
|
|
5692
|
+
const params = { limit, offset, sort, filter, q: q2 };
|
|
5693
5693
|
return apiHandler.getAll(`aml-checks`, params);
|
|
5694
5694
|
},
|
|
5695
5695
|
get({ id: id2 }) {
|
|
@@ -5760,12 +5760,12 @@ function ApplicationsResource({ apiHandler }) {
|
|
|
5760
5760
|
limit = null,
|
|
5761
5761
|
offset = null,
|
|
5762
5762
|
filter = null,
|
|
5763
|
-
q = null,
|
|
5763
|
+
q: q2 = null,
|
|
5764
5764
|
expand = null,
|
|
5765
5765
|
fields = null,
|
|
5766
5766
|
sort = null
|
|
5767
5767
|
} = {}) {
|
|
5768
|
-
const params = { limit, offset, filter, q, expand, fields, sort };
|
|
5768
|
+
const params = { limit, offset, filter, q: q2, expand, fields, sort };
|
|
5769
5769
|
return apiHandler.getAll(`applications`, params);
|
|
5770
5770
|
},
|
|
5771
5771
|
create({ data: data2 }) {
|
|
@@ -5801,9 +5801,9 @@ function BillingPortalsResource$1({ apiHandler }) {
|
|
|
5801
5801
|
offset = null,
|
|
5802
5802
|
sort = null,
|
|
5803
5803
|
filter = null,
|
|
5804
|
-
q = null
|
|
5804
|
+
q: q2 = null
|
|
5805
5805
|
} = {}) {
|
|
5806
|
-
const params = { limit, offset, sort, filter, q };
|
|
5806
|
+
const params = { limit, offset, sort, filter, q: q2 };
|
|
5807
5807
|
return apiHandler.getAll(`billing-portals`, params);
|
|
5808
5808
|
},
|
|
5809
5809
|
create({ id: id2 = "", data: data2 }) {
|
|
@@ -5827,9 +5827,9 @@ function BlocklistsResource({ apiHandler }) {
|
|
|
5827
5827
|
offset = null,
|
|
5828
5828
|
sort = null,
|
|
5829
5829
|
filter = null,
|
|
5830
|
-
q = null
|
|
5830
|
+
q: q2 = null
|
|
5831
5831
|
} = {}) {
|
|
5832
|
-
const params = { limit, offset, sort, filter, q };
|
|
5832
|
+
const params = { limit, offset, sort, filter, q: q2 };
|
|
5833
5833
|
return apiHandler.getAll(`blocklists`, params);
|
|
5834
5834
|
},
|
|
5835
5835
|
create({ id: id2 = "", data: data2 }) {
|
|
@@ -5925,9 +5925,9 @@ function CheckoutFormsResource$1({ apiHandler }) {
|
|
|
5925
5925
|
offset = null,
|
|
5926
5926
|
sort = null,
|
|
5927
5927
|
filter = null,
|
|
5928
|
-
q = null
|
|
5928
|
+
q: q2 = null
|
|
5929
5929
|
} = {}) {
|
|
5930
|
-
const params = { limit, offset, sort, filter, q };
|
|
5930
|
+
const params = { limit, offset, sort, filter, q: q2 };
|
|
5931
5931
|
return apiHandler.getAll(`checkout-forms`, params);
|
|
5932
5932
|
},
|
|
5933
5933
|
create({ id: id2 = "", data: data2 }) {
|
|
@@ -5950,10 +5950,10 @@ function CouponsResource({ apiHandler }) {
|
|
|
5950
5950
|
limit = null,
|
|
5951
5951
|
offset = null,
|
|
5952
5952
|
filter = null,
|
|
5953
|
-
q = null,
|
|
5953
|
+
q: q2 = null,
|
|
5954
5954
|
sort = null
|
|
5955
5955
|
} = {}) {
|
|
5956
|
-
const params = { limit, offset, filter, q, sort };
|
|
5956
|
+
const params = { limit, offset, filter, q: q2, sort };
|
|
5957
5957
|
return apiHandler.getAll(`coupons-redemptions`, params);
|
|
5958
5958
|
},
|
|
5959
5959
|
redeem({ data: data2 }) {
|
|
@@ -5969,10 +5969,10 @@ function CouponsResource({ apiHandler }) {
|
|
|
5969
5969
|
limit = null,
|
|
5970
5970
|
offset = null,
|
|
5971
5971
|
filter = null,
|
|
5972
|
-
q = null,
|
|
5972
|
+
q: q2 = null,
|
|
5973
5973
|
sort = null
|
|
5974
5974
|
} = {}) {
|
|
5975
|
-
const params = { limit, offset, filter, q, sort };
|
|
5975
|
+
const params = { limit, offset, filter, q: q2, sort };
|
|
5976
5976
|
return apiHandler.getAll(`coupons`, params);
|
|
5977
5977
|
},
|
|
5978
5978
|
create({ id: id2 = "", data: data2 }) {
|
|
@@ -5996,9 +5996,9 @@ function CreditMemosResource({ apiHandler }) {
|
|
|
5996
5996
|
sort = null,
|
|
5997
5997
|
limit = null,
|
|
5998
5998
|
offset = null,
|
|
5999
|
-
q = null
|
|
5999
|
+
q: q2 = null
|
|
6000
6000
|
} = {}) {
|
|
6001
|
-
const params = { filter, sort, limit, offset, q };
|
|
6001
|
+
const params = { filter, sort, limit, offset, q: q2 };
|
|
6002
6002
|
return apiHandler.getAll(`credit-memos`, params);
|
|
6003
6003
|
},
|
|
6004
6004
|
create({ id: id2 = "", data: data2 }) {
|
|
@@ -6022,9 +6022,9 @@ function CreditMemosResource({ apiHandler }) {
|
|
|
6022
6022
|
offset = null,
|
|
6023
6023
|
filter = null,
|
|
6024
6024
|
sort = null,
|
|
6025
|
-
q = null
|
|
6025
|
+
q: q2 = null
|
|
6026
6026
|
}) {
|
|
6027
|
-
const params = { limit, offset, filter, sort, q };
|
|
6027
|
+
const params = { limit, offset, filter, sort, q: q2 };
|
|
6028
6028
|
return apiHandler.getAll(`credit-memos/${id2}/timeline`, params);
|
|
6029
6029
|
},
|
|
6030
6030
|
createTimelineComment({ id: id2, data: data2 }) {
|
|
@@ -6045,9 +6045,9 @@ function CustomDomainsResource({ apiHandler }) {
|
|
|
6045
6045
|
offset = null,
|
|
6046
6046
|
sort = null,
|
|
6047
6047
|
filter = null,
|
|
6048
|
-
q = null
|
|
6048
|
+
q: q2 = null
|
|
6049
6049
|
} = {}) {
|
|
6050
|
-
const params = { limit, offset, sort, filter, q };
|
|
6050
|
+
const params = { limit, offset, sort, filter, q: q2 };
|
|
6051
6051
|
return apiHandler.getAll(`custom-domains`, params);
|
|
6052
6052
|
},
|
|
6053
6053
|
create({ data: data2 }) {
|
|
@@ -6139,12 +6139,12 @@ function CustomersResource$1({ apiHandler }) {
|
|
|
6139
6139
|
limit = null,
|
|
6140
6140
|
offset = null,
|
|
6141
6141
|
filter = null,
|
|
6142
|
-
q = null,
|
|
6142
|
+
q: q2 = null,
|
|
6143
6143
|
expand = null,
|
|
6144
6144
|
fields = null,
|
|
6145
6145
|
sort = null
|
|
6146
6146
|
} = {}) {
|
|
6147
|
-
const params = { limit, offset, filter, q, expand, fields, sort };
|
|
6147
|
+
const params = { limit, offset, filter, q: q2, expand, fields, sort };
|
|
6148
6148
|
return apiHandler.getAll(`customers`, params);
|
|
6149
6149
|
},
|
|
6150
6150
|
create({ id: id2 = "", data: data2, expand = null }) {
|
|
@@ -6182,9 +6182,9 @@ function CustomersResource$1({ apiHandler }) {
|
|
|
6182
6182
|
offset = null,
|
|
6183
6183
|
filter = null,
|
|
6184
6184
|
sort = null,
|
|
6185
|
-
q = null
|
|
6185
|
+
q: q2 = null
|
|
6186
6186
|
}) {
|
|
6187
|
-
const params = { limit, offset, filter, sort, q };
|
|
6187
|
+
const params = { limit, offset, filter, sort, q: q2 };
|
|
6188
6188
|
return apiHandler.getAll(`customers/${id2}/timeline`, params);
|
|
6189
6189
|
},
|
|
6190
6190
|
createTimelineComment({ id: id2, data: data2 }) {
|
|
@@ -6208,9 +6208,9 @@ function CustomersResource$1({ apiHandler }) {
|
|
|
6208
6208
|
offset = null,
|
|
6209
6209
|
filter = null,
|
|
6210
6210
|
sort = null,
|
|
6211
|
-
q = null
|
|
6211
|
+
q: q2 = null
|
|
6212
6212
|
}) {
|
|
6213
|
-
const params = { limit, offset, filter, sort, q };
|
|
6213
|
+
const params = { limit, offset, filter, sort, q: q2 };
|
|
6214
6214
|
return apiHandler.getAll(`customers/${id2}/edd-timeline`, params);
|
|
6215
6215
|
},
|
|
6216
6216
|
createEddTimelineComment({ id: id2, data: data2 }) {
|
|
@@ -6250,10 +6250,10 @@ function DisputesResource({ apiHandler }) {
|
|
|
6250
6250
|
sort = null,
|
|
6251
6251
|
limit = null,
|
|
6252
6252
|
offset = null,
|
|
6253
|
-
q = null,
|
|
6253
|
+
q: q2 = null,
|
|
6254
6254
|
expand = null
|
|
6255
6255
|
} = {}) {
|
|
6256
|
-
const params = { filter, sort, limit, offset, q, expand };
|
|
6256
|
+
const params = { filter, sort, limit, offset, q: q2, expand };
|
|
6257
6257
|
return apiHandler.getAll(`disputes`, params);
|
|
6258
6258
|
},
|
|
6259
6259
|
create({ id: id2 = "", data: data2, expand = null }) {
|
|
@@ -6279,9 +6279,9 @@ function EmailDeliverySettingsResource({ apiHandler }) {
|
|
|
6279
6279
|
offset = null,
|
|
6280
6280
|
filter = null,
|
|
6281
6281
|
sort = null,
|
|
6282
|
-
q = null
|
|
6282
|
+
q: q2 = null
|
|
6283
6283
|
} = {}) {
|
|
6284
|
-
const params = { limit, offset, filter, sort, q };
|
|
6284
|
+
const params = { limit, offset, filter, sort, q: q2 };
|
|
6285
6285
|
return apiHandler.getAll(`email-delivery-settings`, params);
|
|
6286
6286
|
},
|
|
6287
6287
|
create({ data: data2 }) {
|
|
@@ -6308,11 +6308,11 @@ function EmailMessagesResource({ apiHandler }) {
|
|
|
6308
6308
|
getAll({
|
|
6309
6309
|
limit = null,
|
|
6310
6310
|
offset = null,
|
|
6311
|
-
q = null,
|
|
6311
|
+
q: q2 = null,
|
|
6312
6312
|
sort = null,
|
|
6313
6313
|
filter = null
|
|
6314
6314
|
} = {}) {
|
|
6315
|
-
const params = { limit, offset, q, sort, filter };
|
|
6315
|
+
const params = { limit, offset, q: q2, sort, filter };
|
|
6316
6316
|
return apiHandler.getAll(`email-messages`, params);
|
|
6317
6317
|
},
|
|
6318
6318
|
create({ data: data2 }) {
|
|
@@ -6360,9 +6360,9 @@ function EventsResource({ apiHandler }) {
|
|
|
6360
6360
|
offset = null,
|
|
6361
6361
|
filter = null,
|
|
6362
6362
|
sort = null,
|
|
6363
|
-
q = null
|
|
6363
|
+
q: q2 = null
|
|
6364
6364
|
}) {
|
|
6365
|
-
const params = { limit, offset, filter, sort, q };
|
|
6365
|
+
const params = { limit, offset, filter, sort, q: q2 };
|
|
6366
6366
|
return apiHandler.getAll(`events/${eventType}/timeline`, params);
|
|
6367
6367
|
},
|
|
6368
6368
|
createTimelineComment({ eventType, data: data2 }) {
|
|
@@ -6379,11 +6379,11 @@ function EventsResource({ apiHandler }) {
|
|
|
6379
6379
|
limit = null,
|
|
6380
6380
|
offset = null,
|
|
6381
6381
|
filter = null,
|
|
6382
|
-
q = null,
|
|
6382
|
+
q: q2 = null,
|
|
6383
6383
|
sort = null,
|
|
6384
6384
|
fields = null
|
|
6385
6385
|
}) {
|
|
6386
|
-
const params = { limit, offset, filter, q, sort, fields };
|
|
6386
|
+
const params = { limit, offset, filter, q: q2, sort, fields };
|
|
6387
6387
|
return apiHandler.getAll(`events/${eventType}/rules/history`, params);
|
|
6388
6388
|
},
|
|
6389
6389
|
getRulesVersionNumber({ eventType, version: version2, fields = null }) {
|
|
@@ -6405,11 +6405,11 @@ function EventsResource({ apiHandler }) {
|
|
|
6405
6405
|
limit = null,
|
|
6406
6406
|
offset = null,
|
|
6407
6407
|
filter = null,
|
|
6408
|
-
q = null,
|
|
6408
|
+
q: q2 = null,
|
|
6409
6409
|
sort = null,
|
|
6410
6410
|
fields = null
|
|
6411
6411
|
}) {
|
|
6412
|
-
const params = { limit, offset, filter, q, sort, fields };
|
|
6412
|
+
const params = { limit, offset, filter, q: q2, sort, fields };
|
|
6413
6413
|
return apiHandler.getAll(`events/${eventType}/rules/drafts`, params);
|
|
6414
6414
|
},
|
|
6415
6415
|
createDraftRuleset({ eventType, data: data2 }) {
|
|
@@ -6491,12 +6491,12 @@ function FilesResource({ apiHandler }) {
|
|
|
6491
6491
|
limit = null,
|
|
6492
6492
|
offset = null,
|
|
6493
6493
|
filter = null,
|
|
6494
|
-
q = null,
|
|
6494
|
+
q: q2 = null,
|
|
6495
6495
|
expand = null,
|
|
6496
6496
|
fields = null,
|
|
6497
6497
|
sort = null
|
|
6498
6498
|
} = {}) {
|
|
6499
|
-
const params = { limit, offset, filter, q, expand, fields, sort };
|
|
6499
|
+
const params = { limit, offset, filter, q: q2, expand, fields, sort };
|
|
6500
6500
|
return apiHandler.getAll(`attachments`, params);
|
|
6501
6501
|
},
|
|
6502
6502
|
attach({ id: id2 = "", data: data2, expand = null }) {
|
|
@@ -6517,11 +6517,11 @@ function FilesResource({ apiHandler }) {
|
|
|
6517
6517
|
limit = null,
|
|
6518
6518
|
offset = null,
|
|
6519
6519
|
filter = null,
|
|
6520
|
-
q = null,
|
|
6520
|
+
q: q2 = null,
|
|
6521
6521
|
fields = null,
|
|
6522
6522
|
sort = null
|
|
6523
6523
|
} = {}) {
|
|
6524
|
-
const params = { limit, offset, filter, q, fields, sort };
|
|
6524
|
+
const params = { limit, offset, filter, q: q2, fields, sort };
|
|
6525
6525
|
return apiHandler.getAll(`files`, params);
|
|
6526
6526
|
},
|
|
6527
6527
|
upload({ fileObject }) {
|
|
@@ -6598,10 +6598,10 @@ function GatewayAccountsResource({ apiHandler }) {
|
|
|
6598
6598
|
offset = null,
|
|
6599
6599
|
sort = null,
|
|
6600
6600
|
filter = null,
|
|
6601
|
-
q = null,
|
|
6601
|
+
q: q2 = null,
|
|
6602
6602
|
fields = null
|
|
6603
6603
|
} = {}) {
|
|
6604
|
-
const params = { limit, offset, sort, filter, q, fields };
|
|
6604
|
+
const params = { limit, offset, sort, filter, q: q2, fields };
|
|
6605
6605
|
return apiHandler.getAll(`gateway-accounts`, params);
|
|
6606
6606
|
},
|
|
6607
6607
|
create({ id: id2 = "", data: data2 }) {
|
|
@@ -6675,9 +6675,9 @@ function GatewayAccountsResource({ apiHandler }) {
|
|
|
6675
6675
|
offset = null,
|
|
6676
6676
|
filter = null,
|
|
6677
6677
|
sort = null,
|
|
6678
|
-
q = null
|
|
6678
|
+
q: q2 = null
|
|
6679
6679
|
}) {
|
|
6680
|
-
const params = { limit, offset, filter, sort, q };
|
|
6680
|
+
const params = { limit, offset, filter, sort, q: q2 };
|
|
6681
6681
|
return apiHandler.getAll(`gateway-accounts/${id2}/timeline`, params);
|
|
6682
6682
|
},
|
|
6683
6683
|
createTimelineComment({ id: id2, data: data2 }) {
|
|
@@ -6719,10 +6719,10 @@ function InvoicesResource$1({ apiHandler }) {
|
|
|
6719
6719
|
sort = null,
|
|
6720
6720
|
limit = null,
|
|
6721
6721
|
offset = null,
|
|
6722
|
-
q = null,
|
|
6722
|
+
q: q2 = null,
|
|
6723
6723
|
expand = null
|
|
6724
6724
|
} = {}) {
|
|
6725
|
-
const params = { filter, sort, limit, offset, q, expand };
|
|
6725
|
+
const params = { filter, sort, limit, offset, q: q2, expand };
|
|
6726
6726
|
return apiHandler.getAll(`invoices`, params);
|
|
6727
6727
|
},
|
|
6728
6728
|
create({ id: id2 = "", data: data2 }) {
|
|
@@ -6782,9 +6782,9 @@ function InvoicesResource$1({ apiHandler }) {
|
|
|
6782
6782
|
offset = null,
|
|
6783
6783
|
filter = null,
|
|
6784
6784
|
sort = null,
|
|
6785
|
-
q = null
|
|
6785
|
+
q: q2 = null
|
|
6786
6786
|
}) {
|
|
6787
|
-
const params = { limit, offset, filter, sort, q };
|
|
6787
|
+
const params = { limit, offset, filter, sort, q: q2 };
|
|
6788
6788
|
return apiHandler.getAll(`invoices/${id2}/timeline`, params);
|
|
6789
6789
|
},
|
|
6790
6790
|
createTimelineComment({ id: id2, data: data2 }) {
|
|
@@ -6956,9 +6956,9 @@ function ListsResource({ apiHandler }) {
|
|
|
6956
6956
|
filter = null,
|
|
6957
6957
|
sort = null,
|
|
6958
6958
|
fields = null,
|
|
6959
|
-
q = null
|
|
6959
|
+
q: q2 = null
|
|
6960
6960
|
} = {}) {
|
|
6961
|
-
const params = { limit, offset, filter, sort, fields, q };
|
|
6961
|
+
const params = { limit, offset, filter, sort, fields, q: q2 };
|
|
6962
6962
|
return apiHandler.getAll(`lists`, params);
|
|
6963
6963
|
},
|
|
6964
6964
|
create({ id: id2 = "", data: data2 }) {
|
|
@@ -7001,10 +7001,10 @@ function OrganizationExportsResource({ apiHandler }) {
|
|
|
7001
7001
|
limit = null,
|
|
7002
7002
|
offset = null,
|
|
7003
7003
|
filter = null,
|
|
7004
|
-
q = null,
|
|
7004
|
+
q: q2 = null,
|
|
7005
7005
|
sort = null
|
|
7006
7006
|
} = {}) {
|
|
7007
|
-
const params = { limit, offset, filter, q, sort };
|
|
7007
|
+
const params = { limit, offset, filter, q: q2, sort };
|
|
7008
7008
|
return apiHandler.getAll(`organization-exports`, params);
|
|
7009
7009
|
},
|
|
7010
7010
|
create({ data: data2 }) {
|
|
@@ -7022,9 +7022,9 @@ function OrganizationsResource({ apiHandler }) {
|
|
|
7022
7022
|
offset = null,
|
|
7023
7023
|
filter = null,
|
|
7024
7024
|
sort = null,
|
|
7025
|
-
q = null
|
|
7025
|
+
q: q2 = null
|
|
7026
7026
|
} = {}) {
|
|
7027
|
-
const params = { limit, offset, filter, sort, q };
|
|
7027
|
+
const params = { limit, offset, filter, sort, q: q2 };
|
|
7028
7028
|
return apiHandler.getAll(`organizations`, params);
|
|
7029
7029
|
},
|
|
7030
7030
|
create({ data: data2 }) {
|
|
@@ -7040,8 +7040,8 @@ function OrganizationsResource({ apiHandler }) {
|
|
|
7040
7040
|
}
|
|
7041
7041
|
function PaymentCardsBankNamesResource({ apiHandler }) {
|
|
7042
7042
|
return {
|
|
7043
|
-
getAll({ limit = null, q = null } = {}) {
|
|
7044
|
-
const params = { limit, q };
|
|
7043
|
+
getAll({ limit = null, q: q2 = null } = {}) {
|
|
7044
|
+
const params = { limit, q: q2 };
|
|
7045
7045
|
return apiHandler.getAll(`payment-cards-bank-names`, params);
|
|
7046
7046
|
}
|
|
7047
7047
|
};
|
|
@@ -7053,10 +7053,10 @@ function PaymentInstrumentsResource$1({ apiHandler }) {
|
|
|
7053
7053
|
sort = null,
|
|
7054
7054
|
limit = null,
|
|
7055
7055
|
offset = null,
|
|
7056
|
-
q = null,
|
|
7056
|
+
q: q2 = null,
|
|
7057
7057
|
expand = null
|
|
7058
7058
|
} = {}) {
|
|
7059
|
-
const params = { filter, sort, limit, offset, q, expand };
|
|
7059
|
+
const params = { filter, sort, limit, offset, q: q2, expand };
|
|
7060
7060
|
return apiHandler.getAll(`payment-instruments`, params);
|
|
7061
7061
|
},
|
|
7062
7062
|
create({ data: data2 }) {
|
|
@@ -7132,9 +7132,9 @@ function PlansResource$1({ apiHandler }) {
|
|
|
7132
7132
|
sort = null,
|
|
7133
7133
|
limit = null,
|
|
7134
7134
|
offset = null,
|
|
7135
|
-
q = null
|
|
7135
|
+
q: q2 = null
|
|
7136
7136
|
} = {}) {
|
|
7137
|
-
const params = { filter, sort, limit, offset, q };
|
|
7137
|
+
const params = { filter, sort, limit, offset, q: q2 };
|
|
7138
7138
|
return apiHandler.getAll(`plans`, params);
|
|
7139
7139
|
},
|
|
7140
7140
|
create({ id: id2 = "", data: data2 }) {
|
|
@@ -7171,9 +7171,9 @@ function ProductsResource$1({ apiHandler }) {
|
|
|
7171
7171
|
sort = null,
|
|
7172
7172
|
limit = null,
|
|
7173
7173
|
offset = null,
|
|
7174
|
-
q = null
|
|
7174
|
+
q: q2 = null
|
|
7175
7175
|
} = {}) {
|
|
7176
|
-
const params = { filter, sort, limit, offset, q };
|
|
7176
|
+
const params = { filter, sort, limit, offset, q: q2 };
|
|
7177
7177
|
return apiHandler.getAll(`products`, params);
|
|
7178
7178
|
},
|
|
7179
7179
|
create({ id: id2 = "", data: data2 }) {
|
|
@@ -7265,9 +7265,9 @@ function QuotesResource$1({ apiHandler }) {
|
|
|
7265
7265
|
offset = null,
|
|
7266
7266
|
filter = null,
|
|
7267
7267
|
sort = null,
|
|
7268
|
-
q = null
|
|
7268
|
+
q: q2 = null
|
|
7269
7269
|
}) {
|
|
7270
|
-
const params = { limit, offset, filter, sort, q };
|
|
7270
|
+
const params = { limit, offset, filter, sort, q: q2 };
|
|
7271
7271
|
return apiHandler.getAll(`quotes/${id2}/timeline`, params);
|
|
7272
7272
|
},
|
|
7273
7273
|
createTimelineComment({ id: id2, data: data2 }) {
|
|
@@ -7336,10 +7336,10 @@ function RolesResource({ apiHandler }) {
|
|
|
7336
7336
|
offset = null,
|
|
7337
7337
|
filter = null,
|
|
7338
7338
|
sort = null,
|
|
7339
|
-
q = null,
|
|
7339
|
+
q: q2 = null,
|
|
7340
7340
|
expand = null
|
|
7341
7341
|
} = {}) {
|
|
7342
|
-
const params = { limit, offset, filter, sort, q, expand };
|
|
7342
|
+
const params = { limit, offset, filter, sort, q: q2, expand };
|
|
7343
7343
|
return apiHandler.getAll(`roles`, params);
|
|
7344
7344
|
},
|
|
7345
7345
|
create({ id: id2 = "", data: data2 }) {
|
|
@@ -7359,8 +7359,8 @@ function RolesResource({ apiHandler }) {
|
|
|
7359
7359
|
}
|
|
7360
7360
|
function SearchResource({ apiHandler }) {
|
|
7361
7361
|
return {
|
|
7362
|
-
get({ sort = null, limit = null, offset = null, q = null }) {
|
|
7363
|
-
const params = { sort, limit, offset, q };
|
|
7362
|
+
get({ sort = null, limit = null, offset = null, q: q2 = null }) {
|
|
7363
|
+
const params = { sort, limit, offset, q: q2 };
|
|
7364
7364
|
return apiHandler.get(`search`, params);
|
|
7365
7365
|
}
|
|
7366
7366
|
};
|
|
@@ -7372,9 +7372,9 @@ function SegmentsResource({ apiHandler }) {
|
|
|
7372
7372
|
offset = null,
|
|
7373
7373
|
sort = null,
|
|
7374
7374
|
filter = null,
|
|
7375
|
-
q = null
|
|
7375
|
+
q: q2 = null
|
|
7376
7376
|
} = {}) {
|
|
7377
|
-
const params = { limit, offset, sort, filter, q };
|
|
7377
|
+
const params = { limit, offset, sort, filter, q: q2 };
|
|
7378
7378
|
return apiHandler.getAll(`grid-segments`, params);
|
|
7379
7379
|
},
|
|
7380
7380
|
create({ id: id2 = "", data: data2 }) {
|
|
@@ -7406,9 +7406,9 @@ function ServiceCredentialsResource({ apiHandler }) {
|
|
|
7406
7406
|
limit = null,
|
|
7407
7407
|
offset = null,
|
|
7408
7408
|
sort = null,
|
|
7409
|
-
q = null
|
|
7409
|
+
q: q2 = null
|
|
7410
7410
|
}) {
|
|
7411
|
-
const params = { filter, limit, offset, sort, q };
|
|
7411
|
+
const params = { filter, limit, offset, sort, q: q2 };
|
|
7412
7412
|
return apiHandler.getAll(`service-credentials/${type2}`, params);
|
|
7413
7413
|
},
|
|
7414
7414
|
create({ type: type2, data: data2 }) {
|
|
@@ -7426,11 +7426,11 @@ function ServiceCredentialsResource({ apiHandler }) {
|
|
|
7426
7426
|
limit = null,
|
|
7427
7427
|
offset = null,
|
|
7428
7428
|
filter = null,
|
|
7429
|
-
q = null,
|
|
7429
|
+
q: q2 = null,
|
|
7430
7430
|
fields = null,
|
|
7431
7431
|
sort = null
|
|
7432
7432
|
}) {
|
|
7433
|
-
const params = { limit, offset, filter, q, fields, sort };
|
|
7433
|
+
const params = { limit, offset, filter, q: q2, fields, sort };
|
|
7434
7434
|
return apiHandler.getAll(
|
|
7435
7435
|
`service-credentials/${type2}/${id2}/items`,
|
|
7436
7436
|
params
|
|
@@ -7445,9 +7445,9 @@ function ShippingRatesResource({ apiHandler }) {
|
|
|
7445
7445
|
offset = null,
|
|
7446
7446
|
filter = null,
|
|
7447
7447
|
sort = null,
|
|
7448
|
-
q = null
|
|
7448
|
+
q: q2 = null
|
|
7449
7449
|
} = {}) {
|
|
7450
|
-
const params = { limit, offset, filter, sort, q };
|
|
7450
|
+
const params = { limit, offset, filter, sort, q: q2 };
|
|
7451
7451
|
return apiHandler.getAll(`shipping-rates`, params);
|
|
7452
7452
|
},
|
|
7453
7453
|
create({ id: id2 = "", data: data2 }) {
|
|
@@ -7532,10 +7532,10 @@ function SubscriptionsResource$1({ apiHandler }) {
|
|
|
7532
7532
|
sort = null,
|
|
7533
7533
|
limit = null,
|
|
7534
7534
|
offset = null,
|
|
7535
|
-
q = null,
|
|
7535
|
+
q: q2 = null,
|
|
7536
7536
|
expand = null
|
|
7537
7537
|
} = {}) {
|
|
7538
|
-
const params = { filter, sort, limit, offset, q, expand };
|
|
7538
|
+
const params = { filter, sort, limit, offset, q: q2, expand };
|
|
7539
7539
|
return apiHandler.getAll(`subscriptions`, params);
|
|
7540
7540
|
},
|
|
7541
7541
|
create({ id: id2 = "", data: data2, expand = null }) {
|
|
@@ -7588,9 +7588,9 @@ function SubscriptionsResource$1({ apiHandler }) {
|
|
|
7588
7588
|
offset = null,
|
|
7589
7589
|
filter = null,
|
|
7590
7590
|
sort = null,
|
|
7591
|
-
q = null
|
|
7591
|
+
q: q2 = null
|
|
7592
7592
|
}) {
|
|
7593
|
-
const params = { limit, offset, filter, sort, q };
|
|
7593
|
+
const params = { limit, offset, filter, sort, q: q2 };
|
|
7594
7594
|
return apiHandler.getAll(`subscriptions/${id2}/timeline`, params);
|
|
7595
7595
|
},
|
|
7596
7596
|
createTimelineComment({ id: id2, data: data2 }) {
|
|
@@ -7610,10 +7610,10 @@ function TagsResource({ apiHandler }) {
|
|
|
7610
7610
|
limit = null,
|
|
7611
7611
|
offset = null,
|
|
7612
7612
|
filter = null,
|
|
7613
|
-
q = null,
|
|
7613
|
+
q: q2 = null,
|
|
7614
7614
|
sort = null
|
|
7615
7615
|
} = {}) {
|
|
7616
|
-
const params = { limit, offset, filter, q, sort };
|
|
7616
|
+
const params = { limit, offset, filter, q: q2, sort };
|
|
7617
7617
|
return apiHandler.getAll(`tags`, params);
|
|
7618
7618
|
},
|
|
7619
7619
|
create({ data: data2 }) {
|
|
@@ -7673,9 +7673,9 @@ function TagsRulesResource({ apiHandler }) {
|
|
|
7673
7673
|
offset = null,
|
|
7674
7674
|
sort = null,
|
|
7675
7675
|
filter = null,
|
|
7676
|
-
q = null
|
|
7676
|
+
q: q2 = null
|
|
7677
7677
|
} = {}) {
|
|
7678
|
-
const params = { limit, offset, sort, filter, q };
|
|
7678
|
+
const params = { limit, offset, sort, filter, q: q2 };
|
|
7679
7679
|
return apiHandler.getAll(`tags-rules`, params);
|
|
7680
7680
|
},
|
|
7681
7681
|
createTagsRule({ id: id2 = "", data: data2 }) {
|
|
@@ -7699,10 +7699,10 @@ function TrackingResource({ apiHandler }) {
|
|
|
7699
7699
|
offset = null,
|
|
7700
7700
|
sort = null,
|
|
7701
7701
|
filter = null,
|
|
7702
|
-
q = null,
|
|
7702
|
+
q: q2 = null,
|
|
7703
7703
|
expand = null
|
|
7704
7704
|
} = {}) {
|
|
7705
|
-
const params = { limit, offset, sort, filter, q, expand };
|
|
7705
|
+
const params = { limit, offset, sort, filter, q: q2, expand };
|
|
7706
7706
|
return apiHandler.getAll(`tracking/api`, params);
|
|
7707
7707
|
},
|
|
7708
7708
|
getApiLog({ id: id2 }) {
|
|
@@ -7713,9 +7713,9 @@ function TrackingResource({ apiHandler }) {
|
|
|
7713
7713
|
offset = null,
|
|
7714
7714
|
sort = null,
|
|
7715
7715
|
filter = null,
|
|
7716
|
-
q = null
|
|
7716
|
+
q: q2 = null
|
|
7717
7717
|
} = {}) {
|
|
7718
|
-
const params = { limit, offset, sort, filter, q };
|
|
7718
|
+
const params = { limit, offset, sort, filter, q: q2 };
|
|
7719
7719
|
return apiHandler.getAll(`tracking/taxes`, params);
|
|
7720
7720
|
},
|
|
7721
7721
|
getTaxTrackingLog({ id: id2 }) {
|
|
@@ -7726,9 +7726,9 @@ function TrackingResource({ apiHandler }) {
|
|
|
7726
7726
|
offset = null,
|
|
7727
7727
|
sort = null,
|
|
7728
7728
|
filter = null,
|
|
7729
|
-
q = null
|
|
7729
|
+
q: q2 = null
|
|
7730
7730
|
} = {}) {
|
|
7731
|
-
const params = { limit, offset, sort, filter, q };
|
|
7731
|
+
const params = { limit, offset, sort, filter, q: q2 };
|
|
7732
7732
|
return apiHandler.getAll(`tracking/lists`, params);
|
|
7733
7733
|
},
|
|
7734
7734
|
getAllWebhookTrackingLogs({
|
|
@@ -7736,9 +7736,9 @@ function TrackingResource({ apiHandler }) {
|
|
|
7736
7736
|
offset = null,
|
|
7737
7737
|
sort = null,
|
|
7738
7738
|
filter = null,
|
|
7739
|
-
q = null
|
|
7739
|
+
q: q2 = null
|
|
7740
7740
|
} = {}) {
|
|
7741
|
-
const params = { limit, offset, sort, filter, q };
|
|
7741
|
+
const params = { limit, offset, sort, filter, q: q2 };
|
|
7742
7742
|
return apiHandler.getAll(`tracking/webhooks`, params);
|
|
7743
7743
|
},
|
|
7744
7744
|
getWebhookTrackingLog({ id: id2 }) {
|
|
@@ -7755,11 +7755,11 @@ function TransactionsResource$1({ apiHandler }) {
|
|
|
7755
7755
|
limit = null,
|
|
7756
7756
|
offset = null,
|
|
7757
7757
|
filter = null,
|
|
7758
|
-
q = null,
|
|
7758
|
+
q: q2 = null,
|
|
7759
7759
|
sort = null,
|
|
7760
7760
|
expand = null
|
|
7761
7761
|
} = {}) {
|
|
7762
|
-
const params = { limit, offset, filter, q, sort, expand };
|
|
7762
|
+
const params = { limit, offset, filter, q: q2, sort, expand };
|
|
7763
7763
|
return apiHandler.getAll(`transactions`, params);
|
|
7764
7764
|
},
|
|
7765
7765
|
create({ data: data2, expand = null }) {
|
|
@@ -7788,9 +7788,9 @@ function TransactionsResource$1({ apiHandler }) {
|
|
|
7788
7788
|
offset = null,
|
|
7789
7789
|
filter = null,
|
|
7790
7790
|
sort = null,
|
|
7791
|
-
q = null
|
|
7791
|
+
q: q2 = null
|
|
7792
7792
|
}) {
|
|
7793
|
-
const params = { limit, offset, filter, sort, q };
|
|
7793
|
+
const params = { limit, offset, filter, sort, q: q2 };
|
|
7794
7794
|
return apiHandler.getAll(`transactions/${id2}/timeline`, params);
|
|
7795
7795
|
},
|
|
7796
7796
|
createTimelineComment({ id: id2, data: data2 }) {
|
|
@@ -7811,9 +7811,9 @@ function UsagesResource({ apiHandler }) {
|
|
|
7811
7811
|
sort = null,
|
|
7812
7812
|
limit = null,
|
|
7813
7813
|
offset = null,
|
|
7814
|
-
q = null
|
|
7814
|
+
q: q2 = null
|
|
7815
7815
|
} = {}) {
|
|
7816
|
-
const params = { filter, sort, limit, offset, q };
|
|
7816
|
+
const params = { filter, sort, limit, offset, q: q2 };
|
|
7817
7817
|
return apiHandler.getAll(`usages`, params);
|
|
7818
7818
|
},
|
|
7819
7819
|
create({ id: id2 = "", data: data2 }) {
|
|
@@ -7837,9 +7837,9 @@ function UsersResource({ apiHandler }) {
|
|
|
7837
7837
|
offset = null,
|
|
7838
7838
|
sort = null,
|
|
7839
7839
|
filter = null,
|
|
7840
|
-
q = null
|
|
7840
|
+
q: q2 = null
|
|
7841
7841
|
} = {}) {
|
|
7842
|
-
const params = { limit, offset, sort, filter, q };
|
|
7842
|
+
const params = { limit, offset, sort, filter, q: q2 };
|
|
7843
7843
|
return apiHandler.getAll(`users`, params);
|
|
7844
7844
|
},
|
|
7845
7845
|
create({ id: id2 = "", data: data2 }) {
|
|
@@ -7878,11 +7878,11 @@ function WebsitesResource$1({ apiHandler }) {
|
|
|
7878
7878
|
getAll({
|
|
7879
7879
|
limit = null,
|
|
7880
7880
|
offset = null,
|
|
7881
|
-
q = null,
|
|
7881
|
+
q: q2 = null,
|
|
7882
7882
|
filter = null,
|
|
7883
7883
|
sort = null
|
|
7884
7884
|
} = {}) {
|
|
7885
|
-
const params = { limit, offset, q, filter, sort };
|
|
7885
|
+
const params = { limit, offset, q: q2, filter, sort };
|
|
7886
7886
|
return apiHandler.getAll(`websites`, params);
|
|
7887
7887
|
},
|
|
7888
7888
|
create({ id: id2 = "", data: data2 }) {
|
|
@@ -8013,10 +8013,10 @@ function DataExportsResource({ apiHandler }) {
|
|
|
8013
8013
|
sort = null,
|
|
8014
8014
|
expand = null,
|
|
8015
8015
|
filter = null,
|
|
8016
|
-
q = null,
|
|
8016
|
+
q: q2 = null,
|
|
8017
8017
|
criteria = null
|
|
8018
8018
|
} = {}) {
|
|
8019
|
-
const params = { limit, offset, sort, expand, filter, q, criteria };
|
|
8019
|
+
const params = { limit, offset, sort, expand, filter, q: q2, criteria };
|
|
8020
8020
|
return apiHandler.getAll(`data-exports`, params);
|
|
8021
8021
|
},
|
|
8022
8022
|
queue({ id: id2 = "", data: data2, expand = null }) {
|
|
@@ -8509,9 +8509,9 @@ function InvoicesResource({ apiHandler }) {
|
|
|
8509
8509
|
sort = null,
|
|
8510
8510
|
limit = null,
|
|
8511
8511
|
offset = null,
|
|
8512
|
-
q = null
|
|
8512
|
+
q: q2 = null
|
|
8513
8513
|
} = {}) {
|
|
8514
|
-
const params = { filter, sort, limit, offset, q };
|
|
8514
|
+
const params = { filter, sort, limit, offset, q: q2 };
|
|
8515
8515
|
return apiHandler.getAll(`invoices`, params);
|
|
8516
8516
|
},
|
|
8517
8517
|
get({ id: id2 }) {
|
|
@@ -8558,9 +8558,9 @@ function OrdersResource({ apiHandler }) {
|
|
|
8558
8558
|
sort = null,
|
|
8559
8559
|
limit = null,
|
|
8560
8560
|
offset = null,
|
|
8561
|
-
q = null
|
|
8561
|
+
q: q2 = null
|
|
8562
8562
|
} = {}) {
|
|
8563
|
-
const params = { filter, sort, limit, offset, q };
|
|
8563
|
+
const params = { filter, sort, limit, offset, q: q2 };
|
|
8564
8564
|
return apiHandler.getAll(`orders`, params);
|
|
8565
8565
|
},
|
|
8566
8566
|
get({ id: id2 }) {
|
|
@@ -8584,9 +8584,9 @@ function PaymentInstrumentsResource({ apiHandler }) {
|
|
|
8584
8584
|
sort = null,
|
|
8585
8585
|
limit = null,
|
|
8586
8586
|
offset = null,
|
|
8587
|
-
q = null
|
|
8587
|
+
q: q2 = null
|
|
8588
8588
|
} = {}) {
|
|
8589
|
-
const params = { filter, sort, limit, offset, q };
|
|
8589
|
+
const params = { filter, sort, limit, offset, q: q2 };
|
|
8590
8590
|
return apiHandler.getAll(`payment-instruments`, params);
|
|
8591
8591
|
},
|
|
8592
8592
|
create({ data: data2 }) {
|
|
@@ -8617,9 +8617,9 @@ function PayoutRequestsResource({ apiHandler }) {
|
|
|
8617
8617
|
sort = null,
|
|
8618
8618
|
limit = null,
|
|
8619
8619
|
offset = null,
|
|
8620
|
-
q = null
|
|
8620
|
+
q: q2 = null
|
|
8621
8621
|
} = {}) {
|
|
8622
|
-
const params = { filter, sort, limit, offset, q };
|
|
8622
|
+
const params = { filter, sort, limit, offset, q: q2 };
|
|
8623
8623
|
return apiHandler.getAll(`payout-requests`, params);
|
|
8624
8624
|
},
|
|
8625
8625
|
get({ id: id2 }) {
|
|
@@ -8637,10 +8637,10 @@ function PlansResource({ apiHandler }) {
|
|
|
8637
8637
|
sort = null,
|
|
8638
8638
|
limit = null,
|
|
8639
8639
|
offset = null,
|
|
8640
|
-
q = null,
|
|
8640
|
+
q: q2 = null,
|
|
8641
8641
|
expand = null
|
|
8642
8642
|
} = {}) {
|
|
8643
|
-
const params = { filter, sort, limit, offset, q, expand };
|
|
8643
|
+
const params = { filter, sort, limit, offset, q: q2, expand };
|
|
8644
8644
|
return apiHandler.getAll(`plans`, params);
|
|
8645
8645
|
},
|
|
8646
8646
|
get({ id: id2, expand = null }) {
|
|
@@ -8656,9 +8656,9 @@ function ProductsResource({ apiHandler }) {
|
|
|
8656
8656
|
sort = null,
|
|
8657
8657
|
limit = null,
|
|
8658
8658
|
offset = null,
|
|
8659
|
-
q = null
|
|
8659
|
+
q: q2 = null
|
|
8660
8660
|
} = {}) {
|
|
8661
|
-
const params = { filter, sort, limit, offset, q };
|
|
8661
|
+
const params = { filter, sort, limit, offset, q: q2 };
|
|
8662
8662
|
return apiHandler.getAll(`products`, params);
|
|
8663
8663
|
},
|
|
8664
8664
|
get({ id: id2 }) {
|
|
@@ -8709,10 +8709,10 @@ function TransactionsResource({ apiHandler }) {
|
|
|
8709
8709
|
limit = null,
|
|
8710
8710
|
offset = null,
|
|
8711
8711
|
filter = null,
|
|
8712
|
-
q = null,
|
|
8712
|
+
q: q2 = null,
|
|
8713
8713
|
sort = null
|
|
8714
8714
|
} = {}) {
|
|
8715
|
-
const params = { limit, offset, filter, q, sort };
|
|
8715
|
+
const params = { limit, offset, filter, q: q2, sort };
|
|
8716
8716
|
return apiHandler.getAll(`transactions`, params);
|
|
8717
8717
|
},
|
|
8718
8718
|
get({ id: id2 }) {
|
|
@@ -9074,239 +9074,239 @@ async function updateSummary({ instrument } = {}) {
|
|
|
9074
9074
|
await fetchSummary({ data: instrument });
|
|
9075
9075
|
state.updateModel();
|
|
9076
9076
|
}
|
|
9077
|
-
function t$1(t2, e2,
|
|
9077
|
+
function t$1(t2, e2, n2, r2, o2, a2, i2) {
|
|
9078
9078
|
try {
|
|
9079
|
-
var
|
|
9079
|
+
var c2 = t2[a2](i2), u2 = c2.value;
|
|
9080
9080
|
} catch (t3) {
|
|
9081
|
-
return void
|
|
9081
|
+
return void n2(t3);
|
|
9082
9082
|
}
|
|
9083
|
-
|
|
9083
|
+
c2.done ? e2(u2) : Promise.resolve(u2).then(r2, o2);
|
|
9084
9084
|
}
|
|
9085
9085
|
function e$1(e2) {
|
|
9086
9086
|
return function() {
|
|
9087
|
-
var
|
|
9088
|
-
return new Promise(function(o2,
|
|
9089
|
-
var
|
|
9090
|
-
function u2(e3) {
|
|
9091
|
-
t$1(a2, o2, i2, u2, c2, "next", e3);
|
|
9092
|
-
}
|
|
9087
|
+
var n2 = this, r2 = arguments;
|
|
9088
|
+
return new Promise(function(o2, a2) {
|
|
9089
|
+
var i2 = e2.apply(n2, r2);
|
|
9093
9090
|
function c2(e3) {
|
|
9094
|
-
t$1(
|
|
9091
|
+
t$1(i2, o2, a2, c2, u2, "next", e3);
|
|
9092
|
+
}
|
|
9093
|
+
function u2(e3) {
|
|
9094
|
+
t$1(i2, o2, a2, c2, u2, "throw", e3);
|
|
9095
9095
|
}
|
|
9096
|
-
|
|
9096
|
+
c2(void 0);
|
|
9097
9097
|
});
|
|
9098
9098
|
};
|
|
9099
9099
|
}
|
|
9100
|
-
function
|
|
9101
|
-
return t2(
|
|
9100
|
+
function n$1(t2, e2, n2) {
|
|
9101
|
+
return t2(n2 = { path: e2, exports: {}, require: function(t3, e3) {
|
|
9102
9102
|
return function() {
|
|
9103
9103
|
throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
|
|
9104
|
-
}(null == e3 &&
|
|
9105
|
-
} },
|
|
9104
|
+
}(null == e3 && n2.path);
|
|
9105
|
+
} }, n2.exports), n2.exports;
|
|
9106
9106
|
}
|
|
9107
|
-
var
|
|
9108
|
-
function e2(
|
|
9107
|
+
var r$1 = n$1(function(t2) {
|
|
9108
|
+
function e2(n2) {
|
|
9109
9109
|
return t2.exports = e2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t3) {
|
|
9110
9110
|
return typeof t3;
|
|
9111
9111
|
} : function(t3) {
|
|
9112
9112
|
return t3 && "function" == typeof Symbol && t3.constructor === Symbol && t3 !== Symbol.prototype ? "symbol" : typeof t3;
|
|
9113
|
-
}, t2.exports.__esModule = true, t2.exports.default = t2.exports, e2(
|
|
9113
|
+
}, t2.exports.__esModule = true, t2.exports.default = t2.exports, e2(n2);
|
|
9114
9114
|
}
|
|
9115
9115
|
t2.exports = e2, t2.exports.__esModule = true, t2.exports.default = t2.exports;
|
|
9116
|
-
}), o$1 =
|
|
9117
|
-
var e2 =
|
|
9118
|
-
function
|
|
9116
|
+
}), o$1 = n$1(function(t2) {
|
|
9117
|
+
var e2 = r$1.default;
|
|
9118
|
+
function n2() {
|
|
9119
9119
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
9120
|
-
t2.exports =
|
|
9120
|
+
t2.exports = n2 = function() {
|
|
9121
9121
|
return o2;
|
|
9122
9122
|
}, t2.exports.__esModule = true, t2.exports.default = t2.exports;
|
|
9123
|
-
var
|
|
9124
|
-
t3[e3] =
|
|
9125
|
-
},
|
|
9126
|
-
function
|
|
9127
|
-
return Object.defineProperty(t3, e3, { value:
|
|
9123
|
+
var r2, o2 = {}, a2 = Object.prototype, i2 = a2.hasOwnProperty, c2 = Object.defineProperty || function(t3, e3, n3) {
|
|
9124
|
+
t3[e3] = n3.value;
|
|
9125
|
+
}, u2 = "function" == typeof Symbol ? Symbol : {}, s2 = u2.iterator || "@@iterator", l2 = u2.asyncIterator || "@@asyncIterator", d2 = u2.toStringTag || "@@toStringTag";
|
|
9126
|
+
function f2(t3, e3, n3) {
|
|
9127
|
+
return Object.defineProperty(t3, e3, { value: n3, enumerable: true, configurable: true, writable: true }), t3[e3];
|
|
9128
9128
|
}
|
|
9129
9129
|
try {
|
|
9130
|
-
|
|
9131
|
-
} catch (
|
|
9132
|
-
|
|
9133
|
-
return t3[e3] =
|
|
9130
|
+
f2({}, "");
|
|
9131
|
+
} catch (r3) {
|
|
9132
|
+
f2 = function(t3, e3, n3) {
|
|
9133
|
+
return t3[e3] = n3;
|
|
9134
9134
|
};
|
|
9135
9135
|
}
|
|
9136
|
-
function h2(t3, e3,
|
|
9137
|
-
var o3 = e3 && e3.prototype instanceof
|
|
9138
|
-
return
|
|
9136
|
+
function h2(t3, e3, n3, r3) {
|
|
9137
|
+
var o3 = e3 && e3.prototype instanceof w2 ? e3 : w2, a3 = Object.create(o3.prototype), i3 = new A2(r3 || []);
|
|
9138
|
+
return c2(a3, "_invoke", { value: I2(t3, n3, i3) }), a3;
|
|
9139
9139
|
}
|
|
9140
|
-
function
|
|
9140
|
+
function m2(t3, e3, n3) {
|
|
9141
9141
|
try {
|
|
9142
|
-
return { type: "normal", arg: t3.call(e3,
|
|
9142
|
+
return { type: "normal", arg: t3.call(e3, n3) };
|
|
9143
9143
|
} catch (t4) {
|
|
9144
9144
|
return { type: "throw", arg: t4 };
|
|
9145
9145
|
}
|
|
9146
9146
|
}
|
|
9147
9147
|
o2.wrap = h2;
|
|
9148
|
-
var v2 = "suspendedStart",
|
|
9149
|
-
function g2() {
|
|
9150
|
-
}
|
|
9148
|
+
var v2 = "suspendedStart", p2 = "suspendedYield", y2 = "executing", b2 = "completed", g2 = {};
|
|
9151
9149
|
function w2() {
|
|
9152
9150
|
}
|
|
9153
|
-
function
|
|
9151
|
+
function L2() {
|
|
9154
9152
|
}
|
|
9155
|
-
|
|
9156
|
-
|
|
9153
|
+
function k2() {
|
|
9154
|
+
}
|
|
9155
|
+
var x2 = {};
|
|
9156
|
+
f2(x2, s2, function() {
|
|
9157
9157
|
return this;
|
|
9158
9158
|
});
|
|
9159
|
-
var
|
|
9160
|
-
|
|
9161
|
-
var
|
|
9162
|
-
function
|
|
9159
|
+
var V2 = Object.getPrototypeOf, S2 = V2 && V2(V2(G2([])));
|
|
9160
|
+
S2 && S2 !== a2 && i2.call(S2, s2) && (x2 = S2);
|
|
9161
|
+
var Z2 = k2.prototype = w2.prototype = Object.create(x2);
|
|
9162
|
+
function W2(t3) {
|
|
9163
9163
|
["next", "throw", "return"].forEach(function(e3) {
|
|
9164
|
-
|
|
9164
|
+
f2(t3, e3, function(t4) {
|
|
9165
9165
|
return this._invoke(e3, t4);
|
|
9166
9166
|
});
|
|
9167
9167
|
});
|
|
9168
9168
|
}
|
|
9169
|
-
function
|
|
9170
|
-
function
|
|
9171
|
-
var s3 =
|
|
9169
|
+
function C2(t3, n3) {
|
|
9170
|
+
function r3(o4, a3, c3, u3) {
|
|
9171
|
+
var s3 = m2(t3[o4], t3, a3);
|
|
9172
9172
|
if ("throw" !== s3.type) {
|
|
9173
|
-
var l3 = s3.arg,
|
|
9174
|
-
return
|
|
9175
|
-
|
|
9173
|
+
var l3 = s3.arg, d3 = l3.value;
|
|
9174
|
+
return d3 && "object" == e2(d3) && i2.call(d3, "__await") ? n3.resolve(d3.__await).then(function(t4) {
|
|
9175
|
+
r3("next", t4, c3, u3);
|
|
9176
9176
|
}, function(t4) {
|
|
9177
|
-
|
|
9178
|
-
}) :
|
|
9179
|
-
l3.value = t4,
|
|
9177
|
+
r3("throw", t4, c3, u3);
|
|
9178
|
+
}) : n3.resolve(d3).then(function(t4) {
|
|
9179
|
+
l3.value = t4, c3(l3);
|
|
9180
9180
|
}, function(t4) {
|
|
9181
|
-
return
|
|
9181
|
+
return r3("throw", t4, c3, u3);
|
|
9182
9182
|
});
|
|
9183
9183
|
}
|
|
9184
|
-
|
|
9184
|
+
u3(s3.arg);
|
|
9185
9185
|
}
|
|
9186
9186
|
var o3;
|
|
9187
|
-
|
|
9188
|
-
function
|
|
9189
|
-
return new
|
|
9190
|
-
|
|
9187
|
+
c2(this, "_invoke", { value: function(t4, e3) {
|
|
9188
|
+
function a3() {
|
|
9189
|
+
return new n3(function(n4, o4) {
|
|
9190
|
+
r3(t4, e3, n4, o4);
|
|
9191
9191
|
});
|
|
9192
9192
|
}
|
|
9193
|
-
return o3 = o3 ? o3.then(
|
|
9193
|
+
return o3 = o3 ? o3.then(a3, a3) : a3();
|
|
9194
9194
|
} });
|
|
9195
9195
|
}
|
|
9196
|
-
function
|
|
9196
|
+
function I2(t3, e3, n3) {
|
|
9197
9197
|
var o3 = v2;
|
|
9198
|
-
return function(
|
|
9199
|
-
if (o3 ===
|
|
9198
|
+
return function(a3, i3) {
|
|
9199
|
+
if (o3 === y2)
|
|
9200
9200
|
throw new Error("Generator is already running");
|
|
9201
|
-
if (o3 ===
|
|
9202
|
-
if ("throw" ===
|
|
9203
|
-
throw
|
|
9204
|
-
return { value:
|
|
9201
|
+
if (o3 === b2) {
|
|
9202
|
+
if ("throw" === a3)
|
|
9203
|
+
throw i3;
|
|
9204
|
+
return { value: r2, done: true };
|
|
9205
9205
|
}
|
|
9206
|
-
for (
|
|
9207
|
-
var
|
|
9208
|
-
if (
|
|
9209
|
-
var
|
|
9210
|
-
if (
|
|
9211
|
-
if (
|
|
9206
|
+
for (n3.method = a3, n3.arg = i3; ; ) {
|
|
9207
|
+
var c3 = n3.delegate;
|
|
9208
|
+
if (c3) {
|
|
9209
|
+
var u3 = F2(c3, n3);
|
|
9210
|
+
if (u3) {
|
|
9211
|
+
if (u3 === g2)
|
|
9212
9212
|
continue;
|
|
9213
|
-
return
|
|
9213
|
+
return u3;
|
|
9214
9214
|
}
|
|
9215
9215
|
}
|
|
9216
|
-
if ("next" ===
|
|
9217
|
-
|
|
9218
|
-
else if ("throw" ===
|
|
9216
|
+
if ("next" === n3.method)
|
|
9217
|
+
n3.sent = n3._sent = n3.arg;
|
|
9218
|
+
else if ("throw" === n3.method) {
|
|
9219
9219
|
if (o3 === v2)
|
|
9220
|
-
throw o3 =
|
|
9221
|
-
|
|
9220
|
+
throw o3 = b2, n3.arg;
|
|
9221
|
+
n3.dispatchException(n3.arg);
|
|
9222
9222
|
} else
|
|
9223
|
-
"return" ===
|
|
9224
|
-
o3 =
|
|
9225
|
-
var s3 =
|
|
9223
|
+
"return" === n3.method && n3.abrupt("return", n3.arg);
|
|
9224
|
+
o3 = y2;
|
|
9225
|
+
var s3 = m2(t3, e3, n3);
|
|
9226
9226
|
if ("normal" === s3.type) {
|
|
9227
|
-
if (o3 =
|
|
9227
|
+
if (o3 = n3.done ? b2 : p2, s3.arg === g2)
|
|
9228
9228
|
continue;
|
|
9229
|
-
return { value: s3.arg, done:
|
|
9229
|
+
return { value: s3.arg, done: n3.done };
|
|
9230
9230
|
}
|
|
9231
|
-
"throw" === s3.type && (o3 =
|
|
9231
|
+
"throw" === s3.type && (o3 = b2, n3.method = "throw", n3.arg = s3.arg);
|
|
9232
9232
|
}
|
|
9233
9233
|
};
|
|
9234
9234
|
}
|
|
9235
|
-
function
|
|
9236
|
-
var
|
|
9237
|
-
if (o3 ===
|
|
9238
|
-
return e3.delegate = null, "throw" ===
|
|
9239
|
-
var
|
|
9240
|
-
if ("throw" ===
|
|
9241
|
-
return e3.method = "throw", e3.arg =
|
|
9242
|
-
var
|
|
9243
|
-
return
|
|
9244
|
-
}
|
|
9245
|
-
function
|
|
9235
|
+
function F2(t3, e3) {
|
|
9236
|
+
var n3 = e3.method, o3 = t3.iterator[n3];
|
|
9237
|
+
if (o3 === r2)
|
|
9238
|
+
return e3.delegate = null, "throw" === n3 && t3.iterator.return && (e3.method = "return", e3.arg = r2, F2(t3, e3), "throw" === e3.method) || "return" !== n3 && (e3.method = "throw", e3.arg = new TypeError("The iterator does not provide a '" + n3 + "' method")), g2;
|
|
9239
|
+
var a3 = m2(o3, t3.iterator, e3.arg);
|
|
9240
|
+
if ("throw" === a3.type)
|
|
9241
|
+
return e3.method = "throw", e3.arg = a3.arg, e3.delegate = null, g2;
|
|
9242
|
+
var i3 = a3.arg;
|
|
9243
|
+
return i3 ? i3.done ? (e3[t3.resultName] = i3.value, e3.next = t3.nextLoc, "return" !== e3.method && (e3.method = "next", e3.arg = r2), e3.delegate = null, g2) : i3 : (e3.method = "throw", e3.arg = new TypeError("iterator result is not an object"), e3.delegate = null, g2);
|
|
9244
|
+
}
|
|
9245
|
+
function j2(t3) {
|
|
9246
9246
|
var e3 = { tryLoc: t3[0] };
|
|
9247
9247
|
1 in t3 && (e3.catchLoc = t3[1]), 2 in t3 && (e3.finallyLoc = t3[2], e3.afterLoc = t3[3]), this.tryEntries.push(e3);
|
|
9248
9248
|
}
|
|
9249
|
-
function
|
|
9249
|
+
function M2(t3) {
|
|
9250
9250
|
var e3 = t3.completion || {};
|
|
9251
9251
|
e3.type = "normal", delete e3.arg, t3.completion = e3;
|
|
9252
9252
|
}
|
|
9253
|
-
function
|
|
9254
|
-
this.tryEntries = [{ tryLoc: "root" }], t3.forEach(
|
|
9253
|
+
function A2(t3) {
|
|
9254
|
+
this.tryEntries = [{ tryLoc: "root" }], t3.forEach(j2, this), this.reset(true);
|
|
9255
9255
|
}
|
|
9256
|
-
function
|
|
9256
|
+
function G2(t3) {
|
|
9257
9257
|
if (t3 || "" === t3) {
|
|
9258
|
-
var
|
|
9259
|
-
if (
|
|
9260
|
-
return
|
|
9258
|
+
var n3 = t3[s2];
|
|
9259
|
+
if (n3)
|
|
9260
|
+
return n3.call(t3);
|
|
9261
9261
|
if ("function" == typeof t3.next)
|
|
9262
9262
|
return t3;
|
|
9263
9263
|
if (!isNaN(t3.length)) {
|
|
9264
|
-
var o3 = -1,
|
|
9264
|
+
var o3 = -1, a3 = function e3() {
|
|
9265
9265
|
for (; ++o3 < t3.length; )
|
|
9266
|
-
if (
|
|
9266
|
+
if (i2.call(t3, o3))
|
|
9267
9267
|
return e3.value = t3[o3], e3.done = false, e3;
|
|
9268
|
-
return e3.value =
|
|
9268
|
+
return e3.value = r2, e3.done = true, e3;
|
|
9269
9269
|
};
|
|
9270
|
-
return
|
|
9270
|
+
return a3.next = a3;
|
|
9271
9271
|
}
|
|
9272
9272
|
}
|
|
9273
9273
|
throw new TypeError(e2(t3) + " is not iterable");
|
|
9274
9274
|
}
|
|
9275
|
-
return
|
|
9275
|
+
return L2.prototype = k2, c2(Z2, "constructor", { value: k2, configurable: true }), c2(k2, "constructor", { value: L2, configurable: true }), L2.displayName = f2(k2, d2, "GeneratorFunction"), o2.isGeneratorFunction = function(t3) {
|
|
9276
9276
|
var e3 = "function" == typeof t3 && t3.constructor;
|
|
9277
|
-
return !!e3 && (e3 ===
|
|
9277
|
+
return !!e3 && (e3 === L2 || "GeneratorFunction" === (e3.displayName || e3.name));
|
|
9278
9278
|
}, o2.mark = function(t3) {
|
|
9279
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t3,
|
|
9279
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t3, k2) : (t3.__proto__ = k2, f2(t3, d2, "GeneratorFunction")), t3.prototype = Object.create(Z2), t3;
|
|
9280
9280
|
}, o2.awrap = function(t3) {
|
|
9281
9281
|
return { __await: t3 };
|
|
9282
|
-
},
|
|
9282
|
+
}, W2(C2.prototype), f2(C2.prototype, l2, function() {
|
|
9283
9283
|
return this;
|
|
9284
|
-
}), o2.AsyncIterator =
|
|
9285
|
-
void 0 ===
|
|
9286
|
-
var
|
|
9287
|
-
return o2.isGeneratorFunction(e3) ?
|
|
9288
|
-
return t4.done ? t4.value :
|
|
9284
|
+
}), o2.AsyncIterator = C2, o2.async = function(t3, e3, n3, r3, a3) {
|
|
9285
|
+
void 0 === a3 && (a3 = Promise);
|
|
9286
|
+
var i3 = new C2(h2(t3, e3, n3, r3), a3);
|
|
9287
|
+
return o2.isGeneratorFunction(e3) ? i3 : i3.next().then(function(t4) {
|
|
9288
|
+
return t4.done ? t4.value : i3.next();
|
|
9289
9289
|
});
|
|
9290
|
-
},
|
|
9290
|
+
}, W2(Z2), f2(Z2, d2, "Generator"), f2(Z2, s2, function() {
|
|
9291
9291
|
return this;
|
|
9292
|
-
}),
|
|
9292
|
+
}), f2(Z2, "toString", function() {
|
|
9293
9293
|
return "[object Generator]";
|
|
9294
9294
|
}), o2.keys = function(t3) {
|
|
9295
|
-
var e3 = Object(t3),
|
|
9296
|
-
for (var
|
|
9297
|
-
|
|
9298
|
-
return
|
|
9299
|
-
for (;
|
|
9300
|
-
var
|
|
9301
|
-
if (
|
|
9302
|
-
return t4.value =
|
|
9295
|
+
var e3 = Object(t3), n3 = [];
|
|
9296
|
+
for (var r3 in e3)
|
|
9297
|
+
n3.push(r3);
|
|
9298
|
+
return n3.reverse(), function t4() {
|
|
9299
|
+
for (; n3.length; ) {
|
|
9300
|
+
var r4 = n3.pop();
|
|
9301
|
+
if (r4 in e3)
|
|
9302
|
+
return t4.value = r4, t4.done = false, t4;
|
|
9303
9303
|
}
|
|
9304
9304
|
return t4.done = true, t4;
|
|
9305
9305
|
};
|
|
9306
|
-
}, o2.values =
|
|
9307
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
|
9306
|
+
}, o2.values = G2, A2.prototype = { constructor: A2, reset: function(t3) {
|
|
9307
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = r2, this.done = false, this.delegate = null, this.method = "next", this.arg = r2, this.tryEntries.forEach(M2), !t3)
|
|
9308
9308
|
for (var e3 in this)
|
|
9309
|
-
"t" === e3.charAt(0) &&
|
|
9309
|
+
"t" === e3.charAt(0) && i2.call(this, e3) && !isNaN(+e3.slice(1)) && (this[e3] = r2);
|
|
9310
9310
|
}, stop: function() {
|
|
9311
9311
|
this.done = true;
|
|
9312
9312
|
var t3 = this.tryEntries[0].completion;
|
|
@@ -9317,305 +9317,1085 @@ var n$1 = r$1(function(t2) {
|
|
|
9317
9317
|
if (this.done)
|
|
9318
9318
|
throw t3;
|
|
9319
9319
|
var e3 = this;
|
|
9320
|
-
function
|
|
9321
|
-
return
|
|
9320
|
+
function n3(n4, o4) {
|
|
9321
|
+
return c3.type = "throw", c3.arg = t3, e3.next = n4, o4 && (e3.method = "next", e3.arg = r2), !!o4;
|
|
9322
9322
|
}
|
|
9323
9323
|
for (var o3 = this.tryEntries.length - 1; o3 >= 0; --o3) {
|
|
9324
|
-
var
|
|
9325
|
-
if ("root" ===
|
|
9326
|
-
return
|
|
9327
|
-
if (
|
|
9328
|
-
var
|
|
9329
|
-
if (
|
|
9330
|
-
if (this.prev <
|
|
9331
|
-
return
|
|
9332
|
-
if (this.prev <
|
|
9333
|
-
return
|
|
9334
|
-
} else if (
|
|
9335
|
-
if (this.prev <
|
|
9336
|
-
return
|
|
9324
|
+
var a3 = this.tryEntries[o3], c3 = a3.completion;
|
|
9325
|
+
if ("root" === a3.tryLoc)
|
|
9326
|
+
return n3("end");
|
|
9327
|
+
if (a3.tryLoc <= this.prev) {
|
|
9328
|
+
var u3 = i2.call(a3, "catchLoc"), s3 = i2.call(a3, "finallyLoc");
|
|
9329
|
+
if (u3 && s3) {
|
|
9330
|
+
if (this.prev < a3.catchLoc)
|
|
9331
|
+
return n3(a3.catchLoc, true);
|
|
9332
|
+
if (this.prev < a3.finallyLoc)
|
|
9333
|
+
return n3(a3.finallyLoc);
|
|
9334
|
+
} else if (u3) {
|
|
9335
|
+
if (this.prev < a3.catchLoc)
|
|
9336
|
+
return n3(a3.catchLoc, true);
|
|
9337
9337
|
} else {
|
|
9338
9338
|
if (!s3)
|
|
9339
9339
|
throw new Error("try statement without catch or finally");
|
|
9340
|
-
if (this.prev <
|
|
9341
|
-
return
|
|
9340
|
+
if (this.prev < a3.finallyLoc)
|
|
9341
|
+
return n3(a3.finallyLoc);
|
|
9342
9342
|
}
|
|
9343
9343
|
}
|
|
9344
9344
|
}
|
|
9345
9345
|
}, abrupt: function(t3, e3) {
|
|
9346
|
-
for (var
|
|
9347
|
-
var
|
|
9348
|
-
if (
|
|
9349
|
-
var o3 =
|
|
9346
|
+
for (var n3 = this.tryEntries.length - 1; n3 >= 0; --n3) {
|
|
9347
|
+
var r3 = this.tryEntries[n3];
|
|
9348
|
+
if (r3.tryLoc <= this.prev && i2.call(r3, "finallyLoc") && this.prev < r3.finallyLoc) {
|
|
9349
|
+
var o3 = r3;
|
|
9350
9350
|
break;
|
|
9351
9351
|
}
|
|
9352
9352
|
}
|
|
9353
9353
|
o3 && ("break" === t3 || "continue" === t3) && o3.tryLoc <= e3 && e3 <= o3.finallyLoc && (o3 = null);
|
|
9354
|
-
var
|
|
9355
|
-
return
|
|
9354
|
+
var a3 = o3 ? o3.completion : {};
|
|
9355
|
+
return a3.type = t3, a3.arg = e3, o3 ? (this.method = "next", this.next = o3.finallyLoc, g2) : this.complete(a3);
|
|
9356
9356
|
}, complete: function(t3, e3) {
|
|
9357
9357
|
if ("throw" === t3.type)
|
|
9358
9358
|
throw t3.arg;
|
|
9359
|
-
return "break" === t3.type || "continue" === t3.type ? this.next = t3.arg : "return" === t3.type ? (this.rval = this.arg = t3.arg, this.method = "return", this.next = "end") : "normal" === t3.type && e3 && (this.next = e3),
|
|
9359
|
+
return "break" === t3.type || "continue" === t3.type ? this.next = t3.arg : "return" === t3.type ? (this.rval = this.arg = t3.arg, this.method = "return", this.next = "end") : "normal" === t3.type && e3 && (this.next = e3), g2;
|
|
9360
9360
|
}, finish: function(t3) {
|
|
9361
9361
|
for (var e3 = this.tryEntries.length - 1; e3 >= 0; --e3) {
|
|
9362
|
-
var
|
|
9363
|
-
if (
|
|
9364
|
-
return this.complete(
|
|
9362
|
+
var n3 = this.tryEntries[e3];
|
|
9363
|
+
if (n3.finallyLoc === t3)
|
|
9364
|
+
return this.complete(n3.completion, n3.afterLoc), M2(n3), g2;
|
|
9365
9365
|
}
|
|
9366
9366
|
}, catch: function(t3) {
|
|
9367
9367
|
for (var e3 = this.tryEntries.length - 1; e3 >= 0; --e3) {
|
|
9368
|
-
var
|
|
9369
|
-
if (
|
|
9370
|
-
var
|
|
9371
|
-
if ("throw" ===
|
|
9372
|
-
var o3 =
|
|
9373
|
-
|
|
9368
|
+
var n3 = this.tryEntries[e3];
|
|
9369
|
+
if (n3.tryLoc === t3) {
|
|
9370
|
+
var r3 = n3.completion;
|
|
9371
|
+
if ("throw" === r3.type) {
|
|
9372
|
+
var o3 = r3.arg;
|
|
9373
|
+
M2(n3);
|
|
9374
9374
|
}
|
|
9375
9375
|
return o3;
|
|
9376
9376
|
}
|
|
9377
9377
|
}
|
|
9378
9378
|
throw new Error("illegal catch attempt");
|
|
9379
|
-
}, delegateYield: function(t3, e3,
|
|
9380
|
-
return this.delegate = { iterator:
|
|
9379
|
+
}, delegateYield: function(t3, e3, n3) {
|
|
9380
|
+
return this.delegate = { iterator: G2(t3), resultName: e3, nextLoc: n3 }, "next" === this.method && (this.arg = r2), g2;
|
|
9381
9381
|
} }, o2;
|
|
9382
9382
|
}
|
|
9383
|
-
t2.exports =
|
|
9384
|
-
}),
|
|
9383
|
+
t2.exports = n2, t2.exports.__esModule = true, t2.exports.default = t2.exports;
|
|
9384
|
+
})(), a = o$1;
|
|
9385
9385
|
try {
|
|
9386
|
-
regeneratorRuntime =
|
|
9386
|
+
regeneratorRuntime = o$1;
|
|
9387
9387
|
} catch (t2) {
|
|
9388
|
-
"object" == typeof globalThis ? globalThis.regeneratorRuntime =
|
|
9389
|
-
}
|
|
9390
|
-
function
|
|
9391
|
-
return
|
|
9392
|
-
|
|
9393
|
-
|
|
9394
|
-
return t3 && "function" == typeof Symbol && t3.constructor === Symbol && t3 !== Symbol.prototype ? "symbol" : typeof t3;
|
|
9395
|
-
}, u(t2);
|
|
9396
|
-
}
|
|
9397
|
-
var c = function() {
|
|
9398
|
-
return c = Object.assign || function(t2) {
|
|
9399
|
-
for (var e2, r2 = 1, n2 = arguments.length; r2 < n2; r2++)
|
|
9400
|
-
for (var o2 in e2 = arguments[r2])
|
|
9388
|
+
"object" == typeof globalThis ? globalThis.regeneratorRuntime = o$1 : Function("r", "regeneratorRuntime = r")(o$1);
|
|
9389
|
+
}
|
|
9390
|
+
var i = function() {
|
|
9391
|
+
return i = Object.assign || function(t2) {
|
|
9392
|
+
for (var e2, n2 = 1, r2 = arguments.length; n2 < r2; n2++)
|
|
9393
|
+
for (var o2 in e2 = arguments[n2])
|
|
9401
9394
|
Object.prototype.hasOwnProperty.call(e2, o2) && (t2[o2] = e2[o2]);
|
|
9402
9395
|
return t2;
|
|
9403
|
-
},
|
|
9396
|
+
}, i.apply(this, arguments);
|
|
9404
9397
|
};
|
|
9405
|
-
function
|
|
9406
|
-
|
|
9407
|
-
|
|
9408
|
-
|
|
9409
|
-
|
|
9410
|
-
|
|
9411
|
-
|
|
9412
|
-
|
|
9398
|
+
function c(t2, e2, n2, r2) {
|
|
9399
|
+
return new (n2 || (n2 = Promise))(function(o2, a2) {
|
|
9400
|
+
function i2(t3) {
|
|
9401
|
+
try {
|
|
9402
|
+
u2(r2.next(t3));
|
|
9403
|
+
} catch (t4) {
|
|
9404
|
+
a2(t4);
|
|
9405
|
+
}
|
|
9406
|
+
}
|
|
9407
|
+
function c2(t3) {
|
|
9408
|
+
try {
|
|
9409
|
+
u2(r2.throw(t3));
|
|
9410
|
+
} catch (t4) {
|
|
9411
|
+
a2(t4);
|
|
9412
|
+
}
|
|
9413
|
+
}
|
|
9414
|
+
function u2(t3) {
|
|
9415
|
+
var e3;
|
|
9416
|
+
t3.done ? o2(t3.value) : (e3 = t3.value, e3 instanceof n2 ? e3 : new n2(function(t4) {
|
|
9417
|
+
t4(e3);
|
|
9418
|
+
})).then(i2, c2);
|
|
9419
|
+
}
|
|
9420
|
+
u2((r2 = r2.apply(t2, e2 || [])).next());
|
|
9421
|
+
});
|
|
9422
|
+
}
|
|
9423
|
+
function u(t2, e2) {
|
|
9424
|
+
var n2, r2, o2, a2, i2 = { label: 0, sent: function() {
|
|
9425
|
+
if (1 & o2[0])
|
|
9426
|
+
throw o2[1];
|
|
9427
|
+
return o2[1];
|
|
9428
|
+
}, trys: [], ops: [] };
|
|
9429
|
+
return a2 = { next: c2(0), throw: c2(1), return: c2(2) }, "function" == typeof Symbol && (a2[Symbol.iterator] = function() {
|
|
9430
|
+
return this;
|
|
9431
|
+
}), a2;
|
|
9432
|
+
function c2(c3) {
|
|
9433
|
+
return function(u2) {
|
|
9434
|
+
return function(c4) {
|
|
9435
|
+
if (n2)
|
|
9436
|
+
throw new TypeError("Generator is already executing.");
|
|
9437
|
+
for (; a2 && (a2 = 0, c4[0] && (i2 = 0)), i2; )
|
|
9438
|
+
try {
|
|
9439
|
+
if (n2 = 1, r2 && (o2 = 2 & c4[0] ? r2.return : c4[0] ? r2.throw || ((o2 = r2.return) && o2.call(r2), 0) : r2.next) && !(o2 = o2.call(r2, c4[1])).done)
|
|
9440
|
+
return o2;
|
|
9441
|
+
switch (r2 = 0, o2 && (c4 = [2 & c4[0], o2.value]), c4[0]) {
|
|
9442
|
+
case 0:
|
|
9443
|
+
case 1:
|
|
9444
|
+
o2 = c4;
|
|
9445
|
+
break;
|
|
9446
|
+
case 4:
|
|
9447
|
+
return i2.label++, { value: c4[1], done: false };
|
|
9448
|
+
case 5:
|
|
9449
|
+
i2.label++, r2 = c4[1], c4 = [0];
|
|
9450
|
+
continue;
|
|
9451
|
+
case 7:
|
|
9452
|
+
c4 = i2.ops.pop(), i2.trys.pop();
|
|
9453
|
+
continue;
|
|
9454
|
+
default:
|
|
9455
|
+
if (!(o2 = i2.trys, (o2 = o2.length > 0 && o2[o2.length - 1]) || 6 !== c4[0] && 2 !== c4[0])) {
|
|
9456
|
+
i2 = 0;
|
|
9457
|
+
continue;
|
|
9458
|
+
}
|
|
9459
|
+
if (3 === c4[0] && (!o2 || c4[1] > o2[0] && c4[1] < o2[3])) {
|
|
9460
|
+
i2.label = c4[1];
|
|
9461
|
+
break;
|
|
9462
|
+
}
|
|
9463
|
+
if (6 === c4[0] && i2.label < o2[1]) {
|
|
9464
|
+
i2.label = o2[1], o2 = c4;
|
|
9465
|
+
break;
|
|
9466
|
+
}
|
|
9467
|
+
if (o2 && i2.label < o2[2]) {
|
|
9468
|
+
i2.label = o2[2], i2.ops.push(c4);
|
|
9469
|
+
break;
|
|
9470
|
+
}
|
|
9471
|
+
o2[2] && i2.ops.pop(), i2.trys.pop();
|
|
9472
|
+
continue;
|
|
9473
|
+
}
|
|
9474
|
+
c4 = e2.call(t2, i2);
|
|
9475
|
+
} catch (t3) {
|
|
9476
|
+
c4 = [6, t3], r2 = 0;
|
|
9477
|
+
} finally {
|
|
9478
|
+
n2 = o2 = 0;
|
|
9479
|
+
}
|
|
9480
|
+
if (5 & c4[0])
|
|
9481
|
+
throw c4[1];
|
|
9482
|
+
return { value: c4[0] ? c4[1] : void 0, done: true };
|
|
9483
|
+
}([c3, u2]);
|
|
9484
|
+
};
|
|
9485
|
+
}
|
|
9486
|
+
}
|
|
9487
|
+
function s(t2, e2, n2) {
|
|
9488
|
+
if (n2 || 2 === arguments.length)
|
|
9489
|
+
for (var r2, o2 = 0, a2 = e2.length; o2 < a2; o2++)
|
|
9490
|
+
!r2 && o2 in e2 || (r2 || (r2 = Array.prototype.slice.call(e2, 0, o2)), r2[o2] = e2[o2]);
|
|
9491
|
+
return t2.concat(r2 || Array.prototype.slice.call(e2));
|
|
9413
9492
|
}
|
|
9414
9493
|
"function" == typeof SuppressedError && SuppressedError;
|
|
9415
|
-
var l = "
|
|
9416
|
-
function
|
|
9417
|
-
|
|
9418
|
-
|
|
9419
|
-
|
|
9420
|
-
|
|
9421
|
-
|
|
9422
|
-
|
|
9423
|
-
|
|
9424
|
-
|
|
9425
|
-
|
|
9426
|
-
|
|
9427
|
-
|
|
9428
|
-
|
|
9429
|
-
},
|
|
9430
|
-
|
|
9431
|
-
}
|
|
9432
|
-
|
|
9433
|
-
|
|
9434
|
-
|
|
9435
|
-
|
|
9436
|
-
|
|
9437
|
-
|
|
9438
|
-
|
|
9439
|
-
|
|
9440
|
-
|
|
9441
|
-
|
|
9442
|
-
|
|
9443
|
-
|
|
9444
|
-
return
|
|
9445
|
-
|
|
9446
|
-
|
|
9447
|
-
|
|
9448
|
-
|
|
9449
|
-
|
|
9450
|
-
return
|
|
9451
|
-
|
|
9452
|
-
|
|
9494
|
+
var l = "3.4.2";
|
|
9495
|
+
function d(t2, e2) {
|
|
9496
|
+
return new Promise(function(n2) {
|
|
9497
|
+
return setTimeout(n2, t2, e2);
|
|
9498
|
+
});
|
|
9499
|
+
}
|
|
9500
|
+
function f(t2) {
|
|
9501
|
+
return !!t2 && "function" == typeof t2.then;
|
|
9502
|
+
}
|
|
9503
|
+
function h(t2, e2) {
|
|
9504
|
+
try {
|
|
9505
|
+
var n2 = t2();
|
|
9506
|
+
f(n2) ? n2.then(function(t3) {
|
|
9507
|
+
return e2(true, t3);
|
|
9508
|
+
}, function(t3) {
|
|
9509
|
+
return e2(false, t3);
|
|
9510
|
+
}) : e2(true, n2);
|
|
9511
|
+
} catch (t3) {
|
|
9512
|
+
e2(false, t3);
|
|
9513
|
+
}
|
|
9514
|
+
}
|
|
9515
|
+
function m(t2, e2, n2) {
|
|
9516
|
+
return void 0 === n2 && (n2 = 16), c(this, void 0, void 0, function() {
|
|
9517
|
+
var r2, o2, a2, i2;
|
|
9518
|
+
return u(this, function(c2) {
|
|
9519
|
+
switch (c2.label) {
|
|
9520
|
+
case 0:
|
|
9521
|
+
r2 = Array(t2.length), o2 = Date.now(), a2 = 0, c2.label = 1;
|
|
9522
|
+
case 1:
|
|
9523
|
+
return a2 < t2.length ? (r2[a2] = e2(t2[a2], a2), (i2 = Date.now()) >= o2 + n2 ? (o2 = i2, [4, d(0)]) : [3, 3]) : [3, 4];
|
|
9524
|
+
case 2:
|
|
9525
|
+
c2.sent(), c2.label = 3;
|
|
9526
|
+
case 3:
|
|
9527
|
+
return ++a2, [3, 1];
|
|
9528
|
+
case 4:
|
|
9529
|
+
return [2, r2];
|
|
9530
|
+
}
|
|
9531
|
+
});
|
|
9532
|
+
});
|
|
9533
|
+
}
|
|
9534
|
+
function v(t2) {
|
|
9535
|
+
t2.then(void 0, function() {
|
|
9536
|
+
});
|
|
9537
|
+
}
|
|
9538
|
+
function p(t2, e2) {
|
|
9539
|
+
t2 = [t2[0] >>> 16, 65535 & t2[0], t2[1] >>> 16, 65535 & t2[1]], e2 = [e2[0] >>> 16, 65535 & e2[0], e2[1] >>> 16, 65535 & e2[1]];
|
|
9540
|
+
var n2 = [0, 0, 0, 0];
|
|
9541
|
+
return n2[3] += t2[3] + e2[3], n2[2] += n2[3] >>> 16, n2[3] &= 65535, n2[2] += t2[2] + e2[2], n2[1] += n2[2] >>> 16, n2[2] &= 65535, n2[1] += t2[1] + e2[1], n2[0] += n2[1] >>> 16, n2[1] &= 65535, n2[0] += t2[0] + e2[0], n2[0] &= 65535, [n2[0] << 16 | n2[1], n2[2] << 16 | n2[3]];
|
|
9542
|
+
}
|
|
9543
|
+
function y(t2, e2) {
|
|
9544
|
+
t2 = [t2[0] >>> 16, 65535 & t2[0], t2[1] >>> 16, 65535 & t2[1]], e2 = [e2[0] >>> 16, 65535 & e2[0], e2[1] >>> 16, 65535 & e2[1]];
|
|
9545
|
+
var n2 = [0, 0, 0, 0];
|
|
9546
|
+
return n2[3] += t2[3] * e2[3], n2[2] += n2[3] >>> 16, n2[3] &= 65535, n2[2] += t2[2] * e2[3], n2[1] += n2[2] >>> 16, n2[2] &= 65535, n2[2] += t2[3] * e2[2], n2[1] += n2[2] >>> 16, n2[2] &= 65535, n2[1] += t2[1] * e2[3], n2[0] += n2[1] >>> 16, n2[1] &= 65535, n2[1] += t2[2] * e2[2], n2[0] += n2[1] >>> 16, n2[1] &= 65535, n2[1] += t2[3] * e2[1], n2[0] += n2[1] >>> 16, n2[1] &= 65535, n2[0] += t2[0] * e2[3] + t2[1] * e2[2] + t2[2] * e2[1] + t2[3] * e2[0], n2[0] &= 65535, [n2[0] << 16 | n2[1], n2[2] << 16 | n2[3]];
|
|
9547
|
+
}
|
|
9548
|
+
function b(t2, e2) {
|
|
9549
|
+
return 32 === (e2 %= 64) ? [t2[1], t2[0]] : e2 < 32 ? [t2[0] << e2 | t2[1] >>> 32 - e2, t2[1] << e2 | t2[0] >>> 32 - e2] : (e2 -= 32, [t2[1] << e2 | t2[0] >>> 32 - e2, t2[0] << e2 | t2[1] >>> 32 - e2]);
|
|
9550
|
+
}
|
|
9551
|
+
function g(t2, e2) {
|
|
9552
|
+
return 0 === (e2 %= 64) ? t2 : e2 < 32 ? [t2[0] << e2 | t2[1] >>> 32 - e2, t2[1] << e2] : [t2[1] << e2 - 32, 0];
|
|
9553
|
+
}
|
|
9554
|
+
function w(t2, e2) {
|
|
9555
|
+
return [t2[0] ^ e2[0], t2[1] ^ e2[1]];
|
|
9556
|
+
}
|
|
9557
|
+
function L(t2) {
|
|
9558
|
+
return t2 = w(t2, [0, t2[0] >>> 1]), t2 = w(t2 = y(t2, [4283543511, 3981806797]), [0, t2[0] >>> 1]), t2 = w(t2 = y(t2, [3301882366, 444984403]), [0, t2[0] >>> 1]);
|
|
9559
|
+
}
|
|
9560
|
+
function k(t2) {
|
|
9561
|
+
return parseInt(t2);
|
|
9562
|
+
}
|
|
9563
|
+
function x(t2) {
|
|
9564
|
+
return parseFloat(t2);
|
|
9565
|
+
}
|
|
9566
|
+
function V(t2, e2) {
|
|
9567
|
+
return "number" == typeof t2 && isNaN(t2) ? e2 : t2;
|
|
9568
|
+
}
|
|
9569
|
+
function S(t2) {
|
|
9570
|
+
return t2.reduce(function(t3, e2) {
|
|
9571
|
+
return t3 + (e2 ? 1 : 0);
|
|
9572
|
+
}, 0);
|
|
9573
|
+
}
|
|
9574
|
+
function Z(t2, e2) {
|
|
9575
|
+
if (void 0 === e2 && (e2 = 1), Math.abs(e2) >= 1)
|
|
9576
|
+
return Math.round(t2 / e2) * e2;
|
|
9577
|
+
var n2 = 1 / e2;
|
|
9578
|
+
return Math.round(t2 * n2) / n2;
|
|
9579
|
+
}
|
|
9580
|
+
function W(t2) {
|
|
9581
|
+
return t2 && "object" == typeof t2 && "message" in t2 ? t2 : { message: t2 };
|
|
9582
|
+
}
|
|
9583
|
+
function C(t2, e2, n2) {
|
|
9584
|
+
var r2 = Object.keys(t2).filter(function(t3) {
|
|
9585
|
+
return !function(t4, e3) {
|
|
9586
|
+
for (var n3 = 0, r3 = t4.length; n3 < r3; ++n3)
|
|
9587
|
+
if (t4[n3] === e3)
|
|
9588
|
+
return true;
|
|
9589
|
+
return false;
|
|
9590
|
+
}(n2, t3);
|
|
9591
|
+
}), o2 = m(r2, function(n3) {
|
|
9592
|
+
return function(t3, e3) {
|
|
9593
|
+
var n4 = new Promise(function(n5) {
|
|
9594
|
+
var r3 = Date.now();
|
|
9595
|
+
h(t3.bind(null, e3), function() {
|
|
9596
|
+
for (var t4 = [], e4 = 0; e4 < arguments.length; e4++)
|
|
9597
|
+
t4[e4] = arguments[e4];
|
|
9598
|
+
var o3 = Date.now() - r3;
|
|
9599
|
+
if (!t4[0])
|
|
9600
|
+
return n5(function() {
|
|
9601
|
+
return { error: W(t4[1]), duration: o3 };
|
|
9602
|
+
});
|
|
9603
|
+
var a2 = t4[1];
|
|
9604
|
+
if (function(t5) {
|
|
9605
|
+
return "function" != typeof t5;
|
|
9606
|
+
}(a2))
|
|
9607
|
+
return n5(function() {
|
|
9608
|
+
return { value: a2, duration: o3 };
|
|
9609
|
+
});
|
|
9610
|
+
n5(function() {
|
|
9611
|
+
return new Promise(function(t5) {
|
|
9612
|
+
var e5 = Date.now();
|
|
9613
|
+
h(a2, function() {
|
|
9614
|
+
for (var n6 = [], r4 = 0; r4 < arguments.length; r4++)
|
|
9615
|
+
n6[r4] = arguments[r4];
|
|
9616
|
+
var a3 = o3 + Date.now() - e5;
|
|
9617
|
+
if (!n6[0])
|
|
9618
|
+
return t5({ error: W(n6[1]), duration: a3 });
|
|
9619
|
+
t5({ value: n6[1], duration: a3 });
|
|
9620
|
+
});
|
|
9621
|
+
});
|
|
9622
|
+
});
|
|
9453
9623
|
});
|
|
9454
9624
|
});
|
|
9455
|
-
|
|
9456
|
-
|
|
9457
|
-
|
|
9458
|
-
|
|
9459
|
-
|
|
9460
|
-
},
|
|
9461
|
-
return i2.then(function() {
|
|
9462
|
-
return o2();
|
|
9463
|
-
}, o2), i2;
|
|
9464
|
-
}).then(function(t3) {
|
|
9465
|
-
return [t3, { attempts: r2 }];
|
|
9625
|
+
return v(n4), function() {
|
|
9626
|
+
return n4.then(function(t4) {
|
|
9627
|
+
return t4();
|
|
9628
|
+
});
|
|
9629
|
+
};
|
|
9630
|
+
}(t2[n3], e2);
|
|
9466
9631
|
});
|
|
9467
|
-
|
|
9468
|
-
|
|
9469
|
-
|
|
9470
|
-
|
|
9471
|
-
|
|
9472
|
-
|
|
9473
|
-
|
|
9474
|
-
|
|
9475
|
-
|
|
9476
|
-
|
|
9477
|
-
|
|
9478
|
-
|
|
9479
|
-
|
|
9480
|
-
|
|
9481
|
-
|
|
9482
|
-
|
|
9483
|
-
|
|
9484
|
-
|
|
9485
|
-
|
|
9486
|
-
return function() {
|
|
9487
|
-
throw new Error(l);
|
|
9488
|
-
}();
|
|
9489
|
-
throw t4;
|
|
9632
|
+
return v(o2), function() {
|
|
9633
|
+
return c(this, void 0, void 0, function() {
|
|
9634
|
+
var t3, e3, n3, a2;
|
|
9635
|
+
return u(this, function(i2) {
|
|
9636
|
+
switch (i2.label) {
|
|
9637
|
+
case 0:
|
|
9638
|
+
return [4, o2];
|
|
9639
|
+
case 1:
|
|
9640
|
+
return [4, m(i2.sent(), function(t4) {
|
|
9641
|
+
var e4 = t4();
|
|
9642
|
+
return v(e4), e4;
|
|
9643
|
+
})];
|
|
9644
|
+
case 2:
|
|
9645
|
+
return t3 = i2.sent(), [4, Promise.all(t3)];
|
|
9646
|
+
case 3:
|
|
9647
|
+
for (e3 = i2.sent(), n3 = {}, a2 = 0; a2 < r2.length; ++a2)
|
|
9648
|
+
n3[r2[a2]] = e3[a2];
|
|
9649
|
+
return [2, n3];
|
|
9650
|
+
}
|
|
9490
9651
|
});
|
|
9491
9652
|
});
|
|
9492
|
-
}
|
|
9493
|
-
|
|
9494
|
-
|
|
9495
|
-
|
|
9496
|
-
|
|
9497
|
-
|
|
9498
|
-
|
|
9499
|
-
|
|
9500
|
-
|
|
9501
|
-
|
|
9502
|
-
|
|
9503
|
-
|
|
9653
|
+
};
|
|
9654
|
+
}
|
|
9655
|
+
function I() {
|
|
9656
|
+
var t2 = window, e2 = navigator;
|
|
9657
|
+
return S(["MSCSSMatrix" in t2, "msSetImmediate" in t2, "msIndexedDB" in t2, "msMaxTouchPoints" in e2, "msPointerEnabled" in e2]) >= 4;
|
|
9658
|
+
}
|
|
9659
|
+
function F() {
|
|
9660
|
+
var t2 = window, e2 = navigator;
|
|
9661
|
+
return S(["webkitPersistentStorage" in e2, "webkitTemporaryStorage" in e2, 0 === e2.vendor.indexOf("Google"), "webkitResolveLocalFileSystemURL" in t2, "BatteryManager" in t2, "webkitMediaStream" in t2, "webkitSpeechGrammar" in t2]) >= 5;
|
|
9662
|
+
}
|
|
9663
|
+
function j() {
|
|
9664
|
+
var t2 = window, e2 = navigator;
|
|
9665
|
+
return S(["ApplePayError" in t2, "CSSPrimitiveValue" in t2, "Counter" in t2, 0 === e2.vendor.indexOf("Apple"), "getStorageUpdates" in e2, "WebKitMediaKeys" in t2]) >= 4;
|
|
9666
|
+
}
|
|
9667
|
+
function M() {
|
|
9668
|
+
var t2 = window;
|
|
9669
|
+
return S(["safari" in t2, !("DeviceMotionEvent" in t2), !("ongestureend" in t2), !("standalone" in navigator)]) >= 3;
|
|
9670
|
+
}
|
|
9671
|
+
function A() {
|
|
9672
|
+
var t2 = document;
|
|
9673
|
+
return (t2.exitFullscreen || t2.msExitFullscreen || t2.mozCancelFullScreen || t2.webkitExitFullscreen).call(t2);
|
|
9674
|
+
}
|
|
9675
|
+
function G() {
|
|
9676
|
+
var t2 = F(), e2 = function() {
|
|
9677
|
+
var t3, e3, n3 = window;
|
|
9678
|
+
return S(["buildID" in navigator, "MozAppearance" in (null !== (e3 = null === (t3 = document.documentElement) || void 0 === t3 ? void 0 : t3.style) && void 0 !== e3 ? e3 : {}), "onmozfullscreenchange" in n3, "mozInnerScreenX" in n3, "CSSMozDocumentRule" in n3, "CanvasCaptureMediaStream" in n3]) >= 4;
|
|
9679
|
+
}();
|
|
9680
|
+
if (!t2 && !e2)
|
|
9681
|
+
return false;
|
|
9682
|
+
var n2 = window;
|
|
9683
|
+
return S(["onorientationchange" in n2, "orientation" in n2, t2 && !("SharedWorker" in n2), e2 && /android/i.test(navigator.appVersion)]) >= 2;
|
|
9684
|
+
}
|
|
9685
|
+
function R(t2) {
|
|
9686
|
+
var e2 = new Error(t2);
|
|
9687
|
+
return e2.name = t2, e2;
|
|
9688
|
+
}
|
|
9689
|
+
function Y(t2, e2, n2) {
|
|
9690
|
+
var r2, o2, a2;
|
|
9691
|
+
return void 0 === n2 && (n2 = 50), c(this, void 0, void 0, function() {
|
|
9692
|
+
var i2, c2;
|
|
9693
|
+
return u(this, function(u2) {
|
|
9694
|
+
switch (u2.label) {
|
|
9695
|
+
case 0:
|
|
9696
|
+
i2 = document, u2.label = 1;
|
|
9697
|
+
case 1:
|
|
9698
|
+
return i2.body ? [3, 3] : [4, d(n2)];
|
|
9699
|
+
case 2:
|
|
9700
|
+
return u2.sent(), [3, 1];
|
|
9701
|
+
case 3:
|
|
9702
|
+
c2 = i2.createElement("iframe"), u2.label = 4;
|
|
9703
|
+
case 4:
|
|
9704
|
+
return u2.trys.push([4, , 10, 11]), [4, new Promise(function(t3, n3) {
|
|
9705
|
+
var r3 = false, o3 = function() {
|
|
9706
|
+
r3 = true, t3();
|
|
9707
|
+
};
|
|
9708
|
+
c2.onload = o3, c2.onerror = function(t4) {
|
|
9709
|
+
r3 = true, n3(t4);
|
|
9710
|
+
};
|
|
9711
|
+
var a3 = c2.style;
|
|
9712
|
+
a3.setProperty("display", "block", "important"), a3.position = "absolute", a3.top = "0", a3.left = "0", a3.visibility = "hidden", e2 && "srcdoc" in c2 ? c2.srcdoc = e2 : c2.src = "about:blank", i2.body.appendChild(c2);
|
|
9713
|
+
var u3 = function() {
|
|
9714
|
+
var t4, e3;
|
|
9715
|
+
r3 || ("complete" === (null === (e3 = null === (t4 = c2.contentWindow) || void 0 === t4 ? void 0 : t4.document) || void 0 === e3 ? void 0 : e3.readyState) ? o3() : setTimeout(u3, 10));
|
|
9716
|
+
};
|
|
9717
|
+
u3();
|
|
9718
|
+
})];
|
|
9719
|
+
case 5:
|
|
9720
|
+
u2.sent(), u2.label = 6;
|
|
9721
|
+
case 6:
|
|
9722
|
+
return (null === (o2 = null === (r2 = c2.contentWindow) || void 0 === r2 ? void 0 : r2.document) || void 0 === o2 ? void 0 : o2.body) ? [3, 8] : [4, d(n2)];
|
|
9723
|
+
case 7:
|
|
9724
|
+
return u2.sent(), [3, 6];
|
|
9725
|
+
case 8:
|
|
9726
|
+
return [4, t2(c2, c2.contentWindow)];
|
|
9727
|
+
case 9:
|
|
9728
|
+
return [2, u2.sent()];
|
|
9729
|
+
case 10:
|
|
9730
|
+
return null === (a2 = c2.parentNode) || void 0 === a2 || a2.removeChild(c2), [7];
|
|
9731
|
+
case 11:
|
|
9732
|
+
return [2];
|
|
9733
|
+
}
|
|
9734
|
+
});
|
|
9735
|
+
});
|
|
9736
|
+
}
|
|
9737
|
+
function X(t2) {
|
|
9738
|
+
for (var e2 = function(t3) {
|
|
9739
|
+
for (var e3, n3, r3 = "Unexpected syntax '".concat(t3, "'"), o3 = /^\s*([a-z-]*)(.*)$/i.exec(t3), a3 = o3[1] || void 0, i3 = {}, c3 = /([.:#][\w-]+|\[.+?\])/gi, u3 = function(t4, e4) {
|
|
9740
|
+
i3[t4] = i3[t4] || [], i3[t4].push(e4);
|
|
9741
|
+
}; ; ) {
|
|
9742
|
+
var s2 = c3.exec(o3[2]);
|
|
9743
|
+
if (!s2)
|
|
9744
|
+
break;
|
|
9745
|
+
var l2 = s2[0];
|
|
9746
|
+
switch (l2[0]) {
|
|
9747
|
+
case ".":
|
|
9748
|
+
u3("class", l2.slice(1));
|
|
9749
|
+
break;
|
|
9750
|
+
case "#":
|
|
9751
|
+
u3("id", l2.slice(1));
|
|
9752
|
+
break;
|
|
9753
|
+
case "[":
|
|
9754
|
+
var d2 = /^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(l2);
|
|
9755
|
+
if (!d2)
|
|
9756
|
+
throw new Error(r3);
|
|
9757
|
+
u3(d2[1], null !== (n3 = null !== (e3 = d2[4]) && void 0 !== e3 ? e3 : d2[5]) && void 0 !== n3 ? n3 : "");
|
|
9758
|
+
break;
|
|
9759
|
+
default:
|
|
9760
|
+
throw new Error(r3);
|
|
9761
|
+
}
|
|
9762
|
+
}
|
|
9763
|
+
return [a3, i3];
|
|
9764
|
+
}(t2), n2 = e2[0], r2 = e2[1], o2 = document.createElement(null != n2 ? n2 : "div"), a2 = 0, i2 = Object.keys(r2); a2 < i2.length; a2++) {
|
|
9765
|
+
var c2 = i2[a2], u2 = r2[c2].join(" ");
|
|
9766
|
+
"style" === c2 ? E(o2.style, u2) : o2.setAttribute(c2, u2);
|
|
9767
|
+
}
|
|
9768
|
+
return o2;
|
|
9769
|
+
}
|
|
9770
|
+
function E(t2, e2) {
|
|
9771
|
+
for (var n2 = 0, r2 = e2.split(";"); n2 < r2.length; n2++) {
|
|
9772
|
+
var o2 = r2[n2], a2 = /^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(o2);
|
|
9773
|
+
if (a2) {
|
|
9774
|
+
var i2 = a2[1], c2 = a2[2], u2 = a2[4];
|
|
9775
|
+
t2.setProperty(i2, c2, u2 || "");
|
|
9776
|
+
}
|
|
9777
|
+
}
|
|
9778
|
+
}
|
|
9779
|
+
var P = ["monospace", "sans-serif", "serif"], J = ["sans-serif-thin", "ARNO PRO", "Agency FB", "Arabic Typesetting", "Arial Unicode MS", "AvantGarde Bk BT", "BankGothic Md BT", "Batang", "Bitstream Vera Sans Mono", "Calibri", "Century", "Century Gothic", "Clarendon", "EUROSTILE", "Franklin Gothic", "Futura Bk BT", "Futura Md BT", "GOTHAM", "Gill Sans", "HELV", "Haettenschweiler", "Helvetica Neue", "Humanst521 BT", "Leelawadee", "Letter Gothic", "Levenim MT", "Lucida Bright", "Lucida Sans", "Menlo", "MS Mincho", "MS Outlook", "MS Reference Specialty", "MS UI Gothic", "MT Extra", "MYRIAD PRO", "Marlett", "Meiryo UI", "Microsoft Uighur", "Minion Pro", "Monotype Corsiva", "PMingLiU", "Pristina", "SCRIPTINA", "Segoe UI Light", "Serifa", "SimHei", "Small Fonts", "Staccato222 BT", "TRAJAN PRO", "Univers CE 55 Medium", "Vrinda", "ZWAdobeF"];
|
|
9780
|
+
function H(t2) {
|
|
9781
|
+
return t2.toDataURL();
|
|
9782
|
+
}
|
|
9783
|
+
var N, _, D = 2500;
|
|
9784
|
+
function T() {
|
|
9785
|
+
var t2 = this;
|
|
9786
|
+
return function() {
|
|
9787
|
+
if (void 0 === _) {
|
|
9788
|
+
var t3 = function() {
|
|
9789
|
+
var e2 = z();
|
|
9790
|
+
O(e2) ? _ = setTimeout(t3, D) : (N = e2, _ = void 0);
|
|
9791
|
+
};
|
|
9792
|
+
t3();
|
|
9793
|
+
}
|
|
9794
|
+
}(), function() {
|
|
9795
|
+
return c(t2, void 0, void 0, function() {
|
|
9796
|
+
var t3;
|
|
9797
|
+
return u(this, function(e2) {
|
|
9798
|
+
switch (e2.label) {
|
|
9799
|
+
case 0:
|
|
9800
|
+
return O(t3 = z()) ? N ? [2, s([], N, true)] : (n2 = document).fullscreenElement || n2.msFullscreenElement || n2.mozFullScreenElement || n2.webkitFullscreenElement ? [4, A()] : [3, 2] : [3, 2];
|
|
9801
|
+
case 1:
|
|
9802
|
+
e2.sent(), t3 = z(), e2.label = 2;
|
|
9803
|
+
case 2:
|
|
9804
|
+
return O(t3) || (N = t3), [2, t3];
|
|
9805
|
+
}
|
|
9806
|
+
var n2;
|
|
9504
9807
|
});
|
|
9505
|
-
}
|
|
9506
|
-
}
|
|
9808
|
+
});
|
|
9809
|
+
};
|
|
9507
9810
|
}
|
|
9508
|
-
function
|
|
9509
|
-
var t2 =
|
|
9510
|
-
|
|
9511
|
-
var r3, n2 = null === (r3 = Object.getOwnPropertyDescriptor) || void 0 === r3 ? void 0 : r3.call(Object, t3, e3);
|
|
9512
|
-
(null == n2 ? void 0 : n2.configurable) ? delete t3[e3] : n2 && !n2.writable || (t3[e3] = void 0);
|
|
9513
|
-
}(t2, e2), "function" != typeof (null == r2 ? void 0 : r2.load))
|
|
9514
|
-
throw new Error(R);
|
|
9515
|
-
return r2;
|
|
9811
|
+
function z() {
|
|
9812
|
+
var t2 = screen;
|
|
9813
|
+
return [V(x(t2.availTop), null), V(x(t2.width) - x(t2.availWidth) - V(x(t2.availLeft), 0), null), V(x(t2.height) - x(t2.availHeight) - V(x(t2.availTop), 0), null), V(x(t2.availLeft), null)];
|
|
9516
9814
|
}
|
|
9517
|
-
function
|
|
9518
|
-
|
|
9815
|
+
function O(t2) {
|
|
9816
|
+
for (var e2 = 0; e2 < 4; ++e2)
|
|
9817
|
+
if (t2[e2])
|
|
9818
|
+
return false;
|
|
9819
|
+
return true;
|
|
9519
9820
|
}
|
|
9520
|
-
|
|
9821
|
+
function B(t2) {
|
|
9521
9822
|
var e2;
|
|
9522
|
-
|
|
9523
|
-
|
|
9524
|
-
|
|
9525
|
-
|
|
9526
|
-
|
|
9527
|
-
|
|
9528
|
-
|
|
9529
|
-
|
|
9530
|
-
|
|
9531
|
-
|
|
9532
|
-
|
|
9533
|
-
|
|
9534
|
-
|
|
9535
|
-
|
|
9536
|
-
|
|
9537
|
-
|
|
9538
|
-
|
|
9539
|
-
|
|
9540
|
-
|
|
9541
|
-
|
|
9542
|
-
|
|
9543
|
-
|
|
9544
|
-
|
|
9545
|
-
|
|
9546
|
-
|
|
9547
|
-
|
|
9548
|
-
|
|
9823
|
+
return c(this, void 0, void 0, function() {
|
|
9824
|
+
var n2, r2, o2, a2, i2, c2, s2;
|
|
9825
|
+
return u(this, function(u2) {
|
|
9826
|
+
switch (u2.label) {
|
|
9827
|
+
case 0:
|
|
9828
|
+
for (n2 = document, r2 = n2.createElement("div"), o2 = new Array(t2.length), a2 = {}, U(r2), s2 = 0; s2 < t2.length; ++s2)
|
|
9829
|
+
"DIALOG" === (i2 = X(t2[s2])).tagName && i2.show(), U(c2 = n2.createElement("div")), c2.appendChild(i2), r2.appendChild(c2), o2[s2] = i2;
|
|
9830
|
+
u2.label = 1;
|
|
9831
|
+
case 1:
|
|
9832
|
+
return n2.body ? [3, 3] : [4, d(50)];
|
|
9833
|
+
case 2:
|
|
9834
|
+
return u2.sent(), [3, 1];
|
|
9835
|
+
case 3:
|
|
9836
|
+
n2.body.appendChild(r2);
|
|
9837
|
+
try {
|
|
9838
|
+
for (s2 = 0; s2 < t2.length; ++s2)
|
|
9839
|
+
o2[s2].offsetParent || (a2[t2[s2]] = true);
|
|
9840
|
+
} finally {
|
|
9841
|
+
null === (e2 = r2.parentNode) || void 0 === e2 || e2.removeChild(r2);
|
|
9842
|
+
}
|
|
9843
|
+
return [2, a2];
|
|
9844
|
+
}
|
|
9845
|
+
});
|
|
9846
|
+
});
|
|
9847
|
+
}
|
|
9848
|
+
function U(t2) {
|
|
9849
|
+
t2.style.setProperty("display", "block", "important");
|
|
9850
|
+
}
|
|
9851
|
+
function Q(t2) {
|
|
9852
|
+
return matchMedia("(inverted-colors: ".concat(t2, ")")).matches;
|
|
9853
|
+
}
|
|
9854
|
+
function K(t2) {
|
|
9855
|
+
return matchMedia("(forced-colors: ".concat(t2, ")")).matches;
|
|
9856
|
+
}
|
|
9857
|
+
function q(t2) {
|
|
9858
|
+
return matchMedia("(prefers-contrast: ".concat(t2, ")")).matches;
|
|
9859
|
+
}
|
|
9860
|
+
function $(t2) {
|
|
9861
|
+
return matchMedia("(prefers-reduced-motion: ".concat(t2, ")")).matches;
|
|
9862
|
+
}
|
|
9863
|
+
function tt(t2) {
|
|
9864
|
+
return matchMedia("(dynamic-range: ".concat(t2, ")")).matches;
|
|
9865
|
+
}
|
|
9866
|
+
var et = Math, nt = function() {
|
|
9867
|
+
return 0;
|
|
9868
|
+
};
|
|
9869
|
+
var rt = { default: [], apple: [{ font: "-apple-system-body" }], serif: [{ fontFamily: "serif" }], sans: [{ fontFamily: "sans-serif" }], mono: [{ fontFamily: "monospace" }], min: [{ fontSize: "1px" }], system: [{ fontFamily: "system-ui" }] };
|
|
9870
|
+
var ot = { fonts: function() {
|
|
9871
|
+
return Y(function(t2, e2) {
|
|
9872
|
+
var n2 = e2.document, r2 = n2.body;
|
|
9873
|
+
r2.style.fontSize = "48px";
|
|
9874
|
+
var o2 = n2.createElement("div"), a2 = {}, i2 = {}, c2 = function(t3) {
|
|
9875
|
+
var e3 = n2.createElement("span"), r3 = e3.style;
|
|
9876
|
+
return r3.position = "absolute", r3.top = "0", r3.left = "0", r3.fontFamily = t3, e3.textContent = "mmMwWLliI0O&1", o2.appendChild(e3), e3;
|
|
9877
|
+
}, u2 = P.map(c2), s2 = function() {
|
|
9878
|
+
for (var t3 = {}, e3 = function(e4) {
|
|
9879
|
+
t3[e4] = P.map(function(t4) {
|
|
9880
|
+
return function(t5, e5) {
|
|
9881
|
+
return c2("'".concat(t5, "',").concat(e5));
|
|
9882
|
+
}(e4, t4);
|
|
9883
|
+
});
|
|
9884
|
+
}, n3 = 0, r3 = J; n3 < r3.length; n3++) {
|
|
9885
|
+
e3(r3[n3]);
|
|
9886
|
+
}
|
|
9887
|
+
return t3;
|
|
9888
|
+
}();
|
|
9889
|
+
r2.appendChild(o2);
|
|
9890
|
+
for (var l2 = 0; l2 < P.length; l2++)
|
|
9891
|
+
a2[P[l2]] = u2[l2].offsetWidth, i2[P[l2]] = u2[l2].offsetHeight;
|
|
9892
|
+
return J.filter(function(t3) {
|
|
9893
|
+
return e3 = s2[t3], P.some(function(t4, n3) {
|
|
9894
|
+
return e3[n3].offsetWidth !== a2[t4] || e3[n3].offsetHeight !== i2[t4];
|
|
9895
|
+
});
|
|
9896
|
+
var e3;
|
|
9897
|
+
});
|
|
9898
|
+
});
|
|
9899
|
+
}, domBlockers: function(t2) {
|
|
9900
|
+
var e2 = (void 0 === t2 ? {} : t2).debug;
|
|
9901
|
+
return c(this, void 0, void 0, function() {
|
|
9902
|
+
var t3, n2, r2, o2, a2;
|
|
9903
|
+
return u(this, function(i2) {
|
|
9904
|
+
switch (i2.label) {
|
|
9905
|
+
case 0:
|
|
9906
|
+
return j() || G() ? (c2 = atob, t3 = { abpIndo: ["#Iklan-Melayang", "#Kolom-Iklan-728", "#SidebarIklan-wrapper", '[title="ALIENBOLA" i]', c2("I0JveC1CYW5uZXItYWRz")], abpvn: [".quangcao", "#mobileCatfish", c2("LmNsb3NlLWFkcw=="), '[id^="bn_bottom_fixed_"]', "#pmadv"], adBlockFinland: [".mainostila", c2("LnNwb25zb3JpdA=="), ".ylamainos", c2("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"), c2("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")], adBlockPersian: ["#navbar_notice_50", ".kadr", 'TABLE[width="140px"]', "#divAgahi", c2("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")], adBlockWarningRemoval: ["#adblock-honeypot", ".adblocker-root", ".wp_adblock_detect", c2("LmhlYWRlci1ibG9ja2VkLWFk"), c2("I2FkX2Jsb2NrZXI=")], adGuardAnnoyances: [".hs-sosyal", "#cookieconsentdiv", 'div[class^="app_gdpr"]', ".as-oil", '[data-cypress="soft-push-notification-modal"]'], adGuardBase: [".BetterJsPopOverlay", c2("I2FkXzMwMFgyNTA="), c2("I2Jhbm5lcmZsb2F0MjI="), c2("I2NhbXBhaWduLWJhbm5lcg=="), c2("I0FkLUNvbnRlbnQ=")], adGuardChinese: [c2("LlppX2FkX2FfSA=="), c2("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"), "#widget-quan", c2("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"), c2("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")], adGuardFrench: ["#pavePub", c2("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"), ".mobile_adhesion", ".widgetadv", c2("LmFkc19iYW4=")], adGuardGerman: ['aside[data-portal-id="leaderboard"]'], adGuardJapanese: ["#kauli_yad_1", c2("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="), c2("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="), c2("LmFkZ29vZ2xl"), c2("Ll9faXNib29zdFJldHVybkFk")], adGuardMobile: [c2("YW1wLWF1dG8tYWRz"), c2("LmFtcF9hZA=="), 'amp-embed[type="24smi"]', "#mgid_iframe1", c2("I2FkX2ludmlld19hcmVh")], adGuardRussian: [c2("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="), c2("LnJlY2xhbWE="), 'div[id^="smi2adblock"]', c2("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"), "#psyduckpockeball"], adGuardSocial: [c2("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="), c2("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="), ".etsy-tweet", "#inlineShare", ".popup-social"], adGuardSpanishPortuguese: ["#barraPublicidade", "#Publicidade", "#publiEspecial", "#queTooltip", ".cnt-publi"], adGuardTrackingProtection: ["#qoo-counter", c2("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="), c2("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="), c2("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="), "#top100counter"], adGuardTurkish: ["#backkapat", c2("I3Jla2xhbWk="), c2("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="), c2("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"), c2("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")], bulgarian: [c2("dGQjZnJlZW5ldF90YWJsZV9hZHM="), "#ea_intext_div", ".lapni-pop-over", "#xenium_hot_offers"], easyList: [".yb-floorad", c2("LndpZGdldF9wb19hZHNfd2lkZ2V0"), c2("LnRyYWZmaWNqdW5reS1hZA=="), ".textad_headline", c2("LnNwb25zb3JlZC10ZXh0LWxpbmtz")], easyListChina: [c2("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="), c2("LmZyb250cGFnZUFkdk0="), "#taotaole", "#aafoot.top_box", ".cfa_popup"], easyListCookie: [".ezmob-footer", ".cc-CookieWarning", "[data-cookie-number]", c2("LmF3LWNvb2tpZS1iYW5uZXI="), ".sygnal24-gdpr-modal-wrap"], easyListCzechSlovak: ["#onlajny-stickers", c2("I3Jla2xhbW5pLWJveA=="), c2("LnJla2xhbWEtbWVnYWJvYXJk"), ".sklik", c2("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")], easyListDutch: [c2("I2FkdmVydGVudGll"), c2("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="), ".adstekst", c2("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="), "#semilo-lrectangle"], easyListGermany: ["#SSpotIMPopSlider", c2("LnNwb25zb3JsaW5rZ3J1ZW4="), c2("I3dlcmJ1bmdza3k="), c2("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"), c2("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")], easyListItaly: [c2("LmJveF9hZHZfYW5udW5jaQ=="), ".sb-box-pubbliredazionale", c2("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"), c2("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"), c2("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")], easyListLithuania: [c2("LnJla2xhbW9zX3RhcnBhcw=="), c2("LnJla2xhbW9zX251b3JvZG9z"), c2("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"), c2("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"), c2("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")], estonian: [c2("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")], fanboyAnnoyances: ["#ac-lre-player", ".navigate-to-top", "#subscribe_popup", ".newsletter_holder", "#back-top"], fanboyAntiFacebook: [".util-bar-module-firefly-visible"], fanboyEnhancedTrackers: [".open.pushModal", "#issuem-leaky-paywall-articles-zero-remaining-nag", "#sovrn_container", 'div[class$="-hide"][zoompage-fontsize][style="display: block;"]', ".BlockNag__Card"], fanboySocial: ["#FollowUs", "#meteored_share", "#social_follow", ".article-sharer", ".community__social-desc"], frellwitSwedish: [c2("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="), c2("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="), "article.category-samarbete", c2("ZGl2LmhvbGlkQWRz"), "ul.adsmodern"], greekAdBlock: [c2("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"), c2("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="), c2("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"), "DIV.agores300", "TABLE.advright"], hungarian: ["#cemp_doboz", ".optimonk-iframe-container", c2("LmFkX19tYWlu"), c2("W2NsYXNzKj0iR29vZ2xlQWRzIl0="), "#hirdetesek_box"], iDontCareAboutCookies: ['.alert-info[data-block-track*="CookieNotice"]', ".ModuleTemplateCookieIndicator", ".o--cookies--container", "#cookies-policy-sticky", "#stickyCookieBar"], icelandicAbp: [c2("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")], latvian: [c2("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="), c2("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")], listKr: [c2("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="), c2("I2xpdmVyZUFkV3JhcHBlcg=="), c2("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="), c2("aW5zLmZhc3R2aWV3LWFk"), ".revenue_unit_item.dable"], listeAr: [c2("LmdlbWluaUxCMUFk"), ".right-and-left-sponsers", c2("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="), c2("YVtocmVmKj0iYm9vcmFxLm9yZyJd"), c2("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")], listeFr: [c2("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="), c2("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="), c2("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="), ".site-pub-interstitiel", 'div[id^="crt-"][data-criteo-id]'], officialPolish: ["#ceneo-placeholder-ceneo-12", c2("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"), c2("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="), c2("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="), c2("ZGl2I3NrYXBpZWNfYWQ=")], ro: [c2("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"), c2("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"), c2("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="), c2("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"), 'a[href^="/url/"]'], ruAd: [c2("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"), c2("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="), c2("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="), "#pgeldiz", ".yandex-rtb-block"], thaiAds: ["a[href*=macau-uta-popup]", c2("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="), c2("LmFkczMwMHM="), ".bumq", ".img-kosana"], webAnnoyancesUltralist: ["#mod-social-share-2", "#social-tools", c2("LmN0cGwtZnVsbGJhbm5lcg=="), ".zergnet-recommend", ".yt.btn-link.btn-md.btn"] }, n2 = Object.keys(t3), [4, B((a2 = []).concat.apply(a2, n2.map(function(e3) {
|
|
9907
|
+
return t3[e3];
|
|
9908
|
+
})))]) : [2, void 0];
|
|
9909
|
+
case 1:
|
|
9910
|
+
return r2 = i2.sent(), e2 && function(t4, e3) {
|
|
9911
|
+
for (var n3 = "DOM blockers debug:\n```", r3 = 0, o3 = Object.keys(t4); r3 < o3.length; r3++) {
|
|
9912
|
+
var a3 = o3[r3];
|
|
9913
|
+
n3 += "\n".concat(a3, ":");
|
|
9914
|
+
for (var i3 = 0, c3 = t4[a3]; i3 < c3.length; i3++) {
|
|
9915
|
+
var u2 = c3[i3];
|
|
9916
|
+
n3 += "\n ".concat(e3[u2] ? "🚫" : "➡️", " ").concat(u2);
|
|
9917
|
+
}
|
|
9918
|
+
}
|
|
9919
|
+
console.log("".concat(n3, "\n```"));
|
|
9920
|
+
}(t3, r2), (o2 = n2.filter(function(e3) {
|
|
9921
|
+
var n3 = t3[e3];
|
|
9922
|
+
return S(n3.map(function(t4) {
|
|
9923
|
+
return r2[t4];
|
|
9924
|
+
})) > 0.6 * n3.length;
|
|
9925
|
+
})).sort(), [2, o2];
|
|
9926
|
+
}
|
|
9927
|
+
var c2;
|
|
9928
|
+
});
|
|
9929
|
+
});
|
|
9930
|
+
}, fontPreferences: function() {
|
|
9931
|
+
return function(t2, e2) {
|
|
9932
|
+
void 0 === e2 && (e2 = 4e3);
|
|
9933
|
+
return Y(function(n2, r2) {
|
|
9934
|
+
var o2 = r2.document, a2 = o2.body, i2 = a2.style;
|
|
9935
|
+
i2.width = "".concat(e2, "px"), i2.webkitTextSizeAdjust = i2.textSizeAdjust = "none", F() ? a2.style.zoom = "".concat(1 / r2.devicePixelRatio) : j() && (a2.style.zoom = "reset");
|
|
9936
|
+
var c2 = o2.createElement("div");
|
|
9937
|
+
return c2.textContent = s([], Array(e2 / 20 << 0), true).map(function() {
|
|
9938
|
+
return "word";
|
|
9939
|
+
}).join(" "), a2.appendChild(c2), t2(o2, a2);
|
|
9940
|
+
}, '<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">');
|
|
9941
|
+
}(function(t2, e2) {
|
|
9942
|
+
for (var n2 = {}, r2 = {}, o2 = 0, a2 = Object.keys(rt); o2 < a2.length; o2++) {
|
|
9943
|
+
var i2 = a2[o2], c2 = rt[i2], u2 = c2[0], s2 = void 0 === u2 ? {} : u2, l2 = c2[1], d2 = void 0 === l2 ? "mmMwWLliI0fiflO&1" : l2, f2 = t2.createElement("span");
|
|
9944
|
+
f2.textContent = d2, f2.style.whiteSpace = "nowrap";
|
|
9945
|
+
for (var h2 = 0, m2 = Object.keys(s2); h2 < m2.length; h2++) {
|
|
9946
|
+
var v2 = m2[h2], p2 = s2[v2];
|
|
9947
|
+
void 0 !== p2 && (f2.style[v2] = p2);
|
|
9948
|
+
}
|
|
9949
|
+
n2[i2] = f2, e2.appendChild(t2.createElement("br")), e2.appendChild(f2);
|
|
9950
|
+
}
|
|
9951
|
+
for (var y2 = 0, b2 = Object.keys(rt); y2 < b2.length; y2++) {
|
|
9952
|
+
r2[i2 = b2[y2]] = n2[i2].getBoundingClientRect().width;
|
|
9953
|
+
}
|
|
9954
|
+
return r2;
|
|
9955
|
+
});
|
|
9956
|
+
}, audio: function() {
|
|
9957
|
+
var t2 = window, e2 = t2.OfflineAudioContext || t2.webkitOfflineAudioContext;
|
|
9958
|
+
if (!e2)
|
|
9959
|
+
return -2;
|
|
9960
|
+
if (j() && !M() && !function() {
|
|
9961
|
+
var t3 = window;
|
|
9962
|
+
return S(["DOMRectList" in t3, "RTCPeerConnectionIceEvent" in t3, "SVGGeometryElement" in t3, "ontransitioncancel" in t3]) >= 3;
|
|
9963
|
+
}())
|
|
9964
|
+
return -1;
|
|
9965
|
+
var n2 = new e2(1, 5e3, 44100), r2 = n2.createOscillator();
|
|
9966
|
+
r2.type = "triangle", r2.frequency.value = 1e4;
|
|
9967
|
+
var o2 = n2.createDynamicsCompressor();
|
|
9968
|
+
o2.threshold.value = -50, o2.knee.value = 40, o2.ratio.value = 12, o2.attack.value = 0, o2.release.value = 0.25, r2.connect(o2), o2.connect(n2.destination), r2.start(0);
|
|
9969
|
+
var a2 = function(t3) {
|
|
9970
|
+
var e3 = 3, n3 = 500, r3 = 500, o3 = 5e3, a3 = function() {
|
|
9971
|
+
}, i3 = new Promise(function(i4, c3) {
|
|
9972
|
+
var u3 = false, s2 = 0, l2 = 0;
|
|
9973
|
+
t3.oncomplete = function(t4) {
|
|
9974
|
+
return i4(t4.renderedBuffer);
|
|
9975
|
+
};
|
|
9976
|
+
var d2 = function() {
|
|
9977
|
+
setTimeout(function() {
|
|
9978
|
+
return c3(R("timeout"));
|
|
9979
|
+
}, Math.min(r3, l2 + o3 - Date.now()));
|
|
9980
|
+
}, h2 = function() {
|
|
9981
|
+
try {
|
|
9982
|
+
var r4 = t3.startRendering();
|
|
9983
|
+
switch (f(r4) && v(r4), t3.state) {
|
|
9984
|
+
case "running":
|
|
9985
|
+
l2 = Date.now(), u3 && d2();
|
|
9986
|
+
break;
|
|
9987
|
+
case "suspended":
|
|
9988
|
+
document.hidden || s2++, u3 && s2 >= e3 ? c3(R("suspended")) : setTimeout(h2, n3);
|
|
9989
|
+
}
|
|
9990
|
+
} catch (t4) {
|
|
9991
|
+
c3(t4);
|
|
9992
|
+
}
|
|
9993
|
+
};
|
|
9994
|
+
h2(), a3 = function() {
|
|
9995
|
+
u3 || (u3 = true, l2 > 0 && d2());
|
|
9996
|
+
};
|
|
9997
|
+
});
|
|
9998
|
+
return [i3, a3];
|
|
9999
|
+
}(n2), i2 = a2[0], c2 = a2[1], u2 = i2.then(function(t3) {
|
|
10000
|
+
return function(t4) {
|
|
10001
|
+
for (var e3 = 0, n3 = 0; n3 < t4.length; ++n3)
|
|
10002
|
+
e3 += Math.abs(t4[n3]);
|
|
10003
|
+
return e3;
|
|
10004
|
+
}(t3.getChannelData(0).subarray(4500));
|
|
10005
|
+
}, function(t3) {
|
|
10006
|
+
if ("timeout" === t3.name || "suspended" === t3.name)
|
|
10007
|
+
return -3;
|
|
10008
|
+
throw t3;
|
|
10009
|
+
});
|
|
10010
|
+
return v(u2), function() {
|
|
10011
|
+
return c2(), u2;
|
|
10012
|
+
};
|
|
10013
|
+
}, screenFrame: function() {
|
|
10014
|
+
var t2 = this, e2 = T();
|
|
10015
|
+
return function() {
|
|
10016
|
+
return c(t2, void 0, void 0, function() {
|
|
10017
|
+
var t3, n2;
|
|
10018
|
+
return u(this, function(r2) {
|
|
10019
|
+
switch (r2.label) {
|
|
10020
|
+
case 0:
|
|
10021
|
+
return [4, e2()];
|
|
10022
|
+
case 1:
|
|
10023
|
+
return t3 = r2.sent(), [2, [(n2 = function(t4) {
|
|
10024
|
+
return null === t4 ? null : Z(t4, 10);
|
|
10025
|
+
})(t3[0]), n2(t3[1]), n2(t3[2]), n2(t3[3])]];
|
|
10026
|
+
}
|
|
10027
|
+
});
|
|
10028
|
+
});
|
|
10029
|
+
};
|
|
10030
|
+
}, osCpu: function() {
|
|
10031
|
+
return navigator.oscpu;
|
|
10032
|
+
}, languages: function() {
|
|
10033
|
+
var t2, e2 = navigator, n2 = [], r2 = e2.language || e2.userLanguage || e2.browserLanguage || e2.systemLanguage;
|
|
10034
|
+
if (void 0 !== r2 && n2.push([r2]), Array.isArray(e2.languages))
|
|
10035
|
+
F() && S([!("MediaSettingsRange" in (t2 = window)), "RTCEncodedAudioFrame" in t2, "" + t2.Intl == "[object Intl]", "" + t2.Reflect == "[object Reflect]"]) >= 3 || n2.push(e2.languages);
|
|
10036
|
+
else if ("string" == typeof e2.languages) {
|
|
10037
|
+
var o2 = e2.languages;
|
|
10038
|
+
o2 && n2.push(o2.split(","));
|
|
10039
|
+
}
|
|
10040
|
+
return n2;
|
|
10041
|
+
}, colorDepth: function() {
|
|
10042
|
+
return window.screen.colorDepth;
|
|
10043
|
+
}, deviceMemory: function() {
|
|
10044
|
+
return V(x(navigator.deviceMemory), void 0);
|
|
10045
|
+
}, screenResolution: function() {
|
|
10046
|
+
var t2 = screen, e2 = function(t3) {
|
|
10047
|
+
return V(k(t3), null);
|
|
10048
|
+
}, n2 = [e2(t2.width), e2(t2.height)];
|
|
10049
|
+
return n2.sort().reverse(), n2;
|
|
10050
|
+
}, hardwareConcurrency: function() {
|
|
10051
|
+
return V(k(navigator.hardwareConcurrency), void 0);
|
|
10052
|
+
}, timezone: function() {
|
|
10053
|
+
var t2, e2 = null === (t2 = window.Intl) || void 0 === t2 ? void 0 : t2.DateTimeFormat;
|
|
10054
|
+
if (e2) {
|
|
10055
|
+
var n2 = new e2().resolvedOptions().timeZone;
|
|
10056
|
+
if (n2)
|
|
10057
|
+
return n2;
|
|
10058
|
+
}
|
|
10059
|
+
var r2, o2 = (r2 = (/* @__PURE__ */ new Date()).getFullYear(), -Math.max(x(new Date(r2, 0, 1).getTimezoneOffset()), x(new Date(r2, 6, 1).getTimezoneOffset())));
|
|
10060
|
+
return "UTC".concat(o2 >= 0 ? "+" : "").concat(Math.abs(o2));
|
|
10061
|
+
}, sessionStorage: function() {
|
|
10062
|
+
try {
|
|
10063
|
+
return !!window.sessionStorage;
|
|
10064
|
+
} catch (t2) {
|
|
10065
|
+
return true;
|
|
10066
|
+
}
|
|
10067
|
+
}, localStorage: function() {
|
|
10068
|
+
try {
|
|
10069
|
+
return !!window.localStorage;
|
|
10070
|
+
} catch (t2) {
|
|
10071
|
+
return true;
|
|
10072
|
+
}
|
|
10073
|
+
}, indexedDB: function() {
|
|
10074
|
+
var t2, e2;
|
|
10075
|
+
if (!(I() || (t2 = window, e2 = navigator, S(["msWriteProfilerMark" in t2, "MSStream" in t2, "msLaunchUri" in e2, "msSaveBlob" in e2]) >= 3 && !I())))
|
|
10076
|
+
try {
|
|
10077
|
+
return !!window.indexedDB;
|
|
10078
|
+
} catch (t3) {
|
|
10079
|
+
return true;
|
|
10080
|
+
}
|
|
10081
|
+
}, openDatabase: function() {
|
|
10082
|
+
return !!window.openDatabase;
|
|
10083
|
+
}, cpuClass: function() {
|
|
10084
|
+
return navigator.cpuClass;
|
|
10085
|
+
}, platform: function() {
|
|
10086
|
+
var t2 = navigator.platform;
|
|
10087
|
+
return "MacIntel" === t2 && j() && !M() ? function() {
|
|
10088
|
+
if ("iPad" === navigator.platform)
|
|
10089
|
+
return true;
|
|
10090
|
+
var t3 = screen, e2 = t3.width / t3.height;
|
|
10091
|
+
return S(["MediaSource" in window, !!Element.prototype.webkitRequestFullscreen, e2 > 0.65 && e2 < 1.53]) >= 2;
|
|
10092
|
+
}() ? "iPad" : "iPhone" : t2;
|
|
10093
|
+
}, plugins: function() {
|
|
10094
|
+
var t2 = navigator.plugins;
|
|
10095
|
+
if (t2) {
|
|
10096
|
+
for (var e2 = [], n2 = 0; n2 < t2.length; ++n2) {
|
|
10097
|
+
var r2 = t2[n2];
|
|
10098
|
+
if (r2) {
|
|
10099
|
+
for (var o2 = [], a2 = 0; a2 < r2.length; ++a2) {
|
|
10100
|
+
var i2 = r2[a2];
|
|
10101
|
+
o2.push({ type: i2.type, suffixes: i2.suffixes });
|
|
10102
|
+
}
|
|
10103
|
+
e2.push({ name: r2.name, description: r2.description, mimeTypes: o2 });
|
|
10104
|
+
}
|
|
10105
|
+
}
|
|
10106
|
+
return e2;
|
|
10107
|
+
}
|
|
10108
|
+
}, canvas: function() {
|
|
10109
|
+
var t2, e2, n2 = false, r2 = function() {
|
|
10110
|
+
var t3 = document.createElement("canvas");
|
|
10111
|
+
return t3.width = 1, t3.height = 1, [t3, t3.getContext("2d")];
|
|
10112
|
+
}(), o2 = r2[0], a2 = r2[1];
|
|
10113
|
+
if (function(t3, e3) {
|
|
10114
|
+
return !(!e3 || !t3.toDataURL);
|
|
10115
|
+
}(o2, a2)) {
|
|
10116
|
+
n2 = function(t3) {
|
|
10117
|
+
return t3.rect(0, 0, 10, 10), t3.rect(2, 2, 6, 6), !t3.isPointInPath(5, 5, "evenodd");
|
|
10118
|
+
}(a2), function(t3, e3) {
|
|
10119
|
+
t3.width = 240, t3.height = 60, e3.textBaseline = "alphabetic", e3.fillStyle = "#f60", e3.fillRect(100, 1, 62, 20), e3.fillStyle = "#069", e3.font = '11pt "Times New Roman"';
|
|
10120
|
+
var n3 = "Cwm fjordbank gly ".concat(String.fromCharCode(55357, 56835));
|
|
10121
|
+
e3.fillText(n3, 2, 15), e3.fillStyle = "rgba(102, 204, 0, 0.2)", e3.font = "18pt Arial", e3.fillText(n3, 4, 45);
|
|
10122
|
+
}(o2, a2);
|
|
10123
|
+
var i2 = H(o2);
|
|
10124
|
+
i2 !== H(o2) ? t2 = e2 = "unstable" : (e2 = i2, function(t3, e3) {
|
|
10125
|
+
t3.width = 122, t3.height = 110, e3.globalCompositeOperation = "multiply";
|
|
10126
|
+
for (var n3 = 0, r3 = [["#f2f", 40, 40], ["#2ff", 80, 40], ["#ff2", 60, 80]]; n3 < r3.length; n3++) {
|
|
10127
|
+
var o3 = r3[n3], a3 = o3[0], i3 = o3[1], c2 = o3[2];
|
|
10128
|
+
e3.fillStyle = a3, e3.beginPath(), e3.arc(i3, c2, 40, 0, 2 * Math.PI, true), e3.closePath(), e3.fill();
|
|
10129
|
+
}
|
|
10130
|
+
e3.fillStyle = "#f9c", e3.arc(60, 60, 60, 0, 2 * Math.PI, true), e3.arc(60, 60, 20, 0, 2 * Math.PI, true), e3.fill("evenodd");
|
|
10131
|
+
}(o2, a2), t2 = H(o2));
|
|
10132
|
+
} else
|
|
10133
|
+
t2 = e2 = "";
|
|
10134
|
+
return { winding: n2, geometry: t2, text: e2 };
|
|
10135
|
+
}, touchSupport: function() {
|
|
10136
|
+
var t2, e2 = navigator, n2 = 0;
|
|
10137
|
+
void 0 !== e2.maxTouchPoints ? n2 = k(e2.maxTouchPoints) : void 0 !== e2.msMaxTouchPoints && (n2 = e2.msMaxTouchPoints);
|
|
10138
|
+
try {
|
|
10139
|
+
document.createEvent("TouchEvent"), t2 = true;
|
|
10140
|
+
} catch (e3) {
|
|
10141
|
+
t2 = false;
|
|
10142
|
+
}
|
|
10143
|
+
return { maxTouchPoints: n2, touchEvent: t2, touchStart: "ontouchstart" in window };
|
|
10144
|
+
}, vendor: function() {
|
|
10145
|
+
return navigator.vendor || "";
|
|
10146
|
+
}, vendorFlavors: function() {
|
|
10147
|
+
for (var t2 = [], e2 = 0, n2 = ["chrome", "safari", "__crWeb", "__gCrWeb", "yandex", "__yb", "__ybro", "__firefox__", "__edgeTrackingPreventionStatistics", "webkit", "oprt", "samsungAr", "ucweb", "UCShellJava", "puffinDevice"]; e2 < n2.length; e2++) {
|
|
10148
|
+
var r2 = n2[e2], o2 = window[r2];
|
|
10149
|
+
o2 && "object" == typeof o2 && t2.push(r2);
|
|
10150
|
+
}
|
|
10151
|
+
return t2.sort();
|
|
10152
|
+
}, cookiesEnabled: function() {
|
|
10153
|
+
var t2 = document;
|
|
10154
|
+
try {
|
|
10155
|
+
t2.cookie = "cookietest=1; SameSite=Strict;";
|
|
10156
|
+
var e2 = -1 !== t2.cookie.indexOf("cookietest=");
|
|
10157
|
+
return t2.cookie = "cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT", e2;
|
|
10158
|
+
} catch (t3) {
|
|
10159
|
+
return false;
|
|
10160
|
+
}
|
|
10161
|
+
}, colorGamut: function() {
|
|
10162
|
+
for (var t2 = 0, e2 = ["rec2020", "p3", "srgb"]; t2 < e2.length; t2++) {
|
|
10163
|
+
var n2 = e2[t2];
|
|
10164
|
+
if (matchMedia("(color-gamut: ".concat(n2, ")")).matches)
|
|
10165
|
+
return n2;
|
|
10166
|
+
}
|
|
10167
|
+
}, invertedColors: function() {
|
|
10168
|
+
return !!Q("inverted") || !Q("none") && void 0;
|
|
10169
|
+
}, forcedColors: function() {
|
|
10170
|
+
return !!K("active") || !K("none") && void 0;
|
|
10171
|
+
}, monochrome: function() {
|
|
10172
|
+
if (matchMedia("(min-monochrome: 0)").matches) {
|
|
10173
|
+
for (var t2 = 0; t2 <= 100; ++t2)
|
|
10174
|
+
if (matchMedia("(max-monochrome: ".concat(t2, ")")).matches)
|
|
10175
|
+
return t2;
|
|
10176
|
+
throw new Error("Too high value");
|
|
10177
|
+
}
|
|
10178
|
+
}, contrast: function() {
|
|
10179
|
+
return q("no-preference") ? 0 : q("high") || q("more") ? 1 : q("low") || q("less") ? -1 : q("forced") ? 10 : void 0;
|
|
10180
|
+
}, reducedMotion: function() {
|
|
10181
|
+
return !!$("reduce") || !$("no-preference") && void 0;
|
|
10182
|
+
}, hdr: function() {
|
|
10183
|
+
return !!tt("high") || !tt("standard") && void 0;
|
|
10184
|
+
}, math: function() {
|
|
10185
|
+
var t2, e2 = et.acos || nt, n2 = et.acosh || nt, r2 = et.asin || nt, o2 = et.asinh || nt, a2 = et.atanh || nt, i2 = et.atan || nt, c2 = et.sin || nt, u2 = et.sinh || nt, s2 = et.cos || nt, l2 = et.cosh || nt, d2 = et.tan || nt, f2 = et.tanh || nt, h2 = et.exp || nt, m2 = et.expm1 || nt, v2 = et.log1p || nt;
|
|
10186
|
+
return { acos: e2(0.12312423423423424), acosh: n2(1e308), acoshPf: (t2 = 1e154, et.log(t2 + et.sqrt(t2 * t2 - 1))), asin: r2(0.12312423423423424), asinh: o2(1), asinhPf: function(t3) {
|
|
10187
|
+
return et.log(t3 + et.sqrt(t3 * t3 + 1));
|
|
10188
|
+
}(1), atanh: a2(0.5), atanhPf: function(t3) {
|
|
10189
|
+
return et.log((1 + t3) / (1 - t3)) / 2;
|
|
10190
|
+
}(0.5), atan: i2(0.5), sin: c2(-1e300), sinh: u2(1), sinhPf: function(t3) {
|
|
10191
|
+
return et.exp(t3) - 1 / et.exp(t3) / 2;
|
|
10192
|
+
}(1), cos: s2(10.000000000123), cosh: l2(1), coshPf: function(t3) {
|
|
10193
|
+
return (et.exp(t3) + 1 / et.exp(t3)) / 2;
|
|
10194
|
+
}(1), tan: d2(-1e300), tanh: f2(1), tanhPf: function(t3) {
|
|
10195
|
+
return (et.exp(2 * t3) - 1) / (et.exp(2 * t3) + 1);
|
|
10196
|
+
}(1), exp: h2(1), expm1: m2(1), expm1Pf: function(t3) {
|
|
10197
|
+
return et.exp(t3) - 1;
|
|
10198
|
+
}(1), log1p: v2(10), log1pPf: function(t3) {
|
|
10199
|
+
return et.log(1 + t3);
|
|
10200
|
+
}(10), powPI: function(t3) {
|
|
10201
|
+
return et.pow(et.PI, t3);
|
|
10202
|
+
}(-100) };
|
|
10203
|
+
}, videoCard: function() {
|
|
10204
|
+
var t2, e2 = document.createElement("canvas"), n2 = null !== (t2 = e2.getContext("webgl")) && void 0 !== t2 ? t2 : e2.getContext("experimental-webgl");
|
|
10205
|
+
if (n2 && "getExtension" in n2) {
|
|
10206
|
+
var r2 = n2.getExtension("WEBGL_debug_renderer_info");
|
|
10207
|
+
if (r2)
|
|
10208
|
+
return { vendor: (n2.getParameter(r2.UNMASKED_VENDOR_WEBGL) || "").toString(), renderer: (n2.getParameter(r2.UNMASKED_RENDERER_WEBGL) || "").toString() };
|
|
10209
|
+
}
|
|
10210
|
+
}, pdfViewerEnabled: function() {
|
|
10211
|
+
return navigator.pdfViewerEnabled;
|
|
10212
|
+
}, architecture: function() {
|
|
10213
|
+
var t2 = new Float32Array(1), e2 = new Uint8Array(t2.buffer);
|
|
10214
|
+
return t2[0] = 1 / 0, t2[0] = t2[0] - t2[0], e2[3];
|
|
10215
|
+
} };
|
|
10216
|
+
var at = "$ if upgrade to Pro: https://fpjs.dev/pro";
|
|
10217
|
+
function it(t2) {
|
|
10218
|
+
var e2 = function(t3) {
|
|
10219
|
+
if (G())
|
|
10220
|
+
return 0.4;
|
|
10221
|
+
if (j())
|
|
10222
|
+
return M() ? 0.5 : 0.3;
|
|
10223
|
+
var e3 = t3.platform.value || "";
|
|
10224
|
+
if (/^Win/.test(e3))
|
|
10225
|
+
return 0.6;
|
|
10226
|
+
if (/^Mac/.test(e3))
|
|
10227
|
+
return 0.5;
|
|
10228
|
+
return 0.7;
|
|
10229
|
+
}(t2), n2 = function(t3) {
|
|
10230
|
+
return Z(0.99 + 0.01 * t3, 1e-4);
|
|
10231
|
+
}(e2);
|
|
10232
|
+
return { score: e2, comment: at.replace(/\$/g, "".concat(n2)) };
|
|
10233
|
+
}
|
|
10234
|
+
function ct(t2) {
|
|
10235
|
+
return JSON.stringify(t2, function(t3, e2) {
|
|
10236
|
+
return e2 instanceof Error ? i({ name: (n2 = e2).name, message: n2.message, stack: null === (r2 = n2.stack) || void 0 === r2 ? void 0 : r2.split("\n") }, n2) : e2;
|
|
10237
|
+
var n2, r2;
|
|
10238
|
+
}, 2);
|
|
10239
|
+
}
|
|
10240
|
+
function ut(t2) {
|
|
10241
|
+
return function(t3, e2) {
|
|
10242
|
+
e2 = e2 || 0;
|
|
10243
|
+
var n2, r2 = (t3 = t3 || "").length % 16, o2 = t3.length - r2, a2 = [0, e2], i2 = [0, e2], c2 = [0, 0], u2 = [0, 0], s2 = [2277735313, 289559509], l2 = [1291169091, 658871167];
|
|
10244
|
+
for (n2 = 0; n2 < o2; n2 += 16)
|
|
10245
|
+
c2 = [255 & t3.charCodeAt(n2 + 4) | (255 & t3.charCodeAt(n2 + 5)) << 8 | (255 & t3.charCodeAt(n2 + 6)) << 16 | (255 & t3.charCodeAt(n2 + 7)) << 24, 255 & t3.charCodeAt(n2) | (255 & t3.charCodeAt(n2 + 1)) << 8 | (255 & t3.charCodeAt(n2 + 2)) << 16 | (255 & t3.charCodeAt(n2 + 3)) << 24], u2 = [255 & t3.charCodeAt(n2 + 12) | (255 & t3.charCodeAt(n2 + 13)) << 8 | (255 & t3.charCodeAt(n2 + 14)) << 16 | (255 & t3.charCodeAt(n2 + 15)) << 24, 255 & t3.charCodeAt(n2 + 8) | (255 & t3.charCodeAt(n2 + 9)) << 8 | (255 & t3.charCodeAt(n2 + 10)) << 16 | (255 & t3.charCodeAt(n2 + 11)) << 24], c2 = b(c2 = y(c2, s2), 31), a2 = p(a2 = b(a2 = w(a2, c2 = y(c2, l2)), 27), i2), a2 = p(y(a2, [0, 5]), [0, 1390208809]), u2 = b(u2 = y(u2, l2), 33), i2 = p(i2 = b(i2 = w(i2, u2 = y(u2, s2)), 31), a2), i2 = p(y(i2, [0, 5]), [0, 944331445]);
|
|
10246
|
+
switch (c2 = [0, 0], u2 = [0, 0], r2) {
|
|
10247
|
+
case 15:
|
|
10248
|
+
u2 = w(u2, g([0, t3.charCodeAt(n2 + 14)], 48));
|
|
10249
|
+
case 14:
|
|
10250
|
+
u2 = w(u2, g([0, t3.charCodeAt(n2 + 13)], 40));
|
|
10251
|
+
case 13:
|
|
10252
|
+
u2 = w(u2, g([0, t3.charCodeAt(n2 + 12)], 32));
|
|
10253
|
+
case 12:
|
|
10254
|
+
u2 = w(u2, g([0, t3.charCodeAt(n2 + 11)], 24));
|
|
10255
|
+
case 11:
|
|
10256
|
+
u2 = w(u2, g([0, t3.charCodeAt(n2 + 10)], 16));
|
|
10257
|
+
case 10:
|
|
10258
|
+
u2 = w(u2, g([0, t3.charCodeAt(n2 + 9)], 8));
|
|
10259
|
+
case 9:
|
|
10260
|
+
u2 = y(u2 = w(u2, [0, t3.charCodeAt(n2 + 8)]), l2), i2 = w(i2, u2 = y(u2 = b(u2, 33), s2));
|
|
10261
|
+
case 8:
|
|
10262
|
+
c2 = w(c2, g([0, t3.charCodeAt(n2 + 7)], 56));
|
|
10263
|
+
case 7:
|
|
10264
|
+
c2 = w(c2, g([0, t3.charCodeAt(n2 + 6)], 48));
|
|
10265
|
+
case 6:
|
|
10266
|
+
c2 = w(c2, g([0, t3.charCodeAt(n2 + 5)], 40));
|
|
10267
|
+
case 5:
|
|
10268
|
+
c2 = w(c2, g([0, t3.charCodeAt(n2 + 4)], 32));
|
|
10269
|
+
case 4:
|
|
10270
|
+
c2 = w(c2, g([0, t3.charCodeAt(n2 + 3)], 24));
|
|
10271
|
+
case 3:
|
|
10272
|
+
c2 = w(c2, g([0, t3.charCodeAt(n2 + 2)], 16));
|
|
10273
|
+
case 2:
|
|
10274
|
+
c2 = w(c2, g([0, t3.charCodeAt(n2 + 1)], 8));
|
|
10275
|
+
case 1:
|
|
10276
|
+
c2 = y(c2 = w(c2, [0, t3.charCodeAt(n2)]), s2), a2 = w(a2, c2 = y(c2 = b(c2, 31), l2));
|
|
10277
|
+
}
|
|
10278
|
+
return a2 = p(a2 = w(a2, [0, t3.length]), i2 = w(i2, [0, t3.length])), i2 = p(i2, a2), a2 = p(a2 = L(a2), i2 = L(i2)), i2 = p(i2, a2), ("00000000" + (a2[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (a2[1] >>> 0).toString(16)).slice(-8) + ("00000000" + (i2[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (i2[1] >>> 0).toString(16)).slice(-8);
|
|
10279
|
+
}(function(t3) {
|
|
10280
|
+
for (var e2 = "", n2 = 0, r2 = Object.keys(t3).sort(); n2 < r2.length; n2++) {
|
|
10281
|
+
var o2 = r2[n2], a2 = t3[o2], i2 = a2.error ? "error" : JSON.stringify(a2.value);
|
|
10282
|
+
e2 += "".concat(e2 ? "|" : "").concat(o2.replace(/([:|\\])/g, "\\$1"), ":").concat(i2);
|
|
10283
|
+
}
|
|
10284
|
+
return e2;
|
|
10285
|
+
}(t2));
|
|
10286
|
+
}
|
|
10287
|
+
function st(t2) {
|
|
10288
|
+
return void 0 === t2 && (t2 = 50), function(t3, e2) {
|
|
10289
|
+
void 0 === e2 && (e2 = 1 / 0);
|
|
10290
|
+
var n2 = window.requestIdleCallback;
|
|
10291
|
+
return n2 ? new Promise(function(t4) {
|
|
10292
|
+
return n2.call(window, function() {
|
|
10293
|
+
return t4();
|
|
10294
|
+
}, { timeout: e2 });
|
|
10295
|
+
}) : d(Math.min(t3, e2));
|
|
10296
|
+
}(t2, 2 * t2);
|
|
10297
|
+
}
|
|
10298
|
+
function lt(t2, e2) {
|
|
10299
|
+
var n2 = Date.now();
|
|
10300
|
+
return { get: function(r2) {
|
|
10301
|
+
return c(this, void 0, void 0, function() {
|
|
10302
|
+
var o2, a2, i2;
|
|
10303
|
+
return u(this, function(c2) {
|
|
10304
|
+
switch (c2.label) {
|
|
10305
|
+
case 0:
|
|
10306
|
+
return o2 = Date.now(), [4, t2()];
|
|
10307
|
+
case 1:
|
|
10308
|
+
return a2 = c2.sent(), i2 = function(t3) {
|
|
10309
|
+
var e3;
|
|
10310
|
+
return { get visitorId() {
|
|
10311
|
+
return void 0 === e3 && (e3 = ut(this.components)), e3;
|
|
10312
|
+
}, set visitorId(t4) {
|
|
10313
|
+
e3 = t4;
|
|
10314
|
+
}, confidence: it(t3), components: t3, version: l };
|
|
10315
|
+
}(a2), (e2 || (null == r2 ? void 0 : r2.debug)) && console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(i2.version, "\nuserAgent: ").concat(navigator.userAgent, "\ntimeBetweenLoadAndGet: ").concat(o2 - n2, "\nvisitorId: ").concat(i2.visitorId, "\ncomponents: ").concat(ct(a2), "\n```")), [2, i2];
|
|
10316
|
+
}
|
|
9549
10317
|
});
|
|
9550
|
-
}
|
|
9551
|
-
}
|
|
9552
|
-
|
|
9553
|
-
|
|
10318
|
+
});
|
|
10319
|
+
} };
|
|
10320
|
+
}
|
|
10321
|
+
var dt = { load: function(t2) {
|
|
10322
|
+
var e2 = void 0 === t2 ? {} : t2, n2 = e2.delayFallback, r2 = e2.debug, o2 = e2.monitoring, a2 = void 0 === o2 || o2;
|
|
10323
|
+
return c(this, void 0, void 0, function() {
|
|
10324
|
+
return u(this, function(t3) {
|
|
10325
|
+
switch (t3.label) {
|
|
10326
|
+
case 0:
|
|
10327
|
+
return a2 && function() {
|
|
10328
|
+
if (!(window.__fpjs_d_m || Math.random() >= 1e-3))
|
|
10329
|
+
try {
|
|
10330
|
+
var t4 = new XMLHttpRequest();
|
|
10331
|
+
t4.open("get", "https://m1.openfpcdn.io/fingerprintjs/v".concat(l, "/npm-monitoring"), true), t4.send();
|
|
10332
|
+
} catch (t5) {
|
|
10333
|
+
console.error(t5);
|
|
10334
|
+
}
|
|
10335
|
+
}(), [4, st(n2)];
|
|
10336
|
+
case 1:
|
|
10337
|
+
return t3.sent(), [2, lt(C(ot, { debug: r2 }, []), r2)];
|
|
10338
|
+
}
|
|
10339
|
+
});
|
|
9554
10340
|
});
|
|
9555
|
-
},
|
|
9556
|
-
function
|
|
9557
|
-
return
|
|
10341
|
+
}, hashComponents: ut, componentsToDebugString: ct };
|
|
10342
|
+
function ft() {
|
|
10343
|
+
return ht.apply(this, arguments);
|
|
9558
10344
|
}
|
|
9559
|
-
function
|
|
9560
|
-
return (
|
|
9561
|
-
var e2,
|
|
10345
|
+
function ht() {
|
|
10346
|
+
return (ht = e$1(a.mark(function t2() {
|
|
10347
|
+
var e2, n2;
|
|
9562
10348
|
return a.wrap(function(t3) {
|
|
9563
10349
|
for (; ; )
|
|
9564
10350
|
switch (t3.prev = t3.next) {
|
|
9565
10351
|
case 0:
|
|
9566
|
-
|
|
9567
|
-
|
|
9568
|
-
|
|
9569
|
-
|
|
9570
|
-
return t3.abrupt("return",
|
|
9571
|
-
case 5:
|
|
9572
|
-
return t3.next = 7, I.load({ apiKey: "hpFVJecm7Ni7AjSfvBIW" });
|
|
9573
|
-
case 7:
|
|
9574
|
-
return n2 = t3.sent, t3.next = 10, n2.get();
|
|
10352
|
+
return t3.prev = 0, t3.next = 3, dt.load({ monitoring: false });
|
|
10353
|
+
case 3:
|
|
10354
|
+
return e2 = t3.sent, t3.next = 6, e2.get();
|
|
10355
|
+
case 6:
|
|
10356
|
+
return n2 = t3.sent, t3.abrupt("return", n2.visitorId);
|
|
9575
10357
|
case 10:
|
|
9576
|
-
return
|
|
10358
|
+
return t3.prev = 10, t3.t0 = t3.catch(0), console.log(t3.t0), t3.abrupt("return", "");
|
|
9577
10359
|
case 14:
|
|
9578
|
-
return t3.prev = 14, t3.t0 = t3.catch(0), console.log(t3.t0), t3.abrupt("return", "");
|
|
9579
|
-
case 18:
|
|
9580
10360
|
case "end":
|
|
9581
10361
|
return t3.stop();
|
|
9582
10362
|
}
|
|
9583
|
-
}, t2, null, [[0,
|
|
10363
|
+
}, t2, null, [[0, 10]]);
|
|
9584
10364
|
}))).apply(this, arguments);
|
|
9585
10365
|
}
|
|
9586
|
-
function
|
|
9587
|
-
return
|
|
10366
|
+
function mt() {
|
|
10367
|
+
return vt.apply(this, arguments);
|
|
9588
10368
|
}
|
|
9589
|
-
function
|
|
9590
|
-
return (
|
|
10369
|
+
function vt() {
|
|
10370
|
+
return (vt = e$1(a.mark(function t2() {
|
|
9591
10371
|
return a.wrap(function(t3) {
|
|
9592
10372
|
for (; ; )
|
|
9593
10373
|
switch (t3.prev = t3.next) {
|
|
9594
10374
|
case 0:
|
|
9595
10375
|
return t3.abrupt("return", new Promise(function(t4) {
|
|
9596
10376
|
window.requestIdleCallback ? requestIdleCallback(e$1(a.mark(function e2() {
|
|
9597
|
-
var
|
|
10377
|
+
var n2;
|
|
9598
10378
|
return a.wrap(function(e3) {
|
|
9599
10379
|
for (; ; )
|
|
9600
10380
|
switch (e3.prev = e3.next) {
|
|
9601
10381
|
case 0:
|
|
9602
|
-
return e3.next = 2,
|
|
10382
|
+
return e3.next = 2, ft();
|
|
9603
10383
|
case 2:
|
|
9604
|
-
|
|
10384
|
+
n2 = e3.sent, t4(n2);
|
|
9605
10385
|
case 4:
|
|
9606
10386
|
case "end":
|
|
9607
10387
|
return e3.stop();
|
|
9608
10388
|
}
|
|
9609
10389
|
}, e2);
|
|
9610
10390
|
}))) : setTimeout(e$1(a.mark(function e2() {
|
|
9611
|
-
var
|
|
10391
|
+
var n2;
|
|
9612
10392
|
return a.wrap(function(e3) {
|
|
9613
10393
|
for (; ; )
|
|
9614
10394
|
switch (e3.prev = e3.next) {
|
|
9615
10395
|
case 0:
|
|
9616
|
-
return e3.next = 2,
|
|
10396
|
+
return e3.next = 2, ft();
|
|
9617
10397
|
case 2:
|
|
9618
|
-
|
|
10398
|
+
n2 = e3.sent, t4(n2);
|
|
9619
10399
|
case 4:
|
|
9620
10400
|
case "end":
|
|
9621
10401
|
return e3.stop();
|
|
@@ -9630,33 +10410,33 @@ function N() {
|
|
|
9630
10410
|
}, t2);
|
|
9631
10411
|
}))).apply(this, arguments);
|
|
9632
10412
|
}
|
|
9633
|
-
var
|
|
9634
|
-
var e2 = t2.env,
|
|
10413
|
+
var pt = function(t2) {
|
|
10414
|
+
var e2 = t2.env, n2 = t2.kountAccountId, r2 = t2.kountSessionId, o2 = function(t3) {
|
|
9635
10415
|
return "production" === t3;
|
|
9636
|
-
}(e2) ? "https://ssl.kaptcha.com" : "https://tst.kaptcha.com",
|
|
9637
|
-
|
|
9638
|
-
var
|
|
9639
|
-
return
|
|
10416
|
+
}(e2) ? "https://ssl.kaptcha.com" : "https://tst.kaptcha.com", a2 = new URL("".concat(o2, "/collect/sdk"));
|
|
10417
|
+
a2.searchParams.append("m", n2), r2 && a2.searchParams.append("m", r2);
|
|
10418
|
+
var i2 = document.createElement("script");
|
|
10419
|
+
return i2.setAttribute("class", "kaxsdc"), i2.setAttribute("data-event", "load"), i2.setAttribute("type", "text/javascript"), i2.setAttribute("src", a2.href), document.body.append(i2), i2;
|
|
9640
10420
|
};
|
|
9641
|
-
function
|
|
9642
|
-
return
|
|
10421
|
+
function yt(t2) {
|
|
10422
|
+
return bt.apply(this, arguments);
|
|
9643
10423
|
}
|
|
9644
|
-
function
|
|
9645
|
-
return (
|
|
9646
|
-
var
|
|
10424
|
+
function bt() {
|
|
10425
|
+
return (bt = e$1(a.mark(function t2(e2) {
|
|
10426
|
+
var n2, r2, o2;
|
|
9647
10427
|
return a.wrap(function(t3) {
|
|
9648
10428
|
for (; ; )
|
|
9649
10429
|
switch (t3.prev = t3.next) {
|
|
9650
10430
|
case 0:
|
|
9651
|
-
return
|
|
9652
|
-
var
|
|
9653
|
-
|
|
10431
|
+
return n2 = e2.env, r2 = e2.kountAccountId, o2 = e2.kountSessionId, t3.abrupt("return", new Promise(function(t4, e3) {
|
|
10432
|
+
var a2 = pt({ env: n2, kountAccountId: r2, kountSessionId: o2 });
|
|
10433
|
+
a2.onload = function() {
|
|
9654
10434
|
var e4 = new ka.ClientSDK();
|
|
9655
10435
|
e4.setupCallback({ "collect-begin": function(e5) {
|
|
9656
|
-
var
|
|
9657
|
-
t4(
|
|
10436
|
+
var n3 = e5.MercSessId;
|
|
10437
|
+
t4(n3);
|
|
9658
10438
|
} }), e4.autoLoadEvents();
|
|
9659
|
-
},
|
|
10439
|
+
}, a2.onerror = function() {
|
|
9660
10440
|
e3(new Error("Error attempting to mount Kount script"));
|
|
9661
10441
|
};
|
|
9662
10442
|
}));
|
|
@@ -9667,56 +10447,56 @@ function A() {
|
|
|
9667
10447
|
}, t2);
|
|
9668
10448
|
}))).apply(this, arguments);
|
|
9669
10449
|
}
|
|
9670
|
-
function
|
|
9671
|
-
return
|
|
10450
|
+
function gt(t2) {
|
|
10451
|
+
return wt.apply(this, arguments);
|
|
9672
10452
|
}
|
|
9673
|
-
function
|
|
9674
|
-
return
|
|
9675
|
-
var
|
|
10453
|
+
function wt() {
|
|
10454
|
+
return wt = e$1(a.mark(function t2(e2) {
|
|
10455
|
+
var n2, r2, o2, i2, c2, u2, s2, l2, d2, f2, h2, m2, v2, p2, y2, b2, g2, w2, L2, k2;
|
|
9676
10456
|
return a.wrap(function(t3) {
|
|
9677
10457
|
for (; ; )
|
|
9678
10458
|
switch (t3.prev = t3.next) {
|
|
9679
10459
|
case 0:
|
|
9680
|
-
return
|
|
10460
|
+
return n2 = e2.env, r2 = void 0 === n2 ? null : n2, o2 = e2.screen, i2 = e2.navigator, c2 = e2.kountAccountId, u2 = void 0 === c2 ? null : c2, s2 = e2.kountSessionId, l2 = void 0 === s2 ? null : s2, d2 = e2.getFingerprint, f2 = e2.getFraudSessionId, m2 = (h2 = o2 || {}).colorDepth, v2 = h2.height, p2 = h2.width, b2 = (y2 = i2 || {}).javaEnabled, g2 = y2.language, t3.prev = 3, t3.next = 6, d2();
|
|
9681
10461
|
case 6:
|
|
9682
|
-
if (
|
|
10462
|
+
if (w2 = t3.sent, !u2) {
|
|
9683
10463
|
t3.next = 11;
|
|
9684
10464
|
break;
|
|
9685
10465
|
}
|
|
9686
|
-
return t3.next = 10,
|
|
10466
|
+
return t3.next = 10, f2({ env: r2, kountAccountId: u2, kountSessionId: l2 });
|
|
9687
10467
|
case 10:
|
|
9688
|
-
|
|
10468
|
+
L2 = t3.sent;
|
|
9689
10469
|
case 11:
|
|
9690
10470
|
t3.next = 16;
|
|
9691
10471
|
break;
|
|
9692
10472
|
case 13:
|
|
9693
10473
|
t3.prev = 13, t3.t0 = t3.catch(3), console.error(t3.t0);
|
|
9694
10474
|
case 16:
|
|
9695
|
-
return
|
|
10475
|
+
return k2 = { riskMetadata: { fingerprint: w2 || null, extraData: { kountFraudSessionId: L2 || null }, browserData: { colorDepth: m2 || null, isJavaEnabled: b2 ? b2.call(i2) : null, language: g2 || null, screenHeight: v2 || null, screenWidth: p2 || null, timeZoneOffset: (/* @__PURE__ */ new Date()).getTimezoneOffset() } } }, t3.abrupt("return", k2);
|
|
9696
10476
|
case 18:
|
|
9697
10477
|
case "end":
|
|
9698
10478
|
return t3.stop();
|
|
9699
10479
|
}
|
|
9700
10480
|
}, t2, null, [[3, 13]]);
|
|
9701
|
-
})),
|
|
10481
|
+
})), wt.apply(this, arguments);
|
|
9702
10482
|
}
|
|
9703
|
-
function
|
|
9704
|
-
return
|
|
10483
|
+
function Lt() {
|
|
10484
|
+
return kt.apply(this, arguments);
|
|
9705
10485
|
}
|
|
9706
|
-
function
|
|
9707
|
-
return
|
|
9708
|
-
var e2,
|
|
10486
|
+
function kt() {
|
|
10487
|
+
return kt = e$1(a.mark(function t2() {
|
|
10488
|
+
var e2, n2, r2, o2, i2, c2, u2, s2 = arguments;
|
|
9709
10489
|
return a.wrap(function(t3) {
|
|
9710
10490
|
for (; ; )
|
|
9711
10491
|
switch (t3.prev = t3.next) {
|
|
9712
10492
|
case 0:
|
|
9713
|
-
return
|
|
10493
|
+
return n2 = (e2 = s2.length > 0 && void 0 !== s2[0] ? s2[0] : {}).env, r2 = void 0 === n2 ? null : n2, o2 = e2.kountAccountId, i2 = void 0 === o2 ? null : o2, c2 = e2.kountSessionId, u2 = void 0 === c2 ? null : c2, t3.abrupt("return", gt({ env: r2, screen, navigator, kountAccountId: i2, kountSessionId: u2, getFingerprint: mt, getFraudSessionId: yt }));
|
|
9714
10494
|
case 2:
|
|
9715
10495
|
case "end":
|
|
9716
10496
|
return t3.stop();
|
|
9717
10497
|
}
|
|
9718
10498
|
}, t2);
|
|
9719
|
-
})),
|
|
10499
|
+
})), kt.apply(this, arguments);
|
|
9720
10500
|
}
|
|
9721
10501
|
function getPaymentMethods() {
|
|
9722
10502
|
var _a;
|
|
@@ -11878,6 +12658,25 @@ const paymentMethods = [
|
|
|
11878
12658
|
}
|
|
11879
12659
|
]
|
|
11880
12660
|
},
|
|
12661
|
+
{
|
|
12662
|
+
apiName: "PayRedeem",
|
|
12663
|
+
name: "PayRedeem",
|
|
12664
|
+
landscapeLogo: "https://app.rebilly.com/static/payment-methods/landscape/PayRedeem.svg",
|
|
12665
|
+
portraitLogo: null,
|
|
12666
|
+
summary: "PayRedeem eCards can be purchased online with credit/debit card, wire transfer, cryptocurrency, and over 200 alternative payment methods.\n",
|
|
12667
|
+
description: "PayRedeem eCards can be purchased online with credit/debit card, wire transfer, cryptocurrency, and over 200 alternative payment methods.\n",
|
|
12668
|
+
countries: {
|
|
12669
|
+
mode: "unknown",
|
|
12670
|
+
values: []
|
|
12671
|
+
},
|
|
12672
|
+
storefrontEnabled: true,
|
|
12673
|
+
_links: [
|
|
12674
|
+
{
|
|
12675
|
+
rel: "self",
|
|
12676
|
+
href: "https://api.rebilly.com/payment-methods/PayRedeem"
|
|
12677
|
+
}
|
|
12678
|
+
]
|
|
12679
|
+
},
|
|
11881
12680
|
{
|
|
11882
12681
|
apiName: "PayTabs",
|
|
11883
12682
|
name: "PayTabs",
|
|
@@ -13147,7 +13946,7 @@ async function fetchReadyToPay() {
|
|
|
13147
13946
|
return Endpoint(async () => {
|
|
13148
13947
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
13149
13948
|
if (!state.data.riskMetadata) {
|
|
13150
|
-
const { riskMetadata: data3 } = await
|
|
13949
|
+
const { riskMetadata: data3 } = await Lt();
|
|
13151
13950
|
state.data.riskMetadata = data3;
|
|
13152
13951
|
}
|
|
13153
13952
|
const data2 = {
|
|
@@ -13468,7 +14267,7 @@ async function fetchData({
|
|
|
13468
14267
|
try {
|
|
13469
14268
|
state.data = new DataInstance();
|
|
13470
14269
|
if (!riskMetadata) {
|
|
13471
|
-
const { riskMetadata: data2 } = await
|
|
14270
|
+
const { riskMetadata: data2 } = await Lt();
|
|
13472
14271
|
state.data.riskMetadata = data2;
|
|
13473
14272
|
} else {
|
|
13474
14273
|
state.data.riskMetadata = riskMetadata;
|
|
@@ -15284,17 +16083,17 @@ var util = {};
|
|
|
15284
16083
|
return hash;
|
|
15285
16084
|
}
|
|
15286
16085
|
exports.toHash = toHash;
|
|
15287
|
-
function alwaysValidSchema(
|
|
16086
|
+
function alwaysValidSchema(it2, schema2) {
|
|
15288
16087
|
if (typeof schema2 == "boolean")
|
|
15289
16088
|
return schema2;
|
|
15290
16089
|
if (Object.keys(schema2).length === 0)
|
|
15291
16090
|
return true;
|
|
15292
|
-
checkUnknownRules(
|
|
15293
|
-
return !schemaHasRules(schema2,
|
|
16091
|
+
checkUnknownRules(it2, schema2);
|
|
16092
|
+
return !schemaHasRules(schema2, it2.self.RULES.all);
|
|
15294
16093
|
}
|
|
15295
16094
|
exports.alwaysValidSchema = alwaysValidSchema;
|
|
15296
|
-
function checkUnknownRules(
|
|
15297
|
-
const { opts, self: self2 } =
|
|
16095
|
+
function checkUnknownRules(it2, schema2 = it2.schema) {
|
|
16096
|
+
const { opts, self: self2 } = it2;
|
|
15298
16097
|
if (!opts.strictSchema)
|
|
15299
16098
|
return;
|
|
15300
16099
|
if (typeof schema2 === "boolean")
|
|
@@ -15302,7 +16101,7 @@ var util = {};
|
|
|
15302
16101
|
const rules2 = self2.RULES.keywords;
|
|
15303
16102
|
for (const key in schema2) {
|
|
15304
16103
|
if (!rules2[key])
|
|
15305
|
-
checkStrictMode(
|
|
16104
|
+
checkStrictMode(it2, `unknown keyword: "${key}"`);
|
|
15306
16105
|
}
|
|
15307
16106
|
}
|
|
15308
16107
|
exports.checkUnknownRules = checkUnknownRules;
|
|
@@ -15424,13 +16223,13 @@ var util = {};
|
|
|
15424
16223
|
return jsPropertySyntax ? (0, codegen_12.getProperty)(dataProp).toString() : "/" + escapeJsonPointer(dataProp);
|
|
15425
16224
|
}
|
|
15426
16225
|
exports.getErrorPath = getErrorPath;
|
|
15427
|
-
function checkStrictMode(
|
|
16226
|
+
function checkStrictMode(it2, msg, mode = it2.opts.strictSchema) {
|
|
15428
16227
|
if (!mode)
|
|
15429
16228
|
return;
|
|
15430
16229
|
msg = `strict mode: ${msg}`;
|
|
15431
16230
|
if (mode === true)
|
|
15432
16231
|
throw new Error(msg);
|
|
15433
|
-
|
|
16232
|
+
it2.self.logger.warn(msg);
|
|
15434
16233
|
}
|
|
15435
16234
|
exports.checkStrictMode = checkStrictMode;
|
|
15436
16235
|
})(util);
|
|
@@ -15474,23 +16273,23 @@ names$1.default = names;
|
|
|
15474
16273
|
message: ({ keyword: keyword2, schemaType }) => schemaType ? (0, codegen_12.str)`"${keyword2}" keyword must be ${schemaType} ($data)` : (0, codegen_12.str)`"${keyword2}" keyword is invalid ($data)`
|
|
15475
16274
|
};
|
|
15476
16275
|
function reportError(cxt, error2 = exports.keywordError, errorPaths, overrideAllErrors) {
|
|
15477
|
-
const { it } = cxt;
|
|
15478
|
-
const { gen, compositeRule, allErrors } =
|
|
16276
|
+
const { it: it2 } = cxt;
|
|
16277
|
+
const { gen, compositeRule, allErrors } = it2;
|
|
15479
16278
|
const errObj = errorObjectCode(cxt, error2, errorPaths);
|
|
15480
16279
|
if (overrideAllErrors !== null && overrideAllErrors !== void 0 ? overrideAllErrors : compositeRule || allErrors) {
|
|
15481
16280
|
addError(gen, errObj);
|
|
15482
16281
|
} else {
|
|
15483
|
-
returnErrors(
|
|
16282
|
+
returnErrors(it2, (0, codegen_12._)`[${errObj}]`);
|
|
15484
16283
|
}
|
|
15485
16284
|
}
|
|
15486
16285
|
exports.reportError = reportError;
|
|
15487
16286
|
function reportExtraError(cxt, error2 = exports.keywordError, errorPaths) {
|
|
15488
|
-
const { it } = cxt;
|
|
15489
|
-
const { gen, compositeRule, allErrors } =
|
|
16287
|
+
const { it: it2 } = cxt;
|
|
16288
|
+
const { gen, compositeRule, allErrors } = it2;
|
|
15490
16289
|
const errObj = errorObjectCode(cxt, error2, errorPaths);
|
|
15491
16290
|
addError(gen, errObj);
|
|
15492
16291
|
if (!(compositeRule || allErrors)) {
|
|
15493
|
-
returnErrors(
|
|
16292
|
+
returnErrors(it2, names_12.default.vErrors);
|
|
15494
16293
|
}
|
|
15495
16294
|
}
|
|
15496
16295
|
exports.reportExtraError = reportExtraError;
|
|
@@ -15499,15 +16298,15 @@ names$1.default = names;
|
|
|
15499
16298
|
gen.if((0, codegen_12._)`${names_12.default.vErrors} !== null`, () => gen.if(errsCount, () => gen.assign((0, codegen_12._)`${names_12.default.vErrors}.length`, errsCount), () => gen.assign(names_12.default.vErrors, null)));
|
|
15500
16299
|
}
|
|
15501
16300
|
exports.resetErrorsCount = resetErrorsCount;
|
|
15502
|
-
function extendErrors({ gen, keyword: keyword2, schemaValue, data: data2, errsCount, it }) {
|
|
16301
|
+
function extendErrors({ gen, keyword: keyword2, schemaValue, data: data2, errsCount, it: it2 }) {
|
|
15503
16302
|
if (errsCount === void 0)
|
|
15504
16303
|
throw new Error("ajv implementation error");
|
|
15505
16304
|
const err = gen.name("err");
|
|
15506
16305
|
gen.forRange("i", errsCount, names_12.default.errors, (i2) => {
|
|
15507
16306
|
gen.const(err, (0, codegen_12._)`${names_12.default.vErrors}[${i2}]`);
|
|
15508
|
-
gen.if((0, codegen_12._)`${err}.instancePath === undefined`, () => gen.assign((0, codegen_12._)`${err}.instancePath`, (0, codegen_12.strConcat)(names_12.default.instancePath,
|
|
15509
|
-
gen.assign((0, codegen_12._)`${err}.schemaPath`, (0, codegen_12.str)`${
|
|
15510
|
-
if (
|
|
16307
|
+
gen.if((0, codegen_12._)`${err}.instancePath === undefined`, () => gen.assign((0, codegen_12._)`${err}.instancePath`, (0, codegen_12.strConcat)(names_12.default.instancePath, it2.errorPath)));
|
|
16308
|
+
gen.assign((0, codegen_12._)`${err}.schemaPath`, (0, codegen_12.str)`${it2.errSchemaPath}/${keyword2}`);
|
|
16309
|
+
if (it2.opts.verbose) {
|
|
15511
16310
|
gen.assign((0, codegen_12._)`${err}.schema`, schemaValue);
|
|
15512
16311
|
gen.assign((0, codegen_12._)`${err}.data`, data2);
|
|
15513
16312
|
}
|
|
@@ -15519,10 +16318,10 @@ names$1.default = names;
|
|
|
15519
16318
|
gen.if((0, codegen_12._)`${names_12.default.vErrors} === null`, () => gen.assign(names_12.default.vErrors, (0, codegen_12._)`[${err}]`), (0, codegen_12._)`${names_12.default.vErrors}.push(${err})`);
|
|
15520
16319
|
gen.code((0, codegen_12._)`${names_12.default.errors}++`);
|
|
15521
16320
|
}
|
|
15522
|
-
function returnErrors(
|
|
15523
|
-
const { gen, validateName, schemaEnv } =
|
|
16321
|
+
function returnErrors(it2, errs) {
|
|
16322
|
+
const { gen, validateName, schemaEnv } = it2;
|
|
15524
16323
|
if (schemaEnv.$async) {
|
|
15525
|
-
gen.throw((0, codegen_12._)`new ${
|
|
16324
|
+
gen.throw((0, codegen_12._)`new ${it2.ValidationError}(${errs})`);
|
|
15526
16325
|
} else {
|
|
15527
16326
|
gen.assign((0, codegen_12._)`${validateName}.errors`, errs);
|
|
15528
16327
|
gen.return(false);
|
|
@@ -15544,9 +16343,9 @@ names$1.default = names;
|
|
|
15544
16343
|
return errorObject(cxt, error2, errorPaths);
|
|
15545
16344
|
}
|
|
15546
16345
|
function errorObject(cxt, error2, errorPaths = {}) {
|
|
15547
|
-
const { gen, it } = cxt;
|
|
16346
|
+
const { gen, it: it2 } = cxt;
|
|
15548
16347
|
const keyValues = [
|
|
15549
|
-
errorInstancePath(
|
|
16348
|
+
errorInstancePath(it2, errorPaths),
|
|
15550
16349
|
errorSchemaPath(cxt, errorPaths)
|
|
15551
16350
|
];
|
|
15552
16351
|
extraErrorProps(cxt, error2, keyValues);
|
|
@@ -15564,8 +16363,8 @@ names$1.default = names;
|
|
|
15564
16363
|
return [E2.schemaPath, schPath];
|
|
15565
16364
|
}
|
|
15566
16365
|
function extraErrorProps(cxt, { params, message }, keyValues) {
|
|
15567
|
-
const { keyword: keyword2, data: data2, schemaValue, it } = cxt;
|
|
15568
|
-
const { opts, propertyName, topSchemaRef, schemaPath } =
|
|
16366
|
+
const { keyword: keyword2, data: data2, schemaValue, it: it2 } = cxt;
|
|
16367
|
+
const { opts, propertyName, topSchemaRef, schemaPath } = it2;
|
|
15569
16368
|
keyValues.push([E2.keyword, keyword2], [E2.params, typeof params == "function" ? params(cxt) : params || (0, codegen_12._)`{}`]);
|
|
15570
16369
|
if (opts.messages) {
|
|
15571
16370
|
keyValues.push([E2.message, typeof message == "function" ? message(cxt) : message]);
|
|
@@ -15585,10 +16384,10 @@ const names_1$9 = names$1;
|
|
|
15585
16384
|
const boolError = {
|
|
15586
16385
|
message: "boolean schema is false"
|
|
15587
16386
|
};
|
|
15588
|
-
function topBoolOrEmptySchema(
|
|
15589
|
-
const { gen, schema: schema2, validateName } =
|
|
16387
|
+
function topBoolOrEmptySchema(it2) {
|
|
16388
|
+
const { gen, schema: schema2, validateName } = it2;
|
|
15590
16389
|
if (schema2 === false) {
|
|
15591
|
-
falseSchemaError(
|
|
16390
|
+
falseSchemaError(it2, false);
|
|
15592
16391
|
} else if (typeof schema2 == "object" && schema2.$async === true) {
|
|
15593
16392
|
gen.return(names_1$9.default.data);
|
|
15594
16393
|
} else {
|
|
@@ -15597,18 +16396,18 @@ function topBoolOrEmptySchema(it) {
|
|
|
15597
16396
|
}
|
|
15598
16397
|
}
|
|
15599
16398
|
boolSchema.topBoolOrEmptySchema = topBoolOrEmptySchema;
|
|
15600
|
-
function boolOrEmptySchema(
|
|
15601
|
-
const { gen, schema: schema2 } =
|
|
16399
|
+
function boolOrEmptySchema(it2, valid) {
|
|
16400
|
+
const { gen, schema: schema2 } = it2;
|
|
15602
16401
|
if (schema2 === false) {
|
|
15603
16402
|
gen.var(valid, false);
|
|
15604
|
-
falseSchemaError(
|
|
16403
|
+
falseSchemaError(it2);
|
|
15605
16404
|
} else {
|
|
15606
16405
|
gen.var(valid, true);
|
|
15607
16406
|
}
|
|
15608
16407
|
}
|
|
15609
16408
|
boolSchema.boolOrEmptySchema = boolOrEmptySchema;
|
|
15610
|
-
function falseSchemaError(
|
|
15611
|
-
const { gen, data: data2 } =
|
|
16409
|
+
function falseSchemaError(it2, overrideAllErrors) {
|
|
16410
|
+
const { gen, data: data2 } = it2;
|
|
15612
16411
|
const cxt = {
|
|
15613
16412
|
gen,
|
|
15614
16413
|
keyword: "false schema",
|
|
@@ -15617,7 +16416,7 @@ function falseSchemaError(it, overrideAllErrors) {
|
|
|
15617
16416
|
schemaCode: false,
|
|
15618
16417
|
schemaValue: false,
|
|
15619
16418
|
params: {},
|
|
15620
|
-
it
|
|
16419
|
+
it: it2
|
|
15621
16420
|
};
|
|
15622
16421
|
(0, errors_1$2.reportError)(cxt, boolError, void 0, overrideAllErrors);
|
|
15623
16422
|
}
|
|
@@ -15700,17 +16499,17 @@ applicability.shouldUseRule = shouldUseRule;
|
|
|
15700
16499
|
throw new Error("type must be JSONType or JSONType[]: " + types2.join(","));
|
|
15701
16500
|
}
|
|
15702
16501
|
exports.getJSONTypes = getJSONTypes;
|
|
15703
|
-
function coerceAndCheckDataType(
|
|
15704
|
-
const { gen, data: data2, opts } =
|
|
16502
|
+
function coerceAndCheckDataType(it2, types2) {
|
|
16503
|
+
const { gen, data: data2, opts } = it2;
|
|
15705
16504
|
const coerceTo = coerceToTypes(types2, opts.coerceTypes);
|
|
15706
|
-
const checkTypes = types2.length > 0 && !(coerceTo.length === 0 && types2.length === 1 && (0, applicability_12.schemaHasRulesForType)(
|
|
16505
|
+
const checkTypes = types2.length > 0 && !(coerceTo.length === 0 && types2.length === 1 && (0, applicability_12.schemaHasRulesForType)(it2, types2[0]));
|
|
15707
16506
|
if (checkTypes) {
|
|
15708
16507
|
const wrongType = checkDataTypes(types2, data2, opts.strictNumbers, DataType.Wrong);
|
|
15709
16508
|
gen.if(wrongType, () => {
|
|
15710
16509
|
if (coerceTo.length)
|
|
15711
|
-
coerceData(
|
|
16510
|
+
coerceData(it2, types2, coerceTo);
|
|
15712
16511
|
else
|
|
15713
|
-
reportTypeError(
|
|
16512
|
+
reportTypeError(it2);
|
|
15714
16513
|
});
|
|
15715
16514
|
}
|
|
15716
16515
|
return checkTypes;
|
|
@@ -15720,8 +16519,8 @@ applicability.shouldUseRule = shouldUseRule;
|
|
|
15720
16519
|
function coerceToTypes(types2, coerceTypes) {
|
|
15721
16520
|
return coerceTypes ? types2.filter((t2) => COERCIBLE.has(t2) || coerceTypes === "array" && t2 === "array") : [];
|
|
15722
16521
|
}
|
|
15723
|
-
function coerceData(
|
|
15724
|
-
const { gen, data: data2, opts } =
|
|
16522
|
+
function coerceData(it2, types2, coerceTo) {
|
|
16523
|
+
const { gen, data: data2, opts } = it2;
|
|
15725
16524
|
const dataType2 = gen.let("dataType", (0, codegen_12._)`typeof ${data2}`);
|
|
15726
16525
|
const coerced = gen.let("coerced", (0, codegen_12._)`undefined`);
|
|
15727
16526
|
if (opts.coerceTypes === "array") {
|
|
@@ -15734,11 +16533,11 @@ applicability.shouldUseRule = shouldUseRule;
|
|
|
15734
16533
|
}
|
|
15735
16534
|
}
|
|
15736
16535
|
gen.else();
|
|
15737
|
-
reportTypeError(
|
|
16536
|
+
reportTypeError(it2);
|
|
15738
16537
|
gen.endIf();
|
|
15739
16538
|
gen.if((0, codegen_12._)`${coerced} !== undefined`, () => {
|
|
15740
16539
|
gen.assign(data2, coerced);
|
|
15741
|
-
assignParentData(
|
|
16540
|
+
assignParentData(it2, coerced);
|
|
15742
16541
|
});
|
|
15743
16542
|
function coerceSpecificType(t2) {
|
|
15744
16543
|
switch (t2) {
|
|
@@ -15822,14 +16621,14 @@ applicability.shouldUseRule = shouldUseRule;
|
|
|
15822
16621
|
message: ({ schema: schema2 }) => `must be ${schema2}`,
|
|
15823
16622
|
params: ({ schema: schema2, schemaValue }) => typeof schema2 == "string" ? (0, codegen_12._)`{type: ${schema2}}` : (0, codegen_12._)`{type: ${schemaValue}}`
|
|
15824
16623
|
};
|
|
15825
|
-
function reportTypeError(
|
|
15826
|
-
const cxt = getTypeErrorContext(
|
|
16624
|
+
function reportTypeError(it2) {
|
|
16625
|
+
const cxt = getTypeErrorContext(it2);
|
|
15827
16626
|
(0, errors_12.reportError)(cxt, typeError);
|
|
15828
16627
|
}
|
|
15829
16628
|
exports.reportTypeError = reportTypeError;
|
|
15830
|
-
function getTypeErrorContext(
|
|
15831
|
-
const { gen, data: data2, schema: schema2 } =
|
|
15832
|
-
const schemaCode = (0, util_12.schemaRefOrVal)(
|
|
16629
|
+
function getTypeErrorContext(it2) {
|
|
16630
|
+
const { gen, data: data2, schema: schema2 } = it2;
|
|
16631
|
+
const schemaCode = (0, util_12.schemaRefOrVal)(it2, schema2, "type");
|
|
15833
16632
|
return {
|
|
15834
16633
|
gen,
|
|
15835
16634
|
keyword: "type",
|
|
@@ -15839,7 +16638,7 @@ applicability.shouldUseRule = shouldUseRule;
|
|
|
15839
16638
|
schemaValue: schemaCode,
|
|
15840
16639
|
parentSchema: schema2,
|
|
15841
16640
|
params: {},
|
|
15842
|
-
it
|
|
16641
|
+
it: it2
|
|
15843
16642
|
};
|
|
15844
16643
|
}
|
|
15845
16644
|
})(dataType);
|
|
@@ -15848,24 +16647,24 @@ Object.defineProperty(defaults, "__esModule", { value: true });
|
|
|
15848
16647
|
defaults.assignDefaults = void 0;
|
|
15849
16648
|
const codegen_1$v = codegen;
|
|
15850
16649
|
const util_1$t = util;
|
|
15851
|
-
function assignDefaults(
|
|
15852
|
-
const { properties: properties2, items: items2 } =
|
|
16650
|
+
function assignDefaults(it2, ty) {
|
|
16651
|
+
const { properties: properties2, items: items2 } = it2.schema;
|
|
15853
16652
|
if (ty === "object" && properties2) {
|
|
15854
16653
|
for (const key in properties2) {
|
|
15855
|
-
assignDefault(
|
|
16654
|
+
assignDefault(it2, key, properties2[key].default);
|
|
15856
16655
|
}
|
|
15857
16656
|
} else if (ty === "array" && Array.isArray(items2)) {
|
|
15858
|
-
items2.forEach((sch, i2) => assignDefault(
|
|
16657
|
+
items2.forEach((sch, i2) => assignDefault(it2, i2, sch.default));
|
|
15859
16658
|
}
|
|
15860
16659
|
}
|
|
15861
16660
|
defaults.assignDefaults = assignDefaults;
|
|
15862
|
-
function assignDefault(
|
|
15863
|
-
const { gen, compositeRule, data: data2, opts } =
|
|
16661
|
+
function assignDefault(it2, prop, defaultValue) {
|
|
16662
|
+
const { gen, compositeRule, data: data2, opts } = it2;
|
|
15864
16663
|
if (defaultValue === void 0)
|
|
15865
16664
|
return;
|
|
15866
16665
|
const childData = (0, codegen_1$v._)`${data2}${(0, codegen_1$v.getProperty)(prop)}`;
|
|
15867
16666
|
if (compositeRule) {
|
|
15868
|
-
(0, util_1$t.checkStrictMode)(
|
|
16667
|
+
(0, util_1$t.checkStrictMode)(it2, `default is ignored for: ${childData}`);
|
|
15869
16668
|
return;
|
|
15870
16669
|
}
|
|
15871
16670
|
let condition = (0, codegen_1$v._)`${childData} === undefined`;
|
|
@@ -15883,8 +16682,8 @@ const util_1$s = util;
|
|
|
15883
16682
|
const names_1$8 = names$1;
|
|
15884
16683
|
const util_2$1 = util;
|
|
15885
16684
|
function checkReportMissingProp(cxt, prop) {
|
|
15886
|
-
const { gen, data: data2, it } = cxt;
|
|
15887
|
-
gen.if(noPropertyInData(gen, data2, prop,
|
|
16685
|
+
const { gen, data: data2, it: it2 } = cxt;
|
|
16686
|
+
gen.if(noPropertyInData(gen, data2, prop, it2.opts.ownProperties), () => {
|
|
15888
16687
|
cxt.setParams({ missingProperty: (0, codegen_1$u._)`${prop}` }, true);
|
|
15889
16688
|
cxt.error();
|
|
15890
16689
|
});
|
|
@@ -15925,19 +16724,19 @@ function allSchemaProperties(schemaMap) {
|
|
|
15925
16724
|
return schemaMap ? Object.keys(schemaMap).filter((p2) => p2 !== "__proto__") : [];
|
|
15926
16725
|
}
|
|
15927
16726
|
code.allSchemaProperties = allSchemaProperties;
|
|
15928
|
-
function schemaProperties(
|
|
15929
|
-
return allSchemaProperties(schemaMap).filter((p2) => !(0, util_1$s.alwaysValidSchema)(
|
|
16727
|
+
function schemaProperties(it2, schemaMap) {
|
|
16728
|
+
return allSchemaProperties(schemaMap).filter((p2) => !(0, util_1$s.alwaysValidSchema)(it2, schemaMap[p2]));
|
|
15930
16729
|
}
|
|
15931
16730
|
code.schemaProperties = schemaProperties;
|
|
15932
|
-
function callValidateCode({ schemaCode, data: data2, it: { gen, topSchemaRef, schemaPath, errorPath }, it }, func, context, passSchema) {
|
|
16731
|
+
function callValidateCode({ schemaCode, data: data2, it: { gen, topSchemaRef, schemaPath, errorPath }, it: it2 }, func, context, passSchema) {
|
|
15933
16732
|
const dataAndSchema = passSchema ? (0, codegen_1$u._)`${schemaCode}, ${data2}, ${topSchemaRef}${schemaPath}` : data2;
|
|
15934
16733
|
const valCxt = [
|
|
15935
16734
|
[names_1$8.default.instancePath, (0, codegen_1$u.strConcat)(names_1$8.default.instancePath, errorPath)],
|
|
15936
|
-
[names_1$8.default.parentData,
|
|
15937
|
-
[names_1$8.default.parentDataProperty,
|
|
16735
|
+
[names_1$8.default.parentData, it2.parentData],
|
|
16736
|
+
[names_1$8.default.parentDataProperty, it2.parentDataProperty],
|
|
15938
16737
|
[names_1$8.default.rootData, names_1$8.default.rootData]
|
|
15939
16738
|
];
|
|
15940
|
-
if (
|
|
16739
|
+
if (it2.opts.dynamicRef)
|
|
15941
16740
|
valCxt.push([names_1$8.default.dynamicAnchors, names_1$8.default.dynamicAnchors]);
|
|
15942
16741
|
const args = (0, codegen_1$u._)`${dataAndSchema}, ${gen.object(...valCxt)}`;
|
|
15943
16742
|
return context !== codegen_1$u.nil ? (0, codegen_1$u._)`${func}.call(${context}, ${args})` : (0, codegen_1$u._)`${func}(${args})`;
|
|
@@ -15956,9 +16755,9 @@ function usePattern({ gen, it: { opts } }, pattern2) {
|
|
|
15956
16755
|
}
|
|
15957
16756
|
code.usePattern = usePattern;
|
|
15958
16757
|
function validateArray(cxt) {
|
|
15959
|
-
const { gen, data: data2, keyword: keyword2, it } = cxt;
|
|
16758
|
+
const { gen, data: data2, keyword: keyword2, it: it2 } = cxt;
|
|
15960
16759
|
const valid = gen.name("valid");
|
|
15961
|
-
if (
|
|
16760
|
+
if (it2.allErrors) {
|
|
15962
16761
|
const validArr = gen.let("valid", true);
|
|
15963
16762
|
validateItems(() => gen.assign(validArr, false));
|
|
15964
16763
|
return validArr;
|
|
@@ -15980,11 +16779,11 @@ function validateArray(cxt) {
|
|
|
15980
16779
|
}
|
|
15981
16780
|
code.validateArray = validateArray;
|
|
15982
16781
|
function validateUnion(cxt) {
|
|
15983
|
-
const { gen, schema: schema2, keyword: keyword2, it } = cxt;
|
|
16782
|
+
const { gen, schema: schema2, keyword: keyword2, it: it2 } = cxt;
|
|
15984
16783
|
if (!Array.isArray(schema2))
|
|
15985
16784
|
throw new Error("ajv implementation error");
|
|
15986
|
-
const alwaysValid = schema2.some((sch) => (0, util_1$s.alwaysValidSchema)(
|
|
15987
|
-
if (alwaysValid && !
|
|
16785
|
+
const alwaysValid = schema2.some((sch) => (0, util_1$s.alwaysValidSchema)(it2, sch));
|
|
16786
|
+
if (alwaysValid && !it2.opts.unevaluated)
|
|
15988
16787
|
return;
|
|
15989
16788
|
const valid = gen.let("valid", false);
|
|
15990
16789
|
const schValid = gen.name("_valid");
|
|
@@ -16009,16 +16808,16 @@ const names_1$7 = names$1;
|
|
|
16009
16808
|
const code_1$9 = code;
|
|
16010
16809
|
const errors_1$1 = errors;
|
|
16011
16810
|
function macroKeywordCode(cxt, def2) {
|
|
16012
|
-
const { gen, keyword: keyword2, schema: schema2, parentSchema, it } = cxt;
|
|
16013
|
-
const macroSchema = def2.macro.call(
|
|
16811
|
+
const { gen, keyword: keyword2, schema: schema2, parentSchema, it: it2 } = cxt;
|
|
16812
|
+
const macroSchema = def2.macro.call(it2.self, schema2, parentSchema, it2);
|
|
16014
16813
|
const schemaRef = useKeyword(gen, keyword2, macroSchema);
|
|
16015
|
-
if (
|
|
16016
|
-
|
|
16814
|
+
if (it2.opts.validateSchema !== false)
|
|
16815
|
+
it2.self.validateSchema(macroSchema, true);
|
|
16017
16816
|
const valid = gen.name("valid");
|
|
16018
16817
|
cxt.subschema({
|
|
16019
16818
|
schema: macroSchema,
|
|
16020
16819
|
schemaPath: codegen_1$t.nil,
|
|
16021
|
-
errSchemaPath: `${
|
|
16820
|
+
errSchemaPath: `${it2.errSchemaPath}/${keyword2}`,
|
|
16022
16821
|
topSchemaRef: schemaRef,
|
|
16023
16822
|
compositeRule: true
|
|
16024
16823
|
}, valid);
|
|
@@ -16027,9 +16826,9 @@ function macroKeywordCode(cxt, def2) {
|
|
|
16027
16826
|
keyword.macroKeywordCode = macroKeywordCode;
|
|
16028
16827
|
function funcKeywordCode(cxt, def2) {
|
|
16029
16828
|
var _a;
|
|
16030
|
-
const { gen, keyword: keyword2, schema: schema2, parentSchema, $data, it } = cxt;
|
|
16031
|
-
checkAsyncKeyword(
|
|
16032
|
-
const validate2 = !$data && def2.compile ? def2.compile.call(
|
|
16829
|
+
const { gen, keyword: keyword2, schema: schema2, parentSchema, $data, it: it2 } = cxt;
|
|
16830
|
+
checkAsyncKeyword(it2, def2);
|
|
16831
|
+
const validate2 = !$data && def2.compile ? def2.compile.call(it2.self, schema2, parentSchema, it2) : def2.validate;
|
|
16033
16832
|
const validateRef = useKeyword(gen, keyword2, validate2);
|
|
16034
16833
|
const valid = gen.let("valid");
|
|
16035
16834
|
cxt.block$data(valid, validateKeyword);
|
|
@@ -16049,7 +16848,7 @@ function funcKeywordCode(cxt, def2) {
|
|
|
16049
16848
|
}
|
|
16050
16849
|
function validateAsync() {
|
|
16051
16850
|
const ruleErrs = gen.let("ruleErrs", null);
|
|
16052
|
-
gen.try(() => assignValid((0, codegen_1$t._)`await `), (e2) => gen.assign(valid, false).if((0, codegen_1$t._)`${e2} instanceof ${
|
|
16851
|
+
gen.try(() => assignValid((0, codegen_1$t._)`await `), (e2) => gen.assign(valid, false).if((0, codegen_1$t._)`${e2} instanceof ${it2.ValidationError}`, () => gen.assign(ruleErrs, (0, codegen_1$t._)`${e2}.errors`), () => gen.throw(e2)));
|
|
16053
16852
|
return ruleErrs;
|
|
16054
16853
|
}
|
|
16055
16854
|
function validateSync() {
|
|
@@ -16059,7 +16858,7 @@ function funcKeywordCode(cxt, def2) {
|
|
|
16059
16858
|
return validateErrs;
|
|
16060
16859
|
}
|
|
16061
16860
|
function assignValid(_await = def2.async ? (0, codegen_1$t._)`await ` : codegen_1$t.nil) {
|
|
16062
|
-
const passCxt =
|
|
16861
|
+
const passCxt = it2.opts.passContext ? names_1$7.default.this : names_1$7.default.self;
|
|
16063
16862
|
const passSchema = !("compile" in def2 && !$data || def2.schema === false);
|
|
16064
16863
|
gen.assign(valid, (0, codegen_1$t._)`${_await}${(0, code_1$9.callValidateCode)(cxt, validateRef, passCxt, passSchema)}`, def2.modifying);
|
|
16065
16864
|
}
|
|
@@ -16070,8 +16869,8 @@ function funcKeywordCode(cxt, def2) {
|
|
|
16070
16869
|
}
|
|
16071
16870
|
keyword.funcKeywordCode = funcKeywordCode;
|
|
16072
16871
|
function modifyData(cxt) {
|
|
16073
|
-
const { gen, data: data2, it } = cxt;
|
|
16074
|
-
gen.if(
|
|
16872
|
+
const { gen, data: data2, it: it2 } = cxt;
|
|
16873
|
+
gen.if(it2.parentData, () => gen.assign(data2, (0, codegen_1$t._)`${it2.parentData}[${it2.parentDataProperty}]`));
|
|
16075
16874
|
}
|
|
16076
16875
|
function addErrs(cxt, errs) {
|
|
16077
16876
|
const { gen } = cxt;
|
|
@@ -16090,7 +16889,7 @@ function useKeyword(gen, keyword2, result) {
|
|
|
16090
16889
|
return gen.scopeValue("keyword", typeof result == "function" ? { ref: result } : { ref: result, code: (0, codegen_1$t.stringify)(result) });
|
|
16091
16890
|
}
|
|
16092
16891
|
function validSchemaType(schema2, schemaType, allowUndefined = false) {
|
|
16093
|
-
return !schemaType.length || schemaType.some((
|
|
16892
|
+
return !schemaType.length || schemaType.some((st2) => st2 === "array" ? Array.isArray(schema2) : st2 === "object" ? schema2 && typeof schema2 == "object" && !Array.isArray(schema2) : typeof schema2 == st2 || allowUndefined && typeof schema2 == "undefined");
|
|
16094
16893
|
}
|
|
16095
16894
|
keyword.validSchemaType = validSchemaType;
|
|
16096
16895
|
function validateKeywordUsage({ schema: schema2, opts, self: self2, errSchemaPath }, def2, keyword2) {
|
|
@@ -16118,20 +16917,20 @@ Object.defineProperty(subschema, "__esModule", { value: true });
|
|
|
16118
16917
|
subschema.extendSubschemaMode = subschema.extendSubschemaData = subschema.getSubschema = void 0;
|
|
16119
16918
|
const codegen_1$s = codegen;
|
|
16120
16919
|
const util_1$r = util;
|
|
16121
|
-
function getSubschema(
|
|
16920
|
+
function getSubschema(it2, { keyword: keyword2, schemaProp, schema: schema2, schemaPath, errSchemaPath, topSchemaRef }) {
|
|
16122
16921
|
if (keyword2 !== void 0 && schema2 !== void 0) {
|
|
16123
16922
|
throw new Error('both "keyword" and "schema" passed, only one allowed');
|
|
16124
16923
|
}
|
|
16125
16924
|
if (keyword2 !== void 0) {
|
|
16126
|
-
const sch =
|
|
16925
|
+
const sch = it2.schema[keyword2];
|
|
16127
16926
|
return schemaProp === void 0 ? {
|
|
16128
16927
|
schema: sch,
|
|
16129
|
-
schemaPath: (0, codegen_1$s._)`${
|
|
16130
|
-
errSchemaPath: `${
|
|
16928
|
+
schemaPath: (0, codegen_1$s._)`${it2.schemaPath}${(0, codegen_1$s.getProperty)(keyword2)}`,
|
|
16929
|
+
errSchemaPath: `${it2.errSchemaPath}/${keyword2}`
|
|
16131
16930
|
} : {
|
|
16132
16931
|
schema: sch[schemaProp],
|
|
16133
|
-
schemaPath: (0, codegen_1$s._)`${
|
|
16134
|
-
errSchemaPath: `${
|
|
16932
|
+
schemaPath: (0, codegen_1$s._)`${it2.schemaPath}${(0, codegen_1$s.getProperty)(keyword2)}${(0, codegen_1$s.getProperty)(schemaProp)}`,
|
|
16933
|
+
errSchemaPath: `${it2.errSchemaPath}/${keyword2}/${(0, util_1$r.escapeFragment)(schemaProp)}`
|
|
16135
16934
|
};
|
|
16136
16935
|
}
|
|
16137
16936
|
if (schema2 !== void 0) {
|
|
@@ -16148,14 +16947,14 @@ function getSubschema(it, { keyword: keyword2, schemaProp, schema: schema2, sche
|
|
|
16148
16947
|
throw new Error('either "keyword" or "schema" must be passed');
|
|
16149
16948
|
}
|
|
16150
16949
|
subschema.getSubschema = getSubschema;
|
|
16151
|
-
function extendSubschemaData(subschema2,
|
|
16950
|
+
function extendSubschemaData(subschema2, it2, { dataProp, dataPropType: dpType, data: data2, dataTypes, propertyName }) {
|
|
16152
16951
|
if (data2 !== void 0 && dataProp !== void 0) {
|
|
16153
16952
|
throw new Error('both "data" and "dataProp" passed, only one allowed');
|
|
16154
16953
|
}
|
|
16155
|
-
const { gen } =
|
|
16954
|
+
const { gen } = it2;
|
|
16156
16955
|
if (dataProp !== void 0) {
|
|
16157
|
-
const { errorPath, dataPathArr, opts } =
|
|
16158
|
-
const nextData = gen.let("data", (0, codegen_1$s._)`${
|
|
16956
|
+
const { errorPath, dataPathArr, opts } = it2;
|
|
16957
|
+
const nextData = gen.let("data", (0, codegen_1$s._)`${it2.data}${(0, codegen_1$s.getProperty)(dataProp)}`, true);
|
|
16159
16958
|
dataContextProps(nextData);
|
|
16160
16959
|
subschema2.errorPath = (0, codegen_1$s.str)`${errorPath}${(0, util_1$r.getErrorPath)(dataProp, dpType, opts.jsPropertySyntax)}`;
|
|
16161
16960
|
subschema2.parentDataProperty = (0, codegen_1$s._)`${dataProp}`;
|
|
@@ -16171,11 +16970,11 @@ function extendSubschemaData(subschema2, it, { dataProp, dataPropType: dpType, d
|
|
|
16171
16970
|
subschema2.dataTypes = dataTypes;
|
|
16172
16971
|
function dataContextProps(_nextData) {
|
|
16173
16972
|
subschema2.data = _nextData;
|
|
16174
|
-
subschema2.dataLevel =
|
|
16973
|
+
subschema2.dataLevel = it2.dataLevel + 1;
|
|
16175
16974
|
subschema2.dataTypes = [];
|
|
16176
|
-
|
|
16177
|
-
subschema2.parentData =
|
|
16178
|
-
subschema2.dataNames = [...
|
|
16975
|
+
it2.definedProperties = /* @__PURE__ */ new Set();
|
|
16976
|
+
subschema2.parentData = it2.data;
|
|
16977
|
+
subschema2.dataNames = [...it2.dataNames, _nextData];
|
|
16179
16978
|
}
|
|
16180
16979
|
}
|
|
16181
16980
|
subschema.extendSubschemaData = extendSubschemaData;
|
|
@@ -16475,15 +17274,15 @@ const names_1$6 = names$1;
|
|
|
16475
17274
|
const resolve_1$2 = resolve$1;
|
|
16476
17275
|
const util_1$p = util;
|
|
16477
17276
|
const errors_1 = errors;
|
|
16478
|
-
function validateFunctionCode(
|
|
16479
|
-
if (isSchemaObj(
|
|
16480
|
-
checkKeywords(
|
|
16481
|
-
if (schemaCxtHasRules(
|
|
16482
|
-
topSchemaObjCode(
|
|
17277
|
+
function validateFunctionCode(it2) {
|
|
17278
|
+
if (isSchemaObj(it2)) {
|
|
17279
|
+
checkKeywords(it2);
|
|
17280
|
+
if (schemaCxtHasRules(it2)) {
|
|
17281
|
+
topSchemaObjCode(it2);
|
|
16483
17282
|
return;
|
|
16484
17283
|
}
|
|
16485
17284
|
}
|
|
16486
|
-
validateFunction(
|
|
17285
|
+
validateFunction(it2, () => (0, boolSchema_1.topBoolOrEmptySchema)(it2));
|
|
16487
17286
|
}
|
|
16488
17287
|
validate$1.validateFunctionCode = validateFunctionCode;
|
|
16489
17288
|
function validateFunction({ gen, validateName, schema: schema2, schemaEnv, opts }, body) {
|
|
@@ -16517,40 +17316,40 @@ function destructureValCxtES5(gen, opts) {
|
|
|
16517
17316
|
gen.var(names_1$6.default.dynamicAnchors, (0, codegen_1$r._)`{}`);
|
|
16518
17317
|
});
|
|
16519
17318
|
}
|
|
16520
|
-
function topSchemaObjCode(
|
|
16521
|
-
const { schema: schema2, opts, gen } =
|
|
16522
|
-
validateFunction(
|
|
17319
|
+
function topSchemaObjCode(it2) {
|
|
17320
|
+
const { schema: schema2, opts, gen } = it2;
|
|
17321
|
+
validateFunction(it2, () => {
|
|
16523
17322
|
if (opts.$comment && schema2.$comment)
|
|
16524
|
-
commentKeyword(
|
|
16525
|
-
checkNoDefault(
|
|
17323
|
+
commentKeyword(it2);
|
|
17324
|
+
checkNoDefault(it2);
|
|
16526
17325
|
gen.let(names_1$6.default.vErrors, null);
|
|
16527
17326
|
gen.let(names_1$6.default.errors, 0);
|
|
16528
17327
|
if (opts.unevaluated)
|
|
16529
|
-
resetEvaluated(
|
|
16530
|
-
typeAndKeywords(
|
|
16531
|
-
returnResults(
|
|
17328
|
+
resetEvaluated(it2);
|
|
17329
|
+
typeAndKeywords(it2);
|
|
17330
|
+
returnResults(it2);
|
|
16532
17331
|
});
|
|
16533
17332
|
return;
|
|
16534
17333
|
}
|
|
16535
|
-
function resetEvaluated(
|
|
16536
|
-
const { gen, validateName } =
|
|
16537
|
-
|
|
16538
|
-
gen.if((0, codegen_1$r._)`${
|
|
16539
|
-
gen.if((0, codegen_1$r._)`${
|
|
17334
|
+
function resetEvaluated(it2) {
|
|
17335
|
+
const { gen, validateName } = it2;
|
|
17336
|
+
it2.evaluated = gen.const("evaluated", (0, codegen_1$r._)`${validateName}.evaluated`);
|
|
17337
|
+
gen.if((0, codegen_1$r._)`${it2.evaluated}.dynamicProps`, () => gen.assign((0, codegen_1$r._)`${it2.evaluated}.props`, (0, codegen_1$r._)`undefined`));
|
|
17338
|
+
gen.if((0, codegen_1$r._)`${it2.evaluated}.dynamicItems`, () => gen.assign((0, codegen_1$r._)`${it2.evaluated}.items`, (0, codegen_1$r._)`undefined`));
|
|
16540
17339
|
}
|
|
16541
17340
|
function funcSourceUrl(schema2, opts) {
|
|
16542
17341
|
const schId = typeof schema2 == "object" && schema2[opts.schemaId];
|
|
16543
17342
|
return schId && (opts.code.source || opts.code.process) ? (0, codegen_1$r._)`/*# sourceURL=${schId} */` : codegen_1$r.nil;
|
|
16544
17343
|
}
|
|
16545
|
-
function subschemaCode(
|
|
16546
|
-
if (isSchemaObj(
|
|
16547
|
-
checkKeywords(
|
|
16548
|
-
if (schemaCxtHasRules(
|
|
16549
|
-
subSchemaObjCode(
|
|
17344
|
+
function subschemaCode(it2, valid) {
|
|
17345
|
+
if (isSchemaObj(it2)) {
|
|
17346
|
+
checkKeywords(it2);
|
|
17347
|
+
if (schemaCxtHasRules(it2)) {
|
|
17348
|
+
subSchemaObjCode(it2, valid);
|
|
16550
17349
|
return;
|
|
16551
17350
|
}
|
|
16552
17351
|
}
|
|
16553
|
-
(0, boolSchema_1.boolOrEmptySchema)(
|
|
17352
|
+
(0, boolSchema_1.boolOrEmptySchema)(it2, valid);
|
|
16554
17353
|
}
|
|
16555
17354
|
function schemaCxtHasRules({ schema: schema2, self: self2 }) {
|
|
16556
17355
|
if (typeof schema2 == "boolean")
|
|
@@ -16560,49 +17359,49 @@ function schemaCxtHasRules({ schema: schema2, self: self2 }) {
|
|
|
16560
17359
|
return true;
|
|
16561
17360
|
return false;
|
|
16562
17361
|
}
|
|
16563
|
-
function isSchemaObj(
|
|
16564
|
-
return typeof
|
|
17362
|
+
function isSchemaObj(it2) {
|
|
17363
|
+
return typeof it2.schema != "boolean";
|
|
16565
17364
|
}
|
|
16566
|
-
function subSchemaObjCode(
|
|
16567
|
-
const { schema: schema2, gen, opts } =
|
|
17365
|
+
function subSchemaObjCode(it2, valid) {
|
|
17366
|
+
const { schema: schema2, gen, opts } = it2;
|
|
16568
17367
|
if (opts.$comment && schema2.$comment)
|
|
16569
|
-
commentKeyword(
|
|
16570
|
-
updateContext(
|
|
16571
|
-
checkAsyncSchema(
|
|
17368
|
+
commentKeyword(it2);
|
|
17369
|
+
updateContext(it2);
|
|
17370
|
+
checkAsyncSchema(it2);
|
|
16572
17371
|
const errsCount = gen.const("_errs", names_1$6.default.errors);
|
|
16573
|
-
typeAndKeywords(
|
|
17372
|
+
typeAndKeywords(it2, errsCount);
|
|
16574
17373
|
gen.var(valid, (0, codegen_1$r._)`${errsCount} === ${names_1$6.default.errors}`);
|
|
16575
17374
|
}
|
|
16576
|
-
function checkKeywords(
|
|
16577
|
-
(0, util_1$p.checkUnknownRules)(
|
|
16578
|
-
checkRefsAndKeywords(
|
|
17375
|
+
function checkKeywords(it2) {
|
|
17376
|
+
(0, util_1$p.checkUnknownRules)(it2);
|
|
17377
|
+
checkRefsAndKeywords(it2);
|
|
16579
17378
|
}
|
|
16580
|
-
function typeAndKeywords(
|
|
16581
|
-
if (
|
|
16582
|
-
return schemaKeywords(
|
|
16583
|
-
const types2 = (0, dataType_1$1.getSchemaTypes)(
|
|
16584
|
-
const checkedTypes = (0, dataType_1$1.coerceAndCheckDataType)(
|
|
16585
|
-
schemaKeywords(
|
|
17379
|
+
function typeAndKeywords(it2, errsCount) {
|
|
17380
|
+
if (it2.opts.jtd)
|
|
17381
|
+
return schemaKeywords(it2, [], false, errsCount);
|
|
17382
|
+
const types2 = (0, dataType_1$1.getSchemaTypes)(it2.schema);
|
|
17383
|
+
const checkedTypes = (0, dataType_1$1.coerceAndCheckDataType)(it2, types2);
|
|
17384
|
+
schemaKeywords(it2, types2, !checkedTypes, errsCount);
|
|
16586
17385
|
}
|
|
16587
|
-
function checkRefsAndKeywords(
|
|
16588
|
-
const { schema: schema2, errSchemaPath, opts, self: self2 } =
|
|
17386
|
+
function checkRefsAndKeywords(it2) {
|
|
17387
|
+
const { schema: schema2, errSchemaPath, opts, self: self2 } = it2;
|
|
16589
17388
|
if (schema2.$ref && opts.ignoreKeywordsWithRef && (0, util_1$p.schemaHasRulesButRef)(schema2, self2.RULES)) {
|
|
16590
17389
|
self2.logger.warn(`$ref: keywords ignored in schema at path "${errSchemaPath}"`);
|
|
16591
17390
|
}
|
|
16592
17391
|
}
|
|
16593
|
-
function checkNoDefault(
|
|
16594
|
-
const { schema: schema2, opts } =
|
|
17392
|
+
function checkNoDefault(it2) {
|
|
17393
|
+
const { schema: schema2, opts } = it2;
|
|
16595
17394
|
if (schema2.default !== void 0 && opts.useDefaults && opts.strictSchema) {
|
|
16596
|
-
(0, util_1$p.checkStrictMode)(
|
|
17395
|
+
(0, util_1$p.checkStrictMode)(it2, "default is ignored in the schema root");
|
|
16597
17396
|
}
|
|
16598
17397
|
}
|
|
16599
|
-
function updateContext(
|
|
16600
|
-
const schId =
|
|
17398
|
+
function updateContext(it2) {
|
|
17399
|
+
const schId = it2.schema[it2.opts.schemaId];
|
|
16601
17400
|
if (schId)
|
|
16602
|
-
|
|
17401
|
+
it2.baseId = (0, resolve_1$2.resolveUrl)(it2.opts.uriResolver, it2.baseId, schId);
|
|
16603
17402
|
}
|
|
16604
|
-
function checkAsyncSchema(
|
|
16605
|
-
if (
|
|
17403
|
+
function checkAsyncSchema(it2) {
|
|
17404
|
+
if (it2.schema.$async && !it2.schemaEnv.$async)
|
|
16606
17405
|
throw new Error("async schema in sync schema");
|
|
16607
17406
|
}
|
|
16608
17407
|
function commentKeyword({ gen, schemaEnv, schema: schema2, errSchemaPath, opts }) {
|
|
@@ -16615,14 +17414,14 @@ function commentKeyword({ gen, schemaEnv, schema: schema2, errSchemaPath, opts }
|
|
|
16615
17414
|
gen.code((0, codegen_1$r._)`${names_1$6.default.self}.opts.$comment(${msg}, ${schemaPath}, ${rootName}.schema)`);
|
|
16616
17415
|
}
|
|
16617
17416
|
}
|
|
16618
|
-
function returnResults(
|
|
16619
|
-
const { gen, schemaEnv, validateName, ValidationError: ValidationError2, opts } =
|
|
17417
|
+
function returnResults(it2) {
|
|
17418
|
+
const { gen, schemaEnv, validateName, ValidationError: ValidationError2, opts } = it2;
|
|
16620
17419
|
if (schemaEnv.$async) {
|
|
16621
17420
|
gen.if((0, codegen_1$r._)`${names_1$6.default.errors} === 0`, () => gen.return(names_1$6.default.data), () => gen.throw((0, codegen_1$r._)`new ${ValidationError2}(${names_1$6.default.vErrors})`));
|
|
16622
17421
|
} else {
|
|
16623
17422
|
gen.assign((0, codegen_1$r._)`${validateName}.errors`, names_1$6.default.vErrors);
|
|
16624
17423
|
if (opts.unevaluated)
|
|
16625
|
-
assignEvaluated(
|
|
17424
|
+
assignEvaluated(it2);
|
|
16626
17425
|
gen.return((0, codegen_1$r._)`${names_1$6.default.errors} === 0`);
|
|
16627
17426
|
}
|
|
16628
17427
|
}
|
|
@@ -16632,15 +17431,15 @@ function assignEvaluated({ gen, evaluated, props, items: items2 }) {
|
|
|
16632
17431
|
if (items2 instanceof codegen_1$r.Name)
|
|
16633
17432
|
gen.assign((0, codegen_1$r._)`${evaluated}.items`, items2);
|
|
16634
17433
|
}
|
|
16635
|
-
function schemaKeywords(
|
|
16636
|
-
const { gen, schema: schema2, data: data2, allErrors, opts, self: self2 } =
|
|
17434
|
+
function schemaKeywords(it2, types2, typeErrors, errsCount) {
|
|
17435
|
+
const { gen, schema: schema2, data: data2, allErrors, opts, self: self2 } = it2;
|
|
16637
17436
|
const { RULES } = self2;
|
|
16638
17437
|
if (schema2.$ref && (opts.ignoreKeywordsWithRef || !(0, util_1$p.schemaHasRulesButRef)(schema2, RULES))) {
|
|
16639
|
-
gen.block(() => keywordCode(
|
|
17438
|
+
gen.block(() => keywordCode(it2, "$ref", RULES.all.$ref.definition));
|
|
16640
17439
|
return;
|
|
16641
17440
|
}
|
|
16642
17441
|
if (!opts.jtd)
|
|
16643
|
-
checkStrictTypes(
|
|
17442
|
+
checkStrictTypes(it2, types2);
|
|
16644
17443
|
gen.block(() => {
|
|
16645
17444
|
for (const group of RULES.rules)
|
|
16646
17445
|
groupKeywords(group);
|
|
@@ -16651,66 +17450,66 @@ function schemaKeywords(it, types2, typeErrors, errsCount) {
|
|
|
16651
17450
|
return;
|
|
16652
17451
|
if (group.type) {
|
|
16653
17452
|
gen.if((0, dataType_2.checkDataType)(group.type, data2, opts.strictNumbers));
|
|
16654
|
-
iterateKeywords(
|
|
17453
|
+
iterateKeywords(it2, group);
|
|
16655
17454
|
if (types2.length === 1 && types2[0] === group.type && typeErrors) {
|
|
16656
17455
|
gen.else();
|
|
16657
|
-
(0, dataType_2.reportTypeError)(
|
|
17456
|
+
(0, dataType_2.reportTypeError)(it2);
|
|
16658
17457
|
}
|
|
16659
17458
|
gen.endIf();
|
|
16660
17459
|
} else {
|
|
16661
|
-
iterateKeywords(
|
|
17460
|
+
iterateKeywords(it2, group);
|
|
16662
17461
|
}
|
|
16663
17462
|
if (!allErrors)
|
|
16664
17463
|
gen.if((0, codegen_1$r._)`${names_1$6.default.errors} === ${errsCount || 0}`);
|
|
16665
17464
|
}
|
|
16666
17465
|
}
|
|
16667
|
-
function iterateKeywords(
|
|
16668
|
-
const { gen, schema: schema2, opts: { useDefaults } } =
|
|
17466
|
+
function iterateKeywords(it2, group) {
|
|
17467
|
+
const { gen, schema: schema2, opts: { useDefaults } } = it2;
|
|
16669
17468
|
if (useDefaults)
|
|
16670
|
-
(0, defaults_1.assignDefaults)(
|
|
17469
|
+
(0, defaults_1.assignDefaults)(it2, group.type);
|
|
16671
17470
|
gen.block(() => {
|
|
16672
17471
|
for (const rule of group.rules) {
|
|
16673
17472
|
if ((0, applicability_1.shouldUseRule)(schema2, rule)) {
|
|
16674
|
-
keywordCode(
|
|
17473
|
+
keywordCode(it2, rule.keyword, rule.definition, group.type);
|
|
16675
17474
|
}
|
|
16676
17475
|
}
|
|
16677
17476
|
});
|
|
16678
17477
|
}
|
|
16679
|
-
function checkStrictTypes(
|
|
16680
|
-
if (
|
|
17478
|
+
function checkStrictTypes(it2, types2) {
|
|
17479
|
+
if (it2.schemaEnv.meta || !it2.opts.strictTypes)
|
|
16681
17480
|
return;
|
|
16682
|
-
checkContextTypes(
|
|
16683
|
-
if (!
|
|
16684
|
-
checkMultipleTypes(
|
|
16685
|
-
checkKeywordTypes(
|
|
17481
|
+
checkContextTypes(it2, types2);
|
|
17482
|
+
if (!it2.opts.allowUnionTypes)
|
|
17483
|
+
checkMultipleTypes(it2, types2);
|
|
17484
|
+
checkKeywordTypes(it2, it2.dataTypes);
|
|
16686
17485
|
}
|
|
16687
|
-
function checkContextTypes(
|
|
17486
|
+
function checkContextTypes(it2, types2) {
|
|
16688
17487
|
if (!types2.length)
|
|
16689
17488
|
return;
|
|
16690
|
-
if (!
|
|
16691
|
-
|
|
17489
|
+
if (!it2.dataTypes.length) {
|
|
17490
|
+
it2.dataTypes = types2;
|
|
16692
17491
|
return;
|
|
16693
17492
|
}
|
|
16694
17493
|
types2.forEach((t2) => {
|
|
16695
|
-
if (!includesType(
|
|
16696
|
-
strictTypesError(
|
|
17494
|
+
if (!includesType(it2.dataTypes, t2)) {
|
|
17495
|
+
strictTypesError(it2, `type "${t2}" not allowed by context "${it2.dataTypes.join(",")}"`);
|
|
16697
17496
|
}
|
|
16698
17497
|
});
|
|
16699
|
-
narrowSchemaTypes(
|
|
17498
|
+
narrowSchemaTypes(it2, types2);
|
|
16700
17499
|
}
|
|
16701
|
-
function checkMultipleTypes(
|
|
17500
|
+
function checkMultipleTypes(it2, ts) {
|
|
16702
17501
|
if (ts.length > 1 && !(ts.length === 2 && ts.includes("null"))) {
|
|
16703
|
-
strictTypesError(
|
|
17502
|
+
strictTypesError(it2, "use allowUnionTypes to allow union type keyword");
|
|
16704
17503
|
}
|
|
16705
17504
|
}
|
|
16706
|
-
function checkKeywordTypes(
|
|
16707
|
-
const rules2 =
|
|
17505
|
+
function checkKeywordTypes(it2, ts) {
|
|
17506
|
+
const rules2 = it2.self.RULES.all;
|
|
16708
17507
|
for (const keyword2 in rules2) {
|
|
16709
17508
|
const rule = rules2[keyword2];
|
|
16710
|
-
if (typeof rule == "object" && (0, applicability_1.shouldUseRule)(
|
|
17509
|
+
if (typeof rule == "object" && (0, applicability_1.shouldUseRule)(it2.schema, rule)) {
|
|
16711
17510
|
const { type: type2 } = rule.definition;
|
|
16712
17511
|
if (type2.length && !type2.some((t2) => hasApplicableType(ts, t2))) {
|
|
16713
|
-
strictTypesError(
|
|
17512
|
+
strictTypesError(it2, `missing type "${type2.join(",")}" for keyword "${keyword2}"`);
|
|
16714
17513
|
}
|
|
16715
17514
|
}
|
|
16716
17515
|
}
|
|
@@ -16721,38 +17520,38 @@ function hasApplicableType(schTs, kwdT) {
|
|
|
16721
17520
|
function includesType(ts, t2) {
|
|
16722
17521
|
return ts.includes(t2) || t2 === "integer" && ts.includes("number");
|
|
16723
17522
|
}
|
|
16724
|
-
function narrowSchemaTypes(
|
|
17523
|
+
function narrowSchemaTypes(it2, withTypes) {
|
|
16725
17524
|
const ts = [];
|
|
16726
|
-
for (const t2 of
|
|
17525
|
+
for (const t2 of it2.dataTypes) {
|
|
16727
17526
|
if (includesType(withTypes, t2))
|
|
16728
17527
|
ts.push(t2);
|
|
16729
17528
|
else if (withTypes.includes("integer") && t2 === "number")
|
|
16730
17529
|
ts.push("integer");
|
|
16731
17530
|
}
|
|
16732
|
-
|
|
17531
|
+
it2.dataTypes = ts;
|
|
16733
17532
|
}
|
|
16734
|
-
function strictTypesError(
|
|
16735
|
-
const schemaPath =
|
|
17533
|
+
function strictTypesError(it2, msg) {
|
|
17534
|
+
const schemaPath = it2.schemaEnv.baseId + it2.errSchemaPath;
|
|
16736
17535
|
msg += ` at "${schemaPath}" (strictTypes)`;
|
|
16737
|
-
(0, util_1$p.checkStrictMode)(
|
|
17536
|
+
(0, util_1$p.checkStrictMode)(it2, msg, it2.opts.strictTypes);
|
|
16738
17537
|
}
|
|
16739
17538
|
class KeywordCxt {
|
|
16740
|
-
constructor(
|
|
16741
|
-
(0, keyword_1.validateKeywordUsage)(
|
|
16742
|
-
this.gen =
|
|
16743
|
-
this.allErrors =
|
|
17539
|
+
constructor(it2, def2, keyword2) {
|
|
17540
|
+
(0, keyword_1.validateKeywordUsage)(it2, def2, keyword2);
|
|
17541
|
+
this.gen = it2.gen;
|
|
17542
|
+
this.allErrors = it2.allErrors;
|
|
16744
17543
|
this.keyword = keyword2;
|
|
16745
|
-
this.data =
|
|
16746
|
-
this.schema =
|
|
16747
|
-
this.$data = def2.$data &&
|
|
16748
|
-
this.schemaValue = (0, util_1$p.schemaRefOrVal)(
|
|
17544
|
+
this.data = it2.data;
|
|
17545
|
+
this.schema = it2.schema[keyword2];
|
|
17546
|
+
this.$data = def2.$data && it2.opts.$data && this.schema && this.schema.$data;
|
|
17547
|
+
this.schemaValue = (0, util_1$p.schemaRefOrVal)(it2, this.schema, keyword2, this.$data);
|
|
16749
17548
|
this.schemaType = def2.schemaType;
|
|
16750
|
-
this.parentSchema =
|
|
17549
|
+
this.parentSchema = it2.schema;
|
|
16751
17550
|
this.params = {};
|
|
16752
|
-
this.it =
|
|
17551
|
+
this.it = it2;
|
|
16753
17552
|
this.def = def2;
|
|
16754
17553
|
if (this.$data) {
|
|
16755
|
-
this.schemaCode =
|
|
17554
|
+
this.schemaCode = it2.gen.const("vSchema", getData(this.$data, it2));
|
|
16756
17555
|
} else {
|
|
16757
17556
|
this.schemaCode = this.schemaValue;
|
|
16758
17557
|
if (!(0, keyword_1.validSchemaType)(this.schema, def2.schemaType, def2.allowUndefined)) {
|
|
@@ -16760,7 +17559,7 @@ class KeywordCxt {
|
|
|
16760
17559
|
}
|
|
16761
17560
|
}
|
|
16762
17561
|
if ("code" in def2 ? def2.trackErrors : def2.errors !== false) {
|
|
16763
|
-
this.errsCount =
|
|
17562
|
+
this.errsCount = it2.gen.const("_errs", names_1$6.default.errors);
|
|
16764
17563
|
}
|
|
16765
17564
|
}
|
|
16766
17565
|
result(condition, successAction, failAction) {
|
|
@@ -16859,14 +17658,14 @@ class KeywordCxt {
|
|
|
16859
17658
|
gen.else();
|
|
16860
17659
|
}
|
|
16861
17660
|
invalid$data() {
|
|
16862
|
-
const { gen, schemaCode, schemaType, def: def2, it } = this;
|
|
17661
|
+
const { gen, schemaCode, schemaType, def: def2, it: it2 } = this;
|
|
16863
17662
|
return (0, codegen_1$r.or)(wrong$DataType(), invalid$DataSchema());
|
|
16864
17663
|
function wrong$DataType() {
|
|
16865
17664
|
if (schemaType.length) {
|
|
16866
17665
|
if (!(schemaCode instanceof codegen_1$r.Name))
|
|
16867
17666
|
throw new Error("ajv implementation error");
|
|
16868
|
-
const
|
|
16869
|
-
return (0, codegen_1$r._)`${(0, dataType_2.checkDataTypes)(
|
|
17667
|
+
const st2 = Array.isArray(schemaType) ? schemaType : [schemaType];
|
|
17668
|
+
return (0, codegen_1$r._)`${(0, dataType_2.checkDataTypes)(st2, schemaCode, it2.opts.strictNumbers, dataType_2.DataType.Wrong)}`;
|
|
16870
17669
|
}
|
|
16871
17670
|
return codegen_1$r.nil;
|
|
16872
17671
|
}
|
|
@@ -16887,27 +17686,27 @@ class KeywordCxt {
|
|
|
16887
17686
|
return nextContext;
|
|
16888
17687
|
}
|
|
16889
17688
|
mergeEvaluated(schemaCxt, toName) {
|
|
16890
|
-
const { it, gen } = this;
|
|
16891
|
-
if (!
|
|
17689
|
+
const { it: it2, gen } = this;
|
|
17690
|
+
if (!it2.opts.unevaluated)
|
|
16892
17691
|
return;
|
|
16893
|
-
if (
|
|
16894
|
-
|
|
17692
|
+
if (it2.props !== true && schemaCxt.props !== void 0) {
|
|
17693
|
+
it2.props = util_1$p.mergeEvaluated.props(gen, schemaCxt.props, it2.props, toName);
|
|
16895
17694
|
}
|
|
16896
|
-
if (
|
|
16897
|
-
|
|
17695
|
+
if (it2.items !== true && schemaCxt.items !== void 0) {
|
|
17696
|
+
it2.items = util_1$p.mergeEvaluated.items(gen, schemaCxt.items, it2.items, toName);
|
|
16898
17697
|
}
|
|
16899
17698
|
}
|
|
16900
17699
|
mergeValidEvaluated(schemaCxt, valid) {
|
|
16901
|
-
const { it, gen } = this;
|
|
16902
|
-
if (
|
|
17700
|
+
const { it: it2, gen } = this;
|
|
17701
|
+
if (it2.opts.unevaluated && (it2.props !== true || it2.items !== true)) {
|
|
16903
17702
|
gen.if(valid, () => this.mergeEvaluated(schemaCxt, codegen_1$r.Name));
|
|
16904
17703
|
return true;
|
|
16905
17704
|
}
|
|
16906
17705
|
}
|
|
16907
17706
|
}
|
|
16908
17707
|
validate$1.KeywordCxt = KeywordCxt;
|
|
16909
|
-
function keywordCode(
|
|
16910
|
-
const cxt = new KeywordCxt(
|
|
17708
|
+
function keywordCode(it2, keyword2, def2, ruleType) {
|
|
17709
|
+
const cxt = new KeywordCxt(it2, def2, keyword2);
|
|
16911
17710
|
if ("code" in def2) {
|
|
16912
17711
|
def2.code(cxt, ruleType);
|
|
16913
17712
|
} else if (cxt.$data && def2.validate) {
|
|
@@ -17571,7 +18370,7 @@ var uri_all = { exports: {} };
|
|
|
17571
18370
|
error$12("overflow");
|
|
17572
18371
|
}
|
|
17573
18372
|
if (_currentValue == n2) {
|
|
17574
|
-
var
|
|
18373
|
+
var q2 = delta;
|
|
17575
18374
|
for (
|
|
17576
18375
|
var k2 = base;
|
|
17577
18376
|
;
|
|
@@ -17579,15 +18378,15 @@ var uri_all = { exports: {} };
|
|
|
17579
18378
|
k2 += base
|
|
17580
18379
|
) {
|
|
17581
18380
|
var t2 = k2 <= bias ? tMin : k2 >= bias + tMax ? tMax : k2 - bias;
|
|
17582
|
-
if (
|
|
18381
|
+
if (q2 < t2) {
|
|
17583
18382
|
break;
|
|
17584
18383
|
}
|
|
17585
|
-
var qMinusT =
|
|
18384
|
+
var qMinusT = q2 - t2;
|
|
17586
18385
|
var baseMinusT = base - t2;
|
|
17587
18386
|
output.push(stringFromCharCode(digitToBasic(t2 + qMinusT % baseMinusT, 0)));
|
|
17588
|
-
|
|
18387
|
+
q2 = floor(qMinusT / baseMinusT);
|
|
17589
18388
|
}
|
|
17590
|
-
output.push(stringFromCharCode(digitToBasic(
|
|
18389
|
+
output.push(stringFromCharCode(digitToBasic(q2, 0)));
|
|
17591
18390
|
bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
|
|
17592
18391
|
delta = 0;
|
|
17593
18392
|
++handledCPCount;
|
|
@@ -18904,14 +19703,14 @@ const def$A = {
|
|
|
18904
19703
|
keyword: "$ref",
|
|
18905
19704
|
schemaType: "string",
|
|
18906
19705
|
code(cxt) {
|
|
18907
|
-
const { gen, schema: $ref, it } = cxt;
|
|
18908
|
-
const { baseId, schemaEnv: env, validateName, opts, self: self2 } =
|
|
19706
|
+
const { gen, schema: $ref, it: it2 } = cxt;
|
|
19707
|
+
const { baseId, schemaEnv: env, validateName, opts, self: self2 } = it2;
|
|
18909
19708
|
const { root: root2 } = env;
|
|
18910
19709
|
if (($ref === "#" || $ref === "#/") && baseId === root2.baseId)
|
|
18911
19710
|
return callRootRef();
|
|
18912
19711
|
const schOrEnv = compile_1$2.resolveRef.call(self2, root2, baseId, $ref);
|
|
18913
19712
|
if (schOrEnv === void 0)
|
|
18914
|
-
throw new ref_error_1.default(
|
|
19713
|
+
throw new ref_error_1.default(it2.opts.uriResolver, baseId, $ref);
|
|
18915
19714
|
if (schOrEnv instanceof compile_1$2.SchemaEnv)
|
|
18916
19715
|
return callValidate(schOrEnv);
|
|
18917
19716
|
return inlineRefSchema(schOrEnv);
|
|
@@ -18946,8 +19745,8 @@ function getValidate(cxt, sch) {
|
|
|
18946
19745
|
}
|
|
18947
19746
|
ref.getValidate = getValidate;
|
|
18948
19747
|
function callRef(cxt, v2, sch, $async) {
|
|
18949
|
-
const { gen, it } = cxt;
|
|
18950
|
-
const { allErrors, schemaEnv: env, opts } =
|
|
19748
|
+
const { gen, it: it2 } = cxt;
|
|
19749
|
+
const { allErrors, schemaEnv: env, opts } = it2;
|
|
18951
19750
|
const passCxt = opts.passContext ? names_1$4.default.this : codegen_1$p.nil;
|
|
18952
19751
|
if ($async)
|
|
18953
19752
|
callAsyncRef();
|
|
@@ -18963,7 +19762,7 @@ function callRef(cxt, v2, sch, $async) {
|
|
|
18963
19762
|
if (!allErrors)
|
|
18964
19763
|
gen.assign(valid, true);
|
|
18965
19764
|
}, (e2) => {
|
|
18966
|
-
gen.if((0, codegen_1$p._)`!(${e2} instanceof ${
|
|
19765
|
+
gen.if((0, codegen_1$p._)`!(${e2} instanceof ${it2.ValidationError})`, () => gen.throw(e2));
|
|
18967
19766
|
addErrorsFrom(e2);
|
|
18968
19767
|
if (!allErrors)
|
|
18969
19768
|
gen.assign(valid, false);
|
|
@@ -18980,27 +19779,27 @@ function callRef(cxt, v2, sch, $async) {
|
|
|
18980
19779
|
}
|
|
18981
19780
|
function addEvaluatedFrom(source) {
|
|
18982
19781
|
var _a;
|
|
18983
|
-
if (!
|
|
19782
|
+
if (!it2.opts.unevaluated)
|
|
18984
19783
|
return;
|
|
18985
19784
|
const schEvaluated = (_a = sch === null || sch === void 0 ? void 0 : sch.validate) === null || _a === void 0 ? void 0 : _a.evaluated;
|
|
18986
|
-
if (
|
|
19785
|
+
if (it2.props !== true) {
|
|
18987
19786
|
if (schEvaluated && !schEvaluated.dynamicProps) {
|
|
18988
19787
|
if (schEvaluated.props !== void 0) {
|
|
18989
|
-
|
|
19788
|
+
it2.props = util_1$n.mergeEvaluated.props(gen, schEvaluated.props, it2.props);
|
|
18990
19789
|
}
|
|
18991
19790
|
} else {
|
|
18992
19791
|
const props = gen.var("props", (0, codegen_1$p._)`${source}.evaluated.props`);
|
|
18993
|
-
|
|
19792
|
+
it2.props = util_1$n.mergeEvaluated.props(gen, props, it2.props, codegen_1$p.Name);
|
|
18994
19793
|
}
|
|
18995
19794
|
}
|
|
18996
|
-
if (
|
|
19795
|
+
if (it2.items !== true) {
|
|
18997
19796
|
if (schEvaluated && !schEvaluated.dynamicItems) {
|
|
18998
19797
|
if (schEvaluated.items !== void 0) {
|
|
18999
|
-
|
|
19798
|
+
it2.items = util_1$n.mergeEvaluated.items(gen, schEvaluated.items, it2.items);
|
|
19000
19799
|
}
|
|
19001
19800
|
} else {
|
|
19002
19801
|
const items2 = gen.var("items", (0, codegen_1$p._)`${source}.evaluated.items`);
|
|
19003
|
-
|
|
19802
|
+
it2.items = util_1$n.mergeEvaluated.items(gen, items2, it2.items, codegen_1$p.Name);
|
|
19004
19803
|
}
|
|
19005
19804
|
}
|
|
19006
19805
|
}
|
|
@@ -19062,8 +19861,8 @@ const def$y = {
|
|
|
19062
19861
|
$data: true,
|
|
19063
19862
|
error: error$j,
|
|
19064
19863
|
code(cxt) {
|
|
19065
|
-
const { gen, data: data2, schemaCode, it } = cxt;
|
|
19066
|
-
const prec =
|
|
19864
|
+
const { gen, data: data2, schemaCode, it: it2 } = cxt;
|
|
19865
|
+
const prec = it2.opts.multipleOfPrecision;
|
|
19067
19866
|
const res = gen.let("res");
|
|
19068
19867
|
const invalid = prec ? (0, codegen_1$n._)`Math.abs(Math.round(${res}) - ${res}) > 1e-${prec}` : (0, codegen_1$n._)`${res} !== parseInt(${res})`;
|
|
19069
19868
|
cxt.fail$data((0, codegen_1$n._)`(${schemaCode} === 0 || (${res} = ${data2}/${schemaCode}, ${invalid}))`);
|
|
@@ -19109,9 +19908,9 @@ const def$x = {
|
|
|
19109
19908
|
$data: true,
|
|
19110
19909
|
error: error$i,
|
|
19111
19910
|
code(cxt) {
|
|
19112
|
-
const { keyword: keyword2, data: data2, schemaCode, it } = cxt;
|
|
19911
|
+
const { keyword: keyword2, data: data2, schemaCode, it: it2 } = cxt;
|
|
19113
19912
|
const op = keyword2 === "maxLength" ? codegen_1$m.operators.GT : codegen_1$m.operators.LT;
|
|
19114
|
-
const len =
|
|
19913
|
+
const len = it2.opts.unicode === false ? (0, codegen_1$m._)`${data2}.length` : (0, codegen_1$m._)`${(0, util_1$m.useFunc)(cxt.gen, ucs2length_1.default)}(${data2})`;
|
|
19115
19914
|
cxt.fail$data((0, codegen_1$m._)`${len} ${op} ${schemaCode}`);
|
|
19116
19915
|
}
|
|
19117
19916
|
};
|
|
@@ -19131,8 +19930,8 @@ const def$w = {
|
|
|
19131
19930
|
$data: true,
|
|
19132
19931
|
error: error$h,
|
|
19133
19932
|
code(cxt) {
|
|
19134
|
-
const { data: data2, $data, schema: schema2, schemaCode, it } = cxt;
|
|
19135
|
-
const u2 =
|
|
19933
|
+
const { data: data2, $data, schema: schema2, schemaCode, it: it2 } = cxt;
|
|
19934
|
+
const u2 = it2.opts.unicodeRegExp ? "u" : "";
|
|
19136
19935
|
const regExp = $data ? (0, codegen_1$l._)`(new RegExp(${schemaCode}, ${u2}))` : (0, code_1$7.usePattern)(cxt, schema2);
|
|
19137
19936
|
cxt.fail$data((0, codegen_1$l._)`!${regExp}.test(${data2})`);
|
|
19138
19937
|
}
|
|
@@ -19177,12 +19976,12 @@ const def$u = {
|
|
|
19177
19976
|
$data: true,
|
|
19178
19977
|
error: error$f,
|
|
19179
19978
|
code(cxt) {
|
|
19180
|
-
const { gen, schema: schema2, schemaCode, data: data2, $data, it } = cxt;
|
|
19181
|
-
const { opts } =
|
|
19979
|
+
const { gen, schema: schema2, schemaCode, data: data2, $data, it: it2 } = cxt;
|
|
19980
|
+
const { opts } = it2;
|
|
19182
19981
|
if (!$data && schema2.length === 0)
|
|
19183
19982
|
return;
|
|
19184
19983
|
const useLoop = schema2.length >= opts.loopRequired;
|
|
19185
|
-
if (
|
|
19984
|
+
if (it2.allErrors)
|
|
19186
19985
|
allErrorsMode();
|
|
19187
19986
|
else
|
|
19188
19987
|
exitOnErrorMode();
|
|
@@ -19191,9 +19990,9 @@ const def$u = {
|
|
|
19191
19990
|
const { definedProperties } = cxt.it;
|
|
19192
19991
|
for (const requiredKey of schema2) {
|
|
19193
19992
|
if ((props === null || props === void 0 ? void 0 : props[requiredKey]) === void 0 && !definedProperties.has(requiredKey)) {
|
|
19194
|
-
const schemaPath =
|
|
19993
|
+
const schemaPath = it2.schemaEnv.baseId + it2.errSchemaPath;
|
|
19195
19994
|
const msg = `required property "${requiredKey}" is not defined at "${schemaPath}" (strictRequired)`;
|
|
19196
|
-
(0, util_1$l.checkStrictMode)(
|
|
19995
|
+
(0, util_1$l.checkStrictMode)(it2, msg, it2.opts.strictRequired);
|
|
19197
19996
|
}
|
|
19198
19997
|
}
|
|
19199
19998
|
}
|
|
@@ -19282,7 +20081,7 @@ const def$s = {
|
|
|
19282
20081
|
$data: true,
|
|
19283
20082
|
error: error$d,
|
|
19284
20083
|
code(cxt) {
|
|
19285
|
-
const { gen, data: data2, $data, schema: schema2, parentSchema, schemaCode, it } = cxt;
|
|
20084
|
+
const { gen, data: data2, $data, schema: schema2, parentSchema, schemaCode, it: it2 } = cxt;
|
|
19286
20085
|
if (!$data && !schema2)
|
|
19287
20086
|
return;
|
|
19288
20087
|
const valid = gen.let("valid");
|
|
@@ -19301,7 +20100,7 @@ const def$s = {
|
|
|
19301
20100
|
}
|
|
19302
20101
|
function loopN(i2, j2) {
|
|
19303
20102
|
const item = gen.name("item");
|
|
19304
|
-
const wrongType = (0, dataType_1.checkDataTypes)(itemTypes, item,
|
|
20103
|
+
const wrongType = (0, dataType_1.checkDataTypes)(itemTypes, item, it2.opts.strictNumbers, dataType_1.DataType.Wrong);
|
|
19305
20104
|
const indices = gen.const("indices", (0, codegen_1$h._)`{}`);
|
|
19306
20105
|
gen.for((0, codegen_1$h._)`;${i2}--;`, () => {
|
|
19307
20106
|
gen.let(item, (0, codegen_1$h._)`${data2}[${i2}]`);
|
|
@@ -19364,10 +20163,10 @@ const def$q = {
|
|
|
19364
20163
|
$data: true,
|
|
19365
20164
|
error: error$b,
|
|
19366
20165
|
code(cxt) {
|
|
19367
|
-
const { gen, data: data2, $data, schema: schema2, schemaCode, it } = cxt;
|
|
20166
|
+
const { gen, data: data2, $data, schema: schema2, schemaCode, it: it2 } = cxt;
|
|
19368
20167
|
if (!$data && schema2.length === 0)
|
|
19369
20168
|
throw new Error("enum must have non-empty array");
|
|
19370
|
-
const useLoop = schema2.length >=
|
|
20169
|
+
const useLoop = schema2.length >= it2.opts.loopEnum;
|
|
19371
20170
|
let eql;
|
|
19372
20171
|
const getEql = () => eql !== null && eql !== void 0 ? eql : eql = (0, util_1$i.useFunc)(gen, equal_1.default);
|
|
19373
20172
|
let valid;
|
|
@@ -19440,23 +20239,23 @@ const def$p = {
|
|
|
19440
20239
|
before: "uniqueItems",
|
|
19441
20240
|
error: error$a,
|
|
19442
20241
|
code(cxt) {
|
|
19443
|
-
const { parentSchema, it } = cxt;
|
|
20242
|
+
const { parentSchema, it: it2 } = cxt;
|
|
19444
20243
|
const { items: items2 } = parentSchema;
|
|
19445
20244
|
if (!Array.isArray(items2)) {
|
|
19446
|
-
(0, util_1$h.checkStrictMode)(
|
|
20245
|
+
(0, util_1$h.checkStrictMode)(it2, '"additionalItems" is ignored when "items" is not an array of schemas');
|
|
19447
20246
|
return;
|
|
19448
20247
|
}
|
|
19449
20248
|
validateAdditionalItems(cxt, items2);
|
|
19450
20249
|
}
|
|
19451
20250
|
};
|
|
19452
20251
|
function validateAdditionalItems(cxt, items2) {
|
|
19453
|
-
const { gen, schema: schema2, data: data2, keyword: keyword2, it } = cxt;
|
|
19454
|
-
|
|
20252
|
+
const { gen, schema: schema2, data: data2, keyword: keyword2, it: it2 } = cxt;
|
|
20253
|
+
it2.items = true;
|
|
19455
20254
|
const len = gen.const("len", (0, codegen_1$e._)`${data2}.length`);
|
|
19456
20255
|
if (schema2 === false) {
|
|
19457
20256
|
cxt.setParams({ len: items2.length });
|
|
19458
20257
|
cxt.pass((0, codegen_1$e._)`${len} <= ${items2.length}`);
|
|
19459
|
-
} else if (typeof schema2 == "object" && !(0, util_1$h.alwaysValidSchema)(
|
|
20258
|
+
} else if (typeof schema2 == "object" && !(0, util_1$h.alwaysValidSchema)(it2, schema2)) {
|
|
19460
20259
|
const valid = gen.var("valid", (0, codegen_1$e._)`${len} <= ${items2.length}`);
|
|
19461
20260
|
gen.if((0, codegen_1$e.not)(valid), () => validateItems(valid));
|
|
19462
20261
|
cxt.ok(valid);
|
|
@@ -19464,7 +20263,7 @@ function validateAdditionalItems(cxt, items2) {
|
|
|
19464
20263
|
function validateItems(valid) {
|
|
19465
20264
|
gen.forRange("i", items2.length, len, (i2) => {
|
|
19466
20265
|
cxt.subschema({ keyword: keyword2, dataProp: i2, dataPropType: util_1$h.Type.Num }, valid);
|
|
19467
|
-
if (!
|
|
20266
|
+
if (!it2.allErrors)
|
|
19468
20267
|
gen.if((0, codegen_1$e.not)(valid), () => gen.break());
|
|
19469
20268
|
});
|
|
19470
20269
|
}
|
|
@@ -19484,25 +20283,25 @@ const def$o = {
|
|
|
19484
20283
|
schemaType: ["object", "array", "boolean"],
|
|
19485
20284
|
before: "uniqueItems",
|
|
19486
20285
|
code(cxt) {
|
|
19487
|
-
const { schema: schema2, it } = cxt;
|
|
20286
|
+
const { schema: schema2, it: it2 } = cxt;
|
|
19488
20287
|
if (Array.isArray(schema2))
|
|
19489
20288
|
return validateTuple(cxt, "additionalItems", schema2);
|
|
19490
|
-
|
|
19491
|
-
if ((0, util_1$g.alwaysValidSchema)(
|
|
20289
|
+
it2.items = true;
|
|
20290
|
+
if ((0, util_1$g.alwaysValidSchema)(it2, schema2))
|
|
19492
20291
|
return;
|
|
19493
20292
|
cxt.ok((0, code_1$5.validateArray)(cxt));
|
|
19494
20293
|
}
|
|
19495
20294
|
};
|
|
19496
20295
|
function validateTuple(cxt, extraItems, schArr = cxt.schema) {
|
|
19497
|
-
const { gen, parentSchema, data: data2, keyword: keyword2, it } = cxt;
|
|
20296
|
+
const { gen, parentSchema, data: data2, keyword: keyword2, it: it2 } = cxt;
|
|
19498
20297
|
checkStrictTuple(parentSchema);
|
|
19499
|
-
if (
|
|
19500
|
-
|
|
20298
|
+
if (it2.opts.unevaluated && schArr.length && it2.items !== true) {
|
|
20299
|
+
it2.items = util_1$g.mergeEvaluated.items(gen, schArr.length, it2.items);
|
|
19501
20300
|
}
|
|
19502
20301
|
const valid = gen.name("valid");
|
|
19503
20302
|
const len = gen.const("len", (0, codegen_1$d._)`${data2}.length`);
|
|
19504
20303
|
schArr.forEach((sch, i2) => {
|
|
19505
|
-
if ((0, util_1$g.alwaysValidSchema)(
|
|
20304
|
+
if ((0, util_1$g.alwaysValidSchema)(it2, sch))
|
|
19506
20305
|
return;
|
|
19507
20306
|
gen.if((0, codegen_1$d._)`${len} > ${i2}`, () => cxt.subschema({
|
|
19508
20307
|
keyword: keyword2,
|
|
@@ -19512,12 +20311,12 @@ function validateTuple(cxt, extraItems, schArr = cxt.schema) {
|
|
|
19512
20311
|
cxt.ok(valid);
|
|
19513
20312
|
});
|
|
19514
20313
|
function checkStrictTuple(sch) {
|
|
19515
|
-
const { opts, errSchemaPath } =
|
|
20314
|
+
const { opts, errSchemaPath } = it2;
|
|
19516
20315
|
const l2 = schArr.length;
|
|
19517
20316
|
const fullTuple = l2 === sch.minItems && (l2 === sch.maxItems || sch[extraItems] === false);
|
|
19518
20317
|
if (opts.strictTuples && !fullTuple) {
|
|
19519
20318
|
const msg = `"${keyword2}" is ${l2}-tuple, but minItems or maxItems/${extraItems} are not specified or different at path "${errSchemaPath}"`;
|
|
19520
|
-
(0, util_1$g.checkStrictMode)(
|
|
20319
|
+
(0, util_1$g.checkStrictMode)(it2, msg, opts.strictTuples);
|
|
19521
20320
|
}
|
|
19522
20321
|
}
|
|
19523
20322
|
}
|
|
@@ -19550,10 +20349,10 @@ const def$m = {
|
|
|
19550
20349
|
before: "uniqueItems",
|
|
19551
20350
|
error: error$9,
|
|
19552
20351
|
code(cxt) {
|
|
19553
|
-
const { schema: schema2, parentSchema, it } = cxt;
|
|
20352
|
+
const { schema: schema2, parentSchema, it: it2 } = cxt;
|
|
19554
20353
|
const { prefixItems: prefixItems2 } = parentSchema;
|
|
19555
|
-
|
|
19556
|
-
if ((0, util_1$f.alwaysValidSchema)(
|
|
20354
|
+
it2.items = true;
|
|
20355
|
+
if ((0, util_1$f.alwaysValidSchema)(it2, schema2))
|
|
19557
20356
|
return;
|
|
19558
20357
|
if (prefixItems2)
|
|
19559
20358
|
(0, additionalItems_1$1.validateAdditionalItems)(cxt, prefixItems2);
|
|
@@ -19578,11 +20377,11 @@ const def$l = {
|
|
|
19578
20377
|
trackErrors: true,
|
|
19579
20378
|
error: error$8,
|
|
19580
20379
|
code(cxt) {
|
|
19581
|
-
const { gen, schema: schema2, parentSchema, data: data2, it } = cxt;
|
|
20380
|
+
const { gen, schema: schema2, parentSchema, data: data2, it: it2 } = cxt;
|
|
19582
20381
|
let min;
|
|
19583
20382
|
let max;
|
|
19584
20383
|
const { minContains, maxContains } = parentSchema;
|
|
19585
|
-
if (
|
|
20384
|
+
if (it2.opts.next) {
|
|
19586
20385
|
min = minContains === void 0 ? 1 : minContains;
|
|
19587
20386
|
max = maxContains;
|
|
19588
20387
|
} else {
|
|
@@ -19591,22 +20390,22 @@ const def$l = {
|
|
|
19591
20390
|
const len = gen.const("len", (0, codegen_1$b._)`${data2}.length`);
|
|
19592
20391
|
cxt.setParams({ min, max });
|
|
19593
20392
|
if (max === void 0 && min === 0) {
|
|
19594
|
-
(0, util_1$e.checkStrictMode)(
|
|
20393
|
+
(0, util_1$e.checkStrictMode)(it2, `"minContains" == 0 without "maxContains": "contains" keyword ignored`);
|
|
19595
20394
|
return;
|
|
19596
20395
|
}
|
|
19597
20396
|
if (max !== void 0 && min > max) {
|
|
19598
|
-
(0, util_1$e.checkStrictMode)(
|
|
20397
|
+
(0, util_1$e.checkStrictMode)(it2, `"minContains" > "maxContains" is always invalid`);
|
|
19599
20398
|
cxt.fail();
|
|
19600
20399
|
return;
|
|
19601
20400
|
}
|
|
19602
|
-
if ((0, util_1$e.alwaysValidSchema)(
|
|
20401
|
+
if ((0, util_1$e.alwaysValidSchema)(it2, schema2)) {
|
|
19603
20402
|
let cond = (0, codegen_1$b._)`${len} >= ${min}`;
|
|
19604
20403
|
if (max !== void 0)
|
|
19605
20404
|
cond = (0, codegen_1$b._)`${cond} && ${len} <= ${max}`;
|
|
19606
20405
|
cxt.pass(cond);
|
|
19607
20406
|
return;
|
|
19608
20407
|
}
|
|
19609
|
-
|
|
20408
|
+
it2.items = true;
|
|
19610
20409
|
const valid = gen.name("valid");
|
|
19611
20410
|
if (max === void 0 && min === 1) {
|
|
19612
20411
|
validateItems(valid, () => gen.if(valid, () => gen.break()));
|
|
@@ -19691,7 +20490,7 @@ var dependencies = {};
|
|
|
19691
20490
|
return [propertyDeps, schemaDeps];
|
|
19692
20491
|
}
|
|
19693
20492
|
function validatePropertyDeps(cxt, propertyDeps = cxt.schema) {
|
|
19694
|
-
const { gen, data: data2, it } = cxt;
|
|
20493
|
+
const { gen, data: data2, it: it2 } = cxt;
|
|
19695
20494
|
if (Object.keys(propertyDeps).length === 0)
|
|
19696
20495
|
return;
|
|
19697
20496
|
const missing = gen.let("missing");
|
|
@@ -19699,13 +20498,13 @@ var dependencies = {};
|
|
|
19699
20498
|
const deps = propertyDeps[prop];
|
|
19700
20499
|
if (deps.length === 0)
|
|
19701
20500
|
continue;
|
|
19702
|
-
const hasProperty = (0, code_12.propertyInData)(gen, data2, prop,
|
|
20501
|
+
const hasProperty = (0, code_12.propertyInData)(gen, data2, prop, it2.opts.ownProperties);
|
|
19703
20502
|
cxt.setParams({
|
|
19704
20503
|
property: prop,
|
|
19705
20504
|
depsCount: deps.length,
|
|
19706
20505
|
deps: deps.join(", ")
|
|
19707
20506
|
});
|
|
19708
|
-
if (
|
|
20507
|
+
if (it2.allErrors) {
|
|
19709
20508
|
gen.if(hasProperty, () => {
|
|
19710
20509
|
for (const depProp of deps) {
|
|
19711
20510
|
(0, code_12.checkReportMissingProp)(cxt, depProp);
|
|
@@ -19720,13 +20519,13 @@ var dependencies = {};
|
|
|
19720
20519
|
}
|
|
19721
20520
|
exports.validatePropertyDeps = validatePropertyDeps;
|
|
19722
20521
|
function validateSchemaDeps(cxt, schemaDeps = cxt.schema) {
|
|
19723
|
-
const { gen, data: data2, keyword: keyword2, it } = cxt;
|
|
20522
|
+
const { gen, data: data2, keyword: keyword2, it: it2 } = cxt;
|
|
19724
20523
|
const valid = gen.name("valid");
|
|
19725
20524
|
for (const prop in schemaDeps) {
|
|
19726
|
-
if ((0, util_12.alwaysValidSchema)(
|
|
20525
|
+
if ((0, util_12.alwaysValidSchema)(it2, schemaDeps[prop]))
|
|
19727
20526
|
continue;
|
|
19728
20527
|
gen.if(
|
|
19729
|
-
(0, code_12.propertyInData)(gen, data2, prop,
|
|
20528
|
+
(0, code_12.propertyInData)(gen, data2, prop, it2.opts.ownProperties),
|
|
19730
20529
|
() => {
|
|
19731
20530
|
const schCxt = cxt.subschema({ keyword: keyword2, schemaProp: prop }, valid);
|
|
19732
20531
|
cxt.mergeValidEvaluated(schCxt, valid);
|
|
@@ -19754,8 +20553,8 @@ const def$k = {
|
|
|
19754
20553
|
schemaType: ["object", "boolean"],
|
|
19755
20554
|
error: error$7,
|
|
19756
20555
|
code(cxt) {
|
|
19757
|
-
const { gen, schema: schema2, data: data2, it } = cxt;
|
|
19758
|
-
if ((0, util_1$d.alwaysValidSchema)(
|
|
20556
|
+
const { gen, schema: schema2, data: data2, it: it2 } = cxt;
|
|
20557
|
+
if ((0, util_1$d.alwaysValidSchema)(it2, schema2))
|
|
19759
20558
|
return;
|
|
19760
20559
|
const valid = gen.name("valid");
|
|
19761
20560
|
gen.forIn("key", data2, (key) => {
|
|
@@ -19769,7 +20568,7 @@ const def$k = {
|
|
|
19769
20568
|
}, valid);
|
|
19770
20569
|
gen.if((0, codegen_1$a.not)(valid), () => {
|
|
19771
20570
|
cxt.error(true);
|
|
19772
|
-
if (!
|
|
20571
|
+
if (!it2.allErrors)
|
|
19773
20572
|
gen.break();
|
|
19774
20573
|
});
|
|
19775
20574
|
});
|
|
@@ -19795,12 +20594,12 @@ const def$j = {
|
|
|
19795
20594
|
trackErrors: true,
|
|
19796
20595
|
error: error$6,
|
|
19797
20596
|
code(cxt) {
|
|
19798
|
-
const { gen, schema: schema2, parentSchema, data: data2, errsCount, it } = cxt;
|
|
20597
|
+
const { gen, schema: schema2, parentSchema, data: data2, errsCount, it: it2 } = cxt;
|
|
19799
20598
|
if (!errsCount)
|
|
19800
20599
|
throw new Error("ajv implementation error");
|
|
19801
|
-
const { allErrors, opts } =
|
|
19802
|
-
|
|
19803
|
-
if (opts.removeAdditional !== "all" && (0, util_1$c.alwaysValidSchema)(
|
|
20600
|
+
const { allErrors, opts } = it2;
|
|
20601
|
+
it2.props = true;
|
|
20602
|
+
if (opts.removeAdditional !== "all" && (0, util_1$c.alwaysValidSchema)(it2, schema2))
|
|
19804
20603
|
return;
|
|
19805
20604
|
const props = (0, code_1$3.allSchemaProperties)(parentSchema.properties);
|
|
19806
20605
|
const patProps = (0, code_1$3.allSchemaProperties)(parentSchema.patternProperties);
|
|
@@ -19817,7 +20616,7 @@ const def$j = {
|
|
|
19817
20616
|
function isAdditional(key) {
|
|
19818
20617
|
let definedProp;
|
|
19819
20618
|
if (props.length > 8) {
|
|
19820
|
-
const propsSchema = (0, util_1$c.schemaRefOrVal)(
|
|
20619
|
+
const propsSchema = (0, util_1$c.schemaRefOrVal)(it2, parentSchema.properties, "properties");
|
|
19821
20620
|
definedProp = (0, code_1$3.isOwnProperty)(gen, propsSchema, key);
|
|
19822
20621
|
} else if (props.length) {
|
|
19823
20622
|
definedProp = (0, codegen_1$9.or)(...props.map((p2) => (0, codegen_1$9._)`${key} === ${p2}`));
|
|
@@ -19844,7 +20643,7 @@ const def$j = {
|
|
|
19844
20643
|
gen.break();
|
|
19845
20644
|
return;
|
|
19846
20645
|
}
|
|
19847
|
-
if (typeof schema2 == "object" && !(0, util_1$c.alwaysValidSchema)(
|
|
20646
|
+
if (typeof schema2 == "object" && !(0, util_1$c.alwaysValidSchema)(it2, schema2)) {
|
|
19848
20647
|
const valid = gen.name("valid");
|
|
19849
20648
|
if (opts.removeAdditional === "failing") {
|
|
19850
20649
|
applyAdditionalSchema(key, valid, false);
|
|
@@ -19888,18 +20687,18 @@ const def$i = {
|
|
|
19888
20687
|
type: "object",
|
|
19889
20688
|
schemaType: "object",
|
|
19890
20689
|
code(cxt) {
|
|
19891
|
-
const { gen, schema: schema2, parentSchema, data: data2, it } = cxt;
|
|
19892
|
-
if (
|
|
19893
|
-
additionalProperties_1$1.default.code(new validate_1.KeywordCxt(
|
|
20690
|
+
const { gen, schema: schema2, parentSchema, data: data2, it: it2 } = cxt;
|
|
20691
|
+
if (it2.opts.removeAdditional === "all" && parentSchema.additionalProperties === void 0) {
|
|
20692
|
+
additionalProperties_1$1.default.code(new validate_1.KeywordCxt(it2, additionalProperties_1$1.default, "additionalProperties"));
|
|
19894
20693
|
}
|
|
19895
20694
|
const allProps = (0, code_1$2.allSchemaProperties)(schema2);
|
|
19896
20695
|
for (const prop of allProps) {
|
|
19897
|
-
|
|
20696
|
+
it2.definedProperties.add(prop);
|
|
19898
20697
|
}
|
|
19899
|
-
if (
|
|
19900
|
-
|
|
20698
|
+
if (it2.opts.unevaluated && allProps.length && it2.props !== true) {
|
|
20699
|
+
it2.props = util_1$b.mergeEvaluated.props(gen, (0, util_1$b.toHash)(allProps), it2.props);
|
|
19901
20700
|
}
|
|
19902
|
-
const properties2 = allProps.filter((p2) => !(0, util_1$b.alwaysValidSchema)(
|
|
20701
|
+
const properties2 = allProps.filter((p2) => !(0, util_1$b.alwaysValidSchema)(it2, schema2[p2]));
|
|
19903
20702
|
if (properties2.length === 0)
|
|
19904
20703
|
return;
|
|
19905
20704
|
const valid = gen.name("valid");
|
|
@@ -19907,9 +20706,9 @@ const def$i = {
|
|
|
19907
20706
|
if (hasDefault(prop)) {
|
|
19908
20707
|
applyPropertySchema(prop);
|
|
19909
20708
|
} else {
|
|
19910
|
-
gen.if((0, code_1$2.propertyInData)(gen, data2, prop,
|
|
20709
|
+
gen.if((0, code_1$2.propertyInData)(gen, data2, prop, it2.opts.ownProperties));
|
|
19911
20710
|
applyPropertySchema(prop);
|
|
19912
|
-
if (!
|
|
20711
|
+
if (!it2.allErrors)
|
|
19913
20712
|
gen.else().var(valid, true);
|
|
19914
20713
|
gen.endIf();
|
|
19915
20714
|
}
|
|
@@ -19917,7 +20716,7 @@ const def$i = {
|
|
|
19917
20716
|
cxt.ok(valid);
|
|
19918
20717
|
}
|
|
19919
20718
|
function hasDefault(prop) {
|
|
19920
|
-
return
|
|
20719
|
+
return it2.opts.useDefaults && !it2.compositeRule && schema2[prop].default !== void 0;
|
|
19921
20720
|
}
|
|
19922
20721
|
function applyPropertySchema(prop) {
|
|
19923
20722
|
cxt.subschema({
|
|
@@ -19940,25 +20739,25 @@ const def$h = {
|
|
|
19940
20739
|
type: "object",
|
|
19941
20740
|
schemaType: "object",
|
|
19942
20741
|
code(cxt) {
|
|
19943
|
-
const { gen, schema: schema2, data: data2, parentSchema, it } = cxt;
|
|
19944
|
-
const { opts } =
|
|
20742
|
+
const { gen, schema: schema2, data: data2, parentSchema, it: it2 } = cxt;
|
|
20743
|
+
const { opts } = it2;
|
|
19945
20744
|
const patterns = (0, code_1$1.allSchemaProperties)(schema2);
|
|
19946
|
-
const alwaysValidPatterns = patterns.filter((p2) => (0, util_1$a.alwaysValidSchema)(
|
|
19947
|
-
if (patterns.length === 0 || alwaysValidPatterns.length === patterns.length && (!
|
|
20745
|
+
const alwaysValidPatterns = patterns.filter((p2) => (0, util_1$a.alwaysValidSchema)(it2, schema2[p2]));
|
|
20746
|
+
if (patterns.length === 0 || alwaysValidPatterns.length === patterns.length && (!it2.opts.unevaluated || it2.props === true)) {
|
|
19948
20747
|
return;
|
|
19949
20748
|
}
|
|
19950
20749
|
const checkProperties = opts.strictSchema && !opts.allowMatchingProperties && parentSchema.properties;
|
|
19951
20750
|
const valid = gen.name("valid");
|
|
19952
|
-
if (
|
|
19953
|
-
|
|
20751
|
+
if (it2.props !== true && !(it2.props instanceof codegen_1$8.Name)) {
|
|
20752
|
+
it2.props = (0, util_2.evaluatedPropsToName)(gen, it2.props);
|
|
19954
20753
|
}
|
|
19955
|
-
const { props } =
|
|
20754
|
+
const { props } = it2;
|
|
19956
20755
|
validatePatternProperties();
|
|
19957
20756
|
function validatePatternProperties() {
|
|
19958
20757
|
for (const pat of patterns) {
|
|
19959
20758
|
if (checkProperties)
|
|
19960
20759
|
checkMatchingProperties(pat);
|
|
19961
|
-
if (
|
|
20760
|
+
if (it2.allErrors) {
|
|
19962
20761
|
validateProperties(pat);
|
|
19963
20762
|
} else {
|
|
19964
20763
|
gen.var(valid, true);
|
|
@@ -19970,7 +20769,7 @@ const def$h = {
|
|
|
19970
20769
|
function checkMatchingProperties(pat) {
|
|
19971
20770
|
for (const prop in checkProperties) {
|
|
19972
20771
|
if (new RegExp(pat).test(prop)) {
|
|
19973
|
-
(0, util_1$a.checkStrictMode)(
|
|
20772
|
+
(0, util_1$a.checkStrictMode)(it2, `property ${prop} matches pattern ${pat} (use allowMatchingProperties)`);
|
|
19974
20773
|
}
|
|
19975
20774
|
}
|
|
19976
20775
|
}
|
|
@@ -19986,9 +20785,9 @@ const def$h = {
|
|
|
19986
20785
|
dataPropType: util_2.Type.Str
|
|
19987
20786
|
}, valid);
|
|
19988
20787
|
}
|
|
19989
|
-
if (
|
|
20788
|
+
if (it2.opts.unevaluated && props !== true) {
|
|
19990
20789
|
gen.assign((0, codegen_1$8._)`${props}[${key}]`, true);
|
|
19991
|
-
} else if (!alwaysValid && !
|
|
20790
|
+
} else if (!alwaysValid && !it2.allErrors) {
|
|
19992
20791
|
gen.if((0, codegen_1$8.not)(valid), () => gen.break());
|
|
19993
20792
|
}
|
|
19994
20793
|
});
|
|
@@ -20005,8 +20804,8 @@ const def$g = {
|
|
|
20005
20804
|
schemaType: ["object", "boolean"],
|
|
20006
20805
|
trackErrors: true,
|
|
20007
20806
|
code(cxt) {
|
|
20008
|
-
const { gen, schema: schema2, it } = cxt;
|
|
20009
|
-
if ((0, util_1$9.alwaysValidSchema)(
|
|
20807
|
+
const { gen, schema: schema2, it: it2 } = cxt;
|
|
20808
|
+
if ((0, util_1$9.alwaysValidSchema)(it2, schema2)) {
|
|
20010
20809
|
cxt.fail();
|
|
20011
20810
|
return;
|
|
20012
20811
|
}
|
|
@@ -20047,10 +20846,10 @@ const def$e = {
|
|
|
20047
20846
|
trackErrors: true,
|
|
20048
20847
|
error: error$5,
|
|
20049
20848
|
code(cxt) {
|
|
20050
|
-
const { gen, schema: schema2, parentSchema, it } = cxt;
|
|
20849
|
+
const { gen, schema: schema2, parentSchema, it: it2 } = cxt;
|
|
20051
20850
|
if (!Array.isArray(schema2))
|
|
20052
20851
|
throw new Error("ajv implementation error");
|
|
20053
|
-
if (
|
|
20852
|
+
if (it2.opts.discriminator && parentSchema.discriminator)
|
|
20054
20853
|
return;
|
|
20055
20854
|
const schArr = schema2;
|
|
20056
20855
|
const valid = gen.let("valid", false);
|
|
@@ -20062,7 +20861,7 @@ const def$e = {
|
|
|
20062
20861
|
function validateOneOf() {
|
|
20063
20862
|
schArr.forEach((sch, i2) => {
|
|
20064
20863
|
let schCxt;
|
|
20065
|
-
if ((0, util_1$8.alwaysValidSchema)(
|
|
20864
|
+
if ((0, util_1$8.alwaysValidSchema)(it2, sch)) {
|
|
20066
20865
|
gen.var(schValid, true);
|
|
20067
20866
|
} else {
|
|
20068
20867
|
schCxt = cxt.subschema({
|
|
@@ -20092,12 +20891,12 @@ const def$d = {
|
|
|
20092
20891
|
keyword: "allOf",
|
|
20093
20892
|
schemaType: "array",
|
|
20094
20893
|
code(cxt) {
|
|
20095
|
-
const { gen, schema: schema2, it } = cxt;
|
|
20894
|
+
const { gen, schema: schema2, it: it2 } = cxt;
|
|
20096
20895
|
if (!Array.isArray(schema2))
|
|
20097
20896
|
throw new Error("ajv implementation error");
|
|
20098
20897
|
const valid = gen.name("valid");
|
|
20099
20898
|
schema2.forEach((sch, i2) => {
|
|
20100
|
-
if ((0, util_1$7.alwaysValidSchema)(
|
|
20899
|
+
if ((0, util_1$7.alwaysValidSchema)(it2, sch))
|
|
20101
20900
|
return;
|
|
20102
20901
|
const schCxt = cxt.subschema({ keyword: "allOf", schemaProp: i2 }, valid);
|
|
20103
20902
|
cxt.ok(valid);
|
|
@@ -20120,12 +20919,12 @@ const def$c = {
|
|
|
20120
20919
|
trackErrors: true,
|
|
20121
20920
|
error: error$4,
|
|
20122
20921
|
code(cxt) {
|
|
20123
|
-
const { gen, parentSchema, it } = cxt;
|
|
20922
|
+
const { gen, parentSchema, it: it2 } = cxt;
|
|
20124
20923
|
if (parentSchema.then === void 0 && parentSchema.else === void 0) {
|
|
20125
|
-
(0, util_1$6.checkStrictMode)(
|
|
20924
|
+
(0, util_1$6.checkStrictMode)(it2, '"if" without "then" and "else" is ignored');
|
|
20126
20925
|
}
|
|
20127
|
-
const hasThen = hasSchema(
|
|
20128
|
-
const hasElse = hasSchema(
|
|
20926
|
+
const hasThen = hasSchema(it2, "then");
|
|
20927
|
+
const hasElse = hasSchema(it2, "else");
|
|
20129
20928
|
if (!hasThen && !hasElse)
|
|
20130
20929
|
return;
|
|
20131
20930
|
const valid = gen.let("valid", true);
|
|
@@ -20164,9 +20963,9 @@ const def$c = {
|
|
|
20164
20963
|
}
|
|
20165
20964
|
}
|
|
20166
20965
|
};
|
|
20167
|
-
function hasSchema(
|
|
20168
|
-
const schema2 =
|
|
20169
|
-
return schema2 !== void 0 && !(0, util_1$6.alwaysValidSchema)(
|
|
20966
|
+
function hasSchema(it2, keyword2) {
|
|
20967
|
+
const schema2 = it2.schema[keyword2];
|
|
20968
|
+
return schema2 !== void 0 && !(0, util_1$6.alwaysValidSchema)(it2, schema2);
|
|
20170
20969
|
}
|
|
20171
20970
|
_if.default = def$c;
|
|
20172
20971
|
var thenElse = {};
|
|
@@ -20175,9 +20974,9 @@ const util_1$5 = util;
|
|
|
20175
20974
|
const def$b = {
|
|
20176
20975
|
keyword: ["then", "else"],
|
|
20177
20976
|
schemaType: ["object", "boolean"],
|
|
20178
|
-
code({ keyword: keyword2, parentSchema, it }) {
|
|
20977
|
+
code({ keyword: keyword2, parentSchema, it: it2 }) {
|
|
20179
20978
|
if (parentSchema.if === void 0)
|
|
20180
|
-
(0, util_1$5.checkStrictMode)(
|
|
20979
|
+
(0, util_1$5.checkStrictMode)(it2, `"${keyword2}" without "if" is ignored`);
|
|
20181
20980
|
}
|
|
20182
20981
|
};
|
|
20183
20982
|
thenElse.default = def$b;
|
|
@@ -20237,8 +21036,8 @@ const def$a = {
|
|
|
20237
21036
|
$data: true,
|
|
20238
21037
|
error: error$3,
|
|
20239
21038
|
code(cxt, ruleType) {
|
|
20240
|
-
const { gen, data: data2, $data, schema: schema2, schemaCode, it } = cxt;
|
|
20241
|
-
const { opts, errSchemaPath, schemaEnv, self: self2 } =
|
|
21039
|
+
const { gen, data: data2, $data, schema: schema2, schemaCode, it: it2 } = cxt;
|
|
21040
|
+
const { opts, errSchemaPath, schemaEnv, self: self2 } = it2;
|
|
20242
21041
|
if (!opts.validateFormats)
|
|
20243
21042
|
return;
|
|
20244
21043
|
if ($data)
|
|
@@ -20357,10 +21156,10 @@ const def$9 = {
|
|
|
20357
21156
|
code: (cxt) => dynamicAnchor(cxt, cxt.schema)
|
|
20358
21157
|
};
|
|
20359
21158
|
function dynamicAnchor(cxt, anchor) {
|
|
20360
|
-
const { gen, it } = cxt;
|
|
20361
|
-
|
|
21159
|
+
const { gen, it: it2 } = cxt;
|
|
21160
|
+
it2.schemaEnv.root.dynamicAnchors[anchor] = true;
|
|
20362
21161
|
const v2 = (0, codegen_1$4._)`${names_1$2.default.dynamicAnchors}${(0, codegen_1$4.getProperty)(anchor)}`;
|
|
20363
|
-
const validate2 =
|
|
21162
|
+
const validate2 = it2.errSchemaPath === "#" ? it2.validateName : _getValidate(cxt);
|
|
20364
21163
|
gen.if((0, codegen_1$4._)`!${v2}`, () => gen.assign(v2, validate2));
|
|
20365
21164
|
}
|
|
20366
21165
|
dynamicAnchor$1.dynamicAnchor = dynamicAnchor;
|
|
@@ -20385,11 +21184,11 @@ const def$8 = {
|
|
|
20385
21184
|
code: (cxt) => dynamicRef(cxt, cxt.schema)
|
|
20386
21185
|
};
|
|
20387
21186
|
function dynamicRef(cxt, ref2) {
|
|
20388
|
-
const { gen, keyword: keyword2, it } = cxt;
|
|
21187
|
+
const { gen, keyword: keyword2, it: it2 } = cxt;
|
|
20389
21188
|
if (ref2[0] !== "#")
|
|
20390
21189
|
throw new Error(`"${keyword2}" only supports hash fragment reference`);
|
|
20391
21190
|
const anchor = ref2.slice(1);
|
|
20392
|
-
if (
|
|
21191
|
+
if (it2.allErrors) {
|
|
20393
21192
|
_dynamicRef();
|
|
20394
21193
|
} else {
|
|
20395
21194
|
const valid = gen.let("valid", false);
|
|
@@ -20397,11 +21196,11 @@ function dynamicRef(cxt, ref2) {
|
|
|
20397
21196
|
cxt.ok(valid);
|
|
20398
21197
|
}
|
|
20399
21198
|
function _dynamicRef(valid) {
|
|
20400
|
-
if (
|
|
21199
|
+
if (it2.schemaEnv.root.dynamicAnchors[anchor]) {
|
|
20401
21200
|
const v2 = gen.let("_v", (0, codegen_1$3._)`${names_1$1.default.dynamicAnchors}${(0, codegen_1$3.getProperty)(anchor)}`);
|
|
20402
|
-
gen.if(v2, _callRef(v2, valid), _callRef(
|
|
21201
|
+
gen.if(v2, _callRef(v2, valid), _callRef(it2.validateName, valid));
|
|
20403
21202
|
} else {
|
|
20404
|
-
_callRef(
|
|
21203
|
+
_callRef(it2.validateName, valid)();
|
|
20405
21204
|
}
|
|
20406
21205
|
}
|
|
20407
21206
|
function _callRef(validate2, valid) {
|
|
@@ -20473,9 +21272,9 @@ const def$3 = {
|
|
|
20473
21272
|
keyword: ["maxContains", "minContains"],
|
|
20474
21273
|
type: "array",
|
|
20475
21274
|
schemaType: "number",
|
|
20476
|
-
code({ keyword: keyword2, parentSchema, it }) {
|
|
21275
|
+
code({ keyword: keyword2, parentSchema, it: it2 }) {
|
|
20477
21276
|
if (parentSchema.contains === void 0) {
|
|
20478
|
-
(0, util_1$3.checkStrictMode)(
|
|
21277
|
+
(0, util_1$3.checkStrictMode)(it2, `"${keyword2}" without "contains" is ignored`);
|
|
20479
21278
|
}
|
|
20480
21279
|
}
|
|
20481
21280
|
};
|
|
@@ -20503,16 +21302,16 @@ const def$2 = {
|
|
|
20503
21302
|
trackErrors: true,
|
|
20504
21303
|
error: error$2,
|
|
20505
21304
|
code(cxt) {
|
|
20506
|
-
const { gen, schema: schema2, data: data2, errsCount, it } = cxt;
|
|
21305
|
+
const { gen, schema: schema2, data: data2, errsCount, it: it2 } = cxt;
|
|
20507
21306
|
if (!errsCount)
|
|
20508
21307
|
throw new Error("ajv implementation error");
|
|
20509
|
-
const { allErrors, props } =
|
|
21308
|
+
const { allErrors, props } = it2;
|
|
20510
21309
|
if (props instanceof codegen_1$2.Name) {
|
|
20511
21310
|
gen.if((0, codegen_1$2._)`${props} !== true`, () => gen.forIn("key", data2, (key) => gen.if(unevaluatedDynamic(props, key), () => unevaluatedPropCode(key))));
|
|
20512
21311
|
} else if (props !== true) {
|
|
20513
21312
|
gen.forIn("key", data2, (key) => props === void 0 ? unevaluatedPropCode(key) : gen.if(unevaluatedStatic(props, key), () => unevaluatedPropCode(key)));
|
|
20514
21313
|
}
|
|
20515
|
-
|
|
21314
|
+
it2.props = true;
|
|
20516
21315
|
cxt.ok((0, codegen_1$2._)`${errsCount} === ${names_1.default.errors}`);
|
|
20517
21316
|
function unevaluatedPropCode(key) {
|
|
20518
21317
|
if (schema2 === false) {
|
|
@@ -20522,7 +21321,7 @@ const def$2 = {
|
|
|
20522
21321
|
gen.break();
|
|
20523
21322
|
return;
|
|
20524
21323
|
}
|
|
20525
|
-
if (!(0, util_1$2.alwaysValidSchema)(
|
|
21324
|
+
if (!(0, util_1$2.alwaysValidSchema)(it2, schema2)) {
|
|
20526
21325
|
const valid = gen.name("valid");
|
|
20527
21326
|
cxt.subschema({
|
|
20528
21327
|
keyword: "unevaluatedProperties",
|
|
@@ -20561,24 +21360,24 @@ const def$1 = {
|
|
|
20561
21360
|
schemaType: ["boolean", "object"],
|
|
20562
21361
|
error: error$1,
|
|
20563
21362
|
code(cxt) {
|
|
20564
|
-
const { gen, schema: schema2, data: data2, it } = cxt;
|
|
20565
|
-
const items2 =
|
|
21363
|
+
const { gen, schema: schema2, data: data2, it: it2 } = cxt;
|
|
21364
|
+
const items2 = it2.items || 0;
|
|
20566
21365
|
if (items2 === true)
|
|
20567
21366
|
return;
|
|
20568
21367
|
const len = gen.const("len", (0, codegen_1$1._)`${data2}.length`);
|
|
20569
21368
|
if (schema2 === false) {
|
|
20570
21369
|
cxt.setParams({ len: items2 });
|
|
20571
21370
|
cxt.fail((0, codegen_1$1._)`${len} > ${items2}`);
|
|
20572
|
-
} else if (typeof schema2 == "object" && !(0, util_1$1.alwaysValidSchema)(
|
|
21371
|
+
} else if (typeof schema2 == "object" && !(0, util_1$1.alwaysValidSchema)(it2, schema2)) {
|
|
20573
21372
|
const valid = gen.var("valid", (0, codegen_1$1._)`${len} <= ${items2}`);
|
|
20574
21373
|
gen.if((0, codegen_1$1.not)(valid), () => validateItems(valid, items2));
|
|
20575
21374
|
cxt.ok(valid);
|
|
20576
21375
|
}
|
|
20577
|
-
|
|
21376
|
+
it2.items = true;
|
|
20578
21377
|
function validateItems(valid, from) {
|
|
20579
21378
|
gen.forRange("i", from, len, (i2) => {
|
|
20580
21379
|
cxt.subschema({ keyword: "unevaluatedItems", dataProp: i2, dataPropType: util_1$1.Type.Num }, valid);
|
|
20581
|
-
if (!
|
|
21380
|
+
if (!it2.allErrors)
|
|
20582
21381
|
gen.if((0, codegen_1$1.not)(valid), () => gen.break());
|
|
20583
21382
|
});
|
|
20584
21383
|
}
|
|
@@ -20615,9 +21414,9 @@ const def = {
|
|
|
20615
21414
|
schemaType: "object",
|
|
20616
21415
|
error,
|
|
20617
21416
|
code(cxt) {
|
|
20618
|
-
const { gen, data: data2, schema: schema2, parentSchema, it } = cxt;
|
|
21417
|
+
const { gen, data: data2, schema: schema2, parentSchema, it: it2 } = cxt;
|
|
20619
21418
|
const { oneOf: oneOf2 } = parentSchema;
|
|
20620
|
-
if (!
|
|
21419
|
+
if (!it2.opts.discriminator) {
|
|
20621
21420
|
throw new Error("discriminator: requires discriminator option");
|
|
20622
21421
|
}
|
|
20623
21422
|
const tagName = schema2.propertyName;
|
|
@@ -20655,8 +21454,8 @@ const def = {
|
|
|
20655
21454
|
let tagRequired = true;
|
|
20656
21455
|
for (let i2 = 0; i2 < oneOf2.length; i2++) {
|
|
20657
21456
|
let sch = oneOf2[i2];
|
|
20658
|
-
if ((sch === null || sch === void 0 ? void 0 : sch.$ref) && !(0, util_1.schemaHasRulesButRef)(sch,
|
|
20659
|
-
sch = compile_1.resolveRef.call(
|
|
21457
|
+
if ((sch === null || sch === void 0 ? void 0 : sch.$ref) && !(0, util_1.schemaHasRulesButRef)(sch, it2.self.RULES)) {
|
|
21458
|
+
sch = compile_1.resolveRef.call(it2.self, it2.schemaEnv.root, it2.baseId, sch === null || sch === void 0 ? void 0 : sch.$ref);
|
|
20660
21459
|
if (sch instanceof compile_1.SchemaEnv)
|
|
20661
21460
|
sch = sch.schema;
|
|
20662
21461
|
}
|
|
@@ -21822,7 +22621,7 @@ ${displayNode}`
|
|
|
21822
22621
|
function handleComputedProperty(options) {
|
|
21823
22622
|
var _a;
|
|
21824
22623
|
options._computed = {
|
|
21825
|
-
version: "6.0.
|
|
22624
|
+
version: "6.0.2",
|
|
21826
22625
|
paymentMethodsUrl: ((_a = options._dev) == null ? void 0 : _a.paymentMethodsUrl) ?? "https://forms.secure-payments.app"
|
|
21827
22626
|
};
|
|
21828
22627
|
return options;
|
|
@@ -24947,7 +25746,7 @@ class RebillyInstrumentsInstance {
|
|
|
24947
25746
|
await show({ componentName, payload });
|
|
24948
25747
|
}
|
|
24949
25748
|
get version() {
|
|
24950
|
-
return `RebillyInstruments Ver.${"6.0.
|
|
25749
|
+
return `RebillyInstruments Ver.${"6.0.2"}`;
|
|
24951
25750
|
}
|
|
24952
25751
|
on(eventName, callback) {
|
|
24953
25752
|
on({ eventName, callback });
|