@revolugo/booking-api-client 7.24.0 → 7.25.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +4302 -3480
- package/dist/index.umd.js +34 -46
- package/dist/types/v1/apis/ResourceHotelsApi.d.ts +2 -0
- package/dist/types/v1/apis/ResourceHotelsApi.d.ts.map +1 -1
- package/dist/types/v1/models/HotelApi.d.ts +2 -0
- package/dist/types/v1/models/HotelApi.d.ts.map +1 -1
- package/dist/types/v1/models/HotelOfferApi.d.ts +1 -1
- package/dist/types/v1/models/HotelOfferApi.d.ts.map +1 -1
- package/dist/types/v1/models/HotelRoomOfferApi.d.ts +1 -0
- package/dist/types/v1/models/HotelRoomOfferApi.d.ts.map +1 -1
- package/dist/types/vendor/common/utils/case-transformers.d.ts +4 -2
- package/package.json +10 -15
package/dist/index.umd.js
CHANGED
|
@@ -1,65 +1,53 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
`)===0?_.substr(1,_.length):_}).forEach(function(_){var O=_.split(":"),w=O.shift().trim();if(w){var T=O.join(":").trim();try{f.append(w,T)}catch(D){console.warn("Response "+D.message)}}}),f}z.call(L.prototype);function $(c,f){if(!(this instanceof $))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(f||(f={}),this.type="default",this.status=f.status===void 0?200:f.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=f.statusText===void 0?"":""+f.statusText,this.headers=new y(f.headers),this.url=f.url||"",this._initBody(c)}z.call($.prototype),$.prototype.clone=function(){return new $(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},$.error=function(){var c=new $(null,{status:200,statusText:""});return c.ok=!1,c.status=0,c.type="error",c};var j=[301,302,303,307,308];$.redirect=function(c,f){if(j.indexOf(f)===-1)throw new RangeError("Invalid status code");return new $(null,{status:f,headers:{location:c}})},s.DOMException=u.DOMException;try{new s.DOMException}catch{s.DOMException=function(f,_){this.message=f,this.name=_;var O=Error(f);this.stack=O.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function C(c,f){return new Promise(function(_,O){var w=new L(c,f);if(w.signal&&w.signal.aborted)return O(new s.DOMException("Aborted","AbortError"));var T=new XMLHttpRequest;function D(){T.abort()}T.onload=function(){var F={statusText:T.statusText,headers:J(T.getAllResponseHeaders()||"")};w.url.indexOf("file://")===0&&(T.status<200||T.status>599)?F.status=200:F.status=T.status,F.url="responseURL"in T?T.responseURL:F.headers.get("X-Request-URL");var X="response"in T?T.response:T.responseText;setTimeout(function(){_(new $(X,F))},0)},T.onerror=function(){setTimeout(function(){O(new TypeError("Network request failed"))},0)},T.ontimeout=function(){setTimeout(function(){O(new TypeError("Network request timed out"))},0)},T.onabort=function(){setTimeout(function(){O(new s.DOMException("Aborted","AbortError"))},0)};function Y(F){try{return F===""&&u.location.href?u.location.href:F}catch{return F}}if(T.open(w.method,Y(w.url),!0),w.credentials==="include"?T.withCredentials=!0:w.credentials==="omit"&&(T.withCredentials=!1),"responseType"in T&&(d.blob?T.responseType="blob":d.arrayBuffer&&(T.responseType="arraybuffer")),f&&typeof f.headers=="object"&&!(f.headers instanceof y||u.Headers&&f.headers instanceof u.Headers)){var K=[];Object.getOwnPropertyNames(f.headers).forEach(function(F){K.push(p(F)),T.setRequestHeader(F,A(f.headers[F]))}),w.headers.forEach(function(F,X){K.indexOf(X)===-1&&T.setRequestHeader(X,F)})}else w.headers.forEach(function(F,X){T.setRequestHeader(X,F)});w.signal&&(w.signal.addEventListener("abort",D),T.onreadystatechange=function(){T.readyState===4&&w.signal.removeEventListener("abort",D)}),T.send(typeof w._bodyInit>"u"?null:w._bodyInit)})}return C.polyfill=!0,u.fetch||(u.fetch=C,u.Headers=y,u.Request=L,u.Response=$),s.Headers=y,s.Request=L,s.Response=$,s.fetch=C,s})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;e=i.fetch,e.default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e})),su=oe(au(),1),uu=new RegExp("([\\p{Ll}\\d])(\\p{Lu})","gu"),cu=new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])","gu"),du=new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d","u"),fu=/[^\p{L}\d]+/giu,bn="$1\0$2",Mn="";function In(e){let t=e.trim();t=t.replace(uu,bn).replace(cu,bn),t=t.replace(fu,"\0");let n=0,r=t.length;for(;t.charAt(n)==="\0";)n++;if(n===r)return[];for(;t.charAt(r-1)==="\0";)r--;return t.slice(n,r).split(/\0/g)}function lu(e){const t=In(e);for(let n=0;n<t.length;n++){const r=t[n],i=du.exec(r);if(i){const a=i.index+(i[1]??i[2]).length;t.splice(n,1,r.slice(0,a),r.slice(a))}}return t}function Jn(e,t){const[n,r,i]=Ue(e,t);return n+r.map(Ze(t?.locale)).join(t?.delimiter??" ")+i}function mu(e,t){const[n,r,i]=Ue(e,t),a=Ze(t?.locale),s=At(t?.locale),u=t?.mergeAmbiguousCharacters?St(a,s):En(a,s);return n+r.map((d,l)=>l===0?a(d):u(d,l)).join(t?.delimiter??"")+i}function pu(e,t){const[n,r,i]=Ue(e,t),a=Ze(t?.locale),s=At(t?.locale),u=t?.mergeAmbiguousCharacters?St(a,s):En(a,s);return n+r.map(u).join(t?.delimiter??"")+i}function hu(e,t){const[n,r,i]=Ue(e,t),a=Ze(t?.locale),s=At(t?.locale);return n+r.map(St(a,s)).join(t?.delimiter??" ")+i}function Dn(e,t){return Jn(e,{delimiter:"-",...t})}function yu(e,t){return Jn(e,{delimiter:"_",...t})}function Ze(e){return e===!1?t=>t.toLowerCase():t=>t.toLocaleLowerCase(e)}function At(e){return e===!1?t=>t.toUpperCase():t=>t.toLocaleUpperCase(e)}function St(e,t){return n=>`${t(n[0])}${e(n.slice(1))}`}function En(e,t){return(n,r)=>{const i=n[0];return(r>0&&i>="0"&&i<="9"?"_"+i:t(i))+e(n.slice(1))}}function Ue(e,t={}){const n=t.split??(t.separateNumbers?lu:In),r=t.prefixCharacters??Mn,i=t.suffixCharacters??Mn;let a=0,s=e.length;for(;a<e.length;){const u=e.charAt(a);if(!r.includes(u))break;a++}for(;s>a;){const u=s-1,d=e.charAt(u);if(!i.includes(d))break;s=u}return[e.slice(0,a),n(e.slice(a,s)),e.slice(s)]}var gu=re(((e,t)=>{(function(n,r,i){typeof e=="object"?(t.exports=i(),t.exports.default=i()):typeof define=="function"&&define.amd?define(i):r[n]=i()})("slugify",e,function(){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"}`),r=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"}}');function i(a,s){if(typeof a!="string")throw new Error("slugify: string argument expected");s=typeof s=="string"?{replacement:s}:s||{};var u=r[s.locale]||{},d=s.replacement===void 0?"-":s.replacement,l=s.trim===void 0?!0:s.trim,m=a.normalize().split("").reduce(function(g,p){var A=u[p];return A===void 0&&(A=n[p]),A===void 0&&(A=p),A===d&&(A=" "),g+A.replace(s.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return s.strict&&(m=m.replace(/[^A-Za-z0-9\s]/g,"")),l&&(m=m.trim()),m=m.replace(/\s+/g,d),s.lower&&(m=m.toLowerCase()),m}return i.extend=function(a){Object.assign(n,a)},i})})),_u=oe(gu(),1);function Ou(e){return(0,_u.default)(Dn(e),{lower:!0,strict:!0})}var I={Camel:"camelCase",Capital:"capitalCase",Param:"paramCase",Pascal:"pascalCase",Slug:"slugCase",Snake:"snakeCase"},Fn={[I.Camel]:mu,[I.Capital]:hu,[I.Param]:Dn,[I.Pascal]:pu,[I.Slug]:Ou,[I.Snake]:yu};function Au(e,t){return Array.isArray(e)?e.map(n=>Fn[t](n)):Fn[t](e)}function Su(e){return e===Object(e)&&!Array.isArray(e)&&typeof e!="function"}function Tu(e,t){return e.some(n=>typeof n=="string"?n===t:n.test(t))}function Tt(e,t,n){const r=n.deep??!1;return Array.isArray(e)?e.map(i=>Tt(i,t,n)):Su(e)&&!(e instanceof Date)?Object.keys(e).reduce((i,a)=>{const s=n.exclude&&Tu(n.exclude,a)?a:Au(a,t);return i[s]=r?Tt(e[a],t,{...n,deep:!0}):e[a],i},{}):e}function E(e,t,n={}){return Tt(e,t,{deep:n.deep??!0,exclude:n.exclude})}var zn=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var n=1e3,r=6e4,i=36e5,a="millisecond",s="second",u="minute",d="hour",l="day",m="week",g="month",p="quarter",A="year",k="date",y="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,R=/\[([^\]]+)]|YYYY|YY|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,M={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(C){var c=["th","st","nd","rd"],f=C%100;return"["+C+(c[(f-20)%10]||c[f]||c[0])+"]"}},v=function(C,c,f){var _=String(C);return!_||_.length>=c?C:""+Array(c+1-_.length).join(f)+C},N={s:v,z:function(C){var c=-C.utcOffset(),f=Math.abs(c),_=Math.floor(f/60),O=f%60;return(c<=0?"+":"-")+v(_,2,"0")+":"+v(O,2,"0")},m:function C(c,f){if(c.date()<f.date())return-C(f,c);var _=12*(f.year()-c.year())+(f.month()-c.month()),O=c.clone().add(_,g),w=f-O<0,T=c.clone().add(_+(w?-1:1),g);return+(-(_+(f-O)/(w?O-T:T-O))||0)},a:function(C){return C<0?Math.ceil(C)||0:Math.floor(C)},p:function(C){return{M:g,y:A,w:m,d:l,D:k,h:d,m:u,s,ms:a,Q:p}[C]||String(C||"").toLowerCase().replace(/s$/,"")},u:function(C){return C===void 0}},P="en",z={};z[P]=M;var G="$isDayjsObject",Z=function(C){return C instanceof $||!(!C||!C[G])},L=function C(c,f,_){var O;if(!c)return P;if(typeof c=="string"){var w=c.toLowerCase();z[w]&&(O=w),f&&(z[w]=f,O=w);var T=c.split("-");if(!O&&T.length>1)return C(T[0])}else{var D=c.name;z[D]=c,O=D}return!_&&O&&(P=O),O||!_&&P},H=function(C,c){if(Z(C))return C.clone();var f=typeof c=="object"?c:{};return f.date=C,f.args=arguments,new $(f)},J=N;J.l=L,J.i=Z,J.w=function(C,c){return H(C,{locale:c.$L,utc:c.$u,x:c.$x,$offset:c.$offset})};var $=(function(){function C(f){this.$L=L(f.locale,null,!0),this.parse(f),this.$x=this.$x||f.x||{},this[G]=!0}var c=C.prototype;return c.parse=function(f){this.$d=(function(_){var O=_.date,w=_.utc;if(O===null)return new Date(NaN);if(J.u(O))return new Date;if(O instanceof Date)return new Date(O);if(typeof O=="string"&&!/Z$/i.test(O)){var T=O.match(S);if(T){var D=T[2]-1||0,Y=(T[7]||"0").substring(0,3);return w?new Date(Date.UTC(T[1],D,T[3]||1,T[4]||0,T[5]||0,T[6]||0,Y)):new Date(T[1],D,T[3]||1,T[4]||0,T[5]||0,T[6]||0,Y)}}return new Date(O)})(f),this.init()},c.init=function(){var f=this.$d;this.$y=f.getFullYear(),this.$M=f.getMonth(),this.$D=f.getDate(),this.$W=f.getDay(),this.$H=f.getHours(),this.$m=f.getMinutes(),this.$s=f.getSeconds(),this.$ms=f.getMilliseconds()},c.$utils=function(){return J},c.isValid=function(){return this.$d.toString()!==y},c.isSame=function(f,_){var O=H(f);return this.startOf(_)<=O&&O<=this.endOf(_)},c.isAfter=function(f,_){return H(f)<this.startOf(_)},c.isBefore=function(f,_){return this.endOf(_)<H(f)},c.$g=function(f,_,O){return J.u(f)?this[_]:this.set(O,f)},c.unix=function(){return Math.floor(this.valueOf()/1e3)},c.valueOf=function(){return this.$d.getTime()},c.startOf=function(f,_){var O=this,w=!!J.u(_)||_,T=J.p(f),D=function(me,ne){var ce=J.w(O.$u?Date.UTC(O.$y,ne,me):new Date(O.$y,ne,me),O);return w?ce:ce.endOf(l)},Y=function(me,ne){return J.w(O.toDate()[me].apply(O.toDate("s"),(w?[0,0,0,0]:[23,59,59,999]).slice(ne)),O)},K=this.$W,F=this.$M,X=this.$D,Oe="set"+(this.$u?"UTC":"");switch(T){case A:return w?D(1,0):D(31,11);case g:return w?D(1,F):D(0,F+1);case m:var pe=this.$locale().weekStart||0,ve=(K<pe?K+7:K)-pe;return D(w?X-ve:X+(6-ve),F);case l:case k:return Y(Oe+"Hours",0);case d:return Y(Oe+"Minutes",1);case u:return Y(Oe+"Seconds",2);case s:return Y(Oe+"Milliseconds",3);default:return this.clone()}},c.endOf=function(f){return this.startOf(f,!1)},c.$set=function(f,_){var O,w=J.p(f),T="set"+(this.$u?"UTC":""),D=(O={},O[l]=T+"Date",O[k]=T+"Date",O[g]=T+"Month",O[A]=T+"FullYear",O[d]=T+"Hours",O[u]=T+"Minutes",O[s]=T+"Seconds",O[a]=T+"Milliseconds",O)[w],Y=w===l?this.$D+(_-this.$W):_;if(w===g||w===A){var K=this.clone().set(k,1);K.$d[D](Y),K.init(),this.$d=K.set(k,Math.min(this.$D,K.daysInMonth())).$d}else D&&this.$d[D](Y);return this.init(),this},c.set=function(f,_){return this.clone().$set(f,_)},c.get=function(f){return this[J.p(f)]()},c.add=function(f,_){var O,w=this;f=Number(f);var T=J.p(_),D=function(F){var X=H(w);return J.w(X.date(X.date()+Math.round(F*f)),w)};if(T===g)return this.set(g,this.$M+f);if(T===A)return this.set(A,this.$y+f);if(T===l)return D(1);if(T===m)return D(7);var Y=(O={},O[u]=r,O[d]=i,O[s]=n,O)[T]||1,K=this.$d.getTime()+f*Y;return J.w(K,this)},c.subtract=function(f,_){return this.add(-1*f,_)},c.format=function(f){var _=this,O=this.$locale();if(!this.isValid())return O.invalidDate||y;var w=f||"YYYY-MM-DDTHH:mm:ssZ",T=J.z(this),D=this.$H,Y=this.$m,K=this.$M,F=O.weekdays,X=O.months,Oe=O.meridiem,pe=function(ne,ce,he,Ae){return ne&&(ne[ce]||ne(_,w))||he[ce].slice(0,Ae)},ve=function(ne){return J.s(D%12||12,ne,"0")},me=Oe||function(ne,ce,he){var Ae=ne<12?"AM":"PM";return he?Ae.toLowerCase():Ae};return w.replace(R,(function(ne,ce){return ce||(function(he){switch(he){case"YY":return String(_.$y).slice(-2);case"YYYY":return J.s(_.$y,4,"0");case"M":return K+1;case"MM":return J.s(K+1,2,"0");case"MMM":return pe(O.monthsShort,K,X,3);case"MMMM":return pe(X,K);case"D":return _.$D;case"DD":return J.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return pe(O.weekdaysMin,_.$W,F,2);case"ddd":return pe(O.weekdaysShort,_.$W,F,3);case"dddd":return F[_.$W];case"H":return String(D);case"HH":return J.s(D,2,"0");case"h":return ve(1);case"hh":return ve(2);case"a":return me(D,Y,!0);case"A":return me(D,Y,!1);case"m":return String(Y);case"mm":return J.s(Y,2,"0");case"s":return String(_.$s);case"ss":return J.s(_.$s,2,"0");case"SSS":return J.s(_.$ms,3,"0");case"Z":return T}return null})(ne)||T.replace(":","")}))},c.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},c.diff=function(f,_,O){var w,T=this,D=J.p(_),Y=H(f),K=(Y.utcOffset()-this.utcOffset())*r,F=this-Y,X=function(){return J.m(T,Y)};switch(D){case A:w=X()/12;break;case g:w=X();break;case p:w=X()/3;break;case m:w=(F-K)/6048e5;break;case l:w=(F-K)/864e5;break;case d:w=F/i;break;case u:w=F/r;break;case s:w=F/n;break;default:w=F}return O?w:J.a(w)},c.daysInMonth=function(){return this.endOf(g).$D},c.$locale=function(){return z[this.$L]},c.locale=function(f,_){if(!f)return this.$L;var O=this.clone(),w=L(f,_,!0);return w&&(O.$L=w),O},c.clone=function(){return J.w(this.$d,this)},c.toDate=function(){return new Date(this.valueOf())},c.toJSON=function(){return this.isValid()?this.toISOString():null},c.toISOString=function(){return this.$d.toISOString()},c.toString=function(){return this.$d.toUTCString()},C})(),j=$.prototype;return H.prototype=j,[["$ms",a],["$s",s],["$m",u],["$H",d],["$W",l],["$M",g],["$y",A],["$D",k]].forEach((function(C){j[C[1]]=function(c){return this.$g(c,C[0],C[1])}})),H.extend=function(C,c){return C.$i||(C(c,$,H),C.$i=!0),H},H.locale=L,H.isDayjs=Z,H.unix=function(C){return H(1e3*C)},H.en=z[P],H.Ls=z,H.p={},H}))})),wu=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(e,(function(){"use strict";return function(n,r){var i=r.prototype,a=i.format;i.format=function(s){var u=this,d=this.$locale();if(!this.isValid())return a.bind(this)(s);var l=this.$utils(),m=(s||"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(g){switch(g){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return d.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return d.ordinal(u.week(),"W");case"w":case"ww":return l.s(u.week(),g==="w"?1:2,"0");case"W":case"WW":return l.s(u.isoWeek(),g==="W"?1:2,"0");case"k":case"kk":return l.s(String(u.$H===0?24:u.$H),g==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return g}}));return a.bind(this)(m)}}}))})),ku=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){"use strict";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"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,a=/\d\d/,s=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,d={},l=function(S){return(S=+S)+(S>68?1900:2e3)},m=function(S){return function(R){this[S]=+R}},g=[/[+-]\d\d:?(\d\d)?|Z/,function(S){(this.zone||(this.zone={})).offset=(function(R){if(!R||R==="Z")return 0;var M=R.match(/([+-]|\d\d)/g),v=60*M[1]+(+M[2]||0);return v===0?0:M[0]==="+"?-v:v})(S)}],p=function(S){var R=d[S];return R&&(R.indexOf?R:R.s.concat(R.f))},A=function(S,R){var M,v=d.meridiem;if(v){for(var N=1;N<=24;N+=1)if(S.indexOf(v(N,0,R))>-1){M=N>12;break}}else M=S===(R?"pm":"PM");return M},k={A:[u,function(S){this.afternoon=A(S,!1)}],a:[u,function(S){this.afternoon=A(S,!0)}],Q:[i,function(S){this.month=3*(S-1)+1}],S:[i,function(S){this.milliseconds=100*+S}],SS:[a,function(S){this.milliseconds=10*+S}],SSS:[/\d{3}/,function(S){this.milliseconds=+S}],s:[s,m("seconds")],ss:[s,m("seconds")],m:[s,m("minutes")],mm:[s,m("minutes")],H:[s,m("hours")],h:[s,m("hours")],HH:[s,m("hours")],hh:[s,m("hours")],D:[s,m("day")],DD:[a,m("day")],Do:[u,function(S){var R=d.ordinal,M=S.match(/\d+/);if(this.day=M[0],R)for(var v=1;v<=31;v+=1)R(v).replace(/\[|\]/g,"")===S&&(this.day=v)}],w:[s,m("week")],ww:[a,m("week")],M:[s,m("month")],MM:[a,m("month")],MMM:[u,function(S){var R=p("months"),M=(p("monthsShort")||R.map((function(v){return v.slice(0,3)}))).indexOf(S)+1;if(M<1)throw new Error;this.month=M%12||M}],MMMM:[u,function(S){var R=p("months").indexOf(S)+1;if(R<1)throw new Error;this.month=R%12||R}],Y:[/[+-]?\d+/,m("year")],YY:[a,function(S){this.year=l(S)}],YYYY:[/\d{4}/,m("year")],Z:g,ZZ:g};function y(S){for(var R=S,M=d&&d.formats,v=(S=R.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(H,J,$){var j=$&&$.toUpperCase();return J||M[$]||n[$]||M[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(C,c,f){return c||f.slice(1)}))}))).match(r),N=v.length,P=0;P<N;P+=1){var z=v[P],G=k[z],Z=G&&G[0],L=G&&G[1];v[P]=L?{regex:Z,parser:L}:z.replace(/^\[|\]$/g,"")}return function(H){for(var J={},$=0,j=0;$<N;$+=1){var C=v[$];if(typeof C=="string")j+=C.length;else{var c=C.regex,f=C.parser,_=H.slice(j),O=c.exec(_)[0];f.call(J,O),H=H.replace(O,"")}}return(function(w){var T=w.afternoon;if(T!==void 0){var D=w.hours;T?D<12&&(w.hours+=12):D===12&&(w.hours=0),delete w.afternoon}})(J),J}}return function(S,R,M){M.p.customParseFormat=!0,S&&S.parseTwoDigitYear&&(l=S.parseTwoDigitYear);var v=R.prototype,N=v.parse;v.parse=function(P){var z=P.date,G=P.utc,Z=P.args;this.$u=G;var L=Z[1];if(typeof L=="string"){var H=Z[2]===!0,J=Z[3]===!0,$=H||J,j=Z[2];J&&(j=Z[2]),d=this.$locale(),!H&&j&&(d=M.Ls[j]),this.$d=(function(_,O,w,T){try{if(["x","X"].indexOf(O)>-1)return new Date((O==="X"?1e3:1)*_);var D=y(O)(_),Y=D.year,K=D.month,F=D.day,X=D.hours,Oe=D.minutes,pe=D.seconds,ve=D.milliseconds,me=D.zone,ne=D.week,ce=new Date,he=F||(Y||K?1:ce.getDate()),Ae=Y||ce.getFullYear(),_t=0;Y&&!K||(_t=K>0?K-1:ce.getMonth());var Ot,Tn=X||0,wn=Oe||0,kn=pe||0,vn=ve||0;return me?new Date(Date.UTC(Ae,_t,he,Tn,wn,kn,vn+60*me.offset*1e3)):w?new Date(Date.UTC(Ae,_t,he,Tn,wn,kn,vn)):(Ot=new Date(Ae,_t,he,Tn,wn,kn,vn),ne&&(Ot=T(Ot).week(ne).toDate()),Ot)}catch{return new Date("")}})(z,L,G,M),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),$&&z!=this.format(L)&&(this.$d=new Date("")),d={}}else if(L instanceof Array)for(var C=L.length,c=1;c<=C;c+=1){Z[1]=L[c-1];var f=M.apply(this,Z);if(f.isValid()){this.$d=f.$d,this.$L=f.$L,this.init();break}c===C&&(this.$d=new Date(""))}else N.call(this,P)}}}))})),vu=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_isBetween=r()})(e,(function(){"use strict";return function(n,r,i){r.prototype.isBetween=function(a,s,u,d){var l=i(a),m=i(s),g=(d=d||"()")[0]==="(",p=d[1]===")";return(g?this.isAfter(l,u):!this.isBefore(l,u))&&(p?this.isBefore(m,u):!this.isAfter(m,u))||(g?this.isBefore(l,u):!this.isAfter(l,u))&&(p?this.isAfter(m,u):!this.isBefore(m,u))}}}))})),Ru=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_isSameOrAfter=r()})(e,(function(){"use strict";return function(n,r){r.prototype.isSameOrAfter=function(i,a){return this.isSame(i,a)||this.isAfter(i,a)}}}))})),Nu=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_isSameOrBefore=r()})(e,(function(){"use strict";return function(n,r){r.prototype.isSameOrBefore=function(i,a){return this.isSame(i,a)||this.isBefore(i,a)}}}))})),Pu=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_localeData=r()})(e,(function(){"use strict";return function(n,r,i){var a=r.prototype,s=function(g){return g&&(g.indexOf?g:g.s)},u=function(g,p,A,k,y){var S=g.name?g:g.$locale(),R=s(S[p]),M=s(S[A]),v=R||M.map((function(P){return P.slice(0,k)}));if(!y)return v;var N=S.weekStart;return v.map((function(P,z){return v[(z+(N||0))%7]}))},d=function(){return i.Ls[i.locale()]},l=function(g,p){return g.formats[p]||(function(A){return A.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(k,y,S){return y||S.slice(1)}))})(g.formats[p.toUpperCase()])},m=function(){var g=this;return{months:function(p){return p?p.format("MMMM"):u(g,"months")},monthsShort:function(p){return p?p.format("MMM"):u(g,"monthsShort","months",3)},firstDayOfWeek:function(){return g.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):u(g,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):u(g,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):u(g,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return l(g.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return m.bind(this)()},i.localeData=function(){var g=d();return{firstDayOfWeek:function(){return g.weekStart||0},weekdays:function(){return i.weekdays()},weekdaysShort:function(){return i.weekdaysShort()},weekdaysMin:function(){return i.weekdaysMin()},months:function(){return i.months()},monthsShort:function(){return i.monthsShort()},longDateFormat:function(p){return l(g,p)},meridiem:g.meridiem,ordinal:g.ordinal}},i.months=function(){return u(d(),"months")},i.monthsShort=function(){return u(d(),"monthsShort","months",3)},i.weekdays=function(g){return u(d(),"weekdays",null,null,g)},i.weekdaysShort=function(g){return u(d(),"weekdaysShort","weekdays",3,g)},i.weekdaysMin=function(g){return u(d(),"weekdaysMin","weekdays",2,g)}}}))})),Cu=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_localizedFormat=r()})(e,(function(){"use strict";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"};return function(r,i,a){var s=i.prototype,u=s.format;a.en.formats=n,s.format=function(d){d===void 0&&(d="YYYY-MM-DDTHH:mm:ssZ");var l=this.$locale().formats,m=(function(g,p){return g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(A,k,y){var S=y&&y.toUpperCase();return k||p[y]||n[y]||p[S].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(R,M,v){return M||v.slice(1)}))}))})(d,l===void 0?{}:l);return u.call(this,m)}}}))})),bu=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_minMax=r()})(e,(function(){"use strict";return function(n,r,i){var a=function(s,u){if(!u||!u.length||u.length===1&&!u[0]||u.length===1&&Array.isArray(u[0])&&!u[0].length)return null;var d;u.length===1&&u[0].length>0&&(u=u[0]),d=(u=u.filter((function(m){return m})))[0];for(var l=1;l<u.length;l+=1)u[l].isValid()&&!u[l][s](d)||(d=u[l]);return d};i.max=function(){return a("isAfter",[].slice.call(arguments,0))},i.min=function(){return a("isBefore",[].slice.call(arguments,0))}}}))})),Mu=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_relativeTime=r()})(e,(function(){"use strict";return function(n,r,i){n=n||{};var a=r.prototype,s={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"};function u(l,m,g,p){return a.fromToBase(l,m,g,p)}i.en.relativeTime=s,a.fromToBase=function(l,m,g,p,A){for(var k,y,S,R=g.$locale().relativeTime||s,M=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"}],v=M.length,N=0;N<v;N+=1){var P=M[N];P.d&&(k=p?i(l).diff(g,P.d,!0):g.diff(l,P.d,!0));var z=(n.rounding||Math.round)(Math.abs(k));if(S=k>0,z<=P.r||!P.r){z<=1&&N>0&&(P=M[N-1]);var G=R[P.l];A&&(z=A(""+z)),y=typeof G=="string"?G.replace("%d",z):G(z,m,P.l,S);break}}if(m)return y;var Z=S?R.future:R.past;return typeof Z=="function"?Z(y):Z.replace("%s",y)},a.to=function(l,m){return u(l,m,this,!0)},a.from=function(l,m){return u(l,m,this)};var d=function(l){return l.$u?i.utc():i()};a.toNow=function(l){return this.to(d(this),l)},a.fromNow=function(l){return this.from(d(this),l)}}}))})),Iu=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_timezone=r()})(e,(function(){"use strict";var n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(i,a,s){var u,d=function(p,A,k){k===void 0&&(k={});var y=new Date(p);return(function(S,R){R===void 0&&(R={});var M=R.timeZoneName||"short",v=S+"|"+M,N=r[v];return N||(N=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:S,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:M}),r[v]=N),N})(A,k).formatToParts(y)},l=function(p,A){for(var k=d(p,A),y=[],S=0;S<k.length;S+=1){var R=k[S],M=R.type,v=R.value,N=n[M];N>=0&&(y[N]=parseInt(v,10))}var P=y[3],z=P===24?0:P,G=y[0]+"-"+y[1]+"-"+y[2]+" "+z+":"+y[4]+":"+y[5]+":000",Z=+p;return(s.utc(G).valueOf()-(Z-=Z%1e3))/6e4},m=a.prototype;m.tz=function(p,A){if(p===void 0&&(p=u),!this.isValid())return this;var k,y=this.utcOffset(),S=this.toDate(),R=S.toLocaleString("en-US",{timeZone:p}),M=l(+S,p);if(!Number(M))k=this.utcOffset(0,A);else if(k=s(R,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(M,!0),A){var v=k.utcOffset();k=k.add(y-v,"minute")}return k.$x.$timezone=p,k},m.offsetName=function(p){var A=this.$x.$timezone||s.tz.guess(),k=d(this.valueOf(),A,{timeZoneName:p}).find((function(y){return y.type.toLowerCase()==="timezonename"}));return k&&k.value};var g=m.startOf;m.startOf=function(p,A){if(!this.$x||!this.$x.$timezone)return g.call(this,p,A);var k=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return g.call(k,p,A).tz(this.$x.$timezone,!0)},s.tz=function(p,A,k){var y=k&&A,S=k||A||u,R=l(+s(),S);if(typeof p!="string")return s(p).tz(S);var M=s.utc(p,y).valueOf();if(Number.isNaN(M)){var v=s(NaN);return v.$x.$timezone=S,v}var N=(function(Z,L,H){var J=Z-60*L*1e3,$=l(J,H);if(L===$)return[J,L];var j=l(J-=60*($-L)*1e3,H);return $===j?[J,$]:[Z-60*Math.min($,j)*1e3,Math.max($,j)]})(M,R,S),P=N[0],z=N[1],G=s(P).utcOffset(z);return G.$x.$timezone=S,G},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(p){u=p}}}))})),Ju=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_utc=r()})(e,(function(){"use strict";var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(a,s,u){var d=s.prototype;u.utc=function(y){return new s({date:y,utc:!0,args:arguments})},d.utc=function(y){var S=u(this.toDate(),{locale:this.$L,utc:!0});return y?S.add(this.utcOffset(),n):S},d.local=function(){return u(this.toDate(),{locale:this.$L,utc:!1})};var l=d.parse;d.parse=function(y){y.utc&&(this.$u=!0),this.$utils().u(y.$offset)||(this.$offset=y.$offset),l.call(this,y)};var m=d.init;d.init=function(){if(this.$u){var y=this.$d;this.$y=y.getUTCFullYear(),this.$M=y.getUTCMonth(),this.$D=y.getUTCDate(),this.$W=y.getUTCDay(),this.$H=y.getUTCHours(),this.$m=y.getUTCMinutes(),this.$s=y.getUTCSeconds(),this.$ms=y.getUTCMilliseconds()}else m.call(this)};var g=d.utcOffset;d.utcOffset=function(y,S){var R=this.$utils().u;if(R(y))return this.$u?0:R(this.$offset)?g.call(this):this.$offset;if(typeof y=="string"&&(y=(function(P){P===void 0&&(P="");var z=P.match(r);if(!z)return null;var G=(""+z[0]).match(i)||["-",0,0],Z=G[0],L=60*+G[1]+ +G[2];return L===0?0:Z==="+"?L:-L})(y),y===null))return this;var M=Math.abs(y)<=16?60*y:y;if(M===0)return this.utc(S);var v=this.clone();if(S)return v.$offset=M,v.$u=!1,v;var N=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(v=this.local().add(M+N,n)).$offset=M,v.$x.$localOffset=N,v};var p=d.format;d.format=function(y){var S=y||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,S)},d.valueOf=function(){var y=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*y},d.isUTC=function(){return!!this.$u},d.toISOString=function(){return this.toDate().toISOString()},d.toString=function(){return this.toDate().toUTCString()};var A=d.toDate;d.toDate=function(y){return y==="s"&&this.$offset?u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():A.call(this)};var k=d.diff;d.diff=function(y,S,R){if(y&&this.$u===y.$u)return k.call(this,y,S,R);var M=this.local(),v=u(y).local();return k.call(M,v,S,R)}}}))})),Du=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r(zn()):typeof define=="function"&&define.amd?define(["dayjs"],r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_locale_fr=r(n.dayjs)})(e,(function(n){"use strict";function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var i=r(n),a={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(s){return""+s+(s===1?"er":"")}};return i.default.locale(a,null,!0),a}))})),Eu=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_locale_en=r()})(e,(function(){"use strict";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){var r=["th","st","nd","rd"],i=n%100;return"["+n+(r[(i-20)%10]||r[i]||r[0])+"]"}}}))})),de=oe(zn(),1),Fu=oe(wu(),1),zu=oe(ku(),1),$u=oe(vu(),1),Lu=oe(Ru(),1),Hu=oe(Nu(),1),Bu=oe(Pu(),1),Zu=oe(Cu(),1),Uu=oe(bu(),1),Gu=oe(Mu(),1),qu=oe(Iu(),1),Yu=oe(Ju(),1),Xy=Du(),Qy=Eu();de.default.extend(Fu.default),de.default.extend(zu.default),de.default.extend($u.default),de.default.extend(Lu.default),de.default.extend(Hu.default),de.default.extend(Zu.default),de.default.extend(Bu.default),de.default.extend(Uu.default),de.default.extend(Gu.default),de.default.extend(qu.default),de.default.extend(Yu.default);function ye(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function Ge(e,t=new WeakSet){if(e==null||typeof e!="object"||t.has(e))return e;if(t.add(e),Array.isArray(e))return e.map(n=>Ge(n,t));if(ye(e)){const n={};for(const r in e)Object.hasOwn(e,r)&&(n[r]=Ge(e[r],t));return n}return e}function wt(e,t,n=new WeakSet){if(!(!ye(t)||!ye(e))&&!(t===e||n.has(t))){n.add(t);for(const r in t)if(Object.hasOwn(t,r)){const i=t[r],a=e[r];ye(i)&&ye(a)?wt(a,i,n):Array.isArray(i)&&Array.isArray(a)?e[r]=$n(a,i,n):e[r]=Ge(i,n)}}}function $n(e,t,n){const r=e.slice();for(let i=0;i<t.length;i++){const a=t[i],s=r[i];if(ye(a)&&ye(s)){const u={...s};wt(u,a,n),r[i]=u}else Array.isArray(a)&&Array.isArray(s)?r[i]=$n(s,a,n):r[i]=Ge(a,n)}return r}function Ln(e,...t){if(!ye(e))throw new TypeError("Target must be a plain object");const n=new WeakSet;for(const r of t)r!=null&&wt(e,r,n);return e}function Ku(e){const t={};for(const n of Object.keys(e)){const r=e[n];r!==void 0&&(t[n]=r)}return t}var ee=[];for(let e=0;e<256;++e)ee.push((e+256).toString(16).slice(1));function Vu(e,t=0){return(ee[e[t+0]]+ee[e[t+1]]+ee[e[t+2]]+ee[e[t+3]]+"-"+ee[e[t+4]]+ee[e[t+5]]+"-"+ee[e[t+6]]+ee[e[t+7]]+"-"+ee[e[t+8]]+ee[e[t+9]]+"-"+ee[e[t+10]]+ee[e[t+11]]+ee[e[t+12]]+ee[e[t+13]]+ee[e[t+14]]+ee[e[t+15]]).toLowerCase()}var Wu=new Uint8Array(16);function Xu(){return crypto.getRandomValues(Wu)}function Qu(e,t,n){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():xu(e,t,n)}function xu(e,t,n){e=e||{};const r=e.random??e.rng?.()??Xu();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n=n||0,n<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let i=0;i<16;++i)t[n+i]=r[i];return t}return Vu(r)}var ju=1500,Se={},ec=class{defaultOptions={callCount:1,interval:ju,maxCallCount:20,minCallCount:1};events={complete:()=>{},data:()=>{},error:()=>{}};on(e,t){this.events[e]=t}poll(e,t){const n=this.buildPollerOptions(t);return this.storeCurrentPolling(n),this.isActivePoller(n)&&e().then(r=>this.onRequest(r,e,n)).catch(r=>{const i=r instanceof Error?r:new Error(String(r));this.dispatch("error",i)}),this}stop(e){e&&Se[e]&&delete Se[e]}buildPollerOptions(e){return{...this.defaultOptions,...Ku(e)}}dispatch(e,t){this.events[e](t)}isActivePoller(e){return e.type?!!Se[e.type]&&Se[e.type]===e.uuid:!0}isInProgress(e){return(e?.meta?.status??"")!=="COMPLETE"}onComplete(e,t){this.dispatch("data",e),this.dispatch("complete",e),this.removeCurrentPolling(t)}async onRequest(e,t,n){const r=E(e,I.Camel);this.isActivePoller(n)&&(this.isInProgress(r)&&n.callCount&&n.maxCallCount&&n.callCount<n.maxCallCount||!this.isInProgress(r)&&n.callCount&&n.minCallCount&&n.callCount<n.minCallCount?(this.isInProgress(r)||(r.meta={...r.meta,status:"IN_PROGRESS"}),n.callCount+=1,this.dispatch("data",r),n.interval&&await this.pause(n),this.poll(t,n)):this.isInProgress(r)?(r.meta={...r.meta,status:"COMPLETE"},this.onComplete(r,n)):this.onComplete(r,n))}pause(e){return new Promise(t=>{setTimeout(t,e.interval)})}removeCurrentPolling(e){e.type&&Se[e.type]&&delete Se[e.type]}storeCurrentPolling(e){e.type&&!e.uuid&&(e.uuid=Qu(),Se[e.type]=e.uuid)}};function tc(){return new ec}function qe(e,t,n){const r=tc();return r.poll(e,t),n&&typeof n=="function"?(r.on("data",i=>{i instanceof Error?n(i,void 0,r):n(null,i,r)}),r.on("error",i=>{i instanceof Error?n(i):n(null,i)}),r):new Promise((i,a)=>{r.on("error",a),r.on("complete",s=>{s instanceof Error?a(s):i(s)})})}var Hn;function h(e,t,n){function r(u,d){if(u._zod||Object.defineProperty(u,"_zod",{value:{def:d,constr:s,traits:new Set},enumerable:!1}),u._zod.traits.has(e))return;u._zod.traits.add(e),t(u,d);const l=s.prototype,m=Object.keys(l);for(let g=0;g<m.length;g++){const p=m[g];p in u||(u[p]=l[p].bind(u))}}const i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,"name",{value:e});function s(u){var d;const l=n?.Parent?new a:this;r(l,u),(d=l._zod).deferred??(d.deferred=[]);for(const m of l._zod.deferred)m();return l}return Object.defineProperty(s,"init",{value:r}),Object.defineProperty(s,Symbol.hasInstance,{value:u=>n?.Parent&&u instanceof n.Parent?!0:u?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}var Ne=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Bn=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}};(Hn=globalThis).__zod_globalConfig??(Hn.__zod_globalConfig={});var Ye=globalThis.__zod_globalConfig;function Te(e){return e&&Object.assign(Ye,e),Ye}function Zn(e){const t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,r])=>t.indexOf(+n)===-1).map(([n,r])=>r)}function kt(e,t){return typeof t=="bigint"?t.toString():t}function vt(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Rt(e){return e==null}function Nt(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function nc(e,t){const n=e/t,r=Math.round(n),i=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}var Un=Symbol("evaluating");function U(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Un)return r===void 0&&(r=Un,r=n()),r},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function we(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function ge(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function Gn(e){return JSON.stringify(e)}function rc(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var qn="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ke(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var ic=vt(()=>{if(Ye.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch{return!1}});function Fe(e){if(Ke(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Ke(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Yn(e){return Fe(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var oc=new Set(["string","number","symbol"]);function Ve(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function _e(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function b(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function ac(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var sc={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function uc(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");return _e(e,ge(e._zod.def,{get shape(){const i={};for(const a in t){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(i[a]=n.shape[a])}return we(this,"shape",i),i},checks:[]}))}function cc(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");return _e(e,ge(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const a in t){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&delete i[a]}return we(this,"shape",i),i},checks:[]}))}function dc(e,t){if(!Fe(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const r=e._zod.def.shape;for(const i in t)if(Object.getOwnPropertyDescriptor(r,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return _e(e,ge(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return we(this,"shape",r),r}}))}function fc(e,t){if(!Fe(t))throw new Error("Invalid input to safeExtend: expected a plain object");return _e(e,ge(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t};return we(this,"shape",n),n}}))}function lc(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");return _e(e,ge(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return we(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function mc(e,t,n){const r=t._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");return _e(t,ge(t._zod.def,{get shape(){const i=t._zod.def.shape,a={...i};if(n)for(const s in n){if(!(s in i))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(a[s]=e?new e({type:"optional",innerType:i[s]}):i[s])}else for(const s in i)a[s]=e?new e({type:"optional",innerType:i[s]}):i[s];return we(this,"shape",a),a},checks:[]}))}function pc(e,t,n){return _e(t,ge(t._zod.def,{get shape(){const r=t._zod.def.shape,i={...r};if(n)for(const a in n){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(i[a]=new e({type:"nonoptional",innerType:r[a]}))}else for(const a in r)i[a]=new e({type:"nonoptional",innerType:r[a]});return we(this,"shape",i),i}}))}function Pe(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function hc(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function Kn(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function We(e){return typeof e=="string"?e:e?.message}function ke(e,t,n){const r=e.message?e.message:We(e.inst?._zod.def?.error?.(e))??We(t?.error?.(e))??We(n.customError?.(e))??We(n.localeError?.(e))??"Invalid input",{inst:i,continue:a,input:s,...u}=e;return u.path??(u.path=[]),u.message=r,t?.reportInput&&(u.input=s),u}function Pt(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ze(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}var Vn=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,kt,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Wn=h("$ZodError",Vn),Xn=h("$ZodError",Vn,{Parent:Error});function yc(e,t=n=>n.message){const n={},r=[];for(const i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function gc(e,t=n=>n.message){const n={_errors:[]},r=(i,a=[])=>{for(const s of i.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(u=>r({issues:u},[...a,...s.path]));else if(s.code==="invalid_key")r({issues:s.issues},[...a,...s.path]);else if(s.code==="invalid_element")r({issues:s.issues},[...a,...s.path]);else{const u=[...a,...s.path];if(u.length===0)n._errors.push(t(s));else{let d=n,l=0;for(;l<u.length;){const m=u[l];l!==u.length-1?d[m]=d[m]||{_errors:[]}:(d[m]=d[m]||{_errors:[]},d[m]._errors.push(t(s))),d=d[m],l++}}}};return r(e),n}var Ct=e=>(t,n,r,i)=>{const a=r?{...r,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},a);if(s instanceof Promise)throw new Ne;if(s.issues.length){const u=new(i?.Err??e)(s.issues.map(d=>ke(d,a,Te())));throw qn(u,i?.callee),u}return s.value},bt=e=>async(t,n,r,i)=>{const a=r?{...r,async:!0}:{async:!0};let s=t._zod.run({value:n,issues:[]},a);if(s instanceof Promise&&(s=await s),s.issues.length){const u=new(i?.Err??e)(s.issues.map(d=>ke(d,a,Te())));throw qn(u,i?.callee),u}return s.value},Xe=e=>(t,n,r)=>{const i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new Ne;return a.issues.length?{success:!1,error:new(e??Wn)(a.issues.map(s=>ke(s,i,Te())))}:{success:!0,data:a.value}},_c=Xe(Xn),Qe=e=>async(t,n,r)=>{const i=r?{...r,async:!0}:{async:!0};let a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(s=>ke(s,i,Te())))}:{success:!0,data:a.value}},Oc=Qe(Xn),Ac=e=>(t,n,r)=>{const i=r?{...r,direction:"backward"}:{direction:"backward"};return Ct(e)(t,n,i)},Sc=e=>(t,n,r)=>Ct(e)(t,n,r),Tc=e=>async(t,n,r)=>{const i=r?{...r,direction:"backward"}:{direction:"backward"};return bt(e)(t,n,i)},wc=e=>async(t,n,r)=>bt(e)(t,n,r),kc=e=>(t,n,r)=>{const i=r?{...r,direction:"backward"}:{direction:"backward"};return Xe(e)(t,n,i)},vc=e=>(t,n,r)=>Xe(e)(t,n,r),Rc=e=>async(t,n,r)=>{const i=r?{...r,direction:"backward"}:{direction:"backward"};return Qe(e)(t,n,i)},Nc=e=>async(t,n,r)=>Qe(e)(t,n,r),Pc=/^[cC][0-9a-z]{6,}$/,Cc=/^[0-9a-z]+$/,bc=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Mc=/^[0-9a-vA-V]{20}$/,Ic=/^[A-Za-z0-9]{27}$/,Jc=/^[a-zA-Z0-9_-]{21}$/,Dc=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Ec=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Qn=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Fc=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,zc="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function $c(){return new RegExp(zc,"u")}var Lc=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Hc=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Bc=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Zc=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Uc=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,xn=/^[A-Za-z0-9_-]*$/,Gc=/^https?$/,qc=/^\+[1-9]\d{6,14}$/,jn="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Yc=new RegExp(`^${jn}$`);function er(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Kc(e){return new RegExp(`^${er(e)}$`)}function Vc(e){const t=er({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${jn}T(?:${r})$`)}var Wc=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Xc=/^-?\d+$/,Qc=/^-?\d+(?:\.\d+)?$/,xc=/^[^A-Z]*$/,jc=/^[^a-z]*$/,ae=h("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),tr={number:"number",bigint:"bigint",object:"date"},nr=h("$ZodCheckLessThan",(e,t)=>{ae.init(e,t);const n=tr[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,a=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<a&&(t.inclusive?i.maximum=t.value:i.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),rr=h("$ZodCheckGreaterThan",(e,t)=>{ae.init(e,t);const n=tr[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,a=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>a&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ed=h("$ZodCheckMultipleOf",(e,t)=>{ae.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):nc(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),td=h("$ZodCheckNumberFormat",(e,t)=>{ae.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[i,a]=sc[t.format];e._zod.onattach.push(s=>{const u=s._zod.bag;u.format=t.format,u.minimum=i,u.maximum=a,n&&(u.pattern=Xc)}),e._zod.check=s=>{const u=s.value;if(n){if(!Number.isInteger(u)){s.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:u,inst:e});return}if(!Number.isSafeInteger(u)){u>0?s.issues.push({input:u,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):s.issues.push({input:u,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}u<i&&s.issues.push({origin:"number",input:u,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),u>a&&s.issues.push({origin:"number",input:u,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),nd=h("$ZodCheckMaxLength",(e,t)=>{var n;ae.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!Rt(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const i=r.value;if(i.length<=t.maximum)return;const a=Pt(i);r.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),rd=h("$ZodCheckMinLength",(e,t)=>{var n;ae.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!Rt(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const i=r.value;if(i.length>=t.minimum)return;const a=Pt(i);r.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),id=h("$ZodCheckLengthEquals",(e,t)=>{var n;ae.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!Rt(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=r=>{const i=r.value,a=i.length;if(a===t.length)return;const s=Pt(i),u=a>t.length;r.issues.push({origin:s,...u?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),xe=h("$ZodCheckStringFormat",(e,t)=>{var n,r;ae.init(e,t),e._zod.onattach.push(i=>{const a=i._zod.bag;a.format=t.format,t.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),od=h("$ZodCheckRegex",(e,t)=>{xe.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),ad=h("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=xc),xe.init(e,t)}),sd=h("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=jc),xe.init(e,t)}),ud=h("$ZodCheckIncludes",(e,t)=>{ae.init(e,t);const n=Ve(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(i=>{const a=i._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(r)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),cd=h("$ZodCheckStartsWith",(e,t)=>{ae.init(e,t);const n=new RegExp(`^${Ve(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),dd=h("$ZodCheckEndsWith",(e,t)=>{ae.init(e,t);const n=new RegExp(`.*${Ve(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),fd=h("$ZodCheckOverwrite",(e,t)=>{ae.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}}),ld=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}const t=e.split(`
|
|
3
|
-
`).filter(i=>i),n=Math.min(...t.map(i=>i.length-i.trimStart().length)),r=t.map(i=>i.slice(n)).map(i=>" ".repeat(this.indent*2)+i);for(const i of r)this.content.push(i)}compile(){const e=Function,t=this?.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
if (${P} in input) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
(function(a,Le){typeof exports=="object"&&typeof module<"u"?Le(exports):typeof define=="function"&&define.amd?define(["exports"],Le):(a=typeof globalThis<"u"?globalThis:a||self,Le(a["@revolugo/booking-api-client"]={}))})(this,function(a){Object.defineProperty(a,Symbol.toStringTag,{value:"Module"});var Le=Object.create,Kn=Object.defineProperty,zu=Object.getOwnPropertyDescriptor,$u=Object.getOwnPropertyNames,Lu=Object.getPrototypeOf,Yn=Object.prototype.hasOwnProperty,re=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),Hu=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=$u(t),o=0,s=i.length,u;o<s;o++)u=i[o],!Yn.call(e,u)&&u!==n&&Kn(e,u,{get:(c=>t[c]).bind(null,u),enumerable:!(r=zu(t,u))||r.enumerable});return e},oe=(e,t,n)=>(n=e!=null?Le(Lu(e)):{},Hu(t||!e||!e.__esModule||!Yn.call(e,"default")?Kn(n,"default",{value:e,enumerable:!0}):n,e)),Vn=(function(e){return e.V1="v1",e})({}),be=(function(e){return e.CiCd="CI-CD",e.Local="LOCAL",e.Production="LIVE",e.Sandbox="SANDBOX",e.Staging="STAGING",e})({}),Bu={"CI-CD":"https://booking-api.staging.revolugo.com",LOCAL:"http://127.0.0.1:3001",LIVE:"https://booking-api.revolugo.com",SANDBOX:"https://booking-api.sandbox.revolugo.com",STAGING:"https://booking-api.staging.revolugo.com"},Wn=(function(e){return e.HOTEL_ROOM_OFFERS="HOTEL_ROOM_OFFERS",e.HOTEL_SEARCH_POLLING="HOTEL_SEARCH_POLLING",e})({}),Uu=re(((e,t)=>{var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,r=(function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o})();(function(o){(function(s){var u=typeof o<"u"&&o||typeof self<"u"&&self||typeof global<"u"&&global||{},c={searchParams:"URLSearchParams"in u,iterable:"Symbol"in u&&"iterator"in Symbol,blob:"FileReader"in u&&"Blob"in u&&(function(){try{return new Blob,!0}catch{return!1}})(),formData:"FormData"in u,arrayBuffer:"ArrayBuffer"in u};function f(d){return d&&DataView.prototype.isPrototypeOf(d)}if(c.arrayBuffer)var m=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],h=ArrayBuffer.isView||function(d){return d&&m.indexOf(Object.prototype.toString.call(d))>-1};function p(d){if(typeof d!="string"&&(d=String(d)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(d)||d==="")throw new TypeError('Invalid character in header field name: "'+d+'"');return d.toLowerCase()}function O(d){return typeof d!="string"&&(d=String(d)),d}function T(d){var l={next:function(){var A=d.shift();return{done:A===void 0,value:A}}};return c.iterable&&(l[Symbol.iterator]=function(){return l}),l}function y(d){this.map={},d instanceof y?d.forEach(function(l,A){this.append(A,l)},this):Array.isArray(d)?d.forEach(function(l){if(l.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+l.length);this.append(l[0],l[1])},this):d&&Object.getOwnPropertyNames(d).forEach(function(l){this.append(l,d[l])},this)}y.prototype.append=function(d,l){d=p(d),l=O(l);var A=this.map[d];this.map[d]=A?A+", "+l:l},y.prototype.delete=function(d){delete this.map[p(d)]},y.prototype.get=function(d){return d=p(d),this.has(d)?this.map[d]:null},y.prototype.has=function(d){return this.map.hasOwnProperty(p(d))},y.prototype.set=function(d,l){this.map[p(d)]=O(l)},y.prototype.forEach=function(d,l){for(var A in this.map)this.map.hasOwnProperty(A)&&d.call(l,this.map[A],A,this)},y.prototype.keys=function(){var d=[];return this.forEach(function(l,A){d.push(A)}),T(d)},y.prototype.values=function(){var d=[];return this.forEach(function(l){d.push(l)}),T(d)},y.prototype.entries=function(){var d=[];return this.forEach(function(l,A){d.push([A,l])}),T(d)},c.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function _(d){if(!d._noBody){if(d.bodyUsed)return Promise.reject(new TypeError("Already read"));d.bodyUsed=!0}}function k(d){return new Promise(function(l,A){d.onload=function(){l(d.result)},d.onerror=function(){A(d.error)}})}function R(d){var l=new FileReader,A=k(l);return l.readAsArrayBuffer(d),A}function N(d){var l=new FileReader,A=k(l),S=/charset=([A-Za-z0-9_-]+)/.exec(d.type),v=S?S[1]:"utf-8";return l.readAsText(d,v),A}function F(d){for(var l=new Uint8Array(d),A=new Array(l.length),S=0;S<l.length;S++)A[S]=String.fromCharCode(l[S]);return A.join("")}function I(d){if(d.slice)return d.slice(0);var l=new Uint8Array(d.byteLength);return l.set(new Uint8Array(d)),l.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(d){this.bodyUsed=this.bodyUsed,this._bodyInit=d,d?typeof d=="string"?this._bodyText=d:c.blob&&Blob.prototype.isPrototypeOf(d)?this._bodyBlob=d:c.formData&&FormData.prototype.isPrototypeOf(d)?this._bodyFormData=d:c.searchParams&&URLSearchParams.prototype.isPrototypeOf(d)?this._bodyText=d.toString():c.arrayBuffer&&c.blob&&f(d)?(this._bodyArrayBuffer=I(d.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(d)||h(d))?this._bodyArrayBuffer=I(d):this._bodyText=d=Object.prototype.toString.call(d):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof d=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):c.searchParams&&URLSearchParams.prototype.isPrototypeOf(d)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c.blob&&(this.blob=function(){var d=_(this);if(d)return d;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var d=_(this);return d||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(c.blob)return this.blob().then(R);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var d=_(this);if(d)return d;if(this._bodyBlob)return N(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(F(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},c.formData&&(this.formData=function(){return this.text().then(B)}),this.json=function(){return this.text().then(JSON.parse)},this}var z=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function U(d){var l=d.toUpperCase();return z.indexOf(l)>-1?l:d}function H(d,l){if(!(this instanceof H))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');l=l||{};var A=l.body;if(d instanceof H){if(d.bodyUsed)throw new TypeError("Already read");this.url=d.url,this.credentials=d.credentials,l.headers||(this.headers=new y(d.headers)),this.method=d.method,this.mode=d.mode,this.signal=d.signal,!A&&d._bodyInit!=null&&(A=d._bodyInit,d.bodyUsed=!0)}else this.url=String(d);if(this.credentials=l.credentials||this.credentials||"same-origin",(l.headers||!this.headers)&&(this.headers=new y(l.headers)),this.method=U(l.method||this.method||"GET"),this.mode=l.mode||this.mode||null,this.signal=l.signal||this.signal||(function(){if("AbortController"in u)return new AbortController().signal})(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&A)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(A),(this.method==="GET"||this.method==="HEAD")&&(l.cache==="no-store"||l.cache==="no-cache")){var S=/([?&])_=[^&]*/;if(S.test(this.url))this.url=this.url.replace(S,"$1_="+new Date().getTime());else{var v=/\?/;this.url+=(v.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}H.prototype.clone=function(){return new H(this,{body:this._bodyInit})};function B(d){var l=new FormData;return d.trim().split("&").forEach(function(A){if(A){var S=A.split("="),v=S.shift().replace(/\+/g," "),w=S.join("=").replace(/\+/g," ");l.append(decodeURIComponent(v),decodeURIComponent(w))}}),l}function M(d){var l=new y;return d.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(A){return A.indexOf(`
|
|
2
|
+
`)===0?A.substr(1,A.length):A}).forEach(function(A){var S=A.split(":"),v=S.shift().trim();if(v){var w=S.join(":").trim();try{l.append(v,w)}catch(J){console.warn("Response "+J.message)}}}),l}b.call(H.prototype);function $(d,l){if(!(this instanceof $))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(l||(l={}),this.type="default",this.status=l.status===void 0?200:l.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=l.statusText===void 0?"":""+l.statusText,this.headers=new y(l.headers),this.url=l.url||"",this._initBody(d)}b.call($.prototype),$.prototype.clone=function(){return new $(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},$.error=function(){var d=new $(null,{status:200,statusText:""});return d.ok=!1,d.status=0,d.type="error",d};var X=[301,302,303,307,308];$.redirect=function(d,l){if(X.indexOf(l)===-1)throw new RangeError("Invalid status code");return new $(null,{status:l,headers:{location:d}})},s.DOMException=u.DOMException;try{new s.DOMException}catch{s.DOMException=function(l,A){this.message=l,this.name=A;var S=Error(l);this.stack=S.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function P(d,l){return new Promise(function(A,S){var v=new H(d,l);if(v.signal&&v.signal.aborted)return S(new s.DOMException("Aborted","AbortError"));var w=new XMLHttpRequest;function J(){w.abort()}w.onload=function(){var L={statusText:w.statusText,headers:M(w.getAllResponseHeaders()||"")};v.url.indexOf("file://")===0&&(w.status<200||w.status>599)?L.status=200:L.status=w.status,L.url="responseURL"in w?w.responseURL:L.headers.get("X-Request-URL");var Q="response"in w?w.response:w.responseText;setTimeout(function(){A(new $(Q,L))},0)},w.onerror=function(){setTimeout(function(){S(new TypeError("Network request failed"))},0)},w.ontimeout=function(){setTimeout(function(){S(new TypeError("Network request timed out"))},0)},w.onabort=function(){setTimeout(function(){S(new s.DOMException("Aborted","AbortError"))},0)};function K(L){try{return L===""&&u.location.href?u.location.href:L}catch{return L}}if(w.open(v.method,K(v.url),!0),v.credentials==="include"?w.withCredentials=!0:v.credentials==="omit"&&(w.withCredentials=!1),"responseType"in w&&(c.blob?w.responseType="blob":c.arrayBuffer&&(w.responseType="arraybuffer")),l&&typeof l.headers=="object"&&!(l.headers instanceof y||u.Headers&&l.headers instanceof u.Headers)){var Y=[];Object.getOwnPropertyNames(l.headers).forEach(function(L){Y.push(p(L)),w.setRequestHeader(L,O(l.headers[L]))}),v.headers.forEach(function(L,Q){Y.indexOf(Q)===-1&&w.setRequestHeader(Q,L)})}else v.headers.forEach(function(L,Q){w.setRequestHeader(Q,L)});v.signal&&(v.signal.addEventListener("abort",J),w.onreadystatechange=function(){w.readyState===4&&v.signal.removeEventListener("abort",J)}),w.send(typeof v._bodyInit>"u"?null:v._bodyInit)})}return P.polyfill=!0,u.fetch||(u.fetch=P,u.Headers=y,u.Request=H,u.Response=$),s.Headers=y,s.Request=H,s.Response=$,s.fetch=P,s})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;e=i.fetch,e.default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e})),Zu=oe(Uu(),1),Gu=new RegExp("([\\p{Ll}\\d])(\\p{Lu})","gu"),qu=new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])","gu"),Ku=new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d","u"),Yu=/[^\p{L}\d]+/giu,Xn="$1\0$2",Qn="";function xn(e){let t=e.trim();t=t.replace(Gu,Xn).replace(qu,Xn),t=t.replace(Yu,"\0");let n=0,r=t.length;for(;t.charAt(n)==="\0";)n++;if(n===r)return[];for(;t.charAt(r-1)==="\0";)r--;return t.slice(n,r).split(/\0/g)}function Vu(e){const t=xn(e);for(let n=0;n<t.length;n++){const r=t[n],i=Ku.exec(r);if(i){const o=i.index+(i[1]??i[2]).length;t.splice(n,1,r.slice(0,o),r.slice(o))}}return t}function jn(e,t){const[n,r,i]=Ve(e,t);return n+r.map(Ye(t?.locale)).join(t?.delimiter??" ")+i}function Wu(e,t){const[n,r,i]=Ve(e,t),o=Ye(t?.locale),s=Ct(t?.locale),u=t?.mergeAmbiguousCharacters?It(o,s):tr(o,s);return n+r.map((c,f)=>f===0?o(c):u(c,f)).join(t?.delimiter??"")+i}function Xu(e,t){const[n,r,i]=Ve(e,t),o=Ye(t?.locale),s=Ct(t?.locale),u=t?.mergeAmbiguousCharacters?It(o,s):tr(o,s);return n+r.map(u).join(t?.delimiter??"")+i}function Qu(e,t){const[n,r,i]=Ve(e,t),o=Ye(t?.locale),s=Ct(t?.locale);return n+r.map(It(o,s)).join(t?.delimiter??" ")+i}function er(e,t){return jn(e,{delimiter:"-",...t})}function xu(e,t){return jn(e,{delimiter:"_",...t})}function Ye(e){return e===!1?t=>t.toLowerCase():t=>t.toLocaleLowerCase(e)}function Ct(e){return e===!1?t=>t.toUpperCase():t=>t.toLocaleUpperCase(e)}function It(e,t){return n=>`${t(n[0])}${e(n.slice(1))}`}function tr(e,t){return(n,r)=>{const i=n[0];return(r>0&&i>="0"&&i<="9"?"_"+i:t(i))+e(n.slice(1))}}function Ve(e,t={}){const n=t.split??(t.separateNumbers?Vu:xn),r=t.prefixCharacters??Qn,i=t.suffixCharacters??Qn;let o=0,s=e.length;for(;o<e.length;){const u=e.charAt(o);if(!r.includes(u))break;o++}for(;s>o;){const u=s-1,c=e.charAt(u);if(!i.includes(c))break;s=u}return[e.slice(0,o),n(e.slice(o,s)),e.slice(s)]}var ju=re(((e,t)=>{(function(n,r,i){typeof e=="object"?(t.exports=i(),t.exports.default=i()):typeof define=="function"&&define.amd?define(i):r[n]=i()})("slugify",e,function(){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"}`),r=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"}}');function i(o,s){if(typeof o!="string")throw new Error("slugify: string argument expected");s=typeof s=="string"?{replacement:s}:s||{};var u=r[s.locale]||{},c=s.replacement===void 0?"-":s.replacement,f=s.trim===void 0?!0:s.trim,m=o.normalize().split("").reduce(function(h,p){var O=u[p];return O===void 0&&(O=n[p]),O===void 0&&(O=p),O===c&&(O=" "),h+O.replace(s.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return s.strict&&(m=m.replace(/[^A-Za-z0-9\s]/g,"")),f&&(m=m.trim()),m=m.replace(/\s+/g,c),s.lower&&(m=m.toLowerCase()),m}return i.extend=function(o){Object.assign(n,o)},i})})),ec=oe(ju(),1);function tc(e){return(0,ec.default)(er(e),{lower:!0,strict:!0})}var D={Camel:"camelCase",Capital:"capitalCase",Param:"paramCase",Pascal:"pascalCase",Slug:"slugCase",Snake:"snakeCase"},nr={[D.Camel]:Wu,[D.Capital]:Qu,[D.Param]:er,[D.Pascal]:Xu,[D.Slug]:tc,[D.Snake]:xu};function nc(e,t){return Array.isArray(e)?e.map(n=>nr[t](n)):nr[t](e)}function rc(e){return e===Object(e)&&!Array.isArray(e)&&typeof e!="function"}function ic(e,t){return e.some(n=>typeof n=="string"?n===t:n.test(t))}function Mt(e,t,n){const r=n.deep??!1;return Array.isArray(e)?e.map(i=>Mt(i,t,n)):rc(e)&&!(e instanceof Date)?Object.keys(e).reduce((i,o)=>{const s=n.exclude&&ic(n.exclude,o)?o:nc(o,t);return i[s]=r?Mt(e[o],t,{...n,deep:!0}):e[o],i},{}):e}function E(e,t,n={}){return Mt(e,t,{deep:n.deep??!0,exclude:n.exclude})}var rr=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var n=1e3,r=6e4,i=36e5,o="millisecond",s="second",u="minute",c="hour",f="day",m="week",h="month",p="quarter",O="year",T="date",y="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,k=/\[([^\]]+)]|YYYY|YY|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,R={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(P){var d=["th","st","nd","rd"],l=P%100;return"["+P+(d[(l-20)%10]||d[l]||d[0])+"]"}},N=function(P,d,l){var A=String(P);return!A||A.length>=d?P:""+Array(d+1-A.length).join(l)+P},F={s:N,z:function(P){var d=-P.utcOffset(),l=Math.abs(d),A=Math.floor(l/60),S=l%60;return(d<=0?"+":"-")+N(A,2,"0")+":"+N(S,2,"0")},m:function P(d,l){if(d.date()<l.date())return-P(l,d);var A=12*(l.year()-d.year())+(l.month()-d.month()),S=d.clone().add(A,h),v=l-S<0,w=d.clone().add(A+(v?-1:1),h);return+(-(A+(l-S)/(v?S-w:w-S))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:h,y:O,w:m,d:f,D:T,h:c,m:u,s,ms:o,Q:p}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},I="en",b={};b[I]=R;var z="$isDayjsObject",U=function(P){return P instanceof $||!(!P||!P[z])},H=function P(d,l,A){var S;if(!d)return I;if(typeof d=="string"){var v=d.toLowerCase();b[v]&&(S=v),l&&(b[v]=l,S=v);var w=d.split("-");if(!S&&w.length>1)return P(w[0])}else{var J=d.name;b[J]=d,S=J}return!A&&S&&(I=S),S||!A&&I},B=function(P,d){if(U(P))return P.clone();var l=typeof d=="object"?d:{};return l.date=P,l.args=arguments,new $(l)},M=F;M.l=H,M.i=U,M.w=function(P,d){return B(P,{locale:d.$L,utc:d.$u,x:d.$x,$offset:d.$offset})};var $=(function(){function P(l){this.$L=H(l.locale,null,!0),this.parse(l),this.$x=this.$x||l.x||{},this[z]=!0}var d=P.prototype;return d.parse=function(l){this.$d=(function(A){var S=A.date,v=A.utc;if(S===null)return new Date(NaN);if(M.u(S))return new Date;if(S instanceof Date)return new Date(S);if(typeof S=="string"&&!/Z$/i.test(S)){var w=S.match(_);if(w){var J=w[2]-1||0,K=(w[7]||"0").substring(0,3);return v?new Date(Date.UTC(w[1],J,w[3]||1,w[4]||0,w[5]||0,w[6]||0,K)):new Date(w[1],J,w[3]||1,w[4]||0,w[5]||0,w[6]||0,K)}}return new Date(S)})(l),this.init()},d.init=function(){var l=this.$d;this.$y=l.getFullYear(),this.$M=l.getMonth(),this.$D=l.getDate(),this.$W=l.getDay(),this.$H=l.getHours(),this.$m=l.getMinutes(),this.$s=l.getSeconds(),this.$ms=l.getMilliseconds()},d.$utils=function(){return M},d.isValid=function(){return this.$d.toString()!==y},d.isSame=function(l,A){var S=B(l);return this.startOf(A)<=S&&S<=this.endOf(A)},d.isAfter=function(l,A){return B(l)<this.startOf(A)},d.isBefore=function(l,A){return this.endOf(A)<B(l)},d.$g=function(l,A,S){return M.u(l)?this[A]:this.set(S,l)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(l,A){var S=this,v=!!M.u(A)||A,w=M.p(l),J=function(he,ne){var de=M.w(S.$u?Date.UTC(S.$y,ne,he):new Date(S.$y,ne,he),S);return v?de:de.endOf(f)},K=function(he,ne){return M.w(S.toDate()[he].apply(S.toDate("s"),(v?[0,0,0,0]:[23,59,59,999]).slice(ne)),S)},Y=this.$W,L=this.$M,Q=this.$D,we="set"+(this.$u?"UTC":"");switch(w){case O:return v?J(1,0):J(31,11);case h:return v?J(1,L):J(0,L+1);case m:var ye=this.$locale().weekStart||0,Ne=(Y<ye?Y+7:Y)-ye;return J(v?Q-Ne:Q+(6-Ne),L);case f:case T:return K(we+"Hours",0);case c:return K(we+"Minutes",1);case u:return K(we+"Seconds",2);case s:return K(we+"Milliseconds",3);default:return this.clone()}},d.endOf=function(l){return this.startOf(l,!1)},d.$set=function(l,A){var S,v=M.p(l),w="set"+(this.$u?"UTC":""),J=(S={},S[f]=w+"Date",S[T]=w+"Date",S[h]=w+"Month",S[O]=w+"FullYear",S[c]=w+"Hours",S[u]=w+"Minutes",S[s]=w+"Seconds",S[o]=w+"Milliseconds",S)[v],K=v===f?this.$D+(A-this.$W):A;if(v===h||v===O){var Y=this.clone().set(T,1);Y.$d[J](K),Y.init(),this.$d=Y.set(T,Math.min(this.$D,Y.daysInMonth())).$d}else J&&this.$d[J](K);return this.init(),this},d.set=function(l,A){return this.clone().$set(l,A)},d.get=function(l){return this[M.p(l)]()},d.add=function(l,A){var S,v=this;l=Number(l);var w=M.p(A),J=function(L){var Q=B(v);return M.w(Q.date(Q.date()+Math.round(L*l)),v)};if(w===h)return this.set(h,this.$M+l);if(w===O)return this.set(O,this.$y+l);if(w===f)return J(1);if(w===m)return J(7);var K=(S={},S[u]=r,S[c]=i,S[s]=n,S)[w]||1,Y=this.$d.getTime()+l*K;return M.w(Y,this)},d.subtract=function(l,A){return this.add(-1*l,A)},d.format=function(l){var A=this,S=this.$locale();if(!this.isValid())return S.invalidDate||y;var v=l||"YYYY-MM-DDTHH:mm:ssZ",w=M.z(this),J=this.$H,K=this.$m,Y=this.$M,L=S.weekdays,Q=S.months,we=S.meridiem,ye=function(ne,de,ge,ve){return ne&&(ne[de]||ne(A,v))||ge[de].slice(0,ve)},Ne=function(ne){return M.s(J%12||12,ne,"0")},he=we||function(ne,de,ge){var ve=ne<12?"AM":"PM";return ge?ve.toLowerCase():ve};return v.replace(k,(function(ne,de){return de||(function(ge){switch(ge){case"YY":return String(A.$y).slice(-2);case"YYYY":return M.s(A.$y,4,"0");case"M":return Y+1;case"MM":return M.s(Y+1,2,"0");case"MMM":return ye(S.monthsShort,Y,Q,3);case"MMMM":return ye(Q,Y);case"D":return A.$D;case"DD":return M.s(A.$D,2,"0");case"d":return String(A.$W);case"dd":return ye(S.weekdaysMin,A.$W,L,2);case"ddd":return ye(S.weekdaysShort,A.$W,L,3);case"dddd":return L[A.$W];case"H":return String(J);case"HH":return M.s(J,2,"0");case"h":return Ne(1);case"hh":return Ne(2);case"a":return he(J,K,!0);case"A":return he(J,K,!1);case"m":return String(K);case"mm":return M.s(K,2,"0");case"s":return String(A.$s);case"ss":return M.s(A.$s,2,"0");case"SSS":return M.s(A.$ms,3,"0");case"Z":return w}return null})(ne)||w.replace(":","")}))},d.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},d.diff=function(l,A,S){var v,w=this,J=M.p(A),K=B(l),Y=(K.utcOffset()-this.utcOffset())*r,L=this-K,Q=function(){return M.m(w,K)};switch(J){case O:v=Q()/12;break;case h:v=Q();break;case p:v=Q()/3;break;case m:v=(L-Y)/6048e5;break;case f:v=(L-Y)/864e5;break;case c:v=L/i;break;case u:v=L/r;break;case s:v=L/n;break;default:v=L}return S?v:M.a(v)},d.daysInMonth=function(){return this.endOf(h).$D},d.$locale=function(){return b[this.$L]},d.locale=function(l,A){if(!l)return this.$L;var S=this.clone(),v=H(l,A,!0);return v&&(S.$L=v),S},d.clone=function(){return M.w(this.$d,this)},d.toDate=function(){return new Date(this.valueOf())},d.toJSON=function(){return this.isValid()?this.toISOString():null},d.toISOString=function(){return this.$d.toISOString()},d.toString=function(){return this.$d.toUTCString()},P})(),X=$.prototype;return B.prototype=X,[["$ms",o],["$s",s],["$m",u],["$H",c],["$W",f],["$M",h],["$y",O],["$D",T]].forEach((function(P){X[P[1]]=function(d){return this.$g(d,P[0],P[1])}})),B.extend=function(P,d){return P.$i||(P(d,$,B),P.$i=!0),B},B.locale=H,B.isDayjs=U,B.unix=function(P){return B(1e3*P)},B.en=b[I],B.Ls=b,B.p={},B}))})),oc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(e,(function(){"use strict";return function(n,r){var i=r.prototype,o=i.format;i.format=function(s){var u=this,c=this.$locale();if(!this.isValid())return o.bind(this)(s);var f=this.$utils(),m=(s||"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(h){switch(h){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return c.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return c.ordinal(u.week(),"W");case"w":case"ww":return f.s(u.week(),h==="w"?1:2,"0");case"W":case"WW":return f.s(u.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return f.s(String(u.$H===0?24:u.$H),h==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return h}}));return o.bind(this)(m)}}}))})),ac=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){"use strict";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"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,o=/\d\d/,s=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,c={},f=function(_){return(_=+_)+(_>68?1900:2e3)},m=function(_){return function(k){this[_]=+k}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(_){(this.zone||(this.zone={})).offset=(function(k){if(!k||k==="Z")return 0;var R=k.match(/([+-]|\d\d)/g),N=60*R[1]+(+R[2]||0);return N===0?0:R[0]==="+"?-N:N})(_)}],p=function(_){var k=c[_];return k&&(k.indexOf?k:k.s.concat(k.f))},O=function(_,k){var R,N=c.meridiem;if(N){for(var F=1;F<=24;F+=1)if(_.indexOf(N(F,0,k))>-1){R=F>12;break}}else R=_===(k?"pm":"PM");return R},T={A:[u,function(_){this.afternoon=O(_,!1)}],a:[u,function(_){this.afternoon=O(_,!0)}],Q:[i,function(_){this.month=3*(_-1)+1}],S:[i,function(_){this.milliseconds=100*+_}],SS:[o,function(_){this.milliseconds=10*+_}],SSS:[/\d{3}/,function(_){this.milliseconds=+_}],s:[s,m("seconds")],ss:[s,m("seconds")],m:[s,m("minutes")],mm:[s,m("minutes")],H:[s,m("hours")],h:[s,m("hours")],HH:[s,m("hours")],hh:[s,m("hours")],D:[s,m("day")],DD:[o,m("day")],Do:[u,function(_){var k=c.ordinal,R=_.match(/\d+/);if(this.day=R[0],k)for(var N=1;N<=31;N+=1)k(N).replace(/\[|\]/g,"")===_&&(this.day=N)}],w:[s,m("week")],ww:[o,m("week")],M:[s,m("month")],MM:[o,m("month")],MMM:[u,function(_){var k=p("months"),R=(p("monthsShort")||k.map((function(N){return N.slice(0,3)}))).indexOf(_)+1;if(R<1)throw new Error;this.month=R%12||R}],MMMM:[u,function(_){var k=p("months").indexOf(_)+1;if(k<1)throw new Error;this.month=k%12||k}],Y:[/[+-]?\d+/,m("year")],YY:[o,function(_){this.year=f(_)}],YYYY:[/\d{4}/,m("year")],Z:h,ZZ:h};function y(_){for(var k=_,R=c&&c.formats,N=(_=k.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(B,M,$){var X=$&&$.toUpperCase();return M||R[$]||n[$]||R[X].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(P,d,l){return d||l.slice(1)}))}))).match(r),F=N.length,I=0;I<F;I+=1){var b=N[I],z=T[b],U=z&&z[0],H=z&&z[1];N[I]=H?{regex:U,parser:H}:b.replace(/^\[|\]$/g,"")}return function(B){for(var M={},$=0,X=0;$<F;$+=1){var P=N[$];if(typeof P=="string")X+=P.length;else{var d=P.regex,l=P.parser,A=B.slice(X),S=d.exec(A)[0];l.call(M,S),B=B.replace(S,"")}}return(function(v){var w=v.afternoon;if(w!==void 0){var J=v.hours;w?J<12&&(v.hours+=12):J===12&&(v.hours=0),delete v.afternoon}})(M),M}}return function(_,k,R){R.p.customParseFormat=!0,_&&_.parseTwoDigitYear&&(f=_.parseTwoDigitYear);var N=k.prototype,F=N.parse;N.parse=function(I){var b=I.date,z=I.utc,U=I.args;this.$u=z;var H=U[1];if(typeof H=="string"){var B=U[2]===!0,M=U[3]===!0,$=B||M,X=U[2];M&&(X=U[2]),c=this.$locale(),!B&&X&&(c=R.Ls[X]),this.$d=(function(A,S,v,w){try{if(["x","X"].indexOf(S)>-1)return new Date((S==="X"?1e3:1)*A);var J=y(S)(A),K=J.year,Y=J.month,L=J.day,Q=J.hours,we=J.minutes,ye=J.seconds,Ne=J.milliseconds,he=J.zone,ne=J.week,de=new Date,ge=L||(K||Y?1:de.getDate()),ve=K||de.getFullYear(),bt=0;K&&!Y||(bt=Y>0?Y-1:de.getMonth());var Pt,Un=Q||0,Zn=we||0,Gn=ye||0,qn=Ne||0;return he?new Date(Date.UTC(ve,bt,ge,Un,Zn,Gn,qn+60*he.offset*1e3)):v?new Date(Date.UTC(ve,bt,ge,Un,Zn,Gn,qn)):(Pt=new Date(ve,bt,ge,Un,Zn,Gn,qn),ne&&(Pt=w(Pt).week(ne).toDate()),Pt)}catch{return new Date("")}})(b,H,z,R),this.init(),X&&X!==!0&&(this.$L=this.locale(X).$L),$&&b!=this.format(H)&&(this.$d=new Date("")),c={}}else if(H instanceof Array)for(var P=H.length,d=1;d<=P;d+=1){U[1]=H[d-1];var l=R.apply(this,U);if(l.isValid()){this.$d=l.$d,this.$L=l.$L,this.init();break}d===P&&(this.$d=new Date(""))}else F.call(this,I)}}}))})),sc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_isBetween=r()})(e,(function(){"use strict";return function(n,r,i){r.prototype.isBetween=function(o,s,u,c){var f=i(o),m=i(s),h=(c=c||"()")[0]==="(",p=c[1]===")";return(h?this.isAfter(f,u):!this.isBefore(f,u))&&(p?this.isBefore(m,u):!this.isAfter(m,u))||(h?this.isBefore(f,u):!this.isAfter(f,u))&&(p?this.isAfter(m,u):!this.isBefore(m,u))}}}))})),uc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_isSameOrAfter=r()})(e,(function(){"use strict";return function(n,r){r.prototype.isSameOrAfter=function(i,o){return this.isSame(i,o)||this.isAfter(i,o)}}}))})),cc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_isSameOrBefore=r()})(e,(function(){"use strict";return function(n,r){r.prototype.isSameOrBefore=function(i,o){return this.isSame(i,o)||this.isBefore(i,o)}}}))})),dc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_localeData=r()})(e,(function(){"use strict";return function(n,r,i){var o=r.prototype,s=function(h){return h&&(h.indexOf?h:h.s)},u=function(h,p,O,T,y){var _=h.name?h:h.$locale(),k=s(_[p]),R=s(_[O]),N=k||R.map((function(I){return I.slice(0,T)}));if(!y)return N;var F=_.weekStart;return N.map((function(I,b){return N[(b+(F||0))%7]}))},c=function(){return i.Ls[i.locale()]},f=function(h,p){return h.formats[p]||(function(O){return O.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(T,y,_){return y||_.slice(1)}))})(h.formats[p.toUpperCase()])},m=function(){var h=this;return{months:function(p){return p?p.format("MMMM"):u(h,"months")},monthsShort:function(p){return p?p.format("MMM"):u(h,"monthsShort","months",3)},firstDayOfWeek:function(){return h.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):u(h,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):u(h,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):u(h,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return f(h.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return m.bind(this)()},i.localeData=function(){var h=c();return{firstDayOfWeek:function(){return h.weekStart||0},weekdays:function(){return i.weekdays()},weekdaysShort:function(){return i.weekdaysShort()},weekdaysMin:function(){return i.weekdaysMin()},months:function(){return i.months()},monthsShort:function(){return i.monthsShort()},longDateFormat:function(p){return f(h,p)},meridiem:h.meridiem,ordinal:h.ordinal}},i.months=function(){return u(c(),"months")},i.monthsShort=function(){return u(c(),"monthsShort","months",3)},i.weekdays=function(h){return u(c(),"weekdays",null,null,h)},i.weekdaysShort=function(h){return u(c(),"weekdaysShort","weekdays",3,h)},i.weekdaysMin=function(h){return u(c(),"weekdaysMin","weekdays",2,h)}}}))})),fc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_localizedFormat=r()})(e,(function(){"use strict";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"};return function(r,i,o){var s=i.prototype,u=s.format;o.en.formats=n,s.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var f=this.$locale().formats,m=(function(h,p){return h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(O,T,y){var _=y&&y.toUpperCase();return T||p[y]||n[y]||p[_].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(k,R,N){return R||N.slice(1)}))}))})(c,f===void 0?{}:f);return u.call(this,m)}}}))})),lc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_minMax=r()})(e,(function(){"use strict";return function(n,r,i){var o=function(s,u){if(!u||!u.length||u.length===1&&!u[0]||u.length===1&&Array.isArray(u[0])&&!u[0].length)return null;var c;u.length===1&&u[0].length>0&&(u=u[0]),c=(u=u.filter((function(m){return m})))[0];for(var f=1;f<u.length;f+=1)u[f].isValid()&&!u[f][s](c)||(c=u[f]);return c};i.max=function(){return o("isAfter",[].slice.call(arguments,0))},i.min=function(){return o("isBefore",[].slice.call(arguments,0))}}}))})),mc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_relativeTime=r()})(e,(function(){"use strict";return function(n,r,i){n=n||{};var o=r.prototype,s={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"};function u(f,m,h,p){return o.fromToBase(f,m,h,p)}i.en.relativeTime=s,o.fromToBase=function(f,m,h,p,O){for(var T,y,_,k=h.$locale().relativeTime||s,R=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"}],N=R.length,F=0;F<N;F+=1){var I=R[F];I.d&&(T=p?i(f).diff(h,I.d,!0):h.diff(f,I.d,!0));var b=(n.rounding||Math.round)(Math.abs(T));if(_=T>0,b<=I.r||!I.r){b<=1&&F>0&&(I=R[F-1]);var z=k[I.l];O&&(b=O(""+b)),y=typeof z=="string"?z.replace("%d",b):z(b,m,I.l,_);break}}if(m)return y;var U=_?k.future:k.past;return typeof U=="function"?U(y):U.replace("%s",y)},o.to=function(f,m){return u(f,m,this,!0)},o.from=function(f,m){return u(f,m,this)};var c=function(f){return f.$u?i.utc():i()};o.toNow=function(f){return this.to(c(this),f)},o.fromNow=function(f){return this.from(c(this),f)}}}))})),pc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_timezone=r()})(e,(function(){"use strict";var n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(i,o,s){var u,c=function(p,O,T){T===void 0&&(T={});var y=new Date(p);return(function(_,k){k===void 0&&(k={});var R=k.timeZoneName||"short",N=_+"|"+R,F=r[N];return F||(F=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:_,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:R}),r[N]=F),F})(O,T).formatToParts(y)},f=function(p,O){for(var T=c(p,O),y=[],_=0;_<T.length;_+=1){var k=T[_],R=k.type,N=k.value,F=n[R];F>=0&&(y[F]=parseInt(N,10))}var I=y[3],b=I===24?0:I,z=y[0]+"-"+y[1]+"-"+y[2]+" "+b+":"+y[4]+":"+y[5]+":000",U=+p;return(s.utc(z).valueOf()-(U-=U%1e3))/6e4},m=o.prototype;m.tz=function(p,O){if(p===void 0&&(p=u),!this.isValid())return this;var T,y=this.utcOffset(),_=this.toDate(),k=_.toLocaleString("en-US",{timeZone:p}),R=f(+_,p);if(!Number(R))T=this.utcOffset(0,O);else if(T=s(k,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(R,!0),O){var N=T.utcOffset();T=T.add(y-N,"minute")}return T.$x.$timezone=p,T},m.offsetName=function(p){var O=this.$x.$timezone||s.tz.guess(),T=c(this.valueOf(),O,{timeZoneName:p}).find((function(y){return y.type.toLowerCase()==="timezonename"}));return T&&T.value};var h=m.startOf;m.startOf=function(p,O){if(!this.$x||!this.$x.$timezone)return h.call(this,p,O);var T=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return h.call(T,p,O).tz(this.$x.$timezone,!0)},s.tz=function(p,O,T){var y=T&&O,_=T||O||u,k=f(+s(),_);if(typeof p!="string")return s(p).tz(_);var R=s.utc(p,y).valueOf();if(Number.isNaN(R)){var N=s(NaN);return N.$x.$timezone=_,N}var F=(function(U,H,B){var M=U-60*H*1e3,$=f(M,B);if(H===$)return[M,H];var X=f(M-=60*($-H)*1e3,B);return $===X?[M,$]:[U-60*Math.min($,X)*1e3,Math.max($,X)]})(R,k,_),I=F[0],b=F[1],z=s(I).utcOffset(b);return z.$x.$timezone=_,z},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(p){u=p}}}))})),hc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_utc=r()})(e,(function(){"use strict";var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(o,s,u){var c=s.prototype;u.utc=function(y){return new s({date:y,utc:!0,args:arguments})},c.utc=function(y){var _=u(this.toDate(),{locale:this.$L,utc:!0});return y?_.add(this.utcOffset(),n):_},c.local=function(){return u(this.toDate(),{locale:this.$L,utc:!1})};var f=c.parse;c.parse=function(y){y.utc&&(this.$u=!0),this.$utils().u(y.$offset)||(this.$offset=y.$offset),f.call(this,y)};var m=c.init;c.init=function(){if(this.$u){var y=this.$d;this.$y=y.getUTCFullYear(),this.$M=y.getUTCMonth(),this.$D=y.getUTCDate(),this.$W=y.getUTCDay(),this.$H=y.getUTCHours(),this.$m=y.getUTCMinutes(),this.$s=y.getUTCSeconds(),this.$ms=y.getUTCMilliseconds()}else m.call(this)};var h=c.utcOffset;c.utcOffset=function(y,_){var k=this.$utils().u;if(k(y))return this.$u?0:k(this.$offset)?h.call(this):this.$offset;if(typeof y=="string"&&(y=(function(I){I===void 0&&(I="");var b=I.match(r);if(!b)return null;var z=(""+b[0]).match(i)||["-",0,0],U=z[0],H=60*+z[1]+ +z[2];return H===0?0:U==="+"?H:-H})(y),y===null))return this;var R=Math.abs(y)<=16?60*y:y;if(R===0)return this.utc(_);var N=this.clone();if(_)return N.$offset=R,N.$u=!1,N;var F=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(N=this.local().add(R+F,n)).$offset=R,N.$x.$localOffset=F,N};var p=c.format;c.format=function(y){var _=y||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,_)},c.valueOf=function(){var y=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*y},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var O=c.toDate;c.toDate=function(y){return y==="s"&&this.$offset?u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():O.call(this)};var T=c.diff;c.diff=function(y,_,k){if(y&&this.$u===y.$u)return T.call(this,y,_,k);var R=this.local(),N=u(y).local();return T.call(R,N,_,k)}}}))})),yc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r(rr()):typeof define=="function"&&define.amd?define(["dayjs"],r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_locale_fr=r(n.dayjs)})(e,(function(n){"use strict";function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var i=r(n),o={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(s){return""+s+(s===1?"er":"")}};return i.default.locale(o,null,!0),o}))})),gc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_locale_en=r()})(e,(function(){"use strict";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){var r=["th","st","nd","rd"],i=n%100;return"["+n+(r[(i-20)%10]||r[i]||r[0])+"]"}}}))})),fe=oe(rr(),1),_c=oe(oc(),1),Oc=oe(ac(),1),Ac=oe(sc(),1),Sc=oe(uc(),1),Tc=oe(cc(),1),wc=oe(dc(),1),vc=oe(fc(),1),kc=oe(lc(),1),Rc=oe(mc(),1),Nc=oe(pc(),1),bc=oe(hc(),1),c_=yc(),d_=gc();fe.default.extend(_c.default),fe.default.extend(Oc.default),fe.default.extend(Ac.default),fe.default.extend(Sc.default),fe.default.extend(Tc.default),fe.default.extend(vc.default),fe.default.extend(wc.default),fe.default.extend(kc.default),fe.default.extend(Rc.default),fe.default.extend(Nc.default),fe.default.extend(bc.default);function _e(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function We(e,t=new WeakSet){if(e==null||typeof e!="object"||t.has(e))return e;if(t.add(e),Array.isArray(e))return e.map(n=>We(n,t));if(_e(e)){const n={};for(const r in e)Object.hasOwn(e,r)&&(n[r]=We(e[r],t));return n}return e}function Dt(e,t,n=new WeakSet){if(!(!_e(t)||!_e(e))&&!(t===e||n.has(t))){n.add(t);for(const r in t)if(Object.hasOwn(t,r)){const i=t[r],o=e[r];_e(i)&&_e(o)?Dt(o,i,n):Array.isArray(i)&&Array.isArray(o)?e[r]=ir(o,i,n):e[r]=We(i,n)}}}function ir(e,t,n){const r=e.slice();for(let i=0;i<t.length;i++){const o=t[i],s=r[i];if(_e(o)&&_e(s)){const u={...s};Dt(u,o,n),r[i]=u}else Array.isArray(o)&&Array.isArray(s)?r[i]=ir(s,o,n):r[i]=We(o,n)}return r}function or(e,...t){if(!_e(e))throw new TypeError("Target must be a plain object");const n=new WeakSet;for(const r of t)r!=null&&Dt(e,r,n);return e}function Pc(e){const t={};for(const n of Object.keys(e)){const r=e[n];r!==void 0&&(t[n]=r)}return t}var ee=[];for(let e=0;e<256;++e)ee.push((e+256).toString(16).slice(1));function Cc(e,t=0){return(ee[e[t+0]]+ee[e[t+1]]+ee[e[t+2]]+ee[e[t+3]]+"-"+ee[e[t+4]]+ee[e[t+5]]+"-"+ee[e[t+6]]+ee[e[t+7]]+"-"+ee[e[t+8]]+ee[e[t+9]]+"-"+ee[e[t+10]]+ee[e[t+11]]+ee[e[t+12]]+ee[e[t+13]]+ee[e[t+14]]+ee[e[t+15]]).toLowerCase()}var Ic=new Uint8Array(16);function Mc(){return crypto.getRandomValues(Ic)}function Dc(e,t,n){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():Jc(e,t,n)}function Jc(e,t,n){e=e||{};const r=e.random??e.rng?.()??Mc();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n=n||0,n<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let i=0;i<16;++i)t[n+i]=r[i];return t}return Cc(r)}var Ec=1500,ke={},Fc=class{defaultOptions={callCount:1,interval:Ec,maxCallCount:20,minCallCount:1};events={complete:()=>{},data:()=>{},error:()=>{}};on(e,t){this.events[e]=t}poll(e,t){const n=this.buildPollerOptions(t);return this.storeCurrentPolling(n),this.isActivePoller(n)&&e().then(r=>this.onRequest(r,e,n)).catch(r=>{const i=r instanceof Error?r:new Error(String(r));this.dispatch("error",i)}),this}stop(e){e&&ke[e]&&delete ke[e]}buildPollerOptions(e){return{...this.defaultOptions,...Pc(e)}}dispatch(e,t){this.events[e](t)}isActivePoller(e){return e.type?!!ke[e.type]&&ke[e.type]===e.uuid:!0}isInProgress(e){return(e?.meta?.status??"")!=="COMPLETE"}onComplete(e,t){this.dispatch("data",e),this.dispatch("complete",e),this.removeCurrentPolling(t)}async onRequest(e,t,n){const r=E(e,D.Camel);this.isActivePoller(n)&&(this.isInProgress(r)&&n.callCount&&n.maxCallCount&&n.callCount<n.maxCallCount||!this.isInProgress(r)&&n.callCount&&n.minCallCount&&n.callCount<n.minCallCount?(this.isInProgress(r)||(r.meta={...r.meta,status:"IN_PROGRESS"}),n.callCount+=1,this.dispatch("data",r),n.interval&&await this.pause(n),this.poll(t,n)):this.isInProgress(r)?(r.meta={...r.meta,status:"COMPLETE"},this.onComplete(r,n)):this.onComplete(r,n))}pause(e){return new Promise(t=>{setTimeout(t,e.interval)})}removeCurrentPolling(e){e.type&&ke[e.type]&&delete ke[e.type]}storeCurrentPolling(e){e.type&&!e.uuid&&(e.uuid=Dc(),ke[e.type]=e.uuid)}};function zc(){return new Fc}function Xe(e,t,n){const r=zc();return r.poll(e,t),n&&typeof n=="function"?(r.on("data",i=>{i instanceof Error?n(i,void 0,r):n(null,i,r)}),r.on("error",i=>{i instanceof Error?n(i):n(null,i)}),r):new Promise((i,o)=>{r.on("error",o),r.on("complete",s=>{s instanceof Error?o(s):i(s)})})}function ar(e){const t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,r])=>t.indexOf(+n)===-1).map(([n,r])=>r)}function sr(e,t="|"){return e.map(n=>dr(n)).join(t)}function Jt(e,t){return typeof t=="bigint"?t.toString():t}function Et(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function $c(e){return e==null}function Ft(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Lc(e,t){const n=e/t,r=Math.round(n),i=4*Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}function se(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Oe(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function Hc(e){return JSON.stringify(e)}function Bc(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var ur="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Qe(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Uc=Et(()=>{if(me.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch{return!1}});function He(e){if(Qe(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Qe(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function cr(e){return He(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var Zc=new Set(["string","number","symbol"]);function xe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ae(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function C(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function dr(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Gc(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}var qc={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Kc(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");return Ae(e,Oe(e._zod.def,{get shape(){const i={};for(const o of Reflect.ownKeys(t)){if(!Object.prototype.hasOwnProperty.call(n.shape,o))throw new Error(`Unrecognized key: "${String(o)}"`);t[o]&&se(i,o,n.shape[o])}return se(this,"shape",i),i},checks:[]}))}function Yc(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");return Ae(e,Oe(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const o of Reflect.ownKeys(t)){if(!Object.prototype.hasOwnProperty.call(n.shape,o))throw new Error(`Unrecognized key: "${String(o)}"`);t[o]&&delete i[o]}return se(this,"shape",i),i},checks:[]}))}function Vc(e,t){if(!He(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const r=e._zod.def.shape;for(const i of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(r,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return Ae(e,Oe(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return se(this,"shape",r),r}}))}function Wc(e,t){if(!He(t))throw new Error("Invalid input to safeExtend: expected a plain object");return Ae(e,Oe(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t};return se(this,"shape",n),n}}))}function Xc(e,t){if(!t?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");return Ae(e,Oe(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return se(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function fr(e,t,n,r="partial"){const i=t._zod.def.checks;if(i&&i.length>0)throw new Error(`.${r}() cannot be used on object schemas containing refinements`);return Ae(t,Oe(t._zod.def,{get shape(){const o=t._zod.def.shape,s={...o};if(n)for(const u of Reflect.ownKeys(n)){if(!Object.prototype.hasOwnProperty.call(o,u))throw new Error(`Unrecognized key: "${String(u)}"`);n[u]&&(s[u]=e?new e({type:"optional",innerType:o[u]}):o[u])}else for(const u of Reflect.ownKeys(o))s[u]=e?new e({type:"optional",innerType:o[u]}):o[u];return se(this,"shape",s),s},checks:[]}))}function Qc(e,t,n){return Ae(t,Oe(t._zod.def,{get shape(){const r=t._zod.def.shape,i={...r};if(n)for(const o of Reflect.ownKeys(n)){if(!Object.prototype.hasOwnProperty.call(i,o))throw new Error(`Unrecognized key: "${String(o)}"`);n[o]&&(i[o]=new e({type:"nonoptional",innerType:r[o]}))}else for(const o of Reflect.ownKeys(r))i[o]=new e({type:"nonoptional",innerType:r[o]});return se(this,"shape",i),i}}))}function Pe(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function xc(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function lr(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function Be(e){return typeof e=="string"?e:e?.message}function mr(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n)}function Ce(e,t,n){var r;const i=e.inst?._zod?.traits;i?.has("$ZodType")&&(i.has("$ZodCheck")?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);const o=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,s=e.message?e.message:Be(e.inst?._zod.def?.error?.(e))??Be(o?.(e))??Be(t?.error?.(e))??Be(n.customError?.(e))??Be(n.localeError?.(e))??"Invalid input",{inst:u,schema:c,continue:f,input:m,...h}=e;return h.path??(h.path=[]),h.message=s,t?.reportInput&&(h.input=m),h}var jc=/[\uD800-\uDBFF]/;function zt(e){const t=e.length;if(!jc.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)===55296&&(e.charCodeAt(r+1)&64512)===56320&&(n--,r++);return n}function $t(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ed(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";const n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function Ue(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}function td(e,t){for(const n in t){const r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):nd(e,n,r.value)}}function Ie(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function pr(e,t,n){return Ie(e,t,n,!1)}function nd(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:Ie(this,t,n.bind(this))},set(r){Ie(this,t,r)}})}function rd(e,t){const n=Object.getPrototypeOf(e);return t in n?void 0:n}var Lt,Se=!1,id={configurable:!0,get(){Se=!0}};function G(e,t,n){const r=Object.getPrototypeOf(e._zod);if(t in r&&Lt!==e._zod){Lt=void 0;return}Lt=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,id);const i=Se;Se=!1;try{const o=n(this);return Se?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:o}),Se=Se||i,o}catch(o){throw delete this[t],Se=Se||i,o}},set(i){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:i})}})}function od(e,t,n,r){const i=rd(e,t);i&&Object.defineProperty(i,t,{configurable:!0,get(){const o={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,o),o.value=n(this),Object.defineProperty(this,t,o),o.value},set(o){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:o})}})}var ad="~constantCatch";function sd(e){const t=()=>e;return t[ad]=!0,t}var hr,Ht={value:void 0,enumerable:!1},yr="captureStackTrace"in Error?Error:null;function ud(e){const t=yr;if(t){const n=t.stackTraceLimit;if(typeof n=="number"){try{t.stackTraceLimit=0}catch{return yr=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function g(e,t,n,r){const i={};function o(p){this.def=p,this.constr=h,this.traits=new Set}o.prototype=i;const s=n,u=s&&new WeakSet;function c(p,O){if(!p._zod){Ht.value=new o(O);try{Object.defineProperty(p,"_zod",Ht)}finally{Ht.value=void 0}}if(p._zod.traits.has(e))return;if(p._zod.traits.add(e),t(p,O),u){const y=Object.getPrototypeOf(p),_=p._zod.constr.prototype;let k=y;for(;k&&k!==_;)k=Object.getPrototypeOf(k);const R=k??y;u.has(R)||(u.add(R),td(R,s))}const T=h.prototype;for(const y in T)Object.prototype.hasOwnProperty.call(T,y)&&(y in p||(p[y]=T[y].bind(p)))}const f=r?.Parent??Object;class m extends f{}Object.defineProperty(m,"name",{value:e});function h(p){const O=r?.Parent?ud(m):this;c(O,p);const T=O._zod.deferred;if(T){for(const _ of T)_();O._zod.deferred=void 0}const y=globalThis.__zod_globalConfig?.postProcessor;return y&&y(O),O}return Object.defineProperty(h,"init",{value:c}),Object.defineProperty(h,Symbol.hasInstance,{value:p=>r?.Parent&&p instanceof r.Parent?!0:p?._zod?.traits?.has(e)}),Object.defineProperty(h,"name",{value:e}),h}var Me=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},gr=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}};(hr=globalThis).__zod_globalConfig??(hr.__zod_globalConfig={});var me=globalThis.__zod_globalConfig;function Te(e){return e&&Object.assign(me,e),me}function cd(){const e=this._zod;return e.message??(e.message=JSON.stringify(e.def,Jt,2)),e.message}function dd(e){this._zod.message=e}var fd={get:cd,set:dd,enumerable:!0,configurable:!0},Bt={value:void 0,enumerable:!1},Ut={value:void 0,enumerable:!1},_r=new WeakSet([Object.prototype,Error.prototype]),Or=(e,t)=>{e.name="$ZodError",Bt.value=e._zod,Object.defineProperty(e,"_zod",Bt),Ut.value=t,Object.defineProperty(e,"issues",Ut),Bt.value=void 0,Ut.value=void 0,Object.defineProperty(e,"message",fd);const n=Object.getPrototypeOf(e);_r.has(n)||(_r.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){const r=()=>this.message;return Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0})}}))},Ar=g("$ZodError",Or),Sr=g("$ZodError",Or,void 0,{Parent:Error});function ld(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t==="__proto__"?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function md(e,t=n=>n.message){const n={},r=[];for(const i of e.issues)i.path.length>0?ld(n,i.path[0],()=>[]).push(t(i)):r.push(t(i));return{formErrors:r,fieldErrors:n}}function pd(e,t=n=>n.message){const n={_errors:[]},r=(i,o=[])=>{for(const s of i.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(u=>r({issues:u},[...o,...s.path]));else if(s.code==="invalid_key")r({issues:s.issues},[...o,...s.path]);else if(s.code==="invalid_element")r({issues:s.issues},[...o,...s.path]);else{const u=[...o,...s.path];if(u.length===0)n._errors.push(t(s));else{let c=n,f=0;for(;f<u.length;){const m=u[f],h=f===u.length-1;if(m==="_errors"){h&&c._errors.push(t(s)),f++;continue}Object.prototype.hasOwnProperty.call(c,m)||Object.defineProperty(c,m,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});const p=c[m];h&&p._errors.push(t(s)),c=p,f++}}}};return r(e),n}function je(e,t){return{callee:t?.callee??e,Err:t?.Err}}var Zt=e=>{const t=(n,r,i,o)=>{const s=i?{...i,async:!1}:{async:!1},u=n._zod.run({value:r,issues:[]},s);if(u instanceof Promise)throw new Me;if(u.issues.length){const c=new(o?.Err??e)(u.issues.map(f=>Ce(f,s,Te())));throw ur(c,o?.callee??t),c}return u.value};return t},Gt=e=>{const t=async(n,r,i,o)=>{const s=i?{...i,async:!0}:{async:!0};let u=n._zod.run({value:r,issues:[]},s);if(u instanceof Promise&&(u=await u),u.issues.length){const c=new(o?.Err??e)(u.issues.map(f=>Ce(f,s,Te())));throw ur(c,o?.callee??t),c}return u.value};return t},et=e=>(t,n,r)=>{const i=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},i);if(o instanceof Promise)throw new Me;return o.issues.length?{success:!1,error:new(e??Ar)(o.issues.map(s=>Ce(s,i,Te())))}:{success:!0,data:o.value}},hd=et(Sr),tt=e=>async(t,n,r)=>{const i=r?{...r,async:!0}:{async:!0};let o=t._zod.run({value:n,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(s=>Ce(s,i,Te())))}:{success:!0,data:o.value}},yd=tt(Sr),gd=e=>{const t=Zt(e),n=(r,i,o,s)=>{const u=o?{...o,direction:"backward"}:{direction:"backward"};return t(r,i,u,je(n,s))};return n},_d=e=>{const t=Zt(e),n=(r,i,o,s)=>t(r,i,o,je(n,s));return n},Od=e=>{const t=Gt(e),n=async(r,i,o,s)=>{const u=o?{...o,direction:"backward"}:{direction:"backward"};return await t(r,i,u,je(n,s))};return n},Ad=e=>{const t=Gt(e),n=async(r,i,o,s)=>await t(r,i,o,je(n,s));return n},Sd=e=>(t,n,r)=>{const i=r?{...r,direction:"backward"}:{direction:"backward"};return et(e)(t,n,i)},Td=e=>(t,n,r)=>et(e)(t,n,r),wd=e=>async(t,n,r)=>{const i=r?{...r,direction:"backward"}:{direction:"backward"};return tt(e)(t,n,i)},vd=e=>async(t,n,r)=>tt(e)(t,n,r),kd=/^[cC][0-9a-z]{6,}$/,Rd=/^[0-9a-z]+$/,Nd=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,bd=/^[0-9a-vA-V]{20}$/,Pd=/^[A-Za-z0-9]{27}$/,Cd=/^[a-zA-Z0-9_-]{21}$/;function Id(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var Md=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Dd=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Tr=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Jd=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Ed="^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function Fd(){return new RegExp(Ed,"u")}var zd=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,$d=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Ld=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Hd=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Bd=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,wr=/^[A-Za-z0-9_-]*$/,Ud=/^https?$/,Zd=/^\+[1-9]\d{6,14}$/,vr="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))";function Gd(e){return new RegExp(`^${e}$`)}var qd=Gd(vr);function qt(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Kd(e){return new RegExp(`^${qt(e)}$`)}function Yd(e){const t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${qt({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,r=e.local?`${n}|${qt({precision:e.precision})}`:n;return new RegExp(`^${vr}T(?:${r})$`)}var Vd=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Wd=/^-?\d+$/,Xd=/^-?\d+(?:\.\d+)?$/,Qd=/^[^A-Z]*$/,xd=/^[^a-z]*$/,ae=g("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Kt=e=>{const t=e.value;return!$c(t)&&t.length!==void 0},nt={number:"number",bigint:"bigint",object:"date"},kr=g("$ZodCheckLessThan",(e,t)=>{ae.init(e,t);const n=nt[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,o=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?i.maximum=t.value:i.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:nt[typeof r.value]??n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Rr=g("$ZodCheckGreaterThan",(e,t)=>{ae.init(e,t);const n=nt[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,o=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:nt[typeof r.value]??n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),jd=g("$ZodCheckMultipleOf",(e,t)=>{ae.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):Lc(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),ef=g("$ZodCheckNumberFormat",(e,t)=>{ae.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[i,o]=qc[t.format];e._zod.onattach.push(s=>{const u=s._zod.bag;u.format=t.format,u.minimum=i,u.maximum=o,n&&(u.pattern=Wd)}),e._zod.check=s=>{const u=s.value;if(n){if(!Number.isInteger(u)){s.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:u,inst:e});return}if(!Number.isSafeInteger(u)){u>0?s.issues.push({input:u,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):s.issues.push({input:u,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}u<i&&s.issues.push({origin:"number",input:u,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),u>o&&s.issues.push({origin:"number",input:u,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),tf=g("$ZodCheckMaxLength",(e,t)=>{var n;ae.init(e,t),(n=e._zod.def).when??(n.when=Kt),e._zod.onattach.push(r=>{const i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const i=r.value,o=i.length;if((typeof i=="string"&&o>t.maximum?zt(i):o)<=t.maximum)return;const s=$t(i);r.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),nf=g("$ZodCheckMinLength",(e,t)=>{var n;ae.init(e,t),(n=e._zod.def).when??(n.when=Kt),e._zod.onattach.push(r=>{const i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const i=r.value,o=i.length;if((typeof i=="string"&&o>=t.minimum&&o<t.minimum*2?zt(i):o)>=t.minimum)return;const s=$t(i);r.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),rf=g("$ZodCheckLengthEquals",(e,t)=>{var n;ae.init(e,t),(n=e._zod.def).when??(n.when=Kt),e._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=r=>{const i=r.value,o=i.length,s=typeof i=="string"&&o>=t.length&&o<=t.length*2?zt(i):o;if(s===t.length)return;const u=$t(i),c=s>t.length;r.issues.push({origin:u,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),rt=g("$ZodCheckStringFormat",(e,t)=>{var n,r;ae.init(e,t),e._zod.onattach.push(i=>{const o=i._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),of=g("$ZodCheckRegex",(e,t)=>{rt.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),af=g("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Qd),rt.init(e,t)}),sf=g("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=xd),rt.init(e,t)}),uf=g("$ZodCheckIncludes",(e,t)=>{ae.init(e,t);const n=xe(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position},}${n}`:n);t.pattern=r,e._zod.onattach.push(i=>{const o=i._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),cf=g("$ZodCheckStartsWith",(e,t)=>{ae.init(e,t);const n=new RegExp(`^${xe(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),df=g("$ZodCheckEndsWith",(e,t)=>{ae.init(e,t);const n=new RegExp(`.*${xe(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),ff=g("$ZodCheckOverwrite",(e,t)=>{ae.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}}),lf=class{constructor(e=[],t={}){this.content=[],this.indent=0,this.args=e,this.closed=t}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}const t=e.split(`
|
|
3
|
+
`).filter(i=>i),n=Math.min(...t.map(i=>i.length-i.trimStart().length)),r=t.map(i=>i.slice(n)).map(i=>" ".repeat(this.indent*2)+i);for(const i of r)this.content.push(i)}compile(){const e=Function,t=this?.content??[""];return new e(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
|
|
4
|
+
${t.join(`
|
|
5
|
+
`)}
|
|
6
|
+
};`)(...Object.values(this.closed))}},mf={major:4,minor:5,patch:4},x=g("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=mf;const r=e._zod.def.checks,i=e._zod.traits.has("$ZodCheck")?[e,...r??[]]:r?.length?[...r]:[];for(const o of i)for(const s of o._zod.onattach)s(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(u,c,f)=>{if(u.memo)return u;let m=Pe(u),h;for(const p of c){if(p._zod.def.when){if(xc(u)||!p._zod.def.when(u))continue}else if(m)continue;const O=u.issues.length,T=p._zod.check(u);if(T instanceof Promise&&f?.async===!1)throw new Me;if(h||T instanceof Promise)h=(h??Promise.resolve()).then(async()=>{await T,u.issues.length!==O&&(mr(u.issues,O,e),m||(m=Pe(u,O)))});else{if(u.issues.length===O)continue;mr(u.issues,O,e),m||(m=Pe(u,O))}}return h?h.then(()=>u):u},s=(u,c,f)=>{if(Pe(u))return u.aborted=!0,u;const m=o(c,i,f);if(m instanceof Promise){if(f.async===!1)throw new Me;return m.then(h=>e._zod.parse(h,f))}return e._zod.parse(m,f)};e._zod.run=(u,c)=>{if(c.skipChecks)return e._zod.parse(u,c);if(c.direction==="backward"){const m=e._zod.parse({value:u.value,issues:[]},{...c,skipChecks:!0});return m instanceof Promise?m.then(h=>s(h,u,c)):s(m,u,c)}const f=e._zod.parse(u,c);if(f instanceof Promise){if(c.async===!1)throw new Me;return f.then(m=>o(m,i,c))}return o(f,i,c)}}},{get"~standard"(){return pr(this,"~standard",br(this))},set"~standard"(e){Ie(this,"~standard",e)}}),Nr=e=>e.success?{value:e.data}:{issues:e.error?.issues};function br(e){return{validate:t=>{try{return Nr(hd(e,t))}catch{return yd(e,t).then(Nr)}},vendor:"zod",version:1}}var Yt=g("$ZodString",(e,t)=>{x.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Vd(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),V=g("$ZodStringFormat",(e,t)=>{rt.init(e,t),Yt.init(e,t)}),pf=g("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Dd),V.init(e,t)}),hf=g("$ZodUUID",(e,t)=>{if(t.version){const n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Tr(n))}else t.pattern??(t.pattern=Tr());V.init(e,t)}),yf=g("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Jd),V.init(e,t)}),f_=1,l_=2;function gf(e,t){if(!t.normalize&&t.protocol?.source===Ud.source&&!/^https?:\/\//i.test(e))return 1;try{return new URL(e)}catch{return 2}}var _f=/[\t\n\r]/g;function Of(e){return e.replace(_f,"")}function Af(e,t){return t.lastIndex=0,t.test(e.hostname)}function Sf(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}var Tf=g("$ZodURL",(e,t)=>{V.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),i=gf(r,t);if(i===1){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}if(i===2){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort});return}t.hostname&&!Af(i,t.hostname)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&!Sf(i,t.protocol)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?i.href:Of(r);return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),wf=g("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Fd()),V.init(e,t)}),vf=g("$ZodNanoID",(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw new Error(`Invalid nanoid length: ${t.length}`);t.pattern??(t.pattern=t.length===void 0?Cd:Id(t.length)),V.init(e,t)}),kf=g("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=kd),V.init(e,t)}),Rf=g("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Rd),V.init(e,t)}),Nf=g("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Nd),V.init(e,t)}),bf=g("$ZodXID",(e,t)=>{t.pattern??(t.pattern=bd),V.init(e,t)}),Pf=g("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Pd),V.init(e,t)}),Cf=g("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Yd(t)),V.init(e,t),(t.local||t.precision===-1)&&(e._zod.bag.laxFormat=!0,e._zod.onattach.push(n=>{n._zod.bag.laxFormat=!0}))}),If=g("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=qd),V.init(e,t)}),Mf=g("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Kd(t)),V.init(e,t)}),Df=g("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Md),V.init(e,t)}),Jf=g("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=zd),V.init(e,t),e._zod.bag.format="ipv4"}),Ef=/^[0-9a-fA-F:.]+$/;function Pr(e){if(!Ef.test(e))return!1;try{return new URL(`http://[${e}]`),!0}catch{return!1}}var Ff=g("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=$d),V.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{Pr(n.value)||n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}),zf=g("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Ld),V.init(e,t)});function $f(e){const t=e.split("/");if(t.length!==2)return!1;const[n,r]=t;if(!r)return!1;const i=Number(r);return`${i}`!==r||i<0||i>128?!1:Pr(n)}var Lf=g("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Hd),V.init(e,t),e._zod.check=n=>{$f(n.value)||n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}});function Cr(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Hf=g("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Bd),V.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Cr(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Bf(e){if(!wr.test(e))return!1;const t=e.replace(/[-_]/g,n=>n==="-"?"+":"/");return Cr(t.padEnd(Math.ceil(t.length/4)*4,"="))}var Uf=g("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=wr),V.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{Bf(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Zf=g("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Zd),V.init(e,t)});function Gf(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const i=JSON.parse(atob(r));return!("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}var qf=g("$ZodJWT",(e,t)=>{V.init(e,t),e._zod.check=n=>{Gf(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Ir=g("$ZodNumber",(e,t)=>{x.init(e,t),e._zod.pattern=e._zod.bag.pattern??Xd,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const i=n.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return n;const o=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:String(i):void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...o?{received:o}:{}}),n}}),Kf=g("$ZodNumberFormat",(e,t)=>{ef.init(e,t),Ir.init(e,t)}),Yf=g("$ZodSymbol",(e,t)=>{x.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;return typeof i=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:i,inst:e}),n}}),Vf=g("$ZodUnknown",(e,t)=>{x.init(e,t),e._zod.parse=n=>n}),Wf=g("$ZodNever",(e,t)=>{x.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Mr(e,t,n){e.issues.length&&t.issues.push(...lr(n,e.issues)),t.value[n]=e.value}var Xf=g("$ZodArray",(e,t)=>{x.init(e,t);const n=me.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{const o=r.value;if(!Array.isArray(o))return r.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),r;r.value=n?n.alloc(e,r,Array(o.length),i):Array(o.length);const s=[];for(let u=0;u<o.length;u++){const c=o[u],f=t.element._zod.run({value:c,issues:[]},i);f instanceof Promise?s.push(f.then(m=>Mr(m,r,u))):Mr(f,r,u)}return s.length?Promise.all(s).then(()=>r):r}});function it(e,t,n,r,i,o){const s=n in r,u=o==="optional";if(!(!s&&u&&i==="optional")){if(e.issues.length){if(i!==void 0&&u&&!s)return;t.issues.push(...lr(n,e.issues))}if(!s&&i===void 0){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?s&&(t.value[n]=void 0):t.value[n]=e.value}}var Qf=[];function Dr(e){const t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:Qf,i=r.length?[...t,...r]:t;for(const s of i)if(!e.shape?.[s]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${String(s)}": expected a Zod schema`);const o=Gc(e.shape);return{...e,allKeys:i,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(o)}}function Jr(e,t,n,r,i,o){const s=[],u=i.keySet,c=i.catchall._zod,f=c.def.type,m=c.optin,h=c.optout;for(const p in t){if(u.has(p))continue;if(p==="__proto__"){f==="never"&&s.push(p);continue}if(f==="never"){s.push(p);continue}const O=c.run({value:t[p],issues:[]},r);O instanceof Promise?e.push(O.then(T=>it(T,n,p,t,m,h))):it(O,n,p,t,m,h)}return s.length&&n.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:o,continue:!0}),e.length?Promise.all(e).then(()=>n):n}var Er=new WeakMap,xf=g("$ZodObject",(e,t)=>{if(x.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const u=t.shape;Er.set(t,u),Object.defineProperty(t,"shape",{get:()=>{const c={...u};return Object.defineProperty(t,"shape",{value:c}),Er.set(t,c),c}})}const n=Et(()=>Dr(t));G(e,"propValues",u=>{const c=u.def.shape,f={};for(const m in c){const h=c[m]._zod;if(h.values){Object.prototype.hasOwnProperty.call(f,m)||se(f,m,new Set);for(const p of h.values)f[m].add(p);h.optin!==void 0&&f[m].add(void 0)}}return f});const r=Qe,i=t.catchall;let o;const s=me.memoizer;s?.attach(e),e._zod.parse=(u,c)=>{o??(o=n.value);const f=u.value;if(!r(f))return u.issues.push({expected:"object",code:"invalid_type",input:f,inst:e}),u;u.value=s?s.alloc(e,u,{},c):{};const m=[],h=o.shape;for(const p of o.allKeys){if(p==="__proto__")continue;const O=h[p],T=O._zod.optin,y=O._zod.optout,_=O._zod.run({value:f[p],issues:[]},c);_ instanceof Promise?m.push(_.then(k=>it(k,u,p,f,T,y))):it(_,u,p,f,T,y)}return i?Jr(m,f,u,c,n.value,e):m.length?Promise.all(m).then(()=>u):u}}),jf=g("$ZodObjectJIT",(e,t)=>{xf.init(e,t);const n=e._zod.parse,r=Et(()=>Dr(t)),i=me.memoizer,o=O=>{const T=r.value,y=T.symbolKeys,_=new lf(["payload","ctx"],{shape:O,inst:e,memo:i,syms:y}),k=I=>`shape[${I}]._zod.run({ value: input[${I}], issues: [] }, ctx)`,R=(I,b)=>`
|
|
7
|
+
for (let i = 0; i < ${I}.issues.length; i++) {
|
|
8
|
+
const iss = ${I}.issues[i];
|
|
9
|
+
iss.path = iss.path ? [${b}, ...iss.path] : [${b}];
|
|
10
|
+
payload.issues.push(iss);
|
|
11
|
+
}`;_.write("const input = payload.value;");const N=Object.create(null);let F=0;for(const I of T.allKeys)N[I]=`key_${F++}`;_.write(i?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(const I of T.allKeys){if(I==="__proto__")continue;const b=N[I],z=typeof I=="symbol"?`syms[${y.indexOf(I)}]`:Hc(I),U=`${z} in input`,H=O[I],B=H?._zod?.optin,M=B!==void 0,$=H?._zod?.optout==="optional";if(_.write(`const ${b} = ${k(z)};`),M&&$){const X=B==="optional"?`${b}_present`:`${b}.value !== undefined || ${b}_present`;_.write(`
|
|
12
|
+
const ${b}_present = ${U};
|
|
13
|
+
if (!${b}.issues.length || ${b}_present) {
|
|
14
|
+
if (${b}.issues.length) {${R(b,z)}
|
|
11
15
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
if (${P} in input) {
|
|
16
|
-
newResult[${P}] = undefined;
|
|
16
|
+
|
|
17
|
+
if (${X}) {
|
|
18
|
+
newResult[${z}] = ${b}.value;
|
|
17
19
|
}
|
|
18
|
-
} else {
|
|
19
|
-
newResult[${P}] = ${N}.value;
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
`)
|
|
23
|
-
if (${
|
|
24
|
-
payload.issues = payload.issues.concat(${N}.issues.map(iss => ({
|
|
25
|
-
...iss,
|
|
26
|
-
path: iss.path ? [${P}, ...iss.path] : [${P}]
|
|
27
|
-
})));
|
|
21
|
+
|
|
22
|
+
`)}else M?_.write(`
|
|
23
|
+
if (${b}.issues.length) {${R(b,z)}
|
|
28
24
|
}
|
|
29
25
|
|
|
30
|
-
if (${
|
|
31
|
-
if (${
|
|
32
|
-
newResult[${
|
|
26
|
+
if (${b}.value === undefined) {
|
|
27
|
+
if (${U}) {
|
|
28
|
+
newResult[${z}] = undefined;
|
|
33
29
|
}
|
|
34
30
|
} else {
|
|
35
|
-
newResult[${
|
|
31
|
+
newResult[${z}] = ${b}.value;
|
|
36
32
|
}
|
|
37
|
-
|
|
38
|
-
`):
|
|
39
|
-
const ${
|
|
40
|
-
if (${
|
|
41
|
-
payload.issues = payload.issues.concat(${N}.issues.map(iss => ({
|
|
42
|
-
...iss,
|
|
43
|
-
path: iss.path ? [${P}, ...iss.path] : [${P}]
|
|
44
|
-
})));
|
|
33
|
+
|
|
34
|
+
`):_.write(`
|
|
35
|
+
const ${b}_present = ${U};
|
|
36
|
+
if (${b}.issues.length) {${R(b,z)}
|
|
45
37
|
}
|
|
46
|
-
if (!${
|
|
38
|
+
if (!${b}_present && !${b}.issues.length) {
|
|
47
39
|
payload.issues.push({
|
|
48
40
|
code: "invalid_type",
|
|
49
41
|
expected: "nonoptional",
|
|
50
42
|
input: undefined,
|
|
51
|
-
path: [${
|
|
43
|
+
path: [${z}]
|
|
52
44
|
});
|
|
53
45
|
}
|
|
54
46
|
|
|
55
|
-
if (${
|
|
56
|
-
|
|
57
|
-
newResult[${P}] = undefined;
|
|
58
|
-
} else {
|
|
59
|
-
newResult[${P}] = ${N}.value;
|
|
60
|
-
}
|
|
47
|
+
if (${b}_present) {
|
|
48
|
+
newResult[${z}] = ${b}.value;
|
|
61
49
|
}
|
|
62
50
|
|
|
63
|
-
`)}A.write("payload.value = newResult;"),A.write("return payload;");const M=A.compile();return(v,N)=>M(p,v,N)};let a;const s=Ke,u=!Ye.jitless,l=u&&ic.value,m=t.catchall;let g;e._zod.parse=(p,A)=>{g??(g=r.value);const k=p.value;return s(k)?u&&l&&A?.async===!1&&A.jitless!==!0?(a||(a=i(t.shape)),p=a(p,A),m?ur([],k,p,A,g,e):p):n(p,A):(p.issues.push({expected:"object",code:"invalid_type",input:k,inst:e}),p)}});function cr(e,t,n,r){for(const a of e)if(a.issues.length===0)return t.value=a.value,t;const i=e.filter(a=>!Pe(a));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(a=>a.issues.map(s=>ke(s,r,Te())))}),t)}var Yd=h("$ZodUnion",(e,t)=>{Q.init(e,t),U(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),U(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),U(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),U(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){const r=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${r.map(i=>Nt(i.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1;const s=[];for(const u of t.options){const d=u._zod.run({value:r.value,issues:[]},i);if(d instanceof Promise)s.push(d),a=!0;else{if(d.issues.length===0)return d;s.push(d)}}return a?Promise.all(s).then(u=>cr(u,r,e,i)):cr(s,r,e,i)}}),Kd=h("$ZodIntersection",(e,t)=>{Q.init(e,t),e._zod.parse=(n,r)=>{const i=n.value,a=t.left._zod.run({value:i,issues:[]},r),s=t.right._zod.run({value:i,issues:[]},r);return a instanceof Promise||s instanceof Promise?Promise.all([a,s]).then(([u,d])=>dr(n,u,d)):dr(n,a,s)}});function It(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Fe(e)&&Fe(t)){const n=Object.keys(t),r=Object.keys(e).filter(a=>n.indexOf(a)!==-1),i={...e,...t};for(const a of r){const s=It(e[a],t[a]);if(!s.valid)return{valid:!1,mergeErrorPath:[a,...s.mergeErrorPath]};i[a]=s.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const i=e[r],a=t[r],s=It(i,a);if(!s.valid)return{valid:!1,mergeErrorPath:[r,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function dr(e,t,n){const r=new Map;let i;for(const u of t.issues)if(u.code==="unrecognized_keys"){i??(i=u);for(const d of u.keys)r.has(d)||r.set(d,{}),r.get(d).l=!0}else e.issues.push(u);for(const u of n.issues)if(u.code==="unrecognized_keys")for(const d of u.keys)r.has(d)||r.set(d,{}),r.get(d).r=!0;else e.issues.push(u);const a=[...r].filter(([,u])=>u.l&&u.r).map(([u])=>u);if(a.length&&i&&e.issues.push({...i,keys:a}),Pe(e))return e;const s=It(t.value,n.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}var Vd=h("$ZodEnum",(e,t)=>{Q.init(e,t);const n=Zn(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(i=>oc.has(typeof i)).map(i=>typeof i=="string"?Ve(i):i.toString()).join("|")})$`),e._zod.parse=(i,a)=>{const s=i.value;return r.has(s)||i.issues.push({code:"invalid_value",values:n,input:s,inst:e}),i}}),Wd=h("$ZodTransform",(e,t)=>{Q.init(e,t),e._zod.optin="optional",e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Bn(e.constructor.name);const i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(a=>(n.value=a,n.fallback=!0,n));if(i instanceof Promise)throw new Ne;return n.value=i,n.fallback=!0,n}});function fr(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var lr=h("$ZodOptional",(e,t)=>{Q.init(e,t),e._zod.optin="optional",e._zod.optout="optional",U(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),U(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Nt(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const i=n.value,a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(s=>fr(s,i)):fr(a,i)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),Xd=h("$ZodExactOptional",(e,t)=>{lr.init(e,t),U(e._zod,"values",()=>t.innerType._zod.values),U(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),Qd=h("$ZodNullable",(e,t)=>{Q.init(e,t),U(e._zod,"optin",()=>t.innerType._zod.optin),U(e._zod,"optout",()=>t.innerType._zod.optout),U(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Nt(n.source)}|null)$`):void 0}),U(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),xd=h("$ZodDefault",(e,t)=>{Q.init(e,t),e._zod.optin="optional",U(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(a=>mr(a,t)):mr(i,t)}});function mr(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var jd=h("$ZodPrefault",(e,t)=>{Q.init(e,t),e._zod.optin="optional",U(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),ef=h("$ZodNonOptional",(e,t)=>{Q.init(e,t),U(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(a=>pr(a,e)):pr(i,e)}});function pr(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var tf=h("$ZodCatch",(e,t)=>{Q.init(e,t),e._zod.optin="optional",U(e._zod,"optout",()=>t.innerType._zod.optout),U(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(a=>(n.value=a.value,a.issues.length&&(n.value=t.catchValue({...n,error:{issues:a.issues.map(s=>ke(s,r,Te()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(a=>ke(a,r,Te()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),nf=h("$ZodPipe",(e,t)=>{Q.init(e,t),U(e._zod,"values",()=>t.in._zod.values),U(e._zod,"optin",()=>t.in._zod.optin),U(e._zod,"optout",()=>t.out._zod.optout),U(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const a=t.out._zod.run(n,r);return a instanceof Promise?a.then(s=>et(s,t.in,r)):et(a,t.in,r)}const i=t.in._zod.run(n,r);return i instanceof Promise?i.then(a=>et(a,t.out,r)):et(i,t.out,r)}});function et(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var rf=h("$ZodReadonly",(e,t)=>{Q.init(e,t),U(e._zod,"propValues",()=>t.innerType._zod.propValues),U(e._zod,"values",()=>t.innerType._zod.values),U(e._zod,"optin",()=>t.innerType?._zod?.optin),U(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(hr):hr(i)}});function hr(e){return e.value=Object.freeze(e.value),e}var of=h("$ZodCustom",(e,t)=>{ae.init(e,t),Q.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(a=>yr(a,n,r,e));yr(i,n,r,e)}});function yr(e,t,n,r){if(!e){const i={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),t.issues.push(ze(i))}}var gr,af=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){const n=t[0];return this._map.set(e,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){const t=this._map.get(e);return t&&typeof t=="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){const t=e._zod.parent;if(t){const n={...this.get(t)??{}};delete n.id;const r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function sf(){return new af}(gr=globalThis).__zod_globalRegistry??(gr.__zod_globalRegistry=sf());var $e=globalThis.__zod_globalRegistry;function uf(e,t){return new e({type:"string",...b(t)})}function cf(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...b(t)})}function _r(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...b(t)})}function df(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...b(t)})}function ff(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...b(t)})}function lf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...b(t)})}function mf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...b(t)})}function pf(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...b(t)})}function hf(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...b(t)})}function yf(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...b(t)})}function gf(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...b(t)})}function _f(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...b(t)})}function Of(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...b(t)})}function Af(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...b(t)})}function Sf(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...b(t)})}function Tf(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...b(t)})}function wf(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...b(t)})}function kf(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...b(t)})}function vf(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...b(t)})}function Rf(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...b(t)})}function Nf(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...b(t)})}function Pf(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...b(t)})}function Cf(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...b(t)})}function bf(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...b(t)})}function Mf(e,t){return new e({type:"string",format:"date",check:"string_format",...b(t)})}function If(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...b(t)})}function Jf(e,t){return new e({type:"string",format:"duration",check:"string_format",...b(t)})}function Df(e,t){return new e({type:"number",checks:[],...b(t)})}function Ef(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...b(t)})}function Ff(e,t){return new e({type:"symbol",...b(t)})}function zf(e){return new e({type:"unknown"})}function $f(e,t){return new e({type:"never",...b(t)})}function Or(e,t){return new nr({check:"less_than",...b(t),value:e,inclusive:!1})}function Jt(e,t){return new nr({check:"less_than",...b(t),value:e,inclusive:!0})}function Ar(e,t){return new rr({check:"greater_than",...b(t),value:e,inclusive:!1})}function Dt(e,t){return new rr({check:"greater_than",...b(t),value:e,inclusive:!0})}function Sr(e,t){return new ed({check:"multiple_of",...b(t),value:e})}function Tr(e,t){return new nd({check:"max_length",...b(t),maximum:e})}function tt(e,t){return new rd({check:"min_length",...b(t),minimum:e})}function wr(e,t){return new id({check:"length_equals",...b(t),length:e})}function Lf(e,t){return new od({check:"string_format",format:"regex",...b(t),pattern:e})}function Hf(e){return new ad({check:"string_format",format:"lowercase",...b(e)})}function Bf(e){return new sd({check:"string_format",format:"uppercase",...b(e)})}function Zf(e,t){return new ud({check:"string_format",format:"includes",...b(t),includes:e})}function Uf(e,t){return new cd({check:"string_format",format:"starts_with",...b(t),prefix:e})}function Gf(e,t){return new dd({check:"string_format",format:"ends_with",...b(t),suffix:e})}function Ce(e){return new fd({check:"overwrite",tx:e})}function qf(e){return Ce(t=>t.normalize(e))}function Yf(){return Ce(e=>e.trim())}function Kf(){return Ce(e=>e.toLowerCase())}function Vf(){return Ce(e=>e.toUpperCase())}function Wf(){return Ce(e=>rc(e))}function Xf(e,t,n){return new e({type:"array",element:t,...b(n)})}function Qf(e,t,n){return new e({type:"custom",check:"custom",fn:t,...b(n)})}function xf(e,t){const n=jf(r=>(r.addIssue=i=>{if(typeof i=="string")r.issues.push(ze(i,r.value,n._zod.def));else{const a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=n),a.continue??(a.continue=!n._zod.def.abort),r.issues.push(ze(a))}},e(r.value,r)),t);return n}function jf(e,t){const n=new ae({check:"custom",...b(t)});return n._zod.check=e,n}function kr(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??$e,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function te(e,t,n={path:[],schemaPath:[]}){var r;const i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;const s={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,s);const u=e._zod.toJSONSchema?.();if(u)s.schema=u;else{const l={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,l);else{const g=s.schema,p=t.processors[i.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);p(e,t,g,l)}const m=e._zod.parent;m&&(s.ref||(s.ref=m),te(m,t,l),t.seen.get(m).isParent=!0)}const d=t.metadataRegistry.get(e);return d&&Object.assign(s.schema,d),t.io==="input"&&ie(e)&&(delete s.schema.examples,delete s.schema.default),t.io==="input"&&"_prefault"in s.schema&&((r=s.schema).default??(r.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function vr(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const s of e.seen.entries()){const u=e.metadataRegistry.get(s[0])?.id;if(u){const d=r.get(u);if(d&&d!==s[0])throw new Error(`Duplicate schema id "${u}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(u,s[0])}}const i=s=>{const u=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const m=e.external.registry.get(s[0])?.id,g=e.external.uri??(A=>A);if(m)return{ref:g(m)};const p=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=p,{defId:p,ref:`${g("__shared")}#/${u}/${p}`}}if(s[1]===n)return{ref:"#"};const d=`#/${u}/`,l=s[1].schema.id??`__schema${e.counter++}`;return{defId:l,ref:d+l}},a=s=>{if(s[1].schema.$ref)return;const u=s[1],{ref:d,defId:l}=i(s);u.def={...u.schema},l&&(u.defId=l);const m=u.schema;for(const g in m)delete m[g];m.$ref=d};if(e.cycles==="throw")for(const s of e.seen.entries()){const u=s[1];if(u.cycle)throw new Error(`Cycle detected: #/${u.cycle?.join("/")}/<root>
|
|
51
|
+
`)}return _.write("payload.value = newResult;"),_.write("return payload;"),_.compile()};let s;const u=Qe,c=!me.jitless,m=c&&Uc.value,h=t.catchall;let p;e._zod.parse=(O,T)=>{p??(p=r.value);const y=O.value;return u(y)?c&&m&&T?.async===!1&&T.jitless!==!0?(s||(s=o(t.shape)),O=s(O,T),h?Jr([],y,O,T,p,e):O):n(O,T):(O.issues.push({expected:"object",code:"invalid_type",input:y,inst:e}),O)}});function Fr(e,t,n,r){for(const o of e)if(o.issues.length===0)return t.value=o.value,t;const i=e.filter(o=>!Pe(o));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(s=>Ce(s,r,Te())))}),t)}var el=g("$ZodUnion",(e,t)=>{x.init(e,t),G(e,"optin",r=>r.def.options.some(i=>i._zod.optin==="defaulted")?"defaulted":r.def.options.some(i=>i._zod.optin!==void 0)?"optional":void 0),G(e,"optout",r=>r.def.options.some(i=>i._zod.optout==="optional")?"optional":void 0),G(e,"values",r=>{if(r.def.options.every(i=>i._zod.values))return new Set(r.def.options.flatMap(i=>Array.from(i._zod.values)))}),G(e,"pattern",r=>{if(r.def.options.every(i=>i._zod.pattern)){const i=r.def.options.map(o=>o._zod.pattern);return new RegExp(`^(${i.map(o=>Ft(o.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let o=!1;const s=[];for(const u of t.options){const c=u._zod.run({value:r.value,issues:[]},i);if(c instanceof Promise)s.push(c),o=!0;else{if(c.issues.length===0)return c;s.push(c)}}return o?Promise.all(s).then(u=>Fr(u,r,e,i)):Fr(s,r,e,i)}}),tl=g("$ZodIntersection",(e,t)=>{x.init(e,t),e._zod.parse=(n,r)=>{const i=n.value,o=t.left._zod.run({value:i,issues:[]},r),s=t.right._zod.run({value:i,issues:[]},r);return o instanceof Promise||s instanceof Promise?Promise.all([o,s]).then(([u,c])=>zr(n,u,c)):zr(n,o,s)}});function Vt(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(He(e)&&He(t)){const n=Object.keys(t),r=Object.keys(e).filter(o=>n.indexOf(o)!==-1),i={...e,...t};Object.prototype.hasOwnProperty.call(i,"__proto__")&&delete i.__proto__;for(const o of r){if(o==="__proto__")continue;const s=Vt(e[o],t[o]);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};i[o]=s.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const i=e[r],o=t[r],s=Vt(i,o);if(!s.valid)return{valid:!1,mergeErrorPath:[r,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function zr(e,t,n){const r=new Map;let i;const o=new Map,s=(f,m)=>{let h;if(f.code==="unrecognized_keys"&&!f.path?.length)i??(i=f),h=f.keys;else if(f.code==="invalid_key"&&f.origin==="record"&&f.path?.length===1){const p=String(f.path[0]);o.has(p)||o.set(p,f),h=[p]}else return!1;for(const p of h)r.has(p)||r.set(p,{}),r.get(p)[m]=!0;return!0};for(const f of t.issues)s(f,"l")||e.issues.push(f);for(const f of n.issues)s(f,"r")||e.issues.push(f);const u=[...r].filter(([,f])=>f.l&&f.r).map(([f])=>f);if(u.length){const f=i?u.filter(m=>i.keys.includes(m)):[];f.length&&e.issues.push({...i,keys:f});for(const m of u)!f.includes(m)&&o.has(m)&&e.issues.push(o.get(m))}const c=Vt(t.value,n.value);if(!c.valid){if(Pe(e))return e;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}var nl=g("$ZodEnum",(e,t)=>{x.init(e,t);const n=ar(t.entries),r=new Set(n);e._zod.values=r;const i=n.filter(o=>Zc.has(typeof o));e._zod.pattern=new RegExp(i.length?`^(${i.map(o=>xe(o.toString())).join("|")})$`:"^[^\\s\\S]$"),e._zod.parse=(o,s)=>{const u=o.value;return r.has(u)||o.issues.push({code:"invalid_value",values:n,input:u,inst:e}),o}}),rl=g("$ZodTransform",(e,t)=>{x.init(e,t),e._zod.optin="optional",me.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new gr(e.constructor.name);const i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(o=>(n.value=o,n));if(i instanceof Promise)throw new Me;return n.value=i,n}});function $r(e,t){return e.value=t.issues.length?void 0:t.value,e}var Lr=g("$ZodOptional",(e,t)=>{x.init(e,t),G(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",G(e,"values",n=>{const r=n.def.innerType._zod.values;return r?new Set([...r,void 0]):void 0}),G(e,"pattern",n=>{const r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${Ft(r.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(n.value===void 0){if(t.innerType._zod.optin!=="defaulted")return n;const i=t.innerType._zod.run({value:n.value,issues:[]},r);return i instanceof Promise?i.then(o=>$r(n,o)):$r(n,i)}return t.innerType._zod.run(n,r)}}),il=g("$ZodExactOptional",(e,t)=>{Lr.init(e,t),G(e,"values",n=>n.def.innerType._zod.values),G(e,"pattern",n=>n.def.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),ol=g("$ZodNullable",(e,t)=>{x.init(e,t),G(e,"optin",n=>n.def.innerType._zod.optin),G(e,"optout",n=>n.def.innerType._zod.optout),G(e,"pattern",n=>{const r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${Ft(r.source)}|null)$`):void 0}),G(e,"values",n=>n.def.innerType._zod.values?new Set([...n.def.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),al=g("$ZodDefault",(e,t)=>{x.init(e,t),e._zod.optin="defaulted",G(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>Hr(o,t)):Hr(i,t)}});function Hr(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var sl=g("$ZodPrefault",(e,t)=>{x.init(e,t),e._zod.optin="defaulted",G(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),ul=g("$ZodNonOptional",(e,t)=>{x.init(e,t),G(e,"values",n=>{const r=n.def.innerType._zod.values;return r?new Set([...r].filter(i=>i!==void 0)):void 0}),e._zod.parse=(n,r)=>{const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>Br(o,e)):Br(i,e)}});function Br(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}function Ur(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(i=>Ce(i,r,Te()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var cl=g("$ZodCatch",(e,t)=>{x.init(e,t),G(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),G(e,"optout",n=>n.def.innerType._zod.optout),G(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run({value:n.value,issues:[]},r);return i instanceof Promise?i.then(o=>Ur(n,o,t,r)):Ur(n,i,t,r)}}),dl=g("$ZodPipe",(e,t)=>{x.init(e,t),G(e,"values",n=>n.def.in._zod.values),G(e,"optin",n=>n.def.in._zod.optin),G(e,"optout",n=>n.def.out._zod.optout),G(e,"propValues",n=>n.def.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const o=t.out._zod.run(n,r);return o instanceof Promise?o.then(s=>ot(s,t.in,r)):ot(o,t.in,r)}const i=t.in._zod.run(n,r);return i instanceof Promise?i.then(o=>ot(o,t.out,r)):ot(i,t.out,r)}});function ot(e,t,n){return e.issues.some(r=>r.code!=="unrecognized_keys")?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var fl=g("$ZodReadonly",(e,t)=>{x.init(e,t),G(e,"propValues",n=>n.def.innerType._zod.propValues),G(e,"values",n=>n.def.innerType._zod.values),G(e,"optin",n=>n.def.innerType?._zod?.optin),G(e,"optout",n=>n.def.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(Zr):Zr(i)}});function Zr(e){return e.memo||(e.value=Object.freeze(e.value)),e}var ll=g("$ZodCustom",(e,t)=>{ae.init(e,t),x.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(o=>Gr(o,n,r,e));Gr(i,n,r,e)}});function Gr(e,t,n,r){if(!e){const i={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),t.issues.push(Ue(i))}}var ml=class extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}},Wt="~memo",qr=[];function Xt(e){return e.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}var Kr=new WeakMap;function Yr(e,t){const n=Kr.get(e);if(n!==void 0)return n;if(t.has(e))return!0;t.add(e);let r=!1;const i=s=>{!r&&s?._zod&&Yr(s,t)&&(r=!0)},o=e._zod.def;switch(o.type){case"object":for(const s of Reflect.ownKeys(o.shape))i(o.shape[s]);i(o.catchall);break;case"array":i(o.element);break;case"tuple":for(const s of o.items)i(s);i(o.rest);break;case"record":case"map":i(o.keyType),i(o.valueType);break;case"set":i(o.valueType);break;case"union":for(const s of o.options)i(s);break;case"intersection":i(o.left),i(o.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":i(o.innerType);break;case"pipe":i(o.in),i(o.out);break;case"function":i(o.input),i(o.output);break;case"lazy":i(e._zod.innerType);break;case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(const s in o){const u=Object.getOwnPropertyDescriptor(o,s);if(!u||u.get)continue;const c=u.value;if(!(!c||typeof c!="object")){if(c._zod)i(c);else if(Array.isArray(c))for(const f of c)i(f)}}}return t.delete(e),Kr.set(e,r),r}function pl(e,t){let n=e.buckets.get(t);return n||(n=new Map,e.buckets.set(t,n)),n}var at,st=[],hl={alloc(e,t,n){const r=at;if(!r)return n;at=void 0;const i={value:n,issues:null};return r.set(t.value,i),st.push(i),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{const n=e._zod.parse,r=(i,o)=>{if(o.direction!=="backward"&&gl(o,i.value))throw new ml;return n(i,o)};e._zod.parse=r,e._zod.run===n&&(e._zod.run=r)})},attach(e){var t;let n,r,i;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{const o=e._zod.parse,s=(u,c)=>{if(n===void 0&&(n=Yr(e,new Set),!n))return e._zod.parse=o,e._zod.run===s&&(e._zod.run=o),o(u,c);const f=u.value;if(f===null||typeof f!="object")return o(u,c);let m=c[Wt];m||(m={buckets:new Map,backEdges:void 0},c[Wt]=m);let h;r===c?h=i:(h=pl(m,e),r=c,i=h);const p=h.get(f);if(p)return u.value=p.value,p.issues?p.issues.length&&u.issues.push(...Xt(p.issues)):(u.memo=!0,m.backEdges??(m.backEdges=new Set),m.backEdges.add(p.value)),u;at=h;const O=st.length,T=o(u,c);at=void 0;const y=st.length>O?st.pop():void 0;return T instanceof Promise?T.then(_=>(y&&(y.issues=_.issues.length?Xt(_.issues):qr),_)):(y&&(y.issues=T.issues.length?Xt(T.issues):qr),T)};e._zod.parse=s,e._zod.run===o&&(e._zod.run=s)})}};function yl(){return hl}function gl(e,t){const n=e[Wt]?.backEdges;return n!==void 0&&t!==null&&typeof t=="object"&&n.has(t)}var _l=()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(o){return e[o]??null}const n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",credit_card:"credit card number",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};function i(o,s){return o==="number"&&typeof s=="number"&&!Number.isFinite(s)?String(s):r[o]??o}return o=>{switch(o.code){case"invalid_type":return`Invalid input: expected ${i(o.expected)}, received ${i(ed(o.input),o.input)}`;case"invalid_value":return o.values.length===1?`Invalid input: expected ${dr(o.values[0])}`:`Invalid option: expected one of ${sr(o.values,"|")}`;case"too_big":{const s=o.exact?"exactly ":o.inclusive?"<=":"<",u=t(o.origin);return u?`Too big: expected ${o.origin??"value"} to have ${s}${o.maximum.toString()} ${u.unit??"elements"}`:`Too big: expected ${o.origin??"value"} to be ${s}${o.maximum.toString()}`}case"too_small":{const s=o.exact?"exactly ":o.inclusive?">=":">",u=t(o.origin);return u?`Too small: expected ${o.origin} to have ${s}${o.minimum.toString()} ${u.unit}`:`Too small: expected ${o.origin} to be ${s}${o.minimum.toString()}`}case"invalid_format":{const s=o;return s.format==="starts_with"?`Invalid string: must start with "${s.prefix}"`:s.format==="ends_with"?`Invalid string: must end with "${s.suffix}"`:s.format==="includes"?`Invalid string: must include "${s.includes}"`:s.format==="regex"?`Invalid string: must match pattern ${s.pattern}`:`Invalid ${n[s.format]??o.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${o.divisor}`;case"unrecognized_keys":return`Unrecognized key${o.keys.length>1?"s":""}: ${sr(o.keys,", ")}`;case"invalid_key":return`Invalid key in ${o.origin}`;case"invalid_union":return o.options&&Array.isArray(o.options)&&o.options.length>0?`Invalid discriminator value. Expected ${o.options.map(s=>`'${s}'`).join(" | ")}`:o.inclusive===!1?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return`Invalid value in ${o.origin}`;default:return"Invalid input"}}};function Ol(){return{localeError:_l()}}var Vr,Al=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){const n=t[0];return this._map.set(e,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){const t=this._map.get(e);return t&&typeof t=="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){const t=e._zod.parent;if(t){const n={...this.get(t)??{}};delete n.id;const r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Sl(){return new Al}(Vr=globalThis).__zod_globalRegistry??(Vr.__zod_globalRegistry=Sl());var Ze=globalThis.__zod_globalRegistry;function Tl(e,t){return new e({type:"string",...C(t)})}function wl(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...C(t)})}function vl(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...C(t)})}function kl(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...C(t)})}function Rl(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...C(t)})}function Nl(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...C(t)})}function bl(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...C(t)})}function Pl(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...C(t)})}function Cl(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...C(t)})}function Il(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...C(t)})}function Ml(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...C(t)})}function Dl(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...C(t)})}function Jl(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...C(t)})}function El(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...C(t)})}function Fl(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...C(t)})}function zl(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...C(t)})}function $l(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...C(t)})}function Ll(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...C(t)})}function Hl(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...C(t)})}function Bl(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...C(t)})}function Ul(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...C(t)})}function Zl(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...C(t)})}function Gl(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...C(t)})}function ql(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...C(t)})}function Kl(e,t){return new e({type:"string",format:"date",check:"string_format",...C(t)})}function Yl(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...C(t)})}function Vl(e,t){return new e({type:"string",format:"duration",check:"string_format",...C(t)})}function Wl(e,t){return new e({type:"number",checks:[],...C(t)})}function Xl(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...C(t)})}function Ql(e,t){return new e({type:"symbol",...C(t)})}function xl(e){return new e({type:"unknown"})}function jl(e,t){return new e({type:"never",...C(t)})}function Wr(e,t){return new kr({check:"less_than",...C(t),value:e,inclusive:!1})}function Qt(e,t){return new kr({check:"less_than",...C(t),value:e,inclusive:!0})}function Xr(e,t){return new Rr({check:"greater_than",...C(t),value:e,inclusive:!1})}function xt(e,t){return new Rr({check:"greater_than",...C(t),value:e,inclusive:!0})}function Qr(e,t){return new jd({check:"multiple_of",...C(t),value:e})}function xr(e,t){return new tf({check:"max_length",...C(t),maximum:e})}function ut(e,t){return new nf({check:"min_length",...C(t),minimum:e})}function jr(e,t){return new rf({check:"length_equals",...C(t),length:e})}function em(e,t){return new of({check:"string_format",format:"regex",...C(t),pattern:e})}function tm(e){return new af({check:"string_format",format:"lowercase",...C(e)})}function nm(e){return new sf({check:"string_format",format:"uppercase",...C(e)})}function rm(e,t){return new uf({check:"string_format",format:"includes",...C(t),includes:e})}function im(e,t){return new cf({check:"string_format",format:"starts_with",...C(t),prefix:e})}function om(e,t){return new df({check:"string_format",format:"ends_with",...C(t),suffix:e})}function De(e){return new ff({check:"overwrite",tx:e})}function am(e){return De(t=>t.normalize(e))}function sm(){return De(e=>e.trim())}function um(){return De(e=>e.toLowerCase())}function cm(){return De(e=>e.toUpperCase())}function dm(){return De(e=>Bc(e))}function fm(e,t,n){return new e({type:"array",element:t,...C(n)})}function lm(e,t,n){return new e({type:"custom",check:"custom",fn:t,...C(n)})}function mm(e,t){const n=pm(r=>(r.addIssue=i=>{if(typeof i=="string")r.issues.push(Ue(i,r.value,n._zod.def));else{const o=i;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),"input"in o||(o.input=r.value),o.inst??(o.inst=n),o.continue??(o.continue=!n._zod.def.abort),r.issues.push(Ue(o))}},e(r.value,r)),t);return n}function pm(e,t){const n=new ae({check:"custom",...C(t)});return n._zod.check=e,n}function Ge(e,...t){for(const n of t)for(const r of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,r)&&se(e,r,n[r]);return e}function ei(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Ze,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??"ref",reused:e?.reused??"inline",intersections:[],deferred:[],external:e?.external??void 0}}function Re(e,t,n,r,i){const o=typeof t.unrepresentable=="function"?t.unrepresentable({zodSchema:e,path:r.path,message:i}):t.unrepresentable;if(o==="any")return!1;if(o===void 0||o==="throw")throw new Error(i);return Object.assign(n,o),!0}function te(e,t,n={path:[],schemaPath:[]}){var r;const i=e._zod.def,o=t.seen.get(e);if(o)return o.count++,n.schemaPath.includes(e)&&(o.cycle=n.path),o.schema;const s={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,s),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;const u=e._zod.toJSONSchema?.();if(u)s.schema=u;else{const f={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,f);else{const h=s.schema,p=t.processors[i.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);p(e,t,h,f)}const m=e._zod.parent;m&&(s.ref||(s.ref=m),te(m,t,f),t.seen.get(m).isParent=!0)}const c=t.metadataRegistry.get(e);return c&&Ge(s.schema,c),t.io==="input"&&ie(e)&&(delete s.schema.examples,delete s.schema.default),t.io==="input"&&"_prefault"in s.schema&&((r=s.schema).default??(r.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function ti(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function ni(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;const r=new Map;for(const s of e.seen.entries()){const u=e.metadataRegistry.get(s[0])?.id;if(u){const c=r.get(u);if(c&&c!==s[0])throw new Error(`Duplicate schema id "${u}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(u,s[0])}}const i=s=>{const u=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const h=e.external.registry.get(s[0])?.id,p=e.external.uri??(T=>T);if(h)return{ref:p(h)};const O=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=O,{defId:O,ref:`${p("__shared")}#/${u}/${ti(O)}`}}const c="#",f=`${c}/${u}/`;if(s[1]===n&&!s[1].schema.id)return{ref:c};const m=s[1].schema.id??`__schema${e.counter++}`;return{defId:m,ref:f+ti(m)}},o=s=>{if(s[1].schema.$ref)return;const u=s[1],{ref:c,defId:f}=i(s);u.def={...u.schema},f&&(u.defId=f);const m=u.schema;for(const h in m)delete m[h];m.$ref=c};if(e.cycles==="throw")for(const s of e.seen.entries()){const u=s[1];if(u.cycle)throw new Error(`Cycle detected: #/${u.cycle?.join("/")}/<root>
|
|
64
52
|
|
|
65
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const s of e.seen.entries()){const u=s[1];if(t===s[0]){a(s);continue}if(e.external){const d=e.external.registry.get(s[0])?.id;if(t!==s[0]&&d){a(s);continue}}if(e.metadataRegistry.get(s[0])?.id){a(s);continue}if(u.cycle){a(s);continue}if(u.count>1&&e.reused==="ref"){a(s);continue}}}function Rr(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=u=>{const d=e.seen.get(u);if(d.ref===null)return;const l=d.def??d.schema,m={...l},g=d.ref;if(d.ref=null,g){r(g);const A=e.seen.get(g),k=A.schema;if(k.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(k)):Object.assign(l,k),Object.assign(l,m),u._zod.parent===g)for(const y in l)y==="$ref"||y==="allOf"||y in m||delete l[y];if(k.$ref&&A.def)for(const y in l)y==="$ref"||y==="allOf"||y in A.def&&JSON.stringify(l[y])===JSON.stringify(A.def[y])&&delete l[y]}const p=u._zod.parent;if(p&&p!==g){r(p);const A=e.seen.get(p);if(A?.schema.$ref&&(l.$ref=A.schema.$ref,A.def))for(const k in l)k==="$ref"||k==="allOf"||k in A.def&&JSON.stringify(l[k])===JSON.stringify(A.def[k])&&delete l[k]}e.override({zodSchema:u,jsonSchema:l,path:d.path??[]})};for(const u of[...e.seen.entries()].reverse())r(u[0]);const i={};if(e.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const u=e.external.registry.get(t)?.id;if(!u)throw new Error("Schema is missing an `id` property");i.$id=e.external.uri(u)}Object.assign(i,n.def??n.schema);const a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;const s=e.external?.defs??{};for(const u of e.seen.entries()){const d=u[1];d.def&&d.defId&&(d.def.id===d.defId&&delete d.def.id,s[d.defId]=d.def)}e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?i.$defs=s:i.definitions=s);try{const u=JSON.parse(JSON.stringify(i));return Object.defineProperty(u,"~standard",{value:{...t["~standard"],jsonSchema:{input:nt(t,"input",e.processors),output:nt(t,"output",e.processors)}},enumerable:!1,writable:!1}),u}catch{throw new Error("Error converting schema to JSON.")}}function ie(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return ie(r.element,n);if(r.type==="set")return ie(r.valueType,n);if(r.type==="lazy")return ie(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return ie(r.innerType,n);if(r.type==="intersection")return ie(r.left,n)||ie(r.right,n);if(r.type==="record"||r.type==="map")return ie(r.keyType,n)||ie(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:ie(r.in,n)||ie(r.out,n);if(r.type==="object"){for(const i in r.shape)if(ie(r.shape[i],n))return!0;return!1}if(r.type==="union"){for(const i of r.options)if(ie(i,n))return!0;return!1}if(r.type==="tuple"){for(const i of r.items)if(ie(i,n))return!0;return!!(r.rest&&ie(r.rest,n))}return!1}var el=(e,t={})=>n=>{const r=kr({...n,processors:t});return te(e,r),vr(r,e),Rr(r,e)},nt=(e,t,n={})=>r=>{const{libraryOptions:i,target:a}=r??{},s=kr({...i??{},target:a,io:t,processors:n});return te(e,s),vr(s,e),Rr(s,e)},tl={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},nl=(e,t,n,r)=>{const i=n;i.type="string";const{minimum:a,maximum:s,format:u,patterns:d,contentEncoding:l}=e._zod.bag;if(typeof a=="number"&&(i.minLength=a),typeof s=="number"&&(i.maxLength=s),u&&(i.format=tl[u]??u,i.format===""&&delete i.format,u==="time"&&delete i.format),l&&(i.contentEncoding=l),d&&d.size>0){const m=[...d];m.length===1?i.pattern=m[0].source:m.length>1&&(i.allOf=[...m.map(g=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:g.source}))])}},rl=(e,t,n,r)=>{const i=n,{minimum:a,maximum:s,format:u,multipleOf:d,exclusiveMaximum:l,exclusiveMinimum:m}=e._zod.bag;typeof u=="string"&&u.includes("int")?i.type="integer":i.type="number";const g=typeof m=="number"&&m>=(a??Number.NEGATIVE_INFINITY),p=typeof l=="number"&&l<=(s??Number.POSITIVE_INFINITY),A=t.target==="draft-04"||t.target==="openapi-3.0";g?A?(i.minimum=m,i.exclusiveMinimum=!0):i.exclusiveMinimum=m:typeof a=="number"&&(i.minimum=a),p?A?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof s=="number"&&(i.maximum=s),typeof d=="number"&&(i.multipleOf=d)},il=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},ol=(e,t,n,r)=>{n.not={}},al=(e,t,n,r)=>{},sl=(e,t,n,r)=>{const i=e._zod.def,a=Zn(i.entries);a.every(s=>typeof s=="number")&&(n.type="number"),a.every(s=>typeof s=="string")&&(n.type="string"),n.enum=a},ul=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},cl=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},dl=(e,t,n,r)=>{const i=n,a=e._zod.def,{minimum:s,maximum:u}=e._zod.bag;typeof s=="number"&&(i.minItems=s),typeof u=="number"&&(i.maxItems=u),i.type="array",i.items=te(a.element,t,{...r,path:[...r.path,"items"]})},fl=(e,t,n,r)=>{const i=n,a=e._zod.def;i.type="object",i.properties={};const s=a.shape;for(const l in s)i.properties[l]=te(s[l],t,{...r,path:[...r.path,"properties",l]});const u=new Set(Object.keys(s)),d=new Set([...u].filter(l=>{const m=a.shape[l]._zod;return t.io==="input"?m.optin===void 0:m.optout===void 0}));d.size>0&&(i.required=Array.from(d)),a.catchall?._zod.def.type==="never"?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=te(a.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(i.additionalProperties=!1)},ll=(e,t,n,r)=>{const i=e._zod.def,a=i.inclusive===!1,s=i.options.map((u,d)=>te(u,t,{...r,path:[...r.path,a?"oneOf":"anyOf",d]}));a?n.oneOf=s:n.anyOf=s},ml=(e,t,n,r)=>{const i=e._zod.def,a=te(i.left,t,{...r,path:[...r.path,"allOf",0]}),s=te(i.right,t,{...r,path:[...r.path,"allOf",1]}),u=d=>"allOf"in d&&Object.keys(d).length===1;n.allOf=[...u(a)?a.allOf:[a],...u(s)?s.allOf:[s]]},pl=(e,t,n,r)=>{const i=e._zod.def,a=te(i.innerType,t,r),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:"null"}]},hl=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const a=t.seen.get(e);a.ref=i.innerType},yl=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},gl=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const a=t.seen.get(e);a.ref=i.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},_l=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const a=t.seen.get(e);a.ref=i.innerType;let s;try{s=i.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=s},Ol=(e,t,n,r)=>{const i=e._zod.def,a=i.in._zod.traits.has("$ZodTransform"),s=t.io==="input"?a?i.out:i.in:i.out;te(s,t,r);const u=t.seen.get(e);u.ref=s},Al=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Nr=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const a=t.seen.get(e);a.ref=i.innerType},Sl=h("ZodISODateTime",(e,t)=>{vd.init(e,t),W.init(e,t)});function Tl(e){return bf(Sl,e)}var wl=h("ZodISODate",(e,t)=>{Rd.init(e,t),W.init(e,t)});function kl(e){return Mf(wl,e)}var vl=h("ZodISOTime",(e,t)=>{Nd.init(e,t),W.init(e,t)});function Rl(e){return If(vl,e)}var Nl=h("ZodISODuration",(e,t)=>{Pd.init(e,t),W.init(e,t)});function Pl(e){return Jf(Nl,e)}var Cl=(e,t)=>{Wn.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>gc(e,n)},flatten:{value:n=>yc(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,kt,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,kt,2)}},isEmpty:{get(){return e.issues.length===0}}})},se=h("ZodError",Cl,{Parent:Error}),bl=Ct(se),Ml=bt(se),Il=Xe(se),Jl=Qe(se),Dl=Ac(se),El=Sc(se),Fl=Tc(se),zl=wc(se),$l=kc(se),Ll=vc(se),Hl=Rc(se),Bl=Nc(se),Pr=new WeakMap;function Le(e,t,n){const r=Object.getPrototypeOf(e);let i=Pr.get(r);if(i||(i=new Set,Pr.set(r,i)),!i.has(t)){i.add(t);for(const a in n){const s=n[a];Object.defineProperty(r,a,{configurable:!0,enumerable:!1,get(){const u=s.bind(this);return Object.defineProperty(this,a,{configurable:!0,writable:!0,enumerable:!0,value:u}),u},set(u){Object.defineProperty(this,a,{configurable:!0,writable:!0,enumerable:!0,value:u})}})}}}var x=h("ZodType",(e,t)=>(Q.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:nt(e,"input"),output:nt(e,"output")}}),e.toJSONSchema=el(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,r)=>bl(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>Il(e,n,r),e.parseAsync=async(n,r)=>Ml(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>Jl(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>Dl(e,n,r),e.decode=(n,r)=>El(e,n,r),e.encodeAsync=async(n,r)=>Fl(e,n,r),e.decodeAsync=async(n,r)=>zl(e,n,r),e.safeEncode=(n,r)=>$l(e,n,r),e.safeDecode=(n,r)=>Ll(e,n,r),e.safeEncodeAsync=async(n,r)=>Hl(e,n,r),e.safeDecodeAsync=async(n,r)=>Bl(e,n,r),Le(e,"ZodType",{check(...n){const r=this.def;return this.clone(ge(r,{checks:[...r.checks??[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,r){return _e(this,n,r)},brand(){return this},register(n,r){return n.add(this,r),this},refine(n,r){return this.check(zm(n,r))},superRefine(n,r){return this.check($m(n,r))},overwrite(n){return this.check(Ce(n))},optional(){return zr(this)},exactOptional(){return km(this)},nullable(){return $r(this)},nullish(){return zr($r(this))},nonoptional(n){return bm(this,n)},array(){return hm(this)},or(n){return Dr([this,n])},and(n){return Am(this,n)},transform(n){return Hr(this,Tm(n))},default(n){return Nm(this,n)},prefault(n){return Cm(this,n)},catch(n){return Im(this,n)},pipe(n){return Hr(this,n)},readonly(){return Em(this)},describe(n){const r=this.clone();return $e.add(r,{description:n}),r},meta(...n){if(n.length===0)return $e.get(this);const r=this.clone();return $e.add(r,n[0]),r},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){return $e.get(e)?.description},configurable:!0}),e)),Cr=h("_ZodString",(e,t)=>{Mt.init(e,t),x.init(e,t),e._zod.processJSONSchema=(r,i,a)=>nl(e,r,i,a);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Le(e,"_ZodString",{regex(...r){return this.check(Lf(...r))},includes(...r){return this.check(Zf(...r))},startsWith(...r){return this.check(Uf(...r))},endsWith(...r){return this.check(Gf(...r))},min(...r){return this.check(tt(...r))},max(...r){return this.check(Tr(...r))},length(...r){return this.check(wr(...r))},nonempty(...r){return this.check(tt(1,...r))},lowercase(r){return this.check(Hf(r))},uppercase(r){return this.check(Bf(r))},trim(){return this.check(Yf())},normalize(...r){return this.check(qf(...r))},toLowerCase(){return this.check(Kf())},toUpperCase(){return this.check(Vf())},slugify(){return this.check(Wf())}})}),Zl=h("ZodString",(e,t)=>{Mt.init(e,t),Cr.init(e,t),e.email=n=>e.check(cf(Gl,n)),e.url=n=>e.check(pf(ql,n)),e.jwt=n=>e.check(Cf(am,n)),e.emoji=n=>e.check(hf(Yl,n)),e.guid=n=>e.check(_r(br,n)),e.uuid=n=>e.check(df(rt,n)),e.uuidv4=n=>e.check(ff(rt,n)),e.uuidv6=n=>e.check(lf(rt,n)),e.uuidv7=n=>e.check(mf(rt,n)),e.nanoid=n=>e.check(yf(Kl,n)),e.guid=n=>e.check(_r(br,n)),e.cuid=n=>e.check(gf(Vl,n)),e.cuid2=n=>e.check(_f(Wl,n)),e.ulid=n=>e.check(Of(Xl,n)),e.base64=n=>e.check(Rf(rm,n)),e.base64url=n=>e.check(Nf(im,n)),e.xid=n=>e.check(Af(Ql,n)),e.ksuid=n=>e.check(Sf(xl,n)),e.ipv4=n=>e.check(Tf(jl,n)),e.ipv6=n=>e.check(wf(em,n)),e.cidrv4=n=>e.check(kf(tm,n)),e.cidrv6=n=>e.check(vf(nm,n)),e.e164=n=>e.check(Pf(om,n)),e.datetime=n=>e.check(Tl(n)),e.date=n=>e.check(kl(n)),e.time=n=>e.check(Rl(n)),e.duration=n=>e.check(Pl(n))});function Ul(e){return uf(Zl,e)}var W=h("ZodStringFormat",(e,t)=>{V.init(e,t),Cr.init(e,t)}),Gl=h("ZodEmail",(e,t)=>{yd.init(e,t),W.init(e,t)}),br=h("ZodGUID",(e,t)=>{pd.init(e,t),W.init(e,t)}),rt=h("ZodUUID",(e,t)=>{hd.init(e,t),W.init(e,t)}),ql=h("ZodURL",(e,t)=>{gd.init(e,t),W.init(e,t)}),Yl=h("ZodEmoji",(e,t)=>{_d.init(e,t),W.init(e,t)}),Kl=h("ZodNanoID",(e,t)=>{Od.init(e,t),W.init(e,t)}),Vl=h("ZodCUID",(e,t)=>{Ad.init(e,t),W.init(e,t)}),Wl=h("ZodCUID2",(e,t)=>{Sd.init(e,t),W.init(e,t)}),Xl=h("ZodULID",(e,t)=>{Td.init(e,t),W.init(e,t)}),Ql=h("ZodXID",(e,t)=>{wd.init(e,t),W.init(e,t)}),xl=h("ZodKSUID",(e,t)=>{kd.init(e,t),W.init(e,t)}),jl=h("ZodIPv4",(e,t)=>{Cd.init(e,t),W.init(e,t)}),em=h("ZodIPv6",(e,t)=>{bd.init(e,t),W.init(e,t)}),tm=h("ZodCIDRv4",(e,t)=>{Md.init(e,t),W.init(e,t)}),nm=h("ZodCIDRv6",(e,t)=>{Id.init(e,t),W.init(e,t)}),rm=h("ZodBase64",(e,t)=>{Jd.init(e,t),W.init(e,t)}),im=h("ZodBase64URL",(e,t)=>{Ed.init(e,t),W.init(e,t)}),om=h("ZodE164",(e,t)=>{Fd.init(e,t),W.init(e,t)}),am=h("ZodJWT",(e,t)=>{$d.init(e,t),W.init(e,t)}),Mr=h("ZodNumber",(e,t)=>{or.init(e,t),x.init(e,t),e._zod.processJSONSchema=(r,i,a)=>rl(e,r,i,a),Le(e,"ZodNumber",{gt(r,i){return this.check(Ar(r,i))},gte(r,i){return this.check(Dt(r,i))},min(r,i){return this.check(Dt(r,i))},lt(r,i){return this.check(Or(r,i))},lte(r,i){return this.check(Jt(r,i))},max(r,i){return this.check(Jt(r,i))},int(r){return this.check(Ir(r))},safe(r){return this.check(Ir(r))},positive(r){return this.check(Ar(0,r))},nonnegative(r){return this.check(Dt(0,r))},negative(r){return this.check(Or(0,r))},nonpositive(r){return this.check(Jt(0,r))},multipleOf(r,i){return this.check(Sr(r,i))},step(r,i){return this.check(Sr(r,i))},finite(){return this}});const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function sm(e){return Df(Mr,e)}var um=h("ZodNumberFormat",(e,t)=>{Ld.init(e,t),Mr.init(e,t)});function Ir(e){return Ef(um,e)}var cm=h("ZodSymbol",(e,t)=>{Hd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>il(e,n,r,i)});function dm(e){return Ff(cm,e)}var fm=h("ZodUnknown",(e,t)=>{Bd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>al(e,n,r,i)});function Jr(){return zf(fm)}var lm=h("ZodNever",(e,t)=>{Zd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ol(e,n,r,i)});function mm(e){return $f(lm,e)}var pm=h("ZodArray",(e,t)=>{Ud.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>dl(e,n,r,i),e.element=t.element,Le(e,"ZodArray",{min(n,r){return this.check(tt(n,r))},nonempty(n){return this.check(tt(1,n))},max(n,r){return this.check(Tr(n,r))},length(n,r){return this.check(wr(n,r))},unwrap(){return this.element}})});function hm(e,t){return Xf(pm,e,t)}var ym=h("ZodObject",(e,t)=>{qd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>fl(e,n,r,i),U(e,"shape",()=>t.shape),Le(e,"ZodObject",{keyof(){return Er(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:Jr()})},loose(){return this.clone({...this._zod.def,catchall:Jr()})},strict(){return this.clone({...this._zod.def,catchall:mm()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return dc(this,n)},safeExtend(n){return fc(this,n)},merge(n){return lc(this,n)},pick(n){return uc(this,n)},omit(n){return cc(this,n)},partial(...n){return mc(Fr,this,n[0])},required(...n){return pc(Lr,this,n[0])}})});function gm(e,t){const n={type:"object",shape:e??{},...b(t)};return new ym(n)}var _m=h("ZodUnion",(e,t)=>{Yd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ll(e,n,r,i),e.options=t.options});function Dr(e,t){return new _m({type:"union",options:e,...b(t)})}var Om=h("ZodIntersection",(e,t)=>{Kd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ml(e,n,r,i)});function Am(e,t){return new Om({type:"intersection",left:e,right:t})}var Et=h("ZodEnum",(e,t)=>{Vd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(r,i,a)=>sl(e,r,i,a),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,i)=>{const a={};for(const s of r)if(n.has(s))a[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new Et({...t,checks:[],...b(i),entries:a})},e.exclude=(r,i)=>{const a={...t.entries};for(const s of r)if(n.has(s))delete a[s];else throw new Error(`Key ${s} not found in enum`);return new Et({...t,checks:[],...b(i),entries:a})}});function Er(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new Et({type:"enum",entries:n,...b(t)})}var Sm=h("ZodTransform",(e,t)=>{Wd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>cl(e,n,r,i),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Bn(e.constructor.name);n.addIssue=a=>{if(typeof a=="string")n.issues.push(ze(a,n.value,t));else{const s=a;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=n.value),s.inst??(s.inst=e),n.issues.push(ze(s))}};const i=t.transform(n.value,n);return i instanceof Promise?i.then(a=>(n.value=a,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function Tm(e){return new Sm({type:"transform",transform:e})}var Fr=h("ZodOptional",(e,t)=>{lr.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Nr(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function zr(e){return new Fr({type:"optional",innerType:e})}var wm=h("ZodExactOptional",(e,t)=>{Xd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Nr(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function km(e){return new wm({type:"optional",innerType:e})}var vm=h("ZodNullable",(e,t)=>{Qd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>pl(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function $r(e){return new vm({type:"nullable",innerType:e})}var Rm=h("ZodDefault",(e,t)=>{xd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>yl(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Nm(e,t){return new Rm({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Yn(t)}})}var Pm=h("ZodPrefault",(e,t)=>{jd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>gl(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Cm(e,t){return new Pm({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Yn(t)}})}var Lr=h("ZodNonOptional",(e,t)=>{ef.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>hl(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function bm(e,t){return new Lr({type:"nonoptional",innerType:e,...b(t)})}var Mm=h("ZodCatch",(e,t)=>{tf.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>_l(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Im(e,t){return new Mm({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var Jm=h("ZodPipe",(e,t)=>{nf.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Ol(e,n,r,i),e.in=t.in,e.out=t.out});function Hr(e,t){return new Jm({type:"pipe",in:e,out:t})}var Dm=h("ZodReadonly",(e,t)=>{rf.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Al(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Em(e){return new Dm({type:"readonly",innerType:e})}var Fm=h("ZodCustom",(e,t)=>{of.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ul(e,n,r,i)});function zm(e,t={}){return Qf(Fm,e,t)}function $m(e,t){return xf(e,t)}var Lm=Er(["ASC","DESC"]),xy=gm({sortBy:Dr([Ul(),sm(),dm()]).optional(),sortOrder:Lm.optional()}),Hm=class{constructor(){this._map=new Map,this._idmap=new Map}add(e,...t){const n=t[0];if(this._map.set(e,n),n&&typeof n=="object"&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,e)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(e){const t=this._map.get(e);return t&&typeof t=="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){const t=e._zod.parent;if(t){const n={...this.get(t)??{}};return delete n.id,{...n,...this._map.get(e)}}return this._map.get(e)}has(e){return this._map.has(e)}};function Bm(){return new Hm}var jy=Bm(),Br="http://localhost".replace(/\/+$/,""),Zm=e=>typeof Blob<"u"&&e instanceof Blob,ue=class{configuration;middleware;constructor(e=new zt){this.configuration=e,this.middleware=e.middleware}withMiddleware(...e){const t=this.clone();return t.middleware=t.middleware.concat(...e),t}withPreMiddleware(...e){const t=e.map(n=>({pre:n}));return this.withMiddleware(...t)}withPostMiddleware(...e){const t=e.map(n=>({post:n}));return this.withMiddleware(...t)}async request(e,t){const{url:n,init:r}=this.createFetchParams(e,t),i=await this.fetchApi(n,r);if(i.status>=200&&i.status<300)return i;throw new Ft(i,"Response returned an error code")}createFetchParams(e,t){let n=this.configuration.basePath+e.path;e.query!==void 0&&Object.keys(e.query).length!==0&&(n+="?"+this.configuration.queryParamsStringify(e.query));const r=typeof FormData<"u"&&e.body instanceof FormData||e.body instanceof URLSearchParams||Zm(e.body)?e.body:JSON.stringify(e.body),i=Object.assign({},this.configuration.headers,e.headers);Object.keys(i).forEach(s=>i[s]===void 0?delete i[s]:{});const a={method:e.method,body:r,credentials:this.configuration.credentials,...Ln({},t,{headers:Ln({},i,t?.headers)})};return{url:n,init:a}}fetchApi=async(e,t)=>{let n={url:e,init:t};for(const i of this.middleware)i.pre&&(n=await i.pre({fetch:this.fetchApi,...n})||n);let r=await(this.configuration.fetchApi||fetch)(n.url,n.init);for(const i of this.middleware)i.post&&(r=await i.post({fetch:this.fetchApi,url:n.url,init:n.init,response:r.clone()})||r);return r};clone(){const e=this.constructor,t=new e(this.configuration);return t.middleware=this.middleware.slice(),t}},Ft=class extends Error{response;name="ResponseError";constructor(e,t){super(t),this.response=e}},B=class extends Error{field;name="RequiredError";constructor(e,t){super(t),this.field=e}},Um={csv:",",ssv:" ",tsv:" ",pipes:"|"},zt=class{configuration;constructor(e={}){this.configuration=e}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:Br}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||$t}get username(){return this.configuration.username}get password(){return this.configuration.password}get apiKey(){const e=this.configuration.apiKey;if(e)return typeof e=="function"?e:()=>e}get accessToken(){const e=this.configuration.accessToken;if(e)return typeof e=="function"?e:async()=>e}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}};function Gm(e,t){const n=e[t];return n!=null}function $t(e,t=""){return Object.keys(e).map(n=>{const r=t+(t.length?`[${n}]`:n),i=e[n];if(i instanceof Array){const a=i.map(s=>encodeURIComponent(String(s))).join(`&${encodeURIComponent(r)}=`);return`${encodeURIComponent(r)}=${a}`}return i instanceof Date?`${encodeURIComponent(r)}=${encodeURIComponent(i.toISOString())}`:i instanceof Object?$t(i,r):`${encodeURIComponent(r)}=${encodeURIComponent(String(i))}`}).filter(n=>n.length>0).join("&")}function qm(e){for(const t of e)if(t.contentType==="multipart/form-data")return!0;return!1}var q=class{raw;transformer;constructor(e,t=n=>n){this.raw=e,this.transformer=t}async value(){return this.transformer(await this.raw.json())}},Zr=class{raw;constructor(e){this.raw=e}async value(){}},Ym=class{raw;constructor(e){this.raw=e}async value(){return await this.raw.blob()}},Lt=class{raw;constructor(e){this.raw=e}async value(){return await this.raw.text()}};function Km(e){return!(!("amount"in e)||e.amount===void 0||!("code"in e)||e.code===void 0||!("couponId"in e)||e.couponId===void 0)}function Vm(e){return Ur(e,!1)}function Ur(e,t){return e==null?e:{amount:e.amount,code:e.code,couponId:e.coupon_id}}function Wm(e){return Gr(e,!1)}function Gr(e,t=!1){return e==null?e:{amount:e.amount,code:e.code,coupon_id:e.couponId}}var Xm={Exhausted:"exhausted",Expired:"expired",NotFound:"not_found"};function Qm(e){return!(!("code"in e)||e.code===void 0||!("error"in e)||e.error===void 0)}function xm(e){return qr(e,!1)}function qr(e,t){return e==null?e:{code:e.code,error:e.error}}function jm(e){return Yr(e,!1)}function Yr(e,t=!1){return e==null?e:{code:e.code,error:e.error}}var ep={Exhausted:"exhausted",Expired:"expired",NotFound:"not_found"};function tp(e){return!(!("amount"in e)||e.amount===void 0||!("code"in e)||e.code===void 0||!("couponId"in e)||e.couponId===void 0||!("error"in e)||e.error===void 0)}function Kr(e){return Vr(e,!1)}function Vr(e,t){return e==null?e:{amount:e.amount,code:e.code,couponId:e.coupon_id,error:e.error}}function Wr(e){return Xr(e,!1)}function Xr(e,t=!1){return e==null?e:{amount:e.amount,code:e.code,coupon_id:e.couponId,error:e.error}}var np={Coupon:"COUPON"};function rp(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function ip(e){return Ht(e,!1)}function Ht(e,t){return e==null?e:{name:e.name,payload:e.payload.map(Kr)}}function Qr(e){return xr(e,!1)}function xr(e,t=!1){return e==null?e:{name:e.name,payload:e.payload.map(Wr)}}var op={CreditCard:"CREDIT_CARD"};function ap(e){return!(!("name"in e)||e.name===void 0)}function sp(e){return Bt(e,!1)}function Bt(e,t){return e==null?e:{name:e.name}}function jr(e){return ei(e,!1)}function ei(e,t=!1){return e==null?e:{name:e.name}}var up={DepositAccount:"DEPOSIT_ACCOUNT"};function cp(e){return!(!("name"in e)||e.name===void 0)}function dp(e){return Zt(e,!1)}function Zt(e,t){return e==null?e:{name:e.name}}function ti(e){return ni(e,!1)}function ni(e,t=!1){return e==null?e:{name:e.name}}var fp={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"};function lp(e){return!(!("status"in e)||e.status===void 0)}function ri(e){return ii(e,!1)}function ii(e,t){return e==null?e:{status:e.status}}function oi(e){return ai(e,!1)}function ai(e,t=!1){return e==null?e:{status:e.status}}var mp={PayLater:"PAY_LATER"};function pp(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function hp(e){return Ut(e,!1)}function Ut(e,t){return e==null?e:{name:e.name,payload:ri(e.payload)}}function si(e){return ui(e,!1)}function ui(e,t=!1){return e==null?e:{name:e.name,payload:oi(e.payload)}}function ci(e){return di(e,!1)}function di(e,t){if(e==null)return e;switch(e.name){case"COUPON":return{...Ht(e,!0),name:"COUPON"};case"CREDIT_CARD":return{...Bt(e,!0),name:"CREDIT_CARD"};case"DEPOSIT_ACCOUNT":return{...Zt(e,!0),name:"DEPOSIT_ACCOUNT"};case"PAY_LATER":return{...Ut(e,!0),name:"PAY_LATER"};default:throw new Error(`No variant of AllowedPaymentMethodApi exists with 'name=${e.name}'`)}}function fi(e){if(e!==void 0){if(e===null)return null;switch(e.name){case"COUPON":return Qr(e);case"CREDIT_CARD":return jr(e);case"DEPOSIT_ACCOUNT":return ti(e);case"PAY_LATER":return si(e);default:throw new Error(`No variant of AllowedPaymentMethodApi exists with 'name=${e.name}'`)}}}function yp(e,t=!1){return fi(e)}function gp(e){return!0}function Gt(e){return li(e,!1)}function li(e,t){return e==null?e:{airConditioning:e.air_conditioning==null?void 0:e.air_conditioning,airportTransportation:e.airport_transportation==null?void 0:e.airport_transportation,businessCenter:e.business_center==null?void 0:e.business_center,carRentDesk:e.car_rent_desk==null?void 0:e.car_rent_desk,childrenAllowed:e.children_allowed==null?void 0:e.children_allowed,clothingIron:e.clothing_iron==null?void 0:e.clothing_iron,coffeeTeaMaker:e.coffee_tea_maker==null?void 0:e.coffee_tea_maker,combination:e.combination==null?void 0:e.combination,continentalBreakfast:e.continental_breakfast==null?void 0:e.continental_breakfast,dataPorts:e.data_ports==null?void 0:e.data_ports,dryCleaning:e.dry_cleaning==null?void 0:e.dry_cleaning,electronicRoomKeys:e.electronic_room_keys==null?void 0:e.electronic_room_keys,exteriorRoomEntrance:e.exterior_room_entrance==null?void 0:e.exterior_room_entrance,familyRooms:e.family_rooms==null?void 0:e.family_rooms,fitnessFacility:e.fitness_facility==null?void 0:e.fitness_facility,gameRoom:e.game_room==null?void 0:e.game_room,golfCourse:e.golf_course==null?void 0:e.golf_course,hairDryer:e.hair_dryer==null?void 0:e.hair_dryer,handicapAccessible:e.handicap_accessible==null?void 0:e.handicap_accessible,inHouseBar:e.in_house_bar==null?void 0:e.in_house_bar,inHouseDining:e.in_house_dining==null?void 0:e.in_house_dining,inRoomMovies:e.in_room_movies==null?void 0:e.in_room_movies,indoorPool:e.indoor_pool==null?void 0:e.indoor_pool,interiorRoomEntrance:e.interior_room_entrance==null?void 0:e.interior_room_entrance,kitchen:e.kitchen==null?void 0:e.kitchen,map:e.map==null?void 0:e.map,meetingRooms:e.meeting_rooms==null?void 0:e.meeting_rooms,miniBarInRoom:e.mini_bar_in_room==null?void 0:e.mini_bar_in_room,nonSmokingRooms:e.non_smoking_rooms==null?void 0:e.non_smoking_rooms,outdoorPool:e.outdoor_pool==null?void 0:e.outdoor_pool,parkingGarage:e.parking_garage==null?void 0:e.parking_garage,petsAllowed:e.pets_allowed==null?void 0:e.pets_allowed,restrictedAccess:e.restricted_access==null?void 0:e.restricted_access,roomService:e.room_service==null?void 0:e.room_service,safe:e.safe==null?void 0:e.safe,sauna:e.sauna==null?void 0:e.sauna,tVInRoom:e.t_v_in_room==null?void 0:e.t_v_in_room,tennisCourt:e.tennis_court==null?void 0:e.tennis_court,twentyFourHourSecurity:e.twenty_four_hour_security==null?void 0:e.twenty_four_hour_security,valetParking:e.valet_parking==null?void 0:e.valet_parking,videoCheckOut:e.video_check_out==null?void 0:e.video_check_out,voiceMail:e.voice_mail==null?void 0:e.voice_mail,wakeUpService:e.wake_up_service==null?void 0:e.wake_up_service,whirpool:e.whirpool==null?void 0:e.whirpool}}function qt(e){return mi(e,!1)}function mi(e,t=!1){return e==null?e:{air_conditioning:e.airConditioning,airport_transportation:e.airportTransportation,business_center:e.businessCenter,car_rent_desk:e.carRentDesk,children_allowed:e.childrenAllowed,clothing_iron:e.clothingIron,coffee_tea_maker:e.coffeeTeaMaker,combination:e.combination,continental_breakfast:e.continentalBreakfast,data_ports:e.dataPorts,dry_cleaning:e.dryCleaning,electronic_room_keys:e.electronicRoomKeys,exterior_room_entrance:e.exteriorRoomEntrance,family_rooms:e.familyRooms,fitness_facility:e.fitnessFacility,game_room:e.gameRoom,golf_course:e.golfCourse,hair_dryer:e.hairDryer,handicap_accessible:e.handicapAccessible,in_house_bar:e.inHouseBar,in_house_dining:e.inHouseDining,in_room_movies:e.inRoomMovies,indoor_pool:e.indoorPool,interior_room_entrance:e.interiorRoomEntrance,kitchen:e.kitchen,map:e.map,meeting_rooms:e.meetingRooms,mini_bar_in_room:e.miniBarInRoom,non_smoking_rooms:e.nonSmokingRooms,outdoor_pool:e.outdoorPool,parking_garage:e.parkingGarage,pets_allowed:e.petsAllowed,restricted_access:e.restrictedAccess,room_service:e.roomService,safe:e.safe,sauna:e.sauna,t_v_in_room:e.tVInRoom,tennis_court:e.tennisCourt,twenty_four_hour_security:e.twentyFourHourSecurity,valet_parking:e.valetParking,video_check_out:e.videoCheckOut,voice_mail:e.voiceMail,wake_up_service:e.wakeUpService,whirpool:e.whirpool}}function _p(e){return!(!("count"in e)||e.count===void 0||!("name"in e)||e.name===void 0||!("occupancy"in e)||e.occupancy===void 0)}function Op(e){return pi(e,!1)}function pi(e,t){return e==null?e:{count:e.count,name:e.name,occupancy:e.occupancy}}function Ap(e){return hi(e,!1)}function hi(e,t=!1){return e==null?e:{count:e.count,name:e.name,occupancy:e.occupancy}}function Sp(e){return!(!("dateFrom"in e)||e.dateFrom===void 0||!("dateTo"in e)||e.dateTo===void 0||!("penaltyPercentage"in e)||e.penaltyPercentage===void 0)}function it(e){return yi(e,!1)}function yi(e,t){return e==null?e:{dateFrom:e.date_from,dateTo:e.date_to,penaltyPercentage:e.penalty_percentage}}function ot(e){return gi(e,!1)}function gi(e,t=!1){return e==null?e:{date_from:e.dateFrom,date_to:e.dateTo,penalty_percentage:e.penaltyPercentage}}var at={Ad:"AD",Ae:"AE",Af:"AF",Ag:"AG",Ai:"AI",Al:"AL",Am:"AM",Ao:"AO",Ar:"AR",As:"AS",At:"AT",Au:"AU",Aw:"AW",Ax:"AX",Az:"AZ",Ba:"BA",Bb:"BB",Bd:"BD",Be:"BE",Bf:"BF",Bg:"BG",Bh:"BH",Bi:"BI",Bj:"BJ",Bl:"BL",Bm:"BM",Bn:"BN",Bo:"BO",Bq:"BQ",Br:"BR",Bs:"BS",Bt:"BT",Bw:"BW",By:"BY",Bz:"BZ",Ca:"CA",Cc:"CC",Cd:"CD",Cf:"CF",Cg:"CG",Ch:"CH",Ci:"CI",Ck:"CK",Cl:"CL",Cm:"CM",Cn:"CN",Co:"CO",Cr:"CR",Cu:"CU",Cv:"CV",Cw:"CW",Cx:"CX",Cy:"CY",Cz:"CZ",De:"DE",Dj:"DJ",Dk:"DK",Dm:"DM",Do:"DO",Dz:"DZ",Ec:"EC",Ee:"EE",Eg:"EG",Eh:"EH",Er:"ER",Es:"ES",Et:"ET",Fi:"FI",Fj:"FJ",Fk:"FK",Fm:"FM",Fo:"FO",Fr:"FR",Ga:"GA",Gb:"GB",Gd:"GD",Ge:"GE",Gf:"GF",Gg:"GG",Gh:"GH",Gi:"GI",Gl:"GL",Gm:"GM",Gn:"GN",Gp:"GP",Gq:"GQ",Gr:"GR",Gt:"GT",Gu:"GU",Gw:"GW",Gy:"GY",Hk:"HK",Hn:"HN",Hr:"HR",Ht:"HT",Hu:"HU",Id:"ID",Ie:"IE",Il:"IL",Im:"IM",In:"IN",Io:"IO",Iq:"IQ",Ir:"IR",Is:"IS",It:"IT",Je:"JE",Jm:"JM",Jo:"JO",Jp:"JP",Ke:"KE",Kg:"KG",Kh:"KH",Ki:"KI",Km:"KM",Kn:"KN",Kp:"KP",Kr:"KR",Kw:"KW",Ky:"KY",Kz:"KZ",La:"LA",Lb:"LB",Lc:"LC",Li:"LI",Lk:"LK",Lr:"LR",Ls:"LS",Lt:"LT",Lu:"LU",Lv:"LV",Ly:"LY",Ma:"MA",Mc:"MC",Md:"MD",Me:"ME",Mf:"MF",Mg:"MG",Mh:"MH",Mk:"MK",Ml:"ML",Mm:"MM",Mn:"MN",Mo:"MO",Mp:"MP",Mq:"MQ",Mr:"MR",Ms:"MS",Mt:"MT",Mu:"MU",Mv:"MV",Mw:"MW",Mx:"MX",My:"MY",Mz:"MZ",Na:"NA",Nc:"NC",Ne:"NE",Nf:"NF",Ng:"NG",Ni:"NI",Nl:"NL",No:"NO",Np:"NP",Nr:"NR",Nu:"NU",Nz:"NZ",Om:"OM",Pa:"PA",Pe:"PE",Pf:"PF",Pg:"PG",Ph:"PH",Pk:"PK",Pl:"PL",Pm:"PM",Pr:"PR",Ps:"PS",Pt:"PT",Pw:"PW",Py:"PY",Qa:"QA",Re:"RE",Ro:"RO",Rs:"RS",Ru:"RU",Rw:"RW",Sa:"SA",Sb:"SB",Sc:"SC",Sd:"SD",Se:"SE",Sg:"SG",Sh:"SH",Si:"SI",Sj:"SJ",Sk:"SK",Sl:"SL",Sm:"SM",Sn:"SN",So:"SO",Sr:"SR",Ss:"SS",St:"ST",Sv:"SV",Sx:"SX",Sy:"SY",Sz:"SZ",Tc:"TC",Td:"TD",Tg:"TG",Th:"TH",Tj:"TJ",Tk:"TK",Tl:"TL",Tm:"TM",Tn:"TN",To:"TO",Tr:"TR",Tt:"TT",Tv:"TV",Tw:"TW",Tz:"TZ",Ua:"UA",Ug:"UG",Us:"US",Uy:"UY",Uz:"UZ",Va:"VA",Vc:"VC",Ve:"VE",Vg:"VG",Vi:"VI",Vn:"VN",Vu:"VU",Wf:"WF",Ws:"WS",Xk:"XK",Ye:"YE",Yt:"YT",Za:"ZA",Zm:"ZM",Zw:"ZW"};function Tp(e){for(const t in at)if(Object.prototype.hasOwnProperty.call(at,t)&&at[t]===e)return!0;return!1}function He(e){return _i(e,!1)}function _i(e,t){return e}function wp(e){return e}function kp(e,t){return e}function vp(e){return!(!("isHeroImage"in e)||e.isHeroImage===void 0||!("l"in e)||e.l===void 0||!("m"in e)||e.m===void 0||!("s"in e)||e.s===void 0||!("xl"in e)||e.xl===void 0||!("xs"in e)||e.xs===void 0)}function be(e){return Oi(e,!1)}function Oi(e,t){return e==null?e:{caption:e.caption==null?void 0:e.caption,isHeroImage:e.is_hero_image,l:e.l,m:e.m,s:e.s,xl:e.xl,xs:e.xs}}function Be(e){return Ai(e,!1)}function Ai(e,t=!1){return e==null?e:{caption:e.caption,is_hero_image:e.isHeroImage,l:e.l,m:e.m,s:e.s,xl:e.xl,xs:e.xs}}function Rp(e){return!(!("beds"in e)||e.beds===void 0||!("bedsPretty"in e)||e.bedsPretty===void 0||!("count"in e)||e.count===void 0||!("description"in e)||e.description===void 0||!("id"in e)||e.id===void 0||!("occupancy"in e)||e.occupancy===void 0)}function Si(e){return Ti(e,!1)}function Ti(e,t){return e==null?e:{amenities:e.amenities==null?void 0:e.amenities,beds:e.beds,bedsPretty:e.beds_pretty,count:e.count,description:e.description,highresImages:e.highres_images==null?void 0:e.highres_images,id:e.id,imageIndexes:e.image_indexes==null?void 0:e.image_indexes,images:e.images==null?void 0:e.images.map(be),lowresImages:e.lowres_images==null?void 0:e.lowres_images,occupancy:e.occupancy,richDescription:e.rich_description==null?void 0:e.rich_description,roomSquareFeet:e.room_square_feet==null?void 0:e.room_square_feet,roomSquareMeters:e.room_square_meters==null?void 0:e.room_square_meters,thumbImages:e.thumb_images==null?void 0:e.thumb_images}}function wi(e){return ki(e,!1)}function ki(e,t=!1){return e==null?e:{amenities:e.amenities,beds:e.beds,beds_pretty:e.bedsPretty,count:e.count,description:e.description,highres_images:e.highresImages,id:e.id,image_indexes:e.imageIndexes,images:e.images==null?void 0:e.images.map(Be),lowres_images:e.lowresImages,occupancy:e.occupancy,rich_description:e.richDescription,room_square_feet:e.roomSquareFeet,room_square_meters:e.roomSquareMeters,thumb_images:e.thumbImages}}var st={Included:"INCLUDED",NotIncluded:"NOT_INCLUDED",Optional:"OPTIONAL"};function Np(e){for(const t in st)if(Object.prototype.hasOwnProperty.call(st,t)&&st[t]===e)return!0;return!1}function vi(e){return Ri(e,!1)}function Ri(e,t){return e}function Pp(e){return e}function Cp(e,t){return e}var bp={PerNight:"PER_NIGHT",PerStay:"PER_STAY"},Mp={PerAdult:"PER_ADULT",PerBooking:"PER_BOOKING"};function Ip(e){return!(!("taxFrequency"in e)||e.taxFrequency===void 0||!("taxMode"in e)||e.taxMode===void 0)}function Yt(e){return Ni(e,!1)}function Ni(e,t){return e==null?e:{amount:e.amount==null?void 0:e.amount,code:e.code==null?void 0:e.code,description:e.description==null?void 0:e.description,percentage:e.percentage==null?void 0:e.percentage,taxFrequency:e.tax_frequency,taxMode:e.tax_mode}}function Kt(e){return Pi(e,!1)}function Pi(e,t=!1){return e==null?e:{amount:e.amount,code:e.code,description:e.description,percentage:e.percentage,tax_frequency:e.taxFrequency,tax_mode:e.taxMode}}var ut={Aed:"AED",Afn:"AFN",All:"ALL",Amd:"AMD",Ang:"ANG",Aoa:"AOA",Ars:"ARS",Aud:"AUD",Awg:"AWG",Azn:"AZN",Bam:"BAM",Bbd:"BBD",Bdt:"BDT",Bhd:"BHD",Bgn:"BGN",Bif:"BIF",Bmd:"BMD",Bnd:"BND",Bob:"BOB",Brl:"BRL",Bsd:"BSD",Bwp:"BWP",Bzd:"BZD",Cad:"CAD",Cdf:"CDF",Chf:"CHF",Clp:"CLP",Cny:"CNY",Cop:"COP",Crc:"CRC",Cve:"CVE",Czk:"CZK",Djf:"DJF",Dkk:"DKK",Dop:"DOP",Dzd:"DZD",Egp:"EGP",Etb:"ETB",Eur:"EUR",Fjd:"FJD",Fkp:"FKP",Gbp:"GBP",Gel:"GEL",Gip:"GIP",Gmd:"GMD",Gnf:"GNF",Gtq:"GTQ",Gyd:"GYD",Hkd:"HKD",Hnl:"HNL",Htg:"HTG",Huf:"HUF",Idr:"IDR",Ils:"ILS",Inr:"INR",Isk:"ISK",Jmd:"JMD",Jod:"JOD",Jpy:"JPY",Kes:"KES",Kgs:"KGS",Khr:"KHR",Kmf:"KMF",Krw:"KRW",Kwd:"KWD",Kyd:"KYD",Kzt:"KZT",Lak:"LAK",Lbp:"LBP",Lkr:"LKR",Lrd:"LRD",Lsl:"LSL",Mad:"MAD",Mdl:"MDL",Mga:"MGA",Mkd:"MKD",Mmk:"MMK",Mnt:"MNT",Mop:"MOP",Mru:"MRU",Mur:"MUR",Mvr:"MVR",Mwk:"MWK",Mxn:"MXN",Myr:"MYR",Mzn:"MZN",Nad:"NAD",Ngn:"NGN",Nio:"NIO",Nok:"NOK",Npr:"NPR",Nzd:"NZD",Omr:"OMR",Pab:"PAB",Pen:"PEN",Pgk:"PGK",Php:"PHP",Pkr:"PKR",Pln:"PLN",Pyg:"PYG",Qar:"QAR",Ron:"RON",Rsd:"RSD",Rub:"RUB",Rwf:"RWF",Sar:"SAR",Sbd:"SBD",Scr:"SCR",Sek:"SEK",Sgd:"SGD",Shp:"SHP",Sll:"SLL",Sos:"SOS",Srd:"SRD",Std:"STD",Szl:"SZL",Thb:"THB",Tjs:"TJS",Top:"TOP",Try:"TRY",Ttd:"TTD",Twd:"TWD",Tzs:"TZS",Uah:"UAH",Usd:"USD",Uyu:"UYU",Uzs:"UZS",Vnd:"VND",Vuv:"VUV",Wst:"WST",Xaf:"XAF",Xcd:"XCD",Xof:"XOF",Xpf:"XPF",Yer:"YER",Zar:"ZAR",Zmw:"ZMW"};function Jp(e){for(const t in ut)if(Object.prototype.hasOwnProperty.call(ut,t)&&ut[t]===e)return!0;return!1}function le(e){return Ci(e,!1)}function Ci(e,t){return e}function Dp(e){return e}function Ep(e,t){return e}function Fp(e){return!(!("name"in e)||e.name===void 0)}function Vt(e){return bi(e,!1)}function bi(e,t){return e==null?e:{bg:e.bg==null?void 0:e.bg,color:e.color==null?void 0:e.color,description:e.description==null?void 0:e.description,faIcon:e.fa_icon==null?void 0:e.fa_icon,name:e.name}}function Wt(e){return Mi(e,!1)}function Mi(e,t=!1){return e==null?e:{bg:e.bg,color:e.color,description:e.description,fa_icon:e.faIcon,name:e.name}}var zp={BestMatch:"BEST_MATCH",Cheapest:"CHEAPEST",MatchingRoomCount:"MATCHING_ROOM_COUNT",Regular:"REGULAR"},$p={Included:"included",NotIncluded:"not_included",Unknown:"unknown"},Lp={HotelRoom:"HOTEL_ROOM",Package:"PACKAGE"};function Hp(e){return!(!("breakfastOption"in e)||e.breakfastOption===void 0||!("cancellationPolicies"in e)||e.cancellationPolicies===void 0||!("currency"in e)||e.currency===void 0||!("hotelId"in e)||e.hotelId===void 0||!("hotelRooms"in e)||e.hotelRooms===void 0||!("price"in e)||e.price===void 0||!("sourceMarket"in e)||e.sourceMarket===void 0||!("stayTaxesInfo"in e)||e.stayTaxesInfo===void 0||!("taxIncludedPrice"in e)||e.taxIncludedPrice===void 0)}function Me(e){return Ii(e,!1)}function Ii(e,t){return e==null?e:{breakfastCount:e.breakfast_count==null?void 0:e.breakfast_count,breakfastOption:vi(e.breakfast_option),breakfastPricePerGuestPerNight:e.breakfast_price_per_guest_per_night==null?void 0:e.breakfast_price_per_guest_per_night,breakfastUnitPrice:e.breakfast_unit_price==null?void 0:e.breakfast_unit_price,cancellationPolicies:e.cancellation_policies.map(it),count:e.count==null?void 0:e.count,currency:le(e.currency),hotelId:e.hotel_id,hotelRooms:e.hotel_rooms.map(Si),id:e.id==null?void 0:e.id,packageType:e.package_type==null?void 0:e.package_type,price:e.price,sourceMarket:He(e.source_market),stayTaxesInfo:e.stay_taxes_info,tags:e.tags==null?void 0:e.tags.map(Vt),taxIncludedPrice:e.tax_included_price,taxes:e.taxes==null?void 0:e.taxes.map(Yt),type:e.type==null?void 0:e.type}}function Ie(e){return Ji(e,!1)}function Ji(e,t=!1){return e==null?e:{breakfast_count:e.breakfastCount,breakfast_option:e.breakfastOption,breakfast_price_per_guest_per_night:e.breakfastPricePerGuestPerNight,breakfast_unit_price:e.breakfastUnitPrice,cancellation_policies:e.cancellationPolicies.map(ot),count:e.count,currency:e.currency,hotel_id:e.hotelId,hotel_rooms:e.hotelRooms.map(wi),id:e.id,package_type:e.packageType,price:e.price,source_market:e.sourceMarket,stay_taxes_info:e.stayTaxesInfo,tags:e.tags==null?void 0:e.tags.map(Wt),tax_included_price:e.taxIncludedPrice,taxes:e.taxes==null?void 0:e.taxes.map(Kt),type:e.type}}var ct={DeDe:"de-DE",EnUs:"en-US",EsEs:"es-ES",FrFr:"fr-FR",ItIt:"it-IT",NlNl:"nl-NL",PtPt:"pt-PT"};function Bp(e){for(const t in ct)if(Object.prototype.hasOwnProperty.call(ct,t)&&ct[t]===e)return!0;return!1}function dt(e){return Di(e,!1)}function Di(e,t){return e}function Zp(e){return e}function Up(e,t){return e}var ft={Ad:"AD",Ae:"AE",Af:"AF",Ag:"AG",Ai:"AI",Al:"AL",Am:"AM",Ao:"AO",Ar:"AR",As:"AS",At:"AT",Au:"AU",Aw:"AW",Ax:"AX",Az:"AZ",Ba:"BA",Bb:"BB",Bd:"BD",Be:"BE",Bf:"BF",Bg:"BG",Bh:"BH",Bi:"BI",Bj:"BJ",Bl:"BL",Bm:"BM",Bn:"BN",Bo:"BO",Bq:"BQ",Br:"BR",Bs:"BS",Bt:"BT",Bw:"BW",By:"BY",Bz:"BZ",Ca:"CA",Cc:"CC",Cd:"CD",Cf:"CF",Cg:"CG",Ch:"CH",Ci:"CI",Ck:"CK",Cl:"CL",Cm:"CM",Cn:"CN",Co:"CO",Cr:"CR",Cu:"CU",Cv:"CV",Cw:"CW",Cx:"CX",Cy:"CY",Cz:"CZ",De:"DE",Dj:"DJ",Dk:"DK",Dm:"DM",Do:"DO",Dz:"DZ",Ec:"EC",Ee:"EE",Eg:"EG",Eh:"EH",Er:"ER",Es:"ES",Et:"ET",Fi:"FI",Fj:"FJ",Fk:"FK",Fm:"FM",Fo:"FO",Fr:"FR",Ga:"GA",Gb:"GB",Gd:"GD",Ge:"GE",Gf:"GF",Gg:"GG",Gh:"GH",Gi:"GI",Gl:"GL",Gm:"GM",Gn:"GN",Gp:"GP",Gq:"GQ",Gr:"GR",Gt:"GT",Gu:"GU",Gw:"GW",Gy:"GY",Hk:"HK",Hn:"HN",Hr:"HR",Ht:"HT",Hu:"HU",Id:"ID",Ie:"IE",Il:"IL",Im:"IM",In:"IN",Io:"IO",Iq:"IQ",Ir:"IR",Is:"IS",It:"IT",Je:"JE",Jm:"JM",Jo:"JO",Jp:"JP",Ke:"KE",Kg:"KG",Kh:"KH",Ki:"KI",Km:"KM",Kn:"KN",Kp:"KP",Kr:"KR",Kw:"KW",Ky:"KY",Kz:"KZ",La:"LA",Lb:"LB",Lc:"LC",Li:"LI",Lk:"LK",Lr:"LR",Ls:"LS",Lt:"LT",Lu:"LU",Lv:"LV",Ly:"LY",Ma:"MA",Mc:"MC",Md:"MD",Me:"ME",Mf:"MF",Mg:"MG",Mh:"MH",Mk:"MK",Ml:"ML",Mm:"MM",Mn:"MN",Mo:"MO",Mp:"MP",Mq:"MQ",Mr:"MR",Ms:"MS",Mt:"MT",Mu:"MU",Mv:"MV",Mw:"MW",Mx:"MX",My:"MY",Mz:"MZ",Na:"NA",Nc:"NC",Ne:"NE",Nf:"NF",Ng:"NG",Ni:"NI",Nl:"NL",No:"NO",Np:"NP",Nr:"NR",Nu:"NU",Nz:"NZ",Om:"OM",Pa:"PA",Pe:"PE",Pf:"PF",Pg:"PG",Ph:"PH",Pk:"PK",Pl:"PL",Pm:"PM",Pr:"PR",Ps:"PS",Pt:"PT",Pw:"PW",Py:"PY",Qa:"QA",Re:"RE",Ro:"RO",Rs:"RS",Ru:"RU",Rw:"RW",Sa:"SA",Sb:"SB",Sc:"SC",Sd:"SD",Se:"SE",Sg:"SG",Sh:"SH",Si:"SI",Sj:"SJ",Sk:"SK",Sl:"SL",Sm:"SM",Sn:"SN",So:"SO",Sr:"SR",Ss:"SS",St:"ST",Sv:"SV",Sx:"SX",Sy:"SY",Sz:"SZ",Tc:"TC",Td:"TD",Tg:"TG",Th:"TH",Tj:"TJ",Tk:"TK",Tl:"TL",Tm:"TM",Tn:"TN",To:"TO",Tr:"TR",Tt:"TT",Tv:"TV",Tw:"TW",Tz:"TZ",Ua:"UA",Ug:"UG",Us:"US",Uy:"UY",Uz:"UZ",Va:"VA",Vc:"VC",Ve:"VE",Vg:"VG",Vi:"VI",Vn:"VN",Vu:"VU",Wf:"WF",Ws:"WS",Xk:"XK",Ye:"YE",Yt:"YT",Za:"ZA",Zm:"ZM",Zw:"ZW"};function Gp(e){for(const t in ft)if(Object.prototype.hasOwnProperty.call(ft,t)&&ft[t]===e)return!0;return!1}function lt(e){return Ei(e,!1)}function Ei(e,t){return e}function qp(e){return e}function Yp(e,t){return e}function Kp(e){return!(!("address"in e)||e.address===void 0||!("city"in e)||e.city===void 0||!("country"in e)||e.country===void 0||!("name"in e)||e.name===void 0||!("zipCode"in e)||e.zipCode===void 0)}function Fi(e){return zi(e,!1)}function zi(e,t){return e==null?e:{address:e.address,city:e.city,country:lt(e.country),name:e.name,state:e.state==null?void 0:e.state,vatNumber:e.vat_number==null?void 0:e.vat_number,zipCode:e.zip_code}}function $i(e){return Li(e,!1)}function Li(e,t=!1){return e==null?e:{address:e.address,city:e.city,country:e.country,name:e.name,state:e.state,vat_number:e.vatNumber,zip_code:e.zipCode}}var Vp={Dr:"dr",Mr:"mr",Mrs:"mrs",Ms:"ms",NotSpecified:"notSpecified",Prof:"prof"};function Wp(e){return!(!("email"in e)||e.email===void 0||!("firstName"in e)||e.firstName===void 0||!("lastName"in e)||e.lastName===void 0||!("nationality"in e)||e.nationality===void 0||!("phone"in e)||e.phone===void 0)}function Xt(e){return Hi(e,!1)}function Hi(e,t){return e==null?e:{address:e.address==null?void 0:e.address,city:e.city==null?void 0:e.city,country:e.country==null?void 0:lt(e.country),email:e.email,firstName:e.first_name,lang:e.lang==null?void 0:dt(e.lang),lastName:e.last_name,nationality:lt(e.nationality),organization:e.organization==null?void 0:Fi(e.organization),phone:e.phone,remarks:e.remarks==null?void 0:e.remarks,salutation:e.salutation==null?void 0:e.salutation,state:e.state==null?void 0:e.state,zipCode:e.zip_code==null?void 0:e.zip_code}}function Qt(e){return Bi(e,!1)}function Bi(e,t=!1){return e==null?e:{address:e.address,city:e.city,country:e.country,email:e.email,first_name:e.firstName,lang:e.lang,last_name:e.lastName,nationality:e.nationality,organization:$i(e.organization),phone:e.phone,remarks:e.remarks,salutation:e.salutation,state:e.state,zip_code:e.zipCode}}function Xp(e){return!(!("amount"in e)||e.amount===void 0||!("couponId"in e)||e.couponId===void 0)}function Zi(e){return Ui(e,!1)}function Ui(e,t){return e==null?e:{amount:e.amount,couponId:e.coupon_id}}function Gi(e){return qi(e,!1)}function qi(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId}}var Qp={Coupon:"COUPON"};function xp(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function jp(e){return xt(e,!1)}function xt(e,t){return e==null?e:{name:e.name,payload:e.payload.map(Zi)}}function Yi(e){return Ki(e,!1)}function Ki(e,t=!1){return e==null?e:{name:e.name,payload:e.payload.map(Gi)}}function eh(e){return!(!("amount"in e)||e.amount===void 0||!("token"in e)||e.token===void 0)}function Vi(e){return Wi(e,!1)}function Wi(e,t){return e==null?e:{amount:e.amount,couponId:e.coupon_id==null?void 0:e.coupon_id,token:e.token}}function Xi(e){return Qi(e,!1)}function Qi(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId,token:e.token}}var th={CreditCard:"CREDIT_CARD"};function nh(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function rh(e){return jt(e,!1)}function jt(e,t){return e==null?e:{name:e.name,payload:Vi(e.payload)}}function xi(e){return ji(e,!1)}function ji(e,t=!1){return e==null?e:{name:e.name,payload:Xi(e.payload)}}function ih(e){return!(!("amount"in e)||e.amount===void 0)}function eo(e){return to(e,!1)}function to(e,t){return e==null?e:{amount:e.amount,couponId:e.coupon_id==null?void 0:e.coupon_id,token:e.token==null?void 0:e.token}}function no(e){return ro(e,!1)}function ro(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId,token:e.token}}var oh={DepositAccount:"DEPOSIT_ACCOUNT"};function ah(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function sh(e){return en(e,!1)}function en(e,t){return e==null?e:{name:e.name,payload:eo(e.payload)}}function io(e){return oo(e,!1)}function oo(e,t=!1){return e==null?e:{name:e.name,payload:no(e.payload)}}var uh={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"};function ch(e){return!(!("amount"in e)||e.amount===void 0||!("status"in e)||e.status===void 0)}function ao(e){return so(e,!1)}function so(e,t){return e==null?e:{amount:e.amount,couponId:e.coupon_id==null?void 0:e.coupon_id,status:e.status,token:e.token==null?void 0:e.token}}function uo(e){return co(e,!1)}function co(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId,status:e.status,token:e.token}}var dh={PayLater:"PAY_LATER"};function fh(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function lh(e){return tn(e,!1)}function tn(e,t){return e==null?e:{name:e.name,payload:ao(e.payload)}}function fo(e){return lo(e,!1)}function lo(e,t=!1){return e==null?e:{name:e.name,payload:uo(e.payload)}}function mo(e){return po(e,!1)}function po(e,t){if(e==null)return e;switch(e.name){case"COUPON":return{...xt(e,!0),name:"COUPON"};case"CREDIT_CARD":return{...jt(e,!0),name:"CREDIT_CARD"};case"DEPOSIT_ACCOUNT":return{...en(e,!0),name:"DEPOSIT_ACCOUNT"};case"PAY_LATER":return{...tn(e,!0),name:"PAY_LATER"};default:throw new Error(`No variant of PaymentMethodApi exists with 'name=${e.name}'`)}}function nn(e){if(e!==void 0){if(e===null)return null;switch(e.name){case"COUPON":return Yi(e);case"CREDIT_CARD":return xi(e);case"DEPOSIT_ACCOUNT":return io(e);case"PAY_LATER":return fo(e);default:throw new Error(`No variant of PaymentMethodApi exists with 'name=${e.name}'`)}}}function mh(e,t=!1){return nn(e)}var ph={Active:"active",Archived:"archived",Claimed:"claimed",Incomplete:"incomplete",Open:"open",WaitingPayment:"waiting_payment"};function hh(e){return!(!("status"in e)||e.status===void 0)}function ho(e){return yo(e,!1)}function yo(e,t){return e==null?e:{createdAt:e.created_at==null?void 0:e.created_at,reference:e.reference==null?void 0:e.reference,status:e.status}}function go(e){return _o(e,!1)}function _o(e,t=!1){return e==null?e:{created_at:e.createdAt,reference:e.reference,status:e.status}}var yh={CreditNote:"credit_note",Invoice:"invoice"};function gh(e){return!(!("type"in e)||e.type===void 0||!("url"in e)||e.url===void 0)}function Oo(e){return Ao(e,!1)}function Ao(e,t){return e==null?e:{type:e.type,url:e.url}}function So(e){return To(e,!1)}function To(e,t=!1){return e==null?e:{type:e.type,url:e.url}}var _h={Insurance:"insurance"};function Oh(e){return!(!("price"in e)||e.price===void 0||!("taxIncludedPrice"in e)||e.taxIncludedPrice===void 0||!("type"in e)||e.type===void 0)}function rn(e){return wo(e,!1)}function wo(e,t){return e==null?e:{price:e.price,taxIncludedPrice:e.tax_included_price,type:e.type}}function on(e){return ko(e,!1)}function ko(e,t=!1){return e==null?e:{price:e.price,tax_included_price:e.taxIncludedPrice,type:e.type}}function Ah(e){return!0}function mt(e){return vo(e,!1)}function vo(e,t){return e==null?e:{latitude:e.latitude==null?void 0:e.latitude,longitude:e.longitude==null?void 0:e.longitude,name:e.name==null?void 0:e.name,slug:e.slug==null?void 0:e.slug}}function pt(e){return Ro(e,!1)}function Ro(e,t=!1){return e==null?e:{latitude:e.latitude,longitude:e.longitude,name:e.name,slug:e.slug}}function Sh(e){return!(!("beds"in e)||e.beds===void 0||!("bedsPretty"in e)||e.bedsPretty===void 0||!("count"in e)||e.count===void 0||!("description"in e)||e.description===void 0||!("id"in e)||e.id===void 0||!("occupancy"in e)||e.occupancy===void 0)}function No(e){return Po(e,!1)}function Po(e,t){return e==null?e:{amenities:e.amenities==null?void 0:e.amenities,beds:e.beds,bedsPretty:e.beds_pretty,count:e.count,description:e.description,highresImages:e.highres_images==null?void 0:e.highres_images,id:e.id,imageIndexes:e.image_indexes==null?void 0:e.image_indexes,images:e.images==null?void 0:e.images.map(be),lowresImages:e.lowres_images==null?void 0:e.lowres_images,occupancy:e.occupancy,richDescription:e.rich_description==null?void 0:e.rich_description,roomSquareFeet:e.room_square_feet==null?void 0:e.room_square_feet,roomSquareMeters:e.room_square_meters==null?void 0:e.room_square_meters,thumbImages:e.thumb_images==null?void 0:e.thumb_images}}function Co(e){return bo(e,!1)}function bo(e,t=!1){return e==null?e:{amenities:e.amenities,beds:e.beds,beds_pretty:e.bedsPretty,count:e.count,description:e.description,highres_images:e.highresImages,id:e.id,image_indexes:e.imageIndexes,images:e.images==null?void 0:e.images.map(Be),lowres_images:e.lowresImages,occupancy:e.occupancy,rich_description:e.richDescription,room_square_feet:e.roomSquareFeet,room_square_meters:e.roomSquareMeters,thumb_images:e.thumbImages}}function Th(e){return!(!("fullname"in e)||e.fullname===void 0||!("id"in e)||e.id===void 0)}function ht(e){return Mo(e,!1)}function Mo(e,t){return e==null?e:{fullname:e.fullname,id:e.id}}function Io(e){return Jo(e,!1)}function Jo(e,t=!1){return e==null?e:{fullname:e.fullname,id:e.id}}function wh(e){return!(!("hotelRoomId"in e)||e.hotelRoomId===void 0||!("hotelRoomingListGuests"in e)||e.hotelRoomingListGuests===void 0||!("id"in e)||e.id===void 0)}function an(e){return Do(e,!1)}function Do(e,t){return e==null?e:{hotelRoom:e.hotel_room==null?void 0:No(e.hotel_room),hotelRoomId:e.hotel_room_id,hotelRoomingListGuests:e.hotel_rooming_list_guests.map(ht),id:e.id,limitDate:e.limit_date==null?void 0:new Date(e.limit_date)}}function Eo(e){return Fo(e,!1)}function Fo(e,t=!1){return e==null?e:{hotel_room:Co(e.hotelRoom),hotel_room_id:e.hotelRoomId,hotel_rooming_list_guests:e.hotelRoomingListGuests.map(Io),id:e.id,limit_date:e.limitDate==null?e.limitDate:e.limitDate.toISOString()}}var kh={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"},vh={BkgCx:"bkg-cx",BkgCf:"bkg-cf",BkgCreated:"bkg-created",BkgAf:"bkg-af",BkgIp:"bkg-ip",BkgPc:"bkg-pc",BkgPp:"bkg-pp",BkgQr:"bkg-qr"};function Rh(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("cancellationPolicies"in e)||e.cancellationPolicies===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("contactPerson"in e)||e.contactPerson===void 0||!("createdAt"in e)||e.createdAt===void 0||!("currency"in e)||e.currency===void 0||!("hotelId"in e)||e.hotelId===void 0||!("hotelRoomOffer"in e)||e.hotelRoomOffer===void 0||!("lastStatusUpdatedAt"in e)||e.lastStatusUpdatedAt===void 0||!("reference"in e)||e.reference===void 0||!("sourceMarket"in e)||e.sourceMarket===void 0||!("status"in e)||e.status===void 0||!("taxAmount"in e)||e.taxAmount===void 0||!("taxIncludedPrice"in e)||e.taxIncludedPrice===void 0||!("terms"in e)||e.terms===void 0)}function fe(e){return zo(e,!1)}function zo(e,t){return e==null?e:{additionalCheckInInstruction:e.additional_check_in_instruction==null?void 0:e.additional_check_in_instruction,additionalPolicies:e.additional_policies==null?void 0:e.additional_policies,addons:e.addons==null?void 0:e.addons.map(rn),adultCount:e.adult_count,bookingGroupId:e.booking_group_id==null?void 0:e.booking_group_id,canceledAt:e.canceled_at==null?void 0:e.canceled_at,cancellationPolicies:e.cancellation_policies.map(it),cancellationPolicyRemarks:e.cancellation_policy_remarks==null?void 0:e.cancellation_policy_remarks,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,confirmedAt:e.confirmed_at==null?void 0:e.confirmed_at,contactPerson:Xt(e.contact_person),createdAt:e.created_at,currency:le(e.currency),customerReference:e.customer_reference==null?void 0:e.customer_reference,event:e.event==null?void 0:mt(e.event),failedAt:e.failed_at==null?void 0:e.failed_at,hotelConfirmationId:e.hotel_confirmation_id==null?void 0:e.hotel_confirmation_id,hotelId:e.hotel_id,hotelRoomOffer:Me(e.hotel_room_offer),hotelRoomingLists:e.hotel_rooming_lists==null?void 0:e.hotel_rooming_lists.map(an),id:e.id==null?void 0:e.id,insurance:e.insurance==null?void 0:ho(e.insurance),invoices:e.invoices==null?void 0:e.invoices.map(Oo),lastStatusUpdatedAt:e.last_status_updated_at,metadata:e.metadata==null?void 0:e.metadata,payLater:e.pay_later==null?void 0:e.pay_later,paymentMethods:e.payment_methods==null?void 0:e.payment_methods.map(mo),penaltyPercentage:e.penalty_percentage==null?void 0:e.penalty_percentage,reference:e.reference,sourceMarket:He(e.source_market),status:e.status,taxAmount:e.tax_amount,taxIncludedPrice:e.tax_included_price,taxes:e.taxes==null?void 0:e.taxes.map(Yt),terms:e.terms,token:e.token==null?void 0:e.token}}function $o(e){return Lo(e,!1)}function Lo(e,t=!1){return e==null?e:{additional_check_in_instruction:e.additionalCheckInInstruction,additional_policies:e.additionalPolicies,addons:e.addons==null?void 0:e.addons.map(on),adult_count:e.adultCount,booking_group_id:e.bookingGroupId,canceled_at:e.canceledAt,cancellation_policies:e.cancellationPolicies.map(ot),cancellation_policy_remarks:e.cancellationPolicyRemarks,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,confirmed_at:e.confirmedAt,contact_person:Qt(e.contactPerson),created_at:e.createdAt,currency:e.currency,customer_reference:e.customerReference,event:pt(e.event),failed_at:e.failedAt,hotel_confirmation_id:e.hotelConfirmationId,hotel_id:e.hotelId,hotel_room_offer:Ie(e.hotelRoomOffer),hotel_rooming_lists:e.hotelRoomingLists==null?void 0:e.hotelRoomingLists.map(Eo),id:e.id,insurance:go(e.insurance),invoices:e.invoices==null?void 0:e.invoices.map(So),last_status_updated_at:e.lastStatusUpdatedAt,metadata:e.metadata,pay_later:e.payLater,payment_methods:e.paymentMethods==null?void 0:e.paymentMethods.map(nn),penalty_percentage:e.penaltyPercentage,reference:e.reference,source_market:e.sourceMarket,status:e.status,tax_amount:e.taxAmount,tax_included_price:e.taxIncludedPrice,taxes:e.taxes==null?void 0:e.taxes.map(Kt),terms:e.terms,token:e.token}}var Nh={Insurance:"insurance"};function Ph(e){return!(!("type"in e)||e.type===void 0)}function Ho(e){return Bo(e,!1)}function Bo(e,t){return e==null?e:{type:e.type}}function Zo(e){return Uo(e,!1)}function Uo(e,t=!1){return e==null?e:{type:e.type}}function Ch(e){return!(!("fullname"in e)||e.fullname===void 0)}function Go(e){return qo(e,!1)}function qo(e,t){return e==null?e:{fullname:e.fullname}}function Yo(e){return Ko(e,!1)}function Ko(e,t=!1){return e==null?e:{fullname:e.fullname}}function bh(e){return!(!("guests"in e)||e.guests===void 0||!("hotelRoomId"in e)||e.hotelRoomId===void 0)}function Vo(e){return Wo(e,!1)}function Wo(e,t){return e==null?e:{guests:e.guests.map(Go),hotelRoomId:e.hotel_room_id}}function Xo(e){return Qo(e,!1)}function Qo(e,t=!1){return e==null?e:{guests:e.guests.map(Yo),hotel_room_id:e.hotelRoomId}}function Mh(e){return!0}function Je(e){return xo(e,!1)}function xo(e,t){return e==null?e:{dateEnd:e.date_end==null?void 0:e.date_end,dateStart:e.date_start==null?void 0:e.date_start,id:e.id==null?void 0:e.id,imageUrl:e.image_url==null?void 0:e.image_url,name:e.name==null?void 0:e.name,slug:e.slug==null?void 0:e.slug}}function De(e){return jo(e,!1)}function jo(e,t=!1){return e==null?e:{date_end:e.dateEnd,date_start:e.dateStart,id:e.id,image_url:e.imageUrl,name:e.name,slug:e.slug}}function Ih(e){return!(!("couponIds"in e)||e.couponIds===void 0)}function ea(e){return ta(e,!1)}function ta(e,t){return e==null?e:{couponIds:e.coupon_ids}}function na(e){return ra(e,!1)}function ra(e,t=!1){return e==null?e:{coupon_ids:e.couponIds}}var Jh={Coupon:"COUPON"};function Dh(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function Eh(e){return sn(e,!1)}function sn(e,t){return e==null?e:{name:e.name,payload:ea(e.payload)}}function ia(e){return oa(e,!1)}function oa(e,t=!1){return e==null?e:{name:e.name,payload:na(e.payload)}}var Fh={CreditCard:"CREDIT_CARD"};function zh(e){return!(!("name"in e)||e.name===void 0)}function $h(e){return un(e,!1)}function un(e,t){return e==null?e:{name:e.name}}function aa(e){return sa(e,!1)}function sa(e,t=!1){return e==null?e:{name:e.name}}var Lh={DepositAccount:"DEPOSIT_ACCOUNT"};function Hh(e){return!(!("name"in e)||e.name===void 0)}function Bh(e){return cn(e,!1)}function cn(e,t){return e==null?e:{name:e.name}}function ua(e){return ca(e,!1)}function ca(e,t=!1){return e==null?e:{name:e.name}}function dn(e){return da(e,!1)}function da(e,t){if(e==null)return e;switch(e.name){case"COUPON":return{...sn(e,!0),name:"COUPON"};case"CREDIT_CARD":return{...un(e,!0),name:"CREDIT_CARD"};case"DEPOSIT_ACCOUNT":return{...cn(e,!0),name:"DEPOSIT_ACCOUNT"};default:throw new Error(`No variant of PaymentMethodRequestApi exists with 'name=${e.name}'`)}}function yt(e){if(e!==void 0){if(e===null)return null;switch(e.name){case"COUPON":return ia(e);case"CREDIT_CARD":return aa(e);case"DEPOSIT_ACCOUNT":return ua(e);default:throw new Error(`No variant of PaymentMethodRequestApi exists with 'name=${e.name}'`)}}}function Zh(e,t=!1){return yt(e)}function Uh(e){return!(!("bookingPolicyId"in e)||e.bookingPolicyId===void 0||!("contactPerson"in e)||e.contactPerson===void 0)}function Gh(e){return fa(e,!1)}function fa(e,t){return e==null?e:{addons:e.addons==null?void 0:e.addons.map(Ho),bookingPolicyId:e.booking_policy_id,contactPerson:Xt(e.contact_person),eventMetadata:e.event_metadata==null?void 0:Je(e.event_metadata),guestsList:e.guests_list==null?void 0:e.guests_list.map(Vo),metadata:e.metadata==null?void 0:e.metadata,paymentMethods:e.payment_methods==null?void 0:e.payment_methods.map(dn),trackingId:e.tracking_id==null?void 0:e.tracking_id}}function la(e){return ma(e,!1)}function ma(e,t=!1){return e==null?e:{addons:e.addons==null?void 0:e.addons.map(Zo),booking_policy_id:e.bookingPolicyId,contact_person:Qt(e.contactPerson),event_metadata:De(e.eventMetadata),guests_list:e.guestsList==null?void 0:e.guestsList.map(Xo),metadata:e.metadata,payment_methods:e.paymentMethods==null?void 0:e.paymentMethods.map(yt),tracking_id:e.trackingId}}function qh(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("cancellationPolicies"in e)||e.cancellationPolicies===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("currency"in e)||e.currency===void 0||!("expiresAt"in e)||e.expiresAt===void 0||!("hasRoomingLists"in e)||e.hasRoomingLists===void 0||!("hotelId"in e)||e.hotelId===void 0||!("hotelRoomOffer"in e)||e.hotelRoomOffer===void 0||!("id"in e)||e.id===void 0||!("isCancellationPoliciesUpdated"in e)||e.isCancellationPoliciesUpdated===void 0||!("isPriceIncreased"in e)||e.isPriceIncreased===void 0)}function fn(e){return pa(e,!1)}function pa(e,t){return e==null?e:{addons:e.addons==null?void 0:e.addons.map(rn),adultCount:e.adult_count,cancellationPolicies:e.cancellation_policies.map(it),checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,currency:le(e.currency),expiresAt:e.expires_at==null?null:new Date(e.expires_at),hasRoomingLists:e.has_rooming_lists,hotelId:e.hotel_id,hotelRoomOffer:Me(e.hotel_room_offer),id:e.id,isCancellationPoliciesUpdated:e.is_cancellation_policies_updated,isPriceIncreased:e.is_price_increased}}function Yh(e){return ha(e,!1)}function ha(e,t=!1){return e==null?e:{addons:e.addons==null?void 0:e.addons.map(on),adult_count:e.adultCount,cancellation_policies:e.cancellationPolicies.map(ot),check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,currency:e.currency,expires_at:e.expiresAt==null?e.expiresAt:e.expiresAt.toISOString(),has_rooming_lists:e.hasRoomingLists,hotel_id:e.hotelId,hotel_room_offer:Ie(e.hotelRoomOffer),id:e.id,is_cancellation_policies_updated:e.isCancellationPoliciesUpdated,is_price_increased:e.isPriceIncreased}}function Kh(e){return!(!("hotelRoomOfferId"in e)||e.hotelRoomOfferId===void 0)}function Vh(e){return ya(e,!1)}function ya(e,t){return e==null?e:{addBreakfast:e.add_breakfast==null?void 0:e.add_breakfast,breakfastCount:e.breakfast_count==null?void 0:e.breakfast_count,hotelRoomOfferId:e.hotel_room_offer_id,lang:e.lang==null?void 0:dt(e.lang)}}function ga(e){return _a(e,!1)}function _a(e,t=!1){return e==null?e:{add_breakfast:e.addBreakfast,breakfast_count:e.breakfastCount,hotel_room_offer_id:e.hotelRoomOfferId,lang:e.lang}}function Wh(e){return!0}function Oa(e){return Aa(e,!1)}function Aa(e,t){return e==null?e:{endingBefore:e.ending_before==null?void 0:e.ending_before,limit:e.limit==null?void 0:e.limit,startingAfter:e.starting_after==null?void 0:e.starting_after,totalCount:e.total_count==null?void 0:e.total_count}}function Sa(e){return Ta(e,!1)}function Ta(e,t=!1){return e==null?e:{ending_before:e.endingBefore,limit:e.limit,starting_after:e.startingAfter,total_count:e.totalCount}}function Xh(e){return!(!("data"in e)||e.data===void 0||!("meta"in e)||e.meta===void 0)}function wa(e){return ka(e,!1)}function ka(e,t){return e==null?e:{data:e.data.map(fe),meta:Oa(e.meta)}}function Qh(e){return va(e,!1)}function va(e,t=!1){return e==null?e:{data:e.data.map($o),meta:Sa(e.meta)}}var xh={ApiError:"api_error",BadGateway:"bad_gateway",InternalServerError:"internal_server_error",InvalidRequestError:"invalid_request_error",RateLimitError:"rate_limit_error",ResourceGone:"resource_gone",ResourceNotFound:"resource_not_found",Unauthorized:"unauthorized",ValidationError:"validation_error"};function jh(e){return!(!("statusCode"in e)||e.statusCode===void 0)}function ey(e){return Ra(e,!1)}function Ra(e,t){return e==null?e:{documentationUrl:e.documentation_url==null?void 0:e.documentation_url,error:e.error==null?void 0:e.error,message:e.message==null?void 0:e.message,statusCode:e.statusCode,type:e.type==null?void 0:e.type}}function ty(e){return Na(e,!1)}function Na(e,t=!1){return e==null?e:{documentation_url:e.documentationUrl,error:e.error,message:e.message,statusCode:e.statusCode,type:e.type}}function ny(e){return!(!("rating"in e)||e.rating===void 0)}function ln(e){return Pa(e,!1)}function Pa(e,t){return e==null?e:{category:e.category==null?void 0:e.category,rating:e.rating}}function mn(e){return Ca(e,!1)}function Ca(e,t=!1){return e==null?e:{category:e.category,rating:e.rating}}function ry(e){return!0}function pn(e){return ba(e,!1)}function ba(e,t){return e==null?e:{count:e.count==null?void 0:e.count,highres:e.highres==null?void 0:e.highres,lowres:e.lowres==null?void 0:e.lowres,prefix:e.prefix==null?void 0:e.prefix,suffix:e.suffix==null?void 0:e.suffix,thumb:e.thumb==null?void 0:e.thumb}}function hn(e){return Ma(e,!1)}function Ma(e,t=!1){return e==null?e:{count:e.count,highres:e.highres,lowres:e.lowres,prefix:e.prefix,suffix:e.suffix,thumb:e.thumb}}function iy(e){return!0}function Ia(e){return Ja(e,!1)}function Ja(e,t){return e==null?e:{driving:e.driving==null?void 0:e.driving,transit:e.transit==null?void 0:e.transit,walking:e.walking==null?void 0:e.walking}}function Da(e){return Ea(e,!1)}function Ea(e,t=!1){return e==null?e:{driving:e.driving,transit:e.transit,walking:e.walking}}function oy(e){return!(!("name"in e)||e.name===void 0)}function yn(e){return Fa(e,!1)}function Fa(e,t){return e==null?e:{description:e.description==null?void 0:e.description,name:e.name,travelTimes:e.travel_times==null?void 0:Ia(e.travel_times)}}function gn(e){return za(e,!1)}function za(e,t=!1){return e==null?e:{description:e.description,name:e.name,travel_times:Da(e.travelTimes)}}function ay(e){return!(!("id"in e)||e.id===void 0||!("latitude"in e)||e.latitude===void 0||!("longitude"in e)||e.longitude===void 0||!("name"in e)||e.name===void 0||!("timezone"in e)||e.timezone===void 0)}function $a(e){return La(e,!1)}function La(e,t){return e==null?e:{address:e.address==null?void 0:e.address,address2:e.address2==null?void 0:e.address2,amenities:e.amenities==null?void 0:Gt(e.amenities),checkInTime:e.check_in_time==null?void 0:e.check_in_time,checkOutTime:e.check_out_time==null?void 0:e.check_out_time,city:e.city==null?void 0:e.city,country:e.country==null?void 0:e.country,countryCode:e.country_code==null?void 0:e.country_code,currency:e.currency==null?void 0:le(e.currency),description:e.description==null?void 0:e.description,distance:e.distance==null?void 0:e.distance,email:e.email==null?void 0:e.email,fax:e.fax==null?void 0:e.fax,hotelImages:e.hotel_images==null?void 0:e.hotel_images.map(be),hotelReviewRatings:e.hotel_review_ratings==null?void 0:e.hotel_review_ratings.map(ln),id:e.id,images:e.images==null?void 0:pn(e.images),latitude:e.latitude,longitude:e.longitude,name:e.name,phone:e.phone==null?void 0:e.phone,policy:e.policy==null?void 0:e.policy,postalCode:e.postal_code==null?void 0:e.postal_code,rating:e.rating==null?void 0:e.rating,reviewCount:e.review_count==null?void 0:e.review_count,state:e.state==null?void 0:e.state,taId:e.ta_id==null?void 0:e.ta_id,timezone:e.timezone,venues:e.venues==null?void 0:e.venues.map(yn),website:e.website==null?void 0:e.website}}function sy(e){return Ha(e,!1)}function Ha(e,t=!1){return e==null?e:{address:e.address,address2:e.address2,amenities:qt(e.amenities),check_in_time:e.checkInTime,check_out_time:e.checkOutTime,city:e.city,country:e.country,country_code:e.countryCode,currency:e.currency,description:e.description,distance:e.distance,email:e.email,fax:e.fax,hotel_images:e.hotelImages==null?void 0:e.hotelImages.map(Be),hotel_review_ratings:e.hotelReviewRatings==null?void 0:e.hotelReviewRatings.map(mn),id:e.id,images:hn(e.images),latitude:e.latitude,longitude:e.longitude,name:e.name,phone:e.phone,policy:e.policy,postal_code:e.postalCode,rating:e.rating,review_count:e.reviewCount,state:e.state,ta_id:e.taId,timezone:e.timezone,venues:e.venues==null?void 0:e.venues.map(gn),website:e.website}}function uy(e){return!(!("hotelImages"in e)||e.hotelImages===void 0||!("id"in e)||e.id===void 0||!("latitude"in e)||e.latitude===void 0||!("longitude"in e)||e.longitude===void 0||!("name"in e)||e.name===void 0||!("timezone"in e)||e.timezone===void 0||!("hotelRoomOffers"in e)||e.hotelRoomOffers===void 0)}function Ba(e){return Za(e,!1)}function Za(e,t){return e==null?e:{address:e.address==null?void 0:e.address,address2:e.address2==null?void 0:e.address2,amenities:e.amenities==null?void 0:Gt(e.amenities),checkInTime:e.check_in_time==null?void 0:e.check_in_time,checkOutTime:e.check_out_time==null?void 0:e.check_out_time,city:e.city==null?void 0:e.city,country:e.country==null?void 0:e.country,countryCode:e.country_code==null?void 0:e.country_code,currency:e.currency==null?void 0:le(e.currency),description:e.description==null?void 0:e.description,distance:e.distance==null?void 0:e.distance,email:e.email==null?void 0:e.email,fax:e.fax==null?void 0:e.fax,hotelImages:e.hotel_images.map(be),hotelReviewRatings:e.hotel_review_ratings==null?void 0:e.hotel_review_ratings.map(ln),id:e.id,images:e.images==null?void 0:pn(e.images),latitude:e.latitude,longitude:e.longitude,name:e.name,phone:e.phone==null?void 0:e.phone,policy:e.policy==null?void 0:e.policy,postalCode:e.postal_code==null?void 0:e.postal_code,rating:e.rating==null?void 0:e.rating,reviewCount:e.review_count==null?void 0:e.review_count,state:e.state==null?void 0:e.state,taId:e.ta_id==null?void 0:e.ta_id,timezone:e.timezone,venues:e.venues==null?void 0:e.venues.map(yn),website:e.website==null?void 0:e.website,hotelRoomOffers:e.hotel_room_offers.map(Me),tags:e.tags==null?void 0:e.tags.map(Vt)}}function Ua(e){return Ga(e,!1)}function Ga(e,t=!1){return e==null?e:{address:e.address,address2:e.address2,amenities:qt(e.amenities),check_in_time:e.checkInTime,check_out_time:e.checkOutTime,city:e.city,country:e.country,country_code:e.countryCode,currency:e.currency,description:e.description,distance:e.distance,email:e.email,fax:e.fax,hotel_images:e.hotelImages.map(Be),hotel_review_ratings:e.hotelReviewRatings==null?void 0:e.hotelReviewRatings.map(mn),id:e.id,images:hn(e.images),latitude:e.latitude,longitude:e.longitude,name:e.name,phone:e.phone,policy:e.policy,postal_code:e.postalCode,rating:e.rating,review_count:e.reviewCount,state:e.state,ta_id:e.taId,timezone:e.timezone,venues:e.venues==null?void 0:e.venues.map(gn),website:e.website,hotel_room_offers:e.hotelRoomOffers.map(Ie),tags:e.tags==null?void 0:e.tags.map(Wt)}}function cy(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("createdAt"in e)||e.createdAt===void 0||!("id"in e)||e.id===void 0||!("latitude"in e)||e.latitude===void 0||!("longitude"in e)||e.longitude===void 0||!("roomCount"in e)||e.roomCount===void 0||!("sourceMarket"in e)||e.sourceMarket===void 0)}function _n(e){return qa(e,!1)}function qa(e,t){return e==null?e:{address:e.address==null?void 0:e.address,adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,createdAt:e.created_at,eventMetadata:e.event_metadata==null?void 0:Je(e.event_metadata),id:e.id,latitude:e.latitude,longitude:e.longitude,roomCount:e.room_count,sourceMarket:He(e.source_market)}}function dy(e){return Ya(e,!1)}function Ya(e,t=!1){return e==null?e:{address:e.address,adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,created_at:e.createdAt,event_metadata:De(e.eventMetadata),id:e.id,latitude:e.latitude,longitude:e.longitude,room_count:e.roomCount,source_market:e.sourceMarket}}function fy(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("roomCount"in e)||e.roomCount===void 0)}function ly(e){return Ka(e,!1)}function Ka(e,t){return e==null?e:{address:e.address==null?void 0:e.address,adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,eventMetadata:e.event_metadata==null?void 0:Je(e.event_metadata),latitude:e.latitude==null?void 0:e.latitude,longitude:e.longitude==null?void 0:e.longitude,roomCount:e.room_count}}function Va(e){return Wa(e,!1)}function Wa(e,t=!1){return e==null?e:{address:e.address,adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,event_metadata:De(e.eventMetadata),latitude:e.latitude,longitude:e.longitude,room_count:e.roomCount}}function my(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("currency"in e)||e.currency===void 0||!("hotelOffers"in e)||e.hotelOffers===void 0)}function Xa(e){return Qa(e,!1)}function Qa(e,t){return e==null?e:{adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,currency:le(e.currency),hotelOffers:e.hotel_offers.map(Ba),priceHistogram:e.price_histogram==null?void 0:e.price_histogram,priceMax:e.price_max==null?void 0:e.price_max,priceMin:e.price_min==null?void 0:e.price_min}}function xa(e){return ja(e,!1)}function ja(e,t=!1){return e==null?e:{adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,currency:e.currency,hotel_offers:e.hotelOffers.map(Ua),price_histogram:e.priceHistogram,price_max:e.priceMax,price_min:e.priceMin}}var gt={Complete:"COMPLETE",InProgress:"IN_PROGRESS"};function py(e){for(const t in gt)if(Object.prototype.hasOwnProperty.call(gt,t)&>[t]===e)return!0;return!1}function es(e){return ts(e,!1)}function ts(e,t){return e}function hy(e){return e}function yy(e,t){return e}function gy(e){return!(!("status"in e)||e.status===void 0)}function On(e){return ns(e,!1)}function ns(e,t){return e==null?e:{endingBefore:e.ending_before==null?void 0:e.ending_before,limit:e.limit==null?void 0:e.limit,startingAfter:e.starting_after==null?void 0:e.starting_after,totalCount:e.total_count==null?void 0:e.total_count,status:es(e.status)}}function An(e){return rs(e,!1)}function rs(e,t=!1){return e==null?e:{ending_before:e.endingBefore,limit:e.limit,starting_after:e.startingAfter,total_count:e.totalCount,status:e.status}}function _y(e){return!(!("data"in e)||e.data===void 0||!("meta"in e)||e.meta===void 0)}function is(e){return os(e,!1)}function os(e,t){return e==null?e:{data:Xa(e.data),event:e.event==null?void 0:mt(e.event),meta:On(e.meta)}}function Oy(e){return as(e,!1)}function as(e,t=!1){return e==null?e:{data:xa(e.data),event:pt(e.event),meta:An(e.meta)}}function Ay(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("currency"in e)||e.currency===void 0||!("hotelId"in e)||e.hotelId===void 0||!("hotelRoomOffer"in e)||e.hotelRoomOffer===void 0)}function ss(e){return us(e,!1)}function us(e,t){return e==null?e:{adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,currency:le(e.currency),hotelId:e.hotel_id,hotelRoomOffer:Me(e.hotel_room_offer)}}function Sy(e){return cs(e,!1)}function cs(e,t=!1){return e==null?e:{adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,currency:e.currency,hotel_id:e.hotelId,hotel_room_offer:Ie(e.hotelRoomOffer)}}function Ty(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("hotelId"in e)||e.hotelId===void 0||!("roomCount"in e)||e.roomCount===void 0||!("createdAt"in e)||e.createdAt===void 0||!("id"in e)||e.id===void 0||!("sourceMarket"in e)||e.sourceMarket===void 0)}function Sn(e){return ds(e,!1)}function ds(e,t){return e==null?e:{adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,eventMetadata:e.event_metadata==null?void 0:Je(e.event_metadata),hotelId:e.hotel_id,roomCount:e.room_count,createdAt:e.created_at,id:e.id,sourceMarket:He(e.source_market)}}function wy(e){return fs(e,!1)}function fs(e,t=!1){return e==null?e:{adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,event_metadata:De(e.eventMetadata),hotel_id:e.hotelId,room_count:e.roomCount,created_at:e.createdAt,id:e.id,source_market:e.sourceMarket}}function ky(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("hotelId"in e)||e.hotelId===void 0||!("roomCount"in e)||e.roomCount===void 0)}function vy(e){return ls(e,!1)}function ls(e,t){return e==null?e:{adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,eventMetadata:e.event_metadata==null?void 0:Je(e.event_metadata),hotelId:e.hotel_id,roomCount:e.room_count}}function ms(e){return ps(e,!1)}function ps(e,t=!1){return e==null?e:{adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,event_metadata:De(e.eventMetadata),hotel_id:e.hotelId,room_count:e.roomCount}}function Ry(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("currency"in e)||e.currency===void 0||!("hotelId"in e)||e.hotelId===void 0||!("hotelRoomOffers"in e)||e.hotelRoomOffers===void 0||!("hotelTimezone"in e)||e.hotelTimezone===void 0)}function hs(e){return ys(e,!1)}function ys(e,t){return e==null?e:{adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,currency:le(e.currency),hotelId:e.hotel_id,hotelRoomOffers:e.hotel_room_offers.map(Me),hotelTimezone:e.hotel_timezone}}function gs(e){return _s(e,!1)}function _s(e,t=!1){return e==null?e:{adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,currency:e.currency,hotel_id:e.hotelId,hotel_room_offers:e.hotelRoomOffers.map(Ie),hotel_timezone:e.hotelTimezone}}function Ny(e){return!(!("data"in e)||e.data===void 0||!("meta"in e)||e.meta===void 0)}function Os(e){return As(e,!1)}function As(e,t){return e==null?e:{data:hs(e.data),event:e.event==null?void 0:mt(e.event),meta:On(e.meta)}}function Py(e){return Ss(e,!1)}function Ss(e,t=!1){return e==null?e:{data:gs(e.data),event:pt(e.event),meta:An(e.meta)}}function Cy(e){return!(!("count"in e)||e.count===void 0||!("hotelRoomOfferId"in e)||e.hotelRoomOfferId===void 0)}function Ts(e){return ws(e,!1)}function ws(e,t){return e==null?e:{breakfastCount:e.breakfast_count==null?void 0:e.breakfast_count,count:e.count,hotelRoomOfferId:e.hotel_room_offer_id}}function ks(e){return vs(e,!1)}function vs(e,t=!1){return e==null?e:{breakfast_count:e.breakfastCount,count:e.count,hotel_room_offer_id:e.hotelRoomOfferId}}function by(e){return!(!("currency"in e)||e.currency===void 0||!("hotelRoomOffers"in e)||e.hotelRoomOffers===void 0)}function My(e){return Rs(e,!1)}function Rs(e,t){return e==null?e:{addBreakfast:e.add_breakfast==null?void 0:e.add_breakfast,breakfastCount:e.breakfast_count==null?void 0:e.breakfast_count,currency:le(e.currency),hotelRoomOffers:e.hotel_room_offers.map(Ts),lang:e.lang==null?void 0:dt(e.lang)}}function Ns(e){return Ps(e,!1)}function Ps(e,t=!1){return e==null?e:{add_breakfast:e.addBreakfast,breakfast_count:e.breakfastCount,currency:e.currency,hotel_room_offers:e.hotelRoomOffers.map(ks),lang:e.lang}}function Iy(e){return!(!("fullname"in e)||e.fullname===void 0||!("hotelRoomingListId"in e)||e.hotelRoomingListId===void 0)}function Jy(e){return Cs(e,!1)}function Cs(e,t){return e==null?e:{fullname:e.fullname,hotelRoomingListId:e.hotel_rooming_list_id}}function bs(e){return Ms(e,!1)}function Ms(e,t=!1){return e==null?e:{fullname:e.fullname,hotel_rooming_list_id:e.hotelRoomingListId}}function Dy(e){return!(!("fullname"in e)||e.fullname===void 0)}function Ey(e){return Is(e,!1)}function Is(e,t){return e==null?e:{fullname:e.fullname}}function Js(e){return Ds(e,!1)}function Ds(e,t=!1){return e==null?e:{fullname:e.fullname}}function Fy(e){return!(!("paymentMethods"in e)||e.paymentMethods===void 0)}function zy(e){return Es(e,!1)}function Es(e,t){return e==null?e:{paymentMethods:e.payment_methods.map(dn)}}function Fs(e){return zs(e,!1)}function zs(e,t=!1){return e==null?e:{payment_methods:e.paymentMethods.map(yt)}}var $y={AddOrRemoveNights:"add_or_remove_nights",AddOrRemovePerson:"add_or_remove_person",ChangeDates:"change_dates",ChangeGuestName:"change_guest_name",EarlyCheckIn:"early_check_in",EarlyCheckInLateCheckOut:"early_check_in_late_check_out",LateCheckOut:"late_check_out",Other:"other",SpecialRequest:"special_request"};function Ly(e){return!(!("message"in e)||e.message===void 0||!("requestType"in e)||e.requestType===void 0)}function Hy(e){return $s(e,!1)}function $s(e,t){return e==null?e:{message:e.message,requestType:e.request_type}}function Ls(e){return Hs(e,!1)}function Hs(e,t=!1){return e==null?e:{message:e.message,request_type:e.requestType}}var Bs=class extends ue{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new B("id","Required parameter requestParameters.id was null or undefined when calling getV1BookingPolicy.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/booking_policies/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:E(n,I.Snake)},t);return new q(i,a=>fn(a))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}async paymentMethodsRaw(e,t){if(e.id===null||e.id===void 0)throw new B("id","Required parameter requestParameters.id was null or undefined when calling getV1BookingPolicyIdPaymentMethods.");const n={};e.couponCodes&&(n.coupon_codes=e.couponCodes);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/booking_policies/{id}/payment_methods".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:E(n,I.Snake)},t);return new q(i,a=>a.map(ci))}async paymentMethods(e,t){return await(await this.paymentMethodsRaw(e,t)).value()}async createRaw(e,t){const n={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/booking_policies",method:"POST",headers:r,query:E(n,I.Snake),body:E(ga(e.bookingPoliciesCreateApi),I.Snake)},t);return new q(i,a=>fn(a))}async create(e={},t){return await(await this.createRaw(e,t)).value()}},Zs=class extends ue{async deleteRaw(e,t){if(e.token===null||e.token===void 0)throw new B("token","Required parameter requestParameters.token was null or undefined when calling deleteV1BookingsToken.");const n=await this.request({path:"/v1/bookings/{token}".replace("{token}",encodeURIComponent(String(e.token))),method:"DELETE",headers:{},query:E({},I.Snake)},t);return new q(n,r=>fe(r))}async delete(e,t){return await(await this.deleteRaw(e,t)).value()}async listRaw(e,t){const n={};e.endingBefore!==void 0&&(n.ending_before=e.endingBefore),e.filterByCheckInDate!==void 0&&(n.filter_by_check_in_date=e.filterByCheckInDate),e.filterByLastStatusUpdatedAt!==void 0&&(n.filter_by_last_status_updated_at=e.filterByLastStatusUpdatedAt),e.filterByMetadata!==void 0&&(n.filter_by_metadata=e.filterByMetadata),e.filterByStatus!==void 0&&(n.filter_by_status=e.filterByStatus),e.limit!==void 0&&(n.limit=e.limit),e.sortBy!==void 0&&(n.sort_by=e.sortBy),e.sortByOrder!==void 0&&(n.sort_by_order=e.sortByOrder),e.startingAfter!==void 0&&(n.starting_after=e.startingAfter);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings",method:"GET",headers:r,query:E(n,I.Snake)},t);return new q(i,a=>wa(a))}async list(e={},t){return await(await this.listRaw(e,t)).value()}async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new B("id","Required parameter requestParameters.id was null or undefined when calling getV1BookingsId.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:E(n,I.Snake)},t);return new q(i,a=>fe(a))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}async certificateRaw(e,t){if(e.token===null||e.token===void 0)throw new B("token","Required parameter requestParameters.token was null or undefined when calling getV1BookingsTokenCertificate.");if(e.customerName===null||e.customerName===void 0)throw new B("customerName","Required parameter requestParameters.customerName was null or undefined when calling getV1BookingsTokenCertificate.");const n={};e.customerName!==void 0&&(n.customer_name=e.customerName),e.locale!==void 0&&(n.locale=e.locale);const r=await this.request({path:"/v1/bookings/{token}/certificate".replace("{token}",encodeURIComponent(String(e.token))),method:"GET",headers:{},query:E(n,I.Snake)},t);return new Zr(r)}async certificate(e,t){await this.certificateRaw(e,t)}async retrievePublicRaw(e,t){if(e.token===null||e.token===void 0)throw new B("token","Required parameter requestParameters.token was null or undefined when calling getV1BookingsTokenPublic.");const n=await this.request({path:"/v1/bookings/{token}/public".replace("{token}",encodeURIComponent(String(e.token))),method:"GET",headers:{},query:E({},I.Snake)},t);return new q(n,r=>fe(r))}async retrievePublic(e,t){return await(await this.retrievePublicRaw(e,t)).value()}async createRaw(e,t){const n={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings",method:"POST",headers:r,query:E(n,I.Snake),body:E(la(e.bookingCreateApi),I.Snake)},t);return new q(i,a=>fe(a))}async create(e={},t){return await(await this.createRaw(e,t)).value()}async couponChargeRaw(e,t){if(e.couponId===null||e.couponId===void 0)throw new B("couponId","Required parameter requestParameters.couponId was null or undefined when calling postV1BookingsIdCouponsCouponIdCharge.");if(e.id===null||e.id===void 0)throw new B("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdCouponsCouponIdCharge.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings/{id}/coupons/{coupon_id}/charge".replace("{coupon_id}",encodeURIComponent(String(e.couponId))).replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:r,query:E(n,I.Snake)},t);return new q(i,a=>fe(a))}async couponCharge(e,t){return await(await this.couponChargeRaw(e,t)).value()}async paylaterRaw(e,t){if(e.id===null||e.id===void 0)throw new B("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdPayLater.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings/{id}/pay-later".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:r,query:E(n,I.Snake)},t);return new q(i,a=>fe(a))}async paylater(e,t){return await(await this.paylaterRaw(e,t)).value()}async confirmpaylaterRaw(e,t){if(e.id===null||e.id===void 0)throw new B("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdPayLaterConfirm.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings/{id}/pay-later/confirm".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:r,query:E(n,I.Snake)},t);return new q(i,a=>fe(a))}async confirmpaylater(e,t){return await(await this.confirmpaylaterRaw(e,t)).value()}async confirmRaw(e,t){if(e.id===null||e.id===void 0)throw new B("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdconfirm.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings/{id}/confirm".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:r,query:E(n,I.Snake)},t);return new q(i,a=>fe(a))}async confirm(e,t){return await(await this.confirmRaw(e,t)).value()}async submitRequestRaw(e,t){if(e.token===null||e.token===void 0)throw new B("token","Required parameter requestParameters.token was null or undefined when calling postV1BookingsTokenRequest.");const n={},r={};r["Content-Type"]="application/json";const i=await this.request({path:"/v1/bookings/{token}/request".replace("{token}",encodeURIComponent(String(e.token))),method:"POST",headers:r,query:E(n,I.Snake),body:E(Ls(e.requestPayload),I.Snake)},t);return new Lt(i)}async submitRequest(e,t){return await(await this.submitRequestRaw(e,t)).value()}async updatePaymentMethodsRaw(e,t){if(e.id===null||e.id===void 0)throw new B("id","Required parameter requestParameters.id was null or undefined when calling putV1BookingsIdPaymentMethods.");const n={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings/{id}/payment_methods".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:r,query:E(n,I.Snake),body:E(Fs(e.paymentMethodUpdatePayloadApi),I.Snake)},t);return new q(i,a=>fe(a))}async updatePaymentMethods(e,t){return await(await this.updatePaymentMethodsRaw(e,t)).value()}},By={CheckInDate:"check_in_date",CreatedAt:"created_at",LastStatusUpdatedAt:"last_status_updated_at"},Zy={Asc:"asc",Desc:"desc"},Us=class extends ue{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new B("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelsIdImages.");const n={};e.lang!==void 0&&(n.lang=e.lang);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotels/{id}/images".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:E(n,I.Snake)},t);return new q(i,a=>a.map(be))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}},Gs=class extends ue{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new B("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelOfferRequestsId.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_offer_requests/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:E(n,I.Snake)},t);return new q(i,a=>_n(a))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}async createRaw(e,t){const n={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_offer_requests",method:"POST",headers:r,query:E(n,I.Snake),body:E(Va(e.hotelOfferRequestCreateApi),I.Snake)},t);return new q(i,a=>_n(a))}async create(e={},t){return await(await this.createRaw(e,t)).value()}},qs=class extends ue{async listRaw(e,t){if(e.currency===null||e.currency===void 0)throw new B("currency","Required parameter requestParameters.currency was null or undefined when calling getV1HotelOffers.");if(e.hotelOfferRequestId===null||e.hotelOfferRequestId===void 0)throw new B("hotelOfferRequestId","Required parameter requestParameters.hotelOfferRequestId was null or undefined when calling getV1HotelOffers.");const n={};e.currency!==void 0&&(n.currency=e.currency),e.endingBefore!==void 0&&(n.ending_before=e.endingBefore),e.filterByPrice!==void 0&&(n.filter_by_price=e.filterByPrice),e.filterByReviewRating!==void 0&&(n.filter_by_review_rating=e.filterByReviewRating),e.filterByStar!==void 0&&(n.filter_by_star=e.filterByStar),e.hotelOfferRequestId!==void 0&&(n.hotel_offer_request_id=e.hotelOfferRequestId),e.hotelRoomOffersLimit!==void 0&&(n.hotel_room_offers_limit=e.hotelRoomOffersLimit),e.includeHotelContentDetails!==void 0&&(n.include_hotel_content_details=e.includeHotelContentDetails),e.lang!==void 0&&(n.lang=e.lang),e.limit!==void 0&&(n.limit=e.limit),e.onlyRecommendedHotelOffers!==void 0&&(n.only_recommended_hotel_offers=e.onlyRecommendedHotelOffers),e.priceHistogramStepCount!==void 0&&(n.price_histogram_step_count=e.priceHistogramStepCount),e.sortBy!==void 0&&(n.sort_by=e.sortBy),e.sortByOrder!==void 0&&(n.sort_by_order=e.sortByOrder),e.startingAfter!==void 0&&(n.starting_after=e.startingAfter);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_offers",method:"GET",headers:r,query:E(n,I.Snake)},t);return new q(i,a=>is(a))}list(e,t,n){const r=async()=>(await this.listRaw(e,n)).value(),i={type:Cn.HOTEL_SEARCH_POLLING,minCallCount:n?.minCallCount,maxCallCount:n?.maxCallCount};return t?qe(r,i,t):qe(r,i)}},Uy={Distance:"distance",Price:"price",Rating:"rating",ReviewRating:"review_rating",TopPicks:"top_picks"},Gy={Asc:"asc",Desc:"desc"},Ys=class extends ue{async deleteRaw(e,t){if(e.id===null||e.id===void 0)throw new B("id","Required parameter requestParameters.id was null or undefined when calling deleteV1HotelRoomingListGuestsTokenId.");if(e.token===null||e.token===void 0)throw new B("token","Required parameter requestParameters.token was null or undefined when calling deleteV1HotelRoomingListGuestsTokenId.");const n=await this.request({path:"/v1/hotel_rooming_list_guests/{token}/{id}".replace("{id}",encodeURIComponent(String(e.id))).replace("{token}",encodeURIComponent(String(e.token))),method:"DELETE",headers:{},query:E({},I.Snake)},t);return new Lt(n)}async delete(e,t){return await(await this.deleteRaw(e,t)).value()}async updateRaw(e,t){if(e.id===null||e.id===void 0)throw new B("id","Required parameter requestParameters.id was null or undefined when calling patchV1HotelRoomingListGuestsTokenId.");if(e.token===null||e.token===void 0)throw new B("token","Required parameter requestParameters.token was null or undefined when calling patchV1HotelRoomingListGuestsTokenId.");const n={},r={};r["Content-Type"]="application/json";const i=await this.request({path:"/v1/hotel_rooming_list_guests/{token}/{id}".replace("{id}",encodeURIComponent(String(e.id))).replace("{token}",encodeURIComponent(String(e.token))),method:"PATCH",headers:r,query:E(n,I.Snake),body:E(Js(e.hotelRoomingListGuestsUpdateApi),I.Snake)},t);return new q(i,a=>ht(a))}async update(e,t){return await(await this.updateRaw(e,t)).value()}async createRaw(e,t){if(e.token===null||e.token===void 0)throw new B("token","Required parameter requestParameters.token was null or undefined when calling postV1HotelRoomingListGuestsToken.");const n={},r={};r["Content-Type"]="application/json";const i=await this.request({path:"/v1/hotel_rooming_list_guests/{token}".replace("{token}",encodeURIComponent(String(e.token))),method:"POST",headers:r,query:E(n,I.Snake),body:E(bs(e.hotelRoomingListGuestsCreateApi),I.Snake)},t);return new q(i,a=>ht(a))}async create(e,t){return await(await this.createRaw(e,t)).value()}},Ks=class extends ue{async listRaw(e,t){if(e.token===null||e.token===void 0)throw new B("token","Required parameter requestParameters.token was null or undefined when calling getV1HotelRoomingListsToken.");const n={};e.lang!==void 0&&(n.lang=e.lang);const r=await this.request({path:"/v1/hotel_rooming_lists/{token}".replace("{token}",encodeURIComponent(String(e.token))),method:"GET",headers:{},query:E(n,I.Snake)},t);return new q(r,i=>i.map(an))}async list(e,t){return await(await this.listRaw(e,t)).value()}},Vs=class extends ue{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new B("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelRoomOffersIdImages.");const n={};e.lang!==void 0&&(n.lang=e.lang);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_room_offers/{id}/images".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:E(n,I.Snake)},t);return new q(i,a=>E(a,I.Camel))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}},Ws=class extends ue{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new B("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelRoomOfferRequestsId.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_room_offer_requests/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:E(n,I.Snake)},t);return new q(i,a=>Sn(a))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}async createRaw(e,t){const n={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_room_offer_requests",method:"POST",headers:r,query:E(n,I.Snake),body:E(ms(e.hotelRoomOfferRequestCreateApi),I.Snake)},t);return new q(i,a=>Sn(a))}async create(e={},t){return await(await this.createRaw(e,t)).value()}},Xs=class extends ue{async listRaw(e,t){if(e.currency===null||e.currency===void 0)throw new B("currency","Required parameter requestParameters.currency was null or undefined when calling getV1HotelRoomOffers.");if(e.hotelRoomOfferRequestId===null||e.hotelRoomOfferRequestId===void 0)throw new B("hotelRoomOfferRequestId","Required parameter requestParameters.hotelRoomOfferRequestId was null or undefined when calling getV1HotelRoomOffers.");const n={};e.currency!==void 0&&(n.currency=e.currency),e.hotelRoomOfferRequestId!==void 0&&(n.hotel_room_offer_request_id=e.hotelRoomOfferRequestId),e.lang!==void 0&&(n.lang=e.lang),e.limit!==void 0&&(n.limit=e.limit);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_room_offers",method:"GET",headers:r,query:E(n,I.Snake)},t);return new q(i,a=>Os(a))}list(e,t,n){const r=async()=>(await this.listRaw(e,n)).value(),i={type:Cn.HOTEL_ROOM_OFFERS,minCallCount:n?.minCallCount,maxCallCount:n?.maxCallCount};return t?qe(r,i,t):qe(r,i)}async createRaw(e,t){const n={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_room_offers",method:"POST",headers:r,query:E(n,I.Snake),body:E(Ns(e.hotelRoomOffersCreateApi),I.Snake)},t);return new q(i,a=>ss(a))}async create(e={},t){return await(await this.createRaw(e,t)).value()}},Qs=class extends ue{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new B("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelsId.");const n={};e.event!==void 0&&(n.event=e.event),e.lang!==void 0&&(n.lang=e.lang);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotels/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:E(n,I.Snake)},t);return new q(i,a=>$a(a))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}},xs=class extends Ft{documentationUrl;status;title;type;constructor(e){super(e.response,e.body?.message??`Request failed with status ${e.status}`),this.status=e.status,this.type=e.body?.type,this.title=e.body?.title,this.documentationUrl=e.body?.documentationUrl}},qy=class{async post(e){const{response:t}=e;if(t.ok)return;let n;try{n=await t.clone().json()}catch{n=void 0}throw new xs({body:n,response:t,status:t.status})}},js=e=>({bookingPolicies:new Bs(e),bookings:new Zs(e),hotelImages:new Us(e),hotelOfferRequests:new Gs(e),hotelOffers:new qs(e),hotelRoomingListGuests:new Ys(e),hotelRoomingLists:new Ks(e),hotelRoomOfferImages:new Vs(e),hotelRoomOfferRequests:new Ws(e),hotelRoomOffers:new Xs(e),hotels:new Qs(e)});function Yy(e){switch(e){case Re.CiCd:return"AUTH_TOKEN_CICD";case Re.Local:return"AUTH_TOKEN_LOCAL";case Re.Production:return"AUTH_TOKEN";case Re.Sandbox:return"AUTH_TOKEN_SANDBOX";case Re.Staging:return"AUTH_TOKEN_STAGING";case void 0:default:return"AUTH_TOKEN"}}function eu(e){return!!(typeof document<"u"&&document?.cookie&&document.cookie.split(";").find(t=>t.includes(Yy(e))))}var Ky=class{config;constructor(e){this.config=e}async pre(e){return e.init.mode="cors",eu(this.config.apiEnvironment)&&(e.init.credentials="include"),e}},Vy=class{config;constructor(e){this.config=e}async pre(e){return eu(this.config.apiEnvironment)&&(e.init.headers={...e.init.headers,"x-auth-type":"user"}),e}},Wy=class{config;apiVersionsToClient;constructor(e){if(this.config=e,!e.apiVersion||!Object.values(Pn).includes(e.apiVersion))throw new Error(`Invalid Revolugo Api Version. Possible versions are : ${JSON.stringify(Object.values(Pn))}`);let t={"x-api-key":this.config.apiKey};this.config.optionalHeaders&&(t={...t,...this.config.optionalHeaders});const n=this.config.apiEnvironment;let r=this.config.apiBaseUrl??ou[n];!this.config.apiBaseUrl&&n===Re.Local&&(r="http://127.0.0.1:3001");const i=new zt({basePath:r,fetchApi:su.default,headers:t,middleware:[new Ky(this.config),new Vy(this.config),new qy]});this.apiVersionsToClient={v1:js(i)}}get bookingPolicies(){return this.apiVersionsToClient[this.config.apiVersion].bookingPolicies}get bookings(){return this.apiVersionsToClient[this.config.apiVersion].bookings}get hotelImages(){return this.apiVersionsToClient[this.config.apiVersion].hotelImages}get hotelOfferRequests(){return this.apiVersionsToClient[this.config.apiVersion].hotelOfferRequests}get hotelOffers(){return this.apiVersionsToClient[this.config.apiVersion].hotelOffers}get hotelRoomingListGuests(){return this.apiVersionsToClient[this.config.apiVersion].hotelRoomingListGuests}get hotelRoomingLists(){return this.apiVersionsToClient[this.config.apiVersion].hotelRoomingLists}get hotelRoomOfferImages(){return this.apiVersionsToClient[this.config.apiVersion].hotelRoomOfferImages}get hotelRoomOfferRequests(){return this.apiVersionsToClient[this.config.apiVersion].hotelRoomOfferRequests}get hotelRoomOffers(){return this.apiVersionsToClient[this.config.apiVersion].hotelRoomOffers}get hotels(){return this.apiVersionsToClient[this.config.apiVersion].hotels}};o.AllowedPaymentMethodApiFromJSON=ci,o.AllowedPaymentMethodApiFromJSONTyped=di,o.AllowedPaymentMethodApiToJSON=fi,o.AllowedPaymentMethodApiToJSONTyped=yp,o.AllowedPaymentMethodCouponApiFromJSON=ip,o.AllowedPaymentMethodCouponApiFromJSONTyped=Ht,o.AllowedPaymentMethodCouponApiNameEnum=np,o.AllowedPaymentMethodCouponApiPayloadInnerErrorEnum=ep,o.AllowedPaymentMethodCouponApiPayloadInnerFromJSON=Kr,o.AllowedPaymentMethodCouponApiPayloadInnerFromJSONTyped=Vr,o.AllowedPaymentMethodCouponApiPayloadInnerToJSON=Wr,o.AllowedPaymentMethodCouponApiPayloadInnerToJSONTyped=Xr,o.AllowedPaymentMethodCouponApiToJSON=Qr,o.AllowedPaymentMethodCouponApiToJSONTyped=xr,o.AllowedPaymentMethodCreditCardApiFromJSON=sp,o.AllowedPaymentMethodCreditCardApiFromJSONTyped=Bt,o.AllowedPaymentMethodCreditCardApiNameEnum=op,o.AllowedPaymentMethodCreditCardApiToJSON=jr,o.AllowedPaymentMethodCreditCardApiToJSONTyped=ei,o.AllowedPaymentMethodDepositAccountApiFromJSON=dp,o.AllowedPaymentMethodDepositAccountApiFromJSONTyped=Zt,o.AllowedPaymentMethodDepositAccountApiNameEnum=up,o.AllowedPaymentMethodDepositAccountApiToJSON=ti,o.AllowedPaymentMethodDepositAccountApiToJSONTyped=ni,o.AllowedPaymentMethodPayLaterApiFromJSON=hp,o.AllowedPaymentMethodPayLaterApiFromJSONTyped=Ut,o.AllowedPaymentMethodPayLaterApiNameEnum=mp,o.AllowedPaymentMethodPayLaterApiPayloadFromJSON=ri,o.AllowedPaymentMethodPayLaterApiPayloadFromJSONTyped=ii,o.AllowedPaymentMethodPayLaterApiPayloadStatusEnum=fp,o.AllowedPaymentMethodPayLaterApiPayloadToJSON=oi,o.AllowedPaymentMethodPayLaterApiPayloadToJSONTyped=ai,o.AllowedPaymentMethodPayLaterApiToJSON=si,o.AllowedPaymentMethodPayLaterApiToJSONTyped=ui,o.AmenitiesApiFromJSON=Gt,o.AmenitiesApiFromJSONTyped=li,o.AmenitiesApiToJSON=qt,o.AmenitiesApiToJSONTyped=mi,o.ApiClient=Wy,o.ApiError=xs,o.BASE_PATH=Br,o.BaseAPI=ue,o.BedApiFromJSON=Op,o.BedApiFromJSONTyped=pi,o.BedApiToJSON=Ap,o.BedApiToJSONTyped=hi,o.BlobApiResponse=Ym,o.BookingApiFromJSON=fe,o.BookingApiFromJSONTyped=zo,o.BookingApiPayLaterEnum=kh,o.BookingApiStatusEnum=vh,o.BookingApiToJSON=$o,o.BookingApiToJSONTyped=Lo,o.BookingCreateApiFromJSON=Gh,o.BookingCreateApiFromJSONTyped=fa,o.BookingCreateApiGuestsListInnerFromJSON=Vo,o.BookingCreateApiGuestsListInnerFromJSONTyped=Wo,o.BookingCreateApiGuestsListInnerGuestsInnerFromJSON=Go,o.BookingCreateApiGuestsListInnerGuestsInnerFromJSONTyped=qo,o.BookingCreateApiGuestsListInnerGuestsInnerToJSON=Yo,o.BookingCreateApiGuestsListInnerGuestsInnerToJSONTyped=Ko,o.BookingCreateApiGuestsListInnerToJSON=Xo,o.BookingCreateApiGuestsListInnerToJSONTyped=Qo,o.BookingCreateApiToJSON=la,o.BookingCreateApiToJSONTyped=ma,o.BookingPolicies=Bs,o.BookingPoliciesApiFromJSON=fn,o.BookingPoliciesApiFromJSONTyped=pa,o.BookingPoliciesApiToJSON=Yh,o.BookingPoliciesApiToJSONTyped=ha,o.BookingPoliciesCreateApiFromJSON=Vh,o.BookingPoliciesCreateApiFromJSONTyped=ya,o.BookingPoliciesCreateApiToJSON=ga,o.BookingPoliciesCreateApiToJSONTyped=_a,o.Bookings=Zs,o.BookingsApiResponseFromJSON=wa,o.BookingsApiResponseFromJSONTyped=ka,o.BookingsApiResponseToJSON=Qh,o.BookingsApiResponseToJSONTyped=va,o.BookingsSortByEnum=By,o.BookingsSortByOrderEnum=Zy,o.BreakfastOption=st,o.BreakfastOptionFromJSON=vi,o.BreakfastOptionFromJSONTyped=Ri,o.BreakfastOptionToJSON=Pp,o.BreakfastOptionToJSONTyped=Cp,o.COLLECTION_FORMATS=Um,o.CancellationPolicyApiFromJSON=it,o.CancellationPolicyApiFromJSONTyped=yi,o.CancellationPolicyApiToJSON=ot,o.CancellationPolicyApiToJSONTyped=gi,o.Configuration=zt,o.ContactPersonApiFromJSON=Xt,o.ContactPersonApiFromJSONTyped=Hi,o.ContactPersonApiSalutationEnum=Vp,o.ContactPersonApiToJSON=Qt,o.ContactPersonApiToJSONTyped=Bi,o.ContactPersonOrganizationApiFromJSON=Fi,o.ContactPersonOrganizationApiFromJSONTyped=zi,o.ContactPersonOrganizationApiToJSON=$i,o.ContactPersonOrganizationApiToJSONTyped=Li,o.CountryIso2Code=ft,o.CountryIso2CodeFromJSON=lt,o.CountryIso2CodeFromJSONTyped=Ei,o.CountryIso2CodeToJSON=qp,o.CountryIso2CodeToJSONTyped=Yp,o.CouponPreviewAppliedApiFromJSON=Vm,o.CouponPreviewAppliedApiFromJSONTyped=Ur,o.CouponPreviewAppliedApiToJSON=Wm,o.CouponPreviewAppliedApiToJSONTyped=Gr,o.CouponPreviewRejectedApiErrorEnum=Xm,o.CouponPreviewRejectedApiFromJSON=xm,o.CouponPreviewRejectedApiFromJSONTyped=qr,o.CouponPreviewRejectedApiToJSON=jm,o.CouponPreviewRejectedApiToJSONTyped=Yr,o.CurrencyClient=ut,o.CurrencyClientFromJSON=le,o.CurrencyClientFromJSONTyped=Ci,o.CurrencyClientToJSON=Dp,o.CurrencyClientToJSONTyped=Ep,o.ErrorApiResponseFromJSON=ey,o.ErrorApiResponseFromJSONTyped=Ra,o.ErrorApiResponseToJSON=ty,o.ErrorApiResponseToJSONTyped=Na,o.ErrorApiResponseTypeEnum=xh,o.EventApiFromJSON=mt,o.EventApiFromJSONTyped=vo,o.EventApiToJSON=pt,o.EventApiToJSONTyped=Ro,o.EventMetadataApiFromJSON=Je,o.EventMetadataApiFromJSONTyped=xo,o.EventMetadataApiToJSON=De,o.EventMetadataApiToJSONTyped=jo,o.HotelApiFromJSON=$a,o.HotelApiFromJSONTyped=La,o.HotelApiImagesFromJSON=pn,o.HotelApiImagesFromJSONTyped=ba,o.HotelApiImagesToJSON=hn,o.HotelApiImagesToJSONTyped=Ma,o.HotelApiToJSON=sy,o.HotelApiToJSONTyped=Ha,o.HotelImageApiFromJSON=be,o.HotelImageApiFromJSONTyped=Oi,o.HotelImageApiToJSON=Be,o.HotelImageApiToJSONTyped=Ai,o.HotelImages=Us,o.HotelOfferApiFromJSON=Ba,o.HotelOfferApiFromJSONTyped=Za,o.HotelOfferApiToJSON=Ua,o.HotelOfferApiToJSONTyped=Ga,o.HotelOfferRequestApiResponseFromJSON=_n,o.HotelOfferRequestApiResponseFromJSONTyped=qa,o.HotelOfferRequestApiResponseToJSON=dy,o.HotelOfferRequestApiResponseToJSONTyped=Ya,o.HotelOfferRequestCreateApiFromJSON=ly,o.HotelOfferRequestCreateApiFromJSONTyped=Ka,o.HotelOfferRequestCreateApiToJSON=Va,o.HotelOfferRequestCreateApiToJSONTyped=Wa,o.HotelOfferRequests=Gs,o.HotelOffers=qs,o.HotelOffersApiResponseFromJSON=is,o.HotelOffersApiResponseFromJSONTyped=os,o.HotelOffersApiResponseToJSON=Oy,o.HotelOffersApiResponseToJSONTyped=as,o.HotelOffersDataApiResponseFromJSON=Xa,o.HotelOffersDataApiResponseFromJSONTyped=Qa,o.HotelOffersDataApiResponseToJSON=xa,o.HotelOffersDataApiResponseToJSONTyped=ja,o.HotelOffersSortByEnum=Uy,o.HotelOffersSortByOrderEnum=Gy,o.HotelReviewRatingApiFromJSON=ln,o.HotelReviewRatingApiFromJSONTyped=Pa,o.HotelReviewRatingApiToJSON=mn,o.HotelReviewRatingApiToJSONTyped=Ca,o.HotelRoomOfferApiFromJSON=Me,o.HotelRoomOfferApiFromJSONTyped=Ii,o.HotelRoomOfferApiHotelRoomsInnerFromJSON=Si,o.HotelRoomOfferApiHotelRoomsInnerFromJSONTyped=Ti,o.HotelRoomOfferApiHotelRoomsInnerToJSON=wi,o.HotelRoomOfferApiHotelRoomsInnerToJSONTyped=ki,o.HotelRoomOfferApiPackageTypeEnum=zp,o.HotelRoomOfferApiResponseFromJSON=ss,o.HotelRoomOfferApiResponseFromJSONTyped=us,o.HotelRoomOfferApiResponseToJSON=Sy,o.HotelRoomOfferApiResponseToJSONTyped=cs,o.HotelRoomOfferApiStayTaxesInfoEnum=$p,o.HotelRoomOfferApiToJSON=Ie,o.HotelRoomOfferApiToJSONTyped=Ji,o.HotelRoomOfferApiTypeEnum=Lp,o.HotelRoomOfferImages=Vs,o.HotelRoomOfferRequestApiResponseFromJSON=Sn,o.HotelRoomOfferRequestApiResponseFromJSONTyped=ds,o.HotelRoomOfferRequestApiResponseToJSON=wy,o.HotelRoomOfferRequestApiResponseToJSONTyped=fs,o.HotelRoomOfferRequestCreateApiFromJSON=vy,o.HotelRoomOfferRequestCreateApiFromJSONTyped=ls,o.HotelRoomOfferRequestCreateApiToJSON=ms,o.HotelRoomOfferRequestCreateApiToJSONTyped=ps,o.HotelRoomOfferRequests=Ws,o.HotelRoomOffers=Xs,o.HotelRoomOffersApiResponseFromJSON=Os,o.HotelRoomOffersApiResponseFromJSONTyped=As,o.HotelRoomOffersApiResponseToJSON=Py,o.HotelRoomOffersApiResponseToJSONTyped=Ss,o.HotelRoomOffersCreateApiFromJSON=My,o.HotelRoomOffersCreateApiFromJSONTyped=Rs,o.HotelRoomOffersCreateApiToJSON=Ns,o.HotelRoomOffersCreateApiToJSONTyped=Ps,o.HotelRoomOffersDataApiResponseFromJSON=hs,o.HotelRoomOffersDataApiResponseFromJSONTyped=ys,o.HotelRoomOffersDataApiResponseToJSON=gs,o.HotelRoomOffersDataApiResponseToJSONTyped=_s,o.HotelRoomOffersDataCreateApiFromJSON=Ts,o.HotelRoomOffersDataCreateApiFromJSONTyped=ws,o.HotelRoomOffersDataCreateApiToJSON=ks,o.HotelRoomOffersDataCreateApiToJSONTyped=vs,o.HotelRoomingListApiFromJSON=an,o.HotelRoomingListApiFromJSONTyped=Do,o.HotelRoomingListApiHotelRoomFromJSON=No,o.HotelRoomingListApiHotelRoomFromJSONTyped=Po,o.HotelRoomingListApiHotelRoomToJSON=Co,o.HotelRoomingListApiHotelRoomToJSONTyped=bo,o.HotelRoomingListApiToJSON=Eo,o.HotelRoomingListApiToJSONTyped=Fo,o.HotelRoomingListGuestApiFromJSON=ht,o.HotelRoomingListGuestApiFromJSONTyped=Mo,o.HotelRoomingListGuestApiToJSON=Io,o.HotelRoomingListGuestApiToJSONTyped=Jo,o.HotelRoomingListGuests=Ys,o.HotelRoomingListGuestsCreateApiFromJSON=Jy,o.HotelRoomingListGuestsCreateApiFromJSONTyped=Cs,o.HotelRoomingListGuestsCreateApiToJSON=bs,o.HotelRoomingListGuestsCreateApiToJSONTyped=Ms,o.HotelRoomingListGuestsUpdateApiFromJSON=Ey,o.HotelRoomingListGuestsUpdateApiFromJSONTyped=Is,o.HotelRoomingListGuestsUpdateApiToJSON=Js,o.HotelRoomingListGuestsUpdateApiToJSONTyped=Ds,o.HotelRoomingLists=Ks,o.Hotels=Qs,o.InsuranceApiFromJSON=ho,o.InsuranceApiFromJSONTyped=yo,o.InsuranceApiStatusEnum=ph,o.InsuranceApiToJSON=go,o.InsuranceApiToJSONTyped=_o,o.InvoiceApiFromJSON=Oo,o.InvoiceApiFromJSONTyped=Ao,o.InvoiceApiToJSON=So,o.InvoiceApiToJSONTyped=To,o.InvoiceApiTypeEnum=yh,o.JSONApiResponse=q,o.Locale=ct,o.LocaleFromJSON=dt,o.LocaleFromJSONTyped=Di,o.LocaleToJSON=Zp,o.LocaleToJSONTyped=Up,o.MetaPollingResponseApiFromJSON=On,o.MetaPollingResponseApiFromJSONTyped=ns,o.MetaPollingResponseApiToJSON=An,o.MetaPollingResponseApiToJSONTyped=rs,o.MetaResponseApiFromJSON=Oa,o.MetaResponseApiFromJSONTyped=Aa,o.MetaResponseApiToJSON=Sa,o.MetaResponseApiToJSONTyped=Ta,o.OrderAddonFromJSON=rn,o.OrderAddonFromJSONTyped=wo,o.OrderAddonSelectionFromJSON=Ho,o.OrderAddonSelectionFromJSONTyped=Bo,o.OrderAddonSelectionToJSON=Zo,o.OrderAddonSelectionToJSONTyped=Uo,o.OrderAddonSelectionTypeEnum=Nh,o.OrderAddonToJSON=on,o.OrderAddonToJSONTyped=ko,o.OrderAddonTypeEnum=_h,o.PaymentMethodApiFromJSON=mo,o.PaymentMethodApiFromJSONTyped=po,o.PaymentMethodApiToJSON=nn,o.PaymentMethodApiToJSONTyped=mh,o.PaymentMethodCouponApiFromJSON=jp,o.PaymentMethodCouponApiFromJSONTyped=xt,o.PaymentMethodCouponApiNameEnum=Qp,o.PaymentMethodCouponApiPayloadInnerFromJSON=Zi,o.PaymentMethodCouponApiPayloadInnerFromJSONTyped=Ui,o.PaymentMethodCouponApiPayloadInnerToJSON=Gi,o.PaymentMethodCouponApiPayloadInnerToJSONTyped=qi,o.PaymentMethodCouponApiToJSON=Yi,o.PaymentMethodCouponApiToJSONTyped=Ki,o.PaymentMethodCreditCardApiFromJSON=rh,o.PaymentMethodCreditCardApiFromJSONTyped=jt,o.PaymentMethodCreditCardApiNameEnum=th,o.PaymentMethodCreditCardApiPayloadFromJSON=Vi,o.PaymentMethodCreditCardApiPayloadFromJSONTyped=Wi,o.PaymentMethodCreditCardApiPayloadToJSON=Xi,o.PaymentMethodCreditCardApiPayloadToJSONTyped=Qi,o.PaymentMethodCreditCardApiToJSON=xi,o.PaymentMethodCreditCardApiToJSONTyped=ji,o.PaymentMethodDepositAccountApiFromJSON=sh,o.PaymentMethodDepositAccountApiFromJSONTyped=en,o.PaymentMethodDepositAccountApiNameEnum=oh,o.PaymentMethodDepositAccountApiPayloadFromJSON=eo,o.PaymentMethodDepositAccountApiPayloadFromJSONTyped=to,o.PaymentMethodDepositAccountApiPayloadToJSON=no,o.PaymentMethodDepositAccountApiPayloadToJSONTyped=ro,o.PaymentMethodDepositAccountApiToJSON=io,o.PaymentMethodDepositAccountApiToJSONTyped=oo,o.PaymentMethodPayLaterApiFromJSON=lh,o.PaymentMethodPayLaterApiFromJSONTyped=tn,o.PaymentMethodPayLaterApiNameEnum=dh,o.PaymentMethodPayLaterApiPayloadFromJSON=ao,o.PaymentMethodPayLaterApiPayloadFromJSONTyped=so,o.PaymentMethodPayLaterApiPayloadStatusEnum=uh,o.PaymentMethodPayLaterApiPayloadToJSON=uo,o.PaymentMethodPayLaterApiPayloadToJSONTyped=co,o.PaymentMethodPayLaterApiToJSON=fo,o.PaymentMethodPayLaterApiToJSONTyped=lo,o.PaymentMethodRequestApiFromJSON=dn,o.PaymentMethodRequestApiFromJSONTyped=da,o.PaymentMethodRequestApiToJSON=yt,o.PaymentMethodRequestApiToJSONTyped=Zh,o.PaymentMethodRequestCouponApiFromJSON=Eh,o.PaymentMethodRequestCouponApiFromJSONTyped=sn,o.PaymentMethodRequestCouponApiNameEnum=Jh,o.PaymentMethodRequestCouponApiToJSON=ia,o.PaymentMethodRequestCouponApiToJSONTyped=oa,o.PaymentMethodRequestCouponPayloadApiFromJSON=ea,o.PaymentMethodRequestCouponPayloadApiFromJSONTyped=ta,o.PaymentMethodRequestCouponPayloadApiToJSON=na,o.PaymentMethodRequestCouponPayloadApiToJSONTyped=ra,o.PaymentMethodRequestCreditCardApiFromJSON=$h,o.PaymentMethodRequestCreditCardApiFromJSONTyped=un,o.PaymentMethodRequestCreditCardApiNameEnum=Fh,o.PaymentMethodRequestCreditCardApiToJSON=aa,o.PaymentMethodRequestCreditCardApiToJSONTyped=sa,o.PaymentMethodRequestDepositAccountApiFromJSON=Bh,o.PaymentMethodRequestDepositAccountApiFromJSONTyped=cn,o.PaymentMethodRequestDepositAccountApiNameEnum=Lh,o.PaymentMethodRequestDepositAccountApiToJSON=ua,o.PaymentMethodRequestDepositAccountApiToJSONTyped=ca,o.PaymentMethodUpdatePayloadApiFromJSON=zy,o.PaymentMethodUpdatePayloadApiFromJSONTyped=Es,o.PaymentMethodUpdatePayloadApiToJSON=Fs,o.PaymentMethodUpdatePayloadApiToJSONTyped=zs,o.PollerStatus=gt,o.PollerStatusFromJSON=es,o.PollerStatusFromJSONTyped=ts,o.PollerStatusToJSON=hy,o.PollerStatusToJSONTyped=yy,o.RequestPayloadFromJSON=Hy,o.RequestPayloadFromJSONTyped=$s,o.RequestPayloadRequestTypeEnum=$y,o.RequestPayloadToJSON=Ls,o.RequestPayloadToJSONTyped=Hs,o.RequiredError=B,o.ResponseError=Ft,o.SourceMarket=at,o.SourceMarketFromJSON=He,o.SourceMarketFromJSONTyped=_i,o.SourceMarketToJSON=wp,o.SourceMarketToJSONTyped=kp,o.TagApiFromJSON=Vt,o.TagApiFromJSONTyped=bi,o.TagApiToJSON=Wt,o.TagApiToJSONTyped=Mi,o.TaxApiFromJSON=Yt,o.TaxApiFromJSONTyped=Ni,o.TaxApiTaxFrequencyEnum=bp,o.TaxApiTaxModeEnum=Mp,o.TaxApiToJSON=Kt,o.TaxApiToJSONTyped=Pi,o.TextApiResponse=Lt,o.TravelTimesApiFromJSON=yn,o.TravelTimesApiFromJSONTyped=Fa,o.TravelTimesApiToJSON=gn,o.TravelTimesApiToJSONTyped=za,o.TravelTimesApiTravelTimesFromJSON=Ia,o.TravelTimesApiTravelTimesFromJSONTyped=Ja,o.TravelTimesApiTravelTimesToJSON=Da,o.TravelTimesApiTravelTimesToJSONTyped=Ea,o.VoidApiResponse=Zr,o.canConsumeForm=qm,o.exists=Gm,o.instanceOfAllowedPaymentMethodCouponApi=rp,o.instanceOfAllowedPaymentMethodCouponApiPayloadInner=tp,o.instanceOfAllowedPaymentMethodCreditCardApi=ap,o.instanceOfAllowedPaymentMethodDepositAccountApi=cp,o.instanceOfAllowedPaymentMethodPayLaterApi=pp,o.instanceOfAllowedPaymentMethodPayLaterApiPayload=lp,o.instanceOfAmenitiesApi=gp,o.instanceOfBedApi=_p,o.instanceOfBookingApi=Rh,o.instanceOfBookingCreateApi=Uh,o.instanceOfBookingCreateApiGuestsListInner=bh,o.instanceOfBookingCreateApiGuestsListInnerGuestsInner=Ch,o.instanceOfBookingPoliciesApi=qh,o.instanceOfBookingPoliciesCreateApi=Kh,o.instanceOfBookingsApiResponse=Xh,o.instanceOfBreakfastOption=Np,o.instanceOfCancellationPolicyApi=Sp,o.instanceOfContactPersonApi=Wp,o.instanceOfContactPersonOrganizationApi=Kp,o.instanceOfCountryIso2Code=Gp,o.instanceOfCouponPreviewAppliedApi=Km,o.instanceOfCouponPreviewRejectedApi=Qm,o.instanceOfCurrencyClient=Jp,o.instanceOfErrorApiResponse=jh,o.instanceOfEventApi=Ah,o.instanceOfEventMetadataApi=Mh,o.instanceOfHotelApi=ay,o.instanceOfHotelApiImages=ry,o.instanceOfHotelImageApi=vp,o.instanceOfHotelOfferApi=uy,o.instanceOfHotelOfferRequestApiResponse=cy,o.instanceOfHotelOfferRequestCreateApi=fy,o.instanceOfHotelOffersApiResponse=_y,o.instanceOfHotelOffersDataApiResponse=my,o.instanceOfHotelReviewRatingApi=ny,o.instanceOfHotelRoomOfferApi=Hp,o.instanceOfHotelRoomOfferApiHotelRoomsInner=Rp,o.instanceOfHotelRoomOfferApiResponse=Ay,o.instanceOfHotelRoomOfferRequestApiResponse=Ty,o.instanceOfHotelRoomOfferRequestCreateApi=ky,o.instanceOfHotelRoomOffersApiResponse=Ny,o.instanceOfHotelRoomOffersCreateApi=by,o.instanceOfHotelRoomOffersDataApiResponse=Ry,o.instanceOfHotelRoomOffersDataCreateApi=Cy,o.instanceOfHotelRoomingListApi=wh,o.instanceOfHotelRoomingListApiHotelRoom=Sh,o.instanceOfHotelRoomingListGuestApi=Th,o.instanceOfHotelRoomingListGuestsCreateApi=Iy,o.instanceOfHotelRoomingListGuestsUpdateApi=Dy,o.instanceOfInsuranceApi=hh,o.instanceOfInvoiceApi=gh,o.instanceOfLocale=Bp,o.instanceOfMetaPollingResponseApi=gy,o.instanceOfMetaResponseApi=Wh,o.instanceOfOrderAddon=Oh,o.instanceOfOrderAddonSelection=Ph,o.instanceOfPaymentMethodCouponApi=xp,o.instanceOfPaymentMethodCouponApiPayloadInner=Xp,o.instanceOfPaymentMethodCreditCardApi=nh,o.instanceOfPaymentMethodCreditCardApiPayload=eh,o.instanceOfPaymentMethodDepositAccountApi=ah,o.instanceOfPaymentMethodDepositAccountApiPayload=ih,o.instanceOfPaymentMethodPayLaterApi=fh,o.instanceOfPaymentMethodPayLaterApiPayload=ch,o.instanceOfPaymentMethodRequestCouponApi=Dh,o.instanceOfPaymentMethodRequestCouponPayloadApi=Ih,o.instanceOfPaymentMethodRequestCreditCardApi=zh,o.instanceOfPaymentMethodRequestDepositAccountApi=Hh,o.instanceOfPaymentMethodUpdatePayloadApi=Fy,o.instanceOfPollerStatus=py,o.instanceOfRequestPayload=Ly,o.instanceOfSourceMarket=Tp,o.instanceOfTagApi=Fp,o.instanceOfTaxApi=Ip,o.instanceOfTravelTimesApi=oy,o.instanceOfTravelTimesApiTravelTimes=iy,o.querystring=$t,o.v1ApiClient=js});
|
|
53
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const s of e.seen.entries()){const u=s[1];if(t===s[0]){o(s);continue}if(e.external){const c=e.external.registry.get(s[0])?.id;if(t!==s[0]&&c){o(s);continue}}if(e.metadataRegistry.get(s[0])?.id){o(s);continue}if(u.cycle){o(s);continue}if(u.count>1&&e.reused==="ref"){o(s);continue}}e.external&&(e.sharedDefsExtractedFor=e.external)}function ri(e){const t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;const n=[];for(const r of t){if(!r||typeof r!="object")return;ri(r);const i=Object.keys(r);if(i.length!==1||i[0]!=="type")return;const o=r.type;for(const s of Array.isArray(o)?o:[o]){if(typeof s!="string")return;n.includes(s)||n.push(s)}}delete e.anyOf,e.type=n.length===1?n[0]:n}var ii=new Set(["type","properties","required","additionalProperties"]),oi=["oneOf","anyOf"];function ai(e){const t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function jt(e){const t=[];for(const o of e){if(typeof o!="object"||o.type!=="object")return null;for(const s in o)if(!ii.has(s))return null;t.push(o)}const n={},r=new Set;for(const o of t){for(const s in o.properties){if(Object.prototype.hasOwnProperty.call(n,s))continue;const u=[];for(const f of t){const m=f.properties?.[s]??ai(f);m!=null&&(u.some(h=>JSON.stringify(h)===JSON.stringify(m))||u.push(m))}const c=u.length===1?u[0]:jt(u)??{allOf:u};se(n,s,c)}for(const s of o.required??[])r.add(s)}const i={type:"object",properties:n};if(r.size&&(i.required=[...r]),t.every(o=>o.additionalProperties===!1))i.additionalProperties=!1;else{const o=[];for(const s of t){const u=ai(s);u&&!o.some(c=>JSON.stringify(c)===JSON.stringify(u))&&o.push(u)}o.length===1?i.additionalProperties=o[0]:o.length>1&&(i.additionalProperties={allOf:o})}return i}function hm(e){const t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(const i of ii)if(i in e)return;const n=t.filter(i=>oi.some(o=>Array.isArray(i[o])));let r=null;if(!n.length)r=jt(t);else{const i=n[0],o=oi.find(c=>Array.isArray(i[c]));if(Object.keys(i).length!==1)return;const s=t.filter(c=>c!==i),u=i[o].map(c=>jt([...s,c]));if(u.some(c=>!c))return;r={[o]:u}}r&&(delete e.allOf,Ge(e,r))}function si(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=u=>{const c=e.seen.get(u);if(c.ref===null)return;const f=c.def??c.schema,m={...f},h=c.ref;if(c.ref=null,h){r(h);const O=e.seen.get(h),T=O.schema;if(T.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(f.allOf=f.allOf??[],f.allOf.push(T)):Ge(f,T),Ge(f,m),u._zod.parent===h)for(const y in f)y==="$ref"||y==="allOf"||y in m||delete f[y];if(T.$ref&&O.def)for(const y in f)y==="$ref"||y==="allOf"||y in O.def&&JSON.stringify(f[y])===JSON.stringify(O.def[y])&&delete f[y]}const p=u._zod.parent;if(p&&p!==h){r(p);const O=e.seen.get(p);if(O?.schema.$ref&&(f.$ref=O.schema.$ref,O.def))for(const T in f)T==="$ref"||T==="allOf"||T in O.def&&JSON.stringify(f[T])===JSON.stringify(O.def[T])&&delete f[T]}e.override({zodSchema:u,jsonSchema:f,path:c.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(const u of[...e.seen.entries()].reverse())r(u[0]);if(e.target!=="openapi-3.0")for(const u of e.seen.entries())ri(u[1].def??u[1].schema);for(const u of e.deferred)u();if(e.intersections.length){const u=new Map;for(const c of e.seen.values())for(const f of[c.schema,c.def]){const m=f?.allOf;if(!Array.isArray(m))continue;const h=u.get(m);h?h.push(f):u.set(m,[f])}for(const c of e.intersections)for(const f of u.get(c)??[])hm(f)}}const i={};if(e.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const u=e.external.registry.get(t)?.id;if(!u)throw new Error("Schema is missing an `id` property");i.$id=e.external.uri(u)}Ge(i,n.defId?n.schema:n.def??n.schema);const o=e.metadataRegistry.get(t)?.id;o!==void 0&&i.id===o&&delete i.id;const s=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(const u of e.seen.entries()){const c=u[1];c.def&&c.defId&&(c.def.id===c.defId&&delete c.def.id,se(s,c.defId,c.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?i.$defs=s:i.definitions=s);try{const u=JSON.parse(JSON.stringify(i));return Object.defineProperty(u,"~standard",{value:{...t["~standard"],jsonSchema:{input:ct(t,"input",e.processors),output:ct(t,"output",e.processors)}},enumerable:!1,writable:!1}),u}catch{throw new Error("Error converting schema to JSON.")}}function ie(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return ie(r.element,n);if(r.type==="set")return ie(r.valueType,n);if(r.type==="lazy")return ie(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault"||r.type==="catch")return ie(r.innerType,n);if(r.type==="intersection")return ie(r.left,n)||ie(r.right,n);if(r.type==="record"||r.type==="map")return ie(r.keyType,n)||ie(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:ie(r.in,n)||ie(r.out,n);if(r.type==="object"){for(const i in r.shape)if(ie(r.shape[i],n))return!0;return!1}if(r.type==="union"){for(const i of r.options)if(ie(i,n))return!0;return!1}if(r.type==="tuple"){for(const i of r.items)if(ie(i,n))return!0;return!!(r.rest&&ie(r.rest,n))}return!1}var ym=(e,t={})=>n=>{const r=ei({...n,processors:t});return te(e,r),ni(r,e),si(r,e)},ct=(e,t,n={})=>r=>{const{libraryOptions:i,target:o}=r??{},s=ei({...i??{},target:o,io:t,processors:n});return te(e,s),ni(s,e),si(s,e)},gm={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},_m=(e,t,n,r)=>{const i=n;i.type="string";const{minimum:o,maximum:s,format:u,patterns:c,contentEncoding:f,laxFormat:m}=e._zod.bag;if(typeof o=="number"&&(i.minLength=o),typeof s=="number"&&(i.maxLength=s),u&&(i.format=gm[u]??u,i.format===""&&delete i.format,(u==="time"||m)&&delete i.format),f&&(i.contentEncoding=f),c&&c.size>0){const h=[...c];h.length===1?i.pattern=h[0].source:h.length>1&&(i.allOf=[...h.map(p=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},Om=(e,t,n,r)=>{const i=n,{minimum:o,maximum:s,format:u,multipleOf:c,exclusiveMaximum:f,exclusiveMinimum:m}=e._zod.bag;typeof u=="string"&&u.includes("int")?i.type="integer":i.type="number";const h=typeof m=="number"&&m>=(o??Number.NEGATIVE_INFINITY),p=typeof f=="number"&&f<=(s??Number.POSITIVE_INFINITY),O=t.target==="draft-04"||t.target==="openapi-3.0";h?O?(i.minimum=m,i.exclusiveMinimum=!0):i.exclusiveMinimum=m:typeof o=="number"&&(i.minimum=o),p?O?(i.maximum=f,i.exclusiveMaximum=!0):i.exclusiveMaximum=f:typeof s=="number"&&(i.maximum=s),typeof c=="number"&&(Number.isFinite(c)&&c!==0?i.multipleOf=Math.abs(c):Re(e,t,i,r,`A multipleOf divisor of ${c} cannot be represented in JSON Schema`))},Am=(e,t,n,r)=>{Re(e,t,n,r,"Symbols cannot be represented in JSON Schema")},Sm=(e,t,n,r)=>{n.not={}},Tm=(e,t,n,r)=>{},wm=(e,t,n,r)=>{const i=e._zod.def,o=ar(i.entries);if(o.length===0){n.not={};return}o.every(s=>typeof s=="number")&&(n.type="number"),o.every(s=>typeof s=="string")&&(n.type="string"),n.enum=o},vm=(e,t,n,r)=>{Re(e,t,n,r,"Custom types cannot be represented in JSON Schema")},km=(e,t,n,r)=>{Re(e,t,n,r,"Transforms cannot be represented in JSON Schema")},Rm=(e,t,n,r)=>{const i=n,o=e._zod.def,{minimum:s,maximum:u}=e._zod.bag;typeof s=="number"&&(i.minItems=s),typeof u=="number"&&(i.maxItems=u),i.type="array",i.items=te(o.element,t,{...r,path:[...r.path,"items"]})};function en(e){const t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?en(t.out):t.type==="catch"?en(t.innerType):e._zod.optin}var Nm=(e,t,n,r)=>{const i=n,o=e._zod.def,s=o.shape;if(Object.getOwnPropertySymbols(s).length&&Re(e,t,i,r,"Symbol keys cannot be represented in JSON Schema"))return;i.type="object",i.properties={};for(const f in s)se(i.properties,f,te(s[f],t,{...r,path:[...r.path,"properties",f]}));const u=new Set(Object.keys(s)),c=new Set([...u].filter(f=>{const m=o.shape[f];return t.io==="input"?en(m)===void 0:m._zod.optout===void 0}));c.size>0&&(i.required=Array.from(c)),o.catchall?._zod.def.type==="never"?i.additionalProperties=!1:o.catchall?o.catchall&&(i.additionalProperties=te(o.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(i.additionalProperties=!1)},bm=(e,t,n,r)=>{const i=e._zod.def,o=i.inclusive===!1,s=i.options.map((u,c)=>te(u,t,{...r,path:[...r.path,o?"oneOf":"anyOf",c]}));o?n.oneOf=s:n.anyOf=s},Pm=(e,t,n,r)=>{const i=e._zod.def,o=te(i.left,t,{...r,path:[...r.path,"allOf",0]}),s=te(i.right,t,{...r,path:[...r.path,"allOf",1]}),u=f=>"allOf"in f&&Object.keys(f).length===1,c=[...u(o)?o.allOf:[o],...u(s)?s.allOf:[s]];n.allOf=c,t.intersections.push(c)},Cm=(e,t,n,r)=>{const i=e._zod.def,o=te(i.innerType,t,r),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=i.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}]},Im=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const o=t.seen.get(e);o.ref=i.innerType},tn=Symbol();function ui(e,t,n,r,i){let o=!1;const s=JSON.stringify(e,(u,c)=>typeof c!="bigint"?c:(o=!0,null));return o?(Re(t,n,r,i,"BigInt defaults cannot be represented in JSON Schema"),tn):JSON.parse(s)}var Mm=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const o=t.seen.get(e);o.ref=i.innerType;const s=ui(i.defaultValue,e,t,n,r);s!==tn&&(n.default=s)},Dm=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const o=t.seen.get(e);if(o.ref=i.innerType,t.io!=="input")return;const s=ui(i.defaultValue,e,t,n,r);s!==tn&&(n._prefault=s)},Jm=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const o=t.seen.get(e);o.ref=i.innerType;let s;try{s=i.catchValue(void 0)}catch{Re(e,t,n,r,"Dynamic catch values are not supported in JSON Schema");return}n.default=s},Em=(e,t,n,r)=>{const i=e._zod.def,o=i.in._zod.traits.has("$ZodTransform"),s=t.io==="input"?o?i.out:i.in:i.out;te(s,t,r);const u=t.seen.get(e);u.ref=s},Fm=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const o=t.seen.get(e);o.ref=i.innerType,n.readOnly=!0},ci=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const o=t.seen.get(e);o.ref=i.innerType},di=new WeakSet([Object.prototype,Error.prototype]);function dt(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){const r=n(this);return Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0})}})}var zm=(e,t)=>{Ar.init(e,t),e.name="ZodError";const n=Object.getPrototypeOf(e);di.has(n)||(di.add(n),dt(n,"format",r=>i=>pd(r,i)),dt(n,"flatten",r=>i=>md(r,i)),dt(n,"addIssue",r=>i=>{r.issues.push(i),r.message=JSON.stringify(r.issues,Jt,2)}),dt(n,"addIssues",r=>i=>{r.issues.push(...i),r.message=JSON.stringify(r.issues,Jt,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},ue=g("ZodError",zm,void 0,{Parent:Error}),$m=Zt(ue),Lm=Gt(ue),Hm=et(ue),Bm=tt(ue),Um=gd(ue),Zm=_d(ue),Gm=Od(ue),qm=Ad(ue),Km=Sd(ue),Ym=Td(ue),Vm=wd(ue),Wm=vd(ue);function Xm(){me.localeError||Te(Ol())}function nn(){me.memoizer||Te({memoizer:yl()})}var j=g("ZodType",(e,t)=>(Xm(),x.init(e,t),e.def=t,e.type=t.type,e),{check(...e){const t=this.def;return this.clone(Oe(t,{checks:[...t.checks??[],...e.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Ae(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Xp(e,t))},superRefine(e,t){return this.check(Qp(e,t))},overwrite(e){return this.check(De(e))},optional(){return _i(this)},exactOptional(){return zp(this)},nullable(){return Ai(this)},nullish(){return _i(Ai(this))},nonoptional(e){return Zp(this,e)},array(){return Pp(this)},or(e){return hi([this,e])},and(e){return Jp(this,e)},transform(e){return Ti(this,Fp(e))},default(e){return Hp(this,e)},prefault(e){return Up(this,e)},catch(e){return qp(this,e)},pipe(e){return Ti(this,e)},readonly(){return Vp(this)},describe(e){const t=this.clone();return Ze.add(t,{description:e}),t},meta(...e){if(e.length===0)return Ze.get(this);const t=this.clone();return Ze.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return pr(this,"~standard",{...br(this),jsonSchema:{input:ct(this,"input"),output:ct(this,"output")}})},set"~standard"(e){Ie(this,"~standard",e)},parse:function e(t,n){return $m(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await Lm(this,t,n,{callee:e})},safeParse(e,t){return Hm(this,e,t)},async safeParseAsync(e,t){return Bm(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){Ie(this,"spa",e)},encode:function e(t,n){return Um(this,t,n,{callee:e})},decode:function e(t,n){return Zm(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await Gm(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await qm(this,t,n,{callee:e})},safeEncode(e,t){return Km(this,e,t)},safeDecode(e,t){return Ym(this,e,t)},async safeEncodeAsync(e,t){return Vm(this,e,t)},async safeDecodeAsync(e,t){return Wm(this,e,t)},toJSONSchema(e){return ym(this,{})(e)},get description(){return Ze.get(this)?.description},get _def(){return this._zod.def}}),fi=g("_ZodString",(e,t)=>{Yt.init(e,t),j.init(e,t),e._zod.processJSONSchema=(r,i,o)=>_m(e,r,i,o);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null},{regex(...e){return this.check(em(...e))},includes(...e){return this.check(rm(...e))},startsWith(...e){return this.check(im(...e))},endsWith(...e){return this.check(om(...e))},min(...e){return this.check(ut(...e))},max(...e){return this.check(xr(...e))},length(...e){return this.check(jr(...e))},nonempty(...e){return this.check(ut(1,...e))},lowercase(e){return this.check(tm(e))},uppercase(e){return this.check(nm(e))},trim(){return this.check(sm())},normalize(...e){return this.check(am(...e))},toLowerCase(){return this.check(um())},toUpperCase(){return this.check(cm())},slugify(){return this.check(dm())}}),Qm=g("ZodString",(e,t)=>{Yt.init(e,t),fi.init(e,t)},{email(e){return this.check(wl(rp,e))},url(e){return this.check(Pl(op,e))},jwt(e){return this.check(Gl(Ap,e))},emoji(e){return this.check(Cl(ap,e))},guid(e){return this.check(vl(ip,e))},uuid(e){return this.check(kl(ft,e))},uuidv4(e){return this.check(Rl(ft,e))},uuidv6(e){return this.check(Nl(ft,e))},uuidv7(e){return this.check(bl(ft,e))},nanoid(e){return this.check(Il(sp,e))},cuid(e){return this.check(Ml(up,e))},cuid2(e){return this.check(Dl(cp,e))},ulid(e){return this.check(Jl(dp,e))},base64(e){return this.check(Bl(gp,e))},base64url(e){return this.check(Ul(_p,e))},xid(e){return this.check(El(fp,e))},ksuid(e){return this.check(Fl(lp,e))},ipv4(e){return this.check(zl(mp,e))},ipv6(e){return this.check($l(pp,e))},cidrv4(e){return this.check(Ll(hp,e))},cidrv6(e){return this.check(Hl(yp,e))},e164(e){return this.check(Zl(Op,e))},datetime(e){return this.check(ql(jm,e))},date(e){return this.check(Kl(ep,e))},time(e){return this.check(Yl(tp,e))},duration(e){return this.check(Vl(np,e))}});function xm(e){return Tl(Qm,e)}var W=g("ZodStringFormat",(e,t)=>{V.init(e,t),fi.init(e,t)}),jm=g("ZodISODateTime",(e,t)=>{Cf.init(e,t),W.init(e,t)}),ep=g("ZodISODate",(e,t)=>{If.init(e,t),W.init(e,t)}),tp=g("ZodISOTime",(e,t)=>{Mf.init(e,t),W.init(e,t)}),np=g("ZodISODuration",(e,t)=>{Df.init(e,t),W.init(e,t)}),rp=g("ZodEmail",(e,t)=>{yf.init(e,t),W.init(e,t)}),ip=g("ZodGUID",(e,t)=>{pf.init(e,t),W.init(e,t)}),ft=g("ZodUUID",(e,t)=>{hf.init(e,t),W.init(e,t)}),op=g("ZodURL",(e,t)=>{Tf.init(e,t),W.init(e,t)}),ap=g("ZodEmoji",(e,t)=>{wf.init(e,t),W.init(e,t)}),sp=g("ZodNanoID",(e,t)=>{vf.init(e,t),W.init(e,t)}),up=g("ZodCUID",(e,t)=>{kf.init(e,t),W.init(e,t)}),cp=g("ZodCUID2",(e,t)=>{Rf.init(e,t),W.init(e,t)}),dp=g("ZodULID",(e,t)=>{Nf.init(e,t),W.init(e,t)}),fp=g("ZodXID",(e,t)=>{bf.init(e,t),W.init(e,t)}),lp=g("ZodKSUID",(e,t)=>{Pf.init(e,t),W.init(e,t)}),mp=g("ZodIPv4",(e,t)=>{Jf.init(e,t),W.init(e,t)}),pp=g("ZodIPv6",(e,t)=>{Ff.init(e,t),W.init(e,t)}),hp=g("ZodCIDRv4",(e,t)=>{zf.init(e,t),W.init(e,t)}),yp=g("ZodCIDRv6",(e,t)=>{Lf.init(e,t),W.init(e,t)}),gp=g("ZodBase64",(e,t)=>{Hf.init(e,t),W.init(e,t)}),_p=g("ZodBase64URL",(e,t)=>{Uf.init(e,t),W.init(e,t)}),Op=g("ZodE164",(e,t)=>{Zf.init(e,t),W.init(e,t)}),Ap=g("ZodJWT",(e,t)=>{qf.init(e,t),W.init(e,t)}),li=g("ZodNumber",(e,t)=>{Ir.init(e,t),j.init(e,t),e._zod.processJSONSchema=(r,i,o)=>Om(e,r,i,o);const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null},{gt(e,t){return this.check(Xr(e,t))},gte(e,t){return this.check(xt(e,t))},min(e,t){return this.check(xt(e,t))},lt(e,t){return this.check(Wr(e,t))},lte(e,t){return this.check(Qt(e,t))},max(e,t){return this.check(Qt(e,t))},int(e){return this.check(mi(e))},safe(e){return this.check(mi(e))},positive(e){return this.check(Xr(0,e))},nonnegative(e){return this.check(xt(0,e))},negative(e){return this.check(Wr(0,e))},nonpositive(e){return this.check(Qt(0,e))},multipleOf(e,t){return this.check(Qr(e,t))},step(e,t){return this.check(Qr(e,t))},finite(){return this}});function Sp(e){return Wl(li,e)}var Tp=g("ZodNumberFormat",(e,t)=>{Kf.init(e,t),li.init(e,t)});function mi(e){return Xl(Tp,e)}var wp=g("ZodSymbol",(e,t)=>{Yf.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Am(e,n,r,i)});function vp(e){return Ql(wp,e)}var kp=g("ZodUnknown",(e,t)=>{Vf.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Tm(e,n,r,i)});function pi(){return xl(kp)}var Rp=g("ZodNever",(e,t)=>{Wf.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Sm(e,n,r,i)});function Np(e){return jl(Rp,e)}var bp=g("ZodArray",(e,t)=>{nn(),Xf.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Rm(e,n,r,i),e.element=t.element},{min(e,t){return this.check(ut(e,t))},nonempty(e){return this.check(ut(1,e))},max(e,t){return this.check(xr(e,t))},length(e,t){return this.check(jr(e,t))},unwrap(){return this.element}});function Pp(e,t){return fm(bp,e,t)}var Cp=g("ZodObject",(e,t)=>{nn(),jf.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Nm(e,n,r,i),od(e,"shape",n=>n._zod.def.shape,!1)},{keyof(){return yi(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:pi()})},loose(){return this.clone({...this._zod.def,catchall:pi()})},strict(){return this.clone({...this._zod.def,catchall:Np()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return Vc(this,e)},safeExtend(e){return Wc(this,e)},merge(e){return Xc(this,e)},pick(e){return Kc(this,e)},omit(e){return Yc(this,e)},partial(...e){return fr(gi,this,e[0])},exactPartial(...e){return fr(Oi,this,e[0],"exactPartial")},required(...e){return Qc(Si,this,e[0])}});function Ip(e,t){const n={type:"object",shape:e??{},...C(t)};return new Cp(n)}var Mp=g("ZodUnion",(e,t)=>{el.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>bm(e,n,r,i),e.options=t.options});function hi(e,t){return new Mp({type:"union",options:e,...C(t)})}var Dp=g("ZodIntersection",(e,t)=>{tl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Pm(e,n,r,i)});function Jp(e,t){return new Dp({type:"intersection",left:e,right:t})}var rn=g("ZodEnum",(e,t)=>{nl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(r,i,o)=>wm(e,r,i,o),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,i)=>{const o={};for(const s of r)if(n.has(s))o[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new rn({...t,checks:[],...C(i),entries:o})},e.exclude=(r,i)=>{const o={...t.entries};for(const s of r)if(n.has(s))delete o[s];else throw new Error(`Key ${s} not found in enum`);return new rn({...t,checks:[],...C(i),entries:o})}});function yi(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new rn({type:"enum",entries:n,...C(t)})}var Ep=g("ZodTransform",(e,t)=>{nn(),rl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>km(e,n,r,i),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new gr(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(Ue(o,n.value,t));else{const s=o;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),"input"in s||(s.input=n.value),s.inst??(s.inst=e),n.issues.push(Ue(s))}};const i=t.transform(n.value,n);return i instanceof Promise?i.then(o=>(n.value=o,n)):(n.value=i,n)}});function Fp(e){return new Ep({type:"transform",transform:e})}var gi=g("ZodOptional",(e,t)=>{Lr.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ci(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function _i(e){return new gi({type:"optional",innerType:e})}var Oi=g("ZodExactOptional",(e,t)=>{il.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ci(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function zp(e){return new Oi({type:"optional",innerType:e})}var $p=g("ZodNullable",(e,t)=>{ol.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Cm(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Ai(e){return new $p({type:"nullable",innerType:e})}var Lp=g("ZodDefault",(e,t)=>{al.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Mm(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Hp(e,t){return new Lp({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():cr(t)}})}var Bp=g("ZodPrefault",(e,t)=>{sl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Dm(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Up(e,t){return new Bp({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():cr(t)}})}var Si=g("ZodNonOptional",(e,t)=>{ul.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Im(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Zp(e,t){return new Si({type:"nonoptional",innerType:e,...C(t)})}var Gp=g("ZodCatch",(e,t)=>{cl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Jm(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function qp(e,t){return new Gp({type:"catch",innerType:e,catchValue:typeof t=="function"?t:sd(t)})}var Kp=g("ZodPipe",(e,t)=>{dl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Em(e,n,r,i),e.in=t.in,e.out=t.out});function Ti(e,t){return new Kp({type:"pipe",in:e,out:t})}var Yp=g("ZodReadonly",(e,t)=>{fl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Fm(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Vp(e){return new Yp({type:"readonly",innerType:e})}var Wp=g("ZodCustom",(e,t)=>{ll.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>vm(e,n,r,i)});function Xp(e,t={}){return lm(Wp,e,t)}function Qp(e,t){return mm(e,t)}var xp=yi(["ASC","DESC"]),m_=Ip({sortBy:hi([xm(),Sp(),vp()]).optional(),sortOrder:xp.optional()}),jp=class{constructor(){this._map=new Map,this._idmap=new Map}add(e,...t){const n=t[0];if(this._map.set(e,n),n&&typeof n=="object"&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,e)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(e){const t=this._map.get(e);return t&&typeof t=="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){const t=e._zod.parent;if(t){const n={...this.get(t)??{}};return delete n.id,{...n,...this._map.get(e)}}return this._map.get(e)}has(e){return this._map.has(e)}};function eh(){return new jp}var p_=eh(),wi="http://localhost".replace(/\/+$/,""),th=e=>typeof Blob<"u"&&e instanceof Blob,ce=class{configuration;middleware;constructor(e=new an){this.configuration=e,this.middleware=e.middleware}withMiddleware(...e){const t=this.clone();return t.middleware=t.middleware.concat(...e),t}withPreMiddleware(...e){const t=e.map(n=>({pre:n}));return this.withMiddleware(...t)}withPostMiddleware(...e){const t=e.map(n=>({post:n}));return this.withMiddleware(...t)}async request(e,t){const{url:n,init:r}=this.createFetchParams(e,t),i=await this.fetchApi(n,r);if(i.status>=200&&i.status<300)return i;throw new on(i,"Response returned an error code")}createFetchParams(e,t){let n=this.configuration.basePath+e.path;e.query!==void 0&&Object.keys(e.query).length!==0&&(n+="?"+this.configuration.queryParamsStringify(e.query));const r=typeof FormData<"u"&&e.body instanceof FormData||e.body instanceof URLSearchParams||th(e.body)?e.body:JSON.stringify(e.body),i=Object.assign({},this.configuration.headers,e.headers);Object.keys(i).forEach(s=>i[s]===void 0?delete i[s]:{});const o={method:e.method,body:r,credentials:this.configuration.credentials,...or({},t,{headers:or({},i,t?.headers)})};return{url:n,init:o}}fetchApi=async(e,t)=>{let n={url:e,init:t};for(const i of this.middleware)i.pre&&(n=await i.pre({fetch:this.fetchApi,...n})||n);let r=await(this.configuration.fetchApi||fetch)(n.url,n.init);for(const i of this.middleware)i.post&&(r=await i.post({fetch:this.fetchApi,url:n.url,init:n.init,response:r.clone()})||r);return r};clone(){const e=this.constructor,t=new e(this.configuration);return t.middleware=this.middleware.slice(),t}},on=class extends Error{response;name="ResponseError";constructor(e,t){super(t),this.response=e}},Z=class extends Error{field;name="RequiredError";constructor(e,t){super(t),this.field=e}},nh={csv:",",ssv:" ",tsv:" ",pipes:"|"},an=class{configuration;constructor(e={}){this.configuration=e}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:wi}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||sn}get username(){return this.configuration.username}get password(){return this.configuration.password}get apiKey(){const e=this.configuration.apiKey;if(e)return typeof e=="function"?e:()=>e}get accessToken(){const e=this.configuration.accessToken;if(e)return typeof e=="function"?e:async()=>e}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}};function rh(e,t){const n=e[t];return n!=null}function sn(e,t=""){return Object.keys(e).map(n=>{const r=t+(t.length?`[${n}]`:n),i=e[n];if(i instanceof Array){const o=i.map(s=>encodeURIComponent(String(s))).join(`&${encodeURIComponent(r)}=`);return`${encodeURIComponent(r)}=${o}`}return i instanceof Date?`${encodeURIComponent(r)}=${encodeURIComponent(i.toISOString())}`:i instanceof Object?sn(i,r):`${encodeURIComponent(r)}=${encodeURIComponent(String(i))}`}).filter(n=>n.length>0).join("&")}function ih(e){for(const t of e)if(t.contentType==="multipart/form-data")return!0;return!1}var q=class{raw;transformer;constructor(e,t=n=>n){this.raw=e,this.transformer=t}async value(){return this.transformer(await this.raw.json())}},vi=class{raw;constructor(e){this.raw=e}async value(){}},oh=class{raw;constructor(e){this.raw=e}async value(){return await this.raw.blob()}},un=class{raw;constructor(e){this.raw=e}async value(){return await this.raw.text()}};function ah(e){return!(!("amount"in e)||e.amount===void 0||!("code"in e)||e.code===void 0||!("couponId"in e)||e.couponId===void 0)}function sh(e){return ki(e,!1)}function ki(e,t){return e==null?e:{amount:e.amount,code:e.code,couponId:e.coupon_id}}function uh(e){return Ri(e,!1)}function Ri(e,t=!1){return e==null?e:{amount:e.amount,code:e.code,coupon_id:e.couponId}}var ch={Exhausted:"exhausted",Expired:"expired",NotFound:"not_found"};function dh(e){return!(!("code"in e)||e.code===void 0||!("error"in e)||e.error===void 0)}function fh(e){return Ni(e,!1)}function Ni(e,t){return e==null?e:{code:e.code,error:e.error}}function lh(e){return bi(e,!1)}function bi(e,t=!1){return e==null?e:{code:e.code,error:e.error}}var mh={Exhausted:"exhausted",Expired:"expired",NotFound:"not_found"};function ph(e){return!(!("amount"in e)||e.amount===void 0||!("code"in e)||e.code===void 0||!("couponId"in e)||e.couponId===void 0||!("error"in e)||e.error===void 0)}function Pi(e){return Ci(e,!1)}function Ci(e,t){return e==null?e:{amount:e.amount,code:e.code,couponId:e.coupon_id,error:e.error}}function Ii(e){return Mi(e,!1)}function Mi(e,t=!1){return e==null?e:{amount:e.amount,code:e.code,coupon_id:e.couponId,error:e.error}}var hh={Coupon:"COUPON"};function yh(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function gh(e){return cn(e,!1)}function cn(e,t){return e==null?e:{name:e.name,payload:e.payload.map(Pi)}}function Di(e){return Ji(e,!1)}function Ji(e,t=!1){return e==null?e:{name:e.name,payload:e.payload.map(Ii)}}var _h={CreditCard:"CREDIT_CARD"};function Oh(e){return!(!("name"in e)||e.name===void 0)}function Ah(e){return dn(e,!1)}function dn(e,t){return e==null?e:{name:e.name}}function Ei(e){return Fi(e,!1)}function Fi(e,t=!1){return e==null?e:{name:e.name}}var Sh={DepositAccount:"DEPOSIT_ACCOUNT"};function Th(e){return!(!("name"in e)||e.name===void 0)}function wh(e){return fn(e,!1)}function fn(e,t){return e==null?e:{name:e.name}}function zi(e){return $i(e,!1)}function $i(e,t=!1){return e==null?e:{name:e.name}}var vh={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"};function kh(e){return!(!("status"in e)||e.status===void 0)}function Li(e){return Hi(e,!1)}function Hi(e,t){return e==null?e:{status:e.status}}function Bi(e){return Ui(e,!1)}function Ui(e,t=!1){return e==null?e:{status:e.status}}var Rh={PayLater:"PAY_LATER"};function Nh(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function bh(e){return ln(e,!1)}function ln(e,t){return e==null?e:{name:e.name,payload:Li(e.payload)}}function Zi(e){return Gi(e,!1)}function Gi(e,t=!1){return e==null?e:{name:e.name,payload:Bi(e.payload)}}function qi(e){return Ki(e,!1)}function Ki(e,t){if(e==null)return e;switch(e.name){case"COUPON":return{...cn(e,!0),name:"COUPON"};case"CREDIT_CARD":return{...dn(e,!0),name:"CREDIT_CARD"};case"DEPOSIT_ACCOUNT":return{...fn(e,!0),name:"DEPOSIT_ACCOUNT"};case"PAY_LATER":return{...ln(e,!0),name:"PAY_LATER"};default:throw new Error(`No variant of AllowedPaymentMethodApi exists with 'name=${e.name}'`)}}function Yi(e){if(e!==void 0){if(e===null)return null;switch(e.name){case"COUPON":return Di(e);case"CREDIT_CARD":return Ei(e);case"DEPOSIT_ACCOUNT":return zi(e);case"PAY_LATER":return Zi(e);default:throw new Error(`No variant of AllowedPaymentMethodApi exists with 'name=${e.name}'`)}}}function Ph(e,t=!1){return Yi(e)}function Ch(e){return!0}function mn(e){return Vi(e,!1)}function Vi(e,t){return e==null?e:{airConditioning:e.air_conditioning==null?void 0:e.air_conditioning,airportTransportation:e.airport_transportation==null?void 0:e.airport_transportation,businessCenter:e.business_center==null?void 0:e.business_center,carRentDesk:e.car_rent_desk==null?void 0:e.car_rent_desk,childrenAllowed:e.children_allowed==null?void 0:e.children_allowed,clothingIron:e.clothing_iron==null?void 0:e.clothing_iron,coffeeTeaMaker:e.coffee_tea_maker==null?void 0:e.coffee_tea_maker,combination:e.combination==null?void 0:e.combination,continentalBreakfast:e.continental_breakfast==null?void 0:e.continental_breakfast,dataPorts:e.data_ports==null?void 0:e.data_ports,dryCleaning:e.dry_cleaning==null?void 0:e.dry_cleaning,electronicRoomKeys:e.electronic_room_keys==null?void 0:e.electronic_room_keys,exteriorRoomEntrance:e.exterior_room_entrance==null?void 0:e.exterior_room_entrance,familyRooms:e.family_rooms==null?void 0:e.family_rooms,fitnessFacility:e.fitness_facility==null?void 0:e.fitness_facility,gameRoom:e.game_room==null?void 0:e.game_room,golfCourse:e.golf_course==null?void 0:e.golf_course,hairDryer:e.hair_dryer==null?void 0:e.hair_dryer,handicapAccessible:e.handicap_accessible==null?void 0:e.handicap_accessible,inHouseBar:e.in_house_bar==null?void 0:e.in_house_bar,inHouseDining:e.in_house_dining==null?void 0:e.in_house_dining,inRoomMovies:e.in_room_movies==null?void 0:e.in_room_movies,indoorPool:e.indoor_pool==null?void 0:e.indoor_pool,interiorRoomEntrance:e.interior_room_entrance==null?void 0:e.interior_room_entrance,kitchen:e.kitchen==null?void 0:e.kitchen,map:e.map==null?void 0:e.map,meetingRooms:e.meeting_rooms==null?void 0:e.meeting_rooms,miniBarInRoom:e.mini_bar_in_room==null?void 0:e.mini_bar_in_room,nonSmokingRooms:e.non_smoking_rooms==null?void 0:e.non_smoking_rooms,outdoorPool:e.outdoor_pool==null?void 0:e.outdoor_pool,parkingGarage:e.parking_garage==null?void 0:e.parking_garage,petsAllowed:e.pets_allowed==null?void 0:e.pets_allowed,restrictedAccess:e.restricted_access==null?void 0:e.restricted_access,roomService:e.room_service==null?void 0:e.room_service,safe:e.safe==null?void 0:e.safe,sauna:e.sauna==null?void 0:e.sauna,tVInRoom:e.t_v_in_room==null?void 0:e.t_v_in_room,tennisCourt:e.tennis_court==null?void 0:e.tennis_court,twentyFourHourSecurity:e.twenty_four_hour_security==null?void 0:e.twenty_four_hour_security,valetParking:e.valet_parking==null?void 0:e.valet_parking,videoCheckOut:e.video_check_out==null?void 0:e.video_check_out,voiceMail:e.voice_mail==null?void 0:e.voice_mail,wakeUpService:e.wake_up_service==null?void 0:e.wake_up_service,whirpool:e.whirpool==null?void 0:e.whirpool}}function pn(e){return Wi(e,!1)}function Wi(e,t=!1){return e==null?e:{air_conditioning:e.airConditioning,airport_transportation:e.airportTransportation,business_center:e.businessCenter,car_rent_desk:e.carRentDesk,children_allowed:e.childrenAllowed,clothing_iron:e.clothingIron,coffee_tea_maker:e.coffeeTeaMaker,combination:e.combination,continental_breakfast:e.continentalBreakfast,data_ports:e.dataPorts,dry_cleaning:e.dryCleaning,electronic_room_keys:e.electronicRoomKeys,exterior_room_entrance:e.exteriorRoomEntrance,family_rooms:e.familyRooms,fitness_facility:e.fitnessFacility,game_room:e.gameRoom,golf_course:e.golfCourse,hair_dryer:e.hairDryer,handicap_accessible:e.handicapAccessible,in_house_bar:e.inHouseBar,in_house_dining:e.inHouseDining,in_room_movies:e.inRoomMovies,indoor_pool:e.indoorPool,interior_room_entrance:e.interiorRoomEntrance,kitchen:e.kitchen,map:e.map,meeting_rooms:e.meetingRooms,mini_bar_in_room:e.miniBarInRoom,non_smoking_rooms:e.nonSmokingRooms,outdoor_pool:e.outdoorPool,parking_garage:e.parkingGarage,pets_allowed:e.petsAllowed,restricted_access:e.restrictedAccess,room_service:e.roomService,safe:e.safe,sauna:e.sauna,t_v_in_room:e.tVInRoom,tennis_court:e.tennisCourt,twenty_four_hour_security:e.twentyFourHourSecurity,valet_parking:e.valetParking,video_check_out:e.videoCheckOut,voice_mail:e.voiceMail,wake_up_service:e.wakeUpService,whirpool:e.whirpool}}function Ih(e){return!(!("count"in e)||e.count===void 0||!("name"in e)||e.name===void 0||!("occupancy"in e)||e.occupancy===void 0)}function Mh(e){return Xi(e,!1)}function Xi(e,t){return e==null?e:{count:e.count,name:e.name,occupancy:e.occupancy}}function Dh(e){return Qi(e,!1)}function Qi(e,t=!1){return e==null?e:{count:e.count,name:e.name,occupancy:e.occupancy}}function Jh(e){return!(!("dateFrom"in e)||e.dateFrom===void 0||!("dateTo"in e)||e.dateTo===void 0||!("penaltyPercentage"in e)||e.penaltyPercentage===void 0)}function lt(e){return xi(e,!1)}function xi(e,t){return e==null?e:{dateFrom:e.date_from,dateTo:e.date_to,penaltyPercentage:e.penalty_percentage}}function mt(e){return ji(e,!1)}function ji(e,t=!1){return e==null?e:{date_from:e.dateFrom,date_to:e.dateTo,penalty_percentage:e.penaltyPercentage}}var pt={Ad:"AD",Ae:"AE",Af:"AF",Ag:"AG",Ai:"AI",Al:"AL",Am:"AM",Ao:"AO",Ar:"AR",As:"AS",At:"AT",Au:"AU",Aw:"AW",Ax:"AX",Az:"AZ",Ba:"BA",Bb:"BB",Bd:"BD",Be:"BE",Bf:"BF",Bg:"BG",Bh:"BH",Bi:"BI",Bj:"BJ",Bl:"BL",Bm:"BM",Bn:"BN",Bo:"BO",Bq:"BQ",Br:"BR",Bs:"BS",Bt:"BT",Bw:"BW",By:"BY",Bz:"BZ",Ca:"CA",Cc:"CC",Cd:"CD",Cf:"CF",Cg:"CG",Ch:"CH",Ci:"CI",Ck:"CK",Cl:"CL",Cm:"CM",Cn:"CN",Co:"CO",Cr:"CR",Cu:"CU",Cv:"CV",Cw:"CW",Cx:"CX",Cy:"CY",Cz:"CZ",De:"DE",Dj:"DJ",Dk:"DK",Dm:"DM",Do:"DO",Dz:"DZ",Ec:"EC",Ee:"EE",Eg:"EG",Eh:"EH",Er:"ER",Es:"ES",Et:"ET",Fi:"FI",Fj:"FJ",Fk:"FK",Fm:"FM",Fo:"FO",Fr:"FR",Ga:"GA",Gb:"GB",Gd:"GD",Ge:"GE",Gf:"GF",Gg:"GG",Gh:"GH",Gi:"GI",Gl:"GL",Gm:"GM",Gn:"GN",Gp:"GP",Gq:"GQ",Gr:"GR",Gt:"GT",Gu:"GU",Gw:"GW",Gy:"GY",Hk:"HK",Hn:"HN",Hr:"HR",Ht:"HT",Hu:"HU",Id:"ID",Ie:"IE",Il:"IL",Im:"IM",In:"IN",Io:"IO",Iq:"IQ",Ir:"IR",Is:"IS",It:"IT",Je:"JE",Jm:"JM",Jo:"JO",Jp:"JP",Ke:"KE",Kg:"KG",Kh:"KH",Ki:"KI",Km:"KM",Kn:"KN",Kp:"KP",Kr:"KR",Kw:"KW",Ky:"KY",Kz:"KZ",La:"LA",Lb:"LB",Lc:"LC",Li:"LI",Lk:"LK",Lr:"LR",Ls:"LS",Lt:"LT",Lu:"LU",Lv:"LV",Ly:"LY",Ma:"MA",Mc:"MC",Md:"MD",Me:"ME",Mf:"MF",Mg:"MG",Mh:"MH",Mk:"MK",Ml:"ML",Mm:"MM",Mn:"MN",Mo:"MO",Mp:"MP",Mq:"MQ",Mr:"MR",Ms:"MS",Mt:"MT",Mu:"MU",Mv:"MV",Mw:"MW",Mx:"MX",My:"MY",Mz:"MZ",Na:"NA",Nc:"NC",Ne:"NE",Nf:"NF",Ng:"NG",Ni:"NI",Nl:"NL",No:"NO",Np:"NP",Nr:"NR",Nu:"NU",Nz:"NZ",Om:"OM",Pa:"PA",Pe:"PE",Pf:"PF",Pg:"PG",Ph:"PH",Pk:"PK",Pl:"PL",Pm:"PM",Pr:"PR",Ps:"PS",Pt:"PT",Pw:"PW",Py:"PY",Qa:"QA",Re:"RE",Ro:"RO",Rs:"RS",Ru:"RU",Rw:"RW",Sa:"SA",Sb:"SB",Sc:"SC",Sd:"SD",Se:"SE",Sg:"SG",Sh:"SH",Si:"SI",Sj:"SJ",Sk:"SK",Sl:"SL",Sm:"SM",Sn:"SN",So:"SO",Sr:"SR",Ss:"SS",St:"ST",Sv:"SV",Sx:"SX",Sy:"SY",Sz:"SZ",Tc:"TC",Td:"TD",Tg:"TG",Th:"TH",Tj:"TJ",Tk:"TK",Tl:"TL",Tm:"TM",Tn:"TN",To:"TO",Tr:"TR",Tt:"TT",Tv:"TV",Tw:"TW",Tz:"TZ",Ua:"UA",Ug:"UG",Us:"US",Uy:"UY",Uz:"UZ",Va:"VA",Vc:"VC",Ve:"VE",Vg:"VG",Vi:"VI",Vn:"VN",Vu:"VU",Wf:"WF",Ws:"WS",Xk:"XK",Ye:"YE",Yt:"YT",Za:"ZA",Zm:"ZM",Zw:"ZW"};function Eh(e){for(const t in pt)if(Object.prototype.hasOwnProperty.call(pt,t)&&pt[t]===e)return!0;return!1}function qe(e){return eo(e,!1)}function eo(e,t){return e}function Fh(e){return e}function zh(e,t){return e}function $h(e){return!(!("isHeroImage"in e)||e.isHeroImage===void 0||!("l"in e)||e.l===void 0||!("m"in e)||e.m===void 0||!("s"in e)||e.s===void 0||!("xl"in e)||e.xl===void 0||!("xs"in e)||e.xs===void 0)}function Je(e){return to(e,!1)}function to(e,t){return e==null?e:{caption:e.caption==null?void 0:e.caption,isHeroImage:e.is_hero_image,l:e.l,m:e.m,s:e.s,xl:e.xl,xs:e.xs}}function Ke(e){return no(e,!1)}function no(e,t=!1){return e==null?e:{caption:e.caption,is_hero_image:e.isHeroImage,l:e.l,m:e.m,s:e.s,xl:e.xl,xs:e.xs}}function Lh(e){return!(!("beds"in e)||e.beds===void 0||!("bedsPretty"in e)||e.bedsPretty===void 0||!("count"in e)||e.count===void 0||!("description"in e)||e.description===void 0||!("id"in e)||e.id===void 0||!("occupancy"in e)||e.occupancy===void 0)}function ro(e){return io(e,!1)}function io(e,t){return e==null?e:{amenities:e.amenities==null?void 0:e.amenities,beds:e.beds,bedsPretty:e.beds_pretty,count:e.count,description:e.description,highresImages:e.highres_images==null?void 0:e.highres_images,id:e.id,imageIndexes:e.image_indexes==null?void 0:e.image_indexes,images:e.images==null?void 0:e.images.map(Je),lowresImages:e.lowres_images==null?void 0:e.lowres_images,occupancy:e.occupancy,richDescription:e.rich_description==null?void 0:e.rich_description,roomSquareFeet:e.room_square_feet==null?void 0:e.room_square_feet,roomSquareMeters:e.room_square_meters==null?void 0:e.room_square_meters,thumbImages:e.thumb_images==null?void 0:e.thumb_images}}function oo(e){return ao(e,!1)}function ao(e,t=!1){return e==null?e:{amenities:e.amenities,beds:e.beds,beds_pretty:e.bedsPretty,count:e.count,description:e.description,highres_images:e.highresImages,id:e.id,image_indexes:e.imageIndexes,images:e.images==null?void 0:e.images.map(Ke),lowres_images:e.lowresImages,occupancy:e.occupancy,rich_description:e.richDescription,room_square_feet:e.roomSquareFeet,room_square_meters:e.roomSquareMeters,thumb_images:e.thumbImages}}var ht={Included:"INCLUDED",NotIncluded:"NOT_INCLUDED",Optional:"OPTIONAL"};function Hh(e){for(const t in ht)if(Object.prototype.hasOwnProperty.call(ht,t)&&ht[t]===e)return!0;return!1}function so(e){return uo(e,!1)}function uo(e,t){return e}function Bh(e){return e}function Uh(e,t){return e}var Zh={PerNight:"PER_NIGHT",PerStay:"PER_STAY"},Gh={PerAdult:"PER_ADULT",PerBooking:"PER_BOOKING"};function qh(e){return!(!("taxFrequency"in e)||e.taxFrequency===void 0||!("taxMode"in e)||e.taxMode===void 0)}function hn(e){return co(e,!1)}function co(e,t){return e==null?e:{amount:e.amount==null?void 0:e.amount,code:e.code==null?void 0:e.code,description:e.description==null?void 0:e.description,percentage:e.percentage==null?void 0:e.percentage,taxFrequency:e.tax_frequency,taxMode:e.tax_mode}}function yn(e){return fo(e,!1)}function fo(e,t=!1){return e==null?e:{amount:e.amount,code:e.code,description:e.description,percentage:e.percentage,tax_frequency:e.taxFrequency,tax_mode:e.taxMode}}var yt={Aed:"AED",Afn:"AFN",All:"ALL",Amd:"AMD",Ang:"ANG",Aoa:"AOA",Ars:"ARS",Aud:"AUD",Awg:"AWG",Azn:"AZN",Bam:"BAM",Bbd:"BBD",Bdt:"BDT",Bhd:"BHD",Bgn:"BGN",Bif:"BIF",Bmd:"BMD",Bnd:"BND",Bob:"BOB",Brl:"BRL",Bsd:"BSD",Bwp:"BWP",Bzd:"BZD",Cad:"CAD",Cdf:"CDF",Chf:"CHF",Clp:"CLP",Cny:"CNY",Cop:"COP",Crc:"CRC",Cve:"CVE",Czk:"CZK",Djf:"DJF",Dkk:"DKK",Dop:"DOP",Dzd:"DZD",Egp:"EGP",Etb:"ETB",Eur:"EUR",Fjd:"FJD",Fkp:"FKP",Gbp:"GBP",Gel:"GEL",Gip:"GIP",Gmd:"GMD",Gnf:"GNF",Gtq:"GTQ",Gyd:"GYD",Hkd:"HKD",Hnl:"HNL",Htg:"HTG",Huf:"HUF",Idr:"IDR",Ils:"ILS",Inr:"INR",Isk:"ISK",Jmd:"JMD",Jod:"JOD",Jpy:"JPY",Kes:"KES",Kgs:"KGS",Khr:"KHR",Kmf:"KMF",Krw:"KRW",Kwd:"KWD",Kyd:"KYD",Kzt:"KZT",Lak:"LAK",Lbp:"LBP",Lkr:"LKR",Lrd:"LRD",Lsl:"LSL",Mad:"MAD",Mdl:"MDL",Mga:"MGA",Mkd:"MKD",Mmk:"MMK",Mnt:"MNT",Mop:"MOP",Mru:"MRU",Mur:"MUR",Mvr:"MVR",Mwk:"MWK",Mxn:"MXN",Myr:"MYR",Mzn:"MZN",Nad:"NAD",Ngn:"NGN",Nio:"NIO",Nok:"NOK",Npr:"NPR",Nzd:"NZD",Omr:"OMR",Pab:"PAB",Pen:"PEN",Pgk:"PGK",Php:"PHP",Pkr:"PKR",Pln:"PLN",Pyg:"PYG",Qar:"QAR",Ron:"RON",Rsd:"RSD",Rub:"RUB",Rwf:"RWF",Sar:"SAR",Sbd:"SBD",Scr:"SCR",Sek:"SEK",Sgd:"SGD",Shp:"SHP",Sll:"SLL",Sos:"SOS",Srd:"SRD",Std:"STD",Szl:"SZL",Thb:"THB",Tjs:"TJS",Top:"TOP",Try:"TRY",Ttd:"TTD",Twd:"TWD",Tzs:"TZS",Uah:"UAH",Usd:"USD",Uyu:"UYU",Uzs:"UZS",Vnd:"VND",Vuv:"VUV",Wst:"WST",Xaf:"XAF",Xcd:"XCD",Xof:"XOF",Xpf:"XPF",Yer:"YER",Zar:"ZAR",Zmw:"ZMW"};function Kh(e){for(const t in yt)if(Object.prototype.hasOwnProperty.call(yt,t)&&yt[t]===e)return!0;return!1}function pe(e){return lo(e,!1)}function lo(e,t){return e}function Yh(e){return e}function Vh(e,t){return e}function Wh(e){return!(!("name"in e)||e.name===void 0)}function gt(e){return mo(e,!1)}function mo(e,t){return e==null?e:{bg:e.bg==null?void 0:e.bg,color:e.color==null?void 0:e.color,description:e.description==null?void 0:e.description,faIcon:e.fa_icon==null?void 0:e.fa_icon,name:e.name}}function _t(e){return po(e,!1)}function po(e,t=!1){return e==null?e:{bg:e.bg,color:e.color,description:e.description,fa_icon:e.faIcon,name:e.name}}var Xh={BestMatch:"BEST_MATCH",Cheapest:"CHEAPEST",MatchingRoomCount:"MATCHING_ROOM_COUNT",Regular:"REGULAR"},Qh={Included:"included",NotIncluded:"not_included",Unknown:"unknown"},xh={HotelRoom:"HOTEL_ROOM",Package:"PACKAGE"};function jh(e){return!(!("breakfastOption"in e)||e.breakfastOption===void 0||!("cancellationPolicies"in e)||e.cancellationPolicies===void 0||!("currency"in e)||e.currency===void 0||!("hotelId"in e)||e.hotelId===void 0||!("hotelRooms"in e)||e.hotelRooms===void 0||!("price"in e)||e.price===void 0||!("sourceMarket"in e)||e.sourceMarket===void 0||!("stayTaxesInfo"in e)||e.stayTaxesInfo===void 0||!("taxIncludedPrice"in e)||e.taxIncludedPrice===void 0)}function Ee(e){return ho(e,!1)}function ho(e,t){return e==null?e:{breakfastCount:e.breakfast_count==null?void 0:e.breakfast_count,breakfastOption:so(e.breakfast_option),breakfastPricePerGuestPerNight:e.breakfast_price_per_guest_per_night==null?void 0:e.breakfast_price_per_guest_per_night,breakfastUnitPrice:e.breakfast_unit_price==null?void 0:e.breakfast_unit_price,cancellationPolicies:e.cancellation_policies.map(lt),count:e.count==null?void 0:e.count,currency:pe(e.currency),flexOptionEligible:e.flex_option_eligible==null?void 0:e.flex_option_eligible,hotelId:e.hotel_id,hotelRooms:e.hotel_rooms.map(ro),id:e.id==null?void 0:e.id,packageType:e.package_type==null?void 0:e.package_type,price:e.price,sourceMarket:qe(e.source_market),stayTaxesInfo:e.stay_taxes_info,tags:e.tags==null?void 0:e.tags.map(gt),taxIncludedPrice:e.tax_included_price,taxes:e.taxes==null?void 0:e.taxes.map(hn),type:e.type==null?void 0:e.type}}function Fe(e){return yo(e,!1)}function yo(e,t=!1){return e==null?e:{breakfast_count:e.breakfastCount,breakfast_option:e.breakfastOption,breakfast_price_per_guest_per_night:e.breakfastPricePerGuestPerNight,breakfast_unit_price:e.breakfastUnitPrice,cancellation_policies:e.cancellationPolicies.map(mt),count:e.count,currency:e.currency,flex_option_eligible:e.flexOptionEligible,hotel_id:e.hotelId,hotel_rooms:e.hotelRooms.map(oo),id:e.id,package_type:e.packageType,price:e.price,source_market:e.sourceMarket,stay_taxes_info:e.stayTaxesInfo,tags:e.tags==null?void 0:e.tags.map(_t),tax_included_price:e.taxIncludedPrice,taxes:e.taxes==null?void 0:e.taxes.map(yn),type:e.type}}var Ot={DeDe:"de-DE",EnUs:"en-US",EsEs:"es-ES",FrFr:"fr-FR",ItIt:"it-IT",NlNl:"nl-NL",PtPt:"pt-PT"};function ey(e){for(const t in Ot)if(Object.prototype.hasOwnProperty.call(Ot,t)&&Ot[t]===e)return!0;return!1}function At(e){return go(e,!1)}function go(e,t){return e}function ty(e){return e}function ny(e,t){return e}var St={Ad:"AD",Ae:"AE",Af:"AF",Ag:"AG",Ai:"AI",Al:"AL",Am:"AM",Ao:"AO",Ar:"AR",As:"AS",At:"AT",Au:"AU",Aw:"AW",Ax:"AX",Az:"AZ",Ba:"BA",Bb:"BB",Bd:"BD",Be:"BE",Bf:"BF",Bg:"BG",Bh:"BH",Bi:"BI",Bj:"BJ",Bl:"BL",Bm:"BM",Bn:"BN",Bo:"BO",Bq:"BQ",Br:"BR",Bs:"BS",Bt:"BT",Bw:"BW",By:"BY",Bz:"BZ",Ca:"CA",Cc:"CC",Cd:"CD",Cf:"CF",Cg:"CG",Ch:"CH",Ci:"CI",Ck:"CK",Cl:"CL",Cm:"CM",Cn:"CN",Co:"CO",Cr:"CR",Cu:"CU",Cv:"CV",Cw:"CW",Cx:"CX",Cy:"CY",Cz:"CZ",De:"DE",Dj:"DJ",Dk:"DK",Dm:"DM",Do:"DO",Dz:"DZ",Ec:"EC",Ee:"EE",Eg:"EG",Eh:"EH",Er:"ER",Es:"ES",Et:"ET",Fi:"FI",Fj:"FJ",Fk:"FK",Fm:"FM",Fo:"FO",Fr:"FR",Ga:"GA",Gb:"GB",Gd:"GD",Ge:"GE",Gf:"GF",Gg:"GG",Gh:"GH",Gi:"GI",Gl:"GL",Gm:"GM",Gn:"GN",Gp:"GP",Gq:"GQ",Gr:"GR",Gt:"GT",Gu:"GU",Gw:"GW",Gy:"GY",Hk:"HK",Hn:"HN",Hr:"HR",Ht:"HT",Hu:"HU",Id:"ID",Ie:"IE",Il:"IL",Im:"IM",In:"IN",Io:"IO",Iq:"IQ",Ir:"IR",Is:"IS",It:"IT",Je:"JE",Jm:"JM",Jo:"JO",Jp:"JP",Ke:"KE",Kg:"KG",Kh:"KH",Ki:"KI",Km:"KM",Kn:"KN",Kp:"KP",Kr:"KR",Kw:"KW",Ky:"KY",Kz:"KZ",La:"LA",Lb:"LB",Lc:"LC",Li:"LI",Lk:"LK",Lr:"LR",Ls:"LS",Lt:"LT",Lu:"LU",Lv:"LV",Ly:"LY",Ma:"MA",Mc:"MC",Md:"MD",Me:"ME",Mf:"MF",Mg:"MG",Mh:"MH",Mk:"MK",Ml:"ML",Mm:"MM",Mn:"MN",Mo:"MO",Mp:"MP",Mq:"MQ",Mr:"MR",Ms:"MS",Mt:"MT",Mu:"MU",Mv:"MV",Mw:"MW",Mx:"MX",My:"MY",Mz:"MZ",Na:"NA",Nc:"NC",Ne:"NE",Nf:"NF",Ng:"NG",Ni:"NI",Nl:"NL",No:"NO",Np:"NP",Nr:"NR",Nu:"NU",Nz:"NZ",Om:"OM",Pa:"PA",Pe:"PE",Pf:"PF",Pg:"PG",Ph:"PH",Pk:"PK",Pl:"PL",Pm:"PM",Pr:"PR",Ps:"PS",Pt:"PT",Pw:"PW",Py:"PY",Qa:"QA",Re:"RE",Ro:"RO",Rs:"RS",Ru:"RU",Rw:"RW",Sa:"SA",Sb:"SB",Sc:"SC",Sd:"SD",Se:"SE",Sg:"SG",Sh:"SH",Si:"SI",Sj:"SJ",Sk:"SK",Sl:"SL",Sm:"SM",Sn:"SN",So:"SO",Sr:"SR",Ss:"SS",St:"ST",Sv:"SV",Sx:"SX",Sy:"SY",Sz:"SZ",Tc:"TC",Td:"TD",Tg:"TG",Th:"TH",Tj:"TJ",Tk:"TK",Tl:"TL",Tm:"TM",Tn:"TN",To:"TO",Tr:"TR",Tt:"TT",Tv:"TV",Tw:"TW",Tz:"TZ",Ua:"UA",Ug:"UG",Us:"US",Uy:"UY",Uz:"UZ",Va:"VA",Vc:"VC",Ve:"VE",Vg:"VG",Vi:"VI",Vn:"VN",Vu:"VU",Wf:"WF",Ws:"WS",Xk:"XK",Ye:"YE",Yt:"YT",Za:"ZA",Zm:"ZM",Zw:"ZW"};function ry(e){for(const t in St)if(Object.prototype.hasOwnProperty.call(St,t)&&St[t]===e)return!0;return!1}function Tt(e){return _o(e,!1)}function _o(e,t){return e}function iy(e){return e}function oy(e,t){return e}function ay(e){return!(!("address"in e)||e.address===void 0||!("city"in e)||e.city===void 0||!("country"in e)||e.country===void 0||!("name"in e)||e.name===void 0||!("zipCode"in e)||e.zipCode===void 0)}function Oo(e){return Ao(e,!1)}function Ao(e,t){return e==null?e:{address:e.address,city:e.city,country:Tt(e.country),name:e.name,state:e.state==null?void 0:e.state,vatNumber:e.vat_number==null?void 0:e.vat_number,zipCode:e.zip_code}}function So(e){return To(e,!1)}function To(e,t=!1){return e==null?e:{address:e.address,city:e.city,country:e.country,name:e.name,state:e.state,vat_number:e.vatNumber,zip_code:e.zipCode}}var sy={Dr:"dr",Mr:"mr",Mrs:"mrs",Ms:"ms",NotSpecified:"notSpecified",Prof:"prof"};function uy(e){return!(!("email"in e)||e.email===void 0||!("firstName"in e)||e.firstName===void 0||!("lastName"in e)||e.lastName===void 0||!("nationality"in e)||e.nationality===void 0||!("phone"in e)||e.phone===void 0)}function gn(e){return wo(e,!1)}function wo(e,t){return e==null?e:{address:e.address==null?void 0:e.address,city:e.city==null?void 0:e.city,country:e.country==null?void 0:Tt(e.country),email:e.email,firstName:e.first_name,lang:e.lang==null?void 0:At(e.lang),lastName:e.last_name,nationality:Tt(e.nationality),organization:e.organization==null?void 0:Oo(e.organization),phone:e.phone,remarks:e.remarks==null?void 0:e.remarks,salutation:e.salutation==null?void 0:e.salutation,state:e.state==null?void 0:e.state,zipCode:e.zip_code==null?void 0:e.zip_code}}function _n(e){return vo(e,!1)}function vo(e,t=!1){return e==null?e:{address:e.address,city:e.city,country:e.country,email:e.email,first_name:e.firstName,lang:e.lang,last_name:e.lastName,nationality:e.nationality,organization:So(e.organization),phone:e.phone,remarks:e.remarks,salutation:e.salutation,state:e.state,zip_code:e.zipCode}}function cy(e){return!(!("amount"in e)||e.amount===void 0||!("couponId"in e)||e.couponId===void 0)}function ko(e){return Ro(e,!1)}function Ro(e,t){return e==null?e:{amount:e.amount,couponId:e.coupon_id}}function No(e){return bo(e,!1)}function bo(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId}}var dy={Coupon:"COUPON"};function fy(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function ly(e){return On(e,!1)}function On(e,t){return e==null?e:{name:e.name,payload:e.payload.map(ko)}}function Po(e){return Co(e,!1)}function Co(e,t=!1){return e==null?e:{name:e.name,payload:e.payload.map(No)}}function my(e){return!(!("amount"in e)||e.amount===void 0||!("token"in e)||e.token===void 0)}function Io(e){return Mo(e,!1)}function Mo(e,t){return e==null?e:{amount:e.amount,couponId:e.coupon_id==null?void 0:e.coupon_id,token:e.token}}function Do(e){return Jo(e,!1)}function Jo(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId,token:e.token}}var py={CreditCard:"CREDIT_CARD"};function hy(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function yy(e){return An(e,!1)}function An(e,t){return e==null?e:{name:e.name,payload:Io(e.payload)}}function Eo(e){return Fo(e,!1)}function Fo(e,t=!1){return e==null?e:{name:e.name,payload:Do(e.payload)}}function gy(e){return!(!("amount"in e)||e.amount===void 0)}function zo(e){return $o(e,!1)}function $o(e,t){return e==null?e:{amount:e.amount,couponId:e.coupon_id==null?void 0:e.coupon_id,token:e.token==null?void 0:e.token}}function Lo(e){return Ho(e,!1)}function Ho(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId,token:e.token}}var _y={DepositAccount:"DEPOSIT_ACCOUNT"};function Oy(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function Ay(e){return Sn(e,!1)}function Sn(e,t){return e==null?e:{name:e.name,payload:zo(e.payload)}}function Bo(e){return Uo(e,!1)}function Uo(e,t=!1){return e==null?e:{name:e.name,payload:Lo(e.payload)}}var Sy={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"};function Ty(e){return!(!("amount"in e)||e.amount===void 0||!("status"in e)||e.status===void 0)}function Zo(e){return Go(e,!1)}function Go(e,t){return e==null?e:{amount:e.amount,couponId:e.coupon_id==null?void 0:e.coupon_id,status:e.status,token:e.token==null?void 0:e.token}}function qo(e){return Ko(e,!1)}function Ko(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId,status:e.status,token:e.token}}var wy={PayLater:"PAY_LATER"};function vy(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function ky(e){return Tn(e,!1)}function Tn(e,t){return e==null?e:{name:e.name,payload:Zo(e.payload)}}function Yo(e){return Vo(e,!1)}function Vo(e,t=!1){return e==null?e:{name:e.name,payload:qo(e.payload)}}function Wo(e){return Xo(e,!1)}function Xo(e,t){if(e==null)return e;switch(e.name){case"COUPON":return{...On(e,!0),name:"COUPON"};case"CREDIT_CARD":return{...An(e,!0),name:"CREDIT_CARD"};case"DEPOSIT_ACCOUNT":return{...Sn(e,!0),name:"DEPOSIT_ACCOUNT"};case"PAY_LATER":return{...Tn(e,!0),name:"PAY_LATER"};default:throw new Error(`No variant of PaymentMethodApi exists with 'name=${e.name}'`)}}function wn(e){if(e!==void 0){if(e===null)return null;switch(e.name){case"COUPON":return Po(e);case"CREDIT_CARD":return Eo(e);case"DEPOSIT_ACCOUNT":return Bo(e);case"PAY_LATER":return Yo(e);default:throw new Error(`No variant of PaymentMethodApi exists with 'name=${e.name}'`)}}}function Ry(e,t=!1){return wn(e)}var Ny={Active:"active",Archived:"archived",Claimed:"claimed",Incomplete:"incomplete",Open:"open",WaitingPayment:"waiting_payment"};function by(e){return!(!("status"in e)||e.status===void 0)}function Qo(e){return xo(e,!1)}function xo(e,t){return e==null?e:{createdAt:e.created_at==null?void 0:e.created_at,reference:e.reference==null?void 0:e.reference,status:e.status}}function jo(e){return ea(e,!1)}function ea(e,t=!1){return e==null?e:{created_at:e.createdAt,reference:e.reference,status:e.status}}var Py={CreditNote:"credit_note",Invoice:"invoice"};function Cy(e){return!(!("type"in e)||e.type===void 0||!("url"in e)||e.url===void 0)}function ta(e){return na(e,!1)}function na(e,t){return e==null?e:{type:e.type,url:e.url}}function ra(e){return ia(e,!1)}function ia(e,t=!1){return e==null?e:{type:e.type,url:e.url}}var Iy={Insurance:"insurance"};function My(e){return!(!("price"in e)||e.price===void 0||!("taxIncludedPrice"in e)||e.taxIncludedPrice===void 0||!("type"in e)||e.type===void 0)}function vn(e){return oa(e,!1)}function oa(e,t){return e==null?e:{price:e.price,taxIncludedPrice:e.tax_included_price,type:e.type}}function kn(e){return aa(e,!1)}function aa(e,t=!1){return e==null?e:{price:e.price,tax_included_price:e.taxIncludedPrice,type:e.type}}function Dy(e){return!0}function wt(e){return sa(e,!1)}function sa(e,t){return e==null?e:{latitude:e.latitude==null?void 0:e.latitude,longitude:e.longitude==null?void 0:e.longitude,name:e.name==null?void 0:e.name,slug:e.slug==null?void 0:e.slug}}function vt(e){return ua(e,!1)}function ua(e,t=!1){return e==null?e:{latitude:e.latitude,longitude:e.longitude,name:e.name,slug:e.slug}}function Jy(e){return!(!("beds"in e)||e.beds===void 0||!("bedsPretty"in e)||e.bedsPretty===void 0||!("count"in e)||e.count===void 0||!("description"in e)||e.description===void 0||!("id"in e)||e.id===void 0||!("occupancy"in e)||e.occupancy===void 0)}function ca(e){return da(e,!1)}function da(e,t){return e==null?e:{amenities:e.amenities==null?void 0:e.amenities,beds:e.beds,bedsPretty:e.beds_pretty,count:e.count,description:e.description,highresImages:e.highres_images==null?void 0:e.highres_images,id:e.id,imageIndexes:e.image_indexes==null?void 0:e.image_indexes,images:e.images==null?void 0:e.images.map(Je),lowresImages:e.lowres_images==null?void 0:e.lowres_images,occupancy:e.occupancy,richDescription:e.rich_description==null?void 0:e.rich_description,roomSquareFeet:e.room_square_feet==null?void 0:e.room_square_feet,roomSquareMeters:e.room_square_meters==null?void 0:e.room_square_meters,thumbImages:e.thumb_images==null?void 0:e.thumb_images}}function fa(e){return la(e,!1)}function la(e,t=!1){return e==null?e:{amenities:e.amenities,beds:e.beds,beds_pretty:e.bedsPretty,count:e.count,description:e.description,highres_images:e.highresImages,id:e.id,image_indexes:e.imageIndexes,images:e.images==null?void 0:e.images.map(Ke),lowres_images:e.lowresImages,occupancy:e.occupancy,rich_description:e.richDescription,room_square_feet:e.roomSquareFeet,room_square_meters:e.roomSquareMeters,thumb_images:e.thumbImages}}function Ey(e){return!(!("fullname"in e)||e.fullname===void 0||!("id"in e)||e.id===void 0)}function kt(e){return ma(e,!1)}function ma(e,t){return e==null?e:{fullname:e.fullname,id:e.id}}function pa(e){return ha(e,!1)}function ha(e,t=!1){return e==null?e:{fullname:e.fullname,id:e.id}}function Fy(e){return!(!("hotelRoomId"in e)||e.hotelRoomId===void 0||!("hotelRoomingListGuests"in e)||e.hotelRoomingListGuests===void 0||!("id"in e)||e.id===void 0)}function Rn(e){return ya(e,!1)}function ya(e,t){return e==null?e:{hotelRoom:e.hotel_room==null?void 0:ca(e.hotel_room),hotelRoomId:e.hotel_room_id,hotelRoomingListGuests:e.hotel_rooming_list_guests.map(kt),id:e.id,limitDate:e.limit_date==null?void 0:new Date(e.limit_date)}}function ga(e){return _a(e,!1)}function _a(e,t=!1){return e==null?e:{hotel_room:fa(e.hotelRoom),hotel_room_id:e.hotelRoomId,hotel_rooming_list_guests:e.hotelRoomingListGuests.map(pa),id:e.id,limit_date:e.limitDate==null?e.limitDate:e.limitDate.toISOString()}}var zy={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"},$y={BkgCx:"bkg-cx",BkgCf:"bkg-cf",BkgCreated:"bkg-created",BkgAf:"bkg-af",BkgIp:"bkg-ip",BkgPc:"bkg-pc",BkgPp:"bkg-pp",BkgQr:"bkg-qr"};function Ly(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("cancellationPolicies"in e)||e.cancellationPolicies===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("contactPerson"in e)||e.contactPerson===void 0||!("createdAt"in e)||e.createdAt===void 0||!("currency"in e)||e.currency===void 0||!("hotelId"in e)||e.hotelId===void 0||!("hotelRoomOffer"in e)||e.hotelRoomOffer===void 0||!("lastStatusUpdatedAt"in e)||e.lastStatusUpdatedAt===void 0||!("reference"in e)||e.reference===void 0||!("sourceMarket"in e)||e.sourceMarket===void 0||!("status"in e)||e.status===void 0||!("taxAmount"in e)||e.taxAmount===void 0||!("taxIncludedPrice"in e)||e.taxIncludedPrice===void 0||!("terms"in e)||e.terms===void 0)}function le(e){return Oa(e,!1)}function Oa(e,t){return e==null?e:{additionalCheckInInstruction:e.additional_check_in_instruction==null?void 0:e.additional_check_in_instruction,additionalPolicies:e.additional_policies==null?void 0:e.additional_policies,addons:e.addons==null?void 0:e.addons.map(vn),adultCount:e.adult_count,bookingGroupId:e.booking_group_id==null?void 0:e.booking_group_id,canceledAt:e.canceled_at==null?void 0:e.canceled_at,cancellationPolicies:e.cancellation_policies.map(lt),cancellationPolicyRemarks:e.cancellation_policy_remarks==null?void 0:e.cancellation_policy_remarks,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,confirmedAt:e.confirmed_at==null?void 0:e.confirmed_at,contactPerson:gn(e.contact_person),createdAt:e.created_at,currency:pe(e.currency),customerReference:e.customer_reference==null?void 0:e.customer_reference,event:e.event==null?void 0:wt(e.event),failedAt:e.failed_at==null?void 0:e.failed_at,hotelConfirmationId:e.hotel_confirmation_id==null?void 0:e.hotel_confirmation_id,hotelId:e.hotel_id,hotelRoomOffer:Ee(e.hotel_room_offer),hotelRoomingLists:e.hotel_rooming_lists==null?void 0:e.hotel_rooming_lists.map(Rn),id:e.id==null?void 0:e.id,insurance:e.insurance==null?void 0:Qo(e.insurance),invoices:e.invoices==null?void 0:e.invoices.map(ta),lastStatusUpdatedAt:e.last_status_updated_at,metadata:e.metadata==null?void 0:e.metadata,payLater:e.pay_later==null?void 0:e.pay_later,paymentMethods:e.payment_methods==null?void 0:e.payment_methods.map(Wo),penaltyPercentage:e.penalty_percentage==null?void 0:e.penalty_percentage,reference:e.reference,sourceMarket:qe(e.source_market),status:e.status,taxAmount:e.tax_amount,taxIncludedPrice:e.tax_included_price,taxes:e.taxes==null?void 0:e.taxes.map(hn),terms:e.terms,token:e.token==null?void 0:e.token}}function Aa(e){return Sa(e,!1)}function Sa(e,t=!1){return e==null?e:{additional_check_in_instruction:e.additionalCheckInInstruction,additional_policies:e.additionalPolicies,addons:e.addons==null?void 0:e.addons.map(kn),adult_count:e.adultCount,booking_group_id:e.bookingGroupId,canceled_at:e.canceledAt,cancellation_policies:e.cancellationPolicies.map(mt),cancellation_policy_remarks:e.cancellationPolicyRemarks,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,confirmed_at:e.confirmedAt,contact_person:_n(e.contactPerson),created_at:e.createdAt,currency:e.currency,customer_reference:e.customerReference,event:vt(e.event),failed_at:e.failedAt,hotel_confirmation_id:e.hotelConfirmationId,hotel_id:e.hotelId,hotel_room_offer:Fe(e.hotelRoomOffer),hotel_rooming_lists:e.hotelRoomingLists==null?void 0:e.hotelRoomingLists.map(ga),id:e.id,insurance:jo(e.insurance),invoices:e.invoices==null?void 0:e.invoices.map(ra),last_status_updated_at:e.lastStatusUpdatedAt,metadata:e.metadata,pay_later:e.payLater,payment_methods:e.paymentMethods==null?void 0:e.paymentMethods.map(wn),penalty_percentage:e.penaltyPercentage,reference:e.reference,source_market:e.sourceMarket,status:e.status,tax_amount:e.taxAmount,tax_included_price:e.taxIncludedPrice,taxes:e.taxes==null?void 0:e.taxes.map(yn),terms:e.terms,token:e.token}}var Hy={Insurance:"insurance"};function By(e){return!(!("type"in e)||e.type===void 0)}function Ta(e){return wa(e,!1)}function wa(e,t){return e==null?e:{type:e.type}}function va(e){return ka(e,!1)}function ka(e,t=!1){return e==null?e:{type:e.type}}function Uy(e){return!(!("fullname"in e)||e.fullname===void 0)}function Ra(e){return Na(e,!1)}function Na(e,t){return e==null?e:{fullname:e.fullname}}function ba(e){return Pa(e,!1)}function Pa(e,t=!1){return e==null?e:{fullname:e.fullname}}function Zy(e){return!(!("guests"in e)||e.guests===void 0||!("hotelRoomId"in e)||e.hotelRoomId===void 0)}function Ca(e){return Ia(e,!1)}function Ia(e,t){return e==null?e:{guests:e.guests.map(Ra),hotelRoomId:e.hotel_room_id}}function Ma(e){return Da(e,!1)}function Da(e,t=!1){return e==null?e:{guests:e.guests.map(ba),hotel_room_id:e.hotelRoomId}}function Gy(e){return!0}function ze(e){return Ja(e,!1)}function Ja(e,t){return e==null?e:{dateEnd:e.date_end==null?void 0:e.date_end,dateStart:e.date_start==null?void 0:e.date_start,id:e.id==null?void 0:e.id,imageUrl:e.image_url==null?void 0:e.image_url,name:e.name==null?void 0:e.name,slug:e.slug==null?void 0:e.slug}}function $e(e){return Ea(e,!1)}function Ea(e,t=!1){return e==null?e:{date_end:e.dateEnd,date_start:e.dateStart,id:e.id,image_url:e.imageUrl,name:e.name,slug:e.slug}}function qy(e){return!(!("couponIds"in e)||e.couponIds===void 0)}function Fa(e){return za(e,!1)}function za(e,t){return e==null?e:{couponIds:e.coupon_ids}}function $a(e){return La(e,!1)}function La(e,t=!1){return e==null?e:{coupon_ids:e.couponIds}}var Ky={Coupon:"COUPON"};function Yy(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function Vy(e){return Nn(e,!1)}function Nn(e,t){return e==null?e:{name:e.name,payload:Fa(e.payload)}}function Ha(e){return Ba(e,!1)}function Ba(e,t=!1){return e==null?e:{name:e.name,payload:$a(e.payload)}}var Wy={CreditCard:"CREDIT_CARD"};function Xy(e){return!(!("name"in e)||e.name===void 0)}function Qy(e){return bn(e,!1)}function bn(e,t){return e==null?e:{name:e.name}}function Ua(e){return Za(e,!1)}function Za(e,t=!1){return e==null?e:{name:e.name}}var xy={DepositAccount:"DEPOSIT_ACCOUNT"};function jy(e){return!(!("name"in e)||e.name===void 0)}function eg(e){return Pn(e,!1)}function Pn(e,t){return e==null?e:{name:e.name}}function Ga(e){return qa(e,!1)}function qa(e,t=!1){return e==null?e:{name:e.name}}function Cn(e){return Ka(e,!1)}function Ka(e,t){if(e==null)return e;switch(e.name){case"COUPON":return{...Nn(e,!0),name:"COUPON"};case"CREDIT_CARD":return{...bn(e,!0),name:"CREDIT_CARD"};case"DEPOSIT_ACCOUNT":return{...Pn(e,!0),name:"DEPOSIT_ACCOUNT"};default:throw new Error(`No variant of PaymentMethodRequestApi exists with 'name=${e.name}'`)}}function Rt(e){if(e!==void 0){if(e===null)return null;switch(e.name){case"COUPON":return Ha(e);case"CREDIT_CARD":return Ua(e);case"DEPOSIT_ACCOUNT":return Ga(e);default:throw new Error(`No variant of PaymentMethodRequestApi exists with 'name=${e.name}'`)}}}function tg(e,t=!1){return Rt(e)}function ng(e){return!(!("bookingPolicyId"in e)||e.bookingPolicyId===void 0||!("contactPerson"in e)||e.contactPerson===void 0)}function rg(e){return Ya(e,!1)}function Ya(e,t){return e==null?e:{addons:e.addons==null?void 0:e.addons.map(Ta),bookingPolicyId:e.booking_policy_id,contactPerson:gn(e.contact_person),eventMetadata:e.event_metadata==null?void 0:ze(e.event_metadata),guestsList:e.guests_list==null?void 0:e.guests_list.map(Ca),metadata:e.metadata==null?void 0:e.metadata,paymentMethods:e.payment_methods==null?void 0:e.payment_methods.map(Cn),trackingId:e.tracking_id==null?void 0:e.tracking_id}}function Va(e){return Wa(e,!1)}function Wa(e,t=!1){return e==null?e:{addons:e.addons==null?void 0:e.addons.map(va),booking_policy_id:e.bookingPolicyId,contact_person:_n(e.contactPerson),event_metadata:$e(e.eventMetadata),guests_list:e.guestsList==null?void 0:e.guestsList.map(Ma),metadata:e.metadata,payment_methods:e.paymentMethods==null?void 0:e.paymentMethods.map(Rt),tracking_id:e.trackingId}}function ig(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("cancellationPolicies"in e)||e.cancellationPolicies===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("currency"in e)||e.currency===void 0||!("expiresAt"in e)||e.expiresAt===void 0||!("hasRoomingLists"in e)||e.hasRoomingLists===void 0||!("hotelId"in e)||e.hotelId===void 0||!("hotelRoomOffer"in e)||e.hotelRoomOffer===void 0||!("id"in e)||e.id===void 0||!("isCancellationPoliciesUpdated"in e)||e.isCancellationPoliciesUpdated===void 0||!("isPriceIncreased"in e)||e.isPriceIncreased===void 0)}function In(e){return Xa(e,!1)}function Xa(e,t){return e==null?e:{addons:e.addons==null?void 0:e.addons.map(vn),adultCount:e.adult_count,cancellationPolicies:e.cancellation_policies.map(lt),checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,currency:pe(e.currency),expiresAt:e.expires_at==null?null:new Date(e.expires_at),hasRoomingLists:e.has_rooming_lists,hotelId:e.hotel_id,hotelRoomOffer:Ee(e.hotel_room_offer),id:e.id,isCancellationPoliciesUpdated:e.is_cancellation_policies_updated,isPriceIncreased:e.is_price_increased}}function og(e){return Qa(e,!1)}function Qa(e,t=!1){return e==null?e:{addons:e.addons==null?void 0:e.addons.map(kn),adult_count:e.adultCount,cancellation_policies:e.cancellationPolicies.map(mt),check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,currency:e.currency,expires_at:e.expiresAt==null?e.expiresAt:e.expiresAt.toISOString(),has_rooming_lists:e.hasRoomingLists,hotel_id:e.hotelId,hotel_room_offer:Fe(e.hotelRoomOffer),id:e.id,is_cancellation_policies_updated:e.isCancellationPoliciesUpdated,is_price_increased:e.isPriceIncreased}}function ag(e){return!(!("hotelRoomOfferId"in e)||e.hotelRoomOfferId===void 0)}function sg(e){return xa(e,!1)}function xa(e,t){return e==null?e:{addBreakfast:e.add_breakfast==null?void 0:e.add_breakfast,breakfastCount:e.breakfast_count==null?void 0:e.breakfast_count,hotelRoomOfferId:e.hotel_room_offer_id,lang:e.lang==null?void 0:At(e.lang)}}function ja(e){return es(e,!1)}function es(e,t=!1){return e==null?e:{add_breakfast:e.addBreakfast,breakfast_count:e.breakfastCount,hotel_room_offer_id:e.hotelRoomOfferId,lang:e.lang}}function ug(e){return!0}function ts(e){return ns(e,!1)}function ns(e,t){return e==null?e:{endingBefore:e.ending_before==null?void 0:e.ending_before,limit:e.limit==null?void 0:e.limit,startingAfter:e.starting_after==null?void 0:e.starting_after,totalCount:e.total_count==null?void 0:e.total_count}}function rs(e){return is(e,!1)}function is(e,t=!1){return e==null?e:{ending_before:e.endingBefore,limit:e.limit,starting_after:e.startingAfter,total_count:e.totalCount}}function cg(e){return!(!("data"in e)||e.data===void 0||!("meta"in e)||e.meta===void 0)}function os(e){return as(e,!1)}function as(e,t){return e==null?e:{data:e.data.map(le),meta:ts(e.meta)}}function dg(e){return ss(e,!1)}function ss(e,t=!1){return e==null?e:{data:e.data.map(Aa),meta:rs(e.meta)}}var fg={ApiError:"api_error",BadGateway:"bad_gateway",InternalServerError:"internal_server_error",InvalidRequestError:"invalid_request_error",RateLimitError:"rate_limit_error",ResourceGone:"resource_gone",ResourceNotFound:"resource_not_found",Unauthorized:"unauthorized",ValidationError:"validation_error"};function lg(e){return!(!("statusCode"in e)||e.statusCode===void 0)}function mg(e){return us(e,!1)}function us(e,t){return e==null?e:{documentationUrl:e.documentation_url==null?void 0:e.documentation_url,error:e.error==null?void 0:e.error,message:e.message==null?void 0:e.message,statusCode:e.statusCode,type:e.type==null?void 0:e.type}}function pg(e){return cs(e,!1)}function cs(e,t=!1){return e==null?e:{documentation_url:e.documentationUrl,error:e.error,message:e.message,statusCode:e.statusCode,type:e.type}}function hg(e){return!(!("rating"in e)||e.rating===void 0)}function Mn(e){return ds(e,!1)}function ds(e,t){return e==null?e:{category:e.category==null?void 0:e.category,rating:e.rating}}function Dn(e){return fs(e,!1)}function fs(e,t=!1){return e==null?e:{category:e.category,rating:e.rating}}function yg(e){return!0}function Jn(e){return ls(e,!1)}function ls(e,t){return e==null?e:{count:e.count==null?void 0:e.count,highres:e.highres==null?void 0:e.highres,lowres:e.lowres==null?void 0:e.lowres,prefix:e.prefix==null?void 0:e.prefix,suffix:e.suffix==null?void 0:e.suffix,thumb:e.thumb==null?void 0:e.thumb}}function En(e){return ms(e,!1)}function ms(e,t=!1){return e==null?e:{count:e.count,highres:e.highres,lowres:e.lowres,prefix:e.prefix,suffix:e.suffix,thumb:e.thumb}}function gg(e){return!0}function ps(e){return hs(e,!1)}function hs(e,t){return e==null?e:{driving:e.driving==null?void 0:e.driving,transit:e.transit==null?void 0:e.transit,walking:e.walking==null?void 0:e.walking}}function ys(e){return gs(e,!1)}function gs(e,t=!1){return e==null?e:{driving:e.driving,transit:e.transit,walking:e.walking}}function _g(e){return!(!("name"in e)||e.name===void 0)}function Fn(e){return _s(e,!1)}function _s(e,t){return e==null?e:{description:e.description==null?void 0:e.description,name:e.name,travelTimes:e.travel_times==null?void 0:ps(e.travel_times)}}function zn(e){return Os(e,!1)}function Os(e,t=!1){return e==null?e:{description:e.description,name:e.name,travel_times:ys(e.travelTimes)}}function Og(e){return!(!("id"in e)||e.id===void 0||!("latitude"in e)||e.latitude===void 0||!("longitude"in e)||e.longitude===void 0||!("name"in e)||e.name===void 0||!("timezone"in e)||e.timezone===void 0)}function As(e){return Ss(e,!1)}function Ss(e,t){return e==null?e:{address:e.address==null?void 0:e.address,address2:e.address2==null?void 0:e.address2,amenities:e.amenities==null?void 0:mn(e.amenities),checkInTime:e.check_in_time==null?void 0:e.check_in_time,checkOutTime:e.check_out_time==null?void 0:e.check_out_time,city:e.city==null?void 0:e.city,country:e.country==null?void 0:e.country,countryCode:e.country_code==null?void 0:e.country_code,currency:e.currency==null?void 0:pe(e.currency),description:e.description==null?void 0:e.description,distance:e.distance==null?void 0:e.distance,email:e.email==null?void 0:e.email,fax:e.fax==null?void 0:e.fax,hotelImages:e.hotel_images==null?void 0:e.hotel_images.map(Je),hotelReviewRatings:e.hotel_review_ratings==null?void 0:e.hotel_review_ratings.map(Mn),id:e.id,images:e.images==null?void 0:Jn(e.images),latitude:e.latitude,longitude:e.longitude,name:e.name,phone:e.phone==null?void 0:e.phone,policy:e.policy==null?void 0:e.policy,postalCode:e.postal_code==null?void 0:e.postal_code,rating:e.rating==null?void 0:e.rating,reviewCount:e.review_count==null?void 0:e.review_count,state:e.state==null?void 0:e.state,taId:e.ta_id==null?void 0:e.ta_id,tags:e.tags==null?void 0:e.tags.map(gt),timezone:e.timezone,venues:e.venues==null?void 0:e.venues.map(Fn),website:e.website==null?void 0:e.website}}function Ag(e){return Ts(e,!1)}function Ts(e,t=!1){return e==null?e:{address:e.address,address2:e.address2,amenities:pn(e.amenities),check_in_time:e.checkInTime,check_out_time:e.checkOutTime,city:e.city,country:e.country,country_code:e.countryCode,currency:e.currency,description:e.description,distance:e.distance,email:e.email,fax:e.fax,hotel_images:e.hotelImages==null?void 0:e.hotelImages.map(Ke),hotel_review_ratings:e.hotelReviewRatings==null?void 0:e.hotelReviewRatings.map(Dn),id:e.id,images:En(e.images),latitude:e.latitude,longitude:e.longitude,name:e.name,phone:e.phone,policy:e.policy,postal_code:e.postalCode,rating:e.rating,review_count:e.reviewCount,state:e.state,ta_id:e.taId,tags:e.tags==null?void 0:e.tags.map(_t),timezone:e.timezone,venues:e.venues==null?void 0:e.venues.map(zn),website:e.website}}function Sg(e){return!(!("hotelImages"in e)||e.hotelImages===void 0||!("id"in e)||e.id===void 0||!("latitude"in e)||e.latitude===void 0||!("longitude"in e)||e.longitude===void 0||!("name"in e)||e.name===void 0||!("timezone"in e)||e.timezone===void 0||!("hotelRoomOffers"in e)||e.hotelRoomOffers===void 0)}function ws(e){return vs(e,!1)}function vs(e,t){return e==null?e:{address:e.address==null?void 0:e.address,address2:e.address2==null?void 0:e.address2,amenities:e.amenities==null?void 0:mn(e.amenities),checkInTime:e.check_in_time==null?void 0:e.check_in_time,checkOutTime:e.check_out_time==null?void 0:e.check_out_time,city:e.city==null?void 0:e.city,country:e.country==null?void 0:e.country,countryCode:e.country_code==null?void 0:e.country_code,currency:e.currency==null?void 0:pe(e.currency),description:e.description==null?void 0:e.description,distance:e.distance==null?void 0:e.distance,email:e.email==null?void 0:e.email,fax:e.fax==null?void 0:e.fax,hotelImages:e.hotel_images.map(Je),hotelReviewRatings:e.hotel_review_ratings==null?void 0:e.hotel_review_ratings.map(Mn),id:e.id,images:e.images==null?void 0:Jn(e.images),latitude:e.latitude,longitude:e.longitude,name:e.name,phone:e.phone==null?void 0:e.phone,policy:e.policy==null?void 0:e.policy,postalCode:e.postal_code==null?void 0:e.postal_code,rating:e.rating==null?void 0:e.rating,reviewCount:e.review_count==null?void 0:e.review_count,state:e.state==null?void 0:e.state,taId:e.ta_id==null?void 0:e.ta_id,tags:e.tags==null?void 0:e.tags.map(gt),timezone:e.timezone,venues:e.venues==null?void 0:e.venues.map(Fn),website:e.website==null?void 0:e.website,hotelRoomOffers:e.hotel_room_offers.map(Ee)}}function ks(e){return Rs(e,!1)}function Rs(e,t=!1){return e==null?e:{address:e.address,address2:e.address2,amenities:pn(e.amenities),check_in_time:e.checkInTime,check_out_time:e.checkOutTime,city:e.city,country:e.country,country_code:e.countryCode,currency:e.currency,description:e.description,distance:e.distance,email:e.email,fax:e.fax,hotel_images:e.hotelImages.map(Ke),hotel_review_ratings:e.hotelReviewRatings==null?void 0:e.hotelReviewRatings.map(Dn),id:e.id,images:En(e.images),latitude:e.latitude,longitude:e.longitude,name:e.name,phone:e.phone,policy:e.policy,postal_code:e.postalCode,rating:e.rating,review_count:e.reviewCount,state:e.state,ta_id:e.taId,tags:e.tags==null?void 0:e.tags.map(_t),timezone:e.timezone,venues:e.venues==null?void 0:e.venues.map(zn),website:e.website,hotel_room_offers:e.hotelRoomOffers.map(Fe)}}function Tg(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("createdAt"in e)||e.createdAt===void 0||!("id"in e)||e.id===void 0||!("latitude"in e)||e.latitude===void 0||!("longitude"in e)||e.longitude===void 0||!("roomCount"in e)||e.roomCount===void 0||!("sourceMarket"in e)||e.sourceMarket===void 0)}function $n(e){return Ns(e,!1)}function Ns(e,t){return e==null?e:{address:e.address==null?void 0:e.address,adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,createdAt:e.created_at,eventMetadata:e.event_metadata==null?void 0:ze(e.event_metadata),id:e.id,latitude:e.latitude,longitude:e.longitude,roomCount:e.room_count,sourceMarket:qe(e.source_market)}}function wg(e){return bs(e,!1)}function bs(e,t=!1){return e==null?e:{address:e.address,adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,created_at:e.createdAt,event_metadata:$e(e.eventMetadata),id:e.id,latitude:e.latitude,longitude:e.longitude,room_count:e.roomCount,source_market:e.sourceMarket}}function vg(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("roomCount"in e)||e.roomCount===void 0)}function kg(e){return Ps(e,!1)}function Ps(e,t){return e==null?e:{address:e.address==null?void 0:e.address,adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,eventMetadata:e.event_metadata==null?void 0:ze(e.event_metadata),latitude:e.latitude==null?void 0:e.latitude,longitude:e.longitude==null?void 0:e.longitude,roomCount:e.room_count}}function Cs(e){return Is(e,!1)}function Is(e,t=!1){return e==null?e:{address:e.address,adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,event_metadata:$e(e.eventMetadata),latitude:e.latitude,longitude:e.longitude,room_count:e.roomCount}}function Rg(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("currency"in e)||e.currency===void 0||!("hotelOffers"in e)||e.hotelOffers===void 0)}function Ms(e){return Ds(e,!1)}function Ds(e,t){return e==null?e:{adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,currency:pe(e.currency),hotelOffers:e.hotel_offers.map(ws),priceHistogram:e.price_histogram==null?void 0:e.price_histogram,priceMax:e.price_max==null?void 0:e.price_max,priceMin:e.price_min==null?void 0:e.price_min}}function Js(e){return Es(e,!1)}function Es(e,t=!1){return e==null?e:{adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,currency:e.currency,hotel_offers:e.hotelOffers.map(ks),price_histogram:e.priceHistogram,price_max:e.priceMax,price_min:e.priceMin}}var Nt={Complete:"COMPLETE",InProgress:"IN_PROGRESS"};function Ng(e){for(const t in Nt)if(Object.prototype.hasOwnProperty.call(Nt,t)&&Nt[t]===e)return!0;return!1}function Fs(e){return zs(e,!1)}function zs(e,t){return e}function bg(e){return e}function Pg(e,t){return e}function Cg(e){return!(!("status"in e)||e.status===void 0)}function Ln(e){return $s(e,!1)}function $s(e,t){return e==null?e:{endingBefore:e.ending_before==null?void 0:e.ending_before,limit:e.limit==null?void 0:e.limit,startingAfter:e.starting_after==null?void 0:e.starting_after,totalCount:e.total_count==null?void 0:e.total_count,status:Fs(e.status)}}function Hn(e){return Ls(e,!1)}function Ls(e,t=!1){return e==null?e:{ending_before:e.endingBefore,limit:e.limit,starting_after:e.startingAfter,total_count:e.totalCount,status:e.status}}function Ig(e){return!(!("data"in e)||e.data===void 0||!("meta"in e)||e.meta===void 0)}function Hs(e){return Bs(e,!1)}function Bs(e,t){return e==null?e:{data:Ms(e.data),event:e.event==null?void 0:wt(e.event),meta:Ln(e.meta)}}function Mg(e){return Us(e,!1)}function Us(e,t=!1){return e==null?e:{data:Js(e.data),event:vt(e.event),meta:Hn(e.meta)}}function Dg(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("currency"in e)||e.currency===void 0||!("hotelId"in e)||e.hotelId===void 0||!("hotelRoomOffer"in e)||e.hotelRoomOffer===void 0)}function Zs(e){return Gs(e,!1)}function Gs(e,t){return e==null?e:{adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,currency:pe(e.currency),hotelId:e.hotel_id,hotelRoomOffer:Ee(e.hotel_room_offer)}}function Jg(e){return qs(e,!1)}function qs(e,t=!1){return e==null?e:{adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,currency:e.currency,hotel_id:e.hotelId,hotel_room_offer:Fe(e.hotelRoomOffer)}}function Eg(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("hotelId"in e)||e.hotelId===void 0||!("roomCount"in e)||e.roomCount===void 0||!("createdAt"in e)||e.createdAt===void 0||!("id"in e)||e.id===void 0||!("sourceMarket"in e)||e.sourceMarket===void 0)}function Bn(e){return Ks(e,!1)}function Ks(e,t){return e==null?e:{adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,eventMetadata:e.event_metadata==null?void 0:ze(e.event_metadata),hotelId:e.hotel_id,roomCount:e.room_count,createdAt:e.created_at,id:e.id,sourceMarket:qe(e.source_market)}}function Fg(e){return Ys(e,!1)}function Ys(e,t=!1){return e==null?e:{adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,event_metadata:$e(e.eventMetadata),hotel_id:e.hotelId,room_count:e.roomCount,created_at:e.createdAt,id:e.id,source_market:e.sourceMarket}}function zg(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("hotelId"in e)||e.hotelId===void 0||!("roomCount"in e)||e.roomCount===void 0)}function $g(e){return Vs(e,!1)}function Vs(e,t){return e==null?e:{adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,eventMetadata:e.event_metadata==null?void 0:ze(e.event_metadata),hotelId:e.hotel_id,roomCount:e.room_count}}function Ws(e){return Xs(e,!1)}function Xs(e,t=!1){return e==null?e:{adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,event_metadata:$e(e.eventMetadata),hotel_id:e.hotelId,room_count:e.roomCount}}function Lg(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("currency"in e)||e.currency===void 0||!("hotelId"in e)||e.hotelId===void 0||!("hotelRoomOffers"in e)||e.hotelRoomOffers===void 0||!("hotelTimezone"in e)||e.hotelTimezone===void 0)}function Qs(e){return xs(e,!1)}function xs(e,t){return e==null?e:{adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,currency:pe(e.currency),hotelId:e.hotel_id,hotelRoomOffers:e.hotel_room_offers.map(Ee),hotelTimezone:e.hotel_timezone}}function js(e){return eu(e,!1)}function eu(e,t=!1){return e==null?e:{adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,currency:e.currency,hotel_id:e.hotelId,hotel_room_offers:e.hotelRoomOffers.map(Fe),hotel_timezone:e.hotelTimezone}}function Hg(e){return!(!("data"in e)||e.data===void 0||!("meta"in e)||e.meta===void 0)}function tu(e){return nu(e,!1)}function nu(e,t){return e==null?e:{data:Qs(e.data),event:e.event==null?void 0:wt(e.event),meta:Ln(e.meta)}}function Bg(e){return ru(e,!1)}function ru(e,t=!1){return e==null?e:{data:js(e.data),event:vt(e.event),meta:Hn(e.meta)}}function Ug(e){return!(!("count"in e)||e.count===void 0||!("hotelRoomOfferId"in e)||e.hotelRoomOfferId===void 0)}function iu(e){return ou(e,!1)}function ou(e,t){return e==null?e:{breakfastCount:e.breakfast_count==null?void 0:e.breakfast_count,count:e.count,hotelRoomOfferId:e.hotel_room_offer_id}}function au(e){return su(e,!1)}function su(e,t=!1){return e==null?e:{breakfast_count:e.breakfastCount,count:e.count,hotel_room_offer_id:e.hotelRoomOfferId}}function Zg(e){return!(!("currency"in e)||e.currency===void 0||!("hotelRoomOffers"in e)||e.hotelRoomOffers===void 0)}function Gg(e){return uu(e,!1)}function uu(e,t){return e==null?e:{addBreakfast:e.add_breakfast==null?void 0:e.add_breakfast,breakfastCount:e.breakfast_count==null?void 0:e.breakfast_count,currency:pe(e.currency),hotelRoomOffers:e.hotel_room_offers.map(iu),lang:e.lang==null?void 0:At(e.lang)}}function cu(e){return du(e,!1)}function du(e,t=!1){return e==null?e:{add_breakfast:e.addBreakfast,breakfast_count:e.breakfastCount,currency:e.currency,hotel_room_offers:e.hotelRoomOffers.map(au),lang:e.lang}}function qg(e){return!(!("fullname"in e)||e.fullname===void 0||!("hotelRoomingListId"in e)||e.hotelRoomingListId===void 0)}function Kg(e){return fu(e,!1)}function fu(e,t){return e==null?e:{fullname:e.fullname,hotelRoomingListId:e.hotel_rooming_list_id}}function lu(e){return mu(e,!1)}function mu(e,t=!1){return e==null?e:{fullname:e.fullname,hotel_rooming_list_id:e.hotelRoomingListId}}function Yg(e){return!(!("fullname"in e)||e.fullname===void 0)}function Vg(e){return pu(e,!1)}function pu(e,t){return e==null?e:{fullname:e.fullname}}function hu(e){return yu(e,!1)}function yu(e,t=!1){return e==null?e:{fullname:e.fullname}}function Wg(e){return!(!("paymentMethods"in e)||e.paymentMethods===void 0)}function Xg(e){return gu(e,!1)}function gu(e,t){return e==null?e:{paymentMethods:e.payment_methods.map(Cn)}}function _u(e){return Ou(e,!1)}function Ou(e,t=!1){return e==null?e:{payment_methods:e.paymentMethods.map(Rt)}}var Qg={AddOrRemoveNights:"add_or_remove_nights",AddOrRemovePerson:"add_or_remove_person",ChangeDates:"change_dates",ChangeGuestName:"change_guest_name",EarlyCheckIn:"early_check_in",EarlyCheckInLateCheckOut:"early_check_in_late_check_out",LateCheckOut:"late_check_out",Other:"other",SpecialRequest:"special_request"};function xg(e){return!(!("message"in e)||e.message===void 0||!("requestType"in e)||e.requestType===void 0)}function jg(e){return Au(e,!1)}function Au(e,t){return e==null?e:{message:e.message,requestType:e.request_type}}function Su(e){return Tu(e,!1)}function Tu(e,t=!1){return e==null?e:{message:e.message,request_type:e.requestType}}var wu=class extends ce{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling getV1BookingPolicy.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/booking_policies/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:E(n,D.Snake)},t);return new q(i,o=>In(o))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}async paymentMethodsRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling getV1BookingPolicyIdPaymentMethods.");const n={};e.couponCodes&&(n.coupon_codes=e.couponCodes);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/booking_policies/{id}/payment_methods".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:E(n,D.Snake)},t);return new q(i,o=>o.map(qi))}async paymentMethods(e,t){return await(await this.paymentMethodsRaw(e,t)).value()}async createRaw(e,t){const n={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/booking_policies",method:"POST",headers:r,query:E(n,D.Snake),body:E(ja(e.bookingPoliciesCreateApi),D.Snake)},t);return new q(i,o=>In(o))}async create(e={},t){return await(await this.createRaw(e,t)).value()}},vu=class extends ce{async deleteRaw(e,t){if(e.token===null||e.token===void 0)throw new Z("token","Required parameter requestParameters.token was null or undefined when calling deleteV1BookingsToken.");const n=await this.request({path:"/v1/bookings/{token}".replace("{token}",encodeURIComponent(String(e.token))),method:"DELETE",headers:{},query:E({},D.Snake)},t);return new q(n,r=>le(r))}async delete(e,t){return await(await this.deleteRaw(e,t)).value()}async listRaw(e,t){const n={};e.endingBefore!==void 0&&(n.ending_before=e.endingBefore),e.filterByCheckInDate!==void 0&&(n.filter_by_check_in_date=e.filterByCheckInDate),e.filterByLastStatusUpdatedAt!==void 0&&(n.filter_by_last_status_updated_at=e.filterByLastStatusUpdatedAt),e.filterByMetadata!==void 0&&(n.filter_by_metadata=e.filterByMetadata),e.filterByStatus!==void 0&&(n.filter_by_status=e.filterByStatus),e.limit!==void 0&&(n.limit=e.limit),e.sortBy!==void 0&&(n.sort_by=e.sortBy),e.sortByOrder!==void 0&&(n.sort_by_order=e.sortByOrder),e.startingAfter!==void 0&&(n.starting_after=e.startingAfter);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings",method:"GET",headers:r,query:E(n,D.Snake)},t);return new q(i,o=>os(o))}async list(e={},t){return await(await this.listRaw(e,t)).value()}async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling getV1BookingsId.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:E(n,D.Snake)},t);return new q(i,o=>le(o))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}async certificateRaw(e,t){if(e.token===null||e.token===void 0)throw new Z("token","Required parameter requestParameters.token was null or undefined when calling getV1BookingsTokenCertificate.");if(e.customerName===null||e.customerName===void 0)throw new Z("customerName","Required parameter requestParameters.customerName was null or undefined when calling getV1BookingsTokenCertificate.");const n={};e.customerName!==void 0&&(n.customer_name=e.customerName),e.locale!==void 0&&(n.locale=e.locale);const r=await this.request({path:"/v1/bookings/{token}/certificate".replace("{token}",encodeURIComponent(String(e.token))),method:"GET",headers:{},query:E(n,D.Snake)},t);return new vi(r)}async certificate(e,t){await this.certificateRaw(e,t)}async retrievePublicRaw(e,t){if(e.token===null||e.token===void 0)throw new Z("token","Required parameter requestParameters.token was null or undefined when calling getV1BookingsTokenPublic.");const n=await this.request({path:"/v1/bookings/{token}/public".replace("{token}",encodeURIComponent(String(e.token))),method:"GET",headers:{},query:E({},D.Snake)},t);return new q(n,r=>le(r))}async retrievePublic(e,t){return await(await this.retrievePublicRaw(e,t)).value()}async createRaw(e,t){const n={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings",method:"POST",headers:r,query:E(n,D.Snake),body:E(Va(e.bookingCreateApi),D.Snake)},t);return new q(i,o=>le(o))}async create(e={},t){return await(await this.createRaw(e,t)).value()}async couponChargeRaw(e,t){if(e.couponId===null||e.couponId===void 0)throw new Z("couponId","Required parameter requestParameters.couponId was null or undefined when calling postV1BookingsIdCouponsCouponIdCharge.");if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdCouponsCouponIdCharge.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings/{id}/coupons/{coupon_id}/charge".replace("{coupon_id}",encodeURIComponent(String(e.couponId))).replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:r,query:E(n,D.Snake)},t);return new q(i,o=>le(o))}async couponCharge(e,t){return await(await this.couponChargeRaw(e,t)).value()}async paylaterRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdPayLater.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings/{id}/pay-later".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:r,query:E(n,D.Snake)},t);return new q(i,o=>le(o))}async paylater(e,t){return await(await this.paylaterRaw(e,t)).value()}async confirmpaylaterRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdPayLaterConfirm.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings/{id}/pay-later/confirm".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:r,query:E(n,D.Snake)},t);return new q(i,o=>le(o))}async confirmpaylater(e,t){return await(await this.confirmpaylaterRaw(e,t)).value()}async confirmRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdconfirm.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings/{id}/confirm".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:r,query:E(n,D.Snake)},t);return new q(i,o=>le(o))}async confirm(e,t){return await(await this.confirmRaw(e,t)).value()}async submitRequestRaw(e,t){if(e.token===null||e.token===void 0)throw new Z("token","Required parameter requestParameters.token was null or undefined when calling postV1BookingsTokenRequest.");const n={},r={};r["Content-Type"]="application/json";const i=await this.request({path:"/v1/bookings/{token}/request".replace("{token}",encodeURIComponent(String(e.token))),method:"POST",headers:r,query:E(n,D.Snake),body:E(Su(e.requestPayload),D.Snake)},t);return new un(i)}async submitRequest(e,t){return await(await this.submitRequestRaw(e,t)).value()}async updatePaymentMethodsRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling putV1BookingsIdPaymentMethods.");const n={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings/{id}/payment_methods".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:r,query:E(n,D.Snake),body:E(_u(e.paymentMethodUpdatePayloadApi),D.Snake)},t);return new q(i,o=>le(o))}async updatePaymentMethods(e,t){return await(await this.updatePaymentMethodsRaw(e,t)).value()}},e_={CheckInDate:"check_in_date",CreatedAt:"created_at",LastStatusUpdatedAt:"last_status_updated_at"},t_={Asc:"asc",Desc:"desc"},ku=class extends ce{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelsIdImages.");const n={};e.lang!==void 0&&(n.lang=e.lang);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotels/{id}/images".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:E(n,D.Snake)},t);return new q(i,o=>o.map(Je))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}},Ru=class extends ce{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelOfferRequestsId.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_offer_requests/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:E(n,D.Snake)},t);return new q(i,o=>$n(o))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}async createRaw(e,t){const n={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_offer_requests",method:"POST",headers:r,query:E(n,D.Snake),body:E(Cs(e.hotelOfferRequestCreateApi),D.Snake)},t);return new q(i,o=>$n(o))}async create(e={},t){return await(await this.createRaw(e,t)).value()}},Nu=class extends ce{async listRaw(e,t){if(e.currency===null||e.currency===void 0)throw new Z("currency","Required parameter requestParameters.currency was null or undefined when calling getV1HotelOffers.");if(e.hotelOfferRequestId===null||e.hotelOfferRequestId===void 0)throw new Z("hotelOfferRequestId","Required parameter requestParameters.hotelOfferRequestId was null or undefined when calling getV1HotelOffers.");const n={};e.currency!==void 0&&(n.currency=e.currency),e.endingBefore!==void 0&&(n.ending_before=e.endingBefore),e.filterByPrice!==void 0&&(n.filter_by_price=e.filterByPrice),e.filterByReviewRating!==void 0&&(n.filter_by_review_rating=e.filterByReviewRating),e.filterByStar!==void 0&&(n.filter_by_star=e.filterByStar),e.hotelOfferRequestId!==void 0&&(n.hotel_offer_request_id=e.hotelOfferRequestId),e.hotelRoomOffersLimit!==void 0&&(n.hotel_room_offers_limit=e.hotelRoomOffersLimit),e.includeHotelContentDetails!==void 0&&(n.include_hotel_content_details=e.includeHotelContentDetails),e.lang!==void 0&&(n.lang=e.lang),e.limit!==void 0&&(n.limit=e.limit),e.onlyRecommendedHotelOffers!==void 0&&(n.only_recommended_hotel_offers=e.onlyRecommendedHotelOffers),e.priceHistogramStepCount!==void 0&&(n.price_histogram_step_count=e.priceHistogramStepCount),e.sortBy!==void 0&&(n.sort_by=e.sortBy),e.sortByOrder!==void 0&&(n.sort_by_order=e.sortByOrder),e.startingAfter!==void 0&&(n.starting_after=e.startingAfter);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_offers",method:"GET",headers:r,query:E(n,D.Snake)},t);return new q(i,o=>Hs(o))}list(e,t,n){const r=async()=>(await this.listRaw(e,n)).value(),i={type:Wn.HOTEL_SEARCH_POLLING,minCallCount:n?.minCallCount,maxCallCount:n?.maxCallCount};return t?Xe(r,i,t):Xe(r,i)}},n_={Distance:"distance",Price:"price",Rating:"rating",ReviewRating:"review_rating",TopPicks:"top_picks"},r_={Asc:"asc",Desc:"desc"},bu=class extends ce{async deleteRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling deleteV1HotelRoomingListGuestsTokenId.");if(e.token===null||e.token===void 0)throw new Z("token","Required parameter requestParameters.token was null or undefined when calling deleteV1HotelRoomingListGuestsTokenId.");const n=await this.request({path:"/v1/hotel_rooming_list_guests/{token}/{id}".replace("{id}",encodeURIComponent(String(e.id))).replace("{token}",encodeURIComponent(String(e.token))),method:"DELETE",headers:{},query:E({},D.Snake)},t);return new un(n)}async delete(e,t){return await(await this.deleteRaw(e,t)).value()}async updateRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling patchV1HotelRoomingListGuestsTokenId.");if(e.token===null||e.token===void 0)throw new Z("token","Required parameter requestParameters.token was null or undefined when calling patchV1HotelRoomingListGuestsTokenId.");const n={},r={};r["Content-Type"]="application/json";const i=await this.request({path:"/v1/hotel_rooming_list_guests/{token}/{id}".replace("{id}",encodeURIComponent(String(e.id))).replace("{token}",encodeURIComponent(String(e.token))),method:"PATCH",headers:r,query:E(n,D.Snake),body:E(hu(e.hotelRoomingListGuestsUpdateApi),D.Snake)},t);return new q(i,o=>kt(o))}async update(e,t){return await(await this.updateRaw(e,t)).value()}async createRaw(e,t){if(e.token===null||e.token===void 0)throw new Z("token","Required parameter requestParameters.token was null or undefined when calling postV1HotelRoomingListGuestsToken.");const n={},r={};r["Content-Type"]="application/json";const i=await this.request({path:"/v1/hotel_rooming_list_guests/{token}".replace("{token}",encodeURIComponent(String(e.token))),method:"POST",headers:r,query:E(n,D.Snake),body:E(lu(e.hotelRoomingListGuestsCreateApi),D.Snake)},t);return new q(i,o=>kt(o))}async create(e,t){return await(await this.createRaw(e,t)).value()}},Pu=class extends ce{async listRaw(e,t){if(e.token===null||e.token===void 0)throw new Z("token","Required parameter requestParameters.token was null or undefined when calling getV1HotelRoomingListsToken.");const n={};e.lang!==void 0&&(n.lang=e.lang);const r=await this.request({path:"/v1/hotel_rooming_lists/{token}".replace("{token}",encodeURIComponent(String(e.token))),method:"GET",headers:{},query:E(n,D.Snake)},t);return new q(r,i=>i.map(Rn))}async list(e,t){return await(await this.listRaw(e,t)).value()}},Cu=class extends ce{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelRoomOffersIdImages.");const n={};e.lang!==void 0&&(n.lang=e.lang);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_room_offers/{id}/images".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:E(n,D.Snake)},t);return new q(i,o=>E(o,D.Camel))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}},Iu=class extends ce{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelRoomOfferRequestsId.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_room_offer_requests/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:E(n,D.Snake)},t);return new q(i,o=>Bn(o))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}async createRaw(e,t){const n={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_room_offer_requests",method:"POST",headers:r,query:E(n,D.Snake),body:E(Ws(e.hotelRoomOfferRequestCreateApi),D.Snake)},t);return new q(i,o=>Bn(o))}async create(e={},t){return await(await this.createRaw(e,t)).value()}},Mu=class extends ce{async listRaw(e,t){if(e.currency===null||e.currency===void 0)throw new Z("currency","Required parameter requestParameters.currency was null or undefined when calling getV1HotelRoomOffers.");if(e.hotelRoomOfferRequestId===null||e.hotelRoomOfferRequestId===void 0)throw new Z("hotelRoomOfferRequestId","Required parameter requestParameters.hotelRoomOfferRequestId was null or undefined when calling getV1HotelRoomOffers.");const n={};e.currency!==void 0&&(n.currency=e.currency),e.hotelRoomOfferRequestId!==void 0&&(n.hotel_room_offer_request_id=e.hotelRoomOfferRequestId),e.lang!==void 0&&(n.lang=e.lang),e.limit!==void 0&&(n.limit=e.limit);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_room_offers",method:"GET",headers:r,query:E(n,D.Snake)},t);return new q(i,o=>tu(o))}list(e,t,n){const r=async()=>(await this.listRaw(e,n)).value(),i={type:Wn.HOTEL_ROOM_OFFERS,minCallCount:n?.minCallCount,maxCallCount:n?.maxCallCount};return t?Xe(r,i,t):Xe(r,i)}async createRaw(e,t){const n={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_room_offers",method:"POST",headers:r,query:E(n,D.Snake),body:E(cu(e.hotelRoomOffersCreateApi),D.Snake)},t);return new q(i,o=>Zs(o))}async create(e={},t){return await(await this.createRaw(e,t)).value()}},Du=class extends ce{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelsId.");const n={};e.event!==void 0&&(n.event=e.event),e.eventId!==void 0&&(n.event_id=e.eventId),e.eventSlug!==void 0&&(n.event_slug=e.eventSlug),e.lang!==void 0&&(n.lang=e.lang);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotels/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:E(n,D.Snake)},t);return new q(i,o=>As(o))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}},Ju=class extends on{documentationUrl;status;title;type;constructor(e){super(e.response,e.body?.message??`Request failed with status ${e.status}`),this.status=e.status,this.type=e.body?.type,this.title=e.body?.title,this.documentationUrl=e.body?.documentationUrl}},i_=class{async post(e){const{response:t}=e;if(t.ok)return;let n;try{n=await t.clone().json()}catch{n=void 0}throw new Ju({body:n,response:t,status:t.status})}},Eu=e=>({bookingPolicies:new wu(e),bookings:new vu(e),hotelImages:new ku(e),hotelOfferRequests:new Ru(e),hotelOffers:new Nu(e),hotelRoomingListGuests:new bu(e),hotelRoomingLists:new Pu(e),hotelRoomOfferImages:new Cu(e),hotelRoomOfferRequests:new Iu(e),hotelRoomOffers:new Mu(e),hotels:new Du(e)});function o_(e){switch(e){case be.CiCd:return"AUTH_TOKEN_CICD";case be.Local:return"AUTH_TOKEN_LOCAL";case be.Production:return"AUTH_TOKEN";case be.Sandbox:return"AUTH_TOKEN_SANDBOX";case be.Staging:return"AUTH_TOKEN_STAGING";case void 0:default:return"AUTH_TOKEN"}}function Fu(e){return!!(typeof document<"u"&&document?.cookie&&document.cookie.split(";").find(t=>t.includes(o_(e))))}var a_=class{config;constructor(e){this.config=e}async pre(e){return e.init.mode="cors",Fu(this.config.apiEnvironment)&&(e.init.credentials="include"),e}},s_=class{config;constructor(e){this.config=e}async pre(e){return Fu(this.config.apiEnvironment)&&(e.init.headers={...e.init.headers,"x-auth-type":"user"}),e}},u_=class{config;apiVersionsToClient;constructor(e){if(this.config=e,!e.apiVersion||!Object.values(Vn).includes(e.apiVersion))throw new Error(`Invalid Revolugo Api Version. Possible versions are : ${JSON.stringify(Object.values(Vn))}`);let t={"x-api-key":this.config.apiKey};this.config.optionalHeaders&&(t={...t,...this.config.optionalHeaders});const n=this.config.apiEnvironment;let r=this.config.apiBaseUrl??Bu[n];!this.config.apiBaseUrl&&n===be.Local&&(r="http://127.0.0.1:3001");const i=new an({basePath:r,fetchApi:Zu.default,headers:t,middleware:[new a_(this.config),new s_(this.config),new i_]});this.apiVersionsToClient={v1:Eu(i)}}get bookingPolicies(){return this.apiVersionsToClient[this.config.apiVersion].bookingPolicies}get bookings(){return this.apiVersionsToClient[this.config.apiVersion].bookings}get hotelImages(){return this.apiVersionsToClient[this.config.apiVersion].hotelImages}get hotelOfferRequests(){return this.apiVersionsToClient[this.config.apiVersion].hotelOfferRequests}get hotelOffers(){return this.apiVersionsToClient[this.config.apiVersion].hotelOffers}get hotelRoomingListGuests(){return this.apiVersionsToClient[this.config.apiVersion].hotelRoomingListGuests}get hotelRoomingLists(){return this.apiVersionsToClient[this.config.apiVersion].hotelRoomingLists}get hotelRoomOfferImages(){return this.apiVersionsToClient[this.config.apiVersion].hotelRoomOfferImages}get hotelRoomOfferRequests(){return this.apiVersionsToClient[this.config.apiVersion].hotelRoomOfferRequests}get hotelRoomOffers(){return this.apiVersionsToClient[this.config.apiVersion].hotelRoomOffers}get hotels(){return this.apiVersionsToClient[this.config.apiVersion].hotels}};a.AllowedPaymentMethodApiFromJSON=qi,a.AllowedPaymentMethodApiFromJSONTyped=Ki,a.AllowedPaymentMethodApiToJSON=Yi,a.AllowedPaymentMethodApiToJSONTyped=Ph,a.AllowedPaymentMethodCouponApiFromJSON=gh,a.AllowedPaymentMethodCouponApiFromJSONTyped=cn,a.AllowedPaymentMethodCouponApiNameEnum=hh,a.AllowedPaymentMethodCouponApiPayloadInnerErrorEnum=mh,a.AllowedPaymentMethodCouponApiPayloadInnerFromJSON=Pi,a.AllowedPaymentMethodCouponApiPayloadInnerFromJSONTyped=Ci,a.AllowedPaymentMethodCouponApiPayloadInnerToJSON=Ii,a.AllowedPaymentMethodCouponApiPayloadInnerToJSONTyped=Mi,a.AllowedPaymentMethodCouponApiToJSON=Di,a.AllowedPaymentMethodCouponApiToJSONTyped=Ji,a.AllowedPaymentMethodCreditCardApiFromJSON=Ah,a.AllowedPaymentMethodCreditCardApiFromJSONTyped=dn,a.AllowedPaymentMethodCreditCardApiNameEnum=_h,a.AllowedPaymentMethodCreditCardApiToJSON=Ei,a.AllowedPaymentMethodCreditCardApiToJSONTyped=Fi,a.AllowedPaymentMethodDepositAccountApiFromJSON=wh,a.AllowedPaymentMethodDepositAccountApiFromJSONTyped=fn,a.AllowedPaymentMethodDepositAccountApiNameEnum=Sh,a.AllowedPaymentMethodDepositAccountApiToJSON=zi,a.AllowedPaymentMethodDepositAccountApiToJSONTyped=$i,a.AllowedPaymentMethodPayLaterApiFromJSON=bh,a.AllowedPaymentMethodPayLaterApiFromJSONTyped=ln,a.AllowedPaymentMethodPayLaterApiNameEnum=Rh,a.AllowedPaymentMethodPayLaterApiPayloadFromJSON=Li,a.AllowedPaymentMethodPayLaterApiPayloadFromJSONTyped=Hi,a.AllowedPaymentMethodPayLaterApiPayloadStatusEnum=vh,a.AllowedPaymentMethodPayLaterApiPayloadToJSON=Bi,a.AllowedPaymentMethodPayLaterApiPayloadToJSONTyped=Ui,a.AllowedPaymentMethodPayLaterApiToJSON=Zi,a.AllowedPaymentMethodPayLaterApiToJSONTyped=Gi,a.AmenitiesApiFromJSON=mn,a.AmenitiesApiFromJSONTyped=Vi,a.AmenitiesApiToJSON=pn,a.AmenitiesApiToJSONTyped=Wi,a.ApiClient=u_,a.ApiError=Ju,a.BASE_PATH=wi,a.BaseAPI=ce,a.BedApiFromJSON=Mh,a.BedApiFromJSONTyped=Xi,a.BedApiToJSON=Dh,a.BedApiToJSONTyped=Qi,a.BlobApiResponse=oh,a.BookingApiFromJSON=le,a.BookingApiFromJSONTyped=Oa,a.BookingApiPayLaterEnum=zy,a.BookingApiStatusEnum=$y,a.BookingApiToJSON=Aa,a.BookingApiToJSONTyped=Sa,a.BookingCreateApiFromJSON=rg,a.BookingCreateApiFromJSONTyped=Ya,a.BookingCreateApiGuestsListInnerFromJSON=Ca,a.BookingCreateApiGuestsListInnerFromJSONTyped=Ia,a.BookingCreateApiGuestsListInnerGuestsInnerFromJSON=Ra,a.BookingCreateApiGuestsListInnerGuestsInnerFromJSONTyped=Na,a.BookingCreateApiGuestsListInnerGuestsInnerToJSON=ba,a.BookingCreateApiGuestsListInnerGuestsInnerToJSONTyped=Pa,a.BookingCreateApiGuestsListInnerToJSON=Ma,a.BookingCreateApiGuestsListInnerToJSONTyped=Da,a.BookingCreateApiToJSON=Va,a.BookingCreateApiToJSONTyped=Wa,a.BookingPolicies=wu,a.BookingPoliciesApiFromJSON=In,a.BookingPoliciesApiFromJSONTyped=Xa,a.BookingPoliciesApiToJSON=og,a.BookingPoliciesApiToJSONTyped=Qa,a.BookingPoliciesCreateApiFromJSON=sg,a.BookingPoliciesCreateApiFromJSONTyped=xa,a.BookingPoliciesCreateApiToJSON=ja,a.BookingPoliciesCreateApiToJSONTyped=es,a.Bookings=vu,a.BookingsApiResponseFromJSON=os,a.BookingsApiResponseFromJSONTyped=as,a.BookingsApiResponseToJSON=dg,a.BookingsApiResponseToJSONTyped=ss,a.BookingsSortByEnum=e_,a.BookingsSortByOrderEnum=t_,a.BreakfastOption=ht,a.BreakfastOptionFromJSON=so,a.BreakfastOptionFromJSONTyped=uo,a.BreakfastOptionToJSON=Bh,a.BreakfastOptionToJSONTyped=Uh,a.COLLECTION_FORMATS=nh,a.CancellationPolicyApiFromJSON=lt,a.CancellationPolicyApiFromJSONTyped=xi,a.CancellationPolicyApiToJSON=mt,a.CancellationPolicyApiToJSONTyped=ji,a.Configuration=an,a.ContactPersonApiFromJSON=gn,a.ContactPersonApiFromJSONTyped=wo,a.ContactPersonApiSalutationEnum=sy,a.ContactPersonApiToJSON=_n,a.ContactPersonApiToJSONTyped=vo,a.ContactPersonOrganizationApiFromJSON=Oo,a.ContactPersonOrganizationApiFromJSONTyped=Ao,a.ContactPersonOrganizationApiToJSON=So,a.ContactPersonOrganizationApiToJSONTyped=To,a.CountryIso2Code=St,a.CountryIso2CodeFromJSON=Tt,a.CountryIso2CodeFromJSONTyped=_o,a.CountryIso2CodeToJSON=iy,a.CountryIso2CodeToJSONTyped=oy,a.CouponPreviewAppliedApiFromJSON=sh,a.CouponPreviewAppliedApiFromJSONTyped=ki,a.CouponPreviewAppliedApiToJSON=uh,a.CouponPreviewAppliedApiToJSONTyped=Ri,a.CouponPreviewRejectedApiErrorEnum=ch,a.CouponPreviewRejectedApiFromJSON=fh,a.CouponPreviewRejectedApiFromJSONTyped=Ni,a.CouponPreviewRejectedApiToJSON=lh,a.CouponPreviewRejectedApiToJSONTyped=bi,a.CurrencyClient=yt,a.CurrencyClientFromJSON=pe,a.CurrencyClientFromJSONTyped=lo,a.CurrencyClientToJSON=Yh,a.CurrencyClientToJSONTyped=Vh,a.ErrorApiResponseFromJSON=mg,a.ErrorApiResponseFromJSONTyped=us,a.ErrorApiResponseToJSON=pg,a.ErrorApiResponseToJSONTyped=cs,a.ErrorApiResponseTypeEnum=fg,a.EventApiFromJSON=wt,a.EventApiFromJSONTyped=sa,a.EventApiToJSON=vt,a.EventApiToJSONTyped=ua,a.EventMetadataApiFromJSON=ze,a.EventMetadataApiFromJSONTyped=Ja,a.EventMetadataApiToJSON=$e,a.EventMetadataApiToJSONTyped=Ea,a.HotelApiFromJSON=As,a.HotelApiFromJSONTyped=Ss,a.HotelApiImagesFromJSON=Jn,a.HotelApiImagesFromJSONTyped=ls,a.HotelApiImagesToJSON=En,a.HotelApiImagesToJSONTyped=ms,a.HotelApiToJSON=Ag,a.HotelApiToJSONTyped=Ts,a.HotelImageApiFromJSON=Je,a.HotelImageApiFromJSONTyped=to,a.HotelImageApiToJSON=Ke,a.HotelImageApiToJSONTyped=no,a.HotelImages=ku,a.HotelOfferApiFromJSON=ws,a.HotelOfferApiFromJSONTyped=vs,a.HotelOfferApiToJSON=ks,a.HotelOfferApiToJSONTyped=Rs,a.HotelOfferRequestApiResponseFromJSON=$n,a.HotelOfferRequestApiResponseFromJSONTyped=Ns,a.HotelOfferRequestApiResponseToJSON=wg,a.HotelOfferRequestApiResponseToJSONTyped=bs,a.HotelOfferRequestCreateApiFromJSON=kg,a.HotelOfferRequestCreateApiFromJSONTyped=Ps,a.HotelOfferRequestCreateApiToJSON=Cs,a.HotelOfferRequestCreateApiToJSONTyped=Is,a.HotelOfferRequests=Ru,a.HotelOffers=Nu,a.HotelOffersApiResponseFromJSON=Hs,a.HotelOffersApiResponseFromJSONTyped=Bs,a.HotelOffersApiResponseToJSON=Mg,a.HotelOffersApiResponseToJSONTyped=Us,a.HotelOffersDataApiResponseFromJSON=Ms,a.HotelOffersDataApiResponseFromJSONTyped=Ds,a.HotelOffersDataApiResponseToJSON=Js,a.HotelOffersDataApiResponseToJSONTyped=Es,a.HotelOffersSortByEnum=n_,a.HotelOffersSortByOrderEnum=r_,a.HotelReviewRatingApiFromJSON=Mn,a.HotelReviewRatingApiFromJSONTyped=ds,a.HotelReviewRatingApiToJSON=Dn,a.HotelReviewRatingApiToJSONTyped=fs,a.HotelRoomOfferApiFromJSON=Ee,a.HotelRoomOfferApiFromJSONTyped=ho,a.HotelRoomOfferApiHotelRoomsInnerFromJSON=ro,a.HotelRoomOfferApiHotelRoomsInnerFromJSONTyped=io,a.HotelRoomOfferApiHotelRoomsInnerToJSON=oo,a.HotelRoomOfferApiHotelRoomsInnerToJSONTyped=ao,a.HotelRoomOfferApiPackageTypeEnum=Xh,a.HotelRoomOfferApiResponseFromJSON=Zs,a.HotelRoomOfferApiResponseFromJSONTyped=Gs,a.HotelRoomOfferApiResponseToJSON=Jg,a.HotelRoomOfferApiResponseToJSONTyped=qs,a.HotelRoomOfferApiStayTaxesInfoEnum=Qh,a.HotelRoomOfferApiToJSON=Fe,a.HotelRoomOfferApiToJSONTyped=yo,a.HotelRoomOfferApiTypeEnum=xh,a.HotelRoomOfferImages=Cu,a.HotelRoomOfferRequestApiResponseFromJSON=Bn,a.HotelRoomOfferRequestApiResponseFromJSONTyped=Ks,a.HotelRoomOfferRequestApiResponseToJSON=Fg,a.HotelRoomOfferRequestApiResponseToJSONTyped=Ys,a.HotelRoomOfferRequestCreateApiFromJSON=$g,a.HotelRoomOfferRequestCreateApiFromJSONTyped=Vs,a.HotelRoomOfferRequestCreateApiToJSON=Ws,a.HotelRoomOfferRequestCreateApiToJSONTyped=Xs,a.HotelRoomOfferRequests=Iu,a.HotelRoomOffers=Mu,a.HotelRoomOffersApiResponseFromJSON=tu,a.HotelRoomOffersApiResponseFromJSONTyped=nu,a.HotelRoomOffersApiResponseToJSON=Bg,a.HotelRoomOffersApiResponseToJSONTyped=ru,a.HotelRoomOffersCreateApiFromJSON=Gg,a.HotelRoomOffersCreateApiFromJSONTyped=uu,a.HotelRoomOffersCreateApiToJSON=cu,a.HotelRoomOffersCreateApiToJSONTyped=du,a.HotelRoomOffersDataApiResponseFromJSON=Qs,a.HotelRoomOffersDataApiResponseFromJSONTyped=xs,a.HotelRoomOffersDataApiResponseToJSON=js,a.HotelRoomOffersDataApiResponseToJSONTyped=eu,a.HotelRoomOffersDataCreateApiFromJSON=iu,a.HotelRoomOffersDataCreateApiFromJSONTyped=ou,a.HotelRoomOffersDataCreateApiToJSON=au,a.HotelRoomOffersDataCreateApiToJSONTyped=su,a.HotelRoomingListApiFromJSON=Rn,a.HotelRoomingListApiFromJSONTyped=ya,a.HotelRoomingListApiHotelRoomFromJSON=ca,a.HotelRoomingListApiHotelRoomFromJSONTyped=da,a.HotelRoomingListApiHotelRoomToJSON=fa,a.HotelRoomingListApiHotelRoomToJSONTyped=la,a.HotelRoomingListApiToJSON=ga,a.HotelRoomingListApiToJSONTyped=_a,a.HotelRoomingListGuestApiFromJSON=kt,a.HotelRoomingListGuestApiFromJSONTyped=ma,a.HotelRoomingListGuestApiToJSON=pa,a.HotelRoomingListGuestApiToJSONTyped=ha,a.HotelRoomingListGuests=bu,a.HotelRoomingListGuestsCreateApiFromJSON=Kg,a.HotelRoomingListGuestsCreateApiFromJSONTyped=fu,a.HotelRoomingListGuestsCreateApiToJSON=lu,a.HotelRoomingListGuestsCreateApiToJSONTyped=mu,a.HotelRoomingListGuestsUpdateApiFromJSON=Vg,a.HotelRoomingListGuestsUpdateApiFromJSONTyped=pu,a.HotelRoomingListGuestsUpdateApiToJSON=hu,a.HotelRoomingListGuestsUpdateApiToJSONTyped=yu,a.HotelRoomingLists=Pu,a.Hotels=Du,a.InsuranceApiFromJSON=Qo,a.InsuranceApiFromJSONTyped=xo,a.InsuranceApiStatusEnum=Ny,a.InsuranceApiToJSON=jo,a.InsuranceApiToJSONTyped=ea,a.InvoiceApiFromJSON=ta,a.InvoiceApiFromJSONTyped=na,a.InvoiceApiToJSON=ra,a.InvoiceApiToJSONTyped=ia,a.InvoiceApiTypeEnum=Py,a.JSONApiResponse=q,a.Locale=Ot,a.LocaleFromJSON=At,a.LocaleFromJSONTyped=go,a.LocaleToJSON=ty,a.LocaleToJSONTyped=ny,a.MetaPollingResponseApiFromJSON=Ln,a.MetaPollingResponseApiFromJSONTyped=$s,a.MetaPollingResponseApiToJSON=Hn,a.MetaPollingResponseApiToJSONTyped=Ls,a.MetaResponseApiFromJSON=ts,a.MetaResponseApiFromJSONTyped=ns,a.MetaResponseApiToJSON=rs,a.MetaResponseApiToJSONTyped=is,a.OrderAddonFromJSON=vn,a.OrderAddonFromJSONTyped=oa,a.OrderAddonSelectionFromJSON=Ta,a.OrderAddonSelectionFromJSONTyped=wa,a.OrderAddonSelectionToJSON=va,a.OrderAddonSelectionToJSONTyped=ka,a.OrderAddonSelectionTypeEnum=Hy,a.OrderAddonToJSON=kn,a.OrderAddonToJSONTyped=aa,a.OrderAddonTypeEnum=Iy,a.PaymentMethodApiFromJSON=Wo,a.PaymentMethodApiFromJSONTyped=Xo,a.PaymentMethodApiToJSON=wn,a.PaymentMethodApiToJSONTyped=Ry,a.PaymentMethodCouponApiFromJSON=ly,a.PaymentMethodCouponApiFromJSONTyped=On,a.PaymentMethodCouponApiNameEnum=dy,a.PaymentMethodCouponApiPayloadInnerFromJSON=ko,a.PaymentMethodCouponApiPayloadInnerFromJSONTyped=Ro,a.PaymentMethodCouponApiPayloadInnerToJSON=No,a.PaymentMethodCouponApiPayloadInnerToJSONTyped=bo,a.PaymentMethodCouponApiToJSON=Po,a.PaymentMethodCouponApiToJSONTyped=Co,a.PaymentMethodCreditCardApiFromJSON=yy,a.PaymentMethodCreditCardApiFromJSONTyped=An,a.PaymentMethodCreditCardApiNameEnum=py,a.PaymentMethodCreditCardApiPayloadFromJSON=Io,a.PaymentMethodCreditCardApiPayloadFromJSONTyped=Mo,a.PaymentMethodCreditCardApiPayloadToJSON=Do,a.PaymentMethodCreditCardApiPayloadToJSONTyped=Jo,a.PaymentMethodCreditCardApiToJSON=Eo,a.PaymentMethodCreditCardApiToJSONTyped=Fo,a.PaymentMethodDepositAccountApiFromJSON=Ay,a.PaymentMethodDepositAccountApiFromJSONTyped=Sn,a.PaymentMethodDepositAccountApiNameEnum=_y,a.PaymentMethodDepositAccountApiPayloadFromJSON=zo,a.PaymentMethodDepositAccountApiPayloadFromJSONTyped=$o,a.PaymentMethodDepositAccountApiPayloadToJSON=Lo,a.PaymentMethodDepositAccountApiPayloadToJSONTyped=Ho,a.PaymentMethodDepositAccountApiToJSON=Bo,a.PaymentMethodDepositAccountApiToJSONTyped=Uo,a.PaymentMethodPayLaterApiFromJSON=ky,a.PaymentMethodPayLaterApiFromJSONTyped=Tn,a.PaymentMethodPayLaterApiNameEnum=wy,a.PaymentMethodPayLaterApiPayloadFromJSON=Zo,a.PaymentMethodPayLaterApiPayloadFromJSONTyped=Go,a.PaymentMethodPayLaterApiPayloadStatusEnum=Sy,a.PaymentMethodPayLaterApiPayloadToJSON=qo,a.PaymentMethodPayLaterApiPayloadToJSONTyped=Ko,a.PaymentMethodPayLaterApiToJSON=Yo,a.PaymentMethodPayLaterApiToJSONTyped=Vo,a.PaymentMethodRequestApiFromJSON=Cn,a.PaymentMethodRequestApiFromJSONTyped=Ka,a.PaymentMethodRequestApiToJSON=Rt,a.PaymentMethodRequestApiToJSONTyped=tg,a.PaymentMethodRequestCouponApiFromJSON=Vy,a.PaymentMethodRequestCouponApiFromJSONTyped=Nn,a.PaymentMethodRequestCouponApiNameEnum=Ky,a.PaymentMethodRequestCouponApiToJSON=Ha,a.PaymentMethodRequestCouponApiToJSONTyped=Ba,a.PaymentMethodRequestCouponPayloadApiFromJSON=Fa,a.PaymentMethodRequestCouponPayloadApiFromJSONTyped=za,a.PaymentMethodRequestCouponPayloadApiToJSON=$a,a.PaymentMethodRequestCouponPayloadApiToJSONTyped=La,a.PaymentMethodRequestCreditCardApiFromJSON=Qy,a.PaymentMethodRequestCreditCardApiFromJSONTyped=bn,a.PaymentMethodRequestCreditCardApiNameEnum=Wy,a.PaymentMethodRequestCreditCardApiToJSON=Ua,a.PaymentMethodRequestCreditCardApiToJSONTyped=Za,a.PaymentMethodRequestDepositAccountApiFromJSON=eg,a.PaymentMethodRequestDepositAccountApiFromJSONTyped=Pn,a.PaymentMethodRequestDepositAccountApiNameEnum=xy,a.PaymentMethodRequestDepositAccountApiToJSON=Ga,a.PaymentMethodRequestDepositAccountApiToJSONTyped=qa,a.PaymentMethodUpdatePayloadApiFromJSON=Xg,a.PaymentMethodUpdatePayloadApiFromJSONTyped=gu,a.PaymentMethodUpdatePayloadApiToJSON=_u,a.PaymentMethodUpdatePayloadApiToJSONTyped=Ou,a.PollerStatus=Nt,a.PollerStatusFromJSON=Fs,a.PollerStatusFromJSONTyped=zs,a.PollerStatusToJSON=bg,a.PollerStatusToJSONTyped=Pg,a.RequestPayloadFromJSON=jg,a.RequestPayloadFromJSONTyped=Au,a.RequestPayloadRequestTypeEnum=Qg,a.RequestPayloadToJSON=Su,a.RequestPayloadToJSONTyped=Tu,a.RequiredError=Z,a.ResponseError=on,a.SourceMarket=pt,a.SourceMarketFromJSON=qe,a.SourceMarketFromJSONTyped=eo,a.SourceMarketToJSON=Fh,a.SourceMarketToJSONTyped=zh,a.TagApiFromJSON=gt,a.TagApiFromJSONTyped=mo,a.TagApiToJSON=_t,a.TagApiToJSONTyped=po,a.TaxApiFromJSON=hn,a.TaxApiFromJSONTyped=co,a.TaxApiTaxFrequencyEnum=Zh,a.TaxApiTaxModeEnum=Gh,a.TaxApiToJSON=yn,a.TaxApiToJSONTyped=fo,a.TextApiResponse=un,a.TravelTimesApiFromJSON=Fn,a.TravelTimesApiFromJSONTyped=_s,a.TravelTimesApiToJSON=zn,a.TravelTimesApiToJSONTyped=Os,a.TravelTimesApiTravelTimesFromJSON=ps,a.TravelTimesApiTravelTimesFromJSONTyped=hs,a.TravelTimesApiTravelTimesToJSON=ys,a.TravelTimesApiTravelTimesToJSONTyped=gs,a.VoidApiResponse=vi,a.canConsumeForm=ih,a.exists=rh,a.instanceOfAllowedPaymentMethodCouponApi=yh,a.instanceOfAllowedPaymentMethodCouponApiPayloadInner=ph,a.instanceOfAllowedPaymentMethodCreditCardApi=Oh,a.instanceOfAllowedPaymentMethodDepositAccountApi=Th,a.instanceOfAllowedPaymentMethodPayLaterApi=Nh,a.instanceOfAllowedPaymentMethodPayLaterApiPayload=kh,a.instanceOfAmenitiesApi=Ch,a.instanceOfBedApi=Ih,a.instanceOfBookingApi=Ly,a.instanceOfBookingCreateApi=ng,a.instanceOfBookingCreateApiGuestsListInner=Zy,a.instanceOfBookingCreateApiGuestsListInnerGuestsInner=Uy,a.instanceOfBookingPoliciesApi=ig,a.instanceOfBookingPoliciesCreateApi=ag,a.instanceOfBookingsApiResponse=cg,a.instanceOfBreakfastOption=Hh,a.instanceOfCancellationPolicyApi=Jh,a.instanceOfContactPersonApi=uy,a.instanceOfContactPersonOrganizationApi=ay,a.instanceOfCountryIso2Code=ry,a.instanceOfCouponPreviewAppliedApi=ah,a.instanceOfCouponPreviewRejectedApi=dh,a.instanceOfCurrencyClient=Kh,a.instanceOfErrorApiResponse=lg,a.instanceOfEventApi=Dy,a.instanceOfEventMetadataApi=Gy,a.instanceOfHotelApi=Og,a.instanceOfHotelApiImages=yg,a.instanceOfHotelImageApi=$h,a.instanceOfHotelOfferApi=Sg,a.instanceOfHotelOfferRequestApiResponse=Tg,a.instanceOfHotelOfferRequestCreateApi=vg,a.instanceOfHotelOffersApiResponse=Ig,a.instanceOfHotelOffersDataApiResponse=Rg,a.instanceOfHotelReviewRatingApi=hg,a.instanceOfHotelRoomOfferApi=jh,a.instanceOfHotelRoomOfferApiHotelRoomsInner=Lh,a.instanceOfHotelRoomOfferApiResponse=Dg,a.instanceOfHotelRoomOfferRequestApiResponse=Eg,a.instanceOfHotelRoomOfferRequestCreateApi=zg,a.instanceOfHotelRoomOffersApiResponse=Hg,a.instanceOfHotelRoomOffersCreateApi=Zg,a.instanceOfHotelRoomOffersDataApiResponse=Lg,a.instanceOfHotelRoomOffersDataCreateApi=Ug,a.instanceOfHotelRoomingListApi=Fy,a.instanceOfHotelRoomingListApiHotelRoom=Jy,a.instanceOfHotelRoomingListGuestApi=Ey,a.instanceOfHotelRoomingListGuestsCreateApi=qg,a.instanceOfHotelRoomingListGuestsUpdateApi=Yg,a.instanceOfInsuranceApi=by,a.instanceOfInvoiceApi=Cy,a.instanceOfLocale=ey,a.instanceOfMetaPollingResponseApi=Cg,a.instanceOfMetaResponseApi=ug,a.instanceOfOrderAddon=My,a.instanceOfOrderAddonSelection=By,a.instanceOfPaymentMethodCouponApi=fy,a.instanceOfPaymentMethodCouponApiPayloadInner=cy,a.instanceOfPaymentMethodCreditCardApi=hy,a.instanceOfPaymentMethodCreditCardApiPayload=my,a.instanceOfPaymentMethodDepositAccountApi=Oy,a.instanceOfPaymentMethodDepositAccountApiPayload=gy,a.instanceOfPaymentMethodPayLaterApi=vy,a.instanceOfPaymentMethodPayLaterApiPayload=Ty,a.instanceOfPaymentMethodRequestCouponApi=Yy,a.instanceOfPaymentMethodRequestCouponPayloadApi=qy,a.instanceOfPaymentMethodRequestCreditCardApi=Xy,a.instanceOfPaymentMethodRequestDepositAccountApi=jy,a.instanceOfPaymentMethodUpdatePayloadApi=Wg,a.instanceOfPollerStatus=Ng,a.instanceOfRequestPayload=xg,a.instanceOfSourceMarket=Eh,a.instanceOfTagApi=Wh,a.instanceOfTaxApi=qh,a.instanceOfTravelTimesApi=_g,a.instanceOfTravelTimesApiTravelTimes=gg,a.querystring=sn,a.v1ApiClient=Eu});
|