@revolugo/booking-api-client 6.12.0 → 6.12.1-beta.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/README.md +2 -1
- package/dist/index.es.js +647 -647
- package/dist/index.umd.js +2 -2
- package/dist/types/v1/models/index.d.ts +52 -2
- package/package.json +7 -7
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const ut = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu"), ct = new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu"),
|
|
1
|
+
const ut = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu"), ct = new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu"), mt = new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d", "u"), dt = /[^\p{L}\d]+/giu, Ie = "$1\0$2", Ke = "";
|
|
2
2
|
function Qe(t) {
|
|
3
3
|
let e = t.trim();
|
|
4
|
-
e = e.replace(ut,
|
|
4
|
+
e = e.replace(ut, Ie).replace(ct, Ie), e = e.replace(dt, "\0");
|
|
5
5
|
let n = 0, i = e.length;
|
|
6
6
|
for (; e.charAt(n) === "\0"; )
|
|
7
7
|
n++;
|
|
@@ -14,29 +14,29 @@ function Qe(t) {
|
|
|
14
14
|
function ft(t) {
|
|
15
15
|
const e = Qe(t);
|
|
16
16
|
for (let n = 0; n < e.length; n++) {
|
|
17
|
-
const i = e[n],
|
|
18
|
-
if (
|
|
19
|
-
const l =
|
|
17
|
+
const i = e[n], r = mt.exec(i);
|
|
18
|
+
if (r) {
|
|
19
|
+
const l = r.index + (r[1] ?? r[2]).length;
|
|
20
20
|
e.splice(n, 1, i.slice(0, l), i.slice(l));
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
return e;
|
|
24
24
|
}
|
|
25
25
|
function et(t, e) {
|
|
26
|
-
const [n, i,
|
|
27
|
-
return n + i.map(Ae(e?.locale)).join(e?.delimiter ?? " ") +
|
|
26
|
+
const [n, i, r] = Me(t, e);
|
|
27
|
+
return n + i.map(Ae(e?.locale)).join(e?.delimiter ?? " ") + r;
|
|
28
28
|
}
|
|
29
29
|
function ht(t, e) {
|
|
30
|
-
const [n, i,
|
|
31
|
-
return n + i.map((h, S) => S === 0 ? l(h) : c(h, S)).join(e?.delimiter ?? "") +
|
|
30
|
+
const [n, i, r] = Me(t, e), l = Ae(e?.locale), u = Be(e?.locale), c = e?.mergeAmbiguousCharacters ? Ee(l, u) : at(l, u);
|
|
31
|
+
return n + i.map((h, S) => S === 0 ? l(h) : c(h, S)).join(e?.delimiter ?? "") + r;
|
|
32
32
|
}
|
|
33
33
|
function gt(t, e) {
|
|
34
|
-
const [n, i,
|
|
35
|
-
return n + i.map(c).join(e?.delimiter ?? "") +
|
|
34
|
+
const [n, i, r] = Me(t, e), l = Ae(e?.locale), u = Be(e?.locale), c = e?.mergeAmbiguousCharacters ? Ee(l, u) : at(l, u);
|
|
35
|
+
return n + i.map(c).join(e?.delimiter ?? "") + r;
|
|
36
36
|
}
|
|
37
37
|
function pt(t, e) {
|
|
38
|
-
const [n, i,
|
|
39
|
-
return n + i.map(Ee(l, u)).join(e?.delimiter ?? " ") +
|
|
38
|
+
const [n, i, r] = Me(t, e), l = Ae(e?.locale), u = Be(e?.locale);
|
|
39
|
+
return n + i.map(Ee(l, u)).join(e?.delimiter ?? " ") + r;
|
|
40
40
|
}
|
|
41
41
|
function tt(t, e) {
|
|
42
42
|
return et(t, { delimiter: "-", ...e });
|
|
@@ -55,12 +55,12 @@ function Ee(t, e) {
|
|
|
55
55
|
}
|
|
56
56
|
function at(t, e) {
|
|
57
57
|
return (n, i) => {
|
|
58
|
-
const
|
|
59
|
-
return (i > 0 &&
|
|
58
|
+
const r = n[0];
|
|
59
|
+
return (i > 0 && r >= "0" && r <= "9" ? "_" + r : e(r)) + t(n.slice(1));
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
62
|
function Me(t, e = {}) {
|
|
63
|
-
const n = e.split ?? (e.separateNumbers ? ft : Qe), i = e.prefixCharacters ??
|
|
63
|
+
const n = e.split ?? (e.separateNumbers ? ft : Qe), i = e.prefixCharacters ?? Ke, r = e.suffixCharacters ?? Ke;
|
|
64
64
|
let l = 0, u = t.length;
|
|
65
65
|
for (; l < t.length; ) {
|
|
66
66
|
const c = t.charAt(l);
|
|
@@ -70,7 +70,7 @@ function Me(t, e = {}) {
|
|
|
70
70
|
}
|
|
71
71
|
for (; u > l; ) {
|
|
72
72
|
const c = u - 1, h = t.charAt(c);
|
|
73
|
-
if (!
|
|
73
|
+
if (!r.includes(h))
|
|
74
74
|
break;
|
|
75
75
|
u = c;
|
|
76
76
|
}
|
|
@@ -84,14 +84,14 @@ var le = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
84
84
|
function W(t) {
|
|
85
85
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
86
86
|
}
|
|
87
|
-
var ce = { exports: {} }, Dt = ce.exports,
|
|
87
|
+
var ce = { exports: {} }, Dt = ce.exports, Ge;
|
|
88
88
|
function bt() {
|
|
89
|
-
return
|
|
90
|
-
(function(n, i,
|
|
91
|
-
t.exports =
|
|
89
|
+
return Ge || (Ge = 1, (function(t, e) {
|
|
90
|
+
(function(n, i, r) {
|
|
91
|
+
t.exports = r(), t.exports.default = r();
|
|
92
92
|
})("slugify", Dt, function() {
|
|
93
93
|
var n = JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`), i = JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');
|
|
94
|
-
function
|
|
94
|
+
function r(l, u) {
|
|
95
95
|
if (typeof l != "string")
|
|
96
96
|
throw new Error("slugify: string argument expected");
|
|
97
97
|
u = typeof u == "string" ? { replacement: u } : u || {};
|
|
@@ -101,9 +101,9 @@ function bt() {
|
|
|
101
101
|
}, "");
|
|
102
102
|
return u.strict && (P = P.replace(/[^A-Za-z0-9\s]/g, "")), S && (P = P.trim()), P = P.replace(/\s+/g, h), u.lower && (P = P.toLowerCase()), P;
|
|
103
103
|
}
|
|
104
|
-
return
|
|
104
|
+
return r.extend = function(l) {
|
|
105
105
|
Object.assign(n, l);
|
|
106
|
-
},
|
|
106
|
+
}, r;
|
|
107
107
|
});
|
|
108
108
|
})(ce)), ce.exports;
|
|
109
109
|
}
|
|
@@ -133,9 +133,9 @@ function At(t) {
|
|
|
133
133
|
return t === Object(t) && !Array.isArray(t) && typeof t != "function";
|
|
134
134
|
}
|
|
135
135
|
function b(t, e, n = { deep: !0 }) {
|
|
136
|
-
return At(t) ? Object.keys(t).reduce((i,
|
|
137
|
-
const l = n?.exclude && wt(n.exclude,
|
|
138
|
-
return i[l] = n.deep ? b(t[
|
|
136
|
+
return At(t) ? Object.keys(t).reduce((i, r) => {
|
|
137
|
+
const l = n?.exclude && wt(n.exclude, r) ? r : Pt[e](r);
|
|
138
|
+
return i[l] = n.deep ? b(t[r], e, n) : t[r], i;
|
|
139
139
|
}, {}) : Array.isArray(t) ? t.map((i) => b(i, e, n)) : t;
|
|
140
140
|
}
|
|
141
141
|
var a = /* @__PURE__ */ ((t) => (t.AED = "AED", t.AFN = "AFN", t.ALL = "ALL", t.AMD = "AMD", t.ANG = "ANG", t.AOA = "AOA", t.ARS = "ARS", t.AUD = "AUD", t.AWG = "AWG", t.AZN = "AZN", t.BAM = "BAM", t.BBD = "BBD", t.BDT = "BDT", t.BGN = "BGN", t.BHD = "BHD", t.BIF = "BIF", t.BMD = "BMD", t.BND = "BND", t.BOB = "BOB", t.BRL = "BRL", t.BSD = "BSD", t.BTN = "BTN", t.BWP = "BWP", t.BYN = "BYN", t.BYR = "BYR", t.BZD = "BZD", t.CAD = "CAD", t.CDF = "CDF", t.CHF = "CHF", t.CLF = "CLF", t.CLP = "CLP", t.CNY = "CNY", t.COP = "COP", t.CRC = "CRC", t.CUC = "CUC", t.CUP = "CUP", t.CVE = "CVE", t.CZK = "CZK", t.DJF = "DJF", t.DKK = "DKK", t.DOP = "DOP", t.DZD = "DZD", t.EEK = "EEK", t.EGP = "EGP", t.ERN = "ERN", t.ETB = "ETB", t.EUR = "EUR", t.FJD = "FJD", t.FKP = "FKP", t.GBP = "GBP", t.GEL = "GEL", t.GHS = "GHS", t.GIP = "GIP", t.GMD = "GMD", t.GNF = "GNF", t.GTQ = "GTQ", t.GYD = "GYD", t.HKD = "HKD", t.HNL = "HNL", t.HRK = "HRK", t.HTG = "HTG", t.HUF = "HUF", t.IDR = "IDR", t.ILS = "ILS", t.INR = "INR", t.IQD = "IQD", t.IRR = "IRR", t.ISK = "ISK", t.JMD = "JMD", t.JOD = "JOD", t.JPY = "JPY", t.KES = "KES", t.KGS = "KGS", t.KHR = "KHR", t.KMF = "KMF", t.KPW = "KPW", t.KRW = "KRW", t.KWD = "KWD", t.KYD = "KYD", t.KZT = "KZT", t.LAK = "LAK", t.LBP = "LBP", t.LKR = "LKR", t.LRD = "LRD", t.LSL = "LSL", t.LTL = "LTL", t.LVL = "LVL", t.LYD = "LYD", t.MAD = "MAD", t.MDL = "MDL", t.MGA = "MGA", t.MKD = "MKD", t.MMK = "MMK", t.MNT = "MNT", t.MOP = "MOP", t.MRO = "MRO", t.MRU = "MRU", t.MUR = "MUR", t.MVR = "MVR", t.MWK = "MWK", t.MXN = "MXN", t.MYR = "MYR", t.MZN = "MZN", t.NAD = "NAD", t.NGN = "NGN", t.NIO = "NIO", t.NOK = "NOK", t.NPR = "NPR", t.NZD = "NZD", t.OMR = "OMR", t.PAB = "PAB", t.PEN = "PEN", t.PGK = "PGK", t.PHP = "PHP", t.PKR = "PKR", t.PLN = "PLN", t.PYG = "PYG", t.QAR = "QAR", t.RON = "RON", t.RSD = "RSD", t.RUB = "RUB", t.RWF = "RWF", t.SAR = "SAR", t.SBD = "SBD", t.SCR = "SCR", t.SDG = "SDG", t.SEK = "SEK", t.SGD = "SGD", t.SHP = "SHP", t.SLL = "SLL", t.SOS = "SOS", t.SRD = "SRD", t.SSP = "SSP", t.STD = "STD", t.SYP = "SYP", t.SZL = "SZL", t.THB = "THB", t.TJS = "TJS", t.TMT = "TMT", t.TND = "TND", t.TOP = "TOP", t.TRY = "TRY", t.TTD = "TTD", t.TWD = "TWD", t.TZS = "TZS", t.UAH = "UAH", t.UGX = "UGX", t.USD = "USD", t.UYU = "UYU", t.UZS = "UZS", t.VEF = "VEF", t.VES = "VES", t.VND = "VND", t.VUV = "VUV", t.WST = "WST", t.XAF = "XAF", t.XCD = "XCD", t.XOF = "XOF", t.XPF = "XPF", t.YER = "YER", t.ZAR = "ZAR", t.ZMK = "ZMK", t.ZMW = "ZMW", t.ZWL = "ZWL", t))(a || {});
|
|
@@ -1948,189 +1948,189 @@ const Bt = {
|
|
|
1948
1948
|
"CI-CD": "https://booking-api.staging.revolugo.com",
|
|
1949
1949
|
LOCAL: "http://127.0.0.1:3001"
|
|
1950
1950
|
};
|
|
1951
|
-
var Oe = /* @__PURE__ */ ((t) => (t.HOTEL_ROOM_OFFERS = "HOTEL_ROOM_OFFERS", t.HOTEL_SEARCH_POLLING = "HOTEL_SEARCH_POLLING", t))(Oe || {}),
|
|
1951
|
+
var Oe = /* @__PURE__ */ ((t) => (t.HOTEL_ROOM_OFFERS = "HOTEL_ROOM_OFFERS", t.HOTEL_SEARCH_POLLING = "HOTEL_SEARCH_POLLING", t))(Oe || {}), me = { exports: {} }, Et = me.exports, Ue;
|
|
1952
1952
|
function it() {
|
|
1953
|
-
return
|
|
1953
|
+
return Ue || (Ue = 1, (function(t, e) {
|
|
1954
1954
|
(function(n, i) {
|
|
1955
1955
|
t.exports = i();
|
|
1956
1956
|
})(Et, (function() {
|
|
1957
|
-
var n = 1e3, i = 6e4,
|
|
1958
|
-
var
|
|
1959
|
-
return "[" + R + (
|
|
1960
|
-
} }, E = function(R,
|
|
1961
|
-
var
|
|
1962
|
-
return !
|
|
1963
|
-
},
|
|
1964
|
-
var
|
|
1965
|
-
return (
|
|
1966
|
-
}, m: function R(
|
|
1967
|
-
if (
|
|
1968
|
-
var
|
|
1969
|
-
return +(-(
|
|
1957
|
+
var n = 1e3, i = 6e4, r = 36e5, l = "millisecond", u = "second", c = "minute", h = "hour", S = "day", P = "week", y = "month", p = "quarter", w = "year", A = "date", f = "Invalid Date", M = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, k = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, O = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(R) {
|
|
1958
|
+
var o = ["th", "st", "nd", "rd"], s = R % 100;
|
|
1959
|
+
return "[" + R + (o[(s - 20) % 10] || o[s] || o[0]) + "]";
|
|
1960
|
+
} }, E = function(R, o, s) {
|
|
1961
|
+
var d = String(R);
|
|
1962
|
+
return !d || d.length >= o ? R : "" + Array(o + 1 - d.length).join(s) + R;
|
|
1963
|
+
}, U = { s: E, z: function(R) {
|
|
1964
|
+
var o = -R.utcOffset(), s = Math.abs(o), d = Math.floor(s / 60), m = s % 60;
|
|
1965
|
+
return (o <= 0 ? "+" : "-") + E(d, 2, "0") + ":" + E(m, 2, "0");
|
|
1966
|
+
}, m: function R(o, s) {
|
|
1967
|
+
if (o.date() < s.date()) return -R(s, o);
|
|
1968
|
+
var d = 12 * (s.year() - o.year()) + (s.month() - o.month()), m = o.clone().add(d, y), D = s - m < 0, g = o.clone().add(d + (D ? -1 : 1), y);
|
|
1969
|
+
return +(-(d + (s - m) / (D ? m - g : g - m)) || 0);
|
|
1970
1970
|
}, a: function(R) {
|
|
1971
1971
|
return R < 0 ? Math.ceil(R) || 0 : Math.floor(R);
|
|
1972
1972
|
}, p: function(R) {
|
|
1973
1973
|
return { M: y, y: w, w: P, d: S, D: A, h, m: c, s: u, ms: l, Q: p }[R] || String(R || "").toLowerCase().replace(/s$/, "");
|
|
1974
1974
|
}, u: function(R) {
|
|
1975
1975
|
return R === void 0;
|
|
1976
|
-
} }, N = "en",
|
|
1977
|
-
|
|
1978
|
-
var
|
|
1979
|
-
return R instanceof V || !(!R || !R[
|
|
1980
|
-
},
|
|
1981
|
-
var
|
|
1982
|
-
if (!
|
|
1983
|
-
if (typeof
|
|
1984
|
-
var D =
|
|
1985
|
-
|
|
1986
|
-
var g =
|
|
1987
|
-
if (!
|
|
1976
|
+
} }, N = "en", I = {};
|
|
1977
|
+
I[N] = O;
|
|
1978
|
+
var x = "$isDayjsObject", C = function(R) {
|
|
1979
|
+
return R instanceof V || !(!R || !R[x]);
|
|
1980
|
+
}, F = function R(o, s, d) {
|
|
1981
|
+
var m;
|
|
1982
|
+
if (!o) return N;
|
|
1983
|
+
if (typeof o == "string") {
|
|
1984
|
+
var D = o.toLowerCase();
|
|
1985
|
+
I[D] && (m = D), s && (I[D] = s, m = D);
|
|
1986
|
+
var g = o.split("-");
|
|
1987
|
+
if (!m && g.length > 1) return R(g[0]);
|
|
1988
1988
|
} else {
|
|
1989
|
-
var L =
|
|
1990
|
-
|
|
1989
|
+
var L = o.name;
|
|
1990
|
+
I[L] = o, m = L;
|
|
1991
1991
|
}
|
|
1992
|
-
return !
|
|
1993
|
-
},
|
|
1994
|
-
if (
|
|
1995
|
-
var s = typeof
|
|
1992
|
+
return !d && m && (N = m), m || !d && N;
|
|
1993
|
+
}, K = function(R, o) {
|
|
1994
|
+
if (C(R)) return R.clone();
|
|
1995
|
+
var s = typeof o == "object" ? o : {};
|
|
1996
1996
|
return s.date = R, s.args = arguments, new V(s);
|
|
1997
|
-
}, T =
|
|
1998
|
-
T.l =
|
|
1999
|
-
return
|
|
1997
|
+
}, T = U;
|
|
1998
|
+
T.l = F, T.i = C, T.w = function(R, o) {
|
|
1999
|
+
return K(R, { locale: o.$L, utc: o.$u, x: o.$x, $offset: o.$offset });
|
|
2000
2000
|
};
|
|
2001
2001
|
var V = (function() {
|
|
2002
2002
|
function R(s) {
|
|
2003
|
-
this.$L =
|
|
2003
|
+
this.$L = F(s.locale, null, !0), this.parse(s), this.$x = this.$x || s.x || {}, this[x] = !0;
|
|
2004
2004
|
}
|
|
2005
|
-
var
|
|
2006
|
-
return
|
|
2007
|
-
this.$d = (function(
|
|
2008
|
-
var
|
|
2009
|
-
if (
|
|
2010
|
-
if (T.u(
|
|
2011
|
-
if (
|
|
2012
|
-
if (typeof
|
|
2013
|
-
var g =
|
|
2005
|
+
var o = R.prototype;
|
|
2006
|
+
return o.parse = function(s) {
|
|
2007
|
+
this.$d = (function(d) {
|
|
2008
|
+
var m = d.date, D = d.utc;
|
|
2009
|
+
if (m === null) return /* @__PURE__ */ new Date(NaN);
|
|
2010
|
+
if (T.u(m)) return /* @__PURE__ */ new Date();
|
|
2011
|
+
if (m instanceof Date) return new Date(m);
|
|
2012
|
+
if (typeof m == "string" && !/Z$/i.test(m)) {
|
|
2013
|
+
var g = m.match(M);
|
|
2014
2014
|
if (g) {
|
|
2015
|
-
var L = g[2] - 1 || 0,
|
|
2016
|
-
return D ? new Date(Date.UTC(g[1], L, g[3] || 1, g[4] || 0, g[5] || 0, g[6] || 0,
|
|
2015
|
+
var L = g[2] - 1 || 0, G = (g[7] || "0").substring(0, 3);
|
|
2016
|
+
return D ? new Date(Date.UTC(g[1], L, g[3] || 1, g[4] || 0, g[5] || 0, g[6] || 0, G)) : new Date(g[1], L, g[3] || 1, g[4] || 0, g[5] || 0, g[6] || 0, G);
|
|
2017
2017
|
}
|
|
2018
2018
|
}
|
|
2019
|
-
return new Date(
|
|
2019
|
+
return new Date(m);
|
|
2020
2020
|
})(s), this.init();
|
|
2021
|
-
},
|
|
2021
|
+
}, o.init = function() {
|
|
2022
2022
|
var s = this.$d;
|
|
2023
2023
|
this.$y = s.getFullYear(), this.$M = s.getMonth(), this.$D = s.getDate(), this.$W = s.getDay(), this.$H = s.getHours(), this.$m = s.getMinutes(), this.$s = s.getSeconds(), this.$ms = s.getMilliseconds();
|
|
2024
|
-
},
|
|
2024
|
+
}, o.$utils = function() {
|
|
2025
2025
|
return T;
|
|
2026
|
-
},
|
|
2026
|
+
}, o.isValid = function() {
|
|
2027
2027
|
return this.$d.toString() !== f;
|
|
2028
|
-
},
|
|
2029
|
-
var
|
|
2030
|
-
return this.startOf(
|
|
2031
|
-
},
|
|
2032
|
-
return
|
|
2033
|
-
},
|
|
2034
|
-
return this.endOf(
|
|
2035
|
-
},
|
|
2036
|
-
return T.u(s) ? this[
|
|
2037
|
-
},
|
|
2028
|
+
}, o.isSame = function(s, d) {
|
|
2029
|
+
var m = K(s);
|
|
2030
|
+
return this.startOf(d) <= m && m <= this.endOf(d);
|
|
2031
|
+
}, o.isAfter = function(s, d) {
|
|
2032
|
+
return K(s) < this.startOf(d);
|
|
2033
|
+
}, o.isBefore = function(s, d) {
|
|
2034
|
+
return this.endOf(d) < K(s);
|
|
2035
|
+
}, o.$g = function(s, d, m) {
|
|
2036
|
+
return T.u(s) ? this[d] : this.set(m, s);
|
|
2037
|
+
}, o.unix = function() {
|
|
2038
2038
|
return Math.floor(this.valueOf() / 1e3);
|
|
2039
|
-
},
|
|
2039
|
+
}, o.valueOf = function() {
|
|
2040
2040
|
return this.$d.getTime();
|
|
2041
|
-
},
|
|
2042
|
-
var
|
|
2043
|
-
var J = T.w(
|
|
2041
|
+
}, o.startOf = function(s, d) {
|
|
2042
|
+
var m = this, D = !!T.u(d) || d, g = T.p(s), L = function(ee, Z) {
|
|
2043
|
+
var J = T.w(m.$u ? Date.UTC(m.$y, Z, ee) : new Date(m.$y, Z, ee), m);
|
|
2044
2044
|
return D ? J : J.endOf(S);
|
|
2045
|
-
},
|
|
2046
|
-
return T.w(
|
|
2047
|
-
},
|
|
2045
|
+
}, G = function(ee, Z) {
|
|
2046
|
+
return T.w(m.toDate()[ee].apply(m.toDate("s"), (D ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Z)), m);
|
|
2047
|
+
}, $ = this.$W, B = this.$M, H = this.$D, ae = "set" + (this.$u ? "UTC" : "");
|
|
2048
2048
|
switch (g) {
|
|
2049
2049
|
case w:
|
|
2050
2050
|
return D ? L(1, 0) : L(31, 11);
|
|
2051
2051
|
case y:
|
|
2052
2052
|
return D ? L(1, B) : L(0, B + 1);
|
|
2053
2053
|
case P:
|
|
2054
|
-
var Q = this.$locale().weekStart || 0, ne = (
|
|
2055
|
-
return L(D ?
|
|
2054
|
+
var Q = this.$locale().weekStart || 0, ne = ($ < Q ? $ + 7 : $) - Q;
|
|
2055
|
+
return L(D ? H - ne : H + (6 - ne), B);
|
|
2056
2056
|
case S:
|
|
2057
2057
|
case A:
|
|
2058
|
-
return
|
|
2058
|
+
return G(ae + "Hours", 0);
|
|
2059
2059
|
case h:
|
|
2060
|
-
return
|
|
2060
|
+
return G(ae + "Minutes", 1);
|
|
2061
2061
|
case c:
|
|
2062
|
-
return
|
|
2062
|
+
return G(ae + "Seconds", 2);
|
|
2063
2063
|
case u:
|
|
2064
|
-
return
|
|
2064
|
+
return G(ae + "Milliseconds", 3);
|
|
2065
2065
|
default:
|
|
2066
2066
|
return this.clone();
|
|
2067
2067
|
}
|
|
2068
|
-
},
|
|
2068
|
+
}, o.endOf = function(s) {
|
|
2069
2069
|
return this.startOf(s, !1);
|
|
2070
|
-
},
|
|
2071
|
-
var
|
|
2070
|
+
}, o.$set = function(s, d) {
|
|
2071
|
+
var m, D = T.p(s), g = "set" + (this.$u ? "UTC" : ""), L = (m = {}, m[S] = g + "Date", m[A] = g + "Date", m[y] = g + "Month", m[w] = g + "FullYear", m[h] = g + "Hours", m[c] = g + "Minutes", m[u] = g + "Seconds", m[l] = g + "Milliseconds", m)[D], G = D === S ? this.$D + (d - this.$W) : d;
|
|
2072
2072
|
if (D === y || D === w) {
|
|
2073
|
-
var
|
|
2074
|
-
|
|
2075
|
-
} else L && this.$d[L](
|
|
2073
|
+
var $ = this.clone().set(A, 1);
|
|
2074
|
+
$.$d[L](G), $.init(), this.$d = $.set(A, Math.min(this.$D, $.daysInMonth())).$d;
|
|
2075
|
+
} else L && this.$d[L](G);
|
|
2076
2076
|
return this.init(), this;
|
|
2077
|
-
},
|
|
2078
|
-
return this.clone().$set(s,
|
|
2079
|
-
},
|
|
2077
|
+
}, o.set = function(s, d) {
|
|
2078
|
+
return this.clone().$set(s, d);
|
|
2079
|
+
}, o.get = function(s) {
|
|
2080
2080
|
return this[T.p(s)]();
|
|
2081
|
-
},
|
|
2082
|
-
var
|
|
2081
|
+
}, o.add = function(s, d) {
|
|
2082
|
+
var m, D = this;
|
|
2083
2083
|
s = Number(s);
|
|
2084
|
-
var g = T.p(
|
|
2085
|
-
var
|
|
2086
|
-
return T.w(
|
|
2084
|
+
var g = T.p(d), L = function(B) {
|
|
2085
|
+
var H = K(D);
|
|
2086
|
+
return T.w(H.date(H.date() + Math.round(B * s)), D);
|
|
2087
2087
|
};
|
|
2088
2088
|
if (g === y) return this.set(y, this.$M + s);
|
|
2089
2089
|
if (g === w) return this.set(w, this.$y + s);
|
|
2090
2090
|
if (g === S) return L(1);
|
|
2091
2091
|
if (g === P) return L(7);
|
|
2092
|
-
var
|
|
2093
|
-
return T.w(
|
|
2094
|
-
},
|
|
2095
|
-
return this.add(-1 * s,
|
|
2096
|
-
},
|
|
2097
|
-
var
|
|
2098
|
-
if (!this.isValid()) return
|
|
2099
|
-
var D = s || "YYYY-MM-DDTHH:mm:ssZ", g = T.z(this), L = this.$H,
|
|
2100
|
-
return Z && (Z[J] || Z(
|
|
2092
|
+
var G = (m = {}, m[c] = i, m[h] = r, m[u] = n, m)[g] || 1, $ = this.$d.getTime() + s * G;
|
|
2093
|
+
return T.w($, this);
|
|
2094
|
+
}, o.subtract = function(s, d) {
|
|
2095
|
+
return this.add(-1 * s, d);
|
|
2096
|
+
}, o.format = function(s) {
|
|
2097
|
+
var d = this, m = this.$locale();
|
|
2098
|
+
if (!this.isValid()) return m.invalidDate || f;
|
|
2099
|
+
var D = s || "YYYY-MM-DDTHH:mm:ssZ", g = T.z(this), L = this.$H, G = this.$m, $ = this.$M, B = m.weekdays, H = m.months, ae = m.meridiem, Q = function(Z, J, re, se) {
|
|
2100
|
+
return Z && (Z[J] || Z(d, D)) || re[J].slice(0, se);
|
|
2101
2101
|
}, ne = function(Z) {
|
|
2102
2102
|
return T.s(L % 12 || 12, Z, "0");
|
|
2103
|
-
}, ee = ae || function(Z, J,
|
|
2103
|
+
}, ee = ae || function(Z, J, re) {
|
|
2104
2104
|
var se = Z < 12 ? "AM" : "PM";
|
|
2105
|
-
return
|
|
2105
|
+
return re ? se.toLowerCase() : se;
|
|
2106
2106
|
};
|
|
2107
|
-
return D.replace(
|
|
2108
|
-
return J || (function(
|
|
2109
|
-
switch (
|
|
2107
|
+
return D.replace(k, (function(Z, J) {
|
|
2108
|
+
return J || (function(re) {
|
|
2109
|
+
switch (re) {
|
|
2110
2110
|
case "YY":
|
|
2111
|
-
return String(
|
|
2111
|
+
return String(d.$y).slice(-2);
|
|
2112
2112
|
case "YYYY":
|
|
2113
|
-
return T.s(
|
|
2113
|
+
return T.s(d.$y, 4, "0");
|
|
2114
2114
|
case "M":
|
|
2115
|
-
return
|
|
2115
|
+
return $ + 1;
|
|
2116
2116
|
case "MM":
|
|
2117
|
-
return T.s(
|
|
2117
|
+
return T.s($ + 1, 2, "0");
|
|
2118
2118
|
case "MMM":
|
|
2119
|
-
return Q(
|
|
2119
|
+
return Q(m.monthsShort, $, H, 3);
|
|
2120
2120
|
case "MMMM":
|
|
2121
|
-
return Q(
|
|
2121
|
+
return Q(H, $);
|
|
2122
2122
|
case "D":
|
|
2123
|
-
return
|
|
2123
|
+
return d.$D;
|
|
2124
2124
|
case "DD":
|
|
2125
|
-
return T.s(
|
|
2125
|
+
return T.s(d.$D, 2, "0");
|
|
2126
2126
|
case "d":
|
|
2127
|
-
return String(
|
|
2127
|
+
return String(d.$W);
|
|
2128
2128
|
case "dd":
|
|
2129
|
-
return Q(
|
|
2129
|
+
return Q(m.weekdaysMin, d.$W, B, 2);
|
|
2130
2130
|
case "ddd":
|
|
2131
|
-
return Q(
|
|
2131
|
+
return Q(m.weekdaysShort, d.$W, B, 3);
|
|
2132
2132
|
case "dddd":
|
|
2133
|
-
return B[
|
|
2133
|
+
return B[d.$W];
|
|
2134
2134
|
case "H":
|
|
2135
2135
|
return String(L);
|
|
2136
2136
|
case "HH":
|
|
@@ -2140,49 +2140,49 @@ function it() {
|
|
|
2140
2140
|
case "hh":
|
|
2141
2141
|
return ne(2);
|
|
2142
2142
|
case "a":
|
|
2143
|
-
return ee(L,
|
|
2143
|
+
return ee(L, G, !0);
|
|
2144
2144
|
case "A":
|
|
2145
|
-
return ee(L,
|
|
2145
|
+
return ee(L, G, !1);
|
|
2146
2146
|
case "m":
|
|
2147
|
-
return String(
|
|
2147
|
+
return String(G);
|
|
2148
2148
|
case "mm":
|
|
2149
|
-
return T.s(
|
|
2149
|
+
return T.s(G, 2, "0");
|
|
2150
2150
|
case "s":
|
|
2151
|
-
return String(
|
|
2151
|
+
return String(d.$s);
|
|
2152
2152
|
case "ss":
|
|
2153
|
-
return T.s(
|
|
2153
|
+
return T.s(d.$s, 2, "0");
|
|
2154
2154
|
case "SSS":
|
|
2155
|
-
return T.s(
|
|
2155
|
+
return T.s(d.$ms, 3, "0");
|
|
2156
2156
|
case "Z":
|
|
2157
2157
|
return g;
|
|
2158
2158
|
}
|
|
2159
2159
|
return null;
|
|
2160
2160
|
})(Z) || g.replace(":", "");
|
|
2161
2161
|
}));
|
|
2162
|
-
},
|
|
2162
|
+
}, o.utcOffset = function() {
|
|
2163
2163
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
2164
|
-
},
|
|
2165
|
-
var D, g = this, L = T.p(
|
|
2166
|
-
return T.m(g,
|
|
2164
|
+
}, o.diff = function(s, d, m) {
|
|
2165
|
+
var D, g = this, L = T.p(d), G = K(s), $ = (G.utcOffset() - this.utcOffset()) * i, B = this - G, H = function() {
|
|
2166
|
+
return T.m(g, G);
|
|
2167
2167
|
};
|
|
2168
2168
|
switch (L) {
|
|
2169
2169
|
case w:
|
|
2170
|
-
D =
|
|
2170
|
+
D = H() / 12;
|
|
2171
2171
|
break;
|
|
2172
2172
|
case y:
|
|
2173
|
-
D =
|
|
2173
|
+
D = H();
|
|
2174
2174
|
break;
|
|
2175
2175
|
case p:
|
|
2176
|
-
D =
|
|
2176
|
+
D = H() / 3;
|
|
2177
2177
|
break;
|
|
2178
2178
|
case P:
|
|
2179
|
-
D = (B -
|
|
2179
|
+
D = (B - $) / 6048e5;
|
|
2180
2180
|
break;
|
|
2181
2181
|
case S:
|
|
2182
|
-
D = (B -
|
|
2182
|
+
D = (B - $) / 864e5;
|
|
2183
2183
|
break;
|
|
2184
2184
|
case h:
|
|
2185
|
-
D = B /
|
|
2185
|
+
D = B / r;
|
|
2186
2186
|
break;
|
|
2187
2187
|
case c:
|
|
2188
2188
|
D = B / i;
|
|
@@ -2193,50 +2193,50 @@ function it() {
|
|
|
2193
2193
|
default:
|
|
2194
2194
|
D = B;
|
|
2195
2195
|
}
|
|
2196
|
-
return
|
|
2197
|
-
},
|
|
2196
|
+
return m ? D : T.a(D);
|
|
2197
|
+
}, o.daysInMonth = function() {
|
|
2198
2198
|
return this.endOf(y).$D;
|
|
2199
|
-
},
|
|
2200
|
-
return
|
|
2201
|
-
},
|
|
2199
|
+
}, o.$locale = function() {
|
|
2200
|
+
return I[this.$L];
|
|
2201
|
+
}, o.locale = function(s, d) {
|
|
2202
2202
|
if (!s) return this.$L;
|
|
2203
|
-
var
|
|
2204
|
-
return D && (
|
|
2205
|
-
},
|
|
2203
|
+
var m = this.clone(), D = F(s, d, !0);
|
|
2204
|
+
return D && (m.$L = D), m;
|
|
2205
|
+
}, o.clone = function() {
|
|
2206
2206
|
return T.w(this.$d, this);
|
|
2207
|
-
},
|
|
2207
|
+
}, o.toDate = function() {
|
|
2208
2208
|
return new Date(this.valueOf());
|
|
2209
|
-
},
|
|
2209
|
+
}, o.toJSON = function() {
|
|
2210
2210
|
return this.isValid() ? this.toISOString() : null;
|
|
2211
|
-
},
|
|
2211
|
+
}, o.toISOString = function() {
|
|
2212
2212
|
return this.$d.toISOString();
|
|
2213
|
-
},
|
|
2213
|
+
}, o.toString = function() {
|
|
2214
2214
|
return this.$d.toUTCString();
|
|
2215
2215
|
}, R;
|
|
2216
|
-
})(),
|
|
2217
|
-
return
|
|
2218
|
-
|
|
2219
|
-
return this.$g(
|
|
2216
|
+
})(), oe = V.prototype;
|
|
2217
|
+
return K.prototype = oe, [["$ms", l], ["$s", u], ["$m", c], ["$H", h], ["$W", S], ["$M", y], ["$y", w], ["$D", A]].forEach((function(R) {
|
|
2218
|
+
oe[R[1]] = function(o) {
|
|
2219
|
+
return this.$g(o, R[0], R[1]);
|
|
2220
2220
|
};
|
|
2221
|
-
})),
|
|
2222
|
-
return R.$i || (R(
|
|
2223
|
-
},
|
|
2224
|
-
return
|
|
2225
|
-
},
|
|
2221
|
+
})), K.extend = function(R, o) {
|
|
2222
|
+
return R.$i || (R(o, V, K), R.$i = !0), K;
|
|
2223
|
+
}, K.locale = F, K.isDayjs = C, K.unix = function(R) {
|
|
2224
|
+
return K(1e3 * R);
|
|
2225
|
+
}, K.en = I[N], K.Ls = I, K.p = {}, K;
|
|
2226
2226
|
}));
|
|
2227
|
-
})(
|
|
2227
|
+
})(me)), me.exports;
|
|
2228
2228
|
}
|
|
2229
2229
|
var Lt = it();
|
|
2230
2230
|
const q = /* @__PURE__ */ W(Lt);
|
|
2231
|
-
var
|
|
2232
|
-
function
|
|
2233
|
-
return
|
|
2231
|
+
var de = { exports: {} }, Ot = de.exports, _e;
|
|
2232
|
+
function kt() {
|
|
2233
|
+
return _e || (_e = 1, (function(t, e) {
|
|
2234
2234
|
(function(n, i) {
|
|
2235
2235
|
t.exports = i();
|
|
2236
2236
|
})(Ot, (function() {
|
|
2237
2237
|
return function(n, i) {
|
|
2238
|
-
var
|
|
2239
|
-
|
|
2238
|
+
var r = i.prototype, l = r.format;
|
|
2239
|
+
r.format = function(u) {
|
|
2240
2240
|
var c = this, h = this.$locale();
|
|
2241
2241
|
if (!this.isValid()) return l.bind(this)(u);
|
|
2242
2242
|
var S = this.$utils(), P = (u || "YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, (function(y) {
|
|
@@ -2276,52 +2276,52 @@ function Ct() {
|
|
|
2276
2276
|
};
|
|
2277
2277
|
};
|
|
2278
2278
|
}));
|
|
2279
|
-
})(
|
|
2279
|
+
})(de)), de.exports;
|
|
2280
2280
|
}
|
|
2281
|
-
var
|
|
2282
|
-
const
|
|
2283
|
-
var fe = { exports: {} },
|
|
2284
|
-
function
|
|
2285
|
-
return
|
|
2281
|
+
var It = kt();
|
|
2282
|
+
const Kt = /* @__PURE__ */ W(It);
|
|
2283
|
+
var fe = { exports: {} }, Gt = fe.exports, ze;
|
|
2284
|
+
function Ut() {
|
|
2285
|
+
return ze || (ze = 1, (function(t, e) {
|
|
2286
2286
|
(function(n, i) {
|
|
2287
2287
|
t.exports = i();
|
|
2288
|
-
})(
|
|
2289
|
-
return function(n, i,
|
|
2288
|
+
})(Gt, (function() {
|
|
2289
|
+
return function(n, i, r) {
|
|
2290
2290
|
i.prototype.isBetween = function(l, u, c, h) {
|
|
2291
|
-
var S =
|
|
2291
|
+
var S = r(l), P = r(u), y = (h = h || "()")[0] === "(", p = h[1] === ")";
|
|
2292
2292
|
return (y ? this.isAfter(S, c) : !this.isBefore(S, c)) && (p ? this.isBefore(P, c) : !this.isAfter(P, c)) || (y ? this.isBefore(S, c) : !this.isAfter(S, c)) && (p ? this.isAfter(P, c) : !this.isBefore(P, c));
|
|
2293
2293
|
};
|
|
2294
2294
|
};
|
|
2295
2295
|
}));
|
|
2296
2296
|
})(fe)), fe.exports;
|
|
2297
2297
|
}
|
|
2298
|
-
var
|
|
2299
|
-
const
|
|
2300
|
-
var he = { exports: {} },
|
|
2301
|
-
function
|
|
2302
|
-
return
|
|
2298
|
+
var _t = Ut();
|
|
2299
|
+
const zt = /* @__PURE__ */ W(_t);
|
|
2300
|
+
var he = { exports: {} }, Ft = he.exports, Fe;
|
|
2301
|
+
function $t() {
|
|
2302
|
+
return Fe || (Fe = 1, (function(t, e) {
|
|
2303
2303
|
(function(n, i) {
|
|
2304
2304
|
t.exports = i();
|
|
2305
|
-
})(
|
|
2305
|
+
})(Ft, (function() {
|
|
2306
2306
|
return function(n, i) {
|
|
2307
|
-
i.prototype.isSameOrAfter = function(
|
|
2308
|
-
return this.isSame(
|
|
2307
|
+
i.prototype.isSameOrAfter = function(r, l) {
|
|
2308
|
+
return this.isSame(r, l) || this.isAfter(r, l);
|
|
2309
2309
|
};
|
|
2310
2310
|
};
|
|
2311
2311
|
}));
|
|
2312
2312
|
})(he)), he.exports;
|
|
2313
2313
|
}
|
|
2314
|
-
var
|
|
2315
|
-
const
|
|
2316
|
-
var ge = { exports: {} },
|
|
2314
|
+
var Ht = $t();
|
|
2315
|
+
const xt = /* @__PURE__ */ W(Ht);
|
|
2316
|
+
var ge = { exports: {} }, Ct = ge.exports, $e;
|
|
2317
2317
|
function Yt() {
|
|
2318
|
-
return
|
|
2318
|
+
return $e || ($e = 1, (function(t, e) {
|
|
2319
2319
|
(function(n, i) {
|
|
2320
2320
|
t.exports = i();
|
|
2321
|
-
})(
|
|
2321
|
+
})(Ct, (function() {
|
|
2322
2322
|
return function(n, i) {
|
|
2323
|
-
i.prototype.isSameOrBefore = function(
|
|
2324
|
-
return this.isSame(
|
|
2323
|
+
i.prototype.isSameOrBefore = function(r, l) {
|
|
2324
|
+
return this.isSame(r, l) || this.isBefore(r, l);
|
|
2325
2325
|
};
|
|
2326
2326
|
};
|
|
2327
2327
|
}));
|
|
@@ -2329,26 +2329,26 @@ function Yt() {
|
|
|
2329
2329
|
}
|
|
2330
2330
|
var Vt = Yt();
|
|
2331
2331
|
const Zt = /* @__PURE__ */ W(Vt);
|
|
2332
|
-
var pe = { exports: {} }, Wt = pe.exports,
|
|
2332
|
+
var pe = { exports: {} }, Wt = pe.exports, He;
|
|
2333
2333
|
function qt() {
|
|
2334
|
-
return
|
|
2334
|
+
return He || (He = 1, (function(t, e) {
|
|
2335
2335
|
(function(n, i) {
|
|
2336
2336
|
t.exports = i();
|
|
2337
2337
|
})(Wt, (function() {
|
|
2338
|
-
return function(n, i,
|
|
2338
|
+
return function(n, i, r) {
|
|
2339
2339
|
var l = i.prototype, u = function(y) {
|
|
2340
2340
|
return y && (y.indexOf ? y : y.s);
|
|
2341
2341
|
}, c = function(y, p, w, A, f) {
|
|
2342
|
-
var M = y.name ? y : y.$locale(),
|
|
2342
|
+
var M = y.name ? y : y.$locale(), k = u(M[p]), O = u(M[w]), E = k || O.map((function(N) {
|
|
2343
2343
|
return N.slice(0, A);
|
|
2344
2344
|
}));
|
|
2345
2345
|
if (!f) return E;
|
|
2346
|
-
var
|
|
2347
|
-
return E.map((function(N,
|
|
2348
|
-
return E[(
|
|
2346
|
+
var U = M.weekStart;
|
|
2347
|
+
return E.map((function(N, I) {
|
|
2348
|
+
return E[(I + (U || 0)) % 7];
|
|
2349
2349
|
}));
|
|
2350
2350
|
}, h = function() {
|
|
2351
|
-
return
|
|
2351
|
+
return r.Ls[r.locale()];
|
|
2352
2352
|
}, S = function(y, p) {
|
|
2353
2353
|
return y.formats[p] || (function(w) {
|
|
2354
2354
|
return w.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(A, f, M) {
|
|
@@ -2375,32 +2375,32 @@ function qt() {
|
|
|
2375
2375
|
};
|
|
2376
2376
|
l.localeData = function() {
|
|
2377
2377
|
return P.bind(this)();
|
|
2378
|
-
},
|
|
2378
|
+
}, r.localeData = function() {
|
|
2379
2379
|
var y = h();
|
|
2380
2380
|
return { firstDayOfWeek: function() {
|
|
2381
2381
|
return y.weekStart || 0;
|
|
2382
2382
|
}, weekdays: function() {
|
|
2383
|
-
return
|
|
2383
|
+
return r.weekdays();
|
|
2384
2384
|
}, weekdaysShort: function() {
|
|
2385
|
-
return
|
|
2385
|
+
return r.weekdaysShort();
|
|
2386
2386
|
}, weekdaysMin: function() {
|
|
2387
|
-
return
|
|
2387
|
+
return r.weekdaysMin();
|
|
2388
2388
|
}, months: function() {
|
|
2389
|
-
return
|
|
2389
|
+
return r.months();
|
|
2390
2390
|
}, monthsShort: function() {
|
|
2391
|
-
return
|
|
2391
|
+
return r.monthsShort();
|
|
2392
2392
|
}, longDateFormat: function(p) {
|
|
2393
2393
|
return S(y, p);
|
|
2394
2394
|
}, meridiem: y.meridiem, ordinal: y.ordinal };
|
|
2395
|
-
},
|
|
2395
|
+
}, r.months = function() {
|
|
2396
2396
|
return c(h(), "months");
|
|
2397
|
-
},
|
|
2397
|
+
}, r.monthsShort = function() {
|
|
2398
2398
|
return c(h(), "monthsShort", "months", 3);
|
|
2399
|
-
},
|
|
2399
|
+
}, r.weekdays = function(y) {
|
|
2400
2400
|
return c(h(), "weekdays", null, null, y);
|
|
2401
|
-
},
|
|
2401
|
+
}, r.weekdaysShort = function(y) {
|
|
2402
2402
|
return c(h(), "weekdaysShort", "weekdays", 3, y);
|
|
2403
|
-
},
|
|
2403
|
+
}, r.weekdaysMin = function(y) {
|
|
2404
2404
|
return c(h(), "weekdaysMin", "weekdays", 2, y);
|
|
2405
2405
|
};
|
|
2406
2406
|
};
|
|
@@ -2409,21 +2409,21 @@ function qt() {
|
|
|
2409
2409
|
}
|
|
2410
2410
|
var jt = qt();
|
|
2411
2411
|
const Jt = /* @__PURE__ */ W(jt);
|
|
2412
|
-
var ye = { exports: {} }, Xt = ye.exports,
|
|
2412
|
+
var ye = { exports: {} }, Xt = ye.exports, xe;
|
|
2413
2413
|
function Qt() {
|
|
2414
|
-
return
|
|
2414
|
+
return xe || (xe = 1, (function(t, e) {
|
|
2415
2415
|
(function(n, i) {
|
|
2416
2416
|
t.exports = i();
|
|
2417
2417
|
})(Xt, (function() {
|
|
2418
2418
|
var n = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" };
|
|
2419
|
-
return function(i,
|
|
2420
|
-
var u =
|
|
2419
|
+
return function(i, r, l) {
|
|
2420
|
+
var u = r.prototype, c = u.format;
|
|
2421
2421
|
l.en.formats = n, u.format = function(h) {
|
|
2422
2422
|
h === void 0 && (h = "YYYY-MM-DDTHH:mm:ssZ");
|
|
2423
2423
|
var S = this.$locale().formats, P = (function(y, p) {
|
|
2424
2424
|
return y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(w, A, f) {
|
|
2425
2425
|
var M = f && f.toUpperCase();
|
|
2426
|
-
return A || p[f] || n[f] || p[M].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(
|
|
2426
|
+
return A || p[f] || n[f] || p[M].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(k, O, E) {
|
|
2427
2427
|
return O || E.slice(1);
|
|
2428
2428
|
}));
|
|
2429
2429
|
}));
|
|
@@ -2436,13 +2436,13 @@ function Qt() {
|
|
|
2436
2436
|
}
|
|
2437
2437
|
var ea = Qt();
|
|
2438
2438
|
const ta = /* @__PURE__ */ W(ea);
|
|
2439
|
-
var De = { exports: {} }, aa = De.exports,
|
|
2439
|
+
var De = { exports: {} }, aa = De.exports, Ce;
|
|
2440
2440
|
function ia() {
|
|
2441
|
-
return
|
|
2441
|
+
return Ce || (Ce = 1, (function(t, e) {
|
|
2442
2442
|
(function(n, i) {
|
|
2443
2443
|
t.exports = i();
|
|
2444
2444
|
})(aa, (function() {
|
|
2445
|
-
return function(n, i,
|
|
2445
|
+
return function(n, i, r) {
|
|
2446
2446
|
var l = function(u, c) {
|
|
2447
2447
|
if (!c || !c.length || c.length === 1 && !c[0] || c.length === 1 && Array.isArray(c[0]) && !c[0].length) return null;
|
|
2448
2448
|
var h;
|
|
@@ -2452,10 +2452,10 @@ function ia() {
|
|
|
2452
2452
|
for (var S = 1; S < c.length; S += 1) c[S].isValid() && !c[S][u](h) || (h = c[S]);
|
|
2453
2453
|
return h;
|
|
2454
2454
|
};
|
|
2455
|
-
|
|
2455
|
+
r.max = function() {
|
|
2456
2456
|
var u = [].slice.call(arguments, 0);
|
|
2457
2457
|
return l("isAfter", u);
|
|
2458
|
-
},
|
|
2458
|
+
}, r.min = function() {
|
|
2459
2459
|
var u = [].slice.call(arguments, 0);
|
|
2460
2460
|
return l("isBefore", u);
|
|
2461
2461
|
};
|
|
@@ -2464,41 +2464,41 @@ function ia() {
|
|
|
2464
2464
|
})(De)), De.exports;
|
|
2465
2465
|
}
|
|
2466
2466
|
var na = ia();
|
|
2467
|
-
const
|
|
2468
|
-
var be = { exports: {} },
|
|
2467
|
+
const ra = /* @__PURE__ */ W(na);
|
|
2468
|
+
var be = { exports: {} }, oa = be.exports, Ye;
|
|
2469
2469
|
function sa() {
|
|
2470
2470
|
return Ye || (Ye = 1, (function(t, e) {
|
|
2471
2471
|
(function(n, i) {
|
|
2472
2472
|
t.exports = i();
|
|
2473
|
-
})(
|
|
2474
|
-
return function(n, i,
|
|
2473
|
+
})(oa, (function() {
|
|
2474
|
+
return function(n, i, r) {
|
|
2475
2475
|
n = n || {};
|
|
2476
2476
|
var l = i.prototype, u = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
|
|
2477
2477
|
function c(S, P, y, p) {
|
|
2478
2478
|
return l.fromToBase(S, P, y, p);
|
|
2479
2479
|
}
|
|
2480
|
-
|
|
2481
|
-
for (var A, f, M,
|
|
2482
|
-
var N = O[
|
|
2483
|
-
N.d && (A = p ?
|
|
2484
|
-
var
|
|
2485
|
-
if (M = A > 0,
|
|
2486
|
-
|
|
2487
|
-
var
|
|
2488
|
-
w && (
|
|
2480
|
+
r.en.relativeTime = u, l.fromToBase = function(S, P, y, p, w) {
|
|
2481
|
+
for (var A, f, M, k = y.$locale().relativeTime || u, O = n.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], E = O.length, U = 0; U < E; U += 1) {
|
|
2482
|
+
var N = O[U];
|
|
2483
|
+
N.d && (A = p ? r(S).diff(y, N.d, !0) : y.diff(S, N.d, !0));
|
|
2484
|
+
var I = (n.rounding || Math.round)(Math.abs(A));
|
|
2485
|
+
if (M = A > 0, I <= N.r || !N.r) {
|
|
2486
|
+
I <= 1 && U > 0 && (N = O[U - 1]);
|
|
2487
|
+
var x = k[N.l];
|
|
2488
|
+
w && (I = w("" + I)), f = typeof x == "string" ? x.replace("%d", I) : x(I, P, N.l, M);
|
|
2489
2489
|
break;
|
|
2490
2490
|
}
|
|
2491
2491
|
}
|
|
2492
2492
|
if (P) return f;
|
|
2493
|
-
var
|
|
2494
|
-
return typeof
|
|
2493
|
+
var C = M ? k.future : k.past;
|
|
2494
|
+
return typeof C == "function" ? C(f) : C.replace("%s", f);
|
|
2495
2495
|
}, l.to = function(S, P) {
|
|
2496
2496
|
return c(S, P, this, !0);
|
|
2497
2497
|
}, l.from = function(S, P) {
|
|
2498
2498
|
return c(S, P, this);
|
|
2499
2499
|
};
|
|
2500
2500
|
var h = function(S) {
|
|
2501
|
-
return S.$u ?
|
|
2501
|
+
return S.$u ? r.utc() : r();
|
|
2502
2502
|
};
|
|
2503
2503
|
l.toNow = function(S) {
|
|
2504
2504
|
return this.to(h(this), S);
|
|
@@ -2512,36 +2512,36 @@ function sa() {
|
|
|
2512
2512
|
var la = sa();
|
|
2513
2513
|
const ua = /* @__PURE__ */ W(la);
|
|
2514
2514
|
var Se = { exports: {} }, ca = Se.exports, Ve;
|
|
2515
|
-
function
|
|
2515
|
+
function ma() {
|
|
2516
2516
|
return Ve || (Ve = 1, (function(t, e) {
|
|
2517
2517
|
(function(n, i) {
|
|
2518
2518
|
t.exports = i();
|
|
2519
2519
|
})(ca, (function() {
|
|
2520
2520
|
var n = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, i = {};
|
|
2521
|
-
return function(
|
|
2521
|
+
return function(r, l, u) {
|
|
2522
2522
|
var c, h = function(p, w, A) {
|
|
2523
2523
|
A === void 0 && (A = {});
|
|
2524
|
-
var f = new Date(p), M = (function(
|
|
2524
|
+
var f = new Date(p), M = (function(k, O) {
|
|
2525
2525
|
O === void 0 && (O = {});
|
|
2526
|
-
var E = O.timeZoneName || "short",
|
|
2527
|
-
return N || (N = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone:
|
|
2526
|
+
var E = O.timeZoneName || "short", U = k + "|" + E, N = i[U];
|
|
2527
|
+
return N || (N = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: k, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: E }), i[U] = N), N;
|
|
2528
2528
|
})(w, A);
|
|
2529
2529
|
return M.formatToParts(f);
|
|
2530
2530
|
}, S = function(p, w) {
|
|
2531
2531
|
for (var A = h(p, w), f = [], M = 0; M < A.length; M += 1) {
|
|
2532
|
-
var
|
|
2533
|
-
|
|
2532
|
+
var k = A[M], O = k.type, E = k.value, U = n[O];
|
|
2533
|
+
U >= 0 && (f[U] = parseInt(E, 10));
|
|
2534
2534
|
}
|
|
2535
|
-
var N = f[3],
|
|
2536
|
-
return (u.utc(
|
|
2535
|
+
var N = f[3], I = N === 24 ? 0 : N, x = f[0] + "-" + f[1] + "-" + f[2] + " " + I + ":" + f[4] + ":" + f[5] + ":000", C = +p;
|
|
2536
|
+
return (u.utc(x).valueOf() - (C -= C % 1e3)) / 6e4;
|
|
2537
2537
|
}, P = l.prototype;
|
|
2538
2538
|
P.tz = function(p, w) {
|
|
2539
2539
|
p === void 0 && (p = c);
|
|
2540
|
-
var A, f = this.utcOffset(), M = this.toDate(),
|
|
2540
|
+
var A, f = this.utcOffset(), M = this.toDate(), k = M.toLocaleString("en-US", { timeZone: p }), O = Math.round((M - new Date(k)) / 1e3 / 60), E = 15 * -Math.round(M.getTimezoneOffset() / 15) - O;
|
|
2541
2541
|
if (!Number(E)) A = this.utcOffset(0, w);
|
|
2542
|
-
else if (A = u(
|
|
2543
|
-
var
|
|
2544
|
-
A = A.add(f -
|
|
2542
|
+
else if (A = u(k, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(E, !0), w) {
|
|
2543
|
+
var U = A.utcOffset();
|
|
2544
|
+
A = A.add(f - U, "minute");
|
|
2545
2545
|
}
|
|
2546
2546
|
return A.$x.$timezone = p, A;
|
|
2547
2547
|
}, P.offsetName = function(p) {
|
|
@@ -2556,14 +2556,14 @@ function da() {
|
|
|
2556
2556
|
var A = u(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
2557
2557
|
return y.call(A, p, w).tz(this.$x.$timezone, !0);
|
|
2558
2558
|
}, u.tz = function(p, w, A) {
|
|
2559
|
-
var f = A && w, M = A || w || c,
|
|
2559
|
+
var f = A && w, M = A || w || c, k = S(+u(), M);
|
|
2560
2560
|
if (typeof p != "string") return u(p).tz(M);
|
|
2561
|
-
var O = (function(
|
|
2562
|
-
var
|
|
2563
|
-
if (
|
|
2564
|
-
var T = S(
|
|
2565
|
-
return
|
|
2566
|
-
})(u.utc(p, f).valueOf(),
|
|
2561
|
+
var O = (function(I, x, C) {
|
|
2562
|
+
var F = I - 60 * x * 1e3, K = S(F, C);
|
|
2563
|
+
if (x === K) return [F, x];
|
|
2564
|
+
var T = S(F -= 60 * (K - x) * 1e3, C);
|
|
2565
|
+
return K === T ? [F, K] : [I - 60 * Math.min(K, T) * 1e3, Math.max(K, T)];
|
|
2566
|
+
})(u.utc(p, f).valueOf(), k, M), E = O[0], U = O[1], N = u(E).utcOffset(U);
|
|
2567
2567
|
return N.$x.$timezone = M, N;
|
|
2568
2568
|
}, u.tz.guess = function() {
|
|
2569
2569
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
@@ -2574,15 +2574,15 @@ function da() {
|
|
|
2574
2574
|
}));
|
|
2575
2575
|
})(Se)), Se.exports;
|
|
2576
2576
|
}
|
|
2577
|
-
var
|
|
2578
|
-
const fa = /* @__PURE__ */ W(
|
|
2577
|
+
var da = ma();
|
|
2578
|
+
const fa = /* @__PURE__ */ W(da);
|
|
2579
2579
|
var ve = { exports: {} }, ha = ve.exports, Ze;
|
|
2580
2580
|
function ga() {
|
|
2581
2581
|
return Ze || (Ze = 1, (function(t, e) {
|
|
2582
2582
|
(function(n, i) {
|
|
2583
2583
|
t.exports = i();
|
|
2584
2584
|
})(ha, (function() {
|
|
2585
|
-
var n = "minute", i = /[+-]\d\d(?::?\d\d)?/g,
|
|
2585
|
+
var n = "minute", i = /[+-]\d\d(?::?\d\d)?/g, r = /([+-]|\d\d)/g;
|
|
2586
2586
|
return function(l, u, c) {
|
|
2587
2587
|
var h = u.prototype;
|
|
2588
2588
|
c.utc = function(f) {
|
|
@@ -2607,21 +2607,21 @@ function ga() {
|
|
|
2607
2607
|
};
|
|
2608
2608
|
var y = h.utcOffset;
|
|
2609
2609
|
h.utcOffset = function(f, M) {
|
|
2610
|
-
var
|
|
2611
|
-
if (
|
|
2610
|
+
var k = this.$utils().u;
|
|
2611
|
+
if (k(f)) return this.$u ? 0 : k(this.$offset) ? y.call(this) : this.$offset;
|
|
2612
2612
|
if (typeof f == "string" && (f = (function(N) {
|
|
2613
2613
|
N === void 0 && (N = "");
|
|
2614
|
-
var
|
|
2615
|
-
if (!
|
|
2616
|
-
var
|
|
2617
|
-
return
|
|
2614
|
+
var I = N.match(i);
|
|
2615
|
+
if (!I) return null;
|
|
2616
|
+
var x = ("" + I[0]).match(r) || ["-", 0, 0], C = x[0], F = 60 * +x[1] + +x[2];
|
|
2617
|
+
return F === 0 ? 0 : C === "+" ? F : -F;
|
|
2618
2618
|
})(f), f === null)) return this;
|
|
2619
2619
|
var O = Math.abs(f) <= 16 ? 60 * f : f;
|
|
2620
2620
|
if (O === 0) return this.utc(M);
|
|
2621
2621
|
var E = this.clone();
|
|
2622
2622
|
if (M) return E.$offset = O, E.$u = !1, E;
|
|
2623
|
-
var
|
|
2624
|
-
return (E = this.local().add(O +
|
|
2623
|
+
var U = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
2624
|
+
return (E = this.local().add(O + U, n)).$offset = O, E.$x.$localOffset = U, E;
|
|
2625
2625
|
};
|
|
2626
2626
|
var p = h.format;
|
|
2627
2627
|
h.format = function(f) {
|
|
@@ -2642,10 +2642,10 @@ function ga() {
|
|
|
2642
2642
|
return f === "s" && this.$offset ? c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : w.call(this);
|
|
2643
2643
|
};
|
|
2644
2644
|
var A = h.diff;
|
|
2645
|
-
h.diff = function(f, M,
|
|
2646
|
-
if (f && this.$u === f.$u) return A.call(this, f, M,
|
|
2645
|
+
h.diff = function(f, M, k) {
|
|
2646
|
+
if (f && this.$u === f.$u) return A.call(this, f, M, k);
|
|
2647
2647
|
var O = this.local(), E = c(f).local();
|
|
2648
|
-
return A.call(O, E, M,
|
|
2648
|
+
return A.call(O, E, M, k);
|
|
2649
2649
|
};
|
|
2650
2650
|
};
|
|
2651
2651
|
}));
|
|
@@ -2662,10 +2662,10 @@ function ba() {
|
|
|
2662
2662
|
function i(u) {
|
|
2663
2663
|
return u && typeof u == "object" && "default" in u ? u : { default: u };
|
|
2664
2664
|
}
|
|
2665
|
-
var
|
|
2665
|
+
var r = i(n), l = { name: "fr", weekdays: "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"), weekdaysShort: "dim._lun._mar._mer._jeu._ven._sam.".split("_"), weekdaysMin: "di_lu_ma_me_je_ve_sa".split("_"), months: "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"), monthsShort: "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"), weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, relativeTime: { future: "dans %s", past: "il y a %s", s: "quelques secondes", m: "une minute", mm: "%d minutes", h: "une heure", hh: "%d heures", d: "un jour", dd: "%d jours", M: "un mois", MM: "%d mois", y: "un an", yy: "%d ans" }, ordinal: function(u) {
|
|
2666
2666
|
return "" + u + (u === 1 ? "er" : "");
|
|
2667
2667
|
} };
|
|
2668
|
-
return
|
|
2668
|
+
return r.default.locale(l, null, !0), l;
|
|
2669
2669
|
}));
|
|
2670
2670
|
})(Re)), Re.exports;
|
|
2671
2671
|
}
|
|
@@ -2677,20 +2677,20 @@ function va() {
|
|
|
2677
2677
|
t.exports = i();
|
|
2678
2678
|
})(Sa, (function() {
|
|
2679
2679
|
return { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(n) {
|
|
2680
|
-
var i = ["th", "st", "nd", "rd"],
|
|
2681
|
-
return "[" + n + (i[(
|
|
2680
|
+
var i = ["th", "st", "nd", "rd"], r = n % 100;
|
|
2681
|
+
return "[" + n + (i[(r - 20) % 10] || i[r] || i[0]) + "]";
|
|
2682
2682
|
} };
|
|
2683
2683
|
}));
|
|
2684
2684
|
})(Pe)), Pe.exports;
|
|
2685
2685
|
}
|
|
2686
2686
|
va();
|
|
2687
|
-
q.extend(
|
|
2688
|
-
q.extend(
|
|
2689
|
-
q.extend(
|
|
2687
|
+
q.extend(Kt);
|
|
2688
|
+
q.extend(zt);
|
|
2689
|
+
q.extend(xt);
|
|
2690
2690
|
q.extend(Zt);
|
|
2691
2691
|
q.extend(ta);
|
|
2692
2692
|
q.extend(Jt);
|
|
2693
|
-
q.extend(
|
|
2693
|
+
q.extend(ra);
|
|
2694
2694
|
q.extend(ua);
|
|
2695
2695
|
q.extend(fa);
|
|
2696
2696
|
q.extend(ya);
|
|
@@ -2713,24 +2713,24 @@ function we(t, e = /* @__PURE__ */ new WeakSet()) {
|
|
|
2713
2713
|
}
|
|
2714
2714
|
return t;
|
|
2715
2715
|
}
|
|
2716
|
-
function
|
|
2716
|
+
function ke(t, e, n = /* @__PURE__ */ new WeakSet()) {
|
|
2717
2717
|
if (!(!X(e) || !X(t)) && !(e === t || n.has(e))) {
|
|
2718
2718
|
n.add(e);
|
|
2719
2719
|
for (const i in e)
|
|
2720
2720
|
if (Object.hasOwn(e, i)) {
|
|
2721
|
-
const
|
|
2722
|
-
X(
|
|
2721
|
+
const r = e[i], l = t[i];
|
|
2722
|
+
X(r) && X(l) ? ke(l, r, n) : Array.isArray(r) && Array.isArray(l) ? t[i] = nt(l, r, n) : t[i] = we(r, n);
|
|
2723
2723
|
}
|
|
2724
2724
|
}
|
|
2725
2725
|
}
|
|
2726
2726
|
function nt(t, e, n) {
|
|
2727
2727
|
const i = t.slice();
|
|
2728
|
-
for (let
|
|
2729
|
-
const l = e[
|
|
2728
|
+
for (let r = 0; r < e.length; r++) {
|
|
2729
|
+
const l = e[r], u = i[r];
|
|
2730
2730
|
if (X(l) && X(u)) {
|
|
2731
2731
|
const c = { ...u };
|
|
2732
|
-
|
|
2733
|
-
} else Array.isArray(l) && Array.isArray(u) ? i[
|
|
2732
|
+
ke(c, l, n), i[r] = c;
|
|
2733
|
+
} else Array.isArray(l) && Array.isArray(u) ? i[r] = nt(u, l, n) : i[r] = we(l, n);
|
|
2734
2734
|
}
|
|
2735
2735
|
return i;
|
|
2736
2736
|
}
|
|
@@ -2739,7 +2739,7 @@ function je(t, ...e) {
|
|
|
2739
2739
|
throw new TypeError("Target must be a plain object");
|
|
2740
2740
|
const n = /* @__PURE__ */ new WeakSet();
|
|
2741
2741
|
for (const i of e)
|
|
2742
|
-
i != null &&
|
|
2742
|
+
i != null && ke(t, i, n);
|
|
2743
2743
|
return t;
|
|
2744
2744
|
}
|
|
2745
2745
|
const Y = [];
|
|
@@ -2792,8 +2792,8 @@ class ie {
|
|
|
2792
2792
|
}
|
|
2793
2793
|
poll(e, n) {
|
|
2794
2794
|
const i = this.buildPollerOptions(n);
|
|
2795
|
-
return this.storeCurrentPolling(i), this.isActivePoller(i) && e().then((
|
|
2796
|
-
this.dispatch("error",
|
|
2795
|
+
return this.storeCurrentPolling(i), this.isActivePoller(i) && e().then((r) => this.onRequest(r, e, i)).catch((r) => {
|
|
2796
|
+
this.dispatch("error", r);
|
|
2797
2797
|
}), this;
|
|
2798
2798
|
}
|
|
2799
2799
|
on(e, n) {
|
|
@@ -2806,8 +2806,8 @@ class ie {
|
|
|
2806
2806
|
this.events[e](n);
|
|
2807
2807
|
}
|
|
2808
2808
|
async onRequest(e, n, i) {
|
|
2809
|
-
const
|
|
2810
|
-
this.isActivePoller(i) && (this.isInProgress(
|
|
2809
|
+
const r = b(e ?? {}, v.Camel);
|
|
2810
|
+
this.isActivePoller(i) && (this.isInProgress(r) && i.callCount && i.maxCallCount && i.callCount < i.maxCallCount || !this.isInProgress(r) && i.callCount && i.minCallCount && i.callCount < i.minCallCount ? (this.isInProgress(r) || (r.meta = r.meta || {}, r.meta.status = "IN_PROGRESS"), i.callCount += 1, this.dispatch("data", r), i.interval && await this.pause(i), this.poll(n, i)) : this.isInProgress(r) ? (r.meta = r.meta || {}, r.meta.status = "COMPLETE", this.onComplete(r, i)) : this.onComplete(r, i));
|
|
2811
2811
|
}
|
|
2812
2812
|
onComplete(e, n) {
|
|
2813
2813
|
this.dispatch("data", e), this.dispatch("complete", e), this.removeCurrentPolling(n);
|
|
@@ -2816,9 +2816,9 @@ class ie {
|
|
|
2816
2816
|
return (e?.meta?.status ?? "") !== "COMPLETE";
|
|
2817
2817
|
}
|
|
2818
2818
|
buildPollerOptions(e) {
|
|
2819
|
-
const n = Object.entries(e).reduce((i, [
|
|
2819
|
+
const n = Object.entries(e).reduce((i, [r, l]) => {
|
|
2820
2820
|
if (l !== void 0) {
|
|
2821
|
-
const u =
|
|
2821
|
+
const u = r;
|
|
2822
2822
|
i[u] = l;
|
|
2823
2823
|
}
|
|
2824
2824
|
return i;
|
|
@@ -2843,21 +2843,21 @@ class ie {
|
|
|
2843
2843
|
e.type && this.pollings[e.type] && delete this.pollings[e.type];
|
|
2844
2844
|
}
|
|
2845
2845
|
}
|
|
2846
|
-
function
|
|
2846
|
+
function rt(t, e, n) {
|
|
2847
2847
|
const i = ie.getInstance();
|
|
2848
|
-
return i.poll(t, e), n && typeof n == "function" ? (i.on("data", (
|
|
2849
|
-
|
|
2850
|
-
}), i.on("error", (
|
|
2851
|
-
|
|
2852
|
-
}), i) : new Promise((
|
|
2848
|
+
return i.poll(t, e), n && typeof n == "function" ? (i.on("data", (r) => {
|
|
2849
|
+
r instanceof Error ? n(r, void 0, i) : n(null, r, i);
|
|
2850
|
+
}), i.on("error", (r) => {
|
|
2851
|
+
r instanceof Error ? n(r) : n(null, r);
|
|
2852
|
+
}), i) : new Promise((r, l) => {
|
|
2853
2853
|
i.on("error", l), i.on("complete", (u) => {
|
|
2854
|
-
u instanceof Error ? l(u) :
|
|
2854
|
+
u instanceof Error ? l(u) : r(u);
|
|
2855
2855
|
});
|
|
2856
2856
|
});
|
|
2857
2857
|
}
|
|
2858
2858
|
const Ba = "http://localhost".replace(/\/+$/, ""), Ea = (t) => typeof Blob < "u" && t instanceof Blob;
|
|
2859
2859
|
class j {
|
|
2860
|
-
constructor(e = new
|
|
2860
|
+
constructor(e = new ot()) {
|
|
2861
2861
|
this.configuration = e, this.middleware = e.middleware;
|
|
2862
2862
|
}
|
|
2863
2863
|
middleware;
|
|
@@ -2874,7 +2874,7 @@ class j {
|
|
|
2874
2874
|
return this.withMiddleware(...n);
|
|
2875
2875
|
}
|
|
2876
2876
|
async request(e, n) {
|
|
2877
|
-
const { url: i, init:
|
|
2877
|
+
const { url: i, init: r } = this.createFetchParams(e, n), l = await this.fetchApi(i, r);
|
|
2878
2878
|
if (l.status >= 200 && l.status < 300)
|
|
2879
2879
|
return l;
|
|
2880
2880
|
throw new La(l, "Response returned an error code");
|
|
@@ -2882,11 +2882,11 @@ class j {
|
|
|
2882
2882
|
createFetchParams(e, n) {
|
|
2883
2883
|
let i = this.configuration.basePath + e.path;
|
|
2884
2884
|
e.query !== void 0 && Object.keys(e.query).length !== 0 && (i += "?" + this.configuration.queryParamsStringify(e.query));
|
|
2885
|
-
const
|
|
2885
|
+
const r = typeof FormData < "u" && e.body instanceof FormData || e.body instanceof URLSearchParams || Ea(e.body) ? e.body : JSON.stringify(e.body), l = Object.assign({}, this.configuration.headers, e.headers);
|
|
2886
2886
|
Object.keys(l).forEach((c) => l[c] === void 0 ? delete l[c] : {});
|
|
2887
2887
|
const u = {
|
|
2888
2888
|
method: e.method,
|
|
2889
|
-
body:
|
|
2889
|
+
body: r,
|
|
2890
2890
|
credentials: this.configuration.credentials,
|
|
2891
2891
|
...je({}, n, {
|
|
2892
2892
|
headers: je({}, l, n?.headers)
|
|
@@ -2901,15 +2901,15 @@ class j {
|
|
|
2901
2901
|
fetch: this.fetchApi,
|
|
2902
2902
|
...i
|
|
2903
2903
|
}) || i);
|
|
2904
|
-
let
|
|
2904
|
+
let r = await (this.configuration.fetchApi || fetch)(i.url, i.init);
|
|
2905
2905
|
for (const l of this.middleware)
|
|
2906
|
-
l.post && (
|
|
2906
|
+
l.post && (r = await l.post({
|
|
2907
2907
|
fetch: this.fetchApi,
|
|
2908
2908
|
url: i.url,
|
|
2909
2909
|
init: i.init,
|
|
2910
|
-
response:
|
|
2911
|
-
}) ||
|
|
2912
|
-
return
|
|
2910
|
+
response: r.clone()
|
|
2911
|
+
}) || r);
|
|
2912
|
+
return r;
|
|
2913
2913
|
};
|
|
2914
2914
|
/**
|
|
2915
2915
|
* Create a shallow clone of `this` by constructing a new instance
|
|
@@ -2926,7 +2926,7 @@ class La extends Error {
|
|
|
2926
2926
|
}
|
|
2927
2927
|
name = "ResponseError";
|
|
2928
2928
|
}
|
|
2929
|
-
class
|
|
2929
|
+
class z extends Error {
|
|
2930
2930
|
constructor(e, n) {
|
|
2931
2931
|
super(n), this.field = e;
|
|
2932
2932
|
}
|
|
@@ -2938,7 +2938,7 @@ const ja = {
|
|
|
2938
2938
|
tsv: " ",
|
|
2939
2939
|
pipes: "|"
|
|
2940
2940
|
};
|
|
2941
|
-
class
|
|
2941
|
+
class ot {
|
|
2942
2942
|
constructor(e = {}) {
|
|
2943
2943
|
this.configuration = e;
|
|
2944
2944
|
}
|
|
@@ -2983,12 +2983,12 @@ function Ja(t, e) {
|
|
|
2983
2983
|
}
|
|
2984
2984
|
function st(t, e = "") {
|
|
2985
2985
|
return Object.keys(t).map((n) => {
|
|
2986
|
-
const i = e + (e.length ? `[${n}]` : n),
|
|
2987
|
-
if (
|
|
2988
|
-
const l =
|
|
2986
|
+
const i = e + (e.length ? `[${n}]` : n), r = t[n];
|
|
2987
|
+
if (r instanceof Array) {
|
|
2988
|
+
const l = r.map((u) => encodeURIComponent(String(u))).join(`&${encodeURIComponent(i)}=`);
|
|
2989
2989
|
return `${encodeURIComponent(i)}=${l}`;
|
|
2990
2990
|
}
|
|
2991
|
-
return
|
|
2991
|
+
return r instanceof Date ? `${encodeURIComponent(i)}=${encodeURIComponent(r.toISOString())}` : r instanceof Object ? st(r, i) : `${encodeURIComponent(i)}=${encodeURIComponent(String(r))}`;
|
|
2992
2992
|
}).filter((n) => n.length > 0).join("&");
|
|
2993
2993
|
}
|
|
2994
2994
|
function Xa(t, e) {
|
|
@@ -3003,7 +3003,7 @@ function Qa(t) {
|
|
|
3003
3003
|
return !0;
|
|
3004
3004
|
return !1;
|
|
3005
3005
|
}
|
|
3006
|
-
class
|
|
3006
|
+
class _ {
|
|
3007
3007
|
constructor(e, n = (i) => i) {
|
|
3008
3008
|
this.raw = e, this.transformer = n;
|
|
3009
3009
|
}
|
|
@@ -3055,7 +3055,7 @@ const ai = {
|
|
|
3055
3055
|
ItIt: "it-IT",
|
|
3056
3056
|
NlNl: "nl-NL",
|
|
3057
3057
|
PtPt: "pt-PT"
|
|
3058
|
-
},
|
|
3058
|
+
}, ri = {
|
|
3059
3059
|
DeDe: "de-DE",
|
|
3060
3060
|
EnUs: "en-US",
|
|
3061
3061
|
EsEs: "es-ES",
|
|
@@ -3063,7 +3063,7 @@ const ai = {
|
|
|
3063
3063
|
ItIt: "it-IT",
|
|
3064
3064
|
NlNl: "nl-NL",
|
|
3065
3065
|
PtPt: "pt-PT"
|
|
3066
|
-
},
|
|
3066
|
+
}, oi = {
|
|
3067
3067
|
Dr: "dr",
|
|
3068
3068
|
Mr: "mr",
|
|
3069
3069
|
Mrs: "mrs",
|
|
@@ -3467,12 +3467,12 @@ const ai = {
|
|
|
3467
3467
|
Included: "INCLUDED",
|
|
3468
3468
|
NotIncluded: "NOT_INCLUDED",
|
|
3469
3469
|
Optional: "OPTIONAL"
|
|
3470
|
-
},
|
|
3470
|
+
}, mi = {
|
|
3471
3471
|
BestMatch: "BEST_MATCH",
|
|
3472
3472
|
Cheapest: "CHEAPEST",
|
|
3473
3473
|
MatchingRoomCount: "MATCHING_ROOM_COUNT",
|
|
3474
3474
|
Regular: "REGULAR"
|
|
3475
|
-
},
|
|
3475
|
+
}, di = {
|
|
3476
3476
|
HotelRoom: "HOTEL_ROOM",
|
|
3477
3477
|
Package: "PACKAGE"
|
|
3478
3478
|
}, fi = {
|
|
@@ -3750,22 +3750,22 @@ const ai = {
|
|
|
3750
3750
|
Adult: "PER_ADULT",
|
|
3751
3751
|
Booking: "PER_BOOKING"
|
|
3752
3752
|
};
|
|
3753
|
-
class
|
|
3753
|
+
class ka extends j {
|
|
3754
3754
|
/**
|
|
3755
3755
|
* In order to be able to create and confirm a booking against a specific **Hotel Room Offer** package, you need to make a booking policy call. Retrieving a booking policy returns additional information about the booking being made and includes details like cancellation policies. This API call is equivalent to an availability check and it is important not to let long periods between retrieval of this policy and the booking confirmation call itself as this will often reduce the likelihood of the **Hotel Room Offer** being successfully booked. The **booking_policy_id** returned is meant to be used to carry out a pre-book call via **[Pre Book endpoint](/v1/documentation#operation/postV1Bookings)** on the next **Booking Flow** step. ⚠️ This call may take from 1 second up to 15 seconds to return as we may request various suppliers to fulfill this request.
|
|
3756
3756
|
* Create Booking Policies
|
|
3757
3757
|
*/
|
|
3758
3758
|
async createRaw(e, n) {
|
|
3759
|
-
const i = {},
|
|
3760
|
-
|
|
3759
|
+
const i = {}, r = {};
|
|
3760
|
+
r["Content-Type"] = "application/json", this.configuration && this.configuration.apiKey && (r["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
3761
3761
|
const l = await this.request({
|
|
3762
3762
|
path: "/v1/booking_policies",
|
|
3763
3763
|
method: "POST",
|
|
3764
|
-
headers:
|
|
3764
|
+
headers: r,
|
|
3765
3765
|
query: b(i, v.Snake),
|
|
3766
3766
|
body: b(e.bookingPoliciesCreateApi, v.Snake)
|
|
3767
3767
|
}, n);
|
|
3768
|
-
return await new
|
|
3768
|
+
return await new _(l, (u) => b(u, v.Camel)).value();
|
|
3769
3769
|
}
|
|
3770
3770
|
/**
|
|
3771
3771
|
* In order to be able to create and confirm a booking against a specific **Hotel Room Offer** package, you need to make a booking policy call. Retrieving a booking policy returns additional information about the booking being made and includes details like cancellation policies. This API call is equivalent to an availability check and it is important not to let long periods between retrieval of this policy and the booking confirmation call itself as this will often reduce the likelihood of the **Hotel Room Offer** being successfully booked. The **booking_policy_id** returned is meant to be used to carry out a pre-book call via **[Pre Book endpoint](/v1/documentation#operation/postV1Bookings)** on the next **Booking Flow** step. ⚠️ This call may take from 1 second up to 15 seconds to return as we may request various suppliers to fulfill this request.
|
|
@@ -3775,21 +3775,21 @@ class Ca extends j {
|
|
|
3775
3775
|
return this.createRaw(e, n);
|
|
3776
3776
|
}
|
|
3777
3777
|
}
|
|
3778
|
-
class
|
|
3778
|
+
class Ia extends j {
|
|
3779
3779
|
/**
|
|
3780
3780
|
* Cancel a confirmed Booking. A booking can only be cancelled if it\'s in one of the following status: **bkg-cf**, **bkg-pc**.
|
|
3781
3781
|
* Cancel a Booking
|
|
3782
3782
|
*/
|
|
3783
3783
|
async deleteRaw(e, n) {
|
|
3784
3784
|
if (e.token === null || e.token === void 0)
|
|
3785
|
-
throw new
|
|
3786
|
-
const i = {},
|
|
3785
|
+
throw new z("token", "Required parameter requestParameters.token was null or undefined when calling deleteV1BookingsToken.");
|
|
3786
|
+
const i = {}, r = {}, l = await this.request({
|
|
3787
3787
|
path: "/v1/bookings/{token}".replace("{token}", encodeURIComponent(String(e.token))),
|
|
3788
3788
|
method: "DELETE",
|
|
3789
|
-
headers:
|
|
3789
|
+
headers: r,
|
|
3790
3790
|
query: b(i, v.Snake)
|
|
3791
3791
|
}, n);
|
|
3792
|
-
return await new
|
|
3792
|
+
return await new _(l, (u) => b(u, v.Camel)).value();
|
|
3793
3793
|
}
|
|
3794
3794
|
/**
|
|
3795
3795
|
* Cancel a confirmed Booking. A booking can only be cancelled if it\'s in one of the following status: **bkg-cf**, **bkg-pc**.
|
|
@@ -3805,15 +3805,15 @@ class ka extends j {
|
|
|
3805
3805
|
async listRaw(e, n) {
|
|
3806
3806
|
const i = {};
|
|
3807
3807
|
e.endingBefore !== void 0 && (i.ending_before = e.endingBefore), e.filterByCheckInDate !== void 0 && (i.filter_by_check_in_date = e.filterByCheckInDate), e.filterByLastStatusUpdatedAt !== void 0 && (i.filter_by_last_status_updated_at = e.filterByLastStatusUpdatedAt), e.filterByStatus !== void 0 && (i.filter_by_status = e.filterByStatus), e.limit !== void 0 && (i.limit = e.limit), e.sortBy !== void 0 && (i.sort_by = e.sortBy), e.sortByOrder !== void 0 && (i.sort_by_order = e.sortByOrder), e.startingAfter !== void 0 && (i.starting_after = e.startingAfter);
|
|
3808
|
-
const
|
|
3809
|
-
this.configuration && this.configuration.apiKey && (
|
|
3808
|
+
const r = {};
|
|
3809
|
+
this.configuration && this.configuration.apiKey && (r["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
3810
3810
|
const l = await this.request({
|
|
3811
3811
|
path: "/v1/bookings",
|
|
3812
3812
|
method: "GET",
|
|
3813
|
-
headers:
|
|
3813
|
+
headers: r,
|
|
3814
3814
|
query: b(i, v.Snake)
|
|
3815
3815
|
}, n);
|
|
3816
|
-
return await new
|
|
3816
|
+
return await new _(l, (u) => b(u, v.Camel)).value();
|
|
3817
3817
|
}
|
|
3818
3818
|
/**
|
|
3819
3819
|
* Returns a list of detailed bookings made on behalf of a specific API Key credential.
|
|
@@ -3828,16 +3828,16 @@ class ka extends j {
|
|
|
3828
3828
|
*/
|
|
3829
3829
|
async retrieveRaw(e, n) {
|
|
3830
3830
|
if (e.id === null || e.id === void 0)
|
|
3831
|
-
throw new
|
|
3832
|
-
const i = {},
|
|
3833
|
-
this.configuration && this.configuration.apiKey && (
|
|
3831
|
+
throw new z("id", "Required parameter requestParameters.id was null or undefined when calling getV1BookingsId.");
|
|
3832
|
+
const i = {}, r = {};
|
|
3833
|
+
this.configuration && this.configuration.apiKey && (r["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
3834
3834
|
const l = await this.request({
|
|
3835
3835
|
path: "/v1/bookings/{id}".replace("{id}", encodeURIComponent(String(e.id))),
|
|
3836
3836
|
method: "GET",
|
|
3837
|
-
headers:
|
|
3837
|
+
headers: r,
|
|
3838
3838
|
query: b(i, v.Snake)
|
|
3839
3839
|
}, n);
|
|
3840
|
-
return await new
|
|
3840
|
+
return await new _(l, (u) => b(u, v.Camel)).value();
|
|
3841
3841
|
}
|
|
3842
3842
|
/**
|
|
3843
3843
|
* Retrieve the status and information of a booking.
|
|
@@ -3852,14 +3852,14 @@ class ka extends j {
|
|
|
3852
3852
|
*/
|
|
3853
3853
|
async retrievePublicRaw(e, n) {
|
|
3854
3854
|
if (e.token === null || e.token === void 0)
|
|
3855
|
-
throw new
|
|
3856
|
-
const i = {},
|
|
3855
|
+
throw new z("token", "Required parameter requestParameters.token was null or undefined when calling getV1BookingsTokenPublic.");
|
|
3856
|
+
const i = {}, r = {}, l = await this.request({
|
|
3857
3857
|
path: "/v1/bookings/{token}/public".replace("{token}", encodeURIComponent(String(e.token))),
|
|
3858
3858
|
method: "GET",
|
|
3859
|
-
headers:
|
|
3859
|
+
headers: r,
|
|
3860
3860
|
query: b(i, v.Snake)
|
|
3861
3861
|
}, n);
|
|
3862
|
-
return await new
|
|
3862
|
+
return await new _(l, (u) => b(u, v.Camel)).value();
|
|
3863
3863
|
}
|
|
3864
3864
|
/**
|
|
3865
3865
|
* Retrieve the status and information of a booking based on a valid token. This endpoint is public and does not require a secret API key.
|
|
@@ -3873,16 +3873,16 @@ class ka extends j {
|
|
|
3873
3873
|
* Create an unconfirmed Booking
|
|
3874
3874
|
*/
|
|
3875
3875
|
async createRaw(e, n) {
|
|
3876
|
-
const i = {},
|
|
3877
|
-
|
|
3876
|
+
const i = {}, r = {};
|
|
3877
|
+
r["Content-Type"] = "application/json", this.configuration && this.configuration.apiKey && (r["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
3878
3878
|
const l = await this.request({
|
|
3879
3879
|
path: "/v1/bookings",
|
|
3880
3880
|
method: "POST",
|
|
3881
|
-
headers:
|
|
3881
|
+
headers: r,
|
|
3882
3882
|
query: b(i, v.Snake),
|
|
3883
3883
|
body: b(e.bookingCreateApi, v.Snake)
|
|
3884
3884
|
}, n);
|
|
3885
|
-
return await new
|
|
3885
|
+
return await new _(l, (u) => b(u, v.Camel)).value();
|
|
3886
3886
|
}
|
|
3887
3887
|
/**
|
|
3888
3888
|
* Creates an unconfirmed booking
|
|
@@ -3897,18 +3897,18 @@ class ka extends j {
|
|
|
3897
3897
|
*/
|
|
3898
3898
|
async couponChargeRaw(e, n) {
|
|
3899
3899
|
if (e.couponId === null || e.couponId === void 0)
|
|
3900
|
-
throw new
|
|
3900
|
+
throw new z("couponId", "Required parameter requestParameters.couponId was null or undefined when calling postV1BookingsIdCouponsCouponIdCharge.");
|
|
3901
3901
|
if (e.id === null || e.id === void 0)
|
|
3902
|
-
throw new
|
|
3903
|
-
const i = {},
|
|
3904
|
-
this.configuration && this.configuration.apiKey && (
|
|
3902
|
+
throw new z("id", "Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdCouponsCouponIdCharge.");
|
|
3903
|
+
const i = {}, r = {};
|
|
3904
|
+
this.configuration && this.configuration.apiKey && (r["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
3905
3905
|
const l = await this.request({
|
|
3906
3906
|
path: "/v1/bookings/{id}/coupons/{coupon_id}/charge".replace("{coupon_id}", encodeURIComponent(String(e.couponId))).replace("{id}", encodeURIComponent(String(e.id))),
|
|
3907
3907
|
method: "POST",
|
|
3908
|
-
headers:
|
|
3908
|
+
headers: r,
|
|
3909
3909
|
query: b(i, v.Snake)
|
|
3910
3910
|
}, n);
|
|
3911
|
-
return await new
|
|
3911
|
+
return await new _(l, (u) => b(u, v.Camel)).value();
|
|
3912
3912
|
}
|
|
3913
3913
|
/**
|
|
3914
3914
|
* Confirm booking from Coupon payment method
|
|
@@ -3923,16 +3923,16 @@ class ka extends j {
|
|
|
3923
3923
|
*/
|
|
3924
3924
|
async paylaterRaw(e, n) {
|
|
3925
3925
|
if (e.id === null || e.id === void 0)
|
|
3926
|
-
throw new
|
|
3927
|
-
const i = {},
|
|
3928
|
-
this.configuration && this.configuration.apiKey && (
|
|
3926
|
+
throw new z("id", "Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdPayLater.");
|
|
3927
|
+
const i = {}, r = {};
|
|
3928
|
+
this.configuration && this.configuration.apiKey && (r["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
3929
3929
|
const l = await this.request({
|
|
3930
3930
|
path: "/v1/bookings/{id}/pay-later".replace("{id}", encodeURIComponent(String(e.id))),
|
|
3931
3931
|
method: "POST",
|
|
3932
|
-
headers:
|
|
3932
|
+
headers: r,
|
|
3933
3933
|
query: b(i, v.Snake)
|
|
3934
3934
|
}, n);
|
|
3935
|
-
return await new
|
|
3935
|
+
return await new _(l, (u) => b(u, v.Camel)).value();
|
|
3936
3936
|
}
|
|
3937
3937
|
/**
|
|
3938
3938
|
* Pay later and retrieve the status and information of a booking.
|
|
@@ -3947,16 +3947,16 @@ class ka extends j {
|
|
|
3947
3947
|
*/
|
|
3948
3948
|
async confirmpaylaterRaw(e, n) {
|
|
3949
3949
|
if (e.id === null || e.id === void 0)
|
|
3950
|
-
throw new
|
|
3951
|
-
const i = {},
|
|
3952
|
-
this.configuration && this.configuration.apiKey && (
|
|
3950
|
+
throw new z("id", "Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdPayLaterConfirm.");
|
|
3951
|
+
const i = {}, r = {};
|
|
3952
|
+
this.configuration && this.configuration.apiKey && (r["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
3953
3953
|
const l = await this.request({
|
|
3954
3954
|
path: "/v1/bookings/{id}/pay-later/confirm".replace("{id}", encodeURIComponent(String(e.id))),
|
|
3955
3955
|
method: "POST",
|
|
3956
|
-
headers:
|
|
3956
|
+
headers: r,
|
|
3957
3957
|
query: b(i, v.Snake)
|
|
3958
3958
|
}, n);
|
|
3959
|
-
return await new
|
|
3959
|
+
return await new _(l, (u) => b(u, v.Camel)).value();
|
|
3960
3960
|
}
|
|
3961
3961
|
/**
|
|
3962
3962
|
* Confirm later paid and retrieve the status and information of a booking.
|
|
@@ -3971,16 +3971,16 @@ class ka extends j {
|
|
|
3971
3971
|
*/
|
|
3972
3972
|
async confirmRaw(e, n) {
|
|
3973
3973
|
if (e.id === null || e.id === void 0)
|
|
3974
|
-
throw new
|
|
3975
|
-
const i = {},
|
|
3976
|
-
this.configuration && this.configuration.apiKey && (
|
|
3974
|
+
throw new z("id", "Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdconfirm.");
|
|
3975
|
+
const i = {}, r = {};
|
|
3976
|
+
this.configuration && this.configuration.apiKey && (r["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
3977
3977
|
const l = await this.request({
|
|
3978
3978
|
path: "/v1/bookings/{id}/confirm".replace("{id}", encodeURIComponent(String(e.id))),
|
|
3979
3979
|
method: "POST",
|
|
3980
|
-
headers:
|
|
3980
|
+
headers: r,
|
|
3981
3981
|
query: b(i, v.Snake)
|
|
3982
3982
|
}, n);
|
|
3983
|
-
return await new
|
|
3983
|
+
return await new _(l, (u) => b(u, v.Camel)).value();
|
|
3984
3984
|
}
|
|
3985
3985
|
/**
|
|
3986
3986
|
* Trigger the actual booking confirmation process. 💡 This endpoint is only available for Bookings in the **bkg-created** status. ⚠️ The booking confirmation is an asynchronous process. The booking won\'t transition immediatly to **bkg-cf** status. Rather, the endpoint will return a booking in **bkg-ip** and you\'ll be required to check booking status calling **[Get Booking endpoint](/v1/documentation#operation/getV1BookingsId)**, ideally with a polling mechanism, and perform further action(s), whether you need to let your customer know about their booking or you just need to update some data on your system, when booking status transitions to **bkg-cf** (confirmed) or **bkg-af** (fail). ⚠️ Once you have called this endpoint, we immediatly send your confirmation request to our supplier(s) and they may confirm it immediatly, so you\'ll be liable for up to the total booking tax included price amount if you need to cancel it at a later time (refer to the booking\'s cancellation policies to get the actual current penalty percentage applied in case of cancellation).
|
|
@@ -3995,17 +3995,17 @@ class ka extends j {
|
|
|
3995
3995
|
*/
|
|
3996
3996
|
async updatePaymentMethodsRaw(e, n) {
|
|
3997
3997
|
if (e.id === null || e.id === void 0)
|
|
3998
|
-
throw new
|
|
3999
|
-
const i = {},
|
|
4000
|
-
|
|
3998
|
+
throw new z("id", "Required parameter requestParameters.id was null or undefined when calling putV1BookingsIdPaymentMethods.");
|
|
3999
|
+
const i = {}, r = {};
|
|
4000
|
+
r["Content-Type"] = "application/json", this.configuration && this.configuration.apiKey && (r["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
4001
4001
|
const l = await this.request({
|
|
4002
4002
|
path: "/v1/bookings/{id}/payment_methods".replace("{id}", encodeURIComponent(String(e.id))),
|
|
4003
4003
|
method: "PUT",
|
|
4004
|
-
headers:
|
|
4004
|
+
headers: r,
|
|
4005
4005
|
query: b(i, v.Snake),
|
|
4006
4006
|
body: b(e.paymentMethodUpdatePayloadApi, v.Snake)
|
|
4007
4007
|
}, n);
|
|
4008
|
-
return await new
|
|
4008
|
+
return await new _(l, (u) => b(u, v.Camel)).value();
|
|
4009
4009
|
}
|
|
4010
4010
|
/**
|
|
4011
4011
|
* Updates an ongoing Booking payment methods
|
|
@@ -4023,25 +4023,25 @@ const Pi = {
|
|
|
4023
4023
|
Asc: "asc",
|
|
4024
4024
|
Desc: "desc"
|
|
4025
4025
|
};
|
|
4026
|
-
class
|
|
4026
|
+
class Ka extends j {
|
|
4027
4027
|
/**
|
|
4028
4028
|
* Returns a list of images for an Hotel Id with their content localize into the requested **lang**.
|
|
4029
4029
|
* Retrieve Images of an Hotel
|
|
4030
4030
|
*/
|
|
4031
4031
|
async retrieveRaw(e, n) {
|
|
4032
4032
|
if (e.id === null || e.id === void 0)
|
|
4033
|
-
throw new
|
|
4033
|
+
throw new z("id", "Required parameter requestParameters.id was null or undefined when calling getV1HotelsIdImages.");
|
|
4034
4034
|
const i = {};
|
|
4035
4035
|
e.lang !== void 0 && (i.lang = e.lang);
|
|
4036
|
-
const
|
|
4037
|
-
this.configuration && this.configuration.apiKey && (
|
|
4036
|
+
const r = {};
|
|
4037
|
+
this.configuration && this.configuration.apiKey && (r["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
4038
4038
|
const l = await this.request({
|
|
4039
4039
|
path: "/v1/hotels/{id}/images".replace("{id}", encodeURIComponent(String(e.id))),
|
|
4040
4040
|
method: "GET",
|
|
4041
|
-
headers:
|
|
4041
|
+
headers: r,
|
|
4042
4042
|
query: b(i, v.Snake)
|
|
4043
4043
|
}, n);
|
|
4044
|
-
return new
|
|
4044
|
+
return new _(l, (u) => b(u, v.Camel)).value();
|
|
4045
4045
|
}
|
|
4046
4046
|
/**
|
|
4047
4047
|
* Returns a list of images for an Hotel Id with their content localize into the requested **lang**.
|
|
@@ -4060,23 +4060,23 @@ const Ai = {
|
|
|
4060
4060
|
NlNl: "nl-NL",
|
|
4061
4061
|
PtPt: "pt-PT"
|
|
4062
4062
|
};
|
|
4063
|
-
class
|
|
4063
|
+
class Ga extends j {
|
|
4064
4064
|
/**
|
|
4065
4065
|
* Returns a single Hotel Offer Request by id
|
|
4066
4066
|
* Retrieve a Single Hotel Offer Request
|
|
4067
4067
|
*/
|
|
4068
4068
|
async retrieveRaw(e, n) {
|
|
4069
4069
|
if (e.id === null || e.id === void 0)
|
|
4070
|
-
throw new
|
|
4071
|
-
const i = {},
|
|
4072
|
-
this.configuration && this.configuration.apiKey && (
|
|
4070
|
+
throw new z("id", "Required parameter requestParameters.id was null or undefined when calling getV1HotelOfferRequestsId.");
|
|
4071
|
+
const i = {}, r = {};
|
|
4072
|
+
this.configuration && this.configuration.apiKey && (r["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
4073
4073
|
const l = await this.request({
|
|
4074
4074
|
path: "/v1/hotel_offer_requests/{id}".replace("{id}", encodeURIComponent(String(e.id))),
|
|
4075
4075
|
method: "GET",
|
|
4076
|
-
headers:
|
|
4076
|
+
headers: r,
|
|
4077
4077
|
query: b(i, v.Snake)
|
|
4078
4078
|
}, n);
|
|
4079
|
-
return await new
|
|
4079
|
+
return await new _(l, (u) => b(u, v.Camel)).value();
|
|
4080
4080
|
}
|
|
4081
4081
|
/**
|
|
4082
4082
|
* Returns a single Hotel Offer Request by id
|
|
@@ -4090,16 +4090,16 @@ class Ka extends j {
|
|
|
4090
4090
|
* Create an Hotel Offer Request
|
|
4091
4091
|
*/
|
|
4092
4092
|
async createRaw(e, n) {
|
|
4093
|
-
const i = {},
|
|
4094
|
-
|
|
4093
|
+
const i = {}, r = {};
|
|
4094
|
+
r["Content-Type"] = "application/json", this.configuration && this.configuration.apiKey && (r["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
4095
4095
|
const l = await this.request({
|
|
4096
4096
|
path: "/v1/hotel_offer_requests",
|
|
4097
4097
|
method: "POST",
|
|
4098
|
-
headers:
|
|
4098
|
+
headers: r,
|
|
4099
4099
|
query: b(i, v.Snake),
|
|
4100
4100
|
body: b(e.hotelOfferRequestCreateApi, v.Snake)
|
|
4101
4101
|
}, n);
|
|
4102
|
-
return await new
|
|
4102
|
+
return await new _(l, (u) => b(u, v.Camel)).value();
|
|
4103
4103
|
}
|
|
4104
4104
|
/**
|
|
4105
4105
|
* Create an **Hotel Offer Request**. An **Hotel Offer Request** describes the guests (adult and child count), the ideal room count, when they want to check in and check out and obviously the location around which they need their accommodation to be (latitude/longitude pair).
|
|
@@ -4109,34 +4109,34 @@ class Ka extends j {
|
|
|
4109
4109
|
return this.createRaw(e, n);
|
|
4110
4110
|
}
|
|
4111
4111
|
}
|
|
4112
|
-
class
|
|
4112
|
+
class Ua extends j {
|
|
4113
4113
|
/**
|
|
4114
4114
|
* You\'ll then make a call to the **Hotel Offers** endpoint to retrieve a list of **Hotel Offers** associated with your **Hotel Offer Request**. We\'ll send your search to a pool of hotels matching the search parameters you provided previously. The **Hotel Offers** endpoint will return hotels with available rates as **Hotel Room Offers** objects for each hotel in the list. For a detailed overview of the **Hotel Room Offer** object, see **[Retrieve Hotel Room Offers](/v1/documentation#operation/getV1Hotel_room_offers)** endpoint. ⚠️ **IMPORTANT**: The **Hotel Room Offers** included in each **Hotel Offer** returned by the **[Retrieve Hotel Offers](/v1/documentation#operation/getV1Hotel_offers)** endpoint might be **<span style=\"color:red\">cached data</span>**. In that case, the returned prices/availability may be slightly different from actual live inventory. In order to retrieve accurate and live **Hotel Room Offers** for a specific hotel you need to make a call to the **[Retrieve Hotel Room Offers](/v1/documentation#operation/getV1Hotel_room_offers)** endpoint. We do not recommend to systematically call **[Retrieve Hotel Room Offers](/v1/documentation#operation/getV1Hotel_room_offers)** for each hotel offer retrieved as it may trigger rate limiting on your API calls. Rather we recommend to do this as an explicit two-step process: first you check **Hotel Offers** around a location, then, once your customer shows interest in a specific **Hotel Offer**, you check **Hotel Room Offers** on that specific hotel. This endpoint requires ⚛️ **[Polling](/v1/documentation#tag/Polling)**.
|
|
4115
4115
|
* ⚛️ Retrieve Hotel Offers
|
|
4116
4116
|
*/
|
|
4117
4117
|
async listRaw(e, n) {
|
|
4118
4118
|
if (e.currency === null || e.currency === void 0)
|
|
4119
|
-
throw new
|
|
4119
|
+
throw new z("currency", "Required parameter requestParameters.currency was null or undefined when calling getV1HotelOffers.");
|
|
4120
4120
|
if (e.hotelOfferRequestId === null || e.hotelOfferRequestId === void 0)
|
|
4121
|
-
throw new
|
|
4121
|
+
throw new z("hotelOfferRequestId", "Required parameter requestParameters.hotelOfferRequestId was null or undefined when calling getV1HotelOffers.");
|
|
4122
4122
|
const i = {};
|
|
4123
4123
|
e.currency !== void 0 && (i.currency = e.currency), e.endingBefore !== void 0 && (i.ending_before = e.endingBefore), e.filterByPrice !== void 0 && (i.filter_by_price = e.filterByPrice), e.filterByReviewRating !== void 0 && (i.filter_by_review_rating = e.filterByReviewRating), e.filterByStar !== void 0 && (i.filter_by_star = e.filterByStar), e.hotelOfferRequestId !== void 0 && (i.hotel_offer_request_id = e.hotelOfferRequestId), e.hotelRoomOffersLimit !== void 0 && (i.hotel_room_offers_limit = e.hotelRoomOffersLimit), e.includeHotelContentDetails !== void 0 && (i.include_hotel_content_details = e.includeHotelContentDetails), e.lang !== void 0 && (i.lang = e.lang), e.limit !== void 0 && (i.limit = e.limit), e.onlyRecommendedHotelOffers !== void 0 && (i.only_recommended_hotel_offers = e.onlyRecommendedHotelOffers), e.priceHistogramStepCount !== void 0 && (i.price_histogram_step_count = e.priceHistogramStepCount), e.sortBy !== void 0 && (i.sort_by = e.sortBy), e.sortByOrder !== void 0 && (i.sort_by_order = e.sortByOrder), e.startingAfter !== void 0 && (i.starting_after = e.startingAfter);
|
|
4124
|
-
const
|
|
4125
|
-
this.configuration && this.configuration.apiKey && (
|
|
4124
|
+
const r = {};
|
|
4125
|
+
this.configuration && this.configuration.apiKey && (r["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
4126
4126
|
const l = await this.request({
|
|
4127
4127
|
path: "/v1/hotel_offers",
|
|
4128
4128
|
method: "GET",
|
|
4129
|
-
headers:
|
|
4129
|
+
headers: r,
|
|
4130
4130
|
query: b(i, v.Snake)
|
|
4131
4131
|
}, n);
|
|
4132
|
-
return await new
|
|
4132
|
+
return await new _(l, (u) => b(u, v.Camel)).value();
|
|
4133
4133
|
}
|
|
4134
4134
|
/**
|
|
4135
4135
|
* You\'ll then make a call to the **Hotel Offers** endpoint to retrieve a list of **Hotel Offers** associated with your **Hotel Offer Request**. We\'ll send your search to a pool of hotels matching the search parameters you provided previously. The **Hotel Offers** endpoint will return hotels with available rates as **Hotel Room Offers** objects for each hotel in the list. For a detailed overview of the **Hotel Room Offer** object, see **[Retrieve Hotel Room Offers](/v1/documentation#operation/getV1Hotel_room_offers)** endpoint. ⚠️ **IMPORTANT**: The **Hotel Room Offers** included in each **Hotel Offer** returned by the **[Retrieve Hotel Offers](/v1/documentation#operation/getV1Hotel_offers)** endpoint might be **<span style=\"color:red\">cached data</span>**. In that case, the returned prices/availability may be slightly different from actual live inventory. In order to retrieve accurate and live **Hotel Room Offers** for a specific hotel you need to make a call to the **[Retrieve Hotel Room Offers](/v1/documentation#operation/getV1Hotel_room_offers)** endpoint. We do not recommend to systematically call **[Retrieve Hotel Room Offers](/v1/documentation#operation/getV1Hotel_room_offers)** for each hotel offer retrieved as it may trigger rate limiting on your API calls. Rather we recommend to do this as an explicit two-step process: first you check **Hotel Offers** around a location, then, once your customer shows interest in a specific **Hotel Offer**, you check **Hotel Room Offers** on that specific hotel. This endpoint requires ⚛️ **[Polling](/v1/documentation#tag/Polling)**.
|
|
4136
4136
|
* ⚛️ Retrieve Hotel Offers
|
|
4137
4137
|
*/
|
|
4138
4138
|
async list(e, n, i) {
|
|
4139
|
-
return await
|
|
4139
|
+
return await rt(
|
|
4140
4140
|
() => this.listRaw(e, i),
|
|
4141
4141
|
{ type: Oe.HOTEL_SEARCH_POLLING, minCallCount: i?.minCallCount, maxCallCount: i?.maxCallCount },
|
|
4142
4142
|
n
|
|
@@ -4161,23 +4161,23 @@ const Mi = {
|
|
|
4161
4161
|
Asc: "asc",
|
|
4162
4162
|
Desc: "desc"
|
|
4163
4163
|
};
|
|
4164
|
-
class
|
|
4164
|
+
class _a extends j {
|
|
4165
4165
|
/**
|
|
4166
4166
|
* Returns a single Hotel Room Offer Request by id
|
|
4167
4167
|
* Retrieve a Single Hotel Room Offer Request
|
|
4168
4168
|
*/
|
|
4169
4169
|
async retrieveRaw(e, n) {
|
|
4170
4170
|
if (e.id === null || e.id === void 0)
|
|
4171
|
-
throw new
|
|
4172
|
-
const i = {},
|
|
4173
|
-
this.configuration && this.configuration.apiKey && (
|
|
4171
|
+
throw new z("id", "Required parameter requestParameters.id was null or undefined when calling getV1HotelRoomOfferRequestsId.");
|
|
4172
|
+
const i = {}, r = {};
|
|
4173
|
+
this.configuration && this.configuration.apiKey && (r["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
4174
4174
|
const l = await this.request({
|
|
4175
4175
|
path: "/v1/hotel_room_offer_requests/{id}".replace("{id}", encodeURIComponent(String(e.id))),
|
|
4176
4176
|
method: "GET",
|
|
4177
|
-
headers:
|
|
4177
|
+
headers: r,
|
|
4178
4178
|
query: b(i, v.Snake)
|
|
4179
4179
|
}, n);
|
|
4180
|
-
return await new
|
|
4180
|
+
return await new _(l, (u) => b(u, v.Camel)).value();
|
|
4181
4181
|
}
|
|
4182
4182
|
/**
|
|
4183
4183
|
* Returns a single Hotel Room Offer Request by id
|
|
@@ -4191,16 +4191,16 @@ class Ua extends j {
|
|
|
4191
4191
|
* Create an Hotel Room Offer Request
|
|
4192
4192
|
*/
|
|
4193
4193
|
async createRaw(e, n) {
|
|
4194
|
-
const i = {},
|
|
4195
|
-
|
|
4194
|
+
const i = {}, r = {};
|
|
4195
|
+
r["Content-Type"] = "application/json", this.configuration && this.configuration.apiKey && (r["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
4196
4196
|
const l = await this.request({
|
|
4197
4197
|
path: "/v1/hotel_room_offer_requests",
|
|
4198
4198
|
method: "POST",
|
|
4199
|
-
headers:
|
|
4199
|
+
headers: r,
|
|
4200
4200
|
query: b(i, v.Snake),
|
|
4201
4201
|
body: b(e.hotelRoomOfferRequestCreateApi, v.Snake)
|
|
4202
4202
|
}, n);
|
|
4203
|
-
return await new
|
|
4203
|
+
return await new _(l, (u) => b(u, v.Camel)).value();
|
|
4204
4204
|
}
|
|
4205
4205
|
/**
|
|
4206
4206
|
* To check available rates, or **Hotel Room Offers**, at a specific hotel, you first need to create an **Hotel Room Offer Request**. An **Hotel Room Offer Request** describes the guests (adult and child count), the ideal room count, when they want to check in and check out and the id of the hotel you want to check available rates at.
|
|
@@ -4210,34 +4210,34 @@ class Ua extends j {
|
|
|
4210
4210
|
return this.createRaw(e, n);
|
|
4211
4211
|
}
|
|
4212
4212
|
}
|
|
4213
|
-
class
|
|
4213
|
+
class za extends j {
|
|
4214
4214
|
/**
|
|
4215
4215
|
* You\'ll make a call to the **Hotel Room Offers** endpoint in order to get a list of **Hotel Room Offers** resulting from your **Hotel Room Offer Request** parameters. We\'ll send your rate check request to the specific hotel matching the hotel ID you provided previously and the **Hotel Room Offers** endpoint will return the available rates at this specific hotel. An **Hotel Room Offer** describes hotel rooms: prices, remaining count available (when applicable), details about the room itself (e.g., beds, etc) and other information you\'ll find below. ⚠️ **Cancellation Policies** attached to each **Hotel Room Offer** returned by this endpoint will most likely be **<span style=\"color:red\">cached data</span>** and should not be considered as accurate, although in most case they will reflect the actual/live ones. In order to retrieve accurate and live **Cancellation Policies** for a specific **Hotel Room Offer** you need to make a call to the **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)**. However, we do not recommend to systematically call **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** for each **Hotel Room Offer** retrieved as it will most likely trigger rate limiting on your API calls. Rather we recommend to do this as an explicit two-step process: first you check **Hotel Room Offers**, then, once your customer shows interest in a specific **Hotel Room Offer**, you make the call to the **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** on behalf of your customer. This endpoint requires ⚛️ **[Polling](/v1/documentation#tag/Polling)**.
|
|
4216
4216
|
* ⚛️ Retrieve Hotel Room Offers
|
|
4217
4217
|
*/
|
|
4218
4218
|
async listRaw(e, n) {
|
|
4219
4219
|
if (e.currency === null || e.currency === void 0)
|
|
4220
|
-
throw new
|
|
4220
|
+
throw new z("currency", "Required parameter requestParameters.currency was null or undefined when calling getV1HotelRoomOffers.");
|
|
4221
4221
|
if (e.hotelRoomOfferRequestId === null || e.hotelRoomOfferRequestId === void 0)
|
|
4222
|
-
throw new
|
|
4222
|
+
throw new z("hotelRoomOfferRequestId", "Required parameter requestParameters.hotelRoomOfferRequestId was null or undefined when calling getV1HotelRoomOffers.");
|
|
4223
4223
|
const i = {};
|
|
4224
4224
|
e.currency !== void 0 && (i.currency = e.currency), e.hotelRoomOfferRequestId !== void 0 && (i.hotel_room_offer_request_id = e.hotelRoomOfferRequestId), e.lang !== void 0 && (i.lang = e.lang), e.limit !== void 0 && (i.limit = e.limit);
|
|
4225
|
-
const
|
|
4226
|
-
this.configuration && this.configuration.apiKey && (
|
|
4225
|
+
const r = {};
|
|
4226
|
+
this.configuration && this.configuration.apiKey && (r["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
4227
4227
|
const l = await this.request({
|
|
4228
4228
|
path: "/v1/hotel_room_offers",
|
|
4229
4229
|
method: "GET",
|
|
4230
|
-
headers:
|
|
4230
|
+
headers: r,
|
|
4231
4231
|
query: b(i, v.Snake)
|
|
4232
4232
|
}, n);
|
|
4233
|
-
return await new
|
|
4233
|
+
return await new _(l, (u) => b(u, v.Camel)).value();
|
|
4234
4234
|
}
|
|
4235
4235
|
/**
|
|
4236
4236
|
* You\'ll make a call to the **Hotel Room Offers** endpoint in order to get a list of **Hotel Room Offers** resulting from your **Hotel Room Offer Request** parameters. We\'ll send your rate check request to the specific hotel matching the hotel ID you provided previously and the **Hotel Room Offers** endpoint will return the available rates at this specific hotel. An **Hotel Room Offer** describes hotel rooms: prices, remaining count available (when applicable), details about the room itself (e.g., beds, etc) and other information you\'ll find below. ⚠️ **Cancellation Policies** attached to each **Hotel Room Offer** returned by this endpoint will most likely be **<span style=\"color:red\">cached data</span>** and should not be considered as accurate, although in most case they will reflect the actual/live ones. In order to retrieve accurate and live **Cancellation Policies** for a specific **Hotel Room Offer** you need to make a call to the **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)**. However, we do not recommend to systematically call **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** for each **Hotel Room Offer** retrieved as it will most likely trigger rate limiting on your API calls. Rather we recommend to do this as an explicit two-step process: first you check **Hotel Room Offers**, then, once your customer shows interest in a specific **Hotel Room Offer**, you make the call to the **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** on behalf of your customer. This endpoint requires ⚛️ **[Polling](/v1/documentation#tag/Polling)**.
|
|
4237
4237
|
* ⚛️ Retrieve Hotel Room Offers
|
|
4238
4238
|
*/
|
|
4239
4239
|
async list(e, n, i) {
|
|
4240
|
-
return await
|
|
4240
|
+
return await rt(
|
|
4241
4241
|
() => this.listRaw(e, i),
|
|
4242
4242
|
{ type: Oe.HOTEL_ROOM_OFFERS, minCallCount: i?.minCallCount, maxCallCount: i?.maxCallCount },
|
|
4243
4243
|
n
|
|
@@ -4248,16 +4248,16 @@ class _a extends j {
|
|
|
4248
4248
|
* Create Hotel Room Offer
|
|
4249
4249
|
*/
|
|
4250
4250
|
async createRaw(e, n) {
|
|
4251
|
-
const i = {},
|
|
4252
|
-
|
|
4251
|
+
const i = {}, r = {};
|
|
4252
|
+
r["Content-Type"] = "application/json", this.configuration && this.configuration.apiKey && (r["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
4253
4253
|
const l = await this.request({
|
|
4254
4254
|
path: "/v1/hotel_room_offers",
|
|
4255
4255
|
method: "POST",
|
|
4256
|
-
headers:
|
|
4256
|
+
headers: r,
|
|
4257
4257
|
query: b(i, v.Snake),
|
|
4258
4258
|
body: b(e.hotelRoomOffersCreateApi, v.Snake)
|
|
4259
4259
|
}, n);
|
|
4260
|
-
return await new
|
|
4260
|
+
return await new _(l, (u) => b(u, v.Camel)).value();
|
|
4261
4261
|
}
|
|
4262
4262
|
/**
|
|
4263
4263
|
* This enpoint creates a new **Hotel Room Offer** based on previously fetched **Hotel Room Offer(s)** and may be used for the following purposes: - Check a specific **Hotel Room Offer** live availability - Create a new **Hotel Room Offer** with **type = \"PACKAGE\"** based on multiple **Hotel Room Offers** where **type = \"HOTEL_ROOM\"** and be able to call **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** with it - Update an existing **Hotel Room Offer** with **type = \"PACKAGE\"** in order to include extra option(s) like breakfast in the returned price. We strongly recommend to make use of this endpoint if you want to offer some kind of Shopping Cart experience to your customer when **[Retrieve HotelRoom Offers endpoint](/v1/documentation#operation/getV1Hotel_room_offers)** returns multiple **Hotel Room Offers** with **type = \"HOTEL_ROOM\"**.
|
|
@@ -4276,20 +4276,20 @@ const Bi = {
|
|
|
4276
4276
|
NlNl: "nl-NL",
|
|
4277
4277
|
PtPt: "pt-PT"
|
|
4278
4278
|
};
|
|
4279
|
-
class
|
|
4279
|
+
class Fa extends j {
|
|
4280
4280
|
/**
|
|
4281
4281
|
* Delete a hotel rooming list guest from a booking based on a valid token. This endpoint is public and does not require a secret API key.
|
|
4282
4282
|
* Delete Hotel Room List Guest
|
|
4283
4283
|
*/
|
|
4284
4284
|
async deleteRaw(e, n) {
|
|
4285
4285
|
if (e.id === null || e.id === void 0)
|
|
4286
|
-
throw new
|
|
4286
|
+
throw new z("id", "Required parameter requestParameters.id was null or undefined when calling deleteV1HotelRoomingListGuestsTokenId.");
|
|
4287
4287
|
if (e.token === null || e.token === void 0)
|
|
4288
|
-
throw new
|
|
4289
|
-
const i = {},
|
|
4288
|
+
throw new z("token", "Required parameter requestParameters.token was null or undefined when calling deleteV1HotelRoomingListGuestsTokenId.");
|
|
4289
|
+
const i = {}, r = {}, l = await this.request({
|
|
4290
4290
|
path: "/v1/hotel_rooming_list_guests/{token}/{id}".replace("{id}", encodeURIComponent(String(e.id))).replace("{token}", encodeURIComponent(String(e.token))),
|
|
4291
4291
|
method: "DELETE",
|
|
4292
|
-
headers:
|
|
4292
|
+
headers: r,
|
|
4293
4293
|
query: b(i, v.Snake)
|
|
4294
4294
|
}, n);
|
|
4295
4295
|
return new Oa(l);
|
|
@@ -4307,19 +4307,19 @@ class za extends j {
|
|
|
4307
4307
|
*/
|
|
4308
4308
|
async updateRaw(e, n) {
|
|
4309
4309
|
if (e.id === null || e.id === void 0)
|
|
4310
|
-
throw new
|
|
4310
|
+
throw new z("id", "Required parameter requestParameters.id was null or undefined when calling patchV1HotelRoomingListGuestsTokenId.");
|
|
4311
4311
|
if (e.token === null || e.token === void 0)
|
|
4312
|
-
throw new
|
|
4313
|
-
const i = {},
|
|
4314
|
-
|
|
4312
|
+
throw new z("token", "Required parameter requestParameters.token was null or undefined when calling patchV1HotelRoomingListGuestsTokenId.");
|
|
4313
|
+
const i = {}, r = {};
|
|
4314
|
+
r["Content-Type"] = "application/json";
|
|
4315
4315
|
const l = await this.request({
|
|
4316
4316
|
path: "/v1/hotel_rooming_list_guests/{token}/{id}".replace("{id}", encodeURIComponent(String(e.id))).replace("{token}", encodeURIComponent(String(e.token))),
|
|
4317
4317
|
method: "PATCH",
|
|
4318
|
-
headers:
|
|
4318
|
+
headers: r,
|
|
4319
4319
|
query: b(i, v.Snake),
|
|
4320
4320
|
body: b(e.hotelRoomingListGuestsUpdateApi, v.Snake)
|
|
4321
4321
|
}, n);
|
|
4322
|
-
return await new
|
|
4322
|
+
return await new _(l, (u) => b(u, v.Camel)).value();
|
|
4323
4323
|
}
|
|
4324
4324
|
/**
|
|
4325
4325
|
* Update a hotel rooming list guest from a booking based on a valid token. This endpoint is public and does not require a secret API key.
|
|
@@ -4334,17 +4334,17 @@ class za extends j {
|
|
|
4334
4334
|
*/
|
|
4335
4335
|
async createRaw(e, n) {
|
|
4336
4336
|
if (e.token === null || e.token === void 0)
|
|
4337
|
-
throw new
|
|
4338
|
-
const i = {},
|
|
4339
|
-
|
|
4337
|
+
throw new z("token", "Required parameter requestParameters.token was null or undefined when calling postV1HotelRoomingListGuestsToken.");
|
|
4338
|
+
const i = {}, r = {};
|
|
4339
|
+
r["Content-Type"] = "application/json";
|
|
4340
4340
|
const l = await this.request({
|
|
4341
4341
|
path: "/v1/hotel_rooming_list_guests/{token}".replace("{token}", encodeURIComponent(String(e.token))),
|
|
4342
4342
|
method: "POST",
|
|
4343
|
-
headers:
|
|
4343
|
+
headers: r,
|
|
4344
4344
|
query: b(i, v.Snake),
|
|
4345
4345
|
body: b(e.hotelRoomingListGuestsCreateApi, v.Snake)
|
|
4346
4346
|
}, n);
|
|
4347
|
-
return await new
|
|
4347
|
+
return await new _(l, (u) => b(u, v.Camel)).value();
|
|
4348
4348
|
}
|
|
4349
4349
|
/**
|
|
4350
4350
|
* Create a new hotel rooming list guest to a booking based on a valid token. This endpoint is public and does not require a secret API key.
|
|
@@ -4354,23 +4354,23 @@ class za extends j {
|
|
|
4354
4354
|
return this.createRaw(e, n);
|
|
4355
4355
|
}
|
|
4356
4356
|
}
|
|
4357
|
-
class
|
|
4357
|
+
class $a extends j {
|
|
4358
4358
|
/**
|
|
4359
4359
|
* Get Hotel Rooming Lists of a booking. This endpoint is public and does not require a secret API key.
|
|
4360
4360
|
* Get Hotel Rooming Lists for a booking
|
|
4361
4361
|
*/
|
|
4362
4362
|
async listRaw(e, n) {
|
|
4363
4363
|
if (e.token === null || e.token === void 0)
|
|
4364
|
-
throw new
|
|
4364
|
+
throw new z("token", "Required parameter requestParameters.token was null or undefined when calling getV1HotelRoomingListsToken.");
|
|
4365
4365
|
const i = {};
|
|
4366
4366
|
e.lang !== void 0 && (i.lang = e.lang);
|
|
4367
|
-
const
|
|
4367
|
+
const r = {}, l = await this.request({
|
|
4368
4368
|
path: "/v1/hotel_rooming_lists/{token}".replace("{token}", encodeURIComponent(String(e.token))),
|
|
4369
4369
|
method: "GET",
|
|
4370
|
-
headers:
|
|
4370
|
+
headers: r,
|
|
4371
4371
|
query: b(i, v.Snake)
|
|
4372
4372
|
}, n);
|
|
4373
|
-
return new
|
|
4373
|
+
return new _(l, (u) => b(u, v.Camel)).value();
|
|
4374
4374
|
}
|
|
4375
4375
|
/**
|
|
4376
4376
|
* Get Hotel Rooming Lists of a booking. This endpoint is public and does not require a secret API key.
|
|
@@ -4389,25 +4389,25 @@ const Ei = {
|
|
|
4389
4389
|
NlNl: "nl-NL",
|
|
4390
4390
|
PtPt: "pt-PT"
|
|
4391
4391
|
};
|
|
4392
|
-
class
|
|
4392
|
+
class Ha extends j {
|
|
4393
4393
|
/**
|
|
4394
4394
|
* Returns a single Hotel by id with their content localize into the requested **lang**.
|
|
4395
4395
|
* Retrieve a Hotel
|
|
4396
4396
|
*/
|
|
4397
4397
|
async retrieveRaw(e, n) {
|
|
4398
4398
|
if (e.id === null || e.id === void 0)
|
|
4399
|
-
throw new
|
|
4399
|
+
throw new z("id", "Required parameter requestParameters.id was null or undefined when calling getV1HotelsId.");
|
|
4400
4400
|
const i = {};
|
|
4401
4401
|
e.event !== void 0 && (i.event = e.event), e.lang !== void 0 && (i.lang = e.lang);
|
|
4402
|
-
const
|
|
4403
|
-
this.configuration && this.configuration.apiKey && (
|
|
4402
|
+
const r = {};
|
|
4403
|
+
this.configuration && this.configuration.apiKey && (r["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
4404
4404
|
const l = await this.request({
|
|
4405
4405
|
path: "/v1/hotels/{id}".replace("{id}", encodeURIComponent(String(e.id))),
|
|
4406
4406
|
method: "GET",
|
|
4407
|
-
headers:
|
|
4407
|
+
headers: r,
|
|
4408
4408
|
query: b(i, v.Snake)
|
|
4409
4409
|
}, n);
|
|
4410
|
-
return await new
|
|
4410
|
+
return await new _(l, (u) => b(u, v.Camel)).value();
|
|
4411
4411
|
}
|
|
4412
4412
|
/**
|
|
4413
4413
|
* Returns a single Hotel by id with their content localize into the requested **lang**.
|
|
@@ -4427,7 +4427,7 @@ const Li = {
|
|
|
4427
4427
|
PtPt: "pt-PT"
|
|
4428
4428
|
};
|
|
4429
4429
|
var ue = { exports: {} }, Xe;
|
|
4430
|
-
function
|
|
4430
|
+
function xa() {
|
|
4431
4431
|
return Xe || (Xe = 1, (function(t, e) {
|
|
4432
4432
|
var n = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof le < "u" && le, i = (function() {
|
|
4433
4433
|
function l() {
|
|
@@ -4451,8 +4451,8 @@ function Ha() {
|
|
|
4451
4451
|
formData: "FormData" in c,
|
|
4452
4452
|
arrayBuffer: "ArrayBuffer" in c
|
|
4453
4453
|
};
|
|
4454
|
-
function S(
|
|
4455
|
-
return
|
|
4454
|
+
function S(o) {
|
|
4455
|
+
return o && DataView.prototype.isPrototypeOf(o);
|
|
4456
4456
|
}
|
|
4457
4457
|
if (h.arrayBuffer)
|
|
4458
4458
|
var P = [
|
|
@@ -4465,112 +4465,112 @@ function Ha() {
|
|
|
4465
4465
|
"[object Uint32Array]",
|
|
4466
4466
|
"[object Float32Array]",
|
|
4467
4467
|
"[object Float64Array]"
|
|
4468
|
-
], y = ArrayBuffer.isView || function(
|
|
4469
|
-
return
|
|
4468
|
+
], y = ArrayBuffer.isView || function(o) {
|
|
4469
|
+
return o && P.indexOf(Object.prototype.toString.call(o)) > -1;
|
|
4470
4470
|
};
|
|
4471
|
-
function p(
|
|
4472
|
-
if (typeof
|
|
4473
|
-
throw new TypeError('Invalid character in header field name: "' +
|
|
4474
|
-
return
|
|
4471
|
+
function p(o) {
|
|
4472
|
+
if (typeof o != "string" && (o = String(o)), /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(o) || o === "")
|
|
4473
|
+
throw new TypeError('Invalid character in header field name: "' + o + '"');
|
|
4474
|
+
return o.toLowerCase();
|
|
4475
4475
|
}
|
|
4476
|
-
function w(
|
|
4477
|
-
return typeof
|
|
4476
|
+
function w(o) {
|
|
4477
|
+
return typeof o != "string" && (o = String(o)), o;
|
|
4478
4478
|
}
|
|
4479
|
-
function A(
|
|
4479
|
+
function A(o) {
|
|
4480
4480
|
var s = {
|
|
4481
4481
|
next: function() {
|
|
4482
|
-
var
|
|
4483
|
-
return { done:
|
|
4482
|
+
var d = o.shift();
|
|
4483
|
+
return { done: d === void 0, value: d };
|
|
4484
4484
|
}
|
|
4485
4485
|
};
|
|
4486
4486
|
return h.iterable && (s[Symbol.iterator] = function() {
|
|
4487
4487
|
return s;
|
|
4488
4488
|
}), s;
|
|
4489
4489
|
}
|
|
4490
|
-
function f(
|
|
4491
|
-
this.map = {},
|
|
4492
|
-
this.append(
|
|
4493
|
-
}, this) : Array.isArray(
|
|
4490
|
+
function f(o) {
|
|
4491
|
+
this.map = {}, o instanceof f ? o.forEach(function(s, d) {
|
|
4492
|
+
this.append(d, s);
|
|
4493
|
+
}, this) : Array.isArray(o) ? o.forEach(function(s) {
|
|
4494
4494
|
if (s.length != 2)
|
|
4495
4495
|
throw new TypeError("Headers constructor: expected name/value pair to be length 2, found" + s.length);
|
|
4496
4496
|
this.append(s[0], s[1]);
|
|
4497
|
-
}, this) :
|
|
4498
|
-
this.append(s,
|
|
4497
|
+
}, this) : o && Object.getOwnPropertyNames(o).forEach(function(s) {
|
|
4498
|
+
this.append(s, o[s]);
|
|
4499
4499
|
}, this);
|
|
4500
4500
|
}
|
|
4501
|
-
f.prototype.append = function(
|
|
4502
|
-
|
|
4503
|
-
var
|
|
4504
|
-
this.map[
|
|
4505
|
-
}, f.prototype.delete = function(
|
|
4506
|
-
delete this.map[p(
|
|
4507
|
-
}, f.prototype.get = function(
|
|
4508
|
-
return
|
|
4509
|
-
}, f.prototype.has = function(
|
|
4510
|
-
return this.map.hasOwnProperty(p(
|
|
4511
|
-
}, f.prototype.set = function(
|
|
4512
|
-
this.map[p(
|
|
4513
|
-
}, f.prototype.forEach = function(
|
|
4514
|
-
for (var
|
|
4515
|
-
this.map.hasOwnProperty(
|
|
4501
|
+
f.prototype.append = function(o, s) {
|
|
4502
|
+
o = p(o), s = w(s);
|
|
4503
|
+
var d = this.map[o];
|
|
4504
|
+
this.map[o] = d ? d + ", " + s : s;
|
|
4505
|
+
}, f.prototype.delete = function(o) {
|
|
4506
|
+
delete this.map[p(o)];
|
|
4507
|
+
}, f.prototype.get = function(o) {
|
|
4508
|
+
return o = p(o), this.has(o) ? this.map[o] : null;
|
|
4509
|
+
}, f.prototype.has = function(o) {
|
|
4510
|
+
return this.map.hasOwnProperty(p(o));
|
|
4511
|
+
}, f.prototype.set = function(o, s) {
|
|
4512
|
+
this.map[p(o)] = w(s);
|
|
4513
|
+
}, f.prototype.forEach = function(o, s) {
|
|
4514
|
+
for (var d in this.map)
|
|
4515
|
+
this.map.hasOwnProperty(d) && o.call(s, this.map[d], d, this);
|
|
4516
4516
|
}, f.prototype.keys = function() {
|
|
4517
|
-
var
|
|
4518
|
-
return this.forEach(function(s,
|
|
4519
|
-
|
|
4520
|
-
}), A(
|
|
4517
|
+
var o = [];
|
|
4518
|
+
return this.forEach(function(s, d) {
|
|
4519
|
+
o.push(d);
|
|
4520
|
+
}), A(o);
|
|
4521
4521
|
}, f.prototype.values = function() {
|
|
4522
|
-
var
|
|
4522
|
+
var o = [];
|
|
4523
4523
|
return this.forEach(function(s) {
|
|
4524
|
-
|
|
4525
|
-
}), A(
|
|
4524
|
+
o.push(s);
|
|
4525
|
+
}), A(o);
|
|
4526
4526
|
}, f.prototype.entries = function() {
|
|
4527
|
-
var
|
|
4528
|
-
return this.forEach(function(s,
|
|
4529
|
-
|
|
4530
|
-
}), A(
|
|
4527
|
+
var o = [];
|
|
4528
|
+
return this.forEach(function(s, d) {
|
|
4529
|
+
o.push([d, s]);
|
|
4530
|
+
}), A(o);
|
|
4531
4531
|
}, h.iterable && (f.prototype[Symbol.iterator] = f.prototype.entries);
|
|
4532
|
-
function M(
|
|
4533
|
-
if (!
|
|
4534
|
-
if (
|
|
4532
|
+
function M(o) {
|
|
4533
|
+
if (!o._noBody) {
|
|
4534
|
+
if (o.bodyUsed)
|
|
4535
4535
|
return Promise.reject(new TypeError("Already read"));
|
|
4536
|
-
|
|
4536
|
+
o.bodyUsed = !0;
|
|
4537
4537
|
}
|
|
4538
4538
|
}
|
|
4539
|
-
function
|
|
4540
|
-
return new Promise(function(s,
|
|
4541
|
-
|
|
4542
|
-
s(
|
|
4543
|
-
},
|
|
4544
|
-
|
|
4539
|
+
function k(o) {
|
|
4540
|
+
return new Promise(function(s, d) {
|
|
4541
|
+
o.onload = function() {
|
|
4542
|
+
s(o.result);
|
|
4543
|
+
}, o.onerror = function() {
|
|
4544
|
+
d(o.error);
|
|
4545
4545
|
};
|
|
4546
4546
|
});
|
|
4547
4547
|
}
|
|
4548
|
-
function O(
|
|
4549
|
-
var s = new FileReader(),
|
|
4550
|
-
return s.readAsArrayBuffer(
|
|
4548
|
+
function O(o) {
|
|
4549
|
+
var s = new FileReader(), d = k(s);
|
|
4550
|
+
return s.readAsArrayBuffer(o), d;
|
|
4551
4551
|
}
|
|
4552
|
-
function E(
|
|
4553
|
-
var s = new FileReader(),
|
|
4554
|
-
return s.readAsText(
|
|
4552
|
+
function E(o) {
|
|
4553
|
+
var s = new FileReader(), d = k(s), m = /charset=([A-Za-z0-9_-]+)/.exec(o.type), D = m ? m[1] : "utf-8";
|
|
4554
|
+
return s.readAsText(o, D), d;
|
|
4555
4555
|
}
|
|
4556
|
-
function
|
|
4557
|
-
for (var s = new Uint8Array(
|
|
4558
|
-
m
|
|
4559
|
-
return
|
|
4556
|
+
function U(o) {
|
|
4557
|
+
for (var s = new Uint8Array(o), d = new Array(s.length), m = 0; m < s.length; m++)
|
|
4558
|
+
d[m] = String.fromCharCode(s[m]);
|
|
4559
|
+
return d.join("");
|
|
4560
4560
|
}
|
|
4561
|
-
function N(
|
|
4562
|
-
if (
|
|
4563
|
-
return
|
|
4564
|
-
var s = new Uint8Array(
|
|
4565
|
-
return s.set(new Uint8Array(
|
|
4561
|
+
function N(o) {
|
|
4562
|
+
if (o.slice)
|
|
4563
|
+
return o.slice(0);
|
|
4564
|
+
var s = new Uint8Array(o.byteLength);
|
|
4565
|
+
return s.set(new Uint8Array(o)), s.buffer;
|
|
4566
4566
|
}
|
|
4567
|
-
function
|
|
4568
|
-
return this.bodyUsed = !1, this._initBody = function(
|
|
4569
|
-
this.bodyUsed = this.bodyUsed, this._bodyInit =
|
|
4567
|
+
function I() {
|
|
4568
|
+
return this.bodyUsed = !1, this._initBody = function(o) {
|
|
4569
|
+
this.bodyUsed = this.bodyUsed, this._bodyInit = o, o ? typeof o == "string" ? this._bodyText = o : h.blob && Blob.prototype.isPrototypeOf(o) ? this._bodyBlob = o : h.formData && FormData.prototype.isPrototypeOf(o) ? this._bodyFormData = o : h.searchParams && URLSearchParams.prototype.isPrototypeOf(o) ? this._bodyText = o.toString() : h.arrayBuffer && h.blob && S(o) ? (this._bodyArrayBuffer = N(o.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : h.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(o) || y(o)) ? this._bodyArrayBuffer = N(o) : this._bodyText = o = Object.prototype.toString.call(o) : (this._noBody = !0, this._bodyText = ""), this.headers.get("content-type") || (typeof o == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : h.searchParams && URLSearchParams.prototype.isPrototypeOf(o) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
|
|
4570
4570
|
}, h.blob && (this.blob = function() {
|
|
4571
|
-
var
|
|
4572
|
-
if (
|
|
4573
|
-
return
|
|
4571
|
+
var o = M(this);
|
|
4572
|
+
if (o)
|
|
4573
|
+
return o;
|
|
4574
4574
|
if (this._bodyBlob)
|
|
4575
4575
|
return Promise.resolve(this._bodyBlob);
|
|
4576
4576
|
if (this._bodyArrayBuffer)
|
|
@@ -4580,8 +4580,8 @@ function Ha() {
|
|
|
4580
4580
|
return Promise.resolve(new Blob([this._bodyText]));
|
|
4581
4581
|
}), this.arrayBuffer = function() {
|
|
4582
4582
|
if (this._bodyArrayBuffer) {
|
|
4583
|
-
var
|
|
4584
|
-
return
|
|
4583
|
+
var o = M(this);
|
|
4584
|
+
return o || (ArrayBuffer.isView(this._bodyArrayBuffer) ? Promise.resolve(
|
|
4585
4585
|
this._bodyArrayBuffer.buffer.slice(
|
|
4586
4586
|
this._bodyArrayBuffer.byteOffset,
|
|
4587
4587
|
this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength
|
|
@@ -4593,93 +4593,93 @@ function Ha() {
|
|
|
4593
4593
|
throw new Error("could not read as ArrayBuffer");
|
|
4594
4594
|
}
|
|
4595
4595
|
}, this.text = function() {
|
|
4596
|
-
var
|
|
4597
|
-
if (
|
|
4598
|
-
return
|
|
4596
|
+
var o = M(this);
|
|
4597
|
+
if (o)
|
|
4598
|
+
return o;
|
|
4599
4599
|
if (this._bodyBlob)
|
|
4600
4600
|
return E(this._bodyBlob);
|
|
4601
4601
|
if (this._bodyArrayBuffer)
|
|
4602
|
-
return Promise.resolve(
|
|
4602
|
+
return Promise.resolve(U(this._bodyArrayBuffer));
|
|
4603
4603
|
if (this._bodyFormData)
|
|
4604
4604
|
throw new Error("could not read FormData body as text");
|
|
4605
4605
|
return Promise.resolve(this._bodyText);
|
|
4606
4606
|
}, h.formData && (this.formData = function() {
|
|
4607
|
-
return this.text().then(
|
|
4607
|
+
return this.text().then(K);
|
|
4608
4608
|
}), this.json = function() {
|
|
4609
4609
|
return this.text().then(JSON.parse);
|
|
4610
4610
|
}, this;
|
|
4611
4611
|
}
|
|
4612
|
-
var
|
|
4613
|
-
function
|
|
4614
|
-
var s =
|
|
4615
|
-
return
|
|
4612
|
+
var x = ["CONNECT", "DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "TRACE"];
|
|
4613
|
+
function C(o) {
|
|
4614
|
+
var s = o.toUpperCase();
|
|
4615
|
+
return x.indexOf(s) > -1 ? s : o;
|
|
4616
4616
|
}
|
|
4617
|
-
function
|
|
4618
|
-
if (!(this instanceof
|
|
4617
|
+
function F(o, s) {
|
|
4618
|
+
if (!(this instanceof F))
|
|
4619
4619
|
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
4620
4620
|
s = s || {};
|
|
4621
|
-
var
|
|
4622
|
-
if (
|
|
4623
|
-
if (
|
|
4621
|
+
var d = s.body;
|
|
4622
|
+
if (o instanceof F) {
|
|
4623
|
+
if (o.bodyUsed)
|
|
4624
4624
|
throw new TypeError("Already read");
|
|
4625
|
-
this.url =
|
|
4625
|
+
this.url = o.url, this.credentials = o.credentials, s.headers || (this.headers = new f(o.headers)), this.method = o.method, this.mode = o.mode, this.signal = o.signal, !d && o._bodyInit != null && (d = o._bodyInit, o.bodyUsed = !0);
|
|
4626
4626
|
} else
|
|
4627
|
-
this.url = String(
|
|
4628
|
-
if (this.credentials = s.credentials || this.credentials || "same-origin", (s.headers || !this.headers) && (this.headers = new f(s.headers)), this.method =
|
|
4627
|
+
this.url = String(o);
|
|
4628
|
+
if (this.credentials = s.credentials || this.credentials || "same-origin", (s.headers || !this.headers) && (this.headers = new f(s.headers)), this.method = C(s.method || this.method || "GET"), this.mode = s.mode || this.mode || null, this.signal = s.signal || this.signal || (function() {
|
|
4629
4629
|
if ("AbortController" in c) {
|
|
4630
4630
|
var g = new AbortController();
|
|
4631
4631
|
return g.signal;
|
|
4632
4632
|
}
|
|
4633
|
-
})(), this.referrer = null, (this.method === "GET" || this.method === "HEAD") &&
|
|
4633
|
+
})(), this.referrer = null, (this.method === "GET" || this.method === "HEAD") && d)
|
|
4634
4634
|
throw new TypeError("Body not allowed for GET or HEAD requests");
|
|
4635
|
-
if (this._initBody(
|
|
4636
|
-
var
|
|
4637
|
-
if (
|
|
4638
|
-
this.url = this.url.replace(
|
|
4635
|
+
if (this._initBody(d), (this.method === "GET" || this.method === "HEAD") && (s.cache === "no-store" || s.cache === "no-cache")) {
|
|
4636
|
+
var m = /([?&])_=[^&]*/;
|
|
4637
|
+
if (m.test(this.url))
|
|
4638
|
+
this.url = this.url.replace(m, "$1_=" + (/* @__PURE__ */ new Date()).getTime());
|
|
4639
4639
|
else {
|
|
4640
4640
|
var D = /\?/;
|
|
4641
4641
|
this.url += (D.test(this.url) ? "&" : "?") + "_=" + (/* @__PURE__ */ new Date()).getTime();
|
|
4642
4642
|
}
|
|
4643
4643
|
}
|
|
4644
4644
|
}
|
|
4645
|
-
|
|
4646
|
-
return new
|
|
4645
|
+
F.prototype.clone = function() {
|
|
4646
|
+
return new F(this, { body: this._bodyInit });
|
|
4647
4647
|
};
|
|
4648
|
-
function
|
|
4648
|
+
function K(o) {
|
|
4649
4649
|
var s = new FormData();
|
|
4650
|
-
return
|
|
4651
|
-
if (
|
|
4652
|
-
var
|
|
4650
|
+
return o.trim().split("&").forEach(function(d) {
|
|
4651
|
+
if (d) {
|
|
4652
|
+
var m = d.split("="), D = m.shift().replace(/\+/g, " "), g = m.join("=").replace(/\+/g, " ");
|
|
4653
4653
|
s.append(decodeURIComponent(D), decodeURIComponent(g));
|
|
4654
4654
|
}
|
|
4655
4655
|
}), s;
|
|
4656
4656
|
}
|
|
4657
|
-
function T(
|
|
4658
|
-
var s = new f(),
|
|
4659
|
-
return
|
|
4660
|
-
return
|
|
4661
|
-
`) === 0 ?
|
|
4662
|
-
}).forEach(function(
|
|
4663
|
-
var D =
|
|
4657
|
+
function T(o) {
|
|
4658
|
+
var s = new f(), d = o.replace(/\r?\n[\t ]+/g, " ");
|
|
4659
|
+
return d.split("\r").map(function(m) {
|
|
4660
|
+
return m.indexOf(`
|
|
4661
|
+
`) === 0 ? m.substr(1, m.length) : m;
|
|
4662
|
+
}).forEach(function(m) {
|
|
4663
|
+
var D = m.split(":"), g = D.shift().trim();
|
|
4664
4664
|
if (g) {
|
|
4665
4665
|
var L = D.join(":").trim();
|
|
4666
4666
|
try {
|
|
4667
4667
|
s.append(g, L);
|
|
4668
|
-
} catch (
|
|
4669
|
-
console.warn("Response " +
|
|
4668
|
+
} catch (G) {
|
|
4669
|
+
console.warn("Response " + G.message);
|
|
4670
4670
|
}
|
|
4671
4671
|
}
|
|
4672
4672
|
}), s;
|
|
4673
4673
|
}
|
|
4674
|
-
|
|
4675
|
-
function V(
|
|
4674
|
+
I.call(F.prototype);
|
|
4675
|
+
function V(o, s) {
|
|
4676
4676
|
if (!(this instanceof V))
|
|
4677
4677
|
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
4678
4678
|
if (s || (s = {}), this.type = "default", this.status = s.status === void 0 ? 200 : s.status, this.status < 200 || this.status > 599)
|
|
4679
4679
|
throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");
|
|
4680
|
-
this.ok = this.status >= 200 && this.status < 300, this.statusText = s.statusText === void 0 ? "" : "" + s.statusText, this.headers = new f(s.headers), this.url = s.url || "", this._initBody(
|
|
4680
|
+
this.ok = this.status >= 200 && this.status < 300, this.statusText = s.statusText === void 0 ? "" : "" + s.statusText, this.headers = new f(s.headers), this.url = s.url || "", this._initBody(o);
|
|
4681
4681
|
}
|
|
4682
|
-
|
|
4682
|
+
I.call(V.prototype), V.prototype.clone = function() {
|
|
4683
4683
|
return new V(this._bodyInit, {
|
|
4684
4684
|
status: this.status,
|
|
4685
4685
|
statusText: this.statusText,
|
|
@@ -4687,29 +4687,29 @@ function Ha() {
|
|
|
4687
4687
|
url: this.url
|
|
4688
4688
|
});
|
|
4689
4689
|
}, V.error = function() {
|
|
4690
|
-
var
|
|
4691
|
-
return
|
|
4690
|
+
var o = new V(null, { status: 200, statusText: "" });
|
|
4691
|
+
return o.ok = !1, o.status = 0, o.type = "error", o;
|
|
4692
4692
|
};
|
|
4693
|
-
var
|
|
4694
|
-
V.redirect = function(
|
|
4695
|
-
if (
|
|
4693
|
+
var oe = [301, 302, 303, 307, 308];
|
|
4694
|
+
V.redirect = function(o, s) {
|
|
4695
|
+
if (oe.indexOf(s) === -1)
|
|
4696
4696
|
throw new RangeError("Invalid status code");
|
|
4697
|
-
return new V(null, { status: s, headers: { location:
|
|
4697
|
+
return new V(null, { status: s, headers: { location: o } });
|
|
4698
4698
|
}, u.DOMException = c.DOMException;
|
|
4699
4699
|
try {
|
|
4700
4700
|
new u.DOMException();
|
|
4701
4701
|
} catch {
|
|
4702
|
-
u.DOMException = function(s,
|
|
4703
|
-
this.message = s, this.name =
|
|
4704
|
-
var
|
|
4705
|
-
this.stack =
|
|
4702
|
+
u.DOMException = function(s, d) {
|
|
4703
|
+
this.message = s, this.name = d;
|
|
4704
|
+
var m = Error(s);
|
|
4705
|
+
this.stack = m.stack;
|
|
4706
4706
|
}, u.DOMException.prototype = Object.create(Error.prototype), u.DOMException.prototype.constructor = u.DOMException;
|
|
4707
4707
|
}
|
|
4708
|
-
function R(
|
|
4709
|
-
return new Promise(function(
|
|
4710
|
-
var D = new
|
|
4708
|
+
function R(o, s) {
|
|
4709
|
+
return new Promise(function(d, m) {
|
|
4710
|
+
var D = new F(o, s);
|
|
4711
4711
|
if (D.signal && D.signal.aborted)
|
|
4712
|
-
return
|
|
4712
|
+
return m(new u.DOMException("Aborted", "AbortError"));
|
|
4713
4713
|
var g = new XMLHttpRequest();
|
|
4714
4714
|
function L() {
|
|
4715
4715
|
g.abort();
|
|
@@ -4720,65 +4720,65 @@ function Ha() {
|
|
|
4720
4720
|
headers: T(g.getAllResponseHeaders() || "")
|
|
4721
4721
|
};
|
|
4722
4722
|
D.url.indexOf("file://") === 0 && (g.status < 200 || g.status > 599) ? B.status = 200 : B.status = g.status, B.url = "responseURL" in g ? g.responseURL : B.headers.get("X-Request-URL");
|
|
4723
|
-
var
|
|
4723
|
+
var H = "response" in g ? g.response : g.responseText;
|
|
4724
4724
|
setTimeout(function() {
|
|
4725
|
-
|
|
4725
|
+
d(new V(H, B));
|
|
4726
4726
|
}, 0);
|
|
4727
4727
|
}, g.onerror = function() {
|
|
4728
4728
|
setTimeout(function() {
|
|
4729
|
-
|
|
4729
|
+
m(new TypeError("Network request failed"));
|
|
4730
4730
|
}, 0);
|
|
4731
4731
|
}, g.ontimeout = function() {
|
|
4732
4732
|
setTimeout(function() {
|
|
4733
|
-
|
|
4733
|
+
m(new TypeError("Network request timed out"));
|
|
4734
4734
|
}, 0);
|
|
4735
4735
|
}, g.onabort = function() {
|
|
4736
4736
|
setTimeout(function() {
|
|
4737
|
-
|
|
4737
|
+
m(new u.DOMException("Aborted", "AbortError"));
|
|
4738
4738
|
}, 0);
|
|
4739
4739
|
};
|
|
4740
|
-
function
|
|
4740
|
+
function G(B) {
|
|
4741
4741
|
try {
|
|
4742
4742
|
return B === "" && c.location.href ? c.location.href : B;
|
|
4743
4743
|
} catch {
|
|
4744
4744
|
return B;
|
|
4745
4745
|
}
|
|
4746
4746
|
}
|
|
4747
|
-
if (g.open(D.method,
|
|
4748
|
-
var
|
|
4747
|
+
if (g.open(D.method, G(D.url), !0), D.credentials === "include" ? g.withCredentials = !0 : D.credentials === "omit" && (g.withCredentials = !1), "responseType" in g && (h.blob ? g.responseType = "blob" : h.arrayBuffer && (g.responseType = "arraybuffer")), s && typeof s.headers == "object" && !(s.headers instanceof f || c.Headers && s.headers instanceof c.Headers)) {
|
|
4748
|
+
var $ = [];
|
|
4749
4749
|
Object.getOwnPropertyNames(s.headers).forEach(function(B) {
|
|
4750
|
-
|
|
4751
|
-
}), D.headers.forEach(function(B,
|
|
4752
|
-
|
|
4750
|
+
$.push(p(B)), g.setRequestHeader(B, w(s.headers[B]));
|
|
4751
|
+
}), D.headers.forEach(function(B, H) {
|
|
4752
|
+
$.indexOf(H) === -1 && g.setRequestHeader(H, B);
|
|
4753
4753
|
});
|
|
4754
4754
|
} else
|
|
4755
|
-
D.headers.forEach(function(B,
|
|
4756
|
-
g.setRequestHeader(
|
|
4755
|
+
D.headers.forEach(function(B, H) {
|
|
4756
|
+
g.setRequestHeader(H, B);
|
|
4757
4757
|
});
|
|
4758
4758
|
D.signal && (D.signal.addEventListener("abort", L), g.onreadystatechange = function() {
|
|
4759
4759
|
g.readyState === 4 && D.signal.removeEventListener("abort", L);
|
|
4760
4760
|
}), g.send(typeof D._bodyInit > "u" ? null : D._bodyInit);
|
|
4761
4761
|
});
|
|
4762
4762
|
}
|
|
4763
|
-
return R.polyfill = !0, c.fetch || (c.fetch = R, c.Headers = f, c.Request =
|
|
4763
|
+
return R.polyfill = !0, c.fetch || (c.fetch = R, c.Headers = f, c.Request = F, c.Response = V), u.Headers = f, u.Request = F, u.Response = V, u.fetch = R, u;
|
|
4764
4764
|
})({});
|
|
4765
4765
|
})(i), i.fetch.ponyfill = !0, delete i.fetch.polyfill;
|
|
4766
|
-
var
|
|
4767
|
-
e =
|
|
4766
|
+
var r = n.fetch ? n : i;
|
|
4767
|
+
e = r.fetch, e.default = r.fetch, e.fetch = r.fetch, e.Headers = r.Headers, e.Request = r.Request, e.Response = r.Response, t.exports = e;
|
|
4768
4768
|
})(ue, ue.exports)), ue.exports;
|
|
4769
4769
|
}
|
|
4770
|
-
var
|
|
4771
|
-
const Ya = /* @__PURE__ */ W(
|
|
4772
|
-
bookingPolicies: new
|
|
4773
|
-
bookings: new
|
|
4774
|
-
hotelImages: new
|
|
4775
|
-
hotelOfferRequests: new
|
|
4776
|
-
hotelOffers: new
|
|
4777
|
-
hotelRoomOfferRequests: new
|
|
4778
|
-
hotelRoomOffers: new
|
|
4779
|
-
hotelRoomingListGuests: new
|
|
4780
|
-
hotelRoomingLists: new
|
|
4781
|
-
hotels: new
|
|
4770
|
+
var Ca = xa();
|
|
4771
|
+
const Ya = /* @__PURE__ */ W(Ca), Va = (t) => ({
|
|
4772
|
+
bookingPolicies: new ka(t),
|
|
4773
|
+
bookings: new Ia(t),
|
|
4774
|
+
hotelImages: new Ka(t),
|
|
4775
|
+
hotelOfferRequests: new Ga(t),
|
|
4776
|
+
hotelOffers: new Ua(t),
|
|
4777
|
+
hotelRoomOfferRequests: new _a(t),
|
|
4778
|
+
hotelRoomOffers: new za(t),
|
|
4779
|
+
hotelRoomingListGuests: new Fa(t),
|
|
4780
|
+
hotelRoomingLists: new $a(t),
|
|
4781
|
+
hotels: new Ha(t)
|
|
4782
4782
|
});
|
|
4783
4783
|
function Za(t) {
|
|
4784
4784
|
switch (t) {
|
|
@@ -4839,10 +4839,10 @@ class Oi {
|
|
|
4839
4839
|
...this.config.optionalHeaders
|
|
4840
4840
|
});
|
|
4841
4841
|
const i = this.config.apiEnvironment;
|
|
4842
|
-
let
|
|
4843
|
-
i === te.Local && process.env.BOOKING_API_BASE_URL && (
|
|
4844
|
-
const l = new
|
|
4845
|
-
basePath:
|
|
4842
|
+
let r = this.config.apiBaseUrl ?? Bt[i];
|
|
4843
|
+
i === te.Local && process.env.BOOKING_API_BASE_URL && (r = process.env.BOOKING_API_BASE_URL);
|
|
4844
|
+
const l = new ot({
|
|
4845
|
+
basePath: r,
|
|
4846
4846
|
fetchApi: Ya,
|
|
4847
4847
|
headers: n,
|
|
4848
4848
|
middleware: [
|
|
@@ -4893,45 +4893,45 @@ export {
|
|
|
4893
4893
|
ti as BlobApiResponse,
|
|
4894
4894
|
ai as BookingApiPayLaterEnum,
|
|
4895
4895
|
ii as BookingApiStatusEnum,
|
|
4896
|
-
|
|
4896
|
+
ka as BookingPolicies,
|
|
4897
4897
|
ni as BookingPoliciesCreateApiLangEnum,
|
|
4898
|
-
|
|
4898
|
+
Ia as Bookings,
|
|
4899
4899
|
Pi as BookingsSortByEnum,
|
|
4900
4900
|
wi as BookingsSortByOrderEnum,
|
|
4901
4901
|
ja as COLLECTION_FORMATS,
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4902
|
+
ot as Configuration,
|
|
4903
|
+
ri as ContactPersonApiLangEnum,
|
|
4904
|
+
oi as ContactPersonApiSalutationEnum,
|
|
4905
4905
|
si as CountryIso2Code,
|
|
4906
4906
|
li as CurrencyBookingApiClient,
|
|
4907
4907
|
ui as ErrorApiResponseTypeEnum,
|
|
4908
|
-
|
|
4908
|
+
Ka as HotelImages,
|
|
4909
4909
|
Ai as HotelImagesLangEnum,
|
|
4910
|
-
|
|
4911
|
-
|
|
4910
|
+
Ga as HotelOfferRequests,
|
|
4911
|
+
Ua as HotelOffers,
|
|
4912
4912
|
Mi as HotelOffersLangEnum,
|
|
4913
4913
|
Ni as HotelOffersSortByEnum,
|
|
4914
4914
|
Ti as HotelOffersSortByOrderEnum,
|
|
4915
4915
|
ci as HotelRoomOfferApiBreakfastOptionEnum,
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4916
|
+
mi as HotelRoomOfferApiPackageTypeEnum,
|
|
4917
|
+
di as HotelRoomOfferApiTypeEnum,
|
|
4918
|
+
_a as HotelRoomOfferRequests,
|
|
4919
|
+
za as HotelRoomOffers,
|
|
4920
4920
|
fi as HotelRoomOffersCreateApiLangEnum,
|
|
4921
4921
|
Bi as HotelRoomOffersLangEnum,
|
|
4922
|
-
|
|
4923
|
-
|
|
4922
|
+
Fa as HotelRoomingListGuests,
|
|
4923
|
+
$a as HotelRoomingLists,
|
|
4924
4924
|
Ei as HotelRoomingListsLangEnum,
|
|
4925
|
-
|
|
4925
|
+
Ha as Hotels,
|
|
4926
4926
|
Li as HotelsLangEnum,
|
|
4927
4927
|
hi as InvoiceApiTypeEnum,
|
|
4928
|
-
|
|
4928
|
+
_ as JSONApiResponse,
|
|
4929
4929
|
pi as PaymentMethodApiOneOf1NameEnum,
|
|
4930
4930
|
yi as PaymentMethodApiOneOf2NameEnum,
|
|
4931
4931
|
gi as PaymentMethodApiOneOfNameEnum,
|
|
4932
4932
|
Di as PaymentMethodRequestApiNameEnum,
|
|
4933
4933
|
bi as PollerStatus,
|
|
4934
|
-
|
|
4934
|
+
z as RequiredError,
|
|
4935
4935
|
La as ResponseError,
|
|
4936
4936
|
Si as SourceMarket,
|
|
4937
4937
|
vi as TaxApiTaxFrequencyEnum,
|