@revolugo/booking-api-client 7.22.1 → 7.22.2-alpha.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.umd.js CHANGED
@@ -1,65 +1,65 @@
1
- (function(o,Ee){typeof exports=="object"&&typeof module<"u"?Ee(exports):typeof define=="function"&&define.amd?define(["exports"],Ee):(o=typeof globalThis<"u"?globalThis:o||self,Ee(o["@revolugo/booking-api-client"]={}))})(this,function(o){Object.defineProperty(o,Symbol.toStringTag,{value:"Module"});var Ee=Object.create,Tn=Object.defineProperty,Ls=Object.getOwnPropertyDescriptor,Hs=Object.getOwnPropertyNames,Bs=Object.getPrototypeOf,wn=Object.prototype.hasOwnProperty,ne=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),Zs=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=Hs(t),a=0,s=i.length,u;a<s;a++)u=i[a],!wn.call(e,u)&&u!==n&&Tn(e,u,{get:(d=>t[d]).bind(null,u),enumerable:!(r=Ls(t,u))||r.enumerable});return e},oe=(e,t,n)=>(n=e!=null?Ee(Bs(e)):{},Zs(t||!e||!e.__esModule||!wn.call(e,"default")?Tn(n,"default",{value:e,enumerable:!0}):n,e)),kn=(function(e){return e.V1="v1",e})({}),Re=(function(e){return e.CiCd="CI-CD",e.Local="LOCAL",e.Production="LIVE",e.Sandbox="SANDBOX",e.Staging="STAGING",e})({}),Us={"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"},vn=(function(e){return e.HOTEL_ROOM_OFFERS="HOTEL_ROOM_OFFERS",e.HOTEL_SEARCH_POLLING="HOTEL_SEARCH_POLLING",e})({}),Gs=ne(((e,t)=>{var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,r=(function(){function a(){this.fetch=!1,this.DOMException=n.DOMException}return a.prototype=n,new a})();(function(a){(function(s){var u=typeof a<"u"&&a||typeof self<"u"&&self||typeof global<"u"&&global||{},d={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 l(c){return c&&DataView.prototype.isPrototypeOf(c)}if(d.arrayBuffer)var m=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],g=ArrayBuffer.isView||function(c){return c&&m.indexOf(Object.prototype.toString.call(c))>-1};function p(c){if(typeof c!="string"&&(c=String(c)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(c)||c==="")throw new TypeError('Invalid character in header field name: "'+c+'"');return c.toLowerCase()}function A(c){return typeof c!="string"&&(c=String(c)),c}function k(c){var f={next:function(){var _=c.shift();return{done:_===void 0,value:_}}};return d.iterable&&(f[Symbol.iterator]=function(){return f}),f}function y(c){this.map={},c instanceof y?c.forEach(function(f,_){this.append(_,f)},this):Array.isArray(c)?c.forEach(function(f){if(f.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+f.length);this.append(f[0],f[1])},this):c&&Object.getOwnPropertyNames(c).forEach(function(f){this.append(f,c[f])},this)}y.prototype.append=function(c,f){c=p(c),f=A(f);var _=this.map[c];this.map[c]=_?_+", "+f:f},y.prototype.delete=function(c){delete this.map[p(c)]},y.prototype.get=function(c){return c=p(c),this.has(c)?this.map[c]:null},y.prototype.has=function(c){return this.map.hasOwnProperty(p(c))},y.prototype.set=function(c,f){this.map[p(c)]=A(f)},y.prototype.forEach=function(c,f){for(var _ in this.map)this.map.hasOwnProperty(_)&&c.call(f,this.map[_],_,this)},y.prototype.keys=function(){var c=[];return this.forEach(function(f,_){c.push(_)}),k(c)},y.prototype.values=function(){var c=[];return this.forEach(function(f){c.push(f)}),k(c)},y.prototype.entries=function(){var c=[];return this.forEach(function(f,_){c.push([_,f])}),k(c)},d.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function S(c){if(!c._noBody){if(c.bodyUsed)return Promise.reject(new TypeError("Already read"));c.bodyUsed=!0}}function R(c){return new Promise(function(f,_){c.onload=function(){f(c.result)},c.onerror=function(){_(c.error)}})}function M(c){var f=new FileReader,_=R(f);return f.readAsArrayBuffer(c),_}function v(c){var f=new FileReader,_=R(f),O=/charset=([A-Za-z0-9_-]+)/.exec(c.type),w=O?O[1]:"utf-8";return f.readAsText(c,w),_}function N(c){for(var f=new Uint8Array(c),_=new Array(f.length),O=0;O<f.length;O++)_[O]=String.fromCharCode(f[O]);return _.join("")}function P(c){if(c.slice)return c.slice(0);var f=new Uint8Array(c.byteLength);return f.set(new Uint8Array(c)),f.buffer}function F(){return this.bodyUsed=!1,this._initBody=function(c){this.bodyUsed=this.bodyUsed,this._bodyInit=c,c?typeof c=="string"?this._bodyText=c:d.blob&&Blob.prototype.isPrototypeOf(c)?this._bodyBlob=c:d.formData&&FormData.prototype.isPrototypeOf(c)?this._bodyFormData=c:d.searchParams&&URLSearchParams.prototype.isPrototypeOf(c)?this._bodyText=c.toString():d.arrayBuffer&&d.blob&&l(c)?(this._bodyArrayBuffer=P(c.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):d.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(c)||g(c))?this._bodyArrayBuffer=P(c):this._bodyText=c=Object.prototype.toString.call(c):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof c=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):d.searchParams&&URLSearchParams.prototype.isPrototypeOf(c)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},d.blob&&(this.blob=function(){var c=S(this);if(c)return c;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 c=S(this);return c||(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(d.blob)return this.blob().then(M);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var c=S(this);if(c)return c;if(this._bodyBlob)return v(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(N(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},d.formData&&(this.formData=function(){return this.text().then($)}),this.json=function(){return this.text().then(JSON.parse)},this}var B=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function Z(c){var f=c.toUpperCase();return B.indexOf(f)>-1?f:c}function L(c,f){if(!(this instanceof L))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');f=f||{};var _=f.body;if(c instanceof L){if(c.bodyUsed)throw new TypeError("Already read");this.url=c.url,this.credentials=c.credentials,f.headers||(this.headers=new y(c.headers)),this.method=c.method,this.mode=c.mode,this.signal=c.signal,!_&&c._bodyInit!=null&&(_=c._bodyInit,c.bodyUsed=!0)}else this.url=String(c);if(this.credentials=f.credentials||this.credentials||"same-origin",(f.headers||!this.headers)&&(this.headers=new y(f.headers)),this.method=Z(f.method||this.method||"GET"),this.mode=f.mode||this.mode||null,this.signal=f.signal||this.signal||(function(){if("AbortController"in u)return new AbortController().signal})(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&_)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(_),(this.method==="GET"||this.method==="HEAD")&&(f.cache==="no-store"||f.cache==="no-cache")){var O=/([?&])_=[^&]*/;if(O.test(this.url))this.url=this.url.replace(O,"$1_="+new Date().getTime());else{var w=/\?/;this.url+=(w.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}L.prototype.clone=function(){return new L(this,{body:this._bodyInit})};function $(c){var f=new FormData;return c.trim().split("&").forEach(function(_){if(_){var O=_.split("="),w=O.shift().replace(/\+/g," "),T=O.join("=").replace(/\+/g," ");f.append(decodeURIComponent(w),decodeURIComponent(T))}}),f}function J(c){var f=new y;return c.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(_){return _.indexOf(`
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}F.call(L.prototype);function q(c,f){if(!(this instanceof q))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)}F.call(q.prototype),q.prototype.clone=function(){return new q(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},q.error=function(){var c=new q(null,{status:200,statusText:""});return c.ok=!1,c.status=0,c.type="error",c};var re=[301,302,303,307,308];q.redirect=function(c,f){if(re.indexOf(f)===-1)throw new RangeError("Invalid status code");return new q(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 b(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 z={statusText:T.statusText,headers:J(T.getAllResponseHeaders()||"")};w.url.indexOf("file://")===0&&(T.status<200||T.status>599)?z.status=200:z.status=T.status,z.url="responseURL"in T?T.responseURL:z.headers.get("X-Request-URL");var X="response"in T?T.response:T.responseText;setTimeout(function(){_(new q(X,z))},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(z){try{return z===""&&u.location.href?u.location.href:z}catch{return z}}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(z){K.push(p(z)),T.setRequestHeader(z,A(f.headers[z]))}),w.headers.forEach(function(z,X){K.indexOf(X)===-1&&T.setRequestHeader(X,z)})}else w.headers.forEach(function(z,X){T.setRequestHeader(X,z)});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 b.polyfill=!0,u.fetch||(u.fetch=b,u.Headers=y,u.Request=L,u.Response=q),s.Headers=y,s.Request=L,s.Response=q,s.fetch=b,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})),qs=oe(Gs(),1),Ys=new RegExp("([\\p{Ll}\\d])(\\p{Lu})","gu"),Ks=new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])","gu"),Vs=new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d","u"),Ws=/[^\p{L}\d]+/giu,Rn="$1\0$2",Nn="";function Pn(e){let t=e.trim();t=t.replace(Ys,Rn).replace(Ks,Rn),t=t.replace(Ws,"\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 Xs(e){const t=Pn(e);for(let n=0;n<t.length;n++){const r=t[n],i=Vs.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 bn(e,t){const[n,r,i]=Ue(e,t);return n+r.map(Ze(t?.locale)).join(t?.delimiter??" ")+i}function Qs(e,t){const[n,r,i]=Ue(e,t),a=Ze(t?.locale),s=_t(t?.locale),u=t?.mergeAmbiguousCharacters?Ot(a,s):Mn(a,s);return n+r.map((d,l)=>l===0?a(d):u(d,l)).join(t?.delimiter??"")+i}function xs(e,t){const[n,r,i]=Ue(e,t),a=Ze(t?.locale),s=_t(t?.locale),u=t?.mergeAmbiguousCharacters?Ot(a,s):Mn(a,s);return n+r.map(u).join(t?.delimiter??"")+i}function js(e,t){const[n,r,i]=Ue(e,t),a=Ze(t?.locale),s=_t(t?.locale);return n+r.map(Ot(a,s)).join(t?.delimiter??" ")+i}function Cn(e,t){return bn(e,{delimiter:"-",...t})}function eu(e,t){return bn(e,{delimiter:"_",...t})}function Ze(e){return e===!1?t=>t.toLowerCase():t=>t.toLocaleLowerCase(e)}function _t(e){return e===!1?t=>t.toUpperCase():t=>t.toLocaleUpperCase(e)}function Ot(e,t){return n=>`${t(n[0])}${e(n.slice(1))}`}function Mn(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?Xs:Pn),r=t.prefixCharacters??Nn,i=t.suffixCharacters??Nn;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 tu=ne(((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})})),nu=oe(tu(),1);function ru(e){return(0,nu.default)(Cn(e),{lower:!0,strict:!0})}var I={Camel:"camelCase",Capital:"capitalCase",Param:"paramCase",Pascal:"pascalCase",Slug:"slugCase",Snake:"snakeCase"},In={[I.Camel]:Qs,[I.Capital]:js,[I.Param]:Cn,[I.Pascal]:xs,[I.Slug]:ru,[I.Snake]:eu};function iu(e,t){return Array.isArray(e)?e.map(n=>In[t](n)):In[t](e)}function ou(e){return e===Object(e)&&!Array.isArray(e)&&typeof e!="function"}function au(e,t){return e.some(n=>typeof n=="string"?n===t:n.test(t))}function At(e,t,n){const r=n.deep??!1;return Array.isArray(e)?e.map(i=>At(i,t,n)):ou(e)&&!(e instanceof Date)?Object.keys(e).reduce((i,a)=>{const s=n.exclude&&au(n.exclude,a)?a:iu(a,t);return i[s]=r?At(e[a],t,{...n,deep:!0}):e[a],i},{}):e}function E(e,t,n={}){return At(e,t,{deep:n.deep??!0,exclude:n.exclude})}var Dn=ne(((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(b){var c=["th","st","nd","rd"],f=b%100;return"["+b+(c[(f-20)%10]||c[f]||c[0])+"]"}},v=function(b,c,f){var _=String(b);return!_||_.length>=c?b:""+Array(c+1-_.length).join(f)+b},N={s:v,z:function(b){var c=-b.utcOffset(),f=Math.abs(c),_=Math.floor(f/60),O=f%60;return(c<=0?"+":"-")+v(_,2,"0")+":"+v(O,2,"0")},m:function b(c,f){if(c.date()<f.date())return-b(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(b){return b<0?Math.ceil(b)||0:Math.floor(b)},p:function(b){return{M:g,y:A,w:m,d:l,D:k,h:d,m:u,s,ms:a,Q:p}[b]||String(b||"").toLowerCase().replace(/s$/,"")},u:function(b){return b===void 0}},P="en",F={};F[P]=M;var B="$isDayjsObject",Z=function(b){return b instanceof q||!(!b||!b[B])},L=function b(c,f,_){var O;if(!c)return P;if(typeof c=="string"){var w=c.toLowerCase();F[w]&&(O=w),f&&(F[w]=f,O=w);var T=c.split("-");if(!O&&T.length>1)return b(T[0])}else{var D=c.name;F[D]=c,O=D}return!_&&O&&(P=O),O||!_&&P},$=function(b,c){if(Z(b))return b.clone();var f=typeof c=="object"?c:{};return f.date=b,f.args=arguments,new q(f)},J=N;J.l=L,J.i=Z,J.w=function(b,c){return $(b,{locale:c.$L,utc:c.$u,x:c.$x,$offset:c.$offset})};var q=(function(){function b(f){this.$L=L(f.locale,null,!0),this.parse(f),this.$x=this.$x||f.x||{},this[B]=!0}var c=b.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=$(f);return this.startOf(_)<=O&&O<=this.endOf(_)},c.isAfter=function(f,_){return $(f)<this.startOf(_)},c.isBefore=function(f,_){return this.endOf(_)<$(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,te){var ce=J.w(O.$u?Date.UTC(O.$y,te,me):new Date(O.$y,te,me),O);return w?ce:ce.endOf(l)},Y=function(me,te){return J.w(O.toDate()[me].apply(O.toDate("s"),(w?[0,0,0,0]:[23,59,59,999]).slice(te)),O)},K=this.$W,z=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,z):D(0,z+1);case m:var pe=this.$locale().weekStart||0,ve=(K<pe?K+7:K)-pe;return D(w?X-ve:X+(6-ve),z);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(z){var X=$(w);return J.w(X.date(X.date()+Math.round(z*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,z=O.weekdays,X=O.months,Oe=O.meridiem,pe=function(te,ce,he,Ae){return te&&(te[ce]||te(_,w))||he[ce].slice(0,Ae)},ve=function(te){return J.s(D%12||12,te,"0")},me=Oe||function(te,ce,he){var Ae=te<12?"AM":"PM";return he?Ae.toLowerCase():Ae};return w.replace(R,(function(te,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,z,2);case"ddd":return pe(O.weekdaysShort,_.$W,z,3);case"dddd":return z[_.$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})(te)||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=$(f),K=(Y.utcOffset()-this.utcOffset())*r,z=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=(z-K)/6048e5;break;case l:w=(z-K)/864e5;break;case d:w=z/i;break;case u:w=z/r;break;case s:w=z/n;break;default:w=z}return O?w:J.a(w)},c.daysInMonth=function(){return this.endOf(g).$D},c.$locale=function(){return F[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()},b})(),re=q.prototype;return $.prototype=re,[["$ms",a],["$s",s],["$m",u],["$H",d],["$W",l],["$M",g],["$y",A],["$D",k]].forEach((function(b){re[b[1]]=function(c){return this.$g(c,b[0],b[1])}})),$.extend=function(b,c){return b.$i||(b(c,q,$),b.$i=!0),$},$.locale=L,$.isDayjs=Z,$.unix=function(b){return $(1e3*b)},$.en=F[P],$.Ls=F,$.p={},$}))})),su=ne(((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)}}}))})),uu=ne(((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($,J,q){var re=q&&q.toUpperCase();return J||M[q]||n[q]||M[re].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(b,c,f){return c||f.slice(1)}))}))).match(r),N=v.length,P=0;P<N;P+=1){var F=v[P],B=k[F],Z=B&&B[0],L=B&&B[1];v[P]=L?{regex:Z,parser:L}:F.replace(/^\[|\]$/g,"")}return function($){for(var J={},q=0,re=0;q<N;q+=1){var b=v[q];if(typeof b=="string")re+=b.length;else{var c=b.regex,f=b.parser,_=$.slice(re),O=c.exec(_)[0];f.call(J,O),$=$.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 F=P.date,B=P.utc,Z=P.args;this.$u=B;var L=Z[1];if(typeof L=="string"){var $=Z[2]===!0,J=Z[3]===!0,q=$||J,re=Z[2];J&&(re=Z[2]),d=this.$locale(),!$&&re&&(d=M.Ls[re]),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,z=D.day,X=D.hours,Oe=D.minutes,pe=D.seconds,ve=D.milliseconds,me=D.zone,te=D.week,ce=new Date,he=z||(Y||K?1:ce.getDate()),Ae=Y||ce.getFullYear(),yt=0;Y&&!K||(yt=K>0?K-1:ce.getMonth());var gt,_n=X||0,On=Oe||0,An=pe||0,Sn=ve||0;return me?new Date(Date.UTC(Ae,yt,he,_n,On,An,Sn+60*me.offset*1e3)):w?new Date(Date.UTC(Ae,yt,he,_n,On,An,Sn)):(gt=new Date(Ae,yt,he,_n,On,An,Sn),te&&(gt=T(gt).week(te).toDate()),gt)}catch{return new Date("")}})(F,L,B,M),this.init(),re&&re!==!0&&(this.$L=this.locale(re).$L),q&&F!=this.format(L)&&(this.$d=new Date("")),d={}}else if(L instanceof Array)for(var b=L.length,c=1;c<=b;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===b&&(this.$d=new Date(""))}else N.call(this,P)}}}))})),cu=ne(((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))}}}))})),du=ne(((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)}}}))})),fu=ne(((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)}}}))})),lu=ne(((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,F){return v[(F+(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)}}}))})),mu=ne(((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)}}}))})),pu=ne(((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))}}}))})),hu=ne(((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 F=(n.rounding||Math.round)(Math.abs(k));if(S=k>0,F<=P.r||!P.r){F<=1&&N>0&&(P=M[N-1]);var B=R[P.l];A&&(F=A(""+F)),y=typeof B=="string"?B.replace("%d",F):B(F,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)}}}))})),yu=ne(((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],F=P===24?0:P,B=y[0]+"-"+y[1]+"-"+y[2]+" "+F+":"+y[4]+":"+y[5]+":000",Z=+p;return(s.utc(B).valueOf()-(Z-=Z%1e3))/6e4},m=a.prototype;m.tz=function(p,A){p===void 0&&(p=u);var k,y=this.utcOffset(),S=this.toDate(),R=S.toLocaleString("en-US",{timeZone:p}),M=Math.round((S-new Date(R))/1e3/60),v=15*-Math.round(S.getTimezoneOffset()/15)-M;if(!Number(v))k=this.utcOffset(0,A);else if(k=s(R,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(v,!0),A){var N=k.utcOffset();k=k.add(y-N,"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=(function(F,B,Z){var L=F-60*B*1e3,$=l(L,Z);if(B===$)return[L,B];var J=l(L-=60*($-B)*1e3,Z);return $===J?[L,$]:[F-60*Math.min($,J)*1e3,Math.max($,J)]})(s.utc(p,y).valueOf(),R,S),v=M[0],N=M[1],P=s(v).utcOffset(N);return P.$x.$timezone=S,P},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(p){u=p}}}))})),gu=ne(((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 F=P.match(r);if(!F)return null;var B=(""+F[0]).match(i)||["-",0,0],Z=B[0],L=60*+B[1]+ +B[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)}}}))})),_u=ne(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r(Dn()):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}))})),Ou=ne(((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(Dn(),1),Au=oe(su(),1),Su=oe(uu(),1),Tu=oe(cu(),1),wu=oe(du(),1),ku=oe(fu(),1),vu=oe(lu(),1),Ru=oe(mu(),1),Nu=oe(pu(),1),Pu=oe(hu(),1),bu=oe(yu(),1),Cu=oe(gu(),1),gy=_u(),_y=Ou();de.default.extend(Au.default),de.default.extend(Su.default),de.default.extend(Tu.default),de.default.extend(wu.default),de.default.extend(ku.default),de.default.extend(Ru.default),de.default.extend(vu.default),de.default.extend(Nu.default),de.default.extend(Pu.default),de.default.extend(bu.default),de.default.extend(Cu.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 St(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)?St(a,i,n):Array.isArray(i)&&Array.isArray(a)?e[r]=Jn(a,i,n):e[r]=Ge(i,n)}}}function Jn(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};St(u,a,n),r[i]=u}else Array.isArray(a)&&Array.isArray(s)?r[i]=Jn(s,a,n):r[i]=Ge(a,n)}return r}function En(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&&St(e,r,n);return e}function Mu(e){const t={};for(const n of Object.keys(e)){const r=e[n];r!==void 0&&(t[n]=r)}return t}var j=[];for(let e=0;e<256;++e)j.push((e+256).toString(16).slice(1));function Iu(e,t=0){return(j[e[t+0]]+j[e[t+1]]+j[e[t+2]]+j[e[t+3]]+"-"+j[e[t+4]]+j[e[t+5]]+"-"+j[e[t+6]]+j[e[t+7]]+"-"+j[e[t+8]]+j[e[t+9]]+"-"+j[e[t+10]]+j[e[t+11]]+j[e[t+12]]+j[e[t+13]]+j[e[t+14]]+j[e[t+15]]).toLowerCase()}var Du=new Uint8Array(16);function Ju(){return crypto.getRandomValues(Du)}function Eu(e,t,n){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():Fu(e,t,n)}function Fu(e,t,n){e=e||{};const r=e.random??e.rng?.()??Ju();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 Iu(r)}var zu=1500,Se={},$u=class{defaultOptions={callCount:1,interval:zu,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,...Mu(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=Eu(),Se[e.type]=e.uuid)}};function Lu(){return new $u}function Fn(e,t,n){const r=Lu();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 zn;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.")}},$n=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}};(zn=globalThis).__zod_globalConfig??(zn.__zod_globalConfig={});var qe=globalThis.__zod_globalConfig;function Te(e){return e&&Object.assign(qe,e),qe}function Ln(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 Tt(e,t){return typeof t=="bigint"?t.toString():t}function wt(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function kt(e){return e==null}function vt(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Hu(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 Hn=Symbol("evaluating");function U(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Hn)return r===void 0&&(r=Hn,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 Bn(e){return JSON.stringify(e)}function Bu(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Zn="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ye(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Zu=wt(()=>{if(qe.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch{return!1}});function Fe(e){if(Ye(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Ye(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Un(e){return Fe(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var Uu=new Set(["string","number","symbol"]);function Ke(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 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 Gu(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var qu={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 Yu(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 Ku(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 Vu(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 Wu(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 Xu(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 Qu(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 xu(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 ju(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 Gn(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function Ve(e){return typeof e=="string"?e:e?.message}function ke(e,t,n){const r=e.message?e.message:Ve(e.inst?._zod.def?.error?.(e))??Ve(t?.error?.(e))??Ve(n.customError?.(e))??Ve(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 Rt(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 qn=(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,Tt,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Yn=h("$ZodError",qn),Kn=h("$ZodError",qn,{Parent:Error});function ec(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 tc(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 Nt=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 Zn(u,i?.callee),u}return s.value},Pt=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 Zn(u,i?.callee),u}return s.value},We=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??Yn)(a.issues.map(s=>ke(s,i,Te())))}:{success:!0,data:a.value}},nc=We(Kn),Xe=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}},rc=Xe(Kn),ic=e=>(t,n,r)=>{const i=r?{...r,direction:"backward"}:{direction:"backward"};return Nt(e)(t,n,i)},oc=e=>(t,n,r)=>Nt(e)(t,n,r),ac=e=>async(t,n,r)=>{const i=r?{...r,direction:"backward"}:{direction:"backward"};return Pt(e)(t,n,i)},sc=e=>async(t,n,r)=>Pt(e)(t,n,r),uc=e=>(t,n,r)=>{const i=r?{...r,direction:"backward"}:{direction:"backward"};return We(e)(t,n,i)},cc=e=>(t,n,r)=>We(e)(t,n,r),dc=e=>async(t,n,r)=>{const i=r?{...r,direction:"backward"}:{direction:"backward"};return Xe(e)(t,n,i)},fc=e=>async(t,n,r)=>Xe(e)(t,n,r),lc=/^[cC][0-9a-z]{6,}$/,mc=/^[0-9a-z]+$/,pc=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,hc=/^[0-9a-vA-V]{20}$/,yc=/^[A-Za-z0-9]{27}$/,gc=/^[a-zA-Z0-9_-]{21}$/,_c=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Oc=/^([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})$/,Vn=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)$/,Ac=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Sc="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Tc(){return new RegExp(Sc,"u")}var wc=/^(?:(?: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])$/,kc=/^(([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}|:))$/,vc=/^((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])$/,Rc=/^(([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])$/,Nc=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Wn=/^[A-Za-z0-9_-]*$/,Pc=/^https?$/,bc=/^\+[1-9]\d{6,14}$/,Xn="(?:(?:\\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])))",Cc=new RegExp(`^${Xn}$`);function Qn(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 Mc(e){return new RegExp(`^${Qn(e)}$`)}function Ic(e){const t=Qn({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(`^${Xn}T(?:${r})$`)}var Dc=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Jc=/^-?\d+$/,Ec=/^-?\d+(?:\.\d+)?$/,Fc=/^[^A-Z]*$/,zc=/^[^a-z]*$/,ae=h("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),xn={number:"number",bigint:"bigint",object:"date"},jn=h("$ZodCheckLessThan",(e,t)=>{ae.init(e,t);const n=xn[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})}}),er=h("$ZodCheckGreaterThan",(e,t)=>{ae.init(e,t);const n=xn[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})}}),$c=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):Hu(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})}}),Lc=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]=qu[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=Jc)}),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})}}),Hc=h("$ZodCheckMaxLength",(e,t)=>{var n;ae.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!kt(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=Rt(i);r.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Bc=h("$ZodCheckMinLength",(e,t)=>{var n;ae.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!kt(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=Rt(i);r.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Zc=h("$ZodCheckLengthEquals",(e,t)=>{var n;ae.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!kt(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=Rt(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})}}),Qe=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=()=>{})}),Uc=h("$ZodCheckRegex",(e,t)=>{Qe.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})}}),Gc=h("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Fc),Qe.init(e,t)}),qc=h("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=zc),Qe.init(e,t)}),Yc=h("$ZodCheckIncludes",(e,t)=>{ae.init(e,t);const n=Ke(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})}}),Kc=h("$ZodCheckStartsWith",(e,t)=>{ae.init(e,t);const n=new RegExp(`^${Ke(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})}}),Vc=h("$ZodCheckEndsWith",(e,t)=>{ae.init(e,t);const n=new RegExp(`.*${Ke(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})}}),Wc=h("$ZodCheckOverwrite",(e,t)=>{ae.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}}),Xc=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(`
1
+ (function(o,Ee){typeof exports=="object"&&typeof module<"u"?Ee(exports):typeof define=="function"&&define.amd?define(["exports"],Ee):(o=typeof globalThis<"u"?globalThis:o||self,Ee(o["@revolugo/booking-api-client"]={}))})(this,function(o){Object.defineProperty(o,Symbol.toStringTag,{value:"Module"});var Ee=Object.create,vn=Object.defineProperty,Ks=Object.getOwnPropertyDescriptor,Vs=Object.getOwnPropertyNames,Ws=Object.getPrototypeOf,Rn=Object.prototype.hasOwnProperty,ne=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),Xs=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=Vs(t),a=0,s=i.length,u;a<s;a++)u=i[a],!Rn.call(e,u)&&u!==n&&vn(e,u,{get:(d=>t[d]).bind(null,u),enumerable:!(r=Ks(t,u))||r.enumerable});return e},oe=(e,t,n)=>(n=e!=null?Ee(Ws(e)):{},Xs(t||!e||!e.__esModule||!Rn.call(e,"default")?vn(n,"default",{value:e,enumerable:!0}):n,e)),Nn=(function(e){return e.V1="v1",e})({}),Re=(function(e){return e.CiCd="CI-CD",e.Local="LOCAL",e.Production="LIVE",e.Sandbox="SANDBOX",e.Staging="STAGING",e})({}),Qs={"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"},Cn=(function(e){return e.HOTEL_ROOM_OFFERS="HOTEL_ROOM_OFFERS",e.HOTEL_SEARCH_POLLING="HOTEL_SEARCH_POLLING",e})({}),xs=ne(((e,t)=>{var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,r=(function(){function a(){this.fetch=!1,this.DOMException=n.DOMException}return a.prototype=n,new a})();(function(a){(function(s){var u=typeof a<"u"&&a||typeof self<"u"&&self||typeof global<"u"&&global||{},d={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 l(c){return c&&DataView.prototype.isPrototypeOf(c)}if(d.arrayBuffer)var m=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],g=ArrayBuffer.isView||function(c){return c&&m.indexOf(Object.prototype.toString.call(c))>-1};function p(c){if(typeof c!="string"&&(c=String(c)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(c)||c==="")throw new TypeError('Invalid character in header field name: "'+c+'"');return c.toLowerCase()}function A(c){return typeof c!="string"&&(c=String(c)),c}function k(c){var f={next:function(){var _=c.shift();return{done:_===void 0,value:_}}};return d.iterable&&(f[Symbol.iterator]=function(){return f}),f}function y(c){this.map={},c instanceof y?c.forEach(function(f,_){this.append(_,f)},this):Array.isArray(c)?c.forEach(function(f){if(f.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+f.length);this.append(f[0],f[1])},this):c&&Object.getOwnPropertyNames(c).forEach(function(f){this.append(f,c[f])},this)}y.prototype.append=function(c,f){c=p(c),f=A(f);var _=this.map[c];this.map[c]=_?_+", "+f:f},y.prototype.delete=function(c){delete this.map[p(c)]},y.prototype.get=function(c){return c=p(c),this.has(c)?this.map[c]:null},y.prototype.has=function(c){return this.map.hasOwnProperty(p(c))},y.prototype.set=function(c,f){this.map[p(c)]=A(f)},y.prototype.forEach=function(c,f){for(var _ in this.map)this.map.hasOwnProperty(_)&&c.call(f,this.map[_],_,this)},y.prototype.keys=function(){var c=[];return this.forEach(function(f,_){c.push(_)}),k(c)},y.prototype.values=function(){var c=[];return this.forEach(function(f){c.push(f)}),k(c)},y.prototype.entries=function(){var c=[];return this.forEach(function(f,_){c.push([_,f])}),k(c)},d.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function S(c){if(!c._noBody){if(c.bodyUsed)return Promise.reject(new TypeError("Already read"));c.bodyUsed=!0}}function R(c){return new Promise(function(f,_){c.onload=function(){f(c.result)},c.onerror=function(){_(c.error)}})}function M(c){var f=new FileReader,_=R(f);return f.readAsArrayBuffer(c),_}function v(c){var f=new FileReader,_=R(f),O=/charset=([A-Za-z0-9_-]+)/.exec(c.type),w=O?O[1]:"utf-8";return f.readAsText(c,w),_}function C(c){for(var f=new Uint8Array(c),_=new Array(f.length),O=0;O<f.length;O++)_[O]=String.fromCharCode(f[O]);return _.join("")}function N(c){if(c.slice)return c.slice(0);var f=new Uint8Array(c.byteLength);return f.set(new Uint8Array(c)),f.buffer}function F(){return this.bodyUsed=!1,this._initBody=function(c){this.bodyUsed=this.bodyUsed,this._bodyInit=c,c?typeof c=="string"?this._bodyText=c:d.blob&&Blob.prototype.isPrototypeOf(c)?this._bodyBlob=c:d.formData&&FormData.prototype.isPrototypeOf(c)?this._bodyFormData=c:d.searchParams&&URLSearchParams.prototype.isPrototypeOf(c)?this._bodyText=c.toString():d.arrayBuffer&&d.blob&&l(c)?(this._bodyArrayBuffer=N(c.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):d.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(c)||g(c))?this._bodyArrayBuffer=N(c):this._bodyText=c=Object.prototype.toString.call(c):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof c=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):d.searchParams&&URLSearchParams.prototype.isPrototypeOf(c)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},d.blob&&(this.blob=function(){var c=S(this);if(c)return c;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 c=S(this);return c||(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(d.blob)return this.blob().then(M);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var c=S(this);if(c)return c;if(this._bodyBlob)return v(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(C(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},d.formData&&(this.formData=function(){return this.text().then($)}),this.json=function(){return this.text().then(JSON.parse)},this}var B=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function Z(c){var f=c.toUpperCase();return B.indexOf(f)>-1?f:c}function L(c,f){if(!(this instanceof L))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');f=f||{};var _=f.body;if(c instanceof L){if(c.bodyUsed)throw new TypeError("Already read");this.url=c.url,this.credentials=c.credentials,f.headers||(this.headers=new y(c.headers)),this.method=c.method,this.mode=c.mode,this.signal=c.signal,!_&&c._bodyInit!=null&&(_=c._bodyInit,c.bodyUsed=!0)}else this.url=String(c);if(this.credentials=f.credentials||this.credentials||"same-origin",(f.headers||!this.headers)&&(this.headers=new y(f.headers)),this.method=Z(f.method||this.method||"GET"),this.mode=f.mode||this.mode||null,this.signal=f.signal||this.signal||(function(){if("AbortController"in u)return new AbortController().signal})(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&_)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(_),(this.method==="GET"||this.method==="HEAD")&&(f.cache==="no-store"||f.cache==="no-cache")){var O=/([?&])_=[^&]*/;if(O.test(this.url))this.url=this.url.replace(O,"$1_="+new Date().getTime());else{var w=/\?/;this.url+=(w.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}L.prototype.clone=function(){return new L(this,{body:this._bodyInit})};function $(c){var f=new FormData;return c.trim().split("&").forEach(function(_){if(_){var O=_.split("="),w=O.shift().replace(/\+/g," "),T=O.join("=").replace(/\+/g," ");f.append(decodeURIComponent(w),decodeURIComponent(T))}}),f}function J(c){var f=new y;return c.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(_){return _.indexOf(`
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(I){console.warn("Response "+I.message)}}}),f}F.call(L.prototype);function q(c,f){if(!(this instanceof q))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)}F.call(q.prototype),q.prototype.clone=function(){return new q(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},q.error=function(){var c=new q(null,{status:200,statusText:""});return c.ok=!1,c.status=0,c.type="error",c};var re=[301,302,303,307,308];q.redirect=function(c,f){if(re.indexOf(f)===-1)throw new RangeError("Invalid status code");return new q(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 P(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 I(){T.abort()}T.onload=function(){var z={statusText:T.statusText,headers:J(T.getAllResponseHeaders()||"")};w.url.indexOf("file://")===0&&(T.status<200||T.status>599)?z.status=200:z.status=T.status,z.url="responseURL"in T?T.responseURL:z.headers.get("X-Request-URL");var X="response"in T?T.response:T.responseText;setTimeout(function(){_(new q(X,z))},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(z){try{return z===""&&u.location.href?u.location.href:z}catch{return z}}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(z){K.push(p(z)),T.setRequestHeader(z,A(f.headers[z]))}),w.headers.forEach(function(z,X){K.indexOf(X)===-1&&T.setRequestHeader(X,z)})}else w.headers.forEach(function(z,X){T.setRequestHeader(X,z)});w.signal&&(w.signal.addEventListener("abort",I),T.onreadystatechange=function(){T.readyState===4&&w.signal.removeEventListener("abort",I)}),T.send(typeof w._bodyInit>"u"?null:w._bodyInit)})}return P.polyfill=!0,u.fetch||(u.fetch=P,u.Headers=y,u.Request=L,u.Response=q),s.Headers=y,s.Request=L,s.Response=q,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})),js=oe(xs(),1),eu=new RegExp("([\\p{Ll}\\d])(\\p{Lu})","gu"),tu=new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])","gu"),nu=new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d","u"),ru=/[^\p{L}\d]+/giu,Pn="$1\0$2",bn="";function Mn(e){let t=e.trim();t=t.replace(eu,Pn).replace(tu,Pn),t=t.replace(ru,"\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 iu(e){const t=Mn(e);for(let n=0;n<t.length;n++){const r=t[n],i=nu.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 Dn(e,t){const[n,r,i]=Ue(e,t);return n+r.map(Ze(t?.locale)).join(t?.delimiter??" ")+i}function ou(e,t){const[n,r,i]=Ue(e,t),a=Ze(t?.locale),s=Ot(t?.locale),u=t?.mergeAmbiguousCharacters?At(a,s):Jn(a,s);return n+r.map((d,l)=>l===0?a(d):u(d,l)).join(t?.delimiter??"")+i}function au(e,t){const[n,r,i]=Ue(e,t),a=Ze(t?.locale),s=Ot(t?.locale),u=t?.mergeAmbiguousCharacters?At(a,s):Jn(a,s);return n+r.map(u).join(t?.delimiter??"")+i}function su(e,t){const[n,r,i]=Ue(e,t),a=Ze(t?.locale),s=Ot(t?.locale);return n+r.map(At(a,s)).join(t?.delimiter??" ")+i}function In(e,t){return Dn(e,{delimiter:"-",...t})}function uu(e,t){return Dn(e,{delimiter:"_",...t})}function Ze(e){return e===!1?t=>t.toLowerCase():t=>t.toLocaleLowerCase(e)}function Ot(e){return e===!1?t=>t.toUpperCase():t=>t.toLocaleUpperCase(e)}function At(e,t){return n=>`${t(n[0])}${e(n.slice(1))}`}function Jn(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?iu:Mn),r=t.prefixCharacters??bn,i=t.suffixCharacters??bn;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 cu=ne(((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})})),du=oe(cu(),1);function fu(e){return(0,du.default)(In(e),{lower:!0,strict:!0})}var D={Camel:"camelCase",Capital:"capitalCase",Param:"paramCase",Pascal:"pascalCase",Slug:"slugCase",Snake:"snakeCase"},En={[D.Camel]:ou,[D.Capital]:su,[D.Param]:In,[D.Pascal]:au,[D.Slug]:fu,[D.Snake]:uu};function lu(e,t){return Array.isArray(e)?e.map(n=>En[t](n)):En[t](e)}function mu(e){return e===Object(e)&&!Array.isArray(e)&&typeof e!="function"}function pu(e,t){return e.some(n=>typeof n=="string"?n===t:n.test(t))}function St(e,t,n){const r=n.deep??!1;return Array.isArray(e)?e.map(i=>St(i,t,n)):mu(e)&&!(e instanceof Date)?Object.keys(e).reduce((i,a)=>{const s=n.exclude&&pu(n.exclude,a)?a:lu(a,t);return i[s]=r?St(e[a],t,{...n,deep:!0}):e[a],i},{}):e}function E(e,t,n={}){return St(e,t,{deep:n.deep??!0,exclude:n.exclude})}var Fn=ne(((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(P){var c=["th","st","nd","rd"],f=P%100;return"["+P+(c[(f-20)%10]||c[f]||c[0])+"]"}},v=function(P,c,f){var _=String(P);return!_||_.length>=c?P:""+Array(c+1-_.length).join(f)+P},C={s:v,z:function(P){var c=-P.utcOffset(),f=Math.abs(c),_=Math.floor(f/60),O=f%60;return(c<=0?"+":"-")+v(_,2,"0")+":"+v(O,2,"0")},m:function P(c,f){if(c.date()<f.date())return-P(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(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:g,y:A,w:m,d:l,D:k,h:d,m:u,s,ms:a,Q:p}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},N="en",F={};F[N]=M;var B="$isDayjsObject",Z=function(P){return P instanceof q||!(!P||!P[B])},L=function P(c,f,_){var O;if(!c)return N;if(typeof c=="string"){var w=c.toLowerCase();F[w]&&(O=w),f&&(F[w]=f,O=w);var T=c.split("-");if(!O&&T.length>1)return P(T[0])}else{var I=c.name;F[I]=c,O=I}return!_&&O&&(N=O),O||!_&&N},$=function(P,c){if(Z(P))return P.clone();var f=typeof c=="object"?c:{};return f.date=P,f.args=arguments,new q(f)},J=C;J.l=L,J.i=Z,J.w=function(P,c){return $(P,{locale:c.$L,utc:c.$u,x:c.$x,$offset:c.$offset})};var q=(function(){function P(f){this.$L=L(f.locale,null,!0),this.parse(f),this.$x=this.$x||f.x||{},this[B]=!0}var c=P.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 I=T[2]-1||0,Y=(T[7]||"0").substring(0,3);return w?new Date(Date.UTC(T[1],I,T[3]||1,T[4]||0,T[5]||0,T[6]||0,Y)):new Date(T[1],I,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=$(f);return this.startOf(_)<=O&&O<=this.endOf(_)},c.isAfter=function(f,_){return $(f)<this.startOf(_)},c.isBefore=function(f,_){return this.endOf(_)<$(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),I=function(me,te){var ce=J.w(O.$u?Date.UTC(O.$y,te,me):new Date(O.$y,te,me),O);return w?ce:ce.endOf(l)},Y=function(me,te){return J.w(O.toDate()[me].apply(O.toDate("s"),(w?[0,0,0,0]:[23,59,59,999]).slice(te)),O)},K=this.$W,z=this.$M,X=this.$D,Oe="set"+(this.$u?"UTC":"");switch(T){case A:return w?I(1,0):I(31,11);case g:return w?I(1,z):I(0,z+1);case m:var pe=this.$locale().weekStart||0,ve=(K<pe?K+7:K)-pe;return I(w?X-ve:X+(6-ve),z);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":""),I=(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[I](Y),K.init(),this.$d=K.set(k,Math.min(this.$D,K.daysInMonth())).$d}else I&&this.$d[I](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(_),I=function(z){var X=$(w);return J.w(X.date(X.date()+Math.round(z*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 I(1);if(T===m)return I(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),I=this.$H,Y=this.$m,K=this.$M,z=O.weekdays,X=O.months,Oe=O.meridiem,pe=function(te,ce,he,Ae){return te&&(te[ce]||te(_,w))||he[ce].slice(0,Ae)},ve=function(te){return J.s(I%12||12,te,"0")},me=Oe||function(te,ce,he){var Ae=te<12?"AM":"PM";return he?Ae.toLowerCase():Ae};return w.replace(R,(function(te,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,z,2);case"ddd":return pe(O.weekdaysShort,_.$W,z,3);case"dddd":return z[_.$W];case"H":return String(I);case"HH":return J.s(I,2,"0");case"h":return ve(1);case"hh":return ve(2);case"a":return me(I,Y,!0);case"A":return me(I,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})(te)||T.replace(":","")}))},c.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},c.diff=function(f,_,O){var w,T=this,I=J.p(_),Y=$(f),K=(Y.utcOffset()-this.utcOffset())*r,z=this-Y,X=function(){return J.m(T,Y)};switch(I){case A:w=X()/12;break;case g:w=X();break;case p:w=X()/3;break;case m:w=(z-K)/6048e5;break;case l:w=(z-K)/864e5;break;case d:w=z/i;break;case u:w=z/r;break;case s:w=z/n;break;default:w=z}return O?w:J.a(w)},c.daysInMonth=function(){return this.endOf(g).$D},c.$locale=function(){return F[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()},P})(),re=q.prototype;return $.prototype=re,[["$ms",a],["$s",s],["$m",u],["$H",d],["$W",l],["$M",g],["$y",A],["$D",k]].forEach((function(P){re[P[1]]=function(c){return this.$g(c,P[0],P[1])}})),$.extend=function(P,c){return P.$i||(P(c,q,$),P.$i=!0),$},$.locale=L,$.isDayjs=Z,$.unix=function(P){return $(1e3*P)},$.en=F[N],$.Ls=F,$.p={},$}))})),hu=ne(((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)}}}))})),yu=ne(((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 C=1;C<=24;C+=1)if(S.indexOf(v(C,0,R))>-1){M=C>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($,J,q){var re=q&&q.toUpperCase();return J||M[q]||n[q]||M[re].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(P,c,f){return c||f.slice(1)}))}))).match(r),C=v.length,N=0;N<C;N+=1){var F=v[N],B=k[F],Z=B&&B[0],L=B&&B[1];v[N]=L?{regex:Z,parser:L}:F.replace(/^\[|\]$/g,"")}return function($){for(var J={},q=0,re=0;q<C;q+=1){var P=v[q];if(typeof P=="string")re+=P.length;else{var c=P.regex,f=P.parser,_=$.slice(re),O=c.exec(_)[0];f.call(J,O),$=$.replace(O,"")}}return(function(w){var T=w.afternoon;if(T!==void 0){var I=w.hours;T?I<12&&(w.hours+=12):I===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,C=v.parse;v.parse=function(N){var F=N.date,B=N.utc,Z=N.args;this.$u=B;var L=Z[1];if(typeof L=="string"){var $=Z[2]===!0,J=Z[3]===!0,q=$||J,re=Z[2];J&&(re=Z[2]),d=this.$locale(),!$&&re&&(d=M.Ls[re]),this.$d=(function(_,O,w,T){try{if(["x","X"].indexOf(O)>-1)return new Date((O==="X"?1e3:1)*_);var I=y(O)(_),Y=I.year,K=I.month,z=I.day,X=I.hours,Oe=I.minutes,pe=I.seconds,ve=I.milliseconds,me=I.zone,te=I.week,ce=new Date,he=z||(Y||K?1:ce.getDate()),Ae=Y||ce.getFullYear(),gt=0;Y&&!K||(gt=K>0?K-1:ce.getMonth());var _t,Sn=X||0,Tn=Oe||0,wn=pe||0,kn=ve||0;return me?new Date(Date.UTC(Ae,gt,he,Sn,Tn,wn,kn+60*me.offset*1e3)):w?new Date(Date.UTC(Ae,gt,he,Sn,Tn,wn,kn)):(_t=new Date(Ae,gt,he,Sn,Tn,wn,kn),te&&(_t=T(_t).week(te).toDate()),_t)}catch{return new Date("")}})(F,L,B,M),this.init(),re&&re!==!0&&(this.$L=this.locale(re).$L),q&&F!=this.format(L)&&(this.$d=new Date("")),d={}}else if(L instanceof Array)for(var P=L.length,c=1;c<=P;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===P&&(this.$d=new Date(""))}else C.call(this,N)}}}))})),gu=ne(((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))}}}))})),_u=ne(((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)}}}))})),Ou=ne(((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)}}}))})),Au=ne(((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(N){return N.slice(0,k)}));if(!y)return v;var C=S.weekStart;return v.map((function(N,F){return v[(F+(C||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)}}}))})),Su=ne(((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)}}}))})),Tu=ne(((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))}}}))})),wu=ne(((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,C=0;C<v;C+=1){var N=M[C];N.d&&(k=p?i(l).diff(g,N.d,!0):g.diff(l,N.d,!0));var F=(n.rounding||Math.round)(Math.abs(k));if(S=k>0,F<=N.r||!N.r){F<=1&&C>0&&(N=M[C-1]);var B=R[N.l];A&&(F=A(""+F)),y=typeof B=="string"?B.replace("%d",F):B(F,m,N.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)}}}))})),ku=ne(((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,C=r[v];return C||(C=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]=C),C})(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,C=n[M];C>=0&&(y[C]=parseInt(v,10))}var N=y[3],F=N===24?0:N,B=y[0]+"-"+y[1]+"-"+y[2]+" "+F+":"+y[4]+":"+y[5]+":000",Z=+p;return(s.utc(B).valueOf()-(Z-=Z%1e3))/6e4},m=a.prototype;m.tz=function(p,A){p===void 0&&(p=u);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=(function(F,B,Z){var L=F-60*B*1e3,$=l(L,Z);if(B===$)return[L,B];var J=l(L-=60*($-B)*1e3,Z);return $===J?[L,$]:[F-60*Math.min($,J)*1e3,Math.max($,J)]})(s.utc(p,y).valueOf(),R,S),v=M[0],C=M[1],N=s(v).utcOffset(C);return N.$x.$timezone=S,N},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(p){u=p}}}))})),vu=ne(((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(N){N===void 0&&(N="");var F=N.match(r);if(!F)return null;var B=(""+F[0]).match(i)||["-",0,0],Z=B[0],L=60*+B[1]+ +B[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 C=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(v=this.local().add(M+C,n)).$offset=M,v.$x.$localOffset=C,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)}}}))})),Ru=ne(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r(Fn()):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}))})),Nu=ne(((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(Fn(),1),Cu=oe(hu(),1),Pu=oe(yu(),1),bu=oe(gu(),1),Mu=oe(_u(),1),Du=oe(Ou(),1),Iu=oe(Au(),1),Ju=oe(Su(),1),Eu=oe(Tu(),1),Fu=oe(wu(),1),zu=oe(ku(),1),$u=oe(vu(),1),Iy=Ru(),Jy=Nu();de.default.extend(Cu.default),de.default.extend(Pu.default),de.default.extend(bu.default),de.default.extend(Mu.default),de.default.extend(Du.default),de.default.extend(Ju.default),de.default.extend(Iu.default),de.default.extend(Eu.default),de.default.extend(Fu.default),de.default.extend(zu.default),de.default.extend($u.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 Tt(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)?Tt(a,i,n):Array.isArray(i)&&Array.isArray(a)?e[r]=zn(a,i,n):e[r]=Ge(i,n)}}}function zn(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};Tt(u,a,n),r[i]=u}else Array.isArray(a)&&Array.isArray(s)?r[i]=zn(s,a,n):r[i]=Ge(a,n)}return r}function $n(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&&Tt(e,r,n);return e}function Lu(e){const t={};for(const n of Object.keys(e)){const r=e[n];r!==void 0&&(t[n]=r)}return t}var j=[];for(let e=0;e<256;++e)j.push((e+256).toString(16).slice(1));function Hu(e,t=0){return(j[e[t+0]]+j[e[t+1]]+j[e[t+2]]+j[e[t+3]]+"-"+j[e[t+4]]+j[e[t+5]]+"-"+j[e[t+6]]+j[e[t+7]]+"-"+j[e[t+8]]+j[e[t+9]]+"-"+j[e[t+10]]+j[e[t+11]]+j[e[t+12]]+j[e[t+13]]+j[e[t+14]]+j[e[t+15]]).toLowerCase()}var Bu=new Uint8Array(16);function Zu(){return crypto.getRandomValues(Bu)}function Uu(e,t,n){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():Gu(e,t,n)}function Gu(e,t,n){e=e||{};const r=e.random??e.rng?.()??Zu();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 Hu(r)}var qu=1500,Se={},Yu=class{defaultOptions={callCount:1,interval:qu,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,...Lu(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,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&&Se[e.type]&&delete Se[e.type]}storeCurrentPolling(e){e.type&&!e.uuid&&(e.uuid=Uu(),Se[e.type]=e.uuid)}};function Ku(){return new Yu}function Ln(e,t,n){const r=Ku();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 qe=globalThis.__zod_globalConfig;function Te(e){return e&&Object.assign(qe,e),qe}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 wt(e,t){return typeof t=="bigint"?t.toString():t}function kt(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function vt(e){return e==null}function Rt(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Vu(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 Wu(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var qn="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ye(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Xu=kt(()=>{if(qe.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch{return!1}});function Fe(e){if(Ye(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Ye(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 Qu=new Set(["string","number","symbol"]);function Ke(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 xu(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var ju={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 ec(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 tc(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 nc(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 rc(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 ic(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 oc(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 ac(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 Ce(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 sc(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 Ve(e){return typeof e=="string"?e:e?.message}function ke(e,t,n){const r=e.message?e.message:Ve(e.inst?._zod.def?.error?.(e))??Ve(t?.error?.(e))??Ve(n.customError?.(e))??Ve(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 Nt(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,wt,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Wn=h("$ZodError",Vn),Xn=h("$ZodError",Vn,{Parent:Error});function uc(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 cc(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},Pt=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},We=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}},dc=We(Xn),Xe=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}},fc=Xe(Xn),lc=e=>(t,n,r)=>{const i=r?{...r,direction:"backward"}:{direction:"backward"};return Ct(e)(t,n,i)},mc=e=>(t,n,r)=>Ct(e)(t,n,r),pc=e=>async(t,n,r)=>{const i=r?{...r,direction:"backward"}:{direction:"backward"};return Pt(e)(t,n,i)},hc=e=>async(t,n,r)=>Pt(e)(t,n,r),yc=e=>(t,n,r)=>{const i=r?{...r,direction:"backward"}:{direction:"backward"};return We(e)(t,n,i)},gc=e=>(t,n,r)=>We(e)(t,n,r),_c=e=>async(t,n,r)=>{const i=r?{...r,direction:"backward"}:{direction:"backward"};return Xe(e)(t,n,i)},Oc=e=>async(t,n,r)=>Xe(e)(t,n,r),Ac=/^[cC][0-9a-z]{6,}$/,Sc=/^[0-9a-z]+$/,Tc=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,wc=/^[0-9a-vA-V]{20}$/,kc=/^[A-Za-z0-9]{27}$/,vc=/^[a-zA-Z0-9_-]{21}$/,Rc=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Nc=/^([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)$/,Cc=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Pc="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function bc(){return new RegExp(Pc,"u")}var Mc=/^(?:(?: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])$/,Dc=/^(([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}|:))$/,Ic=/^((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])$/,Jc=/^(([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])$/,Ec=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,xn=/^[A-Za-z0-9_-]*$/,Fc=/^https?$/,zc=/^\+[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])))",$c=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 Lc(e){return new RegExp(`^${er(e)}$`)}function Hc(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 Bc=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Zc=/^-?\d+$/,Uc=/^-?\d+(?:\.\d+)?$/,Gc=/^[^A-Z]*$/,qc=/^[^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})}}),Yc=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):Vu(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})}}),Kc=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]=ju[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=Zc)}),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})}}),Vc=h("$ZodCheckMaxLength",(e,t)=>{var n;ae.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!vt(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=Nt(i);r.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Wc=h("$ZodCheckMinLength",(e,t)=>{var n;ae.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!vt(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=Nt(i);r.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Xc=h("$ZodCheckLengthEquals",(e,t)=>{var n;ae.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!vt(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=Nt(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})}}),Qe=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=()=>{})}),Qc=h("$ZodCheckRegex",(e,t)=>{Qe.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})}}),xc=h("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Gc),Qe.init(e,t)}),jc=h("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=qc),Qe.init(e,t)}),ed=h("$ZodCheckIncludes",(e,t)=>{ae.init(e,t);const n=Ke(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})}}),td=h("$ZodCheckStartsWith",(e,t)=>{ae.init(e,t);const n=new RegExp(`^${Ke(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})}}),nd=h("$ZodCheckEndsWith",(e,t)=>{ae.init(e,t);const n=new RegExp(`.*${Ke(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})}}),rd=h("$ZodCheckOverwrite",(e,t)=>{ae.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}}),id=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
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?.args,n=[...(this?.content??[""]).map(r=>` ${r}`)];return new e(...t,n.join(`
4
- `))}},Qc={major:4,minor:4,patch:3},Q=h("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Qc;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const i of r)for(const a of i._zod.onattach)a(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const i=(s,u,d)=>{let l=Pe(s),m;for(const g of u){if(g._zod.def.when){if(ju(s)||!g._zod.def.when(s))continue}else if(l)continue;const p=s.issues.length,A=g._zod.check(s);if(A instanceof Promise&&d?.async===!1)throw new Ne;if(m||A instanceof Promise)m=(m??Promise.resolve()).then(async()=>{await A,s.issues.length!==p&&(l||(l=Pe(s,p)))});else{if(s.issues.length===p)continue;l||(l=Pe(s,p))}}return m?m.then(()=>s):s},a=(s,u,d)=>{if(Pe(s))return s.aborted=!0,s;const l=i(u,r,d);if(l instanceof Promise){if(d.async===!1)throw new Ne;return l.then(m=>e._zod.parse(m,d))}return e._zod.parse(l,d)};e._zod.run=(s,u)=>{if(u.skipChecks)return e._zod.parse(s,u);if(u.direction==="backward"){const l=e._zod.parse({value:s.value,issues:[]},{...u,skipChecks:!0});return l instanceof Promise?l.then(m=>a(m,s,u)):a(l,s,u)}const d=e._zod.parse(s,u);if(d instanceof Promise){if(u.async===!1)throw new Ne;return d.then(l=>i(l,r,u))}return i(d,r,u)}}U(e,"~standard",()=>({validate:i=>{try{const a=nc(e,i);return a.success?{value:a.data}:{issues:a.error?.issues}}catch{return rc(e,i).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}))}),bt=h("$ZodString",(e,t)=>{Q.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Dc(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=h("$ZodStringFormat",(e,t)=>{Qe.init(e,t),bt.init(e,t)}),xc=h("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Oc),V.init(e,t)}),jc=h("$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=Vn(n))}else t.pattern??(t.pattern=Vn());V.init(e,t)}),ed=h("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Ac),V.init(e,t)}),td=h("$ZodURL",(e,t)=>{V.init(e,t),e._zod.check=n=>{try{const r=n.value.trim();if(!t.normalize&&t.protocol?.source===Pc.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}const i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.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&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),nd=h("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Tc()),V.init(e,t)}),rd=h("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=gc),V.init(e,t)}),id=h("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=lc),V.init(e,t)}),od=h("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=mc),V.init(e,t)}),ad=h("$ZodULID",(e,t)=>{t.pattern??(t.pattern=pc),V.init(e,t)}),sd=h("$ZodXID",(e,t)=>{t.pattern??(t.pattern=hc),V.init(e,t)}),ud=h("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=yc),V.init(e,t)}),cd=h("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Ic(t)),V.init(e,t)}),dd=h("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Cc),V.init(e,t)}),fd=h("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Mc(t)),V.init(e,t)}),ld=h("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=_c),V.init(e,t)}),md=h("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=wc),V.init(e,t),e._zod.bag.format="ipv4"}),pd=h("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=kc),V.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),hd=h("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=vc),V.init(e,t)}),yd=h("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Rc),V.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[i,a]=r;if(!a)throw new Error;const s=Number(a);if(`${s}`!==a)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${i}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function tr(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var gd=h("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Nc),V.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{tr(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function _d(e){if(!Wn.test(e))return!1;const t=e.replace(/[-_]/g,n=>n==="-"?"+":"/");return tr(t.padEnd(Math.ceil(t.length/4)*4,"="))}var Od=h("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Wn),V.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{_d(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Ad=h("$ZodE164",(e,t)=>{t.pattern??(t.pattern=bc),V.init(e,t)});function Sd(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 Td=h("$ZodJWT",(e,t)=>{V.init(e,t),e._zod.check=n=>{Sd(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),nr=h("$ZodNumber",(e,t)=>{Q.init(e,t),e._zod.pattern=e._zod.bag.pattern??Ec,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 a=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...a?{received:a}:{}}),n}}),wd=h("$ZodNumberFormat",(e,t)=>{Lc.init(e,t),nr.init(e,t)}),kd=h("$ZodSymbol",(e,t)=>{Q.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}}),vd=h("$ZodUnknown",(e,t)=>{Q.init(e,t),e._zod.parse=n=>n}),Rd=h("$ZodNever",(e,t)=>{Q.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function rr(e,t,n){e.issues.length&&t.issues.push(...Gn(n,e.issues)),t.value[n]=e.value}var Nd=h("$ZodArray",(e,t)=>{Q.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);const a=[];for(let s=0;s<i.length;s++){const u=i[s],d=t.element._zod.run({value:u,issues:[]},r);d instanceof Promise?a.push(d.then(l=>rr(l,n,s))):rr(d,n,s)}return a.length?Promise.all(a).then(()=>n):n}});function xe(e,t,n,r,i,a){const s=n in r;if(e.issues.length){if(i&&a&&!s)return;t.issues.push(...Gn(n,e.issues))}if(!s&&!i){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}function ir(e){const t=Object.keys(e.shape);for(const r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const n=Gu(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function or(e,t,n,r,i,a){const s=[],u=i.keySet,d=i.catchall._zod,l=d.def.type,m=d.optin==="optional",g=d.optout==="optional";for(const p in t){if(p==="__proto__"||u.has(p))continue;if(l==="never"){s.push(p);continue}const A=d.run({value:t[p],issues:[]},r);A instanceof Promise?e.push(A.then(k=>xe(k,n,p,t,m,g))):xe(A,n,p,t,m,g)}return s.length&&n.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}var Pd=h("$ZodObject",(e,t)=>{if(Q.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const s=t.shape;Object.defineProperty(t,"shape",{get:()=>{const u={...s};return Object.defineProperty(t,"shape",{value:u}),u}})}const n=wt(()=>ir(t));U(e._zod,"propValues",()=>{const s=t.shape,u={};for(const d in s){const l=s[d]._zod;if(l.values){u[d]??(u[d]=new Set);for(const m of l.values)u[d].add(m)}}return u});const r=Ye,i=t.catchall;let a;e._zod.parse=(s,u)=>{a??(a=n.value);const d=s.value;if(!r(d))return s.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),s;s.value={};const l=[],m=a.shape;for(const g of a.keys){const p=m[g],A=p._zod.optin==="optional",k=p._zod.optout==="optional",y=p._zod.run({value:d[g],issues:[]},u);y instanceof Promise?l.push(y.then(S=>xe(S,s,g,d,A,k))):xe(y,s,g,d,A,k)}return i?or(l,d,s,u,n.value,e):l.length?Promise.all(l).then(()=>s):s}}),bd=h("$ZodObjectJIT",(e,t)=>{Pd.init(e,t);const n=e._zod.parse,r=wt(()=>ir(t)),i=p=>{const A=new Xc(["shape","payload","ctx"]),k=r.value,y=v=>{const N=Bn(v);return`shape[${N}]._zod.run({ value: input[${N}], issues: [] }, ctx)`};A.write("const input = payload.value;");const S=Object.create(null);let R=0;for(const v of k.keys)S[v]=`key_${R++}`;A.write("const newResult = {};");for(const v of k.keys){const N=S[v],P=Bn(v),F=p[v],B=F?._zod?.optin==="optional",Z=F?._zod?.optout==="optional";A.write(`const ${N} = ${y(v)};`),B&&Z?A.write(`
5
- if (${N}.issues.length) {
6
- if (${P} in input) {
7
- payload.issues = payload.issues.concat(${N}.issues.map(iss => ({
4
+ `))}},od={major:4,minor:4,patch:3},Q=h("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=od;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const i of r)for(const a of i._zod.onattach)a(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const i=(s,u,d)=>{let l=Ce(s),m;for(const g of u){if(g._zod.def.when){if(sc(s)||!g._zod.def.when(s))continue}else if(l)continue;const p=s.issues.length,A=g._zod.check(s);if(A instanceof Promise&&d?.async===!1)throw new Ne;if(m||A instanceof Promise)m=(m??Promise.resolve()).then(async()=>{await A,s.issues.length!==p&&(l||(l=Ce(s,p)))});else{if(s.issues.length===p)continue;l||(l=Ce(s,p))}}return m?m.then(()=>s):s},a=(s,u,d)=>{if(Ce(s))return s.aborted=!0,s;const l=i(u,r,d);if(l instanceof Promise){if(d.async===!1)throw new Ne;return l.then(m=>e._zod.parse(m,d))}return e._zod.parse(l,d)};e._zod.run=(s,u)=>{if(u.skipChecks)return e._zod.parse(s,u);if(u.direction==="backward"){const l=e._zod.parse({value:s.value,issues:[]},{...u,skipChecks:!0});return l instanceof Promise?l.then(m=>a(m,s,u)):a(l,s,u)}const d=e._zod.parse(s,u);if(d instanceof Promise){if(u.async===!1)throw new Ne;return d.then(l=>i(l,r,u))}return i(d,r,u)}}U(e,"~standard",()=>({validate:i=>{try{const a=dc(e,i);return a.success?{value:a.data}:{issues:a.error?.issues}}catch{return fc(e,i).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}))}),bt=h("$ZodString",(e,t)=>{Q.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Bc(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=h("$ZodStringFormat",(e,t)=>{Qe.init(e,t),bt.init(e,t)}),ad=h("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Nc),V.init(e,t)}),sd=h("$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=Qn(n))}else t.pattern??(t.pattern=Qn());V.init(e,t)}),ud=h("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Cc),V.init(e,t)}),cd=h("$ZodURL",(e,t)=>{V.init(e,t),e._zod.check=n=>{try{const r=n.value.trim();if(!t.normalize&&t.protocol?.source===Fc.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}const i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.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&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),dd=h("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=bc()),V.init(e,t)}),fd=h("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=vc),V.init(e,t)}),ld=h("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Ac),V.init(e,t)}),md=h("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Sc),V.init(e,t)}),pd=h("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Tc),V.init(e,t)}),hd=h("$ZodXID",(e,t)=>{t.pattern??(t.pattern=wc),V.init(e,t)}),yd=h("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=kc),V.init(e,t)}),gd=h("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Hc(t)),V.init(e,t)}),_d=h("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=$c),V.init(e,t)}),Od=h("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Lc(t)),V.init(e,t)}),Ad=h("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Rc),V.init(e,t)}),Sd=h("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Mc),V.init(e,t),e._zod.bag.format="ipv4"}),Td=h("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Dc),V.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),wd=h("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Ic),V.init(e,t)}),kd=h("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Jc),V.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[i,a]=r;if(!a)throw new Error;const s=Number(a);if(`${s}`!==a)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${i}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function ir(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var vd=h("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Ec),V.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{ir(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Rd(e){if(!xn.test(e))return!1;const t=e.replace(/[-_]/g,n=>n==="-"?"+":"/");return ir(t.padEnd(Math.ceil(t.length/4)*4,"="))}var Nd=h("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=xn),V.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{Rd(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Cd=h("$ZodE164",(e,t)=>{t.pattern??(t.pattern=zc),V.init(e,t)});function Pd(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 bd=h("$ZodJWT",(e,t)=>{V.init(e,t),e._zod.check=n=>{Pd(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),or=h("$ZodNumber",(e,t)=>{Q.init(e,t),e._zod.pattern=e._zod.bag.pattern??Uc,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 a=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...a?{received:a}:{}}),n}}),Md=h("$ZodNumberFormat",(e,t)=>{Kc.init(e,t),or.init(e,t)}),Dd=h("$ZodSymbol",(e,t)=>{Q.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}}),Id=h("$ZodUnknown",(e,t)=>{Q.init(e,t),e._zod.parse=n=>n}),Jd=h("$ZodNever",(e,t)=>{Q.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function ar(e,t,n){e.issues.length&&t.issues.push(...Kn(n,e.issues)),t.value[n]=e.value}var Ed=h("$ZodArray",(e,t)=>{Q.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);const a=[];for(let s=0;s<i.length;s++){const u=i[s],d=t.element._zod.run({value:u,issues:[]},r);d instanceof Promise?a.push(d.then(l=>ar(l,n,s))):ar(d,n,s)}return a.length?Promise.all(a).then(()=>n):n}});function xe(e,t,n,r,i,a){const s=n in r;if(e.issues.length){if(i&&a&&!s)return;t.issues.push(...Kn(n,e.issues))}if(!s&&!i){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}function sr(e){const t=Object.keys(e.shape);for(const r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const n=xu(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function ur(e,t,n,r,i,a){const s=[],u=i.keySet,d=i.catchall._zod,l=d.def.type,m=d.optin==="optional",g=d.optout==="optional";for(const p in t){if(p==="__proto__"||u.has(p))continue;if(l==="never"){s.push(p);continue}const A=d.run({value:t[p],issues:[]},r);A instanceof Promise?e.push(A.then(k=>xe(k,n,p,t,m,g))):xe(A,n,p,t,m,g)}return s.length&&n.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}var Fd=h("$ZodObject",(e,t)=>{if(Q.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const s=t.shape;Object.defineProperty(t,"shape",{get:()=>{const u={...s};return Object.defineProperty(t,"shape",{value:u}),u}})}const n=kt(()=>sr(t));U(e._zod,"propValues",()=>{const s=t.shape,u={};for(const d in s){const l=s[d]._zod;if(l.values){u[d]??(u[d]=new Set);for(const m of l.values)u[d].add(m)}}return u});const r=Ye,i=t.catchall;let a;e._zod.parse=(s,u)=>{a??(a=n.value);const d=s.value;if(!r(d))return s.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),s;s.value={};const l=[],m=a.shape;for(const g of a.keys){const p=m[g],A=p._zod.optin==="optional",k=p._zod.optout==="optional",y=p._zod.run({value:d[g],issues:[]},u);y instanceof Promise?l.push(y.then(S=>xe(S,s,g,d,A,k))):xe(y,s,g,d,A,k)}return i?ur(l,d,s,u,n.value,e):l.length?Promise.all(l).then(()=>s):s}}),zd=h("$ZodObjectJIT",(e,t)=>{Fd.init(e,t);const n=e._zod.parse,r=kt(()=>sr(t)),i=p=>{const A=new id(["shape","payload","ctx"]),k=r.value,y=v=>{const C=Gn(v);return`shape[${C}]._zod.run({ value: input[${C}], issues: [] }, ctx)`};A.write("const input = payload.value;");const S=Object.create(null);let R=0;for(const v of k.keys)S[v]=`key_${R++}`;A.write("const newResult = {};");for(const v of k.keys){const C=S[v],N=Gn(v),F=p[v],B=F?._zod?.optin==="optional",Z=F?._zod?.optout==="optional";A.write(`const ${C} = ${y(v)};`),B&&Z?A.write(`
5
+ if (${C}.issues.length) {
6
+ if (${N} in input) {
7
+ payload.issues = payload.issues.concat(${C}.issues.map(iss => ({
8
8
  ...iss,
9
- path: iss.path ? [${P}, ...iss.path] : [${P}]
9
+ path: iss.path ? [${N}, ...iss.path] : [${N}]
10
10
  })));
11
11
  }
12
12
  }
13
13
 
14
- if (${N}.value === undefined) {
15
- if (${P} in input) {
16
- newResult[${P}] = undefined;
14
+ if (${C}.value === undefined) {
15
+ if (${N} in input) {
16
+ newResult[${N}] = undefined;
17
17
  }
18
18
  } else {
19
- newResult[${P}] = ${N}.value;
19
+ newResult[${N}] = ${C}.value;
20
20
  }
21
21
 
22
22
  `):B?A.write(`
23
- if (${N}.issues.length) {
24
- payload.issues = payload.issues.concat(${N}.issues.map(iss => ({
23
+ if (${C}.issues.length) {
24
+ payload.issues = payload.issues.concat(${C}.issues.map(iss => ({
25
25
  ...iss,
26
- path: iss.path ? [${P}, ...iss.path] : [${P}]
26
+ path: iss.path ? [${N}, ...iss.path] : [${N}]
27
27
  })));
28
28
  }
29
29
 
30
- if (${N}.value === undefined) {
31
- if (${P} in input) {
32
- newResult[${P}] = undefined;
30
+ if (${C}.value === undefined) {
31
+ if (${N} in input) {
32
+ newResult[${N}] = undefined;
33
33
  }
34
34
  } else {
35
- newResult[${P}] = ${N}.value;
35
+ newResult[${N}] = ${C}.value;
36
36
  }
37
37
 
38
38
  `):A.write(`
39
- const ${N}_present = ${P} in input;
40
- if (${N}.issues.length) {
41
- payload.issues = payload.issues.concat(${N}.issues.map(iss => ({
39
+ const ${C}_present = ${N} in input;
40
+ if (${C}.issues.length) {
41
+ payload.issues = payload.issues.concat(${C}.issues.map(iss => ({
42
42
  ...iss,
43
- path: iss.path ? [${P}, ...iss.path] : [${P}]
43
+ path: iss.path ? [${N}, ...iss.path] : [${N}]
44
44
  })));
45
45
  }
46
- if (!${N}_present && !${N}.issues.length) {
46
+ if (!${C}_present && !${C}.issues.length) {
47
47
  payload.issues.push({
48
48
  code: "invalid_type",
49
49
  expected: "nonoptional",
50
50
  input: undefined,
51
- path: [${P}]
51
+ path: [${N}]
52
52
  });
53
53
  }
54
54
 
55
- if (${N}_present) {
56
- if (${N}.value === undefined) {
57
- newResult[${P}] = undefined;
55
+ if (${C}_present) {
56
+ if (${C}.value === undefined) {
57
+ newResult[${N}] = undefined;
58
58
  } else {
59
- newResult[${P}] = ${N}.value;
59
+ newResult[${N}] = ${C}.value;
60
60
  }
61
61
  }
62
62
 
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=Ye,u=!qe.jitless,l=u&&Zu.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?or([],k,p,A,g,e):p):n(p,A):(p.issues.push({expected:"object",code:"invalid_type",input:k,inst:e}),p)}});function ar(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 Cd=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=>vt(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=>ar(u,r,e,i)):ar(s,r,e,i)}}),Md=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])=>sr(n,u,d)):sr(n,a,s)}});function Ct(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=Ct(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=Ct(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 sr(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=Ct(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 Id=h("$ZodEnum",(e,t)=>{Q.init(e,t);const n=Ln(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(i=>Uu.has(typeof i)).map(i=>typeof i=="string"?Ke(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}}),Dd=h("$ZodTransform",(e,t)=>{Q.init(e,t),e._zod.optin="optional",e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new $n(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 ur(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var cr=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(`^(${vt(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=>ur(s,i)):ur(a,i)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),Jd=h("$ZodExactOptional",(e,t)=>{cr.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)}),Ed=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(`^(${vt(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)}),Fd=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=>dr(a,t)):dr(i,t)}});function dr(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var zd=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))}),$d=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=>fr(a,e)):fr(i,e)}});function fr(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 Ld=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)}}),Hd=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=>je(s,t.in,r)):je(a,t.in,r)}const i=t.in._zod.run(n,r);return i instanceof Promise?i.then(a=>je(a,t.out,r)):je(i,t.out,r)}});function je(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 Bd=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(lr):lr(i)}});function lr(e){return e.value=Object.freeze(e.value),e}var Zd=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=>mr(a,n,r,e));mr(i,n,r,e)}});function mr(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 pr,Ud=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 Gd(){return new Ud}(pr=globalThis).__zod_globalRegistry??(pr.__zod_globalRegistry=Gd());var $e=globalThis.__zod_globalRegistry;function qd(e,t){return new e({type:"string",...C(t)})}function Yd(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...C(t)})}function hr(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...C(t)})}function Kd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...C(t)})}function Vd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...C(t)})}function Wd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...C(t)})}function Xd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...C(t)})}function Qd(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...C(t)})}function xd(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...C(t)})}function jd(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...C(t)})}function ef(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...C(t)})}function tf(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...C(t)})}function nf(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...C(t)})}function rf(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...C(t)})}function of(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...C(t)})}function af(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...C(t)})}function sf(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...C(t)})}function uf(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...C(t)})}function cf(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...C(t)})}function df(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...C(t)})}function ff(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...C(t)})}function lf(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...C(t)})}function mf(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...C(t)})}function pf(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...C(t)})}function hf(e,t){return new e({type:"string",format:"date",check:"string_format",...C(t)})}function yf(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...C(t)})}function gf(e,t){return new e({type:"string",format:"duration",check:"string_format",...C(t)})}function _f(e,t){return new e({type:"number",checks:[],...C(t)})}function Of(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...C(t)})}function Af(e,t){return new e({type:"symbol",...C(t)})}function Sf(e){return new e({type:"unknown"})}function Tf(e,t){return new e({type:"never",...C(t)})}function yr(e,t){return new jn({check:"less_than",...C(t),value:e,inclusive:!1})}function Mt(e,t){return new jn({check:"less_than",...C(t),value:e,inclusive:!0})}function gr(e,t){return new er({check:"greater_than",...C(t),value:e,inclusive:!1})}function It(e,t){return new er({check:"greater_than",...C(t),value:e,inclusive:!0})}function _r(e,t){return new $c({check:"multiple_of",...C(t),value:e})}function Or(e,t){return new Hc({check:"max_length",...C(t),maximum:e})}function et(e,t){return new Bc({check:"min_length",...C(t),minimum:e})}function Ar(e,t){return new Zc({check:"length_equals",...C(t),length:e})}function wf(e,t){return new Uc({check:"string_format",format:"regex",...C(t),pattern:e})}function kf(e){return new Gc({check:"string_format",format:"lowercase",...C(e)})}function vf(e){return new qc({check:"string_format",format:"uppercase",...C(e)})}function Rf(e,t){return new Yc({check:"string_format",format:"includes",...C(t),includes:e})}function Nf(e,t){return new Kc({check:"string_format",format:"starts_with",...C(t),prefix:e})}function Pf(e,t){return new Vc({check:"string_format",format:"ends_with",...C(t),suffix:e})}function be(e){return new Wc({check:"overwrite",tx:e})}function bf(e){return be(t=>t.normalize(e))}function Cf(){return be(e=>e.trim())}function Mf(){return be(e=>e.toLowerCase())}function If(){return be(e=>e.toUpperCase())}function Df(){return be(e=>Bu(e))}function Jf(e,t,n){return new e({type:"array",element:t,...C(n)})}function Ef(e,t,n){return new e({type:"custom",check:"custom",fn:t,...C(n)})}function Ff(e,t){const n=zf(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 zf(e,t){const n=new ae({check:"custom",...C(t)});return n._zod.check=e,n}function Sr(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 ee(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),ee(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 Tr(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>
63
+ `)}A.write("payload.value = newResult;"),A.write("return payload;");const M=A.compile();return(v,C)=>M(p,v,C)};let a;const s=Ye,u=!qe.jitless,l=u&&Xu.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=>!Ce(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 $d=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=>Rt(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)}}),Ld=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 Mt(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=Mt(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=Mt(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}),Ce(e))return e;const s=Mt(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 Hd=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=>Qu.has(typeof i)).map(i=>typeof i=="string"?Ke(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}}),Bd=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(`^(${Rt(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)}}),Zd=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)}),Ud=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(`^(${Rt(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)}),Gd=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 qd=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))}),Yd=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 Kd=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)}}),Vd=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=>je(s,t.in,r)):je(a,t.in,r)}const i=t.in._zod.run(n,r);return i instanceof Promise?i.then(a=>je(a,t.out,r)):je(i,t.out,r)}});function je(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 Wd=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 Xd=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,Qd=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 xd(){return new Qd}(gr=globalThis).__zod_globalRegistry??(gr.__zod_globalRegistry=xd());var $e=globalThis.__zod_globalRegistry;function jd(e,t){return new e({type:"string",...b(t)})}function ef(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 tf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...b(t)})}function nf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...b(t)})}function rf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...b(t)})}function of(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...b(t)})}function af(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...b(t)})}function sf(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...b(t)})}function uf(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...b(t)})}function cf(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...b(t)})}function df(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...b(t)})}function ff(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...b(t)})}function lf(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...b(t)})}function mf(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...b(t)})}function pf(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...b(t)})}function hf(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...b(t)})}function yf(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...b(t)})}function gf(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...b(t)})}function _f(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...b(t)})}function Of(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...b(t)})}function Af(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...b(t)})}function Sf(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...b(t)})}function Tf(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...b(t)})}function wf(e,t){return new e({type:"string",format:"date",check:"string_format",...b(t)})}function kf(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...b(t)})}function vf(e,t){return new e({type:"string",format:"duration",check:"string_format",...b(t)})}function Rf(e,t){return new e({type:"number",checks:[],...b(t)})}function Nf(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...b(t)})}function Cf(e,t){return new e({type:"symbol",...b(t)})}function Pf(e){return new e({type:"unknown"})}function bf(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 Dt(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 It(e,t){return new rr({check:"greater_than",...b(t),value:e,inclusive:!0})}function Sr(e,t){return new Yc({check:"multiple_of",...b(t),value:e})}function Tr(e,t){return new Vc({check:"max_length",...b(t),maximum:e})}function et(e,t){return new Wc({check:"min_length",...b(t),minimum:e})}function wr(e,t){return new Xc({check:"length_equals",...b(t),length:e})}function Mf(e,t){return new Qc({check:"string_format",format:"regex",...b(t),pattern:e})}function Df(e){return new xc({check:"string_format",format:"lowercase",...b(e)})}function If(e){return new jc({check:"string_format",format:"uppercase",...b(e)})}function Jf(e,t){return new ed({check:"string_format",format:"includes",...b(t),includes:e})}function Ef(e,t){return new td({check:"string_format",format:"starts_with",...b(t),prefix:e})}function Ff(e,t){return new nd({check:"string_format",format:"ends_with",...b(t),suffix:e})}function Pe(e){return new rd({check:"overwrite",tx:e})}function zf(e){return Pe(t=>t.normalize(e))}function $f(){return Pe(e=>e.trim())}function Lf(){return Pe(e=>e.toLowerCase())}function Hf(){return Pe(e=>e.toUpperCase())}function Bf(){return Pe(e=>Wu(e))}function Zf(e,t,n){return new e({type:"array",element:t,...b(n)})}function Uf(e,t,n){return new e({type:"custom",check:"custom",fn:t,...b(n)})}function Gf(e,t){const n=qf(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 qf(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 ee(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),ee(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>
64
64
 
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 wr(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:tt(t,"input",e.processors),output:tt(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 $f=(e,t={})=>n=>{const r=Sr({...n,processors:t});return ee(e,r),Tr(r,e),wr(r,e)},tt=(e,t,n={})=>r=>{const{libraryOptions:i,target:a}=r??{},s=Sr({...i??{},target:a,io:t,processors:n});return ee(e,s),Tr(s,e),wr(s,e)},Lf={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Hf=(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=Lf[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}))])}},Bf=(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)},Zf=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Uf=(e,t,n,r)=>{n.not={}},Gf=(e,t,n,r)=>{},qf=(e,t,n,r)=>{const i=e._zod.def,a=Ln(i.entries);a.every(s=>typeof s=="number")&&(n.type="number"),a.every(s=>typeof s=="string")&&(n.type="string"),n.enum=a},Yf=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Kf=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Vf=(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=ee(a.element,t,{...r,path:[...r.path,"items"]})},Wf=(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]=ee(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=ee(a.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(i.additionalProperties=!1)},Xf=(e,t,n,r)=>{const i=e._zod.def,a=i.inclusive===!1,s=i.options.map((u,d)=>ee(u,t,{...r,path:[...r.path,a?"oneOf":"anyOf",d]}));a?n.oneOf=s:n.anyOf=s},Qf=(e,t,n,r)=>{const i=e._zod.def,a=ee(i.left,t,{...r,path:[...r.path,"allOf",0]}),s=ee(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]]},xf=(e,t,n,r)=>{const i=e._zod.def,a=ee(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"}]},jf=(e,t,n,r)=>{const i=e._zod.def;ee(i.innerType,t,r);const a=t.seen.get(e);a.ref=i.innerType},el=(e,t,n,r)=>{const i=e._zod.def;ee(i.innerType,t,r);const a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},tl=(e,t,n,r)=>{const i=e._zod.def;ee(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)))},nl=(e,t,n,r)=>{const i=e._zod.def;ee(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},rl=(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;ee(s,t,r);const u=t.seen.get(e);u.ref=s},il=(e,t,n,r)=>{const i=e._zod.def;ee(i.innerType,t,r);const a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},kr=(e,t,n,r)=>{const i=e._zod.def;ee(i.innerType,t,r);const a=t.seen.get(e);a.ref=i.innerType},ol=h("ZodISODateTime",(e,t)=>{cd.init(e,t),W.init(e,t)});function al(e){return pf(ol,e)}var sl=h("ZodISODate",(e,t)=>{dd.init(e,t),W.init(e,t)});function ul(e){return hf(sl,e)}var cl=h("ZodISOTime",(e,t)=>{fd.init(e,t),W.init(e,t)});function dl(e){return yf(cl,e)}var fl=h("ZodISODuration",(e,t)=>{ld.init(e,t),W.init(e,t)});function ll(e){return gf(fl,e)}var ml=(e,t)=>{Yn.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>tc(e,n)},flatten:{value:n=>ec(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Tt,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Tt,2)}},isEmpty:{get(){return e.issues.length===0}}})},se=h("ZodError",ml,{Parent:Error}),pl=Nt(se),hl=Pt(se),yl=We(se),gl=Xe(se),_l=ic(se),Ol=oc(se),Al=ac(se),Sl=sc(se),Tl=uc(se),wl=cc(se),kl=dc(se),vl=fc(se),vr=new WeakMap;function Le(e,t,n){const r=Object.getPrototypeOf(e);let i=vr.get(r);if(i||(i=new Set,vr.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:tt(e,"input"),output:tt(e,"output")}}),e.toJSONSchema=$f(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,r)=>pl(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>yl(e,n,r),e.parseAsync=async(n,r)=>hl(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>gl(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>_l(e,n,r),e.decode=(n,r)=>Ol(e,n,r),e.encodeAsync=async(n,r)=>Al(e,n,r),e.decodeAsync=async(n,r)=>Sl(e,n,r),e.safeEncode=(n,r)=>Tl(e,n,r),e.safeDecode=(n,r)=>wl(e,n,r),e.safeEncodeAsync=async(n,r)=>kl(e,n,r),e.safeDecodeAsync=async(n,r)=>vl(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(Sm(n,r))},superRefine(n,r){return this.check(Tm(n,r))},overwrite(n){return this.check(be(n))},optional(){return Jr(this)},exactOptional(){return um(this)},nullable(){return Er(this)},nullish(){return Jr(Er(this))},nonoptional(n){return pm(this,n)},array(){return jl(this)},or(n){return Mr([this,n])},and(n){return im(this,n)},transform(n){return zr(this,am(n))},default(n){return fm(this,n)},prefault(n){return mm(this,n)},catch(n){return ym(this,n)},pipe(n){return zr(this,n)},readonly(){return Om(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)),Rr=h("_ZodString",(e,t)=>{bt.init(e,t),x.init(e,t),e._zod.processJSONSchema=(r,i,a)=>Hf(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(wf(...r))},includes(...r){return this.check(Rf(...r))},startsWith(...r){return this.check(Nf(...r))},endsWith(...r){return this.check(Pf(...r))},min(...r){return this.check(et(...r))},max(...r){return this.check(Or(...r))},length(...r){return this.check(Ar(...r))},nonempty(...r){return this.check(et(1,...r))},lowercase(r){return this.check(kf(r))},uppercase(r){return this.check(vf(r))},trim(){return this.check(Cf())},normalize(...r){return this.check(bf(...r))},toLowerCase(){return this.check(Mf())},toUpperCase(){return this.check(If())},slugify(){return this.check(Df())}})}),Rl=h("ZodString",(e,t)=>{bt.init(e,t),Rr.init(e,t),e.email=n=>e.check(Yd(Pl,n)),e.url=n=>e.check(Qd(bl,n)),e.jwt=n=>e.check(mf(Gl,n)),e.emoji=n=>e.check(xd(Cl,n)),e.guid=n=>e.check(hr(Nr,n)),e.uuid=n=>e.check(Kd(nt,n)),e.uuidv4=n=>e.check(Vd(nt,n)),e.uuidv6=n=>e.check(Wd(nt,n)),e.uuidv7=n=>e.check(Xd(nt,n)),e.nanoid=n=>e.check(jd(Ml,n)),e.guid=n=>e.check(hr(Nr,n)),e.cuid=n=>e.check(ef(Il,n)),e.cuid2=n=>e.check(tf(Dl,n)),e.ulid=n=>e.check(nf(Jl,n)),e.base64=n=>e.check(df(Bl,n)),e.base64url=n=>e.check(ff(Zl,n)),e.xid=n=>e.check(rf(El,n)),e.ksuid=n=>e.check(of(Fl,n)),e.ipv4=n=>e.check(af(zl,n)),e.ipv6=n=>e.check(sf($l,n)),e.cidrv4=n=>e.check(uf(Ll,n)),e.cidrv6=n=>e.check(cf(Hl,n)),e.e164=n=>e.check(lf(Ul,n)),e.datetime=n=>e.check(al(n)),e.date=n=>e.check(ul(n)),e.time=n=>e.check(dl(n)),e.duration=n=>e.check(ll(n))});function Nl(e){return qd(Rl,e)}var W=h("ZodStringFormat",(e,t)=>{V.init(e,t),Rr.init(e,t)}),Pl=h("ZodEmail",(e,t)=>{ed.init(e,t),W.init(e,t)}),Nr=h("ZodGUID",(e,t)=>{xc.init(e,t),W.init(e,t)}),nt=h("ZodUUID",(e,t)=>{jc.init(e,t),W.init(e,t)}),bl=h("ZodURL",(e,t)=>{td.init(e,t),W.init(e,t)}),Cl=h("ZodEmoji",(e,t)=>{nd.init(e,t),W.init(e,t)}),Ml=h("ZodNanoID",(e,t)=>{rd.init(e,t),W.init(e,t)}),Il=h("ZodCUID",(e,t)=>{id.init(e,t),W.init(e,t)}),Dl=h("ZodCUID2",(e,t)=>{od.init(e,t),W.init(e,t)}),Jl=h("ZodULID",(e,t)=>{ad.init(e,t),W.init(e,t)}),El=h("ZodXID",(e,t)=>{sd.init(e,t),W.init(e,t)}),Fl=h("ZodKSUID",(e,t)=>{ud.init(e,t),W.init(e,t)}),zl=h("ZodIPv4",(e,t)=>{md.init(e,t),W.init(e,t)}),$l=h("ZodIPv6",(e,t)=>{pd.init(e,t),W.init(e,t)}),Ll=h("ZodCIDRv4",(e,t)=>{hd.init(e,t),W.init(e,t)}),Hl=h("ZodCIDRv6",(e,t)=>{yd.init(e,t),W.init(e,t)}),Bl=h("ZodBase64",(e,t)=>{gd.init(e,t),W.init(e,t)}),Zl=h("ZodBase64URL",(e,t)=>{Od.init(e,t),W.init(e,t)}),Ul=h("ZodE164",(e,t)=>{Ad.init(e,t),W.init(e,t)}),Gl=h("ZodJWT",(e,t)=>{Td.init(e,t),W.init(e,t)}),Pr=h("ZodNumber",(e,t)=>{nr.init(e,t),x.init(e,t),e._zod.processJSONSchema=(r,i,a)=>Bf(e,r,i,a),Le(e,"ZodNumber",{gt(r,i){return this.check(gr(r,i))},gte(r,i){return this.check(It(r,i))},min(r,i){return this.check(It(r,i))},lt(r,i){return this.check(yr(r,i))},lte(r,i){return this.check(Mt(r,i))},max(r,i){return this.check(Mt(r,i))},int(r){return this.check(br(r))},safe(r){return this.check(br(r))},positive(r){return this.check(gr(0,r))},nonnegative(r){return this.check(It(0,r))},negative(r){return this.check(yr(0,r))},nonpositive(r){return this.check(Mt(0,r))},multipleOf(r,i){return this.check(_r(r,i))},step(r,i){return this.check(_r(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 ql(e){return _f(Pr,e)}var Yl=h("ZodNumberFormat",(e,t)=>{wd.init(e,t),Pr.init(e,t)});function br(e){return Of(Yl,e)}var Kl=h("ZodSymbol",(e,t)=>{kd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Zf(e,n,r,i)});function Vl(e){return Af(Kl,e)}var Wl=h("ZodUnknown",(e,t)=>{vd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Gf(e,n,r,i)});function Cr(){return Sf(Wl)}var Xl=h("ZodNever",(e,t)=>{Rd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Uf(e,n,r,i)});function Ql(e){return Tf(Xl,e)}var xl=h("ZodArray",(e,t)=>{Nd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Vf(e,n,r,i),e.element=t.element,Le(e,"ZodArray",{min(n,r){return this.check(et(n,r))},nonempty(n){return this.check(et(1,n))},max(n,r){return this.check(Or(n,r))},length(n,r){return this.check(Ar(n,r))},unwrap(){return this.element}})});function jl(e,t){return Jf(xl,e,t)}var em=h("ZodObject",(e,t)=>{bd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Wf(e,n,r,i),U(e,"shape",()=>t.shape),Le(e,"ZodObject",{keyof(){return Ir(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:Cr()})},loose(){return this.clone({...this._zod.def,catchall:Cr()})},strict(){return this.clone({...this._zod.def,catchall:Ql()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return Vu(this,n)},safeExtend(n){return Wu(this,n)},merge(n){return Xu(this,n)},pick(n){return Yu(this,n)},omit(n){return Ku(this,n)},partial(...n){return Qu(Dr,this,n[0])},required(...n){return xu(Fr,this,n[0])}})});function tm(e,t){const n={type:"object",shape:e??{},...C(t)};return new em(n)}var nm=h("ZodUnion",(e,t)=>{Cd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Xf(e,n,r,i),e.options=t.options});function Mr(e,t){return new nm({type:"union",options:e,...C(t)})}var rm=h("ZodIntersection",(e,t)=>{Md.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Qf(e,n,r,i)});function im(e,t){return new rm({type:"intersection",left:e,right:t})}var Dt=h("ZodEnum",(e,t)=>{Id.init(e,t),x.init(e,t),e._zod.processJSONSchema=(r,i,a)=>qf(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 Dt({...t,checks:[],...C(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 Dt({...t,checks:[],...C(i),entries:a})}});function Ir(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new Dt({type:"enum",entries:n,...C(t)})}var om=h("ZodTransform",(e,t)=>{Dd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Kf(e,n,r,i),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new $n(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 am(e){return new om({type:"transform",transform:e})}var Dr=h("ZodOptional",(e,t)=>{cr.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>kr(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Jr(e){return new Dr({type:"optional",innerType:e})}var sm=h("ZodExactOptional",(e,t)=>{Jd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>kr(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function um(e){return new sm({type:"optional",innerType:e})}var cm=h("ZodNullable",(e,t)=>{Ed.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>xf(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Er(e){return new cm({type:"nullable",innerType:e})}var dm=h("ZodDefault",(e,t)=>{Fd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>el(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function fm(e,t){return new dm({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Un(t)}})}var lm=h("ZodPrefault",(e,t)=>{zd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>tl(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function mm(e,t){return new lm({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Un(t)}})}var Fr=h("ZodNonOptional",(e,t)=>{$d.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>jf(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function pm(e,t){return new Fr({type:"nonoptional",innerType:e,...C(t)})}var hm=h("ZodCatch",(e,t)=>{Ld.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>nl(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function ym(e,t){return new hm({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var gm=h("ZodPipe",(e,t)=>{Hd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>rl(e,n,r,i),e.in=t.in,e.out=t.out});function zr(e,t){return new gm({type:"pipe",in:e,out:t})}var _m=h("ZodReadonly",(e,t)=>{Bd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>il(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Om(e){return new _m({type:"readonly",innerType:e})}var Am=h("ZodCustom",(e,t)=>{Zd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Yf(e,n,r,i)});function Sm(e,t={}){return Ef(Am,e,t)}function Tm(e,t){return Ff(e,t)}var wm=Ir(["ASC","DESC"]),Oy=tm({sortBy:Mr([Nl(),ql(),Vl()]).optional(),sortOrder:wm.optional()}),km=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 vm(){return new km}var Ay=vm(),$r="http://localhost".replace(/\/+$/,""),Rm=e=>typeof Blob<"u"&&e instanceof Blob,ue=class{configuration;middleware;constructor(e=new Et){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 Jt(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||Rm(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,...En({},t,{headers:En({},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}},Jt=class extends Error{response;name="ResponseError";constructor(e,t){super(t),this.response=e}},H=class extends Error{field;name="RequiredError";constructor(e,t){super(t),this.field=e}},Nm={csv:",",ssv:" ",tsv:" ",pipes:"|"},Et=class{configuration;constructor(e={}){this.configuration=e}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:$r}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||Ft}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 Pm(e,t){const n=e[t];return n!=null}function Ft(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?Ft(i,r):`${encodeURIComponent(r)}=${encodeURIComponent(String(i))}`}).filter(n=>n.length>0).join("&")}function bm(e){for(const t of e)if(t.contentType==="multipart/form-data")return!0;return!1}var G=class{raw;transformer;constructor(e,t=n=>n){this.raw=e,this.transformer=t}async value(){return this.transformer(await this.raw.json())}},Lr=class{raw;constructor(e){this.raw=e}async value(){}},Cm=class{raw;constructor(e){this.raw=e}async value(){return await this.raw.blob()}},zt=class{raw;constructor(e){this.raw=e}async value(){return await this.raw.text()}},Mm={Coupon:"COUPON"};function Im(e){return!(!("name"in e)||e.name===void 0)}function Dm(e){return $t(e,!1)}function $t(e,t){return e==null?e:{name:e.name}}function Hr(e){return Br(e,!1)}function Br(e,t=!1){return e==null?e:{name:e.name}}var Jm={CreditCard:"CREDIT_CARD"};function Em(e){return!(!("name"in e)||e.name===void 0)}function Fm(e){return Lt(e,!1)}function Lt(e,t){return e==null?e:{name:e.name}}function Zr(e){return Ur(e,!1)}function Ur(e,t=!1){return e==null?e:{name:e.name}}var zm={DepositAccount:"DEPOSIT_ACCOUNT"};function $m(e){return!(!("name"in e)||e.name===void 0)}function Lm(e){return Ht(e,!1)}function Ht(e,t){return e==null?e:{name:e.name}}function Gr(e){return qr(e,!1)}function qr(e,t=!1){return e==null?e:{name:e.name}}var Hm={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"};function Bm(e){return!(!("status"in e)||e.status===void 0)}function Yr(e){return Kr(e,!1)}function Kr(e,t){return e==null?e:{status:e.status}}function Vr(e){return Wr(e,!1)}function Wr(e,t=!1){return e==null?e:{status:e.status}}var Zm={PayLater:"PAY_LATER"};function Um(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function Gm(e){return Bt(e,!1)}function Bt(e,t){return e==null?e:{name:e.name,payload:Yr(e.payload)}}function Xr(e){return Qr(e,!1)}function Qr(e,t=!1){return e==null?e:{name:e.name,payload:Vr(e.payload)}}function xr(e){return jr(e,!1)}function jr(e,t){if(e==null)return e;switch(e.name){case"COUPON":return{...$t(e,!0),name:"COUPON"};case"CREDIT_CARD":return{...Lt(e,!0),name:"CREDIT_CARD"};case"DEPOSIT_ACCOUNT":return{...Ht(e,!0),name:"DEPOSIT_ACCOUNT"};case"PAY_LATER":return{...Bt(e,!0),name:"PAY_LATER"};default:throw new Error(`No variant of AllowedPaymentMethodApi exists with 'name=${e.name}'`)}}function ei(e){if(e!==void 0){if(e===null)return null;switch(e.name){case"COUPON":return Hr(e);case"CREDIT_CARD":return Zr(e);case"DEPOSIT_ACCOUNT":return Gr(e);case"PAY_LATER":return Xr(e);default:throw new Error(`No variant of AllowedPaymentMethodApi exists with 'name=${e.name}'`)}}}function qm(e,t=!1){return ei(e)}function Ym(e){return!0}function Zt(e){return ti(e,!1)}function ti(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 Ut(e){return ni(e,!1)}function ni(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 Km(e){return!(!("count"in e)||e.count===void 0||!("name"in e)||e.name===void 0||!("occupancy"in e)||e.occupancy===void 0)}function Vm(e){return ri(e,!1)}function ri(e,t){return e==null?e:{count:e.count,name:e.name,occupancy:e.occupancy}}function Wm(e){return ii(e,!1)}function ii(e,t=!1){return e==null?e:{count:e.count,name:e.name,occupancy:e.occupancy}}function Xm(e){return!(!("dateFrom"in e)||e.dateFrom===void 0||!("dateTo"in e)||e.dateTo===void 0||!("penaltyPercentage"in e)||e.penaltyPercentage===void 0)}function rt(e){return oi(e,!1)}function oi(e,t){return e==null?e:{dateFrom:e.date_from,dateTo:e.date_to,penaltyPercentage:e.penalty_percentage}}function it(e){return ai(e,!1)}function ai(e,t=!1){return e==null?e:{date_from:e.dateFrom,date_to:e.dateTo,penalty_percentage:e.penaltyPercentage}}var ot={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 Qm(e){for(const t in ot)if(Object.prototype.hasOwnProperty.call(ot,t)&&ot[t]===e)return!0;return!1}function He(e){return si(e,!1)}function si(e,t){return e}function xm(e){return e}function jm(e,t){return e}function ep(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 Ce(e){return ui(e,!1)}function ui(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 ci(e,!1)}function ci(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 tp(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 di(e){return fi(e,!1)}function fi(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(Ce),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 li(e){return mi(e,!1)}function mi(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 at={Included:"INCLUDED",NotIncluded:"NOT_INCLUDED",Optional:"OPTIONAL"};function np(e){for(const t in at)if(Object.prototype.hasOwnProperty.call(at,t)&&at[t]===e)return!0;return!1}function pi(e){return hi(e,!1)}function hi(e,t){return e}function rp(e){return e}function ip(e,t){return e}var op={PerNight:"PER_NIGHT",PerStay:"PER_STAY"},ap={PerAdult:"PER_ADULT",PerBooking:"PER_BOOKING"};function sp(e){return!(!("taxFrequency"in e)||e.taxFrequency===void 0||!("taxMode"in e)||e.taxMode===void 0)}function Gt(e){return yi(e,!1)}function yi(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 qt(e){return gi(e,!1)}function gi(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 st={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 up(e){for(const t in st)if(Object.prototype.hasOwnProperty.call(st,t)&&st[t]===e)return!0;return!1}function le(e){return _i(e,!1)}function _i(e,t){return e}function cp(e){return e}function dp(e,t){return e}function fp(e){return!(!("name"in e)||e.name===void 0)}function Yt(e){return Oi(e,!1)}function Oi(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 Kt(e){return Ai(e,!1)}function Ai(e,t=!1){return e==null?e:{bg:e.bg,color:e.color,description:e.description,fa_icon:e.faIcon,name:e.name}}var lp={BestMatch:"BEST_MATCH",Cheapest:"CHEAPEST",MatchingRoomCount:"MATCHING_ROOM_COUNT",Regular:"REGULAR"},mp={Included:"included",NotIncluded:"not_included",Unknown:"unknown"},pp={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 Si(e,!1)}function Si(e,t){return e==null?e:{breakfastCount:e.breakfast_count==null?void 0:e.breakfast_count,breakfastOption:pi(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(rt),count:e.count==null?void 0:e.count,currency:le(e.currency),hotelId:e.hotel_id,hotelRooms:e.hotel_rooms.map(di),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(Yt),taxIncludedPrice:e.tax_included_price,taxes:e.taxes==null?void 0:e.taxes.map(Gt),type:e.type==null?void 0:e.type}}function Ie(e){return Ti(e,!1)}function Ti(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(it),count:e.count,currency:e.currency,hotel_id:e.hotelId,hotel_rooms:e.hotelRooms.map(li),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(Kt),tax_included_price:e.taxIncludedPrice,taxes:e.taxes==null?void 0:e.taxes.map(qt),type:e.type}}var ut={DeDe:"de-DE",EnUs:"en-US",EsEs:"es-ES",FrFr:"fr-FR",ItIt:"it-IT",NlNl:"nl-NL",PtPt:"pt-PT"};function yp(e){for(const t in ut)if(Object.prototype.hasOwnProperty.call(ut,t)&&ut[t]===e)return!0;return!1}function ct(e){return wi(e,!1)}function wi(e,t){return e}function gp(e){return e}function _p(e,t){return e}var dt={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 Op(e){for(const t in dt)if(Object.prototype.hasOwnProperty.call(dt,t)&&dt[t]===e)return!0;return!1}function ft(e){return ki(e,!1)}function ki(e,t){return e}function Ap(e){return e}function Sp(e,t){return e}function Tp(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 vi(e){return Ri(e,!1)}function Ri(e,t){return e==null?e:{address:e.address,city:e.city,country:ft(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 Ni(e){return Pi(e,!1)}function Pi(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 wp={Dr:"dr",Mr:"mr",Mrs:"mrs",Ms:"ms",NotSpecified:"notSpecified",Prof:"prof"};function kp(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 Vt(e){return bi(e,!1)}function bi(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:ft(e.country),email:e.email,firstName:e.first_name,lang:e.lang==null?void 0:ct(e.lang),lastName:e.last_name,nationality:ft(e.nationality),organization:e.organization==null?void 0:vi(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 Wt(e){return Ci(e,!1)}function Ci(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:Ni(e.organization),phone:e.phone,remarks:e.remarks,salutation:e.salutation,state:e.state,zip_code:e.zipCode}}function vp(e){return!(!("amount"in e)||e.amount===void 0||!("couponId"in e)||e.couponId===void 0)}function Mi(e){return Ii(e,!1)}function Ii(e,t){return e==null?e:{amount:e.amount,couponId:e.coupon_id,token:e.token==null?void 0:e.token}}function Di(e){return Ji(e,!1)}function Ji(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId,token:e.token}}var Rp={Coupon:"COUPON"};function Np(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function Pp(e){return Xt(e,!1)}function Xt(e,t){return e==null?e:{name:e.name,payload:Mi(e.payload)}}function Ei(e){return Fi(e,!1)}function Fi(e,t=!1){return e==null?e:{name:e.name,payload:Di(e.payload)}}function bp(e){return!(!("amount"in e)||e.amount===void 0||!("token"in e)||e.token===void 0)}function zi(e){return $i(e,!1)}function $i(e,t){return e==null?e:{amount:e.amount,couponId:e.coupon_id==null?void 0:e.coupon_id,token:e.token}}function Li(e){return Hi(e,!1)}function Hi(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId,token:e.token}}var Cp={CreditCard:"CREDIT_CARD"};function Mp(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function Ip(e){return Qt(e,!1)}function Qt(e,t){return e==null?e:{name:e.name,payload:zi(e.payload)}}function Bi(e){return Zi(e,!1)}function Zi(e,t=!1){return e==null?e:{name:e.name,payload:Li(e.payload)}}function Dp(e){return!(!("amount"in e)||e.amount===void 0)}function Ui(e){return Gi(e,!1)}function Gi(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 qi(e){return Yi(e,!1)}function Yi(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId,token:e.token}}var Jp={DepositAccount:"DEPOSIT_ACCOUNT"};function Ep(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function Fp(e){return xt(e,!1)}function xt(e,t){return e==null?e:{name:e.name,payload:Ui(e.payload)}}function Ki(e){return Vi(e,!1)}function Vi(e,t=!1){return e==null?e:{name:e.name,payload:qi(e.payload)}}var zp={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"};function $p(e){return!(!("amount"in e)||e.amount===void 0||!("status"in e)||e.status===void 0)}function Wi(e){return Xi(e,!1)}function Xi(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 Qi(e){return xi(e,!1)}function xi(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId,status:e.status,token:e.token}}var Lp={PayLater:"PAY_LATER"};function Hp(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function Bp(e){return jt(e,!1)}function jt(e,t){return e==null?e:{name:e.name,payload:Wi(e.payload)}}function ji(e){return eo(e,!1)}function eo(e,t=!1){return e==null?e:{name:e.name,payload:Qi(e.payload)}}function to(e){return no(e,!1)}function no(e,t){if(e==null)return e;switch(e.name){case"COUPON":return{...Xt(e,!0),name:"COUPON"};case"CREDIT_CARD":return{...Qt(e,!0),name:"CREDIT_CARD"};case"DEPOSIT_ACCOUNT":return{...xt(e,!0),name:"DEPOSIT_ACCOUNT"};case"PAY_LATER":return{...jt(e,!0),name:"PAY_LATER"};default:throw new Error(`No variant of PaymentMethodApi exists with 'name=${e.name}'`)}}function en(e){if(e!==void 0){if(e===null)return null;switch(e.name){case"COUPON":return Ei(e);case"CREDIT_CARD":return Bi(e);case"DEPOSIT_ACCOUNT":return Ki(e);case"PAY_LATER":return ji(e);default:throw new Error(`No variant of PaymentMethodApi exists with 'name=${e.name}'`)}}}function Zp(e,t=!1){return en(e)}var Up={Active:"active",Archived:"archived",Claimed:"claimed",Incomplete:"incomplete",Open:"open",WaitingPayment:"waiting_payment"};function Gp(e){return!(!("status"in e)||e.status===void 0)}function ro(e){return io(e,!1)}function io(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 oo(e){return ao(e,!1)}function ao(e,t=!1){return e==null?e:{created_at:e.createdAt,reference:e.reference,status:e.status}}var qp={CreditNote:"credit_note",Invoice:"invoice"};function Yp(e){return!(!("type"in e)||e.type===void 0||!("url"in e)||e.url===void 0)}function so(e){return uo(e,!1)}function uo(e,t){return e==null?e:{type:e.type,url:e.url}}function co(e){return fo(e,!1)}function fo(e,t=!1){return e==null?e:{type:e.type,url:e.url}}var Kp={Insurance:"insurance"};function Vp(e){return!(!("price"in e)||e.price===void 0||!("taxIncludedPrice"in e)||e.taxIncludedPrice===void 0||!("type"in e)||e.type===void 0)}function tn(e){return lo(e,!1)}function lo(e,t){return e==null?e:{price:e.price,taxIncludedPrice:e.tax_included_price,type:e.type}}function nn(e){return mo(e,!1)}function mo(e,t=!1){return e==null?e:{price:e.price,tax_included_price:e.taxIncludedPrice,type:e.type}}function Wp(e){return!0}function lt(e){return po(e,!1)}function po(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 mt(e){return ho(e,!1)}function ho(e,t=!1){return e==null?e:{latitude:e.latitude,longitude:e.longitude,name:e.name,slug:e.slug}}function Xp(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 yo(e){return go(e,!1)}function go(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(Ce),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 _o(e){return Oo(e,!1)}function Oo(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 Qp(e){return!(!("fullname"in e)||e.fullname===void 0||!("id"in e)||e.id===void 0)}function pt(e){return Ao(e,!1)}function Ao(e,t){return e==null?e:{fullname:e.fullname,id:e.id}}function So(e){return To(e,!1)}function To(e,t=!1){return e==null?e:{fullname:e.fullname,id:e.id}}function xp(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 wo(e,!1)}function wo(e,t){return e==null?e:{hotelRoom:e.hotel_room==null?void 0:yo(e.hotel_room),hotelRoomId:e.hotel_room_id,hotelRoomingListGuests:e.hotel_rooming_list_guests.map(pt),id:e.id,limitDate:e.limit_date==null?void 0:new Date(e.limit_date)}}function ko(e){return vo(e,!1)}function vo(e,t=!1){return e==null?e:{hotel_room:_o(e.hotelRoom),hotel_room_id:e.hotelRoomId,hotel_rooming_list_guests:e.hotelRoomingListGuests.map(So),id:e.id,limit_date:e.limitDate==null?e.limitDate:e.limitDate.toISOString()}}var jp={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"},eh={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 th(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 Ro(e,!1)}function Ro(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(tn),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(rt),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:Vt(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:lt(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(rn),id:e.id==null?void 0:e.id,insurance:e.insurance==null?void 0:ro(e.insurance),invoices:e.invoices==null?void 0:e.invoices.map(so),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(to),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(Gt),terms:e.terms,token:e.token==null?void 0:e.token}}function No(e){return Po(e,!1)}function Po(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(nn),adult_count:e.adultCount,booking_group_id:e.bookingGroupId,canceled_at:e.canceledAt,cancellation_policies:e.cancellationPolicies.map(it),cancellation_policy_remarks:e.cancellationPolicyRemarks,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,confirmed_at:e.confirmedAt,contact_person:Wt(e.contactPerson),created_at:e.createdAt,currency:e.currency,customer_reference:e.customerReference,event:mt(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(ko),id:e.id,insurance:oo(e.insurance),invoices:e.invoices==null?void 0:e.invoices.map(co),last_status_updated_at:e.lastStatusUpdatedAt,metadata:e.metadata,pay_later:e.payLater,payment_methods:e.paymentMethods==null?void 0:e.paymentMethods.map(en),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(qt),terms:e.terms,token:e.token}}var nh={Insurance:"insurance"};function rh(e){return!(!("type"in e)||e.type===void 0)}function bo(e){return Co(e,!1)}function Co(e,t){return e==null?e:{type:e.type}}function Mo(e){return Io(e,!1)}function Io(e,t=!1){return e==null?e:{type:e.type}}function ih(e){return!(!("fullname"in e)||e.fullname===void 0)}function Do(e){return Jo(e,!1)}function Jo(e,t){return e==null?e:{fullname:e.fullname}}function Eo(e){return Fo(e,!1)}function Fo(e,t=!1){return e==null?e:{fullname:e.fullname}}function oh(e){return!(!("guests"in e)||e.guests===void 0||!("hotelRoomId"in e)||e.hotelRoomId===void 0)}function zo(e){return $o(e,!1)}function $o(e,t){return e==null?e:{guests:e.guests.map(Do),hotelRoomId:e.hotel_room_id}}function Lo(e){return Ho(e,!1)}function Ho(e,t=!1){return e==null?e:{guests:e.guests.map(Eo),hotel_room_id:e.hotelRoomId}}function ah(e){return!0}function De(e){return Bo(e,!1)}function Bo(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 Je(e){return Zo(e,!1)}function Zo(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 sh(e){return!0}function Uo(e){return Go(e,!1)}function Go(e,t){return e==null?e:{couponId:e.coupon_id==null?void 0:e.coupon_id}}function qo(e){return Yo(e,!1)}function Yo(e,t=!1){return e==null?e:{coupon_id:e.couponId}}var uh={Coupon:"COUPON",CreditCard:"CREDIT_CARD",DepositAccount:"DEPOSIT_ACCOUNT"};function ch(e){return!(!("name"in e)||e.name===void 0)}function on(e){return Ko(e,!1)}function Ko(e,t){return e==null?e:{name:e.name,payload:e.payload==null?void 0:Uo(e.payload)}}function an(e){return Vo(e,!1)}function Vo(e,t=!1){return e==null?e:{name:e.name,payload:qo(e.payload)}}function dh(e){return!(!("bookingPolicyId"in e)||e.bookingPolicyId===void 0||!("contactPerson"in e)||e.contactPerson===void 0)}function fh(e){return Wo(e,!1)}function Wo(e,t){return e==null?e:{addons:e.addons==null?void 0:e.addons.map(bo),bookingPolicyId:e.booking_policy_id,contactPerson:Vt(e.contact_person),eventMetadata:e.event_metadata==null?void 0:De(e.event_metadata),guestsList:e.guests_list==null?void 0:e.guests_list.map(zo),metadata:e.metadata==null?void 0:e.metadata,paymentMethods:e.payment_methods==null?void 0:e.payment_methods.map(on),trackingId:e.tracking_id==null?void 0:e.tracking_id}}function Xo(e){return Qo(e,!1)}function Qo(e,t=!1){return e==null?e:{addons:e.addons==null?void 0:e.addons.map(Mo),booking_policy_id:e.bookingPolicyId,contact_person:Wt(e.contactPerson),event_metadata:Je(e.eventMetadata),guests_list:e.guestsList==null?void 0:e.guestsList.map(Lo),metadata:e.metadata,payment_methods:e.paymentMethods==null?void 0:e.paymentMethods.map(an),tracking_id:e.trackingId}}function lh(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 sn(e){return xo(e,!1)}function xo(e,t){return e==null?e:{addons:e.addons==null?void 0:e.addons.map(tn),adultCount:e.adult_count,cancellationPolicies:e.cancellation_policies.map(rt),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 mh(e){return jo(e,!1)}function jo(e,t=!1){return e==null?e:{addons:e.addons==null?void 0:e.addons.map(nn),adult_count:e.adultCount,cancellation_policies:e.cancellationPolicies.map(it),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 ph(e){return!(!("hotelRoomOfferId"in e)||e.hotelRoomOfferId===void 0)}function hh(e){return ea(e,!1)}function ea(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:ct(e.lang)}}function ta(e){return na(e,!1)}function na(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 yh(e){return!0}function ra(e){return ia(e,!1)}function ia(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 oa(e){return aa(e,!1)}function aa(e,t=!1){return e==null?e:{ending_before:e.endingBefore,limit:e.limit,starting_after:e.startingAfter,total_count:e.totalCount}}function gh(e){return!(!("data"in e)||e.data===void 0||!("meta"in e)||e.meta===void 0)}function sa(e){return ua(e,!1)}function ua(e,t){return e==null?e:{data:e.data.map(fe),meta:ra(e.meta)}}function _h(e){return ca(e,!1)}function ca(e,t=!1){return e==null?e:{data:e.data.map(No),meta:oa(e.meta)}}var Oh={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 Ah(e){return!(!("statusCode"in e)||e.statusCode===void 0)}function Sh(e){return da(e,!1)}function da(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 Th(e){return fa(e,!1)}function fa(e,t=!1){return e==null?e:{documentation_url:e.documentationUrl,error:e.error,message:e.message,statusCode:e.statusCode,type:e.type}}function wh(e){return!(!("rating"in e)||e.rating===void 0)}function un(e){return la(e,!1)}function la(e,t){return e==null?e:{category:e.category==null?void 0:e.category,rating:e.rating}}function cn(e){return ma(e,!1)}function ma(e,t=!1){return e==null?e:{category:e.category,rating:e.rating}}function kh(e){return!0}function dn(e){return pa(e,!1)}function pa(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 fn(e){return ha(e,!1)}function ha(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 vh(e){return!0}function ya(e){return ga(e,!1)}function ga(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 _a(e){return Oa(e,!1)}function Oa(e,t=!1){return e==null?e:{driving:e.driving,transit:e.transit,walking:e.walking}}function Rh(e){return!(!("name"in e)||e.name===void 0)}function ln(e){return Aa(e,!1)}function Aa(e,t){return e==null?e:{description:e.description==null?void 0:e.description,name:e.name,travelTimes:e.travel_times==null?void 0:ya(e.travel_times)}}function mn(e){return Sa(e,!1)}function Sa(e,t=!1){return e==null?e:{description:e.description,name:e.name,travel_times:_a(e.travelTimes)}}function Nh(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 Ta(e){return wa(e,!1)}function wa(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:Zt(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(Ce),hotelReviewRatings:e.hotel_review_ratings==null?void 0:e.hotel_review_ratings.map(un),id:e.id,images:e.images==null?void 0:dn(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(ln),website:e.website==null?void 0:e.website}}function Ph(e){return ka(e,!1)}function ka(e,t=!1){return e==null?e:{address:e.address,address2:e.address2,amenities:Ut(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(cn),id:e.id,images:fn(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(mn),website:e.website}}function bh(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 va(e){return Ra(e,!1)}function Ra(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:Zt(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(Ce),hotelReviewRatings:e.hotel_review_ratings==null?void 0:e.hotel_review_ratings.map(un),id:e.id,images:e.images==null?void 0:dn(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(ln),website:e.website==null?void 0:e.website,hotelRoomOffers:e.hotel_room_offers.map(Me),tags:e.tags==null?void 0:e.tags.map(Yt)}}function Na(e){return Pa(e,!1)}function Pa(e,t=!1){return e==null?e:{address:e.address,address2:e.address2,amenities:Ut(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(cn),id:e.id,images:fn(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(mn),website:e.website,hotel_room_offers:e.hotelRoomOffers.map(Ie),tags:e.tags==null?void 0:e.tags.map(Kt)}}function Ch(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 pn(e){return ba(e,!1)}function ba(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:De(e.event_metadata),id:e.id,latitude:e.latitude,longitude:e.longitude,roomCount:e.room_count,sourceMarket:He(e.source_market)}}function Mh(e){return Ca(e,!1)}function Ca(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:Je(e.eventMetadata),id:e.id,latitude:e.latitude,longitude:e.longitude,room_count:e.roomCount,source_market:e.sourceMarket}}function Ih(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 Dh(e){return Ma(e,!1)}function Ma(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:De(e.event_metadata),latitude:e.latitude==null?void 0:e.latitude,longitude:e.longitude==null?void 0:e.longitude,roomCount:e.room_count}}function Ia(e){return Da(e,!1)}function Da(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:Je(e.eventMetadata),latitude:e.latitude,longitude:e.longitude,room_count:e.roomCount}}function Jh(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 Ja(e){return Ea(e,!1)}function Ea(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(va),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 Fa(e){return za(e,!1)}function za(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(Na),price_histogram:e.priceHistogram,price_max:e.priceMax,price_min:e.priceMin}}var ht={Complete:"COMPLETE",InProgress:"IN_PROGRESS"};function Eh(e){for(const t in ht)if(Object.prototype.hasOwnProperty.call(ht,t)&&ht[t]===e)return!0;return!1}function $a(e){return La(e,!1)}function La(e,t){return e}function Fh(e){return e}function zh(e,t){return e}function $h(e){return!(!("status"in e)||e.status===void 0)}function hn(e){return Ha(e,!1)}function Ha(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:$a(e.status)}}function yn(e){return Ba(e,!1)}function Ba(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 Lh(e){return!(!("data"in e)||e.data===void 0||!("meta"in e)||e.meta===void 0)}function Za(e){return Ua(e,!1)}function Ua(e,t){return e==null?e:{data:Ja(e.data),event:e.event==null?void 0:lt(e.event),meta:hn(e.meta)}}function Hh(e){return Ga(e,!1)}function Ga(e,t=!1){return e==null?e:{data:Fa(e.data),event:mt(e.event),meta:yn(e.meta)}}function Bh(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 qa(e){return Ya(e,!1)}function Ya(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 Zh(e){return Ka(e,!1)}function Ka(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 Uh(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 gn(e){return Va(e,!1)}function Va(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:De(e.event_metadata),hotelId:e.hotel_id,roomCount:e.room_count,createdAt:e.created_at,id:e.id,sourceMarket:He(e.source_market)}}function Gh(e){return Wa(e,!1)}function Wa(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:Je(e.eventMetadata),hotel_id:e.hotelId,room_count:e.roomCount,created_at:e.createdAt,id:e.id,source_market:e.sourceMarket}}function qh(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 Yh(e){return Xa(e,!1)}function Xa(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:De(e.event_metadata),hotelId:e.hotel_id,roomCount:e.room_count}}function Qa(e){return xa(e,!1)}function xa(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:Je(e.eventMetadata),hotel_id:e.hotelId,room_count:e.roomCount}}function Kh(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 ja(e){return es(e,!1)}function es(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 ts(e){return ns(e,!1)}function ns(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 Vh(e){return!(!("data"in e)||e.data===void 0||!("meta"in e)||e.meta===void 0)}function rs(e){return is(e,!1)}function is(e,t){return e==null?e:{data:ja(e.data),event:e.event==null?void 0:lt(e.event),meta:hn(e.meta)}}function Wh(e){return os(e,!1)}function os(e,t=!1){return e==null?e:{data:ts(e.data),event:mt(e.event),meta:yn(e.meta)}}function Xh(e){return!(!("count"in e)||e.count===void 0||!("hotelRoomOfferId"in e)||e.hotelRoomOfferId===void 0)}function as(e){return ss(e,!1)}function ss(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 us(e){return cs(e,!1)}function cs(e,t=!1){return e==null?e:{breakfast_count:e.breakfastCount,count:e.count,hotel_room_offer_id:e.hotelRoomOfferId}}function Qh(e){return!(!("currency"in e)||e.currency===void 0||!("hotelRoomOffers"in e)||e.hotelRoomOffers===void 0)}function xh(e){return ds(e,!1)}function ds(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(as),lang:e.lang==null?void 0:ct(e.lang)}}function fs(e){return ls(e,!1)}function ls(e,t=!1){return e==null?e:{add_breakfast:e.addBreakfast,breakfast_count:e.breakfastCount,currency:e.currency,hotel_room_offers:e.hotelRoomOffers.map(us),lang:e.lang}}function jh(e){return!(!("fullname"in e)||e.fullname===void 0||!("hotelRoomingListId"in e)||e.hotelRoomingListId===void 0)}function ey(e){return ms(e,!1)}function ms(e,t){return e==null?e:{fullname:e.fullname,hotelRoomingListId:e.hotel_rooming_list_id}}function ps(e){return hs(e,!1)}function hs(e,t=!1){return e==null?e:{fullname:e.fullname,hotel_rooming_list_id:e.hotelRoomingListId}}function ty(e){return!(!("fullname"in e)||e.fullname===void 0)}function ny(e){return ys(e,!1)}function ys(e,t){return e==null?e:{fullname:e.fullname}}function gs(e){return _s(e,!1)}function _s(e,t=!1){return e==null?e:{fullname:e.fullname}}function ry(e){return!(!("paymentMethods"in e)||e.paymentMethods===void 0)}function iy(e){return Os(e,!1)}function Os(e,t){return e==null?e:{paymentMethods:e.payment_methods.map(on)}}function As(e){return Ss(e,!1)}function Ss(e,t=!1){return e==null?e:{payment_methods:e.paymentMethods.map(an)}}var oy={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 ay(e){return!(!("message"in e)||e.message===void 0||!("requestType"in e)||e.requestType===void 0)}function sy(e){return Ts(e,!1)}function Ts(e,t){return e==null?e:{message:e.message,requestType:e.request_type}}function ws(e){return ks(e,!1)}function ks(e,t=!1){return e==null?e:{message:e.message,request_type:e.requestType}}var vs=class extends ue{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new H("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 await new G(i,a=>sn(a)).value()}async retrieve(e,t){return this.retrieveRaw(e,t)}async paymentMethodsRaw(e,t){if(e.id===null||e.id===void 0)throw new H("id","Required parameter requestParameters.id was null or undefined when calling getV1BookingPolicyIdPaymentMethods.");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}/payment_methods".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:E(n,I.Snake)},t);return new G(i,a=>a.map(xr)).value()}async paymentMethods(e,t){return this.paymentMethodsRaw(e,t)}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(ta(e.bookingPoliciesCreateApi),I.Snake)},t);return await new G(i,a=>sn(a)).value()}async create(e={},t){return this.createRaw(e,t)}},Rs=class extends ue{async deleteRaw(e,t){if(e.token===null||e.token===void 0)throw new H("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 await new G(n,r=>fe(r)).value()}async delete(e,t){return this.deleteRaw(e,t)}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 await new G(i,a=>sa(a)).value()}async list(e={},t){return this.listRaw(e,t)}async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new H("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 await new G(i,a=>fe(a)).value()}async retrieve(e,t){return this.retrieveRaw(e,t)}async certificateRaw(e,t){if(e.token===null||e.token===void 0)throw new H("token","Required parameter requestParameters.token was null or undefined when calling getV1BookingsTokenCertificate.");if(e.customerName===null||e.customerName===void 0)throw new H("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 Lr(r)}async certificate(e,t){await this.certificateRaw(e,t)}async retrievePublicRaw(e,t){if(e.token===null||e.token===void 0)throw new H("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 await new G(n,r=>fe(r)).value()}async retrievePublic(e,t){return this.retrievePublicRaw(e,t)}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(Xo(e.bookingCreateApi),I.Snake)},t);return await new G(i,a=>fe(a)).value()}async create(e={},t){return this.createRaw(e,t)}async couponChargeRaw(e,t){if(e.couponId===null||e.couponId===void 0)throw new H("couponId","Required parameter requestParameters.couponId was null or undefined when calling postV1BookingsIdCouponsCouponIdCharge.");if(e.id===null||e.id===void 0)throw new H("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 await new G(i,a=>fe(a)).value()}async couponCharge(e,t){return this.couponChargeRaw(e,t)}async paylaterRaw(e,t){if(e.id===null||e.id===void 0)throw new H("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 await new G(i,a=>fe(a)).value()}async paylater(e,t){return this.paylaterRaw(e,t)}async confirmpaylaterRaw(e,t){if(e.id===null||e.id===void 0)throw new H("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 await new G(i,a=>fe(a)).value()}async confirmpaylater(e,t){return this.confirmpaylaterRaw(e,t)}async confirmRaw(e,t){if(e.id===null||e.id===void 0)throw new H("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 await new G(i,a=>fe(a)).value()}async confirm(e,t){return this.confirmRaw(e,t)}async submitRequestRaw(e,t){if(e.token===null||e.token===void 0)throw new H("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(ws(e.requestPayload),I.Snake)},t);return new zt(i)}async submitRequest(e,t){return this.submitRequestRaw(e,t)}async updatePaymentMethodsRaw(e,t){if(e.id===null||e.id===void 0)throw new H("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(As(e.paymentMethodUpdatePayloadApi),I.Snake)},t);return await new G(i,a=>fe(a)).value()}async updatePaymentMethods(e,t){return this.updatePaymentMethodsRaw(e,t)}},uy={CheckInDate:"check_in_date",CreatedAt:"created_at",LastStatusUpdatedAt:"last_status_updated_at"},cy={Asc:"asc",Desc:"desc"},Ns=class extends ue{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new H("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 G(i,a=>a.map(Ce)).value()}async retrieve(e,t){return this.retrieveRaw(e,t)}},Ps=class extends ue{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new H("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 await new G(i,a=>pn(a)).value()}async retrieve(e,t){return this.retrieveRaw(e,t)}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(Ia(e.hotelOfferRequestCreateApi),I.Snake)},t);return await new G(i,a=>pn(a)).value()}async create(e={},t){return this.createRaw(e,t)}},bs=class extends ue{async listRaw(e,t){if(e.currency===null||e.currency===void 0)throw new H("currency","Required parameter requestParameters.currency was null or undefined when calling getV1HotelOffers.");if(e.hotelOfferRequestId===null||e.hotelOfferRequestId===void 0)throw new H("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 await new G(i,a=>Za(a)).value()}async list(e,t,n){return await Fn(()=>this.listRaw(e,n),{type:vn.HOTEL_SEARCH_POLLING,minCallCount:n?.minCallCount,maxCallCount:n?.maxCallCount},t)}},dy={Distance:"distance",Price:"price",Rating:"rating",ReviewRating:"review_rating",TopPicks:"top_picks"},fy={Asc:"asc",Desc:"desc"},Cs=class extends ue{async deleteRaw(e,t){if(e.id===null||e.id===void 0)throw new H("id","Required parameter requestParameters.id was null or undefined when calling deleteV1HotelRoomingListGuestsTokenId.");if(e.token===null||e.token===void 0)throw new H("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 zt(n)}async delete(e,t){return this.deleteRaw(e,t)}async updateRaw(e,t){if(e.id===null||e.id===void 0)throw new H("id","Required parameter requestParameters.id was null or undefined when calling patchV1HotelRoomingListGuestsTokenId.");if(e.token===null||e.token===void 0)throw new H("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(gs(e.hotelRoomingListGuestsUpdateApi),I.Snake)},t);return await new G(i,a=>pt(a)).value()}async update(e,t){return this.updateRaw(e,t)}async createRaw(e,t){if(e.token===null||e.token===void 0)throw new H("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(ps(e.hotelRoomingListGuestsCreateApi),I.Snake)},t);return await new G(i,a=>pt(a)).value()}async create(e,t){return this.createRaw(e,t)}},Ms=class extends ue{async listRaw(e,t){if(e.token===null||e.token===void 0)throw new H("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 G(r,i=>i.map(rn)).value()}async list(e,t){return this.listRaw(e,t)}},Is=class extends ue{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new H("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 await new G(i,a=>E(a,I.Camel)).value()}async retrieve(e,t){return this.retrieveRaw(e,t)}},Ds=class extends ue{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new H("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 await new G(i,a=>gn(a)).value()}async retrieve(e,t){return this.retrieveRaw(e,t)}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(Qa(e.hotelRoomOfferRequestCreateApi),I.Snake)},t);return await new G(i,a=>gn(a)).value()}async create(e={},t){return this.createRaw(e,t)}},Js=class extends ue{async listRaw(e,t){if(e.currency===null||e.currency===void 0)throw new H("currency","Required parameter requestParameters.currency was null or undefined when calling getV1HotelRoomOffers.");if(e.hotelRoomOfferRequestId===null||e.hotelRoomOfferRequestId===void 0)throw new H("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 await new G(i,a=>rs(a)).value()}async list(e,t,n){return await Fn(()=>this.listRaw(e,n),{type:vn.HOTEL_ROOM_OFFERS,minCallCount:n?.minCallCount,maxCallCount:n?.maxCallCount},t)}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(fs(e.hotelRoomOffersCreateApi),I.Snake)},t);return await new G(i,a=>qa(a)).value()}async create(e={},t){return this.createRaw(e,t)}},Es=class extends ue{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new H("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 await new G(i,a=>Ta(a)).value()}async retrieve(e,t){return this.retrieveRaw(e,t)}},Fs=class extends Jt{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}},ly=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 Fs({body:n,response:t,status:t.status})}},zs=e=>({bookingPolicies:new vs(e),bookings:new Rs(e),hotelImages:new Ns(e),hotelOfferRequests:new Ps(e),hotelOffers:new bs(e),hotelRoomingListGuests:new Cs(e),hotelRoomingLists:new Ms(e),hotelRoomOfferImages:new Is(e),hotelRoomOfferRequests:new Ds(e),hotelRoomOffers:new Js(e),hotels:new Es(e)});function my(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 $s(e){return!!(typeof document<"u"&&document?.cookie&&document.cookie.split(";").find(t=>t.includes(my(e))))}var py=class{config;constructor(e){this.config=e}async pre(e){return e.init.mode="cors",$s(this.config.apiEnvironment)&&(e.init.credentials="include"),e}},hy=class{config;constructor(e){this.config=e}async pre(e){return $s(this.config.apiEnvironment)&&(e.init.headers={...e.init.headers,"x-auth-type":"user"}),e}},yy=class{config;apiVersionsToClient;constructor(e){if(this.config=e,!e.apiVersion||!Object.values(kn).includes(e.apiVersion))throw new Error(`Invalid Revolugo Api Version. Possible versions are : ${JSON.stringify(Object.values(kn))}`);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??Us[n];!this.config.apiBaseUrl&&n===Re.Local&&(r="http://127.0.0.1:3001");const i=new Et({basePath:r,fetchApi:qs.default,headers:t,middleware:[new py(this.config),new hy(this.config),new ly]});this.apiVersionsToClient={v1:zs(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=xr,o.AllowedPaymentMethodApiFromJSONTyped=jr,o.AllowedPaymentMethodApiToJSON=ei,o.AllowedPaymentMethodApiToJSONTyped=qm,o.AllowedPaymentMethodCouponApiFromJSON=Dm,o.AllowedPaymentMethodCouponApiFromJSONTyped=$t,o.AllowedPaymentMethodCouponApiNameEnum=Mm,o.AllowedPaymentMethodCouponApiToJSON=Hr,o.AllowedPaymentMethodCouponApiToJSONTyped=Br,o.AllowedPaymentMethodCreditCardApiFromJSON=Fm,o.AllowedPaymentMethodCreditCardApiFromJSONTyped=Lt,o.AllowedPaymentMethodCreditCardApiNameEnum=Jm,o.AllowedPaymentMethodCreditCardApiToJSON=Zr,o.AllowedPaymentMethodCreditCardApiToJSONTyped=Ur,o.AllowedPaymentMethodDepositAccountApiFromJSON=Lm,o.AllowedPaymentMethodDepositAccountApiFromJSONTyped=Ht,o.AllowedPaymentMethodDepositAccountApiNameEnum=zm,o.AllowedPaymentMethodDepositAccountApiToJSON=Gr,o.AllowedPaymentMethodDepositAccountApiToJSONTyped=qr,o.AllowedPaymentMethodPayLaterApiFromJSON=Gm,o.AllowedPaymentMethodPayLaterApiFromJSONTyped=Bt,o.AllowedPaymentMethodPayLaterApiNameEnum=Zm,o.AllowedPaymentMethodPayLaterApiPayloadFromJSON=Yr,o.AllowedPaymentMethodPayLaterApiPayloadFromJSONTyped=Kr,o.AllowedPaymentMethodPayLaterApiPayloadStatusEnum=Hm,o.AllowedPaymentMethodPayLaterApiPayloadToJSON=Vr,o.AllowedPaymentMethodPayLaterApiPayloadToJSONTyped=Wr,o.AllowedPaymentMethodPayLaterApiToJSON=Xr,o.AllowedPaymentMethodPayLaterApiToJSONTyped=Qr,o.AmenitiesApiFromJSON=Zt,o.AmenitiesApiFromJSONTyped=ti,o.AmenitiesApiToJSON=Ut,o.AmenitiesApiToJSONTyped=ni,o.ApiClient=yy,o.ApiError=Fs,o.BASE_PATH=$r,o.BaseAPI=ue,o.BedApiFromJSON=Vm,o.BedApiFromJSONTyped=ri,o.BedApiToJSON=Wm,o.BedApiToJSONTyped=ii,o.BlobApiResponse=Cm,o.BookingApiFromJSON=fe,o.BookingApiFromJSONTyped=Ro,o.BookingApiPayLaterEnum=jp,o.BookingApiStatusEnum=eh,o.BookingApiToJSON=No,o.BookingApiToJSONTyped=Po,o.BookingCreateApiFromJSON=fh,o.BookingCreateApiFromJSONTyped=Wo,o.BookingCreateApiGuestsListInnerFromJSON=zo,o.BookingCreateApiGuestsListInnerFromJSONTyped=$o,o.BookingCreateApiGuestsListInnerGuestsInnerFromJSON=Do,o.BookingCreateApiGuestsListInnerGuestsInnerFromJSONTyped=Jo,o.BookingCreateApiGuestsListInnerGuestsInnerToJSON=Eo,o.BookingCreateApiGuestsListInnerGuestsInnerToJSONTyped=Fo,o.BookingCreateApiGuestsListInnerToJSON=Lo,o.BookingCreateApiGuestsListInnerToJSONTyped=Ho,o.BookingCreateApiToJSON=Xo,o.BookingCreateApiToJSONTyped=Qo,o.BookingPolicies=vs,o.BookingPoliciesApiFromJSON=sn,o.BookingPoliciesApiFromJSONTyped=xo,o.BookingPoliciesApiToJSON=mh,o.BookingPoliciesApiToJSONTyped=jo,o.BookingPoliciesCreateApiFromJSON=hh,o.BookingPoliciesCreateApiFromJSONTyped=ea,o.BookingPoliciesCreateApiToJSON=ta,o.BookingPoliciesCreateApiToJSONTyped=na,o.Bookings=Rs,o.BookingsApiResponseFromJSON=sa,o.BookingsApiResponseFromJSONTyped=ua,o.BookingsApiResponseToJSON=_h,o.BookingsApiResponseToJSONTyped=ca,o.BookingsSortByEnum=uy,o.BookingsSortByOrderEnum=cy,o.BreakfastOption=at,o.BreakfastOptionFromJSON=pi,o.BreakfastOptionFromJSONTyped=hi,o.BreakfastOptionToJSON=rp,o.BreakfastOptionToJSONTyped=ip,o.COLLECTION_FORMATS=Nm,o.CancellationPolicyApiFromJSON=rt,o.CancellationPolicyApiFromJSONTyped=oi,o.CancellationPolicyApiToJSON=it,o.CancellationPolicyApiToJSONTyped=ai,o.Configuration=Et,o.ContactPersonApiFromJSON=Vt,o.ContactPersonApiFromJSONTyped=bi,o.ContactPersonApiSalutationEnum=wp,o.ContactPersonApiToJSON=Wt,o.ContactPersonApiToJSONTyped=Ci,o.ContactPersonOrganizationApiFromJSON=vi,o.ContactPersonOrganizationApiFromJSONTyped=Ri,o.ContactPersonOrganizationApiToJSON=Ni,o.ContactPersonOrganizationApiToJSONTyped=Pi,o.CountryIso2Code=dt,o.CountryIso2CodeFromJSON=ft,o.CountryIso2CodeFromJSONTyped=ki,o.CountryIso2CodeToJSON=Ap,o.CountryIso2CodeToJSONTyped=Sp,o.CurrencyClient=st,o.CurrencyClientFromJSON=le,o.CurrencyClientFromJSONTyped=_i,o.CurrencyClientToJSON=cp,o.CurrencyClientToJSONTyped=dp,o.ErrorApiResponseFromJSON=Sh,o.ErrorApiResponseFromJSONTyped=da,o.ErrorApiResponseToJSON=Th,o.ErrorApiResponseToJSONTyped=fa,o.ErrorApiResponseTypeEnum=Oh,o.EventApiFromJSON=lt,o.EventApiFromJSONTyped=po,o.EventApiToJSON=mt,o.EventApiToJSONTyped=ho,o.EventMetadataApiFromJSON=De,o.EventMetadataApiFromJSONTyped=Bo,o.EventMetadataApiToJSON=Je,o.EventMetadataApiToJSONTyped=Zo,o.HotelApiFromJSON=Ta,o.HotelApiFromJSONTyped=wa,o.HotelApiImagesFromJSON=dn,o.HotelApiImagesFromJSONTyped=pa,o.HotelApiImagesToJSON=fn,o.HotelApiImagesToJSONTyped=ha,o.HotelApiToJSON=Ph,o.HotelApiToJSONTyped=ka,o.HotelImageApiFromJSON=Ce,o.HotelImageApiFromJSONTyped=ui,o.HotelImageApiToJSON=Be,o.HotelImageApiToJSONTyped=ci,o.HotelImages=Ns,o.HotelOfferApiFromJSON=va,o.HotelOfferApiFromJSONTyped=Ra,o.HotelOfferApiToJSON=Na,o.HotelOfferApiToJSONTyped=Pa,o.HotelOfferRequestApiResponseFromJSON=pn,o.HotelOfferRequestApiResponseFromJSONTyped=ba,o.HotelOfferRequestApiResponseToJSON=Mh,o.HotelOfferRequestApiResponseToJSONTyped=Ca,o.HotelOfferRequestCreateApiFromJSON=Dh,o.HotelOfferRequestCreateApiFromJSONTyped=Ma,o.HotelOfferRequestCreateApiToJSON=Ia,o.HotelOfferRequestCreateApiToJSONTyped=Da,o.HotelOfferRequests=Ps,o.HotelOffers=bs,o.HotelOffersApiResponseFromJSON=Za,o.HotelOffersApiResponseFromJSONTyped=Ua,o.HotelOffersApiResponseToJSON=Hh,o.HotelOffersApiResponseToJSONTyped=Ga,o.HotelOffersDataApiResponseFromJSON=Ja,o.HotelOffersDataApiResponseFromJSONTyped=Ea,o.HotelOffersDataApiResponseToJSON=Fa,o.HotelOffersDataApiResponseToJSONTyped=za,o.HotelOffersSortByEnum=dy,o.HotelOffersSortByOrderEnum=fy,o.HotelReviewRatingApiFromJSON=un,o.HotelReviewRatingApiFromJSONTyped=la,o.HotelReviewRatingApiToJSON=cn,o.HotelReviewRatingApiToJSONTyped=ma,o.HotelRoomOfferApiFromJSON=Me,o.HotelRoomOfferApiFromJSONTyped=Si,o.HotelRoomOfferApiHotelRoomsInnerFromJSON=di,o.HotelRoomOfferApiHotelRoomsInnerFromJSONTyped=fi,o.HotelRoomOfferApiHotelRoomsInnerToJSON=li,o.HotelRoomOfferApiHotelRoomsInnerToJSONTyped=mi,o.HotelRoomOfferApiPackageTypeEnum=lp,o.HotelRoomOfferApiResponseFromJSON=qa,o.HotelRoomOfferApiResponseFromJSONTyped=Ya,o.HotelRoomOfferApiResponseToJSON=Zh,o.HotelRoomOfferApiResponseToJSONTyped=Ka,o.HotelRoomOfferApiStayTaxesInfoEnum=mp,o.HotelRoomOfferApiToJSON=Ie,o.HotelRoomOfferApiToJSONTyped=Ti,o.HotelRoomOfferApiTypeEnum=pp,o.HotelRoomOfferImages=Is,o.HotelRoomOfferRequestApiResponseFromJSON=gn,o.HotelRoomOfferRequestApiResponseFromJSONTyped=Va,o.HotelRoomOfferRequestApiResponseToJSON=Gh,o.HotelRoomOfferRequestApiResponseToJSONTyped=Wa,o.HotelRoomOfferRequestCreateApiFromJSON=Yh,o.HotelRoomOfferRequestCreateApiFromJSONTyped=Xa,o.HotelRoomOfferRequestCreateApiToJSON=Qa,o.HotelRoomOfferRequestCreateApiToJSONTyped=xa,o.HotelRoomOfferRequests=Ds,o.HotelRoomOffers=Js,o.HotelRoomOffersApiResponseFromJSON=rs,o.HotelRoomOffersApiResponseFromJSONTyped=is,o.HotelRoomOffersApiResponseToJSON=Wh,o.HotelRoomOffersApiResponseToJSONTyped=os,o.HotelRoomOffersCreateApiFromJSON=xh,o.HotelRoomOffersCreateApiFromJSONTyped=ds,o.HotelRoomOffersCreateApiToJSON=fs,o.HotelRoomOffersCreateApiToJSONTyped=ls,o.HotelRoomOffersDataApiResponseFromJSON=ja,o.HotelRoomOffersDataApiResponseFromJSONTyped=es,o.HotelRoomOffersDataApiResponseToJSON=ts,o.HotelRoomOffersDataApiResponseToJSONTyped=ns,o.HotelRoomOffersDataCreateApiFromJSON=as,o.HotelRoomOffersDataCreateApiFromJSONTyped=ss,o.HotelRoomOffersDataCreateApiToJSON=us,o.HotelRoomOffersDataCreateApiToJSONTyped=cs,o.HotelRoomingListApiFromJSON=rn,o.HotelRoomingListApiFromJSONTyped=wo,o.HotelRoomingListApiHotelRoomFromJSON=yo,o.HotelRoomingListApiHotelRoomFromJSONTyped=go,o.HotelRoomingListApiHotelRoomToJSON=_o,o.HotelRoomingListApiHotelRoomToJSONTyped=Oo,o.HotelRoomingListApiToJSON=ko,o.HotelRoomingListApiToJSONTyped=vo,o.HotelRoomingListGuestApiFromJSON=pt,o.HotelRoomingListGuestApiFromJSONTyped=Ao,o.HotelRoomingListGuestApiToJSON=So,o.HotelRoomingListGuestApiToJSONTyped=To,o.HotelRoomingListGuests=Cs,o.HotelRoomingListGuestsCreateApiFromJSON=ey,o.HotelRoomingListGuestsCreateApiFromJSONTyped=ms,o.HotelRoomingListGuestsCreateApiToJSON=ps,o.HotelRoomingListGuestsCreateApiToJSONTyped=hs,o.HotelRoomingListGuestsUpdateApiFromJSON=ny,o.HotelRoomingListGuestsUpdateApiFromJSONTyped=ys,o.HotelRoomingListGuestsUpdateApiToJSON=gs,o.HotelRoomingListGuestsUpdateApiToJSONTyped=_s,o.HotelRoomingLists=Ms,o.Hotels=Es,o.InsuranceApiFromJSON=ro,o.InsuranceApiFromJSONTyped=io,o.InsuranceApiStatusEnum=Up,o.InsuranceApiToJSON=oo,o.InsuranceApiToJSONTyped=ao,o.InvoiceApiFromJSON=so,o.InvoiceApiFromJSONTyped=uo,o.InvoiceApiToJSON=co,o.InvoiceApiToJSONTyped=fo,o.InvoiceApiTypeEnum=qp,o.JSONApiResponse=G,o.Locale=ut,o.LocaleFromJSON=ct,o.LocaleFromJSONTyped=wi,o.LocaleToJSON=gp,o.LocaleToJSONTyped=_p,o.MetaPollingResponseApiFromJSON=hn,o.MetaPollingResponseApiFromJSONTyped=Ha,o.MetaPollingResponseApiToJSON=yn,o.MetaPollingResponseApiToJSONTyped=Ba,o.MetaResponseApiFromJSON=ra,o.MetaResponseApiFromJSONTyped=ia,o.MetaResponseApiToJSON=oa,o.MetaResponseApiToJSONTyped=aa,o.OrderAddonFromJSON=tn,o.OrderAddonFromJSONTyped=lo,o.OrderAddonSelectionFromJSON=bo,o.OrderAddonSelectionFromJSONTyped=Co,o.OrderAddonSelectionToJSON=Mo,o.OrderAddonSelectionToJSONTyped=Io,o.OrderAddonSelectionTypeEnum=nh,o.OrderAddonToJSON=nn,o.OrderAddonToJSONTyped=mo,o.OrderAddonTypeEnum=Kp,o.PaymentMethodApiFromJSON=to,o.PaymentMethodApiFromJSONTyped=no,o.PaymentMethodApiToJSON=en,o.PaymentMethodApiToJSONTyped=Zp,o.PaymentMethodCouponApiFromJSON=Pp,o.PaymentMethodCouponApiFromJSONTyped=Xt,o.PaymentMethodCouponApiNameEnum=Rp,o.PaymentMethodCouponApiPayloadFromJSON=Mi,o.PaymentMethodCouponApiPayloadFromJSONTyped=Ii,o.PaymentMethodCouponApiPayloadToJSON=Di,o.PaymentMethodCouponApiPayloadToJSONTyped=Ji,o.PaymentMethodCouponApiToJSON=Ei,o.PaymentMethodCouponApiToJSONTyped=Fi,o.PaymentMethodCreditCardApiFromJSON=Ip,o.PaymentMethodCreditCardApiFromJSONTyped=Qt,o.PaymentMethodCreditCardApiNameEnum=Cp,o.PaymentMethodCreditCardApiPayloadFromJSON=zi,o.PaymentMethodCreditCardApiPayloadFromJSONTyped=$i,o.PaymentMethodCreditCardApiPayloadToJSON=Li,o.PaymentMethodCreditCardApiPayloadToJSONTyped=Hi,o.PaymentMethodCreditCardApiToJSON=Bi,o.PaymentMethodCreditCardApiToJSONTyped=Zi,o.PaymentMethodDepositAccountApiFromJSON=Fp,o.PaymentMethodDepositAccountApiFromJSONTyped=xt,o.PaymentMethodDepositAccountApiNameEnum=Jp,o.PaymentMethodDepositAccountApiPayloadFromJSON=Ui,o.PaymentMethodDepositAccountApiPayloadFromJSONTyped=Gi,o.PaymentMethodDepositAccountApiPayloadToJSON=qi,o.PaymentMethodDepositAccountApiPayloadToJSONTyped=Yi,o.PaymentMethodDepositAccountApiToJSON=Ki,o.PaymentMethodDepositAccountApiToJSONTyped=Vi,o.PaymentMethodPayLaterApiFromJSON=Bp,o.PaymentMethodPayLaterApiFromJSONTyped=jt,o.PaymentMethodPayLaterApiNameEnum=Lp,o.PaymentMethodPayLaterApiPayloadFromJSON=Wi,o.PaymentMethodPayLaterApiPayloadFromJSONTyped=Xi,o.PaymentMethodPayLaterApiPayloadStatusEnum=zp,o.PaymentMethodPayLaterApiPayloadToJSON=Qi,o.PaymentMethodPayLaterApiPayloadToJSONTyped=xi,o.PaymentMethodPayLaterApiToJSON=ji,o.PaymentMethodPayLaterApiToJSONTyped=eo,o.PaymentMethodRequestApiFromJSON=on,o.PaymentMethodRequestApiFromJSONTyped=Ko,o.PaymentMethodRequestApiNameEnum=uh,o.PaymentMethodRequestApiToJSON=an,o.PaymentMethodRequestApiToJSONTyped=Vo,o.PaymentMethodRequestPayloadApiFromJSON=Uo,o.PaymentMethodRequestPayloadApiFromJSONTyped=Go,o.PaymentMethodRequestPayloadApiToJSON=qo,o.PaymentMethodRequestPayloadApiToJSONTyped=Yo,o.PaymentMethodUpdatePayloadApiFromJSON=iy,o.PaymentMethodUpdatePayloadApiFromJSONTyped=Os,o.PaymentMethodUpdatePayloadApiToJSON=As,o.PaymentMethodUpdatePayloadApiToJSONTyped=Ss,o.PollerStatus=ht,o.PollerStatusFromJSON=$a,o.PollerStatusFromJSONTyped=La,o.PollerStatusToJSON=Fh,o.PollerStatusToJSONTyped=zh,o.RequestPayloadFromJSON=sy,o.RequestPayloadFromJSONTyped=Ts,o.RequestPayloadRequestTypeEnum=oy,o.RequestPayloadToJSON=ws,o.RequestPayloadToJSONTyped=ks,o.RequiredError=H,o.ResponseError=Jt,o.SourceMarket=ot,o.SourceMarketFromJSON=He,o.SourceMarketFromJSONTyped=si,o.SourceMarketToJSON=xm,o.SourceMarketToJSONTyped=jm,o.TagApiFromJSON=Yt,o.TagApiFromJSONTyped=Oi,o.TagApiToJSON=Kt,o.TagApiToJSONTyped=Ai,o.TaxApiFromJSON=Gt,o.TaxApiFromJSONTyped=yi,o.TaxApiTaxFrequencyEnum=op,o.TaxApiTaxModeEnum=ap,o.TaxApiToJSON=qt,o.TaxApiToJSONTyped=gi,o.TextApiResponse=zt,o.TravelTimesApiFromJSON=ln,o.TravelTimesApiFromJSONTyped=Aa,o.TravelTimesApiToJSON=mn,o.TravelTimesApiToJSONTyped=Sa,o.TravelTimesApiTravelTimesFromJSON=ya,o.TravelTimesApiTravelTimesFromJSONTyped=ga,o.TravelTimesApiTravelTimesToJSON=_a,o.TravelTimesApiTravelTimesToJSONTyped=Oa,o.VoidApiResponse=Lr,o.canConsumeForm=bm,o.exists=Pm,o.instanceOfAllowedPaymentMethodCouponApi=Im,o.instanceOfAllowedPaymentMethodCreditCardApi=Em,o.instanceOfAllowedPaymentMethodDepositAccountApi=$m,o.instanceOfAllowedPaymentMethodPayLaterApi=Um,o.instanceOfAllowedPaymentMethodPayLaterApiPayload=Bm,o.instanceOfAmenitiesApi=Ym,o.instanceOfBedApi=Km,o.instanceOfBookingApi=th,o.instanceOfBookingCreateApi=dh,o.instanceOfBookingCreateApiGuestsListInner=oh,o.instanceOfBookingCreateApiGuestsListInnerGuestsInner=ih,o.instanceOfBookingPoliciesApi=lh,o.instanceOfBookingPoliciesCreateApi=ph,o.instanceOfBookingsApiResponse=gh,o.instanceOfBreakfastOption=np,o.instanceOfCancellationPolicyApi=Xm,o.instanceOfContactPersonApi=kp,o.instanceOfContactPersonOrganizationApi=Tp,o.instanceOfCountryIso2Code=Op,o.instanceOfCurrencyClient=up,o.instanceOfErrorApiResponse=Ah,o.instanceOfEventApi=Wp,o.instanceOfEventMetadataApi=ah,o.instanceOfHotelApi=Nh,o.instanceOfHotelApiImages=kh,o.instanceOfHotelImageApi=ep,o.instanceOfHotelOfferApi=bh,o.instanceOfHotelOfferRequestApiResponse=Ch,o.instanceOfHotelOfferRequestCreateApi=Ih,o.instanceOfHotelOffersApiResponse=Lh,o.instanceOfHotelOffersDataApiResponse=Jh,o.instanceOfHotelReviewRatingApi=wh,o.instanceOfHotelRoomOfferApi=hp,o.instanceOfHotelRoomOfferApiHotelRoomsInner=tp,o.instanceOfHotelRoomOfferApiResponse=Bh,o.instanceOfHotelRoomOfferRequestApiResponse=Uh,o.instanceOfHotelRoomOfferRequestCreateApi=qh,o.instanceOfHotelRoomOffersApiResponse=Vh,o.instanceOfHotelRoomOffersCreateApi=Qh,o.instanceOfHotelRoomOffersDataApiResponse=Kh,o.instanceOfHotelRoomOffersDataCreateApi=Xh,o.instanceOfHotelRoomingListApi=xp,o.instanceOfHotelRoomingListApiHotelRoom=Xp,o.instanceOfHotelRoomingListGuestApi=Qp,o.instanceOfHotelRoomingListGuestsCreateApi=jh,o.instanceOfHotelRoomingListGuestsUpdateApi=ty,o.instanceOfInsuranceApi=Gp,o.instanceOfInvoiceApi=Yp,o.instanceOfLocale=yp,o.instanceOfMetaPollingResponseApi=$h,o.instanceOfMetaResponseApi=yh,o.instanceOfOrderAddon=Vp,o.instanceOfOrderAddonSelection=rh,o.instanceOfPaymentMethodCouponApi=Np,o.instanceOfPaymentMethodCouponApiPayload=vp,o.instanceOfPaymentMethodCreditCardApi=Mp,o.instanceOfPaymentMethodCreditCardApiPayload=bp,o.instanceOfPaymentMethodDepositAccountApi=Ep,o.instanceOfPaymentMethodDepositAccountApiPayload=Dp,o.instanceOfPaymentMethodPayLaterApi=Hp,o.instanceOfPaymentMethodPayLaterApiPayload=$p,o.instanceOfPaymentMethodRequestApi=ch,o.instanceOfPaymentMethodRequestPayloadApi=sh,o.instanceOfPaymentMethodUpdatePayloadApi=ry,o.instanceOfPollerStatus=Eh,o.instanceOfRequestPayload=ay,o.instanceOfSourceMarket=Qm,o.instanceOfTagApi=fp,o.instanceOfTaxApi=sp,o.instanceOfTravelTimesApi=Rh,o.instanceOfTravelTimesApiTravelTimes=vh,o.querystring=Ft,o.v1ApiClient=zs});
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:tt(t,"input",e.processors),output:tt(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 Yf=(e,t={})=>n=>{const r=kr({...n,processors:t});return ee(e,r),vr(r,e),Rr(r,e)},tt=(e,t,n={})=>r=>{const{libraryOptions:i,target:a}=r??{},s=kr({...i??{},target:a,io:t,processors:n});return ee(e,s),vr(s,e),Rr(s,e)},Kf={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Vf=(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=Kf[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}))])}},Wf=(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)},Xf=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Qf=(e,t,n,r)=>{n.not={}},xf=(e,t,n,r)=>{},jf=(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},el=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},tl=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},nl=(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=ee(a.element,t,{...r,path:[...r.path,"items"]})},rl=(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]=ee(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=ee(a.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(i.additionalProperties=!1)},il=(e,t,n,r)=>{const i=e._zod.def,a=i.inclusive===!1,s=i.options.map((u,d)=>ee(u,t,{...r,path:[...r.path,a?"oneOf":"anyOf",d]}));a?n.oneOf=s:n.anyOf=s},ol=(e,t,n,r)=>{const i=e._zod.def,a=ee(i.left,t,{...r,path:[...r.path,"allOf",0]}),s=ee(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]]},al=(e,t,n,r)=>{const i=e._zod.def,a=ee(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"}]},sl=(e,t,n,r)=>{const i=e._zod.def;ee(i.innerType,t,r);const a=t.seen.get(e);a.ref=i.innerType},ul=(e,t,n,r)=>{const i=e._zod.def;ee(i.innerType,t,r);const a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},cl=(e,t,n,r)=>{const i=e._zod.def;ee(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)))},dl=(e,t,n,r)=>{const i=e._zod.def;ee(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},fl=(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;ee(s,t,r);const u=t.seen.get(e);u.ref=s},ll=(e,t,n,r)=>{const i=e._zod.def;ee(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;ee(i.innerType,t,r);const a=t.seen.get(e);a.ref=i.innerType},ml=h("ZodISODateTime",(e,t)=>{gd.init(e,t),W.init(e,t)});function pl(e){return Tf(ml,e)}var hl=h("ZodISODate",(e,t)=>{_d.init(e,t),W.init(e,t)});function yl(e){return wf(hl,e)}var gl=h("ZodISOTime",(e,t)=>{Od.init(e,t),W.init(e,t)});function _l(e){return kf(gl,e)}var Ol=h("ZodISODuration",(e,t)=>{Ad.init(e,t),W.init(e,t)});function Al(e){return vf(Ol,e)}var Sl=(e,t)=>{Wn.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>cc(e,n)},flatten:{value:n=>uc(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,wt,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,wt,2)}},isEmpty:{get(){return e.issues.length===0}}})},se=h("ZodError",Sl,{Parent:Error}),Tl=Ct(se),wl=Pt(se),kl=We(se),vl=Xe(se),Rl=lc(se),Nl=mc(se),Cl=pc(se),Pl=hc(se),bl=yc(se),Ml=gc(se),Dl=_c(se),Il=Oc(se),Cr=new WeakMap;function Le(e,t,n){const r=Object.getPrototypeOf(e);let i=Cr.get(r);if(i||(i=new Set,Cr.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:tt(e,"input"),output:tt(e,"output")}}),e.toJSONSchema=Yf(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,r)=>Tl(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>kl(e,n,r),e.parseAsync=async(n,r)=>wl(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>vl(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>Rl(e,n,r),e.decode=(n,r)=>Nl(e,n,r),e.encodeAsync=async(n,r)=>Cl(e,n,r),e.decodeAsync=async(n,r)=>Pl(e,n,r),e.safeEncode=(n,r)=>bl(e,n,r),e.safeDecode=(n,r)=>Ml(e,n,r),e.safeEncodeAsync=async(n,r)=>Dl(e,n,r),e.safeDecodeAsync=async(n,r)=>Il(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(Pm(n,r))},superRefine(n,r){return this.check(bm(n,r))},overwrite(n){return this.check(Pe(n))},optional(){return zr(this)},exactOptional(){return ym(this)},nullable(){return $r(this)},nullish(){return zr($r(this))},nonoptional(n){return Tm(this,n)},array(){return sm(this)},or(n){return Jr([this,n])},and(n){return lm(this,n)},transform(n){return Hr(this,pm(n))},default(n){return Om(this,n)},prefault(n){return Sm(this,n)},catch(n){return km(this,n)},pipe(n){return Hr(this,n)},readonly(){return Nm(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)),Pr=h("_ZodString",(e,t)=>{bt.init(e,t),x.init(e,t),e._zod.processJSONSchema=(r,i,a)=>Vf(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(Mf(...r))},includes(...r){return this.check(Jf(...r))},startsWith(...r){return this.check(Ef(...r))},endsWith(...r){return this.check(Ff(...r))},min(...r){return this.check(et(...r))},max(...r){return this.check(Tr(...r))},length(...r){return this.check(wr(...r))},nonempty(...r){return this.check(et(1,...r))},lowercase(r){return this.check(Df(r))},uppercase(r){return this.check(If(r))},trim(){return this.check($f())},normalize(...r){return this.check(zf(...r))},toLowerCase(){return this.check(Lf())},toUpperCase(){return this.check(Hf())},slugify(){return this.check(Bf())}})}),Jl=h("ZodString",(e,t)=>{bt.init(e,t),Pr.init(e,t),e.email=n=>e.check(ef(Fl,n)),e.url=n=>e.check(af(zl,n)),e.jwt=n=>e.check(Sf(xl,n)),e.emoji=n=>e.check(sf($l,n)),e.guid=n=>e.check(_r(br,n)),e.uuid=n=>e.check(tf(nt,n)),e.uuidv4=n=>e.check(nf(nt,n)),e.uuidv6=n=>e.check(rf(nt,n)),e.uuidv7=n=>e.check(of(nt,n)),e.nanoid=n=>e.check(uf(Ll,n)),e.guid=n=>e.check(_r(br,n)),e.cuid=n=>e.check(cf(Hl,n)),e.cuid2=n=>e.check(df(Bl,n)),e.ulid=n=>e.check(ff(Zl,n)),e.base64=n=>e.check(_f(Wl,n)),e.base64url=n=>e.check(Of(Xl,n)),e.xid=n=>e.check(lf(Ul,n)),e.ksuid=n=>e.check(mf(Gl,n)),e.ipv4=n=>e.check(pf(ql,n)),e.ipv6=n=>e.check(hf(Yl,n)),e.cidrv4=n=>e.check(yf(Kl,n)),e.cidrv6=n=>e.check(gf(Vl,n)),e.e164=n=>e.check(Af(Ql,n)),e.datetime=n=>e.check(pl(n)),e.date=n=>e.check(yl(n)),e.time=n=>e.check(_l(n)),e.duration=n=>e.check(Al(n))});function El(e){return jd(Jl,e)}var W=h("ZodStringFormat",(e,t)=>{V.init(e,t),Pr.init(e,t)}),Fl=h("ZodEmail",(e,t)=>{ud.init(e,t),W.init(e,t)}),br=h("ZodGUID",(e,t)=>{ad.init(e,t),W.init(e,t)}),nt=h("ZodUUID",(e,t)=>{sd.init(e,t),W.init(e,t)}),zl=h("ZodURL",(e,t)=>{cd.init(e,t),W.init(e,t)}),$l=h("ZodEmoji",(e,t)=>{dd.init(e,t),W.init(e,t)}),Ll=h("ZodNanoID",(e,t)=>{fd.init(e,t),W.init(e,t)}),Hl=h("ZodCUID",(e,t)=>{ld.init(e,t),W.init(e,t)}),Bl=h("ZodCUID2",(e,t)=>{md.init(e,t),W.init(e,t)}),Zl=h("ZodULID",(e,t)=>{pd.init(e,t),W.init(e,t)}),Ul=h("ZodXID",(e,t)=>{hd.init(e,t),W.init(e,t)}),Gl=h("ZodKSUID",(e,t)=>{yd.init(e,t),W.init(e,t)}),ql=h("ZodIPv4",(e,t)=>{Sd.init(e,t),W.init(e,t)}),Yl=h("ZodIPv6",(e,t)=>{Td.init(e,t),W.init(e,t)}),Kl=h("ZodCIDRv4",(e,t)=>{wd.init(e,t),W.init(e,t)}),Vl=h("ZodCIDRv6",(e,t)=>{kd.init(e,t),W.init(e,t)}),Wl=h("ZodBase64",(e,t)=>{vd.init(e,t),W.init(e,t)}),Xl=h("ZodBase64URL",(e,t)=>{Nd.init(e,t),W.init(e,t)}),Ql=h("ZodE164",(e,t)=>{Cd.init(e,t),W.init(e,t)}),xl=h("ZodJWT",(e,t)=>{bd.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)=>Wf(e,r,i,a),Le(e,"ZodNumber",{gt(r,i){return this.check(Ar(r,i))},gte(r,i){return this.check(It(r,i))},min(r,i){return this.check(It(r,i))},lt(r,i){return this.check(Or(r,i))},lte(r,i){return this.check(Dt(r,i))},max(r,i){return this.check(Dt(r,i))},int(r){return this.check(Dr(r))},safe(r){return this.check(Dr(r))},positive(r){return this.check(Ar(0,r))},nonnegative(r){return this.check(It(0,r))},negative(r){return this.check(Or(0,r))},nonpositive(r){return this.check(Dt(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 jl(e){return Rf(Mr,e)}var em=h("ZodNumberFormat",(e,t)=>{Md.init(e,t),Mr.init(e,t)});function Dr(e){return Nf(em,e)}var tm=h("ZodSymbol",(e,t)=>{Dd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Xf(e,n,r,i)});function nm(e){return Cf(tm,e)}var rm=h("ZodUnknown",(e,t)=>{Id.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>xf(e,n,r,i)});function Ir(){return Pf(rm)}var im=h("ZodNever",(e,t)=>{Jd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Qf(e,n,r,i)});function om(e){return bf(im,e)}var am=h("ZodArray",(e,t)=>{Ed.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>nl(e,n,r,i),e.element=t.element,Le(e,"ZodArray",{min(n,r){return this.check(et(n,r))},nonempty(n){return this.check(et(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 sm(e,t){return Zf(am,e,t)}var um=h("ZodObject",(e,t)=>{zd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>rl(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:Ir()})},loose(){return this.clone({...this._zod.def,catchall:Ir()})},strict(){return this.clone({...this._zod.def,catchall:om()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return nc(this,n)},safeExtend(n){return rc(this,n)},merge(n){return ic(this,n)},pick(n){return ec(this,n)},omit(n){return tc(this,n)},partial(...n){return oc(Fr,this,n[0])},required(...n){return ac(Lr,this,n[0])}})});function cm(e,t){const n={type:"object",shape:e??{},...b(t)};return new um(n)}var dm=h("ZodUnion",(e,t)=>{$d.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>il(e,n,r,i),e.options=t.options});function Jr(e,t){return new dm({type:"union",options:e,...b(t)})}var fm=h("ZodIntersection",(e,t)=>{Ld.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ol(e,n,r,i)});function lm(e,t){return new fm({type:"intersection",left:e,right:t})}var Jt=h("ZodEnum",(e,t)=>{Hd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(r,i,a)=>jf(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 Jt({...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 Jt({...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 Jt({type:"enum",entries:n,...b(t)})}var mm=h("ZodTransform",(e,t)=>{Bd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>tl(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 pm(e){return new mm({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 hm=h("ZodExactOptional",(e,t)=>{Zd.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 ym(e){return new hm({type:"optional",innerType:e})}var gm=h("ZodNullable",(e,t)=>{Ud.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 $r(e){return new gm({type:"nullable",innerType:e})}var _m=h("ZodDefault",(e,t)=>{Gd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ul(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Om(e,t){return new _m({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Yn(t)}})}var Am=h("ZodPrefault",(e,t)=>{qd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>cl(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Sm(e,t){return new Am({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Yn(t)}})}var Lr=h("ZodNonOptional",(e,t)=>{Yd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>sl(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Tm(e,t){return new Lr({type:"nonoptional",innerType:e,...b(t)})}var wm=h("ZodCatch",(e,t)=>{Kd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>dl(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function km(e,t){return new wm({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var vm=h("ZodPipe",(e,t)=>{Vd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>fl(e,n,r,i),e.in=t.in,e.out=t.out});function Hr(e,t){return new vm({type:"pipe",in:e,out:t})}var Rm=h("ZodReadonly",(e,t)=>{Wd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ll(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Nm(e){return new Rm({type:"readonly",innerType:e})}var Cm=h("ZodCustom",(e,t)=>{Xd.init(e,t),x.init(e,t),e._zod.processJSONSchema=(n,r,i)=>el(e,n,r,i)});function Pm(e,t={}){return Uf(Cm,e,t)}function bm(e,t){return Gf(e,t)}var Mm=Er(["ASC","DESC"]),Ey=cm({sortBy:Jr([El(),jl(),nm()]).optional(),sortOrder:Mm.optional()}),Dm=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 Im(){return new Dm}var Fy=Im(),Br="http://localhost".replace(/\/+$/,""),Jm=e=>typeof Blob<"u"&&e instanceof Blob,ue=class{configuration;middleware;constructor(e=new Ft){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 Et(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||Jm(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,...$n({},t,{headers:$n({},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}},Et=class extends Error{response;name="ResponseError";constructor(e,t){super(t),this.response=e}},H=class extends Error{field;name="RequiredError";constructor(e,t){super(t),this.field=e}},Em={csv:",",ssv:" ",tsv:" ",pipes:"|"},Ft=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||zt}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 Fm(e,t){const n=e[t];return n!=null}function zt(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?zt(i,r):`${encodeURIComponent(r)}=${encodeURIComponent(String(i))}`}).filter(n=>n.length>0).join("&")}function zm(e){for(const t of e)if(t.contentType==="multipart/form-data")return!0;return!1}var G=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(){}},$m=class{raw;constructor(e){this.raw=e}async value(){return await this.raw.blob()}},$t=class{raw;constructor(e){this.raw=e}async value(){return await this.raw.text()}},Lm={Coupon:"COUPON"};function Hm(e){return!(!("name"in e)||e.name===void 0)}function Bm(e){return Lt(e,!1)}function Lt(e,t){return e==null?e:{name:e.name}}function Ur(e){return Gr(e,!1)}function Gr(e,t=!1){return e==null?e:{name:e.name}}var Zm={CreditCard:"CREDIT_CARD"};function Um(e){return!(!("name"in e)||e.name===void 0)}function Gm(e){return Ht(e,!1)}function Ht(e,t){return e==null?e:{name:e.name}}function qr(e){return Yr(e,!1)}function Yr(e,t=!1){return e==null?e:{name:e.name}}var qm={DepositAccount:"DEPOSIT_ACCOUNT"};function Ym(e){return!(!("name"in e)||e.name===void 0)}function Km(e){return Bt(e,!1)}function Bt(e,t){return e==null?e:{name:e.name}}function Kr(e){return Vr(e,!1)}function Vr(e,t=!1){return e==null?e:{name:e.name}}var Vm={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"};function Wm(e){return!(!("status"in e)||e.status===void 0)}function Wr(e){return Xr(e,!1)}function Xr(e,t){return e==null?e:{status:e.status}}function Qr(e){return xr(e,!1)}function xr(e,t=!1){return e==null?e:{status:e.status}}var Xm={PayLater:"PAY_LATER"};function Qm(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function xm(e){return Zt(e,!1)}function Zt(e,t){return e==null?e:{name:e.name,payload:Wr(e.payload)}}function jr(e){return ei(e,!1)}function ei(e,t=!1){return e==null?e:{name:e.name,payload:Qr(e.payload)}}function ti(e){return ni(e,!1)}function ni(e,t){if(e==null)return e;switch(e.name){case"COUPON":return{...Lt(e,!0),name:"COUPON"};case"CREDIT_CARD":return{...Ht(e,!0),name:"CREDIT_CARD"};case"DEPOSIT_ACCOUNT":return{...Bt(e,!0),name:"DEPOSIT_ACCOUNT"};case"PAY_LATER":return{...Zt(e,!0),name:"PAY_LATER"};default:throw new Error(`No variant of AllowedPaymentMethodApi exists with 'name=${e.name}'`)}}function ri(e){if(e!==void 0){if(e===null)return null;switch(e.name){case"COUPON":return Ur(e);case"CREDIT_CARD":return qr(e);case"DEPOSIT_ACCOUNT":return Kr(e);case"PAY_LATER":return jr(e);default:throw new Error(`No variant of AllowedPaymentMethodApi exists with 'name=${e.name}'`)}}}function jm(e,t=!1){return ri(e)}function ep(e){return!0}function Ut(e){return ii(e,!1)}function ii(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 Gt(e){return oi(e,!1)}function oi(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 tp(e){return!(!("count"in e)||e.count===void 0||!("name"in e)||e.name===void 0||!("occupancy"in e)||e.occupancy===void 0)}function np(e){return ai(e,!1)}function ai(e,t){return e==null?e:{count:e.count,name:e.name,occupancy:e.occupancy}}function rp(e){return si(e,!1)}function si(e,t=!1){return e==null?e:{count:e.count,name:e.name,occupancy:e.occupancy}}function ip(e){return!(!("dateFrom"in e)||e.dateFrom===void 0||!("dateTo"in e)||e.dateTo===void 0||!("penaltyPercentage"in e)||e.penaltyPercentage===void 0)}function rt(e){return ui(e,!1)}function ui(e,t){return e==null?e:{dateFrom:e.date_from,dateTo:e.date_to,penaltyPercentage:e.penalty_percentage}}function it(e){return ci(e,!1)}function ci(e,t=!1){return e==null?e:{date_from:e.dateFrom,date_to:e.dateTo,penalty_percentage:e.penaltyPercentage}}var ot={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 op(e){for(const t in ot)if(Object.prototype.hasOwnProperty.call(ot,t)&&ot[t]===e)return!0;return!1}function He(e){return di(e,!1)}function di(e,t){return e}function ap(e){return e}function sp(e,t){return e}function up(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 fi(e,!1)}function fi(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 li(e,!1)}function li(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 cp(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 mi(e){return pi(e,!1)}function pi(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 hi(e){return yi(e,!1)}function yi(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 at={Included:"INCLUDED",NotIncluded:"NOT_INCLUDED",Optional:"OPTIONAL"};function dp(e){for(const t in at)if(Object.prototype.hasOwnProperty.call(at,t)&&at[t]===e)return!0;return!1}function gi(e){return _i(e,!1)}function _i(e,t){return e}function fp(e){return e}function lp(e,t){return e}var mp={PerNight:"PER_NIGHT",PerStay:"PER_STAY"},pp={PerAdult:"PER_ADULT",PerBooking:"PER_BOOKING"};function hp(e){return!(!("taxFrequency"in e)||e.taxFrequency===void 0||!("taxMode"in e)||e.taxMode===void 0)}function qt(e){return Oi(e,!1)}function Oi(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 Yt(e){return Ai(e,!1)}function Ai(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 st={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 yp(e){for(const t in st)if(Object.prototype.hasOwnProperty.call(st,t)&&st[t]===e)return!0;return!1}function le(e){return Si(e,!1)}function Si(e,t){return e}function gp(e){return e}function _p(e,t){return e}function Op(e){return!(!("name"in e)||e.name===void 0)}function Kt(e){return Ti(e,!1)}function Ti(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 Vt(e){return wi(e,!1)}function wi(e,t=!1){return e==null?e:{bg:e.bg,color:e.color,description:e.description,fa_icon:e.faIcon,name:e.name}}var Ap={BestMatch:"BEST_MATCH",Cheapest:"CHEAPEST",MatchingRoomCount:"MATCHING_ROOM_COUNT",Regular:"REGULAR"},Sp={Included:"included",NotIncluded:"not_included",Unknown:"unknown"},Tp={HotelRoom:"HOTEL_ROOM",Package:"PACKAGE"};function wp(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 ki(e,!1)}function ki(e,t){return e==null?e:{breakfastCount:e.breakfast_count==null?void 0:e.breakfast_count,breakfastOption:gi(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(rt),count:e.count==null?void 0:e.count,currency:le(e.currency),hotelId:e.hotel_id,hotelRooms:e.hotel_rooms.map(mi),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(Kt),taxIncludedPrice:e.tax_included_price,taxes:e.taxes==null?void 0:e.taxes.map(qt),type:e.type==null?void 0:e.type}}function De(e){return vi(e,!1)}function vi(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(it),count:e.count,currency:e.currency,hotel_id:e.hotelId,hotel_rooms:e.hotelRooms.map(hi),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(Vt),tax_included_price:e.taxIncludedPrice,taxes:e.taxes==null?void 0:e.taxes.map(Yt),type:e.type}}var ut={DeDe:"de-DE",EnUs:"en-US",EsEs:"es-ES",FrFr:"fr-FR",ItIt:"it-IT",NlNl:"nl-NL",PtPt:"pt-PT"};function kp(e){for(const t in ut)if(Object.prototype.hasOwnProperty.call(ut,t)&&ut[t]===e)return!0;return!1}function ct(e){return Ri(e,!1)}function Ri(e,t){return e}function vp(e){return e}function Rp(e,t){return e}var dt={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 Np(e){for(const t in dt)if(Object.prototype.hasOwnProperty.call(dt,t)&&dt[t]===e)return!0;return!1}function ft(e){return Ni(e,!1)}function Ni(e,t){return e}function Cp(e){return e}function Pp(e,t){return e}function bp(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 Ci(e){return Pi(e,!1)}function Pi(e,t){return e==null?e:{address:e.address,city:e.city,country:ft(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 bi(e){return Mi(e,!1)}function Mi(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 Mp={Dr:"dr",Mr:"mr",Mrs:"mrs",Ms:"ms",NotSpecified:"notSpecified",Prof:"prof"};function Dp(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 Wt(e){return Di(e,!1)}function Di(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:ft(e.country),email:e.email,firstName:e.first_name,lang:e.lang==null?void 0:ct(e.lang),lastName:e.last_name,nationality:ft(e.nationality),organization:e.organization==null?void 0:Ci(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 Xt(e){return Ii(e,!1)}function Ii(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:bi(e.organization),phone:e.phone,remarks:e.remarks,salutation:e.salutation,state:e.state,zip_code:e.zipCode}}function Ip(e){return!(!("amount"in e)||e.amount===void 0||!("couponId"in e)||e.couponId===void 0)}function Ji(e){return Ei(e,!1)}function Ei(e,t){return e==null?e:{amount:e.amount,couponId:e.coupon_id,token:e.token==null?void 0:e.token}}function Fi(e){return zi(e,!1)}function zi(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId,token:e.token}}var Jp={Coupon:"COUPON"};function Ep(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function Fp(e){return Qt(e,!1)}function Qt(e,t){return e==null?e:{name:e.name,payload:Ji(e.payload)}}function $i(e){return Li(e,!1)}function Li(e,t=!1){return e==null?e:{name:e.name,payload:Fi(e.payload)}}function zp(e){return!(!("amount"in e)||e.amount===void 0||!("token"in e)||e.token===void 0)}function Hi(e){return Bi(e,!1)}function Bi(e,t){return e==null?e:{amount:e.amount,couponId:e.coupon_id==null?void 0:e.coupon_id,token:e.token}}function Zi(e){return Ui(e,!1)}function Ui(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId,token:e.token}}var $p={CreditCard:"CREDIT_CARD"};function Lp(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function Hp(e){return xt(e,!1)}function xt(e,t){return e==null?e:{name:e.name,payload:Hi(e.payload)}}function Gi(e){return qi(e,!1)}function qi(e,t=!1){return e==null?e:{name:e.name,payload:Zi(e.payload)}}function Bp(e){return!(!("amount"in e)||e.amount===void 0)}function Yi(e){return Ki(e,!1)}function Ki(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 Vi(e){return Wi(e,!1)}function Wi(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId,token:e.token}}var Zp={DepositAccount:"DEPOSIT_ACCOUNT"};function Up(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function Gp(e){return jt(e,!1)}function jt(e,t){return e==null?e:{name:e.name,payload:Yi(e.payload)}}function Xi(e){return Qi(e,!1)}function Qi(e,t=!1){return e==null?e:{name:e.name,payload:Vi(e.payload)}}var qp={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"};function Yp(e){return!(!("amount"in e)||e.amount===void 0||!("status"in e)||e.status===void 0)}function xi(e){return ji(e,!1)}function ji(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 eo(e){return to(e,!1)}function to(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId,status:e.status,token:e.token}}var Kp={PayLater:"PAY_LATER"};function Vp(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function Wp(e){return en(e,!1)}function en(e,t){return e==null?e:{name:e.name,payload:xi(e.payload)}}function no(e){return ro(e,!1)}function ro(e,t=!1){return e==null?e:{name:e.name,payload:eo(e.payload)}}function io(e){return oo(e,!1)}function oo(e,t){if(e==null)return e;switch(e.name){case"COUPON":return{...Qt(e,!0),name:"COUPON"};case"CREDIT_CARD":return{...xt(e,!0),name:"CREDIT_CARD"};case"DEPOSIT_ACCOUNT":return{...jt(e,!0),name:"DEPOSIT_ACCOUNT"};case"PAY_LATER":return{...en(e,!0),name:"PAY_LATER"};default:throw new Error(`No variant of PaymentMethodApi exists with 'name=${e.name}'`)}}function tn(e){if(e!==void 0){if(e===null)return null;switch(e.name){case"COUPON":return $i(e);case"CREDIT_CARD":return Gi(e);case"DEPOSIT_ACCOUNT":return Xi(e);case"PAY_LATER":return no(e);default:throw new Error(`No variant of PaymentMethodApi exists with 'name=${e.name}'`)}}}function Xp(e,t=!1){return tn(e)}var Qp={Active:"active",Archived:"archived",Claimed:"claimed",Incomplete:"incomplete",Open:"open",WaitingPayment:"waiting_payment"};function xp(e){return!(!("status"in e)||e.status===void 0)}function ao(e){return so(e,!1)}function so(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 uo(e){return co(e,!1)}function co(e,t=!1){return e==null?e:{created_at:e.createdAt,reference:e.reference,status:e.status}}var jp={CreditNote:"credit_note",Invoice:"invoice"};function eh(e){return!(!("type"in e)||e.type===void 0||!("url"in e)||e.url===void 0)}function fo(e){return lo(e,!1)}function lo(e,t){return e==null?e:{type:e.type,url:e.url}}function mo(e){return po(e,!1)}function po(e,t=!1){return e==null?e:{type:e.type,url:e.url}}var th={Insurance:"insurance"};function nh(e){return!(!("price"in e)||e.price===void 0||!("taxIncludedPrice"in e)||e.taxIncludedPrice===void 0||!("type"in e)||e.type===void 0)}function nn(e){return ho(e,!1)}function ho(e,t){return e==null?e:{price:e.price,taxIncludedPrice:e.tax_included_price,type:e.type}}function rn(e){return yo(e,!1)}function yo(e,t=!1){return e==null?e:{price:e.price,tax_included_price:e.taxIncludedPrice,type:e.type}}function rh(e){return!0}function lt(e){return go(e,!1)}function go(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 mt(e){return _o(e,!1)}function _o(e,t=!1){return e==null?e:{latitude:e.latitude,longitude:e.longitude,name:e.name,slug:e.slug}}function ih(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 Oo(e){return Ao(e,!1)}function Ao(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 So(e){return To(e,!1)}function To(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 oh(e){return!(!("fullname"in e)||e.fullname===void 0||!("id"in e)||e.id===void 0)}function pt(e){return wo(e,!1)}function wo(e,t){return e==null?e:{fullname:e.fullname,id:e.id}}function ko(e){return vo(e,!1)}function vo(e,t=!1){return e==null?e:{fullname:e.fullname,id:e.id}}function ah(e){return!(!("hotelRoomId"in e)||e.hotelRoomId===void 0||!("hotelRoomingListGuests"in e)||e.hotelRoomingListGuests===void 0||!("id"in e)||e.id===void 0)}function on(e){return Ro(e,!1)}function Ro(e,t){return e==null?e:{hotelRoom:e.hotel_room==null?void 0:Oo(e.hotel_room),hotelRoomId:e.hotel_room_id,hotelRoomingListGuests:e.hotel_rooming_list_guests.map(pt),id:e.id,limitDate:e.limit_date==null?void 0:new Date(e.limit_date)}}function No(e){return Co(e,!1)}function Co(e,t=!1){return e==null?e:{hotel_room:So(e.hotelRoom),hotel_room_id:e.hotelRoomId,hotel_rooming_list_guests:e.hotelRoomingListGuests.map(ko),id:e.id,limit_date:e.limitDate==null?e.limitDate:e.limitDate.toISOString()}}var sh={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"},uh={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 ch(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 Po(e,!1)}function Po(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(nn),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(rt),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:Wt(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:lt(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(on),id:e.id==null?void 0:e.id,insurance:e.insurance==null?void 0:ao(e.insurance),invoices:e.invoices==null?void 0:e.invoices.map(fo),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(io),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(qt),terms:e.terms,token:e.token==null?void 0:e.token}}function bo(e){return Mo(e,!1)}function Mo(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(rn),adult_count:e.adultCount,booking_group_id:e.bookingGroupId,canceled_at:e.canceledAt,cancellation_policies:e.cancellationPolicies.map(it),cancellation_policy_remarks:e.cancellationPolicyRemarks,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,confirmed_at:e.confirmedAt,contact_person:Xt(e.contactPerson),created_at:e.createdAt,currency:e.currency,customer_reference:e.customerReference,event:mt(e.event),failed_at:e.failedAt,hotel_confirmation_id:e.hotelConfirmationId,hotel_id:e.hotelId,hotel_room_offer:De(e.hotelRoomOffer),hotel_rooming_lists:e.hotelRoomingLists==null?void 0:e.hotelRoomingLists.map(No),id:e.id,insurance:uo(e.insurance),invoices:e.invoices==null?void 0:e.invoices.map(mo),last_status_updated_at:e.lastStatusUpdatedAt,metadata:e.metadata,pay_later:e.payLater,payment_methods:e.paymentMethods==null?void 0:e.paymentMethods.map(tn),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(Yt),terms:e.terms,token:e.token}}var dh={Insurance:"insurance"};function fh(e){return!(!("type"in e)||e.type===void 0)}function Do(e){return Io(e,!1)}function Io(e,t){return e==null?e:{type:e.type}}function Jo(e){return Eo(e,!1)}function Eo(e,t=!1){return e==null?e:{type:e.type}}function lh(e){return!(!("fullname"in e)||e.fullname===void 0)}function Fo(e){return zo(e,!1)}function zo(e,t){return e==null?e:{fullname:e.fullname}}function $o(e){return Lo(e,!1)}function Lo(e,t=!1){return e==null?e:{fullname:e.fullname}}function mh(e){return!(!("guests"in e)||e.guests===void 0||!("hotelRoomId"in e)||e.hotelRoomId===void 0)}function Ho(e){return Bo(e,!1)}function Bo(e,t){return e==null?e:{guests:e.guests.map(Fo),hotelRoomId:e.hotel_room_id}}function Zo(e){return Uo(e,!1)}function Uo(e,t=!1){return e==null?e:{guests:e.guests.map($o),hotel_room_id:e.hotelRoomId}}function ph(e){return!0}function Ie(e){return Go(e,!1)}function Go(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 Je(e){return qo(e,!1)}function qo(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 hh(e){return!(!("code"in e)||e.code===void 0)}function Yo(e){return Ko(e,!1)}function Ko(e,t){return e==null?e:{code:e.code}}function Vo(e){return Wo(e,!1)}function Wo(e,t=!1){return e==null?e:{code:e.code}}var yh={Coupon:"COUPON"};function gh(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function _h(e){return an(e,!1)}function an(e,t){return e==null?e:{name:e.name,payload:Yo(e.payload)}}function Xo(e){return Qo(e,!1)}function Qo(e,t=!1){return e==null?e:{name:e.name,payload:Vo(e.payload)}}var Oh={CreditCard:"CREDIT_CARD"};function Ah(e){return!(!("name"in e)||e.name===void 0)}function Sh(e){return sn(e,!1)}function sn(e,t){return e==null?e:{name:e.name}}function xo(e){return jo(e,!1)}function jo(e,t=!1){return e==null?e:{name:e.name}}var Th={DepositAccount:"DEPOSIT_ACCOUNT"};function wh(e){return!(!("name"in e)||e.name===void 0)}function kh(e){return un(e,!1)}function un(e,t){return e==null?e:{name:e.name}}function ea(e){return ta(e,!1)}function ta(e,t=!1){return e==null?e:{name:e.name}}function cn(e){return na(e,!1)}function na(e,t){if(e==null)return e;switch(e.name){case"COUPON":return{...an(e,!0),name:"COUPON"};case"CREDIT_CARD":return{...sn(e,!0),name:"CREDIT_CARD"};case"DEPOSIT_ACCOUNT":return{...un(e,!0),name:"DEPOSIT_ACCOUNT"};default:throw new Error(`No variant of PaymentMethodRequestApi exists with 'name=${e.name}'`)}}function ht(e){if(e!==void 0){if(e===null)return null;switch(e.name){case"COUPON":return Xo(e);case"CREDIT_CARD":return xo(e);case"DEPOSIT_ACCOUNT":return ea(e);default:throw new Error(`No variant of PaymentMethodRequestApi exists with 'name=${e.name}'`)}}}function vh(e,t=!1){return ht(e)}function Rh(e){return!(!("bookingPolicyId"in e)||e.bookingPolicyId===void 0||!("contactPerson"in e)||e.contactPerson===void 0)}function Nh(e){return ra(e,!1)}function ra(e,t){return e==null?e:{addons:e.addons==null?void 0:e.addons.map(Do),bookingPolicyId:e.booking_policy_id,contactPerson:Wt(e.contact_person),eventMetadata:e.event_metadata==null?void 0:Ie(e.event_metadata),guestsList:e.guests_list==null?void 0:e.guests_list.map(Ho),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 ia(e){return oa(e,!1)}function oa(e,t=!1){return e==null?e:{addons:e.addons==null?void 0:e.addons.map(Jo),booking_policy_id:e.bookingPolicyId,contact_person:Xt(e.contactPerson),event_metadata:Je(e.eventMetadata),guests_list:e.guestsList==null?void 0:e.guestsList.map(Zo),metadata:e.metadata,payment_methods:e.paymentMethods==null?void 0:e.paymentMethods.map(ht),tracking_id:e.trackingId}}function Ch(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 dn(e){return aa(e,!1)}function aa(e,t){return e==null?e:{addons:e.addons==null?void 0:e.addons.map(nn),adultCount:e.adult_count,cancellationPolicies:e.cancellation_policies.map(rt),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 Ph(e){return sa(e,!1)}function sa(e,t=!1){return e==null?e:{addons:e.addons==null?void 0:e.addons.map(rn),adult_count:e.adultCount,cancellation_policies:e.cancellationPolicies.map(it),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:De(e.hotelRoomOffer),id:e.id,is_cancellation_policies_updated:e.isCancellationPoliciesUpdated,is_price_increased:e.isPriceIncreased}}function bh(e){return!(!("hotelRoomOfferId"in e)||e.hotelRoomOfferId===void 0)}function Mh(e){return ua(e,!1)}function ua(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:ct(e.lang)}}function ca(e){return da(e,!1)}function da(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 Dh(e){return!0}function fa(e){return la(e,!1)}function la(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 ma(e){return pa(e,!1)}function pa(e,t=!1){return e==null?e:{ending_before:e.endingBefore,limit:e.limit,starting_after:e.startingAfter,total_count:e.totalCount}}function Ih(e){return!(!("data"in e)||e.data===void 0||!("meta"in e)||e.meta===void 0)}function ha(e){return ya(e,!1)}function ya(e,t){return e==null?e:{data:e.data.map(fe),meta:fa(e.meta)}}function Jh(e){return ga(e,!1)}function ga(e,t=!1){return e==null?e:{data:e.data.map(bo),meta:ma(e.meta)}}var Eh={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 Fh(e){return!(!("statusCode"in e)||e.statusCode===void 0)}function zh(e){return _a(e,!1)}function _a(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 $h(e){return Oa(e,!1)}function Oa(e,t=!1){return e==null?e:{documentation_url:e.documentationUrl,error:e.error,message:e.message,statusCode:e.statusCode,type:e.type}}function Lh(e){return!(!("rating"in e)||e.rating===void 0)}function fn(e){return Aa(e,!1)}function Aa(e,t){return e==null?e:{category:e.category==null?void 0:e.category,rating:e.rating}}function ln(e){return Sa(e,!1)}function Sa(e,t=!1){return e==null?e:{category:e.category,rating:e.rating}}function Hh(e){return!0}function mn(e){return Ta(e,!1)}function Ta(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 pn(e){return wa(e,!1)}function wa(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 Bh(e){return!0}function ka(e){return va(e,!1)}function va(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 Ra(e){return Na(e,!1)}function Na(e,t=!1){return e==null?e:{driving:e.driving,transit:e.transit,walking:e.walking}}function Zh(e){return!(!("name"in e)||e.name===void 0)}function hn(e){return Ca(e,!1)}function Ca(e,t){return e==null?e:{description:e.description==null?void 0:e.description,name:e.name,travelTimes:e.travel_times==null?void 0:ka(e.travel_times)}}function yn(e){return Pa(e,!1)}function Pa(e,t=!1){return e==null?e:{description:e.description,name:e.name,travel_times:Ra(e.travelTimes)}}function Uh(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 ba(e){return Ma(e,!1)}function Ma(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:Ut(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(fn),id:e.id,images:e.images==null?void 0:mn(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(hn),website:e.website==null?void 0:e.website}}function Gh(e){return Da(e,!1)}function Da(e,t=!1){return e==null?e:{address:e.address,address2:e.address2,amenities:Gt(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(ln),id:e.id,images:pn(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(yn),website:e.website}}function qh(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 Ia(e){return Ja(e,!1)}function Ja(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:Ut(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(fn),id:e.id,images:e.images==null?void 0:mn(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(hn),website:e.website==null?void 0:e.website,hotelRoomOffers:e.hotel_room_offers.map(Me),tags:e.tags==null?void 0:e.tags.map(Kt)}}function Ea(e){return Fa(e,!1)}function Fa(e,t=!1){return e==null?e:{address:e.address,address2:e.address2,amenities:Gt(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(ln),id:e.id,images:pn(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(yn),website:e.website,hotel_room_offers:e.hotelRoomOffers.map(De),tags:e.tags==null?void 0:e.tags.map(Vt)}}function Yh(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 gn(e){return za(e,!1)}function za(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:Ie(e.event_metadata),id:e.id,latitude:e.latitude,longitude:e.longitude,roomCount:e.room_count,sourceMarket:He(e.source_market)}}function Kh(e){return $a(e,!1)}function $a(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:Je(e.eventMetadata),id:e.id,latitude:e.latitude,longitude:e.longitude,room_count:e.roomCount,source_market:e.sourceMarket}}function Vh(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 Wh(e){return La(e,!1)}function La(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:Ie(e.event_metadata),latitude:e.latitude==null?void 0:e.latitude,longitude:e.longitude==null?void 0:e.longitude,roomCount:e.room_count}}function Ha(e){return Ba(e,!1)}function Ba(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:Je(e.eventMetadata),latitude:e.latitude,longitude:e.longitude,room_count:e.roomCount}}function Xh(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 Za(e){return Ua(e,!1)}function Ua(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(Ia),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 Ga(e){return qa(e,!1)}function qa(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(Ea),price_histogram:e.priceHistogram,price_max:e.priceMax,price_min:e.priceMin}}var yt={Complete:"COMPLETE",InProgress:"IN_PROGRESS"};function Qh(e){for(const t in yt)if(Object.prototype.hasOwnProperty.call(yt,t)&&yt[t]===e)return!0;return!1}function Ya(e){return Ka(e,!1)}function Ka(e,t){return e}function xh(e){return e}function jh(e,t){return e}function ey(e){return!(!("status"in e)||e.status===void 0)}function _n(e){return Va(e,!1)}function Va(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:Ya(e.status)}}function On(e){return Wa(e,!1)}function Wa(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 ty(e){return!(!("data"in e)||e.data===void 0||!("meta"in e)||e.meta===void 0)}function Xa(e){return Qa(e,!1)}function Qa(e,t){return e==null?e:{data:Za(e.data),event:e.event==null?void 0:lt(e.event),meta:_n(e.meta)}}function ny(e){return xa(e,!1)}function xa(e,t=!1){return e==null?e:{data:Ga(e.data),event:mt(e.event),meta:On(e.meta)}}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||!("hotelRoomOffer"in e)||e.hotelRoomOffer===void 0)}function ja(e){return es(e,!1)}function es(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 iy(e){return ts(e,!1)}function ts(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:De(e.hotelRoomOffer)}}function oy(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 An(e){return ns(e,!1)}function ns(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:Ie(e.event_metadata),hotelId:e.hotel_id,roomCount:e.room_count,createdAt:e.created_at,id:e.id,sourceMarket:He(e.source_market)}}function ay(e){return rs(e,!1)}function rs(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:Je(e.eventMetadata),hotel_id:e.hotelId,room_count:e.roomCount,created_at:e.createdAt,id:e.id,source_market:e.sourceMarket}}function sy(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 uy(e){return is(e,!1)}function is(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:Ie(e.event_metadata),hotelId:e.hotel_id,roomCount:e.room_count}}function os(e){return as(e,!1)}function as(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:Je(e.eventMetadata),hotel_id:e.hotelId,room_count:e.roomCount}}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||!("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 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,hotelRoomOffers:e.hotel_room_offers.map(Me),hotelTimezone:e.hotel_timezone}}function cs(e){return ds(e,!1)}function ds(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(De),hotel_timezone:e.hotelTimezone}}function dy(e){return!(!("data"in e)||e.data===void 0||!("meta"in e)||e.meta===void 0)}function fs(e){return ls(e,!1)}function ls(e,t){return e==null?e:{data:ss(e.data),event:e.event==null?void 0:lt(e.event),meta:_n(e.meta)}}function fy(e){return ms(e,!1)}function ms(e,t=!1){return e==null?e:{data:cs(e.data),event:mt(e.event),meta:On(e.meta)}}function ly(e){return!(!("count"in e)||e.count===void 0||!("hotelRoomOfferId"in e)||e.hotelRoomOfferId===void 0)}function ps(e){return hs(e,!1)}function hs(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 ys(e){return gs(e,!1)}function gs(e,t=!1){return e==null?e:{breakfast_count:e.breakfastCount,count:e.count,hotel_room_offer_id:e.hotelRoomOfferId}}function my(e){return!(!("currency"in e)||e.currency===void 0||!("hotelRoomOffers"in e)||e.hotelRoomOffers===void 0)}function py(e){return _s(e,!1)}function _s(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(ps),lang:e.lang==null?void 0:ct(e.lang)}}function Os(e){return As(e,!1)}function As(e,t=!1){return e==null?e:{add_breakfast:e.addBreakfast,breakfast_count:e.breakfastCount,currency:e.currency,hotel_room_offers:e.hotelRoomOffers.map(ys),lang:e.lang}}function hy(e){return!(!("fullname"in e)||e.fullname===void 0||!("hotelRoomingListId"in e)||e.hotelRoomingListId===void 0)}function yy(e){return Ss(e,!1)}function Ss(e,t){return e==null?e:{fullname:e.fullname,hotelRoomingListId:e.hotel_rooming_list_id}}function Ts(e){return ws(e,!1)}function ws(e,t=!1){return e==null?e:{fullname:e.fullname,hotel_rooming_list_id:e.hotelRoomingListId}}function gy(e){return!(!("fullname"in e)||e.fullname===void 0)}function _y(e){return ks(e,!1)}function ks(e,t){return e==null?e:{fullname:e.fullname}}function vs(e){return Rs(e,!1)}function Rs(e,t=!1){return e==null?e:{fullname:e.fullname}}function Oy(e){return!(!("paymentMethods"in e)||e.paymentMethods===void 0)}function Ay(e){return Ns(e,!1)}function Ns(e,t){return e==null?e:{paymentMethods:e.payment_methods.map(cn)}}function Cs(e){return Ps(e,!1)}function Ps(e,t=!1){return e==null?e:{payment_methods:e.paymentMethods.map(ht)}}var Sy={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 Ty(e){return!(!("message"in e)||e.message===void 0||!("requestType"in e)||e.requestType===void 0)}function wy(e){return bs(e,!1)}function bs(e,t){return e==null?e:{message:e.message,requestType:e.request_type}}function Ms(e){return Ds(e,!1)}function Ds(e,t=!1){return e==null?e:{message:e.message,request_type:e.requestType}}var Is=class extends ue{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new H("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 await new G(i,a=>dn(a)).value()}async retrieve(e,t){return this.retrieveRaw(e,t)}async paymentMethodsRaw(e,t){if(e.id===null||e.id===void 0)throw new H("id","Required parameter requestParameters.id was null or undefined when calling getV1BookingPolicyIdPaymentMethods.");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}/payment_methods".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:E(n,D.Snake)},t);return new G(i,a=>a.map(ti)).value()}async paymentMethods(e,t){return this.paymentMethodsRaw(e,t)}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(ca(e.bookingPoliciesCreateApi),D.Snake)},t);return await new G(i,a=>dn(a)).value()}async create(e={},t){return this.createRaw(e,t)}},Js=class extends ue{async deleteRaw(e,t){if(e.token===null||e.token===void 0)throw new H("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 await new G(n,r=>fe(r)).value()}async delete(e,t){return this.deleteRaw(e,t)}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 await new G(i,a=>ha(a)).value()}async list(e={},t){return this.listRaw(e,t)}async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new H("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 await new G(i,a=>fe(a)).value()}async retrieve(e,t){return this.retrieveRaw(e,t)}async certificateRaw(e,t){if(e.token===null||e.token===void 0)throw new H("token","Required parameter requestParameters.token was null or undefined when calling getV1BookingsTokenCertificate.");if(e.customerName===null||e.customerName===void 0)throw new H("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 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 H("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 await new G(n,r=>fe(r)).value()}async retrievePublic(e,t){return this.retrievePublicRaw(e,t)}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(ia(e.bookingCreateApi),D.Snake)},t);return await new G(i,a=>fe(a)).value()}async create(e={},t){return this.createRaw(e,t)}async couponChargeRaw(e,t){if(e.couponId===null||e.couponId===void 0)throw new H("couponId","Required parameter requestParameters.couponId was null or undefined when calling postV1BookingsIdCouponsCouponIdCharge.");if(e.id===null||e.id===void 0)throw new H("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 await new G(i,a=>fe(a)).value()}async couponCharge(e,t){return this.couponChargeRaw(e,t)}async paylaterRaw(e,t){if(e.id===null||e.id===void 0)throw new H("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 await new G(i,a=>fe(a)).value()}async paylater(e,t){return this.paylaterRaw(e,t)}async confirmpaylaterRaw(e,t){if(e.id===null||e.id===void 0)throw new H("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 await new G(i,a=>fe(a)).value()}async confirmpaylater(e,t){return this.confirmpaylaterRaw(e,t)}async confirmRaw(e,t){if(e.id===null||e.id===void 0)throw new H("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 await new G(i,a=>fe(a)).value()}async confirm(e,t){return this.confirmRaw(e,t)}async submitRequestRaw(e,t){if(e.token===null||e.token===void 0)throw new H("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(Ms(e.requestPayload),D.Snake)},t);return new $t(i)}async submitRequest(e,t){return this.submitRequestRaw(e,t)}async updatePaymentMethodsRaw(e,t){if(e.id===null||e.id===void 0)throw new H("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(Cs(e.paymentMethodUpdatePayloadApi),D.Snake)},t);return await new G(i,a=>fe(a)).value()}async updatePaymentMethods(e,t){return this.updatePaymentMethodsRaw(e,t)}},ky={CheckInDate:"check_in_date",CreatedAt:"created_at",LastStatusUpdatedAt:"last_status_updated_at"},vy={Asc:"asc",Desc:"desc"},Es=class extends ue{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new H("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 G(i,a=>a.map(be)).value()}async retrieve(e,t){return this.retrieveRaw(e,t)}},Fs=class extends ue{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new H("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 await new G(i,a=>gn(a)).value()}async retrieve(e,t){return this.retrieveRaw(e,t)}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(Ha(e.hotelOfferRequestCreateApi),D.Snake)},t);return await new G(i,a=>gn(a)).value()}async create(e={},t){return this.createRaw(e,t)}},zs=class extends ue{async listRaw(e,t){if(e.currency===null||e.currency===void 0)throw new H("currency","Required parameter requestParameters.currency was null or undefined when calling getV1HotelOffers.");if(e.hotelOfferRequestId===null||e.hotelOfferRequestId===void 0)throw new H("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 await new G(i,a=>Xa(a)).value()}async list(e,t,n){return await Ln(()=>this.listRaw(e,n),{type:Cn.HOTEL_SEARCH_POLLING,minCallCount:n?.minCallCount,maxCallCount:n?.maxCallCount},t)}},Ry={Distance:"distance",Price:"price",Rating:"rating",ReviewRating:"review_rating",TopPicks:"top_picks"},Ny={Asc:"asc",Desc:"desc"},$s=class extends ue{async deleteRaw(e,t){if(e.id===null||e.id===void 0)throw new H("id","Required parameter requestParameters.id was null or undefined when calling deleteV1HotelRoomingListGuestsTokenId.");if(e.token===null||e.token===void 0)throw new H("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 $t(n)}async delete(e,t){return this.deleteRaw(e,t)}async updateRaw(e,t){if(e.id===null||e.id===void 0)throw new H("id","Required parameter requestParameters.id was null or undefined when calling patchV1HotelRoomingListGuestsTokenId.");if(e.token===null||e.token===void 0)throw new H("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(vs(e.hotelRoomingListGuestsUpdateApi),D.Snake)},t);return await new G(i,a=>pt(a)).value()}async update(e,t){return this.updateRaw(e,t)}async createRaw(e,t){if(e.token===null||e.token===void 0)throw new H("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(Ts(e.hotelRoomingListGuestsCreateApi),D.Snake)},t);return await new G(i,a=>pt(a)).value()}async create(e,t){return this.createRaw(e,t)}},Ls=class extends ue{async listRaw(e,t){if(e.token===null||e.token===void 0)throw new H("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 G(r,i=>i.map(on)).value()}async list(e,t){return this.listRaw(e,t)}},Hs=class extends ue{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new H("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 await new G(i,a=>E(a,D.Camel)).value()}async retrieve(e,t){return this.retrieveRaw(e,t)}},Bs=class extends ue{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new H("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 await new G(i,a=>An(a)).value()}async retrieve(e,t){return this.retrieveRaw(e,t)}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(os(e.hotelRoomOfferRequestCreateApi),D.Snake)},t);return await new G(i,a=>An(a)).value()}async create(e={},t){return this.createRaw(e,t)}},Zs=class extends ue{async listRaw(e,t){if(e.currency===null||e.currency===void 0)throw new H("currency","Required parameter requestParameters.currency was null or undefined when calling getV1HotelRoomOffers.");if(e.hotelRoomOfferRequestId===null||e.hotelRoomOfferRequestId===void 0)throw new H("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 await new G(i,a=>fs(a)).value()}async list(e,t,n){return await Ln(()=>this.listRaw(e,n),{type:Cn.HOTEL_ROOM_OFFERS,minCallCount:n?.minCallCount,maxCallCount:n?.maxCallCount},t)}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(Os(e.hotelRoomOffersCreateApi),D.Snake)},t);return await new G(i,a=>ja(a)).value()}async create(e={},t){return this.createRaw(e,t)}},Us=class extends ue{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new H("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,D.Snake)},t);return await new G(i,a=>ba(a)).value()}async retrieve(e,t){return this.retrieveRaw(e,t)}},Gs=class extends Et{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}},Cy=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 Gs({body:n,response:t,status:t.status})}},qs=e=>({bookingPolicies:new Is(e),bookings:new Js(e),hotelImages:new Es(e),hotelOfferRequests:new Fs(e),hotelOffers:new zs(e),hotelRoomingListGuests:new $s(e),hotelRoomingLists:new Ls(e),hotelRoomOfferImages:new Hs(e),hotelRoomOfferRequests:new Bs(e),hotelRoomOffers:new Zs(e),hotels:new Us(e)});function Py(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 Ys(e){return!!(typeof document<"u"&&document?.cookie&&document.cookie.split(";").find(t=>t.includes(Py(e))))}var by=class{config;constructor(e){this.config=e}async pre(e){return e.init.mode="cors",Ys(this.config.apiEnvironment)&&(e.init.credentials="include"),e}},My=class{config;constructor(e){this.config=e}async pre(e){return Ys(this.config.apiEnvironment)&&(e.init.headers={...e.init.headers,"x-auth-type":"user"}),e}},Dy=class{config;apiVersionsToClient;constructor(e){if(this.config=e,!e.apiVersion||!Object.values(Nn).includes(e.apiVersion))throw new Error(`Invalid Revolugo Api Version. Possible versions are : ${JSON.stringify(Object.values(Nn))}`);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??Qs[n];!this.config.apiBaseUrl&&n===Re.Local&&(r="http://127.0.0.1:3001");const i=new Ft({basePath:r,fetchApi:js.default,headers:t,middleware:[new by(this.config),new My(this.config),new Cy]});this.apiVersionsToClient={v1:qs(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=ti,o.AllowedPaymentMethodApiFromJSONTyped=ni,o.AllowedPaymentMethodApiToJSON=ri,o.AllowedPaymentMethodApiToJSONTyped=jm,o.AllowedPaymentMethodCouponApiFromJSON=Bm,o.AllowedPaymentMethodCouponApiFromJSONTyped=Lt,o.AllowedPaymentMethodCouponApiNameEnum=Lm,o.AllowedPaymentMethodCouponApiToJSON=Ur,o.AllowedPaymentMethodCouponApiToJSONTyped=Gr,o.AllowedPaymentMethodCreditCardApiFromJSON=Gm,o.AllowedPaymentMethodCreditCardApiFromJSONTyped=Ht,o.AllowedPaymentMethodCreditCardApiNameEnum=Zm,o.AllowedPaymentMethodCreditCardApiToJSON=qr,o.AllowedPaymentMethodCreditCardApiToJSONTyped=Yr,o.AllowedPaymentMethodDepositAccountApiFromJSON=Km,o.AllowedPaymentMethodDepositAccountApiFromJSONTyped=Bt,o.AllowedPaymentMethodDepositAccountApiNameEnum=qm,o.AllowedPaymentMethodDepositAccountApiToJSON=Kr,o.AllowedPaymentMethodDepositAccountApiToJSONTyped=Vr,o.AllowedPaymentMethodPayLaterApiFromJSON=xm,o.AllowedPaymentMethodPayLaterApiFromJSONTyped=Zt,o.AllowedPaymentMethodPayLaterApiNameEnum=Xm,o.AllowedPaymentMethodPayLaterApiPayloadFromJSON=Wr,o.AllowedPaymentMethodPayLaterApiPayloadFromJSONTyped=Xr,o.AllowedPaymentMethodPayLaterApiPayloadStatusEnum=Vm,o.AllowedPaymentMethodPayLaterApiPayloadToJSON=Qr,o.AllowedPaymentMethodPayLaterApiPayloadToJSONTyped=xr,o.AllowedPaymentMethodPayLaterApiToJSON=jr,o.AllowedPaymentMethodPayLaterApiToJSONTyped=ei,o.AmenitiesApiFromJSON=Ut,o.AmenitiesApiFromJSONTyped=ii,o.AmenitiesApiToJSON=Gt,o.AmenitiesApiToJSONTyped=oi,o.ApiClient=Dy,o.ApiError=Gs,o.BASE_PATH=Br,o.BaseAPI=ue,o.BedApiFromJSON=np,o.BedApiFromJSONTyped=ai,o.BedApiToJSON=rp,o.BedApiToJSONTyped=si,o.BlobApiResponse=$m,o.BookingApiFromJSON=fe,o.BookingApiFromJSONTyped=Po,o.BookingApiPayLaterEnum=sh,o.BookingApiStatusEnum=uh,o.BookingApiToJSON=bo,o.BookingApiToJSONTyped=Mo,o.BookingCreateApiFromJSON=Nh,o.BookingCreateApiFromJSONTyped=ra,o.BookingCreateApiGuestsListInnerFromJSON=Ho,o.BookingCreateApiGuestsListInnerFromJSONTyped=Bo,o.BookingCreateApiGuestsListInnerGuestsInnerFromJSON=Fo,o.BookingCreateApiGuestsListInnerGuestsInnerFromJSONTyped=zo,o.BookingCreateApiGuestsListInnerGuestsInnerToJSON=$o,o.BookingCreateApiGuestsListInnerGuestsInnerToJSONTyped=Lo,o.BookingCreateApiGuestsListInnerToJSON=Zo,o.BookingCreateApiGuestsListInnerToJSONTyped=Uo,o.BookingCreateApiToJSON=ia,o.BookingCreateApiToJSONTyped=oa,o.BookingPolicies=Is,o.BookingPoliciesApiFromJSON=dn,o.BookingPoliciesApiFromJSONTyped=aa,o.BookingPoliciesApiToJSON=Ph,o.BookingPoliciesApiToJSONTyped=sa,o.BookingPoliciesCreateApiFromJSON=Mh,o.BookingPoliciesCreateApiFromJSONTyped=ua,o.BookingPoliciesCreateApiToJSON=ca,o.BookingPoliciesCreateApiToJSONTyped=da,o.Bookings=Js,o.BookingsApiResponseFromJSON=ha,o.BookingsApiResponseFromJSONTyped=ya,o.BookingsApiResponseToJSON=Jh,o.BookingsApiResponseToJSONTyped=ga,o.BookingsSortByEnum=ky,o.BookingsSortByOrderEnum=vy,o.BreakfastOption=at,o.BreakfastOptionFromJSON=gi,o.BreakfastOptionFromJSONTyped=_i,o.BreakfastOptionToJSON=fp,o.BreakfastOptionToJSONTyped=lp,o.COLLECTION_FORMATS=Em,o.CancellationPolicyApiFromJSON=rt,o.CancellationPolicyApiFromJSONTyped=ui,o.CancellationPolicyApiToJSON=it,o.CancellationPolicyApiToJSONTyped=ci,o.Configuration=Ft,o.ContactPersonApiFromJSON=Wt,o.ContactPersonApiFromJSONTyped=Di,o.ContactPersonApiSalutationEnum=Mp,o.ContactPersonApiToJSON=Xt,o.ContactPersonApiToJSONTyped=Ii,o.ContactPersonOrganizationApiFromJSON=Ci,o.ContactPersonOrganizationApiFromJSONTyped=Pi,o.ContactPersonOrganizationApiToJSON=bi,o.ContactPersonOrganizationApiToJSONTyped=Mi,o.CountryIso2Code=dt,o.CountryIso2CodeFromJSON=ft,o.CountryIso2CodeFromJSONTyped=Ni,o.CountryIso2CodeToJSON=Cp,o.CountryIso2CodeToJSONTyped=Pp,o.CurrencyClient=st,o.CurrencyClientFromJSON=le,o.CurrencyClientFromJSONTyped=Si,o.CurrencyClientToJSON=gp,o.CurrencyClientToJSONTyped=_p,o.ErrorApiResponseFromJSON=zh,o.ErrorApiResponseFromJSONTyped=_a,o.ErrorApiResponseToJSON=$h,o.ErrorApiResponseToJSONTyped=Oa,o.ErrorApiResponseTypeEnum=Eh,o.EventApiFromJSON=lt,o.EventApiFromJSONTyped=go,o.EventApiToJSON=mt,o.EventApiToJSONTyped=_o,o.EventMetadataApiFromJSON=Ie,o.EventMetadataApiFromJSONTyped=Go,o.EventMetadataApiToJSON=Je,o.EventMetadataApiToJSONTyped=qo,o.HotelApiFromJSON=ba,o.HotelApiFromJSONTyped=Ma,o.HotelApiImagesFromJSON=mn,o.HotelApiImagesFromJSONTyped=Ta,o.HotelApiImagesToJSON=pn,o.HotelApiImagesToJSONTyped=wa,o.HotelApiToJSON=Gh,o.HotelApiToJSONTyped=Da,o.HotelImageApiFromJSON=be,o.HotelImageApiFromJSONTyped=fi,o.HotelImageApiToJSON=Be,o.HotelImageApiToJSONTyped=li,o.HotelImages=Es,o.HotelOfferApiFromJSON=Ia,o.HotelOfferApiFromJSONTyped=Ja,o.HotelOfferApiToJSON=Ea,o.HotelOfferApiToJSONTyped=Fa,o.HotelOfferRequestApiResponseFromJSON=gn,o.HotelOfferRequestApiResponseFromJSONTyped=za,o.HotelOfferRequestApiResponseToJSON=Kh,o.HotelOfferRequestApiResponseToJSONTyped=$a,o.HotelOfferRequestCreateApiFromJSON=Wh,o.HotelOfferRequestCreateApiFromJSONTyped=La,o.HotelOfferRequestCreateApiToJSON=Ha,o.HotelOfferRequestCreateApiToJSONTyped=Ba,o.HotelOfferRequests=Fs,o.HotelOffers=zs,o.HotelOffersApiResponseFromJSON=Xa,o.HotelOffersApiResponseFromJSONTyped=Qa,o.HotelOffersApiResponseToJSON=ny,o.HotelOffersApiResponseToJSONTyped=xa,o.HotelOffersDataApiResponseFromJSON=Za,o.HotelOffersDataApiResponseFromJSONTyped=Ua,o.HotelOffersDataApiResponseToJSON=Ga,o.HotelOffersDataApiResponseToJSONTyped=qa,o.HotelOffersSortByEnum=Ry,o.HotelOffersSortByOrderEnum=Ny,o.HotelReviewRatingApiFromJSON=fn,o.HotelReviewRatingApiFromJSONTyped=Aa,o.HotelReviewRatingApiToJSON=ln,o.HotelReviewRatingApiToJSONTyped=Sa,o.HotelRoomOfferApiFromJSON=Me,o.HotelRoomOfferApiFromJSONTyped=ki,o.HotelRoomOfferApiHotelRoomsInnerFromJSON=mi,o.HotelRoomOfferApiHotelRoomsInnerFromJSONTyped=pi,o.HotelRoomOfferApiHotelRoomsInnerToJSON=hi,o.HotelRoomOfferApiHotelRoomsInnerToJSONTyped=yi,o.HotelRoomOfferApiPackageTypeEnum=Ap,o.HotelRoomOfferApiResponseFromJSON=ja,o.HotelRoomOfferApiResponseFromJSONTyped=es,o.HotelRoomOfferApiResponseToJSON=iy,o.HotelRoomOfferApiResponseToJSONTyped=ts,o.HotelRoomOfferApiStayTaxesInfoEnum=Sp,o.HotelRoomOfferApiToJSON=De,o.HotelRoomOfferApiToJSONTyped=vi,o.HotelRoomOfferApiTypeEnum=Tp,o.HotelRoomOfferImages=Hs,o.HotelRoomOfferRequestApiResponseFromJSON=An,o.HotelRoomOfferRequestApiResponseFromJSONTyped=ns,o.HotelRoomOfferRequestApiResponseToJSON=ay,o.HotelRoomOfferRequestApiResponseToJSONTyped=rs,o.HotelRoomOfferRequestCreateApiFromJSON=uy,o.HotelRoomOfferRequestCreateApiFromJSONTyped=is,o.HotelRoomOfferRequestCreateApiToJSON=os,o.HotelRoomOfferRequestCreateApiToJSONTyped=as,o.HotelRoomOfferRequests=Bs,o.HotelRoomOffers=Zs,o.HotelRoomOffersApiResponseFromJSON=fs,o.HotelRoomOffersApiResponseFromJSONTyped=ls,o.HotelRoomOffersApiResponseToJSON=fy,o.HotelRoomOffersApiResponseToJSONTyped=ms,o.HotelRoomOffersCreateApiFromJSON=py,o.HotelRoomOffersCreateApiFromJSONTyped=_s,o.HotelRoomOffersCreateApiToJSON=Os,o.HotelRoomOffersCreateApiToJSONTyped=As,o.HotelRoomOffersDataApiResponseFromJSON=ss,o.HotelRoomOffersDataApiResponseFromJSONTyped=us,o.HotelRoomOffersDataApiResponseToJSON=cs,o.HotelRoomOffersDataApiResponseToJSONTyped=ds,o.HotelRoomOffersDataCreateApiFromJSON=ps,o.HotelRoomOffersDataCreateApiFromJSONTyped=hs,o.HotelRoomOffersDataCreateApiToJSON=ys,o.HotelRoomOffersDataCreateApiToJSONTyped=gs,o.HotelRoomingListApiFromJSON=on,o.HotelRoomingListApiFromJSONTyped=Ro,o.HotelRoomingListApiHotelRoomFromJSON=Oo,o.HotelRoomingListApiHotelRoomFromJSONTyped=Ao,o.HotelRoomingListApiHotelRoomToJSON=So,o.HotelRoomingListApiHotelRoomToJSONTyped=To,o.HotelRoomingListApiToJSON=No,o.HotelRoomingListApiToJSONTyped=Co,o.HotelRoomingListGuestApiFromJSON=pt,o.HotelRoomingListGuestApiFromJSONTyped=wo,o.HotelRoomingListGuestApiToJSON=ko,o.HotelRoomingListGuestApiToJSONTyped=vo,o.HotelRoomingListGuests=$s,o.HotelRoomingListGuestsCreateApiFromJSON=yy,o.HotelRoomingListGuestsCreateApiFromJSONTyped=Ss,o.HotelRoomingListGuestsCreateApiToJSON=Ts,o.HotelRoomingListGuestsCreateApiToJSONTyped=ws,o.HotelRoomingListGuestsUpdateApiFromJSON=_y,o.HotelRoomingListGuestsUpdateApiFromJSONTyped=ks,o.HotelRoomingListGuestsUpdateApiToJSON=vs,o.HotelRoomingListGuestsUpdateApiToJSONTyped=Rs,o.HotelRoomingLists=Ls,o.Hotels=Us,o.InsuranceApiFromJSON=ao,o.InsuranceApiFromJSONTyped=so,o.InsuranceApiStatusEnum=Qp,o.InsuranceApiToJSON=uo,o.InsuranceApiToJSONTyped=co,o.InvoiceApiFromJSON=fo,o.InvoiceApiFromJSONTyped=lo,o.InvoiceApiToJSON=mo,o.InvoiceApiToJSONTyped=po,o.InvoiceApiTypeEnum=jp,o.JSONApiResponse=G,o.Locale=ut,o.LocaleFromJSON=ct,o.LocaleFromJSONTyped=Ri,o.LocaleToJSON=vp,o.LocaleToJSONTyped=Rp,o.MetaPollingResponseApiFromJSON=_n,o.MetaPollingResponseApiFromJSONTyped=Va,o.MetaPollingResponseApiToJSON=On,o.MetaPollingResponseApiToJSONTyped=Wa,o.MetaResponseApiFromJSON=fa,o.MetaResponseApiFromJSONTyped=la,o.MetaResponseApiToJSON=ma,o.MetaResponseApiToJSONTyped=pa,o.OrderAddonFromJSON=nn,o.OrderAddonFromJSONTyped=ho,o.OrderAddonSelectionFromJSON=Do,o.OrderAddonSelectionFromJSONTyped=Io,o.OrderAddonSelectionToJSON=Jo,o.OrderAddonSelectionToJSONTyped=Eo,o.OrderAddonSelectionTypeEnum=dh,o.OrderAddonToJSON=rn,o.OrderAddonToJSONTyped=yo,o.OrderAddonTypeEnum=th,o.PaymentMethodApiFromJSON=io,o.PaymentMethodApiFromJSONTyped=oo,o.PaymentMethodApiToJSON=tn,o.PaymentMethodApiToJSONTyped=Xp,o.PaymentMethodCouponApiFromJSON=Fp,o.PaymentMethodCouponApiFromJSONTyped=Qt,o.PaymentMethodCouponApiNameEnum=Jp,o.PaymentMethodCouponApiPayloadFromJSON=Ji,o.PaymentMethodCouponApiPayloadFromJSONTyped=Ei,o.PaymentMethodCouponApiPayloadToJSON=Fi,o.PaymentMethodCouponApiPayloadToJSONTyped=zi,o.PaymentMethodCouponApiToJSON=$i,o.PaymentMethodCouponApiToJSONTyped=Li,o.PaymentMethodCreditCardApiFromJSON=Hp,o.PaymentMethodCreditCardApiFromJSONTyped=xt,o.PaymentMethodCreditCardApiNameEnum=$p,o.PaymentMethodCreditCardApiPayloadFromJSON=Hi,o.PaymentMethodCreditCardApiPayloadFromJSONTyped=Bi,o.PaymentMethodCreditCardApiPayloadToJSON=Zi,o.PaymentMethodCreditCardApiPayloadToJSONTyped=Ui,o.PaymentMethodCreditCardApiToJSON=Gi,o.PaymentMethodCreditCardApiToJSONTyped=qi,o.PaymentMethodDepositAccountApiFromJSON=Gp,o.PaymentMethodDepositAccountApiFromJSONTyped=jt,o.PaymentMethodDepositAccountApiNameEnum=Zp,o.PaymentMethodDepositAccountApiPayloadFromJSON=Yi,o.PaymentMethodDepositAccountApiPayloadFromJSONTyped=Ki,o.PaymentMethodDepositAccountApiPayloadToJSON=Vi,o.PaymentMethodDepositAccountApiPayloadToJSONTyped=Wi,o.PaymentMethodDepositAccountApiToJSON=Xi,o.PaymentMethodDepositAccountApiToJSONTyped=Qi,o.PaymentMethodPayLaterApiFromJSON=Wp,o.PaymentMethodPayLaterApiFromJSONTyped=en,o.PaymentMethodPayLaterApiNameEnum=Kp,o.PaymentMethodPayLaterApiPayloadFromJSON=xi,o.PaymentMethodPayLaterApiPayloadFromJSONTyped=ji,o.PaymentMethodPayLaterApiPayloadStatusEnum=qp,o.PaymentMethodPayLaterApiPayloadToJSON=eo,o.PaymentMethodPayLaterApiPayloadToJSONTyped=to,o.PaymentMethodPayLaterApiToJSON=no,o.PaymentMethodPayLaterApiToJSONTyped=ro,o.PaymentMethodRequestApiFromJSON=cn,o.PaymentMethodRequestApiFromJSONTyped=na,o.PaymentMethodRequestApiToJSON=ht,o.PaymentMethodRequestApiToJSONTyped=vh,o.PaymentMethodRequestCouponApiFromJSON=_h,o.PaymentMethodRequestCouponApiFromJSONTyped=an,o.PaymentMethodRequestCouponApiNameEnum=yh,o.PaymentMethodRequestCouponApiToJSON=Xo,o.PaymentMethodRequestCouponApiToJSONTyped=Qo,o.PaymentMethodRequestCouponPayloadApiFromJSON=Yo,o.PaymentMethodRequestCouponPayloadApiFromJSONTyped=Ko,o.PaymentMethodRequestCouponPayloadApiToJSON=Vo,o.PaymentMethodRequestCouponPayloadApiToJSONTyped=Wo,o.PaymentMethodRequestCreditCardApiFromJSON=Sh,o.PaymentMethodRequestCreditCardApiFromJSONTyped=sn,o.PaymentMethodRequestCreditCardApiNameEnum=Oh,o.PaymentMethodRequestCreditCardApiToJSON=xo,o.PaymentMethodRequestCreditCardApiToJSONTyped=jo,o.PaymentMethodRequestDepositAccountApiFromJSON=kh,o.PaymentMethodRequestDepositAccountApiFromJSONTyped=un,o.PaymentMethodRequestDepositAccountApiNameEnum=Th,o.PaymentMethodRequestDepositAccountApiToJSON=ea,o.PaymentMethodRequestDepositAccountApiToJSONTyped=ta,o.PaymentMethodUpdatePayloadApiFromJSON=Ay,o.PaymentMethodUpdatePayloadApiFromJSONTyped=Ns,o.PaymentMethodUpdatePayloadApiToJSON=Cs,o.PaymentMethodUpdatePayloadApiToJSONTyped=Ps,o.PollerStatus=yt,o.PollerStatusFromJSON=Ya,o.PollerStatusFromJSONTyped=Ka,o.PollerStatusToJSON=xh,o.PollerStatusToJSONTyped=jh,o.RequestPayloadFromJSON=wy,o.RequestPayloadFromJSONTyped=bs,o.RequestPayloadRequestTypeEnum=Sy,o.RequestPayloadToJSON=Ms,o.RequestPayloadToJSONTyped=Ds,o.RequiredError=H,o.ResponseError=Et,o.SourceMarket=ot,o.SourceMarketFromJSON=He,o.SourceMarketFromJSONTyped=di,o.SourceMarketToJSON=ap,o.SourceMarketToJSONTyped=sp,o.TagApiFromJSON=Kt,o.TagApiFromJSONTyped=Ti,o.TagApiToJSON=Vt,o.TagApiToJSONTyped=wi,o.TaxApiFromJSON=qt,o.TaxApiFromJSONTyped=Oi,o.TaxApiTaxFrequencyEnum=mp,o.TaxApiTaxModeEnum=pp,o.TaxApiToJSON=Yt,o.TaxApiToJSONTyped=Ai,o.TextApiResponse=$t,o.TravelTimesApiFromJSON=hn,o.TravelTimesApiFromJSONTyped=Ca,o.TravelTimesApiToJSON=yn,o.TravelTimesApiToJSONTyped=Pa,o.TravelTimesApiTravelTimesFromJSON=ka,o.TravelTimesApiTravelTimesFromJSONTyped=va,o.TravelTimesApiTravelTimesToJSON=Ra,o.TravelTimesApiTravelTimesToJSONTyped=Na,o.VoidApiResponse=Zr,o.canConsumeForm=zm,o.exists=Fm,o.instanceOfAllowedPaymentMethodCouponApi=Hm,o.instanceOfAllowedPaymentMethodCreditCardApi=Um,o.instanceOfAllowedPaymentMethodDepositAccountApi=Ym,o.instanceOfAllowedPaymentMethodPayLaterApi=Qm,o.instanceOfAllowedPaymentMethodPayLaterApiPayload=Wm,o.instanceOfAmenitiesApi=ep,o.instanceOfBedApi=tp,o.instanceOfBookingApi=ch,o.instanceOfBookingCreateApi=Rh,o.instanceOfBookingCreateApiGuestsListInner=mh,o.instanceOfBookingCreateApiGuestsListInnerGuestsInner=lh,o.instanceOfBookingPoliciesApi=Ch,o.instanceOfBookingPoliciesCreateApi=bh,o.instanceOfBookingsApiResponse=Ih,o.instanceOfBreakfastOption=dp,o.instanceOfCancellationPolicyApi=ip,o.instanceOfContactPersonApi=Dp,o.instanceOfContactPersonOrganizationApi=bp,o.instanceOfCountryIso2Code=Np,o.instanceOfCurrencyClient=yp,o.instanceOfErrorApiResponse=Fh,o.instanceOfEventApi=rh,o.instanceOfEventMetadataApi=ph,o.instanceOfHotelApi=Uh,o.instanceOfHotelApiImages=Hh,o.instanceOfHotelImageApi=up,o.instanceOfHotelOfferApi=qh,o.instanceOfHotelOfferRequestApiResponse=Yh,o.instanceOfHotelOfferRequestCreateApi=Vh,o.instanceOfHotelOffersApiResponse=ty,o.instanceOfHotelOffersDataApiResponse=Xh,o.instanceOfHotelReviewRatingApi=Lh,o.instanceOfHotelRoomOfferApi=wp,o.instanceOfHotelRoomOfferApiHotelRoomsInner=cp,o.instanceOfHotelRoomOfferApiResponse=ry,o.instanceOfHotelRoomOfferRequestApiResponse=oy,o.instanceOfHotelRoomOfferRequestCreateApi=sy,o.instanceOfHotelRoomOffersApiResponse=dy,o.instanceOfHotelRoomOffersCreateApi=my,o.instanceOfHotelRoomOffersDataApiResponse=cy,o.instanceOfHotelRoomOffersDataCreateApi=ly,o.instanceOfHotelRoomingListApi=ah,o.instanceOfHotelRoomingListApiHotelRoom=ih,o.instanceOfHotelRoomingListGuestApi=oh,o.instanceOfHotelRoomingListGuestsCreateApi=hy,o.instanceOfHotelRoomingListGuestsUpdateApi=gy,o.instanceOfInsuranceApi=xp,o.instanceOfInvoiceApi=eh,o.instanceOfLocale=kp,o.instanceOfMetaPollingResponseApi=ey,o.instanceOfMetaResponseApi=Dh,o.instanceOfOrderAddon=nh,o.instanceOfOrderAddonSelection=fh,o.instanceOfPaymentMethodCouponApi=Ep,o.instanceOfPaymentMethodCouponApiPayload=Ip,o.instanceOfPaymentMethodCreditCardApi=Lp,o.instanceOfPaymentMethodCreditCardApiPayload=zp,o.instanceOfPaymentMethodDepositAccountApi=Up,o.instanceOfPaymentMethodDepositAccountApiPayload=Bp,o.instanceOfPaymentMethodPayLaterApi=Vp,o.instanceOfPaymentMethodPayLaterApiPayload=Yp,o.instanceOfPaymentMethodRequestCouponApi=gh,o.instanceOfPaymentMethodRequestCouponPayloadApi=hh,o.instanceOfPaymentMethodRequestCreditCardApi=Ah,o.instanceOfPaymentMethodRequestDepositAccountApi=wh,o.instanceOfPaymentMethodUpdatePayloadApi=Oy,o.instanceOfPollerStatus=Qh,o.instanceOfRequestPayload=Ty,o.instanceOfSourceMarket=op,o.instanceOfTagApi=Op,o.instanceOfTaxApi=hp,o.instanceOfTravelTimesApi=Zh,o.instanceOfTravelTimesApiTravelTimes=Bh,o.querystring=zt,o.v1ApiClient=qs});