@rebilly/instruments 16.157.4 → 16.158.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -3
- package/dist/index.js +95 -97
- package/dist/index.min.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## [16.
|
|
1
|
+
## [16.158.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v16.157.4...instruments/core-v16.158.0) (2026-07-16)
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
###
|
|
4
|
+
### Features
|
|
5
5
|
|
|
6
|
-
* **api:**
|
|
6
|
+
* **api-metadata, rebilly-js-sdk:** Update resources based on latest api definitions ([#23725](https://github.com/Rebilly/rebilly/issues/23725)) ([21eab27](https://github.com/Rebilly/rebilly/commit/21eab277d79cbc412d7e04f5f6a66bd8507743ab))
|
package/dist/index.js
CHANGED
|
@@ -2435,9 +2435,9 @@ function merge(...objs) {
|
|
|
2435
2435
|
}
|
|
2436
2436
|
return result;
|
|
2437
2437
|
}
|
|
2438
|
-
const extend = (a,
|
|
2438
|
+
const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
2439
2439
|
forEach(
|
|
2440
|
-
|
|
2440
|
+
b,
|
|
2441
2441
|
(val, key) => {
|
|
2442
2442
|
if (thisArg && isFunction$1(val)) {
|
|
2443
2443
|
Object.defineProperty(a, key, {
|
|
@@ -3867,28 +3867,28 @@ function mergeConfig$1(config1, config2) {
|
|
|
3867
3867
|
}
|
|
3868
3868
|
return source;
|
|
3869
3869
|
}
|
|
3870
|
-
function mergeDeepProperties(a,
|
|
3871
|
-
if (!utils$1.isUndefined(
|
|
3872
|
-
return getMergedValue(a,
|
|
3870
|
+
function mergeDeepProperties(a, b, prop, caseless) {
|
|
3871
|
+
if (!utils$1.isUndefined(b)) {
|
|
3872
|
+
return getMergedValue(a, b, prop, caseless);
|
|
3873
3873
|
} else if (!utils$1.isUndefined(a)) {
|
|
3874
3874
|
return getMergedValue(void 0, a, prop, caseless);
|
|
3875
3875
|
}
|
|
3876
3876
|
}
|
|
3877
|
-
function valueFromConfig2(a,
|
|
3878
|
-
if (!utils$1.isUndefined(
|
|
3879
|
-
return getMergedValue(void 0,
|
|
3877
|
+
function valueFromConfig2(a, b) {
|
|
3878
|
+
if (!utils$1.isUndefined(b)) {
|
|
3879
|
+
return getMergedValue(void 0, b);
|
|
3880
3880
|
}
|
|
3881
3881
|
}
|
|
3882
|
-
function defaultToConfig2(a,
|
|
3883
|
-
if (!utils$1.isUndefined(
|
|
3884
|
-
return getMergedValue(void 0,
|
|
3882
|
+
function defaultToConfig2(a, b) {
|
|
3883
|
+
if (!utils$1.isUndefined(b)) {
|
|
3884
|
+
return getMergedValue(void 0, b);
|
|
3885
3885
|
} else if (!utils$1.isUndefined(a)) {
|
|
3886
3886
|
return getMergedValue(void 0, a);
|
|
3887
3887
|
}
|
|
3888
3888
|
}
|
|
3889
|
-
function mergeDirectKeys(a,
|
|
3889
|
+
function mergeDirectKeys(a, b, prop) {
|
|
3890
3890
|
if (utils$1.hasOwnProp(config2, prop)) {
|
|
3891
|
-
return getMergedValue(a,
|
|
3891
|
+
return getMergedValue(a, b);
|
|
3892
3892
|
} else if (utils$1.hasOwnProp(config1, prop)) {
|
|
3893
3893
|
return getMergedValue(void 0, a);
|
|
3894
3894
|
}
|
|
@@ -3923,14 +3923,14 @@ function mergeConfig$1(config1, config2) {
|
|
|
3923
3923
|
allowedSocketPaths: defaultToConfig2,
|
|
3924
3924
|
responseEncoding: defaultToConfig2,
|
|
3925
3925
|
validateStatus: mergeDirectKeys,
|
|
3926
|
-
headers: (a,
|
|
3926
|
+
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
3927
3927
|
};
|
|
3928
3928
|
utils$1.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
|
|
3929
3929
|
if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
|
|
3930
3930
|
const merge2 = utils$1.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
3931
3931
|
const a = utils$1.hasOwnProp(config1, prop) ? config1[prop] : void 0;
|
|
3932
|
-
const
|
|
3933
|
-
const configValue = merge2(a,
|
|
3932
|
+
const b = utils$1.hasOwnProp(config2, prop) ? config2[prop] : void 0;
|
|
3933
|
+
const configValue = merge2(a, b, prop);
|
|
3934
3934
|
utils$1.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
3935
3935
|
});
|
|
3936
3936
|
return config;
|
|
@@ -4269,8 +4269,8 @@ function estimateDataURLDecodedBytes(url) {
|
|
|
4269
4269
|
for (let i = 0; i < len; i++) {
|
|
4270
4270
|
if (body.charCodeAt(i) === 37 && i + 2 < len) {
|
|
4271
4271
|
const a = body.charCodeAt(i + 1);
|
|
4272
|
-
const
|
|
4273
|
-
const isHex = (a >= 48 && a <= 57 || a >= 65 && a <= 70 || a >= 97 && a <= 102) && (
|
|
4272
|
+
const b = body.charCodeAt(i + 2);
|
|
4273
|
+
const isHex = (a >= 48 && a <= 57 || a >= 65 && a <= 70 || a >= 97 && a <= 102) && (b >= 48 && b <= 57 || b >= 65 && b <= 70 || b >= 97 && b <= 102);
|
|
4274
4274
|
if (isHex) {
|
|
4275
4275
|
effectiveLen -= 2;
|
|
4276
4276
|
i += 2;
|
|
@@ -5365,16 +5365,16 @@ let A$1 = class A extends Error {
|
|
|
5365
5365
|
n2 && n2.data && (n2.data.error ? l = n2.data.error : n2.data.detail ? l = n2.data.detail : n2.data.title && (l = n2.data.title)), super(l), this.name = s || "RebillyError", this.response = n2, this.request = u, this.config = r2, this.status = n2 && n2.status ? n2.status : null, this.statusText = n2 && n2.statusText ? n2.statusText : null, this.details = n2 && n2.data && n2.data.details ? n2.data.details : null, this.invalidFields = n2 && n2.data && n2.data.invalidFields ? n2.data.invalidFields : null;
|
|
5366
5366
|
}
|
|
5367
5367
|
};
|
|
5368
|
-
|
|
5368
|
+
class be extends A$1 {
|
|
5369
5369
|
constructor(e2) {
|
|
5370
5370
|
super({ error: e2, name: "RebillyRequestError" });
|
|
5371
5371
|
}
|
|
5372
|
-
}
|
|
5373
|
-
class
|
|
5372
|
+
}
|
|
5373
|
+
let Re$1 = class Re extends A$1 {
|
|
5374
5374
|
constructor(e2) {
|
|
5375
5375
|
super({ error: e2, name: "RebillyValidationError" });
|
|
5376
5376
|
}
|
|
5377
|
-
}
|
|
5377
|
+
};
|
|
5378
5378
|
let we$1 = class we extends A$1 {
|
|
5379
5379
|
constructor(e2) {
|
|
5380
5380
|
super({ error: e2, name: "RebillyNotFoundError" });
|
|
@@ -5407,8 +5407,8 @@ let Te$1 = class Te extends A$1 {
|
|
|
5407
5407
|
};
|
|
5408
5408
|
const y = {
|
|
5409
5409
|
RebillyError: A$1,
|
|
5410
|
-
RebillyRequestError:
|
|
5411
|
-
RebillyValidationError:
|
|
5410
|
+
RebillyRequestError: be,
|
|
5411
|
+
RebillyValidationError: Re$1,
|
|
5412
5412
|
RebillyNotFoundError: we$1,
|
|
5413
5413
|
RebillyConflictError: ke$1,
|
|
5414
5414
|
RebillyForbiddenError: ve$1,
|
|
@@ -5779,7 +5779,7 @@ function O$1({ options: t2 }) {
|
|
|
5779
5779
|
}
|
|
5780
5780
|
function o2() {
|
|
5781
5781
|
const g = {
|
|
5782
|
-
"REB-API-CONSUMER": `${["Rebilly", t2.appName, "js-sdk"].filter((m2) => m2).join("/")}@
|
|
5782
|
+
"REB-API-CONSUMER": `${["Rebilly", t2.appName, "js-sdk"].filter((m2) => m2).join("/")}@21eab27`
|
|
5783
5783
|
};
|
|
5784
5784
|
return t2.apiKey && (g["REB-APIKEY"] = t2.apiKey), g;
|
|
5785
5785
|
}
|
|
@@ -5841,7 +5841,7 @@ function O$1({ options: t2 }) {
|
|
|
5841
5841
|
N2(v.response, c);
|
|
5842
5842
|
}
|
|
5843
5843
|
function w({ request: c, isCollection: g, config: m2 }) {
|
|
5844
|
-
const p = z2(m2), { id:
|
|
5844
|
+
const p = z2(m2), { id: b, cancelToken: $e2 } = q$1.save();
|
|
5845
5845
|
p.cancelToken = $e2;
|
|
5846
5846
|
const W2 = (async function() {
|
|
5847
5847
|
try {
|
|
@@ -5854,10 +5854,10 @@ function O$1({ options: t2 }) {
|
|
|
5854
5854
|
} catch (d) {
|
|
5855
5855
|
return L2({ error: d });
|
|
5856
5856
|
} finally {
|
|
5857
|
-
q$1.deleteById(
|
|
5857
|
+
q$1.deleteById(b);
|
|
5858
5858
|
}
|
|
5859
5859
|
})();
|
|
5860
|
-
return W2.cancel = (d) => I$1.cancelById(
|
|
5860
|
+
return W2.cancel = (d) => I$1.cancelById(b, d), W2;
|
|
5861
5861
|
}
|
|
5862
5862
|
function oe2({ response: c, isCollection: g, config: m2 }) {
|
|
5863
5863
|
return g ? new ye$1(c, m2) : new ee$1(c, m2);
|
|
@@ -5906,7 +5906,7 @@ function O$1({ options: t2 }) {
|
|
|
5906
5906
|
function V2(c, g, m2 = {}) {
|
|
5907
5907
|
let p = {};
|
|
5908
5908
|
return m2.authenticate === false && (p = { headers: l() }, delete p.headers.common["REB-APIKEY"], delete p.headers.common.Authorization), m2.params && (p.params = { ...m2.params }), w({
|
|
5909
|
-
request: (
|
|
5909
|
+
request: (b) => e2.post(c, g, b),
|
|
5910
5910
|
config: p
|
|
5911
5911
|
});
|
|
5912
5912
|
}
|
|
@@ -5942,10 +5942,10 @@ function O$1({ options: t2 }) {
|
|
|
5942
5942
|
throw new y.RebillyConflictError({
|
|
5943
5943
|
message: "A resource already exists with this ID. Please use a different ID."
|
|
5944
5944
|
});
|
|
5945
|
-
} catch (
|
|
5946
|
-
if (
|
|
5945
|
+
} catch (b) {
|
|
5946
|
+
if (b.name === "RebillyNotFoundError")
|
|
5947
5947
|
return J2(c, m2, p);
|
|
5948
|
-
throw
|
|
5948
|
+
throw b;
|
|
5949
5949
|
}
|
|
5950
5950
|
}
|
|
5951
5951
|
async function fe2(c, g) {
|
|
@@ -6060,18 +6060,16 @@ function Ne$1({ apiHandler: t2 }) {
|
|
|
6060
6060
|
offset: s = null,
|
|
6061
6061
|
sort: r2 = null,
|
|
6062
6062
|
filter: n2 = null,
|
|
6063
|
-
q: u = null
|
|
6064
|
-
expand: o2 = null
|
|
6063
|
+
q: u = null
|
|
6065
6064
|
} = {}) {
|
|
6066
|
-
const
|
|
6067
|
-
return t2.getAll("aml-checks",
|
|
6065
|
+
const o2 = { limit: e2, offset: s, sort: r2, filter: n2, q: u };
|
|
6066
|
+
return t2.getAll("aml-checks", o2);
|
|
6068
6067
|
},
|
|
6069
6068
|
/**
|
|
6070
6069
|
* @returns { rebilly.GetAmlCheckResponsePromise } response
|
|
6071
6070
|
*/
|
|
6072
|
-
get({ id: e2
|
|
6073
|
-
|
|
6074
|
-
return t2.get(`aml-checks/${e2}`, r2);
|
|
6071
|
+
get({ id: e2 }) {
|
|
6072
|
+
return t2.get(`aml-checks/${e2}`);
|
|
6075
6073
|
},
|
|
6076
6074
|
startReview({ id: e2 }) {
|
|
6077
6075
|
return t2.post(`aml-checks/${e2}/start-review`);
|
|
@@ -6451,7 +6449,7 @@ function Ze$1({ apiHandler: t2 }) {
|
|
|
6451
6449
|
}
|
|
6452
6450
|
};
|
|
6453
6451
|
}
|
|
6454
|
-
const
|
|
6452
|
+
const R = { Accept: "application/pdf" };
|
|
6455
6453
|
function _e$1({ apiHandler: t2 }) {
|
|
6456
6454
|
return {
|
|
6457
6455
|
/**
|
|
@@ -6526,7 +6524,7 @@ function _e$1({ apiHandler: t2 }) {
|
|
|
6526
6524
|
},
|
|
6527
6525
|
downloadPDF({ id: e2 }) {
|
|
6528
6526
|
const s = {
|
|
6529
|
-
headers:
|
|
6527
|
+
headers: R,
|
|
6530
6528
|
responseType: "arraybuffer"
|
|
6531
6529
|
};
|
|
6532
6530
|
return t2.download(`credit-memos/${e2}`, s);
|
|
@@ -6782,7 +6780,7 @@ function st$1({ apiHandler: t2 }) {
|
|
|
6782
6780
|
},
|
|
6783
6781
|
downloadComplianceScreeningReport({ id: e2 }) {
|
|
6784
6782
|
const s = {
|
|
6785
|
-
headers:
|
|
6783
|
+
headers: R,
|
|
6786
6784
|
responseType: "arraybuffer"
|
|
6787
6785
|
};
|
|
6788
6786
|
return t2.download(
|
|
@@ -7659,14 +7657,14 @@ function At$1({ apiHandler: t2 }) {
|
|
|
7659
7657
|
},
|
|
7660
7658
|
downloadPDF({ id: e2 }) {
|
|
7661
7659
|
const s = {
|
|
7662
|
-
headers:
|
|
7660
|
+
headers: R,
|
|
7663
7661
|
responseType: "arraybuffer"
|
|
7664
7662
|
};
|
|
7665
7663
|
return t2.download(`invoices/${e2}`, s);
|
|
7666
7664
|
}
|
|
7667
7665
|
};
|
|
7668
7666
|
}
|
|
7669
|
-
function
|
|
7667
|
+
function bt$1({ apiHandler: t2 }) {
|
|
7670
7668
|
return {
|
|
7671
7669
|
/**
|
|
7672
7670
|
* @param { rebilly.GetJournalAccountCollectionRequest } request
|
|
@@ -7702,7 +7700,7 @@ function Rt$1({ apiHandler: t2 }) {
|
|
|
7702
7700
|
}
|
|
7703
7701
|
};
|
|
7704
7702
|
}
|
|
7705
|
-
function
|
|
7703
|
+
function Rt$1({ apiHandler: t2 }) {
|
|
7706
7704
|
return {
|
|
7707
7705
|
/**
|
|
7708
7706
|
* @param { rebilly.GetJournalEntryCollectionRequest } request
|
|
@@ -8643,7 +8641,7 @@ function Wt$1({ apiHandler: t2 }) {
|
|
|
8643
8641
|
},
|
|
8644
8642
|
downloadPDF({ id: e2 }) {
|
|
8645
8643
|
const s = {
|
|
8646
|
-
headers:
|
|
8644
|
+
headers: R,
|
|
8647
8645
|
responseType: "arraybuffer"
|
|
8648
8646
|
};
|
|
8649
8647
|
return t2.download(`quotes/${e2}`, s);
|
|
@@ -9371,7 +9369,7 @@ function is({ apiHandler: t2 }) {
|
|
|
9371
9369
|
},
|
|
9372
9370
|
downloadPDF({ id: e2 }) {
|
|
9373
9371
|
const s = {
|
|
9374
|
-
headers:
|
|
9372
|
+
headers: R,
|
|
9375
9373
|
responseType: "arraybuffer"
|
|
9376
9374
|
};
|
|
9377
9375
|
return t2.download(`transactions/${e2}`, s);
|
|
@@ -9533,7 +9531,7 @@ class $s {
|
|
|
9533
9531
|
apiHandler: e2
|
|
9534
9532
|
}), this.depositRequests = nt$1({ apiHandler: e2 }), this.depositStrategies = ut$1({ apiHandler: e2 }), this.digitalWallets = ot$1({ apiHandler: e2 }), this.disputes = lt$1({ apiHandler: e2 }), this.emailDeliverySettings = ct$1({ apiHandler: e2 }), this.emailMessages = it$1({ apiHandler: e2 }), this.emailNotifications = gt$1({ apiHandler: e2 }), this.events = at$1({ apiHandler: e2 }), this.externalIdentifiers = mt$1({ apiHandler: e2 }), this.externalServicesSettings = ft$1({
|
|
9535
9533
|
apiHandler: e2
|
|
9536
|
-
}), this.fees = $t$1({ apiHandler: e2 }), this.files = pt$1({ apiHandler: e2 }), this.gatewayAccounts = ht$1({ apiHandler: e2 }), this.integrations = yt$1({ apiHandler: e2 }), this.invoices = At$1({ apiHandler: e2 }), this.journalAccounts =
|
|
9534
|
+
}), this.fees = $t$1({ apiHandler: e2 }), this.files = pt$1({ apiHandler: e2 }), this.gatewayAccounts = ht$1({ apiHandler: e2 }), this.integrations = yt$1({ apiHandler: e2 }), this.invoices = At$1({ apiHandler: e2 }), this.journalAccounts = bt$1({ apiHandler: e2 }), this.journalEntries = Rt$1({ apiHandler: e2 }), this.journalRecords = wt$1({ apiHandler: e2 }), this.kycDocuments = kt$1({ apiHandler: e2 }), this.kycRequests = vt$1({ apiHandler: e2 }), this.kycSettings = qt$1({ apiHandler: e2 }), this.lists = dt$1({ apiHandler: e2 }), this.memberships = Tt$1({ apiHandler: e2 }), this.orderCancellations = It$1({ apiHandler: e2 }), this.orderPauses = St$1({ apiHandler: e2 }), this.orderReactivations = Et$1({ apiHandler: e2 }), this.orders = xt$1({ apiHandler: e2 }), this.organizationExports = Pt$1({ apiHandler: e2 }), this.organizations = Ct$1({ apiHandler: e2 }), this.paymentCardsBankNames = Dt$1({ apiHandler: e2 }), this.paymentInstruments = jt$1({ apiHandler: e2 }), this.paymentMethods = Mt$1({ apiHandler: e2 }), this.paymentTokens = Ot$1({ apiHandler: e2 }), this.payoutRequestAllocations = Ft$1({
|
|
9537
9535
|
apiHandler: e2
|
|
9538
9536
|
}), this.payoutRequestBatches = Bt$1({ apiHandler: e2 }), this.payoutRequests = Kt$1({ apiHandler: e2 }), this.payouts = Nt$1({ apiHandler: e2 }), this.plans = Lt$1({ apiHandler: e2 }), this.previews = zt$1({ apiHandler: e2 }), this.products = Ut$1({ apiHandler: e2 }), this.profile = Vt$1({ apiHandler: e2 }), this.purchase = Jt$1({ apiHandler: e2 }), this.quotes = Wt$1({ apiHandler: e2 }), this.resource = Gt$1({ apiHandler: e2 }), this.riskScoreRules = Yt$1({ apiHandler: e2 }), this.roles = Qt$1({ apiHandler: e2 }), this.search = Xt$1({ apiHandler: e2 }), this.segments = Zt$1({ apiHandler: e2 }), this.sendThroughAttribution = _t$1({ apiHandler: e2 }), this.serviceCredentials = Ht$1({ apiHandler: e2 }), this.shippingRates = es({ apiHandler: e2 }), this.status = ts({ apiHandler: e2 }), this.subscriptionCancellations = ss({
|
|
9539
9537
|
apiHandler: e2
|
|
@@ -10113,7 +10111,7 @@ function As({ apiHandler: t2 }) {
|
|
|
10113
10111
|
}
|
|
10114
10112
|
};
|
|
10115
10113
|
}
|
|
10116
|
-
function
|
|
10114
|
+
function bs({ apiHandler: t2 }) {
|
|
10117
10115
|
return {
|
|
10118
10116
|
/**
|
|
10119
10117
|
* @returns { rebilly.GetSubscriptionSummaryMetricReportResponsePromise } response
|
|
@@ -10123,7 +10121,7 @@ function Rs({ apiHandler: t2 }) {
|
|
|
10123
10121
|
}
|
|
10124
10122
|
};
|
|
10125
10123
|
}
|
|
10126
|
-
function
|
|
10124
|
+
function Rs({ apiHandler: t2 }) {
|
|
10127
10125
|
return {
|
|
10128
10126
|
getActivityFeed({ eventTypes: e2 = null, limit: s = 1e3, offset: r2 = 0 }) {
|
|
10129
10127
|
const n2 = {
|
|
@@ -10163,8 +10161,8 @@ const k$1 = {
|
|
|
10163
10161
|
DataExportsResource: hs,
|
|
10164
10162
|
HistogramsResource: ys,
|
|
10165
10163
|
ReportsResource: As,
|
|
10166
|
-
SubscriptionsResource:
|
|
10167
|
-
TimelinesResource:
|
|
10164
|
+
SubscriptionsResource: bs,
|
|
10165
|
+
TimelinesResource: Rs,
|
|
10168
10166
|
LocationResource: ws
|
|
10169
10167
|
};
|
|
10170
10168
|
class ks {
|
|
@@ -10320,7 +10318,7 @@ function Cs({ apiHandler: t2 }) {
|
|
|
10320
10318
|
},
|
|
10321
10319
|
downloadPDF({ id: e2 }) {
|
|
10322
10320
|
const s = {
|
|
10323
|
-
headers:
|
|
10321
|
+
headers: R,
|
|
10324
10322
|
responseType: "arraybuffer"
|
|
10325
10323
|
};
|
|
10326
10324
|
return t2.download(`invoices/${e2}`, s);
|
|
@@ -10576,7 +10574,7 @@ function zs({ apiHandler: t2 }) {
|
|
|
10576
10574
|
},
|
|
10577
10575
|
downloadPDF({ id: e2 }) {
|
|
10578
10576
|
const s = {
|
|
10579
|
-
headers:
|
|
10577
|
+
headers: R,
|
|
10580
10578
|
responseType: "arraybuffer"
|
|
10581
10579
|
};
|
|
10582
10580
|
return t2.download(`quotes/${e2}`, s);
|
|
@@ -10646,7 +10644,7 @@ function Ws({ apiHandler: t2 }) {
|
|
|
10646
10644
|
},
|
|
10647
10645
|
downloadPDF({ id: e2 }) {
|
|
10648
10646
|
const s = {
|
|
10649
|
-
headers:
|
|
10647
|
+
headers: R,
|
|
10650
10648
|
responseType: "arraybuffer"
|
|
10651
10649
|
};
|
|
10652
10650
|
return t2.download(`transactions/${e2}`, s);
|
|
@@ -11593,15 +11591,15 @@ function ve2(e2, t2, n2) {
|
|
|
11593
11591
|
return l.trys.push([4, , 10, 11]), [4, new Promise(function(s, u) {
|
|
11594
11592
|
var f = false, d = function() {
|
|
11595
11593
|
f = true, s();
|
|
11596
|
-
}, p = function(
|
|
11597
|
-
f = true, u(
|
|
11594
|
+
}, p = function(b) {
|
|
11595
|
+
f = true, u(b);
|
|
11598
11596
|
};
|
|
11599
11597
|
c.onload = d, c.onerror = p;
|
|
11600
11598
|
var g = c.style;
|
|
11601
11599
|
g.setProperty("display", "block", "important"), g.position = "absolute", g.top = "0", g.left = "0", g.visibility = "hidden", t2 && "srcdoc" in c ? c.srcdoc = t2 : c.src = "about:blank", o2.body.appendChild(c);
|
|
11602
11600
|
var y2 = function() {
|
|
11603
|
-
var
|
|
11604
|
-
f || (((w = (
|
|
11601
|
+
var b, w;
|
|
11602
|
+
f || (((w = (b = c.contentWindow) === null || b === void 0 ? void 0 : b.document) === null || w === void 0 ? void 0 : w.readyState) === "complete" ? d() : setTimeout(y2, 10));
|
|
11605
11603
|
};
|
|
11606
11604
|
y2();
|
|
11607
11605
|
})];
|
|
@@ -11705,25 +11703,25 @@ function Je() {
|
|
|
11705
11703
|
var n2 = t2.document, a = n2.body;
|
|
11706
11704
|
a.style.fontSize = He;
|
|
11707
11705
|
var i = n2.createElement("div"), r2 = {}, o2 = {}, c = function(y2) {
|
|
11708
|
-
var
|
|
11709
|
-
return w.position = "absolute", w.top = "0", w.left = "0", w.fontFamily = y2,
|
|
11710
|
-
}, l = function(y2,
|
|
11711
|
-
return c("'".concat(y2, "',").concat(
|
|
11706
|
+
var b = n2.createElement("span"), w = b.style;
|
|
11707
|
+
return w.position = "absolute", w.top = "0", w.left = "0", w.fontFamily = y2, b.textContent = Ee, i.appendChild(b), b;
|
|
11708
|
+
}, l = function(y2, b) {
|
|
11709
|
+
return c("'".concat(y2, "',").concat(b));
|
|
11712
11710
|
}, s = function() {
|
|
11713
11711
|
return M.map(c);
|
|
11714
11712
|
}, u = function() {
|
|
11715
|
-
for (var y2 = {},
|
|
11713
|
+
for (var y2 = {}, b = function(P2) {
|
|
11716
11714
|
y2[P2] = M.map(function(T2) {
|
|
11717
11715
|
return l(P2, T2);
|
|
11718
11716
|
});
|
|
11719
|
-
}, w = 0,
|
|
11720
|
-
var D2 =
|
|
11721
|
-
|
|
11717
|
+
}, w = 0, R2 = te; w < R2.length; w++) {
|
|
11718
|
+
var D2 = R2[w];
|
|
11719
|
+
b(D2);
|
|
11722
11720
|
}
|
|
11723
11721
|
return y2;
|
|
11724
11722
|
}, f = function(y2) {
|
|
11725
|
-
return M.some(function(
|
|
11726
|
-
return y2[w].offsetWidth !== r2[
|
|
11723
|
+
return M.some(function(b, w) {
|
|
11724
|
+
return y2[w].offsetWidth !== r2[b] || y2[w].offsetHeight !== o2[b];
|
|
11727
11725
|
});
|
|
11728
11726
|
}, d = s(), p = u();
|
|
11729
11727
|
a.appendChild(i);
|
|
@@ -12405,11 +12403,11 @@ var m = Math, S = function() {
|
|
|
12405
12403
|
function It() {
|
|
12406
12404
|
var e2 = m.acos || S, t2 = m.acosh || S, n2 = m.asin || S, a = m.asinh || S, i = m.atanh || S, r2 = m.atan || S, o2 = m.sin || S, c = m.sinh || S, l = m.cos || S, s = m.cosh || S, u = m.tan || S, f = m.tanh || S, d = m.exp || S, p = m.expm1 || S, g = m.log1p || S, y2 = function(v2) {
|
|
12407
12405
|
return m.pow(m.PI, v2);
|
|
12408
|
-
},
|
|
12406
|
+
}, b = function(v2) {
|
|
12409
12407
|
return m.log(v2 + m.sqrt(v2 * v2 - 1));
|
|
12410
12408
|
}, w = function(v2) {
|
|
12411
12409
|
return m.log(v2 + m.sqrt(v2 * v2 + 1));
|
|
12412
|
-
},
|
|
12410
|
+
}, R2 = function(v2) {
|
|
12413
12411
|
return m.log((1 + v2) / (1 - v2)) / 2;
|
|
12414
12412
|
}, D2 = function(v2) {
|
|
12415
12413
|
return m.exp(v2) - 1 / m.exp(v2) / 2;
|
|
@@ -12425,12 +12423,12 @@ function It() {
|
|
|
12425
12423
|
return {
|
|
12426
12424
|
acos: e2(0.12312423423423424),
|
|
12427
12425
|
acosh: t2(1e308),
|
|
12428
|
-
acoshPf:
|
|
12426
|
+
acoshPf: b(1e154),
|
|
12429
12427
|
asin: n2(0.12312423423423424),
|
|
12430
12428
|
asinh: a(1),
|
|
12431
12429
|
asinhPf: w(1),
|
|
12432
12430
|
atanh: i(0.5),
|
|
12433
|
-
atanhPf:
|
|
12431
|
+
atanhPf: R2(0.5),
|
|
12434
12432
|
atan: r2(0.5),
|
|
12435
12433
|
sin: o2(-1e300),
|
|
12436
12434
|
sinh: c(1),
|
|
@@ -12477,13 +12475,13 @@ function Yt() {
|
|
|
12477
12475
|
var o2 = r2[i], c = J[o2], l = c[0], s = l === void 0 ? {} : l, u = c[1], f = u === void 0 ? Gt : u, d = e2.createElement("span");
|
|
12478
12476
|
d.textContent = f, d.style.whiteSpace = "nowrap";
|
|
12479
12477
|
for (var p = 0, g = Object.keys(s); p < g.length; p++) {
|
|
12480
|
-
var y2 = g[p],
|
|
12481
|
-
|
|
12478
|
+
var y2 = g[p], b = s[y2];
|
|
12479
|
+
b !== void 0 && (d.style[y2] = b);
|
|
12482
12480
|
}
|
|
12483
12481
|
n2[o2] = d, t2.appendChild(e2.createElement("br")), t2.appendChild(d);
|
|
12484
12482
|
}
|
|
12485
|
-
for (var w = 0,
|
|
12486
|
-
var o2 =
|
|
12483
|
+
for (var w = 0, R2 = Object.keys(J); w < R2.length; w++) {
|
|
12484
|
+
var o2 = R2[w];
|
|
12487
12485
|
a[o2] = n2[o2].getBoundingClientRect().width;
|
|
12488
12486
|
}
|
|
12489
12487
|
return a;
|
|
@@ -14952,8 +14950,8 @@ function parseAlpha$1(alpha) {
|
|
|
14952
14950
|
return clamp$1(a, 0, 1);
|
|
14953
14951
|
}
|
|
14954
14952
|
function getHEX$1(hex) {
|
|
14955
|
-
const [r2, g,
|
|
14956
|
-
return getRGB$1([null, ...[r2, g,
|
|
14953
|
+
const [r2, g, b, a] = hex2Rgb(hex, { format: "array" });
|
|
14954
|
+
return getRGB$1([null, ...[r2, g, b, a]]);
|
|
14957
14955
|
}
|
|
14958
14956
|
function getHSL$1([, h2, s, l, a = 1]) {
|
|
14959
14957
|
let hh = h2;
|
|
@@ -14970,10 +14968,10 @@ function getHSL$1([, h2, s, l, a = 1]) {
|
|
|
14970
14968
|
alpha: parseAlpha$1(a === null ? 1 : a)
|
|
14971
14969
|
};
|
|
14972
14970
|
}
|
|
14973
|
-
function getRGB$1([, r2, g,
|
|
14971
|
+
function getRGB$1([, r2, g, b, a = 1]) {
|
|
14974
14972
|
return {
|
|
14975
14973
|
type: "rgb",
|
|
14976
|
-
values: [r2, g,
|
|
14974
|
+
values: [r2, g, b].map(parseRGB$1),
|
|
14977
14975
|
alpha: parseAlpha$1(a === null ? 1 : a)
|
|
14978
14976
|
};
|
|
14979
14977
|
}
|
|
@@ -15071,14 +15069,14 @@ function requireRgb2hsl() {
|
|
|
15071
15069
|
if (hasRequiredRgb2hsl) return rgb2hsl_1;
|
|
15072
15070
|
hasRequiredRgb2hsl = 1;
|
|
15073
15071
|
function rgb2hsl2(rgb) {
|
|
15074
|
-
var r2 = rgb[0] / 255, g = rgb[1] / 255,
|
|
15072
|
+
var r2 = rgb[0] / 255, g = rgb[1] / 255, b = rgb[2] / 255, min = Math.min(r2, g, b), max = Math.max(r2, g, b), delta = max - min, h2, s, l;
|
|
15075
15073
|
if (max == min)
|
|
15076
15074
|
h2 = 0;
|
|
15077
15075
|
else if (r2 == max)
|
|
15078
|
-
h2 = (g -
|
|
15076
|
+
h2 = (g - b) / delta;
|
|
15079
15077
|
else if (g == max)
|
|
15080
|
-
h2 = 2 + (
|
|
15081
|
-
else if (
|
|
15078
|
+
h2 = 2 + (b - r2) / delta;
|
|
15079
|
+
else if (b == max)
|
|
15082
15080
|
h2 = 4 + (r2 - g) / delta;
|
|
15083
15081
|
h2 = Math.min(h2 * 60, 360);
|
|
15084
15082
|
if (h2 < 0)
|
|
@@ -15118,13 +15116,13 @@ function mix(color1, color2, percentage2 = 50) {
|
|
|
15118
15116
|
const a = c1.alpha - c2.alpha;
|
|
15119
15117
|
const w1 = ((w * a === -1 ? w : (w + a) / (1 + w * a)) + 1) / 2;
|
|
15120
15118
|
const w2 = 1 - w1;
|
|
15121
|
-
const [r2, g,
|
|
15119
|
+
const [r2, g, b] = c1.values.map((c, i) => Math.round(c1.values[i] * w1 + c2.values[i] * w2));
|
|
15122
15120
|
const alpha = parseFloat((c1.alpha * p + c2.alpha * (1 - p)).toFixed(8));
|
|
15123
15121
|
return {
|
|
15124
|
-
hex: rgb2hex([r2, g,
|
|
15125
|
-
hexa: rgb2hex([r2, g,
|
|
15126
|
-
rgba: [r2, g,
|
|
15127
|
-
hsla: [...rgb2hsl([r2, g,
|
|
15122
|
+
hex: rgb2hex([r2, g, b]),
|
|
15123
|
+
hexa: rgb2hex([r2, g, b, alpha]),
|
|
15124
|
+
rgba: [r2, g, b, alpha],
|
|
15125
|
+
hsla: [...rgb2hsl([r2, g, b]).map(Math.round), alpha]
|
|
15128
15126
|
};
|
|
15129
15127
|
}
|
|
15130
15128
|
const pattern = /^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/;
|
|
@@ -15208,8 +15206,8 @@ function parseAlpha(alpha) {
|
|
|
15208
15206
|
return clamp(a, 0, 1);
|
|
15209
15207
|
}
|
|
15210
15208
|
function getHEX(hex) {
|
|
15211
|
-
const [r2, g,
|
|
15212
|
-
return getRGB([null, ...[r2, g,
|
|
15209
|
+
const [r2, g, b, a] = hex2Rgb(hex, { format: "array" });
|
|
15210
|
+
return getRGB([null, ...[r2, g, b, a]]);
|
|
15213
15211
|
}
|
|
15214
15212
|
function getHSL([, h2, s, l, a = 1]) {
|
|
15215
15213
|
let hh = h2;
|
|
@@ -15226,10 +15224,10 @@ function getHSL([, h2, s, l, a = 1]) {
|
|
|
15226
15224
|
alpha: parseAlpha(a === null ? 1 : a)
|
|
15227
15225
|
};
|
|
15228
15226
|
}
|
|
15229
|
-
function getRGB([, r2, g,
|
|
15227
|
+
function getRGB([, r2, g, b, a = 1]) {
|
|
15230
15228
|
return {
|
|
15231
15229
|
type: "rgb",
|
|
15232
|
-
values: [r2, g,
|
|
15230
|
+
values: [r2, g, b].map(parseRGB),
|
|
15233
15231
|
alpha: parseAlpha(a === null ? 1 : a)
|
|
15234
15232
|
};
|
|
15235
15233
|
}
|
|
@@ -15299,10 +15297,10 @@ class Values {
|
|
|
15299
15297
|
return `${this.alpha >= 1 ? "rgb" : "rgba"}(${channels})`;
|
|
15300
15298
|
}
|
|
15301
15299
|
getBrightness() {
|
|
15302
|
-
return Math.round(this.rgb.reduce((a,
|
|
15300
|
+
return Math.round(this.rgb.reduce((a, b) => a + b) / (255 * 3) * 100);
|
|
15303
15301
|
}
|
|
15304
|
-
_setFromRGB([r2, g,
|
|
15305
|
-
[this.rgb, this.alpha] = [[r2, g,
|
|
15302
|
+
_setFromRGB([r2, g, b, a]) {
|
|
15303
|
+
[this.rgb, this.alpha] = [[r2, g, b], a];
|
|
15306
15304
|
return this;
|
|
15307
15305
|
}
|
|
15308
15306
|
_setFromHSL([h2, s, l, a]) {
|