@agentica/chat 0.13.2 → 0.13.4

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.
@@ -1,29 +0,0 @@
1
- var Ai=Object.defineProperty;var yi=(e,t,n)=>t in e?Ai(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var se=(e,t,n)=>yi(e,typeof t!="symbol"?t+"":t,n);import{a as gi,g as Ti,J as $a,i as Ea,r as W,u as $i,j as O,s as vi,e as ji,z as ii,f as Ei,T as ba,m as bi,D as Mi,K as Jr,M as oi,N as U,o as Di}from"../client-BVv4NBtY.js";import{u as _i,C as Oi,h as xi,G as Si,i as wi,H as Pi,j as Ri,L as qi,k as Ui,l as Ci,O as zi,m as Fi,n as Ni,o as Ii,S as Hi,v as Qa,A as Li,f as Wi,F as ki,T as va,R as Ji,c as Br,d as Gr,B as Bi,e as Gi}from"../AgenticaChatApplication-B11uTJIM.js";import{_ as P,a as Z}from"../_isFormatUri-YqTfGpHo.js";import{D as Zi}from"../Divider-DaLcPLlq.js";function Ki(e){return Ti("MuiLink",e)}const Qi=gi("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Yi=({theme:e,ownerState:t})=>{const n=t.color,a=$a(e,`palette.${n}.main`,!1)||$a(e,`palette.${n}`,!1)||t.color,f=$a(e,`palette.${n}.mainChannel`)||$a(e,`palette.${n}Channel`);return"vars"in e&&f?`rgba(${f} / 0.4)`:Ea(a,.4)},Zr={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Xi=e=>{const{classes:t,component:n,focusVisible:a,underline:f}=e,A={root:["root",`underline${ii(f)}`,n==="button"&&"button",a&&"focusVisible"]};return Ei(A,Ki,t)},Vi=vi(ba,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ii(n.underline)}`],n.component==="button"&&t.button]}})(bi(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter(Mi()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:Ea(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Ea(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:Ea(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Qi.focusVisible}`]:{outline:"auto"}}}]}))),eo=W.forwardRef(function(t,n){const a=$i({props:t,name:"MuiLink"}),f=_i(),{className:A,color:i="primary",component:p="a",onBlur:u,onFocus:r,TypographyClasses:l,underline:d="always",variant:o="inherit",sx:c,...s}=a,[m,g]=W.useState(!1),y=_=>{Jr(_.target)||g(!1),u&&u(_)},v=_=>{Jr(_.target)&&g(!0),r&&r(_)},T={...a,color:i,component:p,focusVisible:m,underline:d,variant:o},D=Xi(T);return O.jsx(Vi,{color:i,className:ji(D.root,A),classes:l,component:p,onBlur:y,onFocus:v,ref:n,ownerState:T,variant:o,...s,sx:[...Zr[i]===void 0?[{color:i}]:[],...Array.isArray(c)?c:[c]],style:{...s.style,...d==="always"&&i!=="inherit"&&!Zr[i]&&{"--Link-underlineColor":Yi({theme:f,ownerState:T})}}})});var Ya;Ya||(Ya={});var Xa;Xa||(Xa={});const to=Object.freeze(Object.defineProperty({__proto__:null,get ChatGptTypeChecker(){return Oi},ClaudeTypeChecker:xi,get GeminiTypeChecker(){return Si},HttpError:wi,get HttpLlm(){return Pi},get HttpMigration(){return Ri},get IClaudeSchema(){return Ya},get ILlamaSchema(){return Xa},LlamaTypeChecker:qi,get LlmTypeCheckerV3(){return Ui},get LlmTypeCheckerV3_1(){return Ci},get OpenApi(){return zi},get OpenApiTypeChecker(){return Fi},get OpenApiV3(){return Ni},get OpenApiV3_1(){return Ii},get SwaggerV2(){return Hi}},Symbol.toStringTag,{value:"Module"}));var li={},ci={};Object.defineProperty(ci,"__esModule",{value:!0});var Pr={};const no=oi(to);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HttpError=void 0;var t=no;Object.defineProperty(e,"HttpError",{enumerable:!0,get:function(){return t.HttpError}})})(Pr);var ui={};Object.defineProperty(ui,"__esModule",{value:!0});var di={};Object.defineProperty(di,"__esModule",{value:!0});var pi={};Object.defineProperty(pi,"__esModule",{value:!0});var fi={};Object.defineProperty(fi,"__esModule",{value:!0});var mi={};Object.defineProperty(mi,"__esModule",{value:!0});(function(e){var t=U&&U.__createBinding||(Object.create?function(a,f,A,i){i===void 0&&(i=A);var p=Object.getOwnPropertyDescriptor(f,A);(!p||("get"in p?!f.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return f[A]}}),Object.defineProperty(a,i,p)}:function(a,f,A,i){i===void 0&&(i=A),a[i]=f[A]}),n=U&&U.__exportStar||function(a,f){for(var A in a)A!=="default"&&!Object.prototype.hasOwnProperty.call(f,A)&&t(f,a,A)};Object.defineProperty(e,"__esModule",{value:!0}),n(ci,e),n(Pr,e),n(ui,e),n(di,e),n(pi,e),n(fi,e),n(mi,e)})(li);var Rr={};Object.defineProperty(Rr,"__esModule",{value:!0});var la=Rr._isFormatIpv4=void 0;const so=e=>ao.test(e);la=Rr._isFormatIpv4=so;const ao=/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/;var qr={};Object.defineProperty(qr,"__esModule",{value:!0});var ca=qr._isFormatIpv6=void 0;const ro=e=>io.test(e);ca=qr._isFormatIpv6=ro;const io=/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i;var Ur={};Object.defineProperty(Ur,"__esModule",{value:!0});var w=Ur._isFormatDateTime=void 0;const oo=e=>lo.test(e);w=Ur._isFormatDateTime=oo;const lo=/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])(T|\s)([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](?:\.[0-9]{1,9})?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$/i;var Cr={};class co extends Error{constructor(n){super(n.message||`Error on ${n.method}(): invalid type${n.path?` on ${n.path}`:""}, expect to be ${n.expected}`);se(this,"method");se(this,"path");se(this,"expected");se(this,"value");se(this,"fake_expected_typed_value_");const a=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,a):this.__proto__=a,this.method=n.method,this.path=n.path,this.expected=n.expected,this.value=n.value}}const uo=Object.freeze(Object.defineProperty({__proto__:null,TypeGuardError:co},Symbol.toStringTag,{value:"Module"})),po=oi(uo);Object.defineProperty(Cr,"__esModule",{value:!0});var E=Cr._assertGuard=void 0;const fo=po,mo=(e,t,n)=>{if(e===!0)throw n?n(t):new fo.TypeGuardError(t);return!1};E=Cr._assertGuard=mo;var zr={};Object.defineProperty(zr,"__esModule",{value:!0});var Fr=zr._miscCloneAny=void 0;const ho=e=>Y(e);Fr=zr._miscCloneAny=ho;const Y=e=>{if(e!==void 0){if(typeof e=="object"){if(e===null)return null;if(Array.isArray(e))return e.map(Y);if(e instanceof Date)return new Date(e);if(e instanceof Uint8Array)return new Uint8Array(e);if(e instanceof Uint8ClampedArray)return new Uint8ClampedArray(e);if(e instanceof Uint16Array)return new Uint16Array(e);if(e instanceof Uint32Array)return new Uint32Array(e);if(e instanceof BigUint64Array)return new BigUint64Array(e);if(e instanceof Int8Array)return new Int8Array(e);if(e instanceof Int16Array)return new Int16Array(e);if(e instanceof Int32Array)return new Int32Array(e);if(e instanceof BigInt64Array)return new BigInt64Array(e);if(e instanceof Float32Array)return new Float32Array(e);if(e instanceof Float64Array)return new Float64Array(e);if(e instanceof ArrayBuffer)return e.slice(0);if(e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView)return new DataView(e.buffer.slice(0));if(typeof File<"u"&&e instanceof File)return new File([e],e.name,{type:e.type});if(typeof Blob<"u"&&e instanceof Blob)return new Blob([e],{type:e.type});if(e instanceof Set)return new Set([...e].map(Y));if(e instanceof Map)return new Map([...e].map(([t,n])=>[Y(t),Y(n)]));if(e instanceof WeakSet||e instanceof WeakMap)throw new Error("WeakSet and WeakMap are not supported");return e.valueOf()!==e?Y(e.valueOf()):Object.fromEntries(Object.entries(e).map(([t,n])=>[t,Y(n)]).filter(([,t])=>t!==void 0))}else if(typeof e=="function")return;return e}};var Nr={};Object.defineProperty(Nr,"__esModule",{value:!0});var ua=Nr._isFormatEmail=void 0;const Ao=e=>yo.test(e);ua=Nr._isFormatEmail=Ao;const yo=/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i;var Ir={},Fa={},pe=U&&U.__assign||function(){return pe=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++){t=arguments[n];for(var f in t)Object.prototype.hasOwnProperty.call(t,f)&&(e[f]=t[f])}return e},pe.apply(this,arguments)},Ga=U&&U.__awaiter||function(e,t,n,a){function f(A){return A instanceof n?A:new n(function(i){i(A)})}return new(n||(n=Promise))(function(A,i){function p(l){try{r(a.next(l))}catch(d){i(d)}}function u(l){try{r(a.throw(l))}catch(d){i(d)}}function r(l){l.done?A(l.value):f(l.value).then(p,u)}r((a=a.apply(e,t||[])).next())})},Za=U&&U.__generator||function(e,t){var n={label:0,sent:function(){if(A[0]&1)throw A[1];return A[1]},trys:[],ops:[]},a,f,A,i=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return i.next=p(0),i.throw=p(1),i.return=p(2),typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function p(r){return function(l){return u([r,l])}}function u(r){if(a)throw new TypeError("Generator is already executing.");for(;i&&(i=0,r[0]&&(n=0)),n;)try{if(a=1,f&&(A=r[0]&2?f.return:r[0]?f.throw||((A=f.return)&&A.call(f),0):f.next)&&!(A=A.call(f,r[1])).done)return A;switch(f=0,A&&(r=[r[0]&2,A.value]),r[0]){case 0:case 1:A=r;break;case 4:return n.label++,{value:r[1],done:!1};case 5:n.label++,f=r[1],r=[0];continue;case 7:r=n.ops.pop(),n.trys.pop();continue;default:if(A=n.trys,!(A=A.length>0&&A[A.length-1])&&(r[0]===6||r[0]===2)){n=0;continue}if(r[0]===3&&(!A||r[1]>A[0]&&r[1]<A[3])){n.label=r[1];break}if(r[0]===6&&n.label<A[1]){n.label=A[1],A=r;break}if(A&&n.label<A[2]){n.label=A[2],n.ops.push(r);break}A[2]&&n.ops.pop(),n.trys.pop();continue}r=t.call(e,n)}catch(l){r=[6,l],f=0}finally{a=A=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},Ma=U&&U.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Na=U&&U.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var a=n.call(e),f,A=[],i;try{for(;(t===void 0||t-- >0)&&!(f=a.next()).done;)A.push(f.value)}catch(p){i={error:p}}finally{try{f&&!f.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return A},go=U&&U.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var a=0,f=t.length,A;a<f;a++)(A||!(a in t))&&(A||(A=Array.prototype.slice.call(t,0,a)),A[a]=t[a]);return e.concat(A||Array.prototype.slice.call(t))};Object.defineProperty(Fa,"__esModule",{value:!0});Fa.FetcherBase=void 0;var To=Pr,Kr;(function(e){var t=this;e.request=function(a){return function(f,A,i,p){return Ga(t,void 0,void 0,function(){var u;return Za(this,function(r){switch(r.label){case 0:return[4,n("fetch")(a)(f,A,i,p)];case 1:if(u=r.sent(),u.success===!1)throw new To.HttpError(A.method,A.path,u.status,u.headers,u.data);return[2,u.data]}})})}},e.propagate=function(a){return function(f,A,i,p){return Ga(t,void 0,void 0,function(){return Za(this,function(u){return[2,n("propagate")(a)(f,A,i,p)]})})}};var n=function(a){return function(f){return function(A,i,p,u){return Ga(t,void 0,void 0,function(){var r,l,d,o,c,s,m,g,y,v,T,D,_,h,b,M,I,G,S,R,Ia,Ha,La,Wa,ka;return Za(this,function(H){switch(H.label){case 0:if(r=pe({},(I=A.headers)!==null&&I!==void 0?I:{}),p!==void 0){if(((G=i.request)===null||G===void 0?void 0:G.type)===void 0)throw new Error("Error on ".concat(f.className,".fetch(): no content-type being configured."));i.request.type!=="multipart/form-data"&&(r["Content-Type"]=i.request.type)}else p===void 0&&r["Content-Type"]!==void 0&&delete r["Content-Type"];l=pe(pe({},(S=A.options)!==null&&S!==void 0?S:{}),{method:i.method,headers:function(){var ha,Hr,Aa,Lr,Ja=[];try{for(var ya=Ma(Object.entries(r)),ue=ya.next();!ue.done;ue=ya.next()){var Wr=Na(ue.value,2),kr=Wr[0],ga=Wr[1];if(ga!==void 0)if(Array.isArray(ga))try{for(var Ta=(Aa=void 0,Ma(ga)),de=Ta.next();!de.done;de=Ta.next()){var hi=de.value;Ja.push([kr,String(hi)])}}catch(Ba){Aa={error:Ba}}finally{try{de&&!de.done&&(Lr=Ta.return)&&Lr.call(Ta)}finally{if(Aa)throw Aa.error}}else Ja.push([kr,String(ga)])}}catch(Ba){ha={error:Ba}}finally{try{ue&&!ue.done&&(Hr=ya.return)&&Hr.call(ya)}finally{if(ha)throw ha.error}}return Ja}()}),p!==void 0&&(l.body=f.encode(((R=i.request)===null||R===void 0?void 0:R.type)==="application/x-www-form-urlencoded"?$o(p):((Ia=i.request)===null||Ia===void 0?void 0:Ia.type)==="multipart/form-data"?vo(p):((Ha=i.request)===null||Ha===void 0?void 0:Ha.type)!=="text/plain"?(u??JSON.stringify)(p):p,r)),d=A.host[A.host.length-1]!=="/"&&i.path[0]!=="/"?"/".concat(i.path):i.path,o=new URL("".concat(A.host).concat(d)),c={route:i,path:d,status:null,input:p,output:void 0,started_at:new Date,respond_at:null,completed_at:null},H.label=1;case 1:return H.trys.push([1,12,13,18]),[4,((La=A.fetch)!==null&&La!==void 0?La:fetch)(o.href,l)];case 2:return s=H.sent(),c.respond_at=new Date,c.status=s.status,m={success:s.status===200||s.status===201||s.status===i.status,status:s.status,headers:jo(s.headers),data:void 0},m.success!==!1?[3,4]:(g=m,[4,s.text()]);case 3:if(g.data=H.sent(),y=s.headers.get("content-type"),a!=="fetch"&&y&&y.indexOf("application/json")!==-1)try{m.data=JSON.parse(m.data)}catch{}return[3,11];case 4:return i.method!=="HEAD"?[3,5]:(m.data=void 0,[3,11]);case 5:return((Wa=i.response)===null||Wa===void 0?void 0:Wa.type)!=="application/json"?[3,7]:[4,s.text()];case 6:return v=H.sent(),m.data=v.length?JSON.parse(v):void 0,[3,11];case 7:return((ka=i.response)===null||ka===void 0?void 0:ka.type)!=="application/x-www-form-urlencoded"?[3,9]:(D=URLSearchParams.bind,[4,s.text()]);case 8:return T=new(D.apply(URLSearchParams,[void 0,H.sent()])),m.data=i.parseQuery?i.parseQuery(T):T,[3,11];case 9:return _=m,b=(h=f).decode,[4,s.text()];case 10:_.data=b.apply(h,[H.sent(),m.headers]),H.label=11;case 11:return c.output=m.data,[2,m];case 12:throw M=H.sent(),M;case 13:if(c.completed_at=new Date,!A.logger)return[3,17];H.label=14;case 14:return H.trys.push([14,16,,17]),[4,A.logger(c)];case 15:return H.sent(),[3,17];case 16:return H.sent(),[3,17];case 17:return[7];case 18:return[2]}})})}}}})(Kr||(Fa.FetcherBase=Kr={}));var $o=function(e){var t,n,a=new URLSearchParams,f=function(l,d){if(d===void 0)return"continue";Array.isArray(d)?d.forEach(function(o){return a.append(l,String(o))}):a.set(l,String(d))};try{for(var A=Ma(Object.entries(e)),i=A.next();!i.done;i=A.next()){var p=Na(i.value,2),u=p[0],r=p[1];f(u,r)}}catch(l){t={error:l}}finally{try{i&&!i.done&&(n=A.return)&&n.call(A)}finally{if(t)throw t.error}}return a},vo=function(e){var t,n,a=new FormData,f=function(l){return function(d){d!==void 0&&(typeof File=="function"&&d instanceof File?a.append(l,d,d.name):a.append(l,d))}};try{for(var A=Ma(Object.entries(e)),i=A.next();!i.done;i=A.next()){var p=Na(i.value,2),u=p[0],r=p[1];Array.isArray(r)?r.map(f(u)):f(u)(r)}}catch(l){t={error:l}}finally{try{i&&!i.done&&(n=A.return)&&n.call(A)}finally{if(t)throw t.error}}return a},jo=function(e){var t={};return e.forEach(function(n,a){var f,A;a==="set-cookie"?((A=t[a])!==null&&A!==void 0||(t[a]=[]),(f=t[a]).push.apply(f,go([],Na(n.split(";").map(function(i){return i.trim()})),!1))):t[a]=n}),t},Qr=U&&U.__awaiter||function(e,t,n,a){function f(A){return A instanceof n?A:new n(function(i){i(A)})}return new(n||(n=Promise))(function(A,i){function p(l){try{r(a.next(l))}catch(d){i(d)}}function u(l){try{r(a.throw(l))}catch(d){i(d)}}function r(l){l.done?A(l.value):f(l.value).then(p,u)}r((a=a.apply(e,t||[])).next())})},Yr=U&&U.__generator||function(e,t){var n={label:0,sent:function(){if(A[0]&1)throw A[1];return A[1]},trys:[],ops:[]},a,f,A,i=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return i.next=p(0),i.throw=p(1),i.return=p(2),typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function p(r){return function(l){return u([r,l])}}function u(r){if(a)throw new TypeError("Generator is already executing.");for(;i&&(i=0,r[0]&&(n=0)),n;)try{if(a=1,f&&(A=r[0]&2?f.return:r[0]?f.throw||((A=f.return)&&A.call(f),0):f.next)&&!(A=A.call(f,r[1])).done)return A;switch(f=0,A&&(r=[r[0]&2,A.value]),r[0]){case 0:case 1:A=r;break;case 4:return n.label++,{value:r[1],done:!1};case 5:n.label++,f=r[1],r=[0];continue;case 7:r=n.ops.pop(),n.trys.pop();continue;default:if(A=n.trys,!(A=A.length>0&&A[A.length-1])&&(r[0]===6||r[0]===2)){n=0;continue}if(r[0]===3&&(!A||r[1]>A[0]&&r[1]<A[3])){n.label=r[1];break}if(r[0]===6&&n.label<A[1]){n.label=A[1],A=r;break}if(A&&n.label<A[2]){n.label=A[2],n.ops.push(r);break}A[2]&&n.ops.pop(),n.trys.pop();continue}r=t.call(e,n)}catch(l){r=[6,l],f=0}finally{a=A=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}};Object.defineProperty(Ir,"__esModule",{value:!0});var $=Ir.PlainFetcher=void 0,Xr=Fa,Vr;(function(e){function t(a,f,A,i){return Qr(this,void 0,void 0,function(){var p,u;return Yr(this,function(r){if(((p=f.request)===null||p===void 0?void 0:p.encrypted)===!0||((u=f.response)===null||u===void 0?void 0:u.encrypted)===!0)throw new Error("Error on PlainFetcher.fetch(): PlainFetcher doesn't have encryption ability. Use EncryptedFetcher instead.");return[2,Xr.FetcherBase.request({className:"PlainFetcher",encode:function(l){return l},decode:function(l){return l}})(a,f,A,i)]})})}e.fetch=t;function n(a,f,A,i){return Qr(this,void 0,void 0,function(){var p,u;return Yr(this,function(r){if(((p=f.request)===null||p===void 0?void 0:p.encrypted)===!0||((u=f.response)===null||u===void 0?void 0:u.encrypted)===!0)throw new Error("Error on PlainFetcher.propagate(): PlainFetcher doesn't have encryption ability. Use EncryptedFetcher instead.");return[2,Xr.FetcherBase.propagate({className:"PlainFetcher",encode:function(l){return l},decode:function(l){return l}})(a,f,A,i)]})})}e.propagate=n})(Vr||($=Ir.PlainFetcher=Vr={}));var Va;(function(e){e.invert=t=>{var A;const n=t.citizen,a=t.member,f=(A=t.member)==null?void 0:A.administrator;return!n||!a||!f?null:{id:f.id,type:"administrator",citizen:n,customer:(()=>{const i=h=>typeof h.id=="string"&&P(h.id)&&typeof h.channel=="object"&&h.channel!==null&&p(h.channel)&&(h.external_user===null||typeof h.external_user=="object"&&h.external_user!==null&&u(h.external_user))&&typeof h.href=="string"&&Z(h.href)&&(h.referrer===null||typeof h.referrer=="string"&&(Z(h.referrer)||h.referrer.length<=0))&&typeof h.ip=="string"&&(la(h.ip)||ca(h.ip))&&typeof h.created_at=="string"&&w(h.created_at),p=h=>typeof h.id=="string"&&P(h.id)&&typeof h.created_at=="string"&&w(h.created_at)&&typeof h.code=="string"&&typeof h.name=="string",u=h=>typeof h.id=="string"&&P(h.id)&&(h.citizen===null||typeof h.citizen=="object"&&h.citizen!==null&&r(h.citizen))&&typeof h.created_at=="string"&&w(h.created_at)&&typeof h.application=="string"&&typeof h.uid=="string"&&typeof h.nickname=="string"&&!0,r=h=>typeof h.id=="string"&&P(h.id)&&typeof h.created_at=="string"&&w(h.created_at)&&typeof h.mobile=="string"&&RegExp("^[0-9]*$").test(h.mobile)&&typeof h.name=="string",l=(h,b,M=!0)=>(typeof h.id=="string"&&(P(h.id)||E(M,{method:"typia.misc.assertClone",path:b+".id",expected:'string & Format<"uuid">',value:h.id},T))||E(M,{method:"typia.misc.assertClone",path:b+".id",expected:'(string & Format<"uuid">)',value:h.id},T))&&((typeof h.channel=="object"&&h.channel!==null||E(M,{method:"typia.misc.assertClone",path:b+".channel",expected:"IShoppingChannel",value:h.channel},T))&&d(h.channel,b+".channel",M)||E(M,{method:"typia.misc.assertClone",path:b+".channel",expected:"IShoppingChannel",value:h.channel},T))&&(h.external_user===null||(typeof h.external_user=="object"&&h.external_user!==null||E(M,{method:"typia.misc.assertClone",path:b+".external_user",expected:"(IShoppingExternalUser | null)",value:h.external_user},T))&&o(h.external_user,b+".external_user",M)||E(M,{method:"typia.misc.assertClone",path:b+".external_user",expected:"(IShoppingExternalUser | null)",value:h.external_user},T))&&(typeof h.href=="string"&&(Z(h.href)||E(M,{method:"typia.misc.assertClone",path:b+".href",expected:'string & Format<"uri">',value:h.href},T))||E(M,{method:"typia.misc.assertClone",path:b+".href",expected:'(string & Format<"uri">)',value:h.href},T))&&(h.referrer===null||typeof h.referrer=="string"&&(Z(h.referrer)||h.referrer.length<=0||E(M,{method:"typia.misc.assertClone",path:b+".referrer",expected:'(string & (Format<"uri"> | MaxLength<0>))',value:h.referrer},T))||E(M,{method:"typia.misc.assertClone",path:b+".referrer",expected:'((string & (Format<"uri"> | MaxLength<0>)) | null)',value:h.referrer},T))&&(typeof h.ip=="string"&&(la(h.ip)||ca(h.ip)||E(M,{method:"typia.misc.assertClone",path:b+".ip",expected:'(string & (Format<"ipv4"> | Format<"ipv6">))',value:h.ip},T))||E(M,{method:"typia.misc.assertClone",path:b+".ip",expected:'(string & (Format<"ipv4"> | Format<"ipv6">))',value:h.ip},T))&&(typeof h.created_at=="string"&&(w(h.created_at)||E(M,{method:"typia.misc.assertClone",path:b+".created_at",expected:'string & Format<"date-time">',value:h.created_at},T))||E(M,{method:"typia.misc.assertClone",path:b+".created_at",expected:'(string & Format<"date-time">)',value:h.created_at},T)),d=(h,b,M=!0)=>(typeof h.id=="string"&&(P(h.id)||E(M,{method:"typia.misc.assertClone",path:b+".id",expected:'string & Format<"uuid">',value:h.id},T))||E(M,{method:"typia.misc.assertClone",path:b+".id",expected:'(string & Format<"uuid">)',value:h.id},T))&&(typeof h.created_at=="string"&&(w(h.created_at)||E(M,{method:"typia.misc.assertClone",path:b+".created_at",expected:'string & Format<"date-time">',value:h.created_at},T))||E(M,{method:"typia.misc.assertClone",path:b+".created_at",expected:'(string & Format<"date-time">)',value:h.created_at},T))&&(typeof h.code=="string"||E(M,{method:"typia.misc.assertClone",path:b+".code",expected:"string",value:h.code},T))&&(typeof h.name=="string"||E(M,{method:"typia.misc.assertClone",path:b+".name",expected:"string",value:h.name},T)),o=(h,b,M=!0)=>(typeof h.id=="string"&&(P(h.id)||E(M,{method:"typia.misc.assertClone",path:b+".id",expected:'string & Format<"uuid">',value:h.id},T))||E(M,{method:"typia.misc.assertClone",path:b+".id",expected:'(string & Format<"uuid">)',value:h.id},T))&&(h.citizen===null||(typeof h.citizen=="object"&&h.citizen!==null||E(M,{method:"typia.misc.assertClone",path:b+".citizen",expected:"(IShoppingCitizen | null)",value:h.citizen},T))&&c(h.citizen,b+".citizen",M)||E(M,{method:"typia.misc.assertClone",path:b+".citizen",expected:"(IShoppingCitizen | null)",value:h.citizen},T))&&(typeof h.created_at=="string"&&(w(h.created_at)||E(M,{method:"typia.misc.assertClone",path:b+".created_at",expected:'string & Format<"date-time">',value:h.created_at},T))||E(M,{method:"typia.misc.assertClone",path:b+".created_at",expected:'(string & Format<"date-time">)',value:h.created_at},T))&&(typeof h.application=="string"||E(M,{method:"typia.misc.assertClone",path:b+".application",expected:"string",value:h.application},T))&&(typeof h.uid=="string"||E(M,{method:"typia.misc.assertClone",path:b+".uid",expected:"string",value:h.uid},T))&&(typeof h.nickname=="string"||E(M,{method:"typia.misc.assertClone",path:b+".nickname",expected:"string",value:h.nickname},T))&&!0,c=(h,b,M=!0)=>(typeof h.id=="string"&&(P(h.id)||E(M,{method:"typia.misc.assertClone",path:b+".id",expected:'string & Format<"uuid">',value:h.id},T))||E(M,{method:"typia.misc.assertClone",path:b+".id",expected:'(string & Format<"uuid">)',value:h.id},T))&&(typeof h.created_at=="string"&&(w(h.created_at)||E(M,{method:"typia.misc.assertClone",path:b+".created_at",expected:'string & Format<"date-time">',value:h.created_at},T))||E(M,{method:"typia.misc.assertClone",path:b+".created_at",expected:'(string & Format<"date-time">)',value:h.created_at},T))&&(typeof h.mobile=="string"&&(RegExp("^[0-9]*$").test(h.mobile)||E(M,{method:"typia.misc.assertClone",path:b+".mobile",expected:'string & Pattern<"^[0-9]*$">',value:h.mobile},T))||E(M,{method:"typia.misc.assertClone",path:b+".mobile",expected:'(string & Pattern<"^[0-9]*$"> & JsonSchemaPlugin<__type>)',value:h.mobile},T))&&(typeof h.name=="string"||E(M,{method:"typia.misc.assertClone",path:b+".name",expected:"(string & JsonSchemaPlugin<__type>)",value:h.name},T)),s=h=>({id:h.id,channel:m(h.channel),external_user:h.external_user?g(h.external_user):h.external_user,href:h.href,referrer:h.referrer,ip:h.ip,created_at:h.created_at}),m=h=>({id:h.id,created_at:h.created_at,code:h.code,name:h.name}),g=h=>({id:h.id,citizen:h.citizen?y(h.citizen):h.citizen,created_at:h.created_at,application:h.application,uid:h.uid,nickname:h.nickname,data:Fr(h.data)}),y=h=>({id:h.id,created_at:h.created_at,mobile:h.mobile,name:h.name}),v=h=>typeof h=="object"&&h!==null&&i(h);let T;const D=(h,b)=>(v(h)===!1&&(T=b,((M,I,G=!0)=>(typeof M=="object"&&M!==null||E(!0,{method:"typia.misc.assertClone",path:I+"",expected:"IShoppingCustomer.IInvert",value:M},T))&&l(M,I+"",!0)||E(!0,{method:"typia.misc.assertClone",path:I+"",expected:"IShoppingCustomer.IInvert",value:M},T))(h,"$input",!0)),h),_=h=>s(h);return(h,b)=>_(D(h,b))})()(t),member:(()=>{const i=y=>y.map(v=>o(v)),p=y=>typeof y.id=="string"&&P(y.id)&&typeof y.nickname=="string"&&Array.isArray(y.emails)&&y.emails.every(v=>typeof v=="object"&&v!==null&&u(v))&&typeof y.created_at=="string"&&w(y.created_at),u=y=>typeof y.id=="string"&&P(y.id)&&typeof y.value=="string"&&ua(y.value)&&typeof y.created_at=="string"&&w(y.created_at),r=(y,v,T=!0)=>(typeof y.id=="string"&&(P(y.id)||E(T,{method:"typia.misc.assertClone",path:v+".id",expected:'string & Format<"uuid">',value:y.id},s))||E(T,{method:"typia.misc.assertClone",path:v+".id",expected:'(string & Format<"uuid">)',value:y.id},s))&&(typeof y.nickname=="string"||E(T,{method:"typia.misc.assertClone",path:v+".nickname",expected:"string",value:y.nickname},s))&&((Array.isArray(y.emails)||E(T,{method:"typia.misc.assertClone",path:v+".emails",expected:"Array<IShoppingMemberEmail>",value:y.emails},s))&&y.emails.every((D,_)=>(typeof D=="object"&&D!==null||E(T,{method:"typia.misc.assertClone",path:v+".emails["+_+"]",expected:"IShoppingMemberEmail",value:D},s))&&l(D,v+".emails["+_+"]",T)||E(T,{method:"typia.misc.assertClone",path:v+".emails["+_+"]",expected:"IShoppingMemberEmail",value:D},s))||E(T,{method:"typia.misc.assertClone",path:v+".emails",expected:"Array<IShoppingMemberEmail>",value:y.emails},s))&&(typeof y.created_at=="string"&&(w(y.created_at)||E(T,{method:"typia.misc.assertClone",path:v+".created_at",expected:'string & Format<"date-time">',value:y.created_at},s))||E(T,{method:"typia.misc.assertClone",path:v+".created_at",expected:'(string & Format<"date-time">)',value:y.created_at},s)),l=(y,v,T=!0)=>(typeof y.id=="string"&&(P(y.id)||E(T,{method:"typia.misc.assertClone",path:v+".id",expected:'string & Format<"uuid">',value:y.id},s))||E(T,{method:"typia.misc.assertClone",path:v+".id",expected:'(string & Format<"uuid">)',value:y.id},s))&&(typeof y.value=="string"&&(ua(y.value)||E(T,{method:"typia.misc.assertClone",path:v+".value",expected:'string & Format<"email">',value:y.value},s))||E(T,{method:"typia.misc.assertClone",path:v+".value",expected:'(string & Format<"email">)',value:y.value},s))&&(typeof y.created_at=="string"&&(w(y.created_at)||E(T,{method:"typia.misc.assertClone",path:v+".created_at",expected:'string & Format<"date-time">',value:y.created_at},s))||E(T,{method:"typia.misc.assertClone",path:v+".created_at",expected:'(string & Format<"date-time">)',value:y.created_at},s)),d=y=>({id:y.id,nickname:y.nickname,emails:i(y.emails),created_at:y.created_at}),o=y=>({id:y.id,value:y.value,created_at:y.created_at}),c=y=>typeof y=="object"&&y!==null&&p(y);let s;const m=(y,v)=>(c(y)===!1&&(s=v,((T,D,_=!0)=>(typeof T=="object"&&T!==null||E(!0,{method:"typia.misc.assertClone",path:D+"",expected:"IShoppingMember.IInvert",value:T},s))&&r(T,D+"",!0)||E(!0,{method:"typia.misc.assertClone",path:D+"",expected:"IShoppingMember.IInvert",value:T},s))(y,"$input",!0)),y),g=y=>d(y);return(y,v)=>g(m(y,v))})()(a),created_at:f.created_at}}})(Va||(Va={}));var er;(function(e){e.invert=t=>{var A;const n=t.citizen,a=t.member,f=(A=t.member)==null?void 0:A.seller;return!n||!a||!f?null:{id:f.id,type:"seller",citizen:n,customer:(()=>{const i=h=>typeof h.id=="string"&&P(h.id)&&typeof h.channel=="object"&&h.channel!==null&&p(h.channel)&&(h.external_user===null||typeof h.external_user=="object"&&h.external_user!==null&&u(h.external_user))&&typeof h.href=="string"&&Z(h.href)&&(h.referrer===null||typeof h.referrer=="string"&&(Z(h.referrer)||h.referrer.length<=0))&&typeof h.ip=="string"&&(la(h.ip)||ca(h.ip))&&typeof h.created_at=="string"&&w(h.created_at),p=h=>typeof h.id=="string"&&P(h.id)&&typeof h.created_at=="string"&&w(h.created_at)&&typeof h.code=="string"&&typeof h.name=="string",u=h=>typeof h.id=="string"&&P(h.id)&&(h.citizen===null||typeof h.citizen=="object"&&h.citizen!==null&&r(h.citizen))&&typeof h.created_at=="string"&&w(h.created_at)&&typeof h.application=="string"&&typeof h.uid=="string"&&typeof h.nickname=="string"&&!0,r=h=>typeof h.id=="string"&&P(h.id)&&typeof h.created_at=="string"&&w(h.created_at)&&typeof h.mobile=="string"&&RegExp("^[0-9]*$").test(h.mobile)&&typeof h.name=="string",l=(h,b,M=!0)=>(typeof h.id=="string"&&(P(h.id)||E(M,{method:"typia.misc.assertClone",path:b+".id",expected:'string & Format<"uuid">',value:h.id},T))||E(M,{method:"typia.misc.assertClone",path:b+".id",expected:'(string & Format<"uuid">)',value:h.id},T))&&((typeof h.channel=="object"&&h.channel!==null||E(M,{method:"typia.misc.assertClone",path:b+".channel",expected:"IShoppingChannel",value:h.channel},T))&&d(h.channel,b+".channel",M)||E(M,{method:"typia.misc.assertClone",path:b+".channel",expected:"IShoppingChannel",value:h.channel},T))&&(h.external_user===null||(typeof h.external_user=="object"&&h.external_user!==null||E(M,{method:"typia.misc.assertClone",path:b+".external_user",expected:"(IShoppingExternalUser | null)",value:h.external_user},T))&&o(h.external_user,b+".external_user",M)||E(M,{method:"typia.misc.assertClone",path:b+".external_user",expected:"(IShoppingExternalUser | null)",value:h.external_user},T))&&(typeof h.href=="string"&&(Z(h.href)||E(M,{method:"typia.misc.assertClone",path:b+".href",expected:'string & Format<"uri">',value:h.href},T))||E(M,{method:"typia.misc.assertClone",path:b+".href",expected:'(string & Format<"uri">)',value:h.href},T))&&(h.referrer===null||typeof h.referrer=="string"&&(Z(h.referrer)||h.referrer.length<=0||E(M,{method:"typia.misc.assertClone",path:b+".referrer",expected:'(string & (Format<"uri"> | MaxLength<0>))',value:h.referrer},T))||E(M,{method:"typia.misc.assertClone",path:b+".referrer",expected:'((string & (Format<"uri"> | MaxLength<0>)) | null)',value:h.referrer},T))&&(typeof h.ip=="string"&&(la(h.ip)||ca(h.ip)||E(M,{method:"typia.misc.assertClone",path:b+".ip",expected:'(string & (Format<"ipv4"> | Format<"ipv6">))',value:h.ip},T))||E(M,{method:"typia.misc.assertClone",path:b+".ip",expected:'(string & (Format<"ipv4"> | Format<"ipv6">))',value:h.ip},T))&&(typeof h.created_at=="string"&&(w(h.created_at)||E(M,{method:"typia.misc.assertClone",path:b+".created_at",expected:'string & Format<"date-time">',value:h.created_at},T))||E(M,{method:"typia.misc.assertClone",path:b+".created_at",expected:'(string & Format<"date-time">)',value:h.created_at},T)),d=(h,b,M=!0)=>(typeof h.id=="string"&&(P(h.id)||E(M,{method:"typia.misc.assertClone",path:b+".id",expected:'string & Format<"uuid">',value:h.id},T))||E(M,{method:"typia.misc.assertClone",path:b+".id",expected:'(string & Format<"uuid">)',value:h.id},T))&&(typeof h.created_at=="string"&&(w(h.created_at)||E(M,{method:"typia.misc.assertClone",path:b+".created_at",expected:'string & Format<"date-time">',value:h.created_at},T))||E(M,{method:"typia.misc.assertClone",path:b+".created_at",expected:'(string & Format<"date-time">)',value:h.created_at},T))&&(typeof h.code=="string"||E(M,{method:"typia.misc.assertClone",path:b+".code",expected:"string",value:h.code},T))&&(typeof h.name=="string"||E(M,{method:"typia.misc.assertClone",path:b+".name",expected:"string",value:h.name},T)),o=(h,b,M=!0)=>(typeof h.id=="string"&&(P(h.id)||E(M,{method:"typia.misc.assertClone",path:b+".id",expected:'string & Format<"uuid">',value:h.id},T))||E(M,{method:"typia.misc.assertClone",path:b+".id",expected:'(string & Format<"uuid">)',value:h.id},T))&&(h.citizen===null||(typeof h.citizen=="object"&&h.citizen!==null||E(M,{method:"typia.misc.assertClone",path:b+".citizen",expected:"(IShoppingCitizen | null)",value:h.citizen},T))&&c(h.citizen,b+".citizen",M)||E(M,{method:"typia.misc.assertClone",path:b+".citizen",expected:"(IShoppingCitizen | null)",value:h.citizen},T))&&(typeof h.created_at=="string"&&(w(h.created_at)||E(M,{method:"typia.misc.assertClone",path:b+".created_at",expected:'string & Format<"date-time">',value:h.created_at},T))||E(M,{method:"typia.misc.assertClone",path:b+".created_at",expected:'(string & Format<"date-time">)',value:h.created_at},T))&&(typeof h.application=="string"||E(M,{method:"typia.misc.assertClone",path:b+".application",expected:"string",value:h.application},T))&&(typeof h.uid=="string"||E(M,{method:"typia.misc.assertClone",path:b+".uid",expected:"string",value:h.uid},T))&&(typeof h.nickname=="string"||E(M,{method:"typia.misc.assertClone",path:b+".nickname",expected:"string",value:h.nickname},T))&&!0,c=(h,b,M=!0)=>(typeof h.id=="string"&&(P(h.id)||E(M,{method:"typia.misc.assertClone",path:b+".id",expected:'string & Format<"uuid">',value:h.id},T))||E(M,{method:"typia.misc.assertClone",path:b+".id",expected:'(string & Format<"uuid">)',value:h.id},T))&&(typeof h.created_at=="string"&&(w(h.created_at)||E(M,{method:"typia.misc.assertClone",path:b+".created_at",expected:'string & Format<"date-time">',value:h.created_at},T))||E(M,{method:"typia.misc.assertClone",path:b+".created_at",expected:'(string & Format<"date-time">)',value:h.created_at},T))&&(typeof h.mobile=="string"&&(RegExp("^[0-9]*$").test(h.mobile)||E(M,{method:"typia.misc.assertClone",path:b+".mobile",expected:'string & Pattern<"^[0-9]*$">',value:h.mobile},T))||E(M,{method:"typia.misc.assertClone",path:b+".mobile",expected:'(string & Pattern<"^[0-9]*$"> & JsonSchemaPlugin<__type>)',value:h.mobile},T))&&(typeof h.name=="string"||E(M,{method:"typia.misc.assertClone",path:b+".name",expected:"(string & JsonSchemaPlugin<__type>)",value:h.name},T)),s=h=>({id:h.id,channel:m(h.channel),external_user:h.external_user?g(h.external_user):h.external_user,href:h.href,referrer:h.referrer,ip:h.ip,created_at:h.created_at}),m=h=>({id:h.id,created_at:h.created_at,code:h.code,name:h.name}),g=h=>({id:h.id,citizen:h.citizen?y(h.citizen):h.citizen,created_at:h.created_at,application:h.application,uid:h.uid,nickname:h.nickname,data:Fr(h.data)}),y=h=>({id:h.id,created_at:h.created_at,mobile:h.mobile,name:h.name}),v=h=>typeof h=="object"&&h!==null&&i(h);let T;const D=(h,b)=>(v(h)===!1&&(T=b,((M,I,G=!0)=>(typeof M=="object"&&M!==null||E(!0,{method:"typia.misc.assertClone",path:I+"",expected:"IShoppingCustomer.IInvert",value:M},T))&&l(M,I+"",!0)||E(!0,{method:"typia.misc.assertClone",path:I+"",expected:"IShoppingCustomer.IInvert",value:M},T))(h,"$input",!0)),h),_=h=>s(h);return(h,b)=>_(D(h,b))})()(t),member:(()=>{const i=y=>y.map(v=>o(v)),p=y=>typeof y.id=="string"&&P(y.id)&&typeof y.nickname=="string"&&Array.isArray(y.emails)&&y.emails.every(v=>typeof v=="object"&&v!==null&&u(v))&&typeof y.created_at=="string"&&w(y.created_at),u=y=>typeof y.id=="string"&&P(y.id)&&typeof y.value=="string"&&ua(y.value)&&typeof y.created_at=="string"&&w(y.created_at),r=(y,v,T=!0)=>(typeof y.id=="string"&&(P(y.id)||E(T,{method:"typia.misc.assertClone",path:v+".id",expected:'string & Format<"uuid">',value:y.id},s))||E(T,{method:"typia.misc.assertClone",path:v+".id",expected:'(string & Format<"uuid">)',value:y.id},s))&&(typeof y.nickname=="string"||E(T,{method:"typia.misc.assertClone",path:v+".nickname",expected:"string",value:y.nickname},s))&&((Array.isArray(y.emails)||E(T,{method:"typia.misc.assertClone",path:v+".emails",expected:"Array<IShoppingMemberEmail>",value:y.emails},s))&&y.emails.every((D,_)=>(typeof D=="object"&&D!==null||E(T,{method:"typia.misc.assertClone",path:v+".emails["+_+"]",expected:"IShoppingMemberEmail",value:D},s))&&l(D,v+".emails["+_+"]",T)||E(T,{method:"typia.misc.assertClone",path:v+".emails["+_+"]",expected:"IShoppingMemberEmail",value:D},s))||E(T,{method:"typia.misc.assertClone",path:v+".emails",expected:"Array<IShoppingMemberEmail>",value:y.emails},s))&&(typeof y.created_at=="string"&&(w(y.created_at)||E(T,{method:"typia.misc.assertClone",path:v+".created_at",expected:'string & Format<"date-time">',value:y.created_at},s))||E(T,{method:"typia.misc.assertClone",path:v+".created_at",expected:'(string & Format<"date-time">)',value:y.created_at},s)),l=(y,v,T=!0)=>(typeof y.id=="string"&&(P(y.id)||E(T,{method:"typia.misc.assertClone",path:v+".id",expected:'string & Format<"uuid">',value:y.id},s))||E(T,{method:"typia.misc.assertClone",path:v+".id",expected:'(string & Format<"uuid">)',value:y.id},s))&&(typeof y.value=="string"&&(ua(y.value)||E(T,{method:"typia.misc.assertClone",path:v+".value",expected:'string & Format<"email">',value:y.value},s))||E(T,{method:"typia.misc.assertClone",path:v+".value",expected:'(string & Format<"email">)',value:y.value},s))&&(typeof y.created_at=="string"&&(w(y.created_at)||E(T,{method:"typia.misc.assertClone",path:v+".created_at",expected:'string & Format<"date-time">',value:y.created_at},s))||E(T,{method:"typia.misc.assertClone",path:v+".created_at",expected:'(string & Format<"date-time">)',value:y.created_at},s)),d=y=>({id:y.id,nickname:y.nickname,emails:i(y.emails),created_at:y.created_at}),o=y=>({id:y.id,value:y.value,created_at:y.created_at}),c=y=>typeof y=="object"&&y!==null&&p(y);let s;const m=(y,v)=>(c(y)===!1&&(s=v,((T,D,_=!0)=>(typeof T=="object"&&T!==null||E(!0,{method:"typia.misc.assertClone",path:D+"",expected:"IShoppingMember.IInvert",value:T},s))&&r(T,D+"",!0)||E(!0,{method:"typia.misc.assertClone",path:D+"",expected:"IShoppingMember.IInvert",value:T},s))(y,"$input",!0)),y),g=y=>d(y);return(y,v)=>g(m(y,v))})()(a),created_at:f.created_at}}})(er||(er={}));var Da;(function(e){e.adjustable=n=>{const a=t(n);return n.criteria.direction==="include"?a:!a};const t=n=>n.criteria.type==="section"?n.criteria.sections.some(a=>a.id===n.sale.section.id):n.criteria.type==="seller"?n.criteria.sellers.some(a=>a.id===n.sale.seller.id):n.criteria.type==="sale"?n.criteria.sales.some(a=>a.id===n.sale.id):n.criteria.type==="funnel"?n.criteria.funnels.some(a=>{if(a.kind==="url")return n.customer.href.startsWith(a.value);if(a.kind==="referrer")return n.customer.referrer!==null&&n.customer.referrer.startsWith(a.value);if(a.kind==="variable"){const f=n.customer.href.lastIndexOf("?");return f===-1?!1:new URLSearchParams(n.customer.href.substring(f+1)).get(a.key)===a.value}return!1}):!1})(Da||(Da={}));var tr;(function(e){e.take=(t,n,a)=>{const f=t.get(n);if(f)return f;const A=a();return t.set(n,A),A}})(tr||(tr={}));var B;(function(e){e.validate=t=>{const n=[],a=new Set;return t.items.forEach((f,A)=>{if(t.filter&&t.filter(f)===!1)return;const i=t.key(f);a.has(i)===!0?n.push(t.message(f,A)):a.add(i)}),n}})(B||(B={}));var _a;(function(e){e.replica=t=>({name:t.name,extension:t.extension,url:t.url})})(_a||(_a={}));var nr;(function(e){e.replica=t=>({title:t.title,body:t.body,format:t.format,thumbnails:t.thumbnails.map(_a.replica),files:t.files.map(_a.replica)})})(nr||(nr={}));var Oa;(function(e){e.validate=t=>{if(t.option.type!=="select")return[];const n=`input.units[${t.unitIndex}].options[${t.index}]`,a=[];return t.option.candidates.length===0&&a.push({accessor:`${n}.candidates`,message:'Candidates must not be empty when type of the option is "select".'}),a.push(...B.validate({key:f=>f.name,message:(f,A)=>({accessor:`${n}.candidates[${A}]`,message:`Duplicated candidate name: "${f.name}"`}),items:t.option.candidates})),a},e.replica=t=>t.type==="select"?{type:t.type,name:t.name,variable:t.variable,candidates:t.candidates.map(n=>({name:n.name}))}:{type:t.type,name:t.name}})(Oa||(Oa={}));var xa;(function(e){e.validate=t=>{const n=`input.units.[${t.unitIndex}].stocks[${t.stockIndex}].choices[${t.index}]`,a=[],f=t.unit.options[t.choice.option_index];return f===void 0?a.push({accessor:n,message:`Option index ${t.choice.option_index} is out of bounds.`}):f.type!=="select"?a.push({accessor:n,message:'Option type must be "select".'}):f.variable===!1?a.push({accessor:n,message:"Option is not variable."}):f.candidates[t.choice.candidate_index]===void 0&&a.push({accessor:n,message:`Candidate index ${t.choice.candidate_index} is out of bounds.`}),a},e.replica=t=>{const n=t.options.findIndex(A=>A.id===t.choice.option_id);if(n===-1)throw new Error("Error on ShoppingSaleUnitStockChoiceDiagnoser.replica(): unable to find the matched option.");const a=t.options[n];if(a.type!=="select")throw new Error("Error on ShoppingSaleUnitStockChoiceDiagnoser.replica(): option type must be 'select'.");if(a.variable===!1)throw new Error("Error on ShoppingSaleUnitStockChoiceDiagnoser.replica(): option must be variable.");const f=a.candidates.findIndex(A=>A.id===t.choice.candidate_id);if(f===-1)throw new Error("Error on ShoppingSaleUnitStockChoiceDiagnoser.replica(): unable to find the matched candidate.");return{option_index:n,candidate_index:f}}})(xa||(xa={}));var sr;(function(e){e.validate=t=>{const n=[];return n.push(...B.validate({key:a=>JSON.stringify([a.option_index,a.candidate_index]),message:(a,f)=>({accessor:`input.units[${t.unitIndex}].stocks[${t.index}].choices[${f}]`,message:`Duplicated choice: (${a.option_index}, ${a.candidate_index})`}),items:t.stock.choices})),t.stock.choices.forEach((a,f)=>{n.push(...xa.validate({unit:t.unit,unitIndex:t.unitIndex,stock:t.stock,stockIndex:t.index,choice:a,index:f}))}),t.stock.price.nominal<t.stock.price.real&&n.push({accessor:`input.units[${t.unitIndex}].stocks[${t.index}].price.real`,message:"Real price cannot be greater than nominal price"}),n},e.replica=t=>({name:t.stock.name,choices:t.stock.choices.map(n=>xa.replica({options:t.options,choice:n})),quantity:Math.max(0,t.stock.inventory.income-t.stock.inventory.outcome),price:{nominal:t.stock.price.nominal,real:t.stock.price.real}})})(sr||(sr={}));var Sa;(function(e){e.validate=t=>{const n=`input.units[${t.index}]`,a=[];if(a.push(...B.validate({key:f=>f.name,message:(f,A)=>({accessor:`${n}.options[${A}]`,message:`Duplicated option name: "${f.name}"`}),items:t.unit.options})),t.unit.options.forEach((f,A)=>a.push(...Oa.validate({unit:t.unit,unitIndex:t.index,option:f,index:A}))),t.unit.stocks.length===0)a.push({accessor:`${n}.stocks.length`,message:"No stock exists."});else{const f=t.unit.options.map(A=>A.type==="select"&&A.variable?A.candidates.length:1).reduce((A,i)=>A*i,1);t.unit.stocks.length>f&&a.push({accessor:`${n}.stocks.length`,message:`Incorrect number of stocks: must not over the ${f} but ${t.unit.stocks.length}.`})}return a.push(...B.validate({key:f=>f.name,message:(f,A)=>({accessor:`${n}.stocks[${A}]`,message:`Duplicated stock name: "${f.name}"`}),items:t.unit.stocks})),a},e.replica=t=>({name:t.name,primary:t.primary,required:t.required,options:t.options.map(Oa.replica),stocks:t.stocks.map(n=>sr.replica({options:t.options,stock:n}))})})(Sa||(Sa={}));var da;(function(e){e.validate=t=>{const n=[];return n.push(...B.validate({key:a=>a,message:(a,f)=>({accessor:`input.category_codes[${f}]`,message:`Duplicated category code: "${a}"`}),items:t.category_codes})),t.units.length===0?n.push({accessor:"input.units",message:"No unit"}):t.units.every(a=>a.required===!1)&&n.push({accessor:"input.units[].required",message:"No required unit"}),n.push(...B.validate({key:a=>a.name,message:(a,f)=>({accessor:`input.units[${f}]`,message:`Duplicated unit name: "${a.name}"`}),items:t.units})),t.units.forEach((a,f)=>n.push(...Sa.validate({unit:a,index:f}))),n.push(...B.validate({key:a=>a,message:(a,f)=>({accessor:`input.tags[${f}]`,message:`Duplicated tags: "${a}"`}),items:t.tags})),n},e.replica=t=>({category_codes:t.categories.map(n=>n.code),content:nr.replica(t.content),units:t.units.map(Sa.replica),tags:t.tags.slice()})})(da||(da={}));var pa;(function(e){e.validate=t=>{const n=[];return t.opened_at&&t.closed_at&&new Date(t.closed_at).getTime()<new Date(t.opened_at).getTime()&&n.push({accessor:"input.closed_at",message:"Closed date is earlier than opened date"}),n.push(...da.validate(t)),n},e.replica=t=>({...da.replica(t),section_code:t.section.code,opened_at:t.opened_at,closed_at:t.closed_at}),e.readable=t=>{const n=[];t.sale.opened_at===null?n.push({accessor:t.accessor,message:"The sale has not been opened."}):new Date(t.sale.opened_at).getTime()>Date.now()&&n.push({accessor:t.accessor,message:"The sale has not been opened yet."});const a=(f,A)=>{A!==null&&Date.now()>=new Date(A).getTime()&&n.push({accessor:t.accessor,message:`The sale has been ${f}.`})};return a("closed",t.sale.closed_at),t.checkPause&&a("paused",t.sale.paused_at),a("suspended",t.sale.suspended_at),n}})(pa||(pa={}));var wa;(function(e){e.validate=t=>{const n=[],a=t.unit.options.find(f=>f.id===t.input.option_id);return a===void 0?n.push({accessor:`items[${t.stockIndex}].choices[${t.index}].option_id`,message:"Unable to find the matched option."}):a.type==="select"?n.push({accessor:`items[${t.stockIndex}].choices[${t.index}]`,message:"The select option does not require the choice composition."}):t.input.value!==null&&(a.type==="boolean"&&typeof t.input.value!="boolean"?n.push({accessor:`items[${t.stockIndex}].choices[${t.index}].value`,message:"The value must be boolean type."}):a.type==="number"&&typeof t.input.value!="number"?n.push({accessor:`items[${t.stockIndex}].choices[${t.index}].value`,message:"The value must be number type."}):a.type==="string"&&typeof t.input.value!="string"&&n.push({accessor:`items[${t.stockIndex}].choices[${t.index}].value`,message:"The value must be string type."})),n},e.replica=t=>t.option.type==="select"?null:{option_id:t.option.id,value:t.value}})(wa||(wa={}));var re;(function(e){e.validate=t=>{const n=[];t.input.choices.forEach((f,A)=>{wa.validate({unit:t.unit,stockIndex:t.index,input:f,index:A})});const a=t.unit.stocks.find(f=>f.id===t.input.stock_id);return a===void 0?n.push({accessor:`$input.stocks[${t.index}].stock_id`,message:"Unable to find the matched stock."}):a.inventory.income-a.inventory.outcome<t.input.quantity*t.commodity.volume&&n.push({accessor:`$input.stocks[${t.index}].quantity`,message:"Insufficient inventory."}),n},e.replica=t=>({unit_id:t.unit.id,stock_id:t.stock.id,choices:t.stock.choices.map(wa.replica).filter(n=>n!==null),quantity:t.stock.quantity}),e.preview=t=>{const n=t.unit.stocks.find(a=>a.id===t.input.stock_id);if(n===void 0)throw new Error("Unable to find the matched stock.");return{id:n.id,name:n.name,price:n.price,inventory:n.inventory,quantity:t.input.quantity,choices:[...n.choices.map(a=>{const f=t.unit.options.find(i=>i.id===a.option_id),A=f.candidates.find(i=>i.id===a.candidate_id);return{id:a.id,option:f,candidate:A,value:null}}),...t.input.choices.map(a=>{const f=t.unit.options.find(A=>A.id===a.option_id);return{id:Qa(),option:f,candidate:null,value:a.value}})]}}})(re||(re={}));var ar;(function(e){e.validate=t=>{const n=pa.readable({accessor:"$input.sale_id",checkPause:!0,sale:t.sale});return t.input.stocks.forEach((a,f)=>{const A=t.sale.units.find(i=>i.id===a.unit_id);A===void 0?n.push({accessor:`$input.stocks[${f}].unit_id`,message:"Unable to find the matched unit."}):n.push(...re.validate({unit:A,commodity:t.input,input:a,index:f}))}),n},e.replica=t=>({sale_id:t.sale.id,stocks:t.sale.units.map(n=>n.stocks.map(a=>re.replica({unit:n,stock:a}))).flat(),volume:t.volume}),e.preview=t=>{const n=t.input.stocks.map(f=>{const A=t.sale.units.find(i=>i.id===f.unit_id);if(A===void 0)throw new Error(`Error on ShoppingCartItemDiagnoser.preview(): unable to find the matched unit by its id "${f.unit_id}".`);return[{id:A.id,name:A.name,primary:A.primary,required:A.required,stocks:[]},re.preview({unit:A,input:f})]}),a=new Map;for(const[f,A]of n)tr.take(a,f.id,()=>f).stocks.push(A);return{id:Qa(),sale:{...t.sale,content:{id:Qa(),title:t.sale.content.title,thumbnails:t.sale.content.thumbnails},units:[...a.values()]},pseudo:!0,volume:t.input.volume,price:{nominal:n.map(([,f])=>f.price.nominal).reduce((f,A)=>f+A),real:n.map(([,f])=>f.price.real).reduce((f,A)=>f+A)},created_at:new Date().toISOString(),orderable:!0}}})(ar||(ar={}));var rr;(function(e){e.validate=t=>{const n=pa.readable({accessor:`input.goods.${t.index}.commodity.sale`,checkPause:!0,sale:t.commodity.sale});for(const a of t.commodity.sale.units)for(const f of a.stocks)f.quantity*t.input.volume>f.inventory.income-f.inventory.outcome&&n.push({accessor:`input.goods.${t.index}.volume`,message:`Not enough inventory on nested stock#${f.id}.`});return n}})(rr||(rr={}));var ir;(function(e){e.validate=t=>t.input.goods.map((n,a)=>{const f=t.commodities.find(A=>A.id===n.commodity_id);return f===void 0?{accessor:`input.goods[${a}].commodity_id`,message:`Commodity#${n.commodity_id} is not found.`}:rr.validate({commodity:f,input:n,index:a})}).flat()})(ir||(ir={}));var fe;(function(e){e.adjustable=n=>n.coupon.criterias.every(a=>Da.adjustable({customer:n.customer,sale:n.sale,criteria:a})),e.coexistable=n=>n.length<=1||n.every(a=>a.restriction.exclusive===!1),e.sort=n=>n.sort(t);function t(n,a){return n.discount.unit!==a.discount.unit?n.discount.unit==="percent"?-1:1:n.discount.unit==="amount"&&a.discount.unit==="amount"?Number(n.discount.value)-Number(a.discount.value):a.discount.value-n.discount.value}})(fe||(fe={}));var ae;(function(e){e.checkCoupon=i=>e.filterItems(i).length!==0,e.filterItems=i=>t(i);const t=i=>n({accessor:i.accessor,coupon:i.coupon,data:i.data.filter(p=>fe.adjustable({customer:i.customer,sale:i.accessor.item(p).sale,coupon:i.coupon}))}),n=i=>i.coupon.discount.threshold===null?i.coupon.discount.unit==="amount"&&i.coupon.discount.multiplicative===!0?i.data.filter(u=>i.accessor.item(u).price.real>=i.coupon.discount.value):i.data:i.coupon.discount.unit==="amount"&&i.coupon.discount.multiplicative===!0?i.data.filter(u=>i.accessor.item(u).price.real>=i.coupon.discount.threshold&&i.accessor.item(u).price.real>=i.coupon.discount.value):i.data.map(u=>a(i.accessor)(u)).reduce((u,r)=>u+r,0)>=i.coupon.discount.threshold?i.data:[],a=i=>p=>i.item(p).price.real*i.volume(p);e.discount=i=>f({...i,title:`${i.className}.discount`});const f=i=>{if(fe.sort(i.coupons),fe.coexistable(i.coupons)===!1)throw new Error(`Error on ${i.title}(): target coupons are not coexistable.`);const p={amount:0,coupon_to_elem_dict:new Map};for(const u of i.coupons)t({accessor:i.accessor,customer:i.customer,data:i.data,coupon:u}).length!==0&&A({accessor:i.accessor,coupon:u,data:i.data,output:p});return p},A=i=>{const p=(u,r)=>{Eo(i.output.coupon_to_elem_dict,i.coupon.id,()=>new Map).set(u.id,r)};if(i.coupon.discount.unit==="percent")for(const u of i.data){const r=i.coupon.discount.value/100*a(i.accessor)(u);i.output.amount+=r,p(u,r)}else if(i.coupon.discount.multiplicative===!0)for(const u of i.data){const r=i.coupon.discount.value*i.accessor.volume(u);p(u,r),i.output.amount+=r}else{const u=i.data.map(r=>a(i.accessor)(r)).reduce((r,l)=>r+l,0);for(const r of i.data){const l=i.coupon.discount.value/100*a(i.accessor)(r)/u;p(r,l)}i.output.amount+=i.coupon.discount.value}};e.combine=i=>{const p=new Map(i.tickets.map(c=>[c.coupon.id,c])),u=i.coupons.filter(c=>p.has(c.id)===!1&&e.checkCoupon({accessor:i.accessor,customer:i.customer,data:i.data,coupon:c})),r=[...p.values()].filter(c=>e.checkCoupon({accessor:i.accessor,customer:i.customer,data:i.data,coupon:c.coupon})),l=[...u,...r.map(c=>c.coupon)],d=[l.filter(c=>c.restriction.exclusive===!1),...l.filter(c=>c.restriction.exclusive===!0).map(c=>[c])].filter(c=>c.length!==0);return d.map(c=>f({title:`${i.className}.combine`,accessor:i.accessor,customer:i.customer,data:i.data,coupons:c})).map((c,s)=>({coupons:d[s].filter(m=>u.some(g=>m.id===g.id)),tickets:r.filter(m=>d[s].some(g=>g.id===m.coupon.id)),entries:[...c.coupon_to_elem_dict.entries()].map(([m,g])=>[...g.entries()].map(([y,v])=>({coupon_id:m,item_id:y,amount:v}))).flat(),amount:c.amount}))}})(ae||(ae={}));const Eo=(e,t,n)=>{const a=e.get(t);if(a)return a;const f=n();return e.set(t,f),f};var or;(function(e){e.checkCoupon=t=>ae.checkCoupon({accessor:ja,customer:t.customer,coupon:t.coupon,data:t.goods}),e.filterGoods=t=>ae.filterItems({accessor:ja,customer:t.customer,coupon:t.coupon,data:t.goods}),e.combine=t=>ae.combine({className:"ShoppingOrderDiscountableDiagnoser",accessor:ja,customer:t.customer,coupons:t.coupons,tickets:t.tickets,data:t.goods}).map(n=>({...n,entries:n.entries.map(a=>({coupon_id:a.coupon_id,good_id:a.item_id,amount:a.amount}))})),e.discount=t=>ae.discount({className:"ShoppingOrderDiscountableDiagnoser",accessor:ja,customer:t.customer,coupons:t.coupons,data:t.goods})})(or||(or={}));const ja={item:e=>e.commodity,volume:e=>e.volume};var bo=Object.freeze({__proto__:null,get ShoppingAdministratorDiagnoser(){return Va},get ShoppingCartCommodityDiagnoser(){return ar},get ShoppingCartCommodityStockDiagnoser(){return re},get ShoppingCouponCriteriaDiagnoser(){return Da},get ShoppingOrderDiagnoser(){return ir},get ShoppingOrderDiscountableDiagnoser(){return or},get ShoppingSaleDiagnoser(){return pa},get ShoppingSaleSnapshotDiagnoser(){return da},get ShoppingSellerDiagnoser(){return er}}),Mo=Object.freeze({__proto__:null,shoppings:bo});async function me(e){return $.fetch(e,{...me.METADATA,template:me.METADATA.path,path:me.path()})}(function(e){e.METADATA={method:"GET",path:"/monitors/health",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/monitors/health"})(me);var Do=Object.freeze({__proto__:null,get:me});async function he(e){return $.fetch(e,{...he.METADATA,template:he.METADATA.path,path:he.path()})}(function(e){e.METADATA={method:"GET",path:"/monitors/performance",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/monitors/performance"})(he);var _o=Object.freeze({__proto__:null,get:he});async function Ae(e){return $.fetch(e,{...Ae.METADATA,template:Ae.METADATA.path,path:Ae.path()})}(function(e){e.METADATA={method:"GET",path:"/monitors/system",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/monitors/system"})(Ae);async function ye(e){return $.fetch(e,{...ye.METADATA,template:ye.METADATA.path,path:ye.path()})}(function(e){e.METADATA={method:"GET",path:"/monitors/system/internal_server_error",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/monitors/system/internal_server_error"})(ye);async function ge(e){return $.fetch(e,{...ge.METADATA,template:ge.METADATA.path,path:ge.path()})}(function(e){e.METADATA={method:"GET",path:"/monitors/system/uncaught_exception",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/monitors/system/uncaught_exception"})(ge);var Oo=Object.freeze({__proto__:null,get:Ae,internal_server_error:ye,uncaught_exception:ge}),xo=Object.freeze({__proto__:null,health:Do,performance:_o,system:Oo});async function Te(e){return $.fetch(e,{...Te.METADATA,template:Te.METADATA.path,path:Te.path()})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/authenticate",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/authenticate"})(Te);async function $e(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...$e.METADATA,template:$e.METADATA.path,path:$e.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/authenticate",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/admins/authenticate"})($e);async function ve(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ve.METADATA,template:ve.METADATA.path,path:ve.path()},t)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/admins/authenticate/login",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/authenticate/login"})(ve);var So=Object.freeze({__proto__:null,get:Te,join:$e,login:ve});async function je(e,t){return $.fetch(e,{...je.METADATA,template:je.METADATA.path,path:je.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/admins/coupons/:id/destroy",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/coupons/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/destroy`})(je);async function Ee(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ee.METADATA,template:Ee.METADATA.path,path:Ee.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/coupons",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/admins/coupons"})(Ee);async function be(e,t){return $.fetch(e,{...be.METADATA,template:be.METADATA.path,path:be.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/admins/coupons/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/coupons/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(be);async function Me(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Me.METADATA,template:Me.METADATA.path,path:Me.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/coupons",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/coupons"})(Me);async function De(e,t){return $.fetch(e,{...De.METADATA,template:De.METADATA.path,path:De.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/coupons/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/coupons/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(De);var wo=Object.freeze({__proto__:null,at:De,create:Ee,destroy:je,erase:be,index:Me});async function _e(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{..._e.METADATA,template:_e.METADATA.path,path:_e.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/deposits",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/deposits"})(_e);async function Oe(e,t){return $.fetch(e,{...Oe.METADATA,template:Oe.METADATA.path,path:Oe.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/deposits/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/deposits/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Oe);async function xe(e,t){return $.fetch(e,{...xe.METADATA,template:xe.METADATA.path,path:xe.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/deposits/:code/get",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/deposits/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/get`})(xe);async function Se(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Se.METADATA,template:Se.METADATA.path,path:Se.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/deposits",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/admins/deposits"})(Se);async function we(e,t){return $.fetch(e,{...we.METADATA,template:we.METADATA.path,path:we.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/admins/deposits/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/deposits/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(we);var Po=Object.freeze({__proto__:null,at:Oe,create:Se,erase:we,get:xe,index:_e});async function Pe(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Pe.METADATA,template:Pe.METADATA.path,path:Pe.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/mileages/donations",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/mileages/donations"})(Pe);async function Re(e,t){return $.fetch(e,{...Re.METADATA,template:Re.METADATA.path,path:Re.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/mileages/donations/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/mileages/donations/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Re);async function qe(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...qe.METADATA,template:qe.METADATA.path,path:qe.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/mileages/donations",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/admins/mileages/donations"})(qe);var Ro=Object.freeze({__proto__:null,at:Re,create:qe,index:Pe});async function Ue(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ue.METADATA,template:Ue.METADATA.path,path:Ue.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/mileages",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/mileages"})(Ue);async function Ce(e,t){return $.fetch(e,{...Ce.METADATA,template:Ce.METADATA.path,path:Ce.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/mileages/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/mileages/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Ce);async function ze(e,t){return $.fetch(e,{...ze.METADATA,template:ze.METADATA.path,path:ze.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/mileages/:code/get",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/mileages/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/get`})(ze);async function Fe(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Fe.METADATA,template:Fe.METADATA.path,path:Fe.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/mileages",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/admins/mileages"})(Fe);async function Ne(e,t){return $.fetch(e,{...Ne.METADATA,template:Ne.METADATA.path,path:Ne.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/admins/mileages/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/mileages/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Ne);var qo=Object.freeze({__proto__:null,at:Ce,create:Fe,donations:Ro,erase:Ne,get:ze,index:Ue});async function Ie(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ie.METADATA,template:Ie.METADATA.path,path:Ie.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/orders",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/orders"})(Ie);async function He(e,t){return $.fetch(e,{...He.METADATA,template:He.METADATA.path,path:He.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/orders/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(He);var Uo=Object.freeze({__proto__:null,at:He,index:Ie});async function Le(e,t,n,a){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Le.METADATA,template:Le.METADATA.path,path:Le.path(t,n)},a)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/sales/:saleId/questions/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/comments`})(Le);async function We(e,t,n,a){return $.fetch(e,{...We.METADATA,template:We.METADATA.path,path:We.path(t,n,a)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/sales/:saleId/questions/:inquiryId/comments/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n,a)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(We);async function ke(e,t,n,a){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ke.METADATA,template:ke.METADATA.path,path:ke.path(t,n)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/sales/:saleId/questions/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,n)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/comments`})(ke);async function Je(e,t,n,a,f){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Je.METADATA,template:Je.METADATA.path,path:Je.path(t,n,a)},f)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/admins/sales/:saleId/questions/:inquiryId/comments/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n,a)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(Je);var Co=Object.freeze({__proto__:null,at:We,create:ke,index:Le,update:Je});async function Be(e,t,n){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Be.METADATA,template:Be.METADATA.path,path:Be.path(t)},n)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/sales/:saleId/questions",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions`})(Be);async function Ge(e,t,n){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ge.METADATA,template:Ge.METADATA.path,path:Ge.path(t)},n)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/sales/:saleId/questions/abridges",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/abridges`})(Ge);async function Ze(e,t,n){return $.fetch(e,{...Ze.METADATA,template:Ze.METADATA.path,path:Ze.path(t,n)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/sales/:saleId/questions/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((n==null?void 0:n.toString())??"null")}`})(Ze);var zo=Object.freeze({__proto__:null,abridges:Ge,at:Ze,comments:Co,index:Be});async function Ke(e,t,n,a){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ke.METADATA,template:Ke.METADATA.path,path:Ke.path(t,n)},a)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/sales/:saleId/reviews/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/comments`})(Ke);async function Qe(e,t,n,a){return $.fetch(e,{...Qe.METADATA,template:Qe.METADATA.path,path:Qe.path(t,n,a)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/sales/:saleId/reviews/:inquiryId/comments/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n,a)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(Qe);async function Ye(e,t,n,a){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ye.METADATA,template:Ye.METADATA.path,path:Ye.path(t,n)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/sales/:saleId/reviews/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,n)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/comments`})(Ye);async function Xe(e,t,n,a,f){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Xe.METADATA,template:Xe.METADATA.path,path:Xe.path(t,n,a)},f)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/admins/sales/:saleId/reviews/:inquiryId/comments/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n,a)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(Xe);var Fo=Object.freeze({__proto__:null,at:Qe,create:Ye,index:Ke,update:Xe});async function Ve(e,t,n){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ve.METADATA,template:Ve.METADATA.path,path:Ve.path(t)},n)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/sales/:saleId/reviews",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews`})(Ve);async function et(e,t,n){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...et.METADATA,template:et.METADATA.path,path:et.path(t)},n)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/sales/:saleId/reviews/abridges",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/abridges`})(et);async function tt(e,t,n){return $.fetch(e,{...tt.METADATA,template:tt.METADATA.path,path:tt.path(t,n)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/sales/:saleId/reviews/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((n==null?void 0:n.toString())??"null")}`})(tt);var No=Object.freeze({__proto__:null,abridges:et,at:tt,comments:Fo,index:Ve});async function nt(e,t,n){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...nt.METADATA,template:nt.METADATA.path,path:nt.path(t)},n)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/sales/:saleId/snapshots",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots`})(nt);async function st(e,t,n){return $.fetch(e,{...st.METADATA,template:st.METADATA.path,path:st.path(t,n)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/sales/:saleId/snapshots/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots/${encodeURIComponent((n==null?void 0:n.toString())??"null")}`})(st);async function at(e,t,n){return $.fetch(e,{...at.METADATA,template:at.METADATA.path,path:at.path(t,n)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/sales/:saleId/snapshots/:id/flip",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n)=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/flip`})(at);var Io=Object.freeze({__proto__:null,at:st,flip:at,index:nt});async function rt(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...rt.METADATA,template:rt.METADATA.path,path:rt.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/sales/details",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/sales/details"})(rt);async function it(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...it.METADATA,template:it.METADATA.path,path:it.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/sales",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/sales"})(it);async function ot(e,t){return $.fetch(e,{...ot.METADATA,template:ot.METADATA.path,path:ot.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/sales/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(ot);var Ho=Object.freeze({__proto__:null,at:ot,details:rt,index:it,questions:zo,reviews:No,snapshots:Io});async function lt(e,t,n){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...lt.METADATA,template:lt.METADATA.path,path:lt.path(t)},n)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/systematic/channels/:channelCode/categories",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=t=>`/shoppings/admins/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories`})(lt);async function ct(e,t,n,a){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ct.METADATA,template:ct.METADATA.path,path:ct.path(t,n)},a)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/admins/systematic/channels/:channelCode/categories/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n)=>`/shoppings/admins/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories/${encodeURIComponent((n==null?void 0:n.toString())??"null")}`})(ct);async function ut(e,t,n){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ut.METADATA,template:ut.METADATA.path,path:ut.path(t)},n)}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/admins/systematic/channels/:channelCode/categories/merge",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories/merge`})(ut);async function dt(e,t){return $.fetch(e,{...dt.METADATA,template:dt.METADATA.path,path:dt.path(t)})}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/systematic/channels/:channelCode/categories",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories`})(dt);async function pt(e,t,n){return $.fetch(e,{...pt.METADATA,template:pt.METADATA.path,path:pt.path(t,n)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/systematic/channels/:channelCode/categories/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n)=>`/shoppings/admins/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories/${encodeURIComponent((n==null?void 0:n.toString())??"null")}`})(pt);async function ft(e,t,n){return $.fetch(e,{...ft.METADATA,template:ft.METADATA.path,path:ft.path(t,n)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/systematic/channels/:channelCode/categories/:id/invert",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n)=>`/shoppings/admins/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/invert`})(ft);var Lo=Object.freeze({__proto__:null,at:pt,create:lt,index:dt,invert:ft,merge:ut,update:ct});async function mt(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...mt.METADATA,template:mt.METADATA.path,path:mt.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/systematic/channels",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/admins/systematic/channels"})(mt);async function ht(e,t,n){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ht.METADATA,template:ht.METADATA.path,path:ht.path(t)},n)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/admins/systematic/channels/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(ht);async function At(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...At.METADATA,template:At.METADATA.path,path:At.path()},t)}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/admins/systematic/channels/merge",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/systematic/channels/merge"})(At);async function yt(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...yt.METADATA,template:yt.METADATA.path,path:yt.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/systematic/channels",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/systematic/channels"})(yt);async function gt(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...gt.METADATA,template:gt.METADATA.path,path:gt.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/systematic/channels/hierarchical",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/systematic/channels/hierarchical"})(gt);async function Tt(e,t){return $.fetch(e,{...Tt.METADATA,template:Tt.METADATA.path,path:Tt.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/systematic/channels/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Tt);async function $t(e,t){return $.fetch(e,{...$t.METADATA,template:$t.METADATA.path,path:$t.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/systematic/channels/:code/get",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/get`})($t);var Wo=Object.freeze({__proto__:null,at:Tt,categories:Lo,create:mt,get:$t,hierarchical:gt,index:yt,merge:At,update:ht});async function vt(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...vt.METADATA,template:vt.METADATA.path,path:vt.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/admins/systematic/sections",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/admins/systematic/sections"})(vt);async function jt(e,t,n){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...jt.METADATA,template:jt.METADATA.path,path:jt.path(t)},n)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/admins/systematic/sections/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/systematic/sections/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(jt);async function Et(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Et.METADATA,template:Et.METADATA.path,path:Et.path()},t)}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/admins/systematic/sections/merge",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/systematic/sections/merge"})(Et);async function bt(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...bt.METADATA,template:bt.METADATA.path,path:bt.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/admins/systematic/sections",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/admins/systematic/sections"})(bt);async function Mt(e,t){return $.fetch(e,{...Mt.METADATA,template:Mt.METADATA.path,path:Mt.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/systematic/sections/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/systematic/sections/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Mt);async function Dt(e,t){return $.fetch(e,{...Dt.METADATA,template:Dt.METADATA.path,path:Dt.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/admins/systematic/sections/:code/get",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/admins/systematic/sections/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/get`})(Dt);var ko=Object.freeze({__proto__:null,at:Mt,create:vt,get:Dt,index:bt,merge:Et,update:jt}),Jo=Object.freeze({__proto__:null,channels:Wo,sections:ko}),Bo=Object.freeze({__proto__:null,authenticate:So,coupons:wo,deposits:Po,mileages:qo,orders:Uo,sales:Ho,systematic:Jo});async function _t(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{..._t.METADATA,template:_t.METADATA.path,path:_t.path()},t)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/customers/authenticate/password/change",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/authenticate/password/change"})(_t);var Go=Object.freeze({__proto__:null,change:_t});async function Ot(e,t){const n=await $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ot.METADATA,template:Ot.METADATA.path,path:Ot.path()},t);return e.headers??(e.headers={}),Object.assign(e.headers,n.setHeaders),n}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/authenticate/refresh",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/authenticate/refresh"})(Ot);async function xt(e){return $.fetch(e,{...xt.METADATA,template:xt.METADATA.path,path:xt.path()})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/authenticate",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/authenticate"})(xt);async function St(e,t){const n=await $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...St.METADATA,template:St.METADATA.path,path:St.path()},t);return e.headers??(e.headers={}),Object.assign(e.headers,n.setHeaders),n}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/authenticate",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/customers/authenticate"})(St);async function wt(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...wt.METADATA,template:wt.METADATA.path,path:wt.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/authenticate/join",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/customers/authenticate/join"})(wt);async function Pt(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Pt.METADATA,template:Pt.METADATA.path,path:Pt.path()},t)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/customers/authenticate/login",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/authenticate/login"})(Pt);async function Rt(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Rt.METADATA,template:Rt.METADATA.path,path:Rt.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/authenticate/activate",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/customers/authenticate/activate"})(Rt);async function qt(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...qt.METADATA,template:qt.METADATA.path,path:qt.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/authenticate/external",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/customers/authenticate/external"})(qt);var Zo=Object.freeze({__proto__:null,activate:Rt,create:St,external:qt,get:xt,join:wt,login:Pt,password:Go,refresh:Ot});async function Ut(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ut.METADATA,template:Ut.METADATA.path,path:Ut.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/coupons/tickets",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/coupons/tickets"})(Ut);async function Ct(e,t){return $.fetch(e,{...Ct.METADATA,template:Ct.METADATA.path,path:Ct.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/coupons/tickets/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/coupons/tickets/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Ct);async function zt(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...zt.METADATA,template:zt.METADATA.path,path:zt.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/coupons/tickets",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/customers/coupons/tickets"})(zt);var Ko=Object.freeze({__proto__:null,at:Ct,create:zt,index:Ut});async function Ft(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ft.METADATA,template:Ft.METADATA.path,path:Ft.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/coupons",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/coupons"})(Ft);async function Nt(e,t){return $.fetch(e,{...Nt.METADATA,template:Nt.METADATA.path,path:Nt.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/coupons/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/coupons/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Nt);var Qo=Object.freeze({__proto__:null,at:Nt,index:Ft,tickets:Ko});async function It(e,t){return $.fetch(e,{...It.METADATA,template:It.METADATA.path,path:It.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/deposits/charges/:chargeId/publish/able",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/deposits/charges/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/publish/able`})(It);async function Ht(e,t,n){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ht.METADATA,template:Ht.METADATA.path,path:Ht.path(t)},n)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/deposits/charges/:chargeId/publish",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=t=>`/shoppings/customers/deposits/charges/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/publish`})(Ht);var Yo=Object.freeze({__proto__:null,able:It,create:Ht});async function Lt(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Lt.METADATA,template:Lt.METADATA.path,path:Lt.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/deposits/charges",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/deposits/charges"})(Lt);async function Wt(e,t){return $.fetch(e,{...Wt.METADATA,template:Wt.METADATA.path,path:Wt.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/deposits/charges/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/deposits/charges/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Wt);async function kt(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...kt.METADATA,template:kt.METADATA.path,path:kt.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/deposits/charges",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/customers/deposits/charges"})(kt);async function Jt(e,t,n){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Jt.METADATA,template:Jt.METADATA.path,path:Jt.path(t)},n)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/customers/deposits/charges/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/deposits/charges/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Jt);async function Bt(e,t){return $.fetch(e,{...Bt.METADATA,template:Bt.METADATA.path,path:Bt.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/customers/deposits/charges/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/deposits/charges/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Bt);var Xo=Object.freeze({__proto__:null,at:Wt,create:kt,erase:Bt,index:Lt,publish:Yo,update:Jt});async function Gt(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Gt.METADATA,template:Gt.METADATA.path,path:Gt.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/deposits/histories",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/deposits/histories"})(Gt);async function Zt(e,t){return $.fetch(e,{...Zt.METADATA,template:Zt.METADATA.path,path:Zt.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/deposits/histories/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/deposits/histories/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Zt);async function Kt(e){return $.fetch(e,{...Kt.METADATA,template:Kt.METADATA.path,path:Kt.path()})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/deposits/histories/balance",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/deposits/histories/balance"})(Kt);var Vo=Object.freeze({__proto__:null,at:Zt,balance:Kt,index:Gt}),el=Object.freeze({__proto__:null,charges:Xo,histories:Vo});async function Qt(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Qt.METADATA,template:Qt.METADATA.path,path:Qt.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/mileages/histories",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/mileages/histories"})(Qt);async function Yt(e,t){return $.fetch(e,{...Yt.METADATA,template:Yt.METADATA.path,path:Yt.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/mileages/histories/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/mileages/histories/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Yt);async function Xt(e){return $.fetch(e,{...Xt.METADATA,template:Xt.METADATA.path,path:Xt.path()})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/mileages/histories/balance",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/mileages/histories/balance"})(Xt);var tl=Object.freeze({__proto__:null,at:Yt,balance:Xt,index:Qt}),nl=Object.freeze({__proto__:null,histories:tl});async function Vt(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Vt.METADATA,template:Vt.METADATA.path,path:Vt.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/carts/commodities",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/carts/commodities"})(Vt);async function en(e,t){return $.fetch(e,{...en.METADATA,template:en.METADATA.path,path:en.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/carts/commodities/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/carts/commodities/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(en);async function tn(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...tn.METADATA,template:tn.METADATA.path,path:tn.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/carts/commodities",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/customers/carts/commodities"})(tn);async function nn(e,t,n){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...nn.METADATA,template:nn.METADATA.path,path:nn.path(t)},n)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/customers/carts/commodities/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/carts/commodities/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(nn);async function sn(e,t){return $.fetch(e,{...sn.METADATA,template:sn.METADATA.path,path:sn.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/carts/commodities/:id/replica",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/carts/commodities/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/replica`})(sn);async function an(e,t){return $.fetch(e,{...an.METADATA,template:an.METADATA.path,path:an.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/customers/carts/commodities/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/carts/commodities/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(an);async function rn(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...rn.METADATA,template:rn.METADATA.path,path:rn.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/carts/commodities/discountable",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/carts/commodities/discountable"})(rn);var sl=Object.freeze({__proto__:null,at:en,create:tn,discountable:rn,erase:an,index:Vt,replica:sn,update:nn}),al=Object.freeze({__proto__:null,commodities:sl});async function on(e,t,n){return $.fetch(e,{...on.METADATA,template:on.METADATA.path,path:on.path(t,n)})}(function(e){e.METADATA={method:"PUT",path:"/shoppings/customers/orders/:orderId/goods/:id/confirm",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n)=>`/shoppings/customers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/goods/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/confirm`})(on);var rl=Object.freeze({__proto__:null,confirm:on});async function ln(e,t){return $.fetch(e,{...ln.METADATA,template:ln.METADATA.path,path:ln.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/orders/:orderId/publish/able",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/publish/able`})(ln);async function cn(e,t,n){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...cn.METADATA,template:cn.METADATA.path,path:cn.path(t)},n)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/orders/:orderId/publish",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=t=>`/shoppings/customers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/publish`})(cn);async function un(e,t){return $.fetch(e,{...un.METADATA,template:un.METADATA.path,path:un.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/customers/orders/:orderId/publish",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/publish`})(un);var il=Object.freeze({__proto__:null,able:ln,cancel:un,create:cn});async function dn(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...dn.METADATA,template:dn.METADATA.path,path:dn.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/orders",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/customers/orders"})(dn);async function pn(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...pn.METADATA,template:pn.METADATA.path,path:pn.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/orders/direct",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/customers/orders/direct"})(pn);async function fn(e,t){return $.fetch(e,{...fn.METADATA,template:fn.METADATA.path,path:fn.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/customers/orders/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(fn);async function mn(e,t){return $.fetch(e,{...mn.METADATA,template:mn.METADATA.path,path:mn.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/orders/:id/price",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/price`})(mn);async function hn(e,t,n){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...hn.METADATA,template:hn.METADATA.path,path:hn.path(t)},n)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/orders/:id/discountable",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/discountable`})(hn);async function An(e,t,n){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...An.METADATA,template:An.METADATA.path,path:An.path(t)},n)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/customers/orders/:id/discount",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/discount`})(An);async function yn(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...yn.METADATA,template:yn.METADATA.path,path:yn.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/orders",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/orders"})(yn);async function gn(e,t){return $.fetch(e,{...gn.METADATA,template:gn.METADATA.path,path:gn.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/orders/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(gn);var ol=Object.freeze({__proto__:null,at:gn,create:dn,direct:pn,discount:An,discountable:hn,erase:fn,goods:rl,index:yn,price:mn,publish:il});async function Tn(e,t,n,a){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Tn.METADATA,template:Tn.METADATA.path,path:Tn.path(t,n)},a)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/sales/:saleId/questions/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/comments`})(Tn);async function $n(e,t,n,a){return $.fetch(e,{...$n.METADATA,template:$n.METADATA.path,path:$n.path(t,n,a)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/sales/:saleId/questions/:inquiryId/comments/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n,a)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})($n);async function vn(e,t,n,a){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...vn.METADATA,template:vn.METADATA.path,path:vn.path(t,n)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/sales/:saleId/questions/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,n)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/comments`})(vn);async function jn(e,t,n,a,f){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...jn.METADATA,template:jn.METADATA.path,path:jn.path(t,n,a)},f)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/customers/sales/:saleId/questions/:inquiryId/comments/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n,a)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(jn);var ll=Object.freeze({__proto__:null,at:$n,create:vn,index:Tn,update:jn});async function En(e,t,n){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...En.METADATA,template:En.METADATA.path,path:En.path(t)},n)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/sales/:saleId/questions",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=t=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions`})(En);async function bn(e,t,n,a){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...bn.METADATA,template:bn.METADATA.path,path:bn.path(t,n)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/sales/:saleId/questions/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,n)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((n==null?void 0:n.toString())??"null")}`})(bn);async function Mn(e,t,n){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Mn.METADATA,template:Mn.METADATA.path,path:Mn.path(t)},n)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/sales/:saleId/questions",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions`})(Mn);async function Dn(e,t,n){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Dn.METADATA,template:Dn.METADATA.path,path:Dn.path(t)},n)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/sales/:saleId/questions/abridges",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/abridges`})(Dn);async function _n(e,t,n){return $.fetch(e,{..._n.METADATA,template:_n.METADATA.path,path:_n.path(t,n)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/sales/:saleId/questions/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((n==null?void 0:n.toString())??"null")}`})(_n);var cl=Object.freeze({__proto__:null,abridges:Dn,at:_n,comments:ll,create:En,index:Mn,update:bn});async function On(e,t,n,a){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...On.METADATA,template:On.METADATA.path,path:On.path(t,n)},a)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/sales/:saleId/reviews/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/comments`})(On);async function xn(e,t,n,a){return $.fetch(e,{...xn.METADATA,template:xn.METADATA.path,path:xn.path(t,n,a)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/sales/:saleId/reviews/:inquiryId/comments/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n,a)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(xn);async function Sn(e,t,n,a){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Sn.METADATA,template:Sn.METADATA.path,path:Sn.path(t,n)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/sales/:saleId/reviews/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,n)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/comments`})(Sn);async function wn(e,t,n,a,f){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...wn.METADATA,template:wn.METADATA.path,path:wn.path(t,n,a)},f)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/customers/sales/:saleId/reviews/:inquiryId/comments/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n,a)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(wn);var ul=Object.freeze({__proto__:null,at:xn,create:Sn,index:On,update:wn});async function Pn(e,t,n){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Pn.METADATA,template:Pn.METADATA.path,path:Pn.path(t)},n)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/sales/:saleId/reviews",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=t=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews`})(Pn);async function Rn(e,t,n,a){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Rn.METADATA,template:Rn.METADATA.path,path:Rn.path(t,n)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/customers/sales/:saleId/reviews/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,n)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((n==null?void 0:n.toString())??"null")}`})(Rn);async function qn(e,t,n){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...qn.METADATA,template:qn.METADATA.path,path:qn.path(t)},n)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/sales/:saleId/reviews",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews`})(qn);async function Un(e,t,n){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Un.METADATA,template:Un.METADATA.path,path:Un.path(t)},n)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/sales/:saleId/reviews/abridges",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/abridges`})(Un);async function Cn(e,t,n){return $.fetch(e,{...Cn.METADATA,template:Cn.METADATA.path,path:Cn.path(t,n)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/sales/:saleId/reviews/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((n==null?void 0:n.toString())??"null")}`})(Cn);var dl=Object.freeze({__proto__:null,abridges:Un,at:Cn,comments:ul,create:Pn,index:qn,update:Rn});async function zn(e,t,n){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...zn.METADATA,template:zn.METADATA.path,path:zn.path(t)},n)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/sales/:saleId/snapshots",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots`})(zn);async function Fn(e,t,n){return $.fetch(e,{...Fn.METADATA,template:Fn.METADATA.path,path:Fn.path(t,n)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/sales/:saleId/snapshots/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots/${encodeURIComponent((n==null?void 0:n.toString())??"null")}`})(Fn);async function Nn(e,t,n){return $.fetch(e,{...Nn.METADATA,template:Nn.METADATA.path,path:Nn.path(t,n)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/sales/:saleId/snapshots/:id/flip",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n)=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/flip`})(Nn);var pl=Object.freeze({__proto__:null,at:Fn,flip:Nn,index:zn});async function In(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...In.METADATA,template:In.METADATA.path,path:In.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/sales/details",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/sales/details"})(In);async function Hn(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Hn.METADATA,template:Hn.METADATA.path,path:Hn.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/sales",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/sales"})(Hn);async function Ln(e,t){return $.fetch(e,{...Ln.METADATA,template:Ln.METADATA.path,path:Ln.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/sales/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Ln);var fl=Object.freeze({__proto__:null,at:Ln,details:In,index:Hn,questions:cl,reviews:dl,snapshots:pl});async function Wn(e,t){return $.fetch(e,{...Wn.METADATA,template:Wn.METADATA.path,path:Wn.path(t)})}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/systematic/channels/:channelCode/categories",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories`})(Wn);async function kn(e,t,n){return $.fetch(e,{...kn.METADATA,template:kn.METADATA.path,path:kn.path(t,n)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/systematic/channels/:channelCode/categories/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n)=>`/shoppings/customers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories/${encodeURIComponent((n==null?void 0:n.toString())??"null")}`})(kn);async function Jn(e,t,n){return $.fetch(e,{...Jn.METADATA,template:Jn.METADATA.path,path:Jn.path(t,n)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/systematic/channels/:channelCode/categories/:id/invert",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n)=>`/shoppings/customers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/invert`})(Jn);var ml=Object.freeze({__proto__:null,at:kn,index:Wn,invert:Jn});async function Bn(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Bn.METADATA,template:Bn.METADATA.path,path:Bn.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/systematic/channels",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/systematic/channels"})(Bn);async function Gn(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Gn.METADATA,template:Gn.METADATA.path,path:Gn.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/systematic/channels/hierarchical",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/systematic/channels/hierarchical"})(Gn);async function Zn(e,t){return $.fetch(e,{...Zn.METADATA,template:Zn.METADATA.path,path:Zn.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/systematic/channels/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Zn);async function Kn(e,t){return $.fetch(e,{...Kn.METADATA,template:Kn.METADATA.path,path:Kn.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/systematic/channels/:code/get",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/get`})(Kn);var hl=Object.freeze({__proto__:null,at:Zn,categories:ml,get:Kn,hierarchical:Gn,index:Bn});async function Qn(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Qn.METADATA,template:Qn.METADATA.path,path:Qn.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/customers/systematic/sections",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/customers/systematic/sections"})(Qn);async function Yn(e,t){return $.fetch(e,{...Yn.METADATA,template:Yn.METADATA.path,path:Yn.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/systematic/sections/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/systematic/sections/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Yn);async function Xn(e,t){return $.fetch(e,{...Xn.METADATA,template:Xn.METADATA.path,path:Xn.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/customers/systematic/sections/:code/get",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/customers/systematic/sections/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/get`})(Xn);var Al=Object.freeze({__proto__:null,at:Yn,get:Xn,index:Qn}),yl=Object.freeze({__proto__:null,channels:hl,sections:Al}),gl=Object.freeze({__proto__:null,authenticate:Zo,carts:al,coupons:Qo,deposits:el,mileages:nl,orders:ol,sales:fl,systematic:yl});async function Vn(e){return $.fetch(e,{...Vn.METADATA,template:Vn.METADATA.path,path:Vn.path()})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/authenticate",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/authenticate"})(Vn);async function es(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...es.METADATA,template:es.METADATA.path,path:es.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/authenticate",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/sellers/authenticate"})(es);async function ts(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ts.METADATA,template:ts.METADATA.path,path:ts.path()},t)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/authenticate/login",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/authenticate/login"})(ts);var Tl=Object.freeze({__proto__:null,get:Vn,join:es,login:ts});async function ns(e,t,n){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ns.METADATA,template:ns.METADATA.path,path:ns.path(t)},n)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/deliveries/:deliveryId/journeys",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=t=>`/shoppings/sellers/deliveries/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/journeys`})(ns);async function ss(e,t,n,a){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ss.METADATA,template:ss.METADATA.path,path:ss.path(t,n)},a)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/deliveries/:deliveryId/journeys/:id/complete",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n)=>`/shoppings/sellers/deliveries/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/journeys/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/complete`})(ss);async function as(e,t,n){return $.fetch(e,{...as.METADATA,template:as.METADATA.path,path:as.path(t,n)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/sellers/deliveries/:deliveryId/journeys/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n)=>`/shoppings/sellers/deliveries/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/journeys/${encodeURIComponent((n==null?void 0:n.toString())??"null")}`})(as);var $l=Object.freeze({__proto__:null,complete:ss,create:ns,erase:as});async function rs(e,t,n){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...rs.METADATA,template:rs.METADATA.path,path:rs.path(t)},n)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/deliveries/:deliveryId/shippers",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=t=>`/shoppings/sellers/deliveries/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/shippers`})(rs);var vl=Object.freeze({__proto__:null,create:rs});async function is(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...is.METADATA,template:is.METADATA.path,path:is.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/deliveries",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/deliveries"})(is);async function os(e,t){return $.fetch(e,{...os.METADATA,template:os.METADATA.path,path:os.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/deliveries/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/deliveries/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(os);async function ls(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ls.METADATA,template:ls.METADATA.path,path:ls.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/deliveries",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/sellers/deliveries"})(ls);async function cs(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...cs.METADATA,template:cs.METADATA.path,path:cs.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/deliveries/incompletes",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/deliveries/incompletes"})(cs);var jl=Object.freeze({__proto__:null,at:os,create:ls,incompletes:cs,index:is,journeys:$l,shippers:vl});async function us(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...us.METADATA,template:us.METADATA.path,path:us.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/coupons",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/sellers/coupons"})(us);async function ds(e,t){return $.fetch(e,{...ds.METADATA,template:ds.METADATA.path,path:ds.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/sellers/coupons/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/coupons/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(ds);async function ps(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ps.METADATA,template:ps.METADATA.path,path:ps.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/coupons",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/coupons"})(ps);async function fs(e,t){return $.fetch(e,{...fs.METADATA,template:fs.METADATA.path,path:fs.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/coupons/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/coupons/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(fs);var El=Object.freeze({__proto__:null,at:fs,create:us,erase:ds,index:ps});async function ms(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ms.METADATA,template:ms.METADATA.path,path:ms.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/orders",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/orders"})(ms);async function hs(e,t){return $.fetch(e,{...hs.METADATA,template:hs.METADATA.path,path:hs.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/orders/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/orders/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(hs);var bl=Object.freeze({__proto__:null,at:hs,index:ms});async function As(e,t,n,a){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...As.METADATA,template:As.METADATA.path,path:As.path(t,n)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/sales/:saleId/questions/:questionId/answer",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,n)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/answer`})(As);async function ys(e,t,n,a){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ys.METADATA,template:ys.METADATA.path,path:ys.path(t,n)},a)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/sales/:saleId/questions/:questionId/answer",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/answer`})(ys);var Ml=Object.freeze({__proto__:null,create:As,update:ys});async function gs(e,t,n,a){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...gs.METADATA,template:gs.METADATA.path,path:gs.path(t,n)},a)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales/:saleId/questions/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/comments`})(gs);async function Ts(e,t,n,a){return $.fetch(e,{...Ts.METADATA,template:Ts.METADATA.path,path:Ts.path(t,n,a)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/sales/:saleId/questions/:inquiryId/comments/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n,a)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(Ts);async function $s(e,t,n,a){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...$s.METADATA,template:$s.METADATA.path,path:$s.path(t,n)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/sales/:saleId/questions/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,n)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/comments`})($s);async function vs(e,t,n,a,f){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...vs.METADATA,template:vs.METADATA.path,path:vs.path(t,n,a)},f)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/sales/:saleId/questions/:inquiryId/comments/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n,a)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(vs);var Dl=Object.freeze({__proto__:null,at:Ts,create:$s,index:gs,update:vs});async function js(e,t,n){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...js.METADATA,template:js.METADATA.path,path:js.path(t)},n)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales/:saleId/questions",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions`})(js);async function Es(e,t,n){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Es.METADATA,template:Es.METADATA.path,path:Es.path(t)},n)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales/:saleId/questions/abridges",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/abridges`})(Es);async function bs(e,t,n){return $.fetch(e,{...bs.METADATA,template:bs.METADATA.path,path:bs.path(t,n)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/sales/:saleId/questions/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/questions/${encodeURIComponent((n==null?void 0:n.toString())??"null")}`})(bs);var _l=Object.freeze({__proto__:null,abridges:Es,answer:Ml,at:bs,comments:Dl,index:js});async function Ms(e,t,n,a){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ms.METADATA,template:Ms.METADATA.path,path:Ms.path(t,n)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/sales/:saleId/reviews/:reviewId/answer",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,n)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/answer`})(Ms);async function Ds(e,t,n,a){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ds.METADATA,template:Ds.METADATA.path,path:Ds.path(t,n)},a)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/sales/:saleId/reviews/:reviewId/answer",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/answer`})(Ds);var Ol=Object.freeze({__proto__:null,create:Ms,update:Ds});async function _s(e,t,n,a){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{..._s.METADATA,template:_s.METADATA.path,path:_s.path(t,n)},a)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales/:saleId/reviews/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/comments`})(_s);async function Os(e,t,n,a){return $.fetch(e,{...Os.METADATA,template:Os.METADATA.path,path:Os.path(t,n,a)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/sales/:saleId/reviews/:inquiryId/comments/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n,a)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(Os);async function xs(e,t,n,a){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...xs.METADATA,template:xs.METADATA.path,path:xs.path(t,n)},a)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/sales/:saleId/reviews/:inquiryId/comments",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,n)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/comments`})(xs);async function Ss(e,t,n,a,f){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ss.METADATA,template:Ss.METADATA.path,path:Ss.path(t,n,a)},f)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/sales/:saleId/reviews/:inquiryId/comments/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n,a)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/comments/${encodeURIComponent((a==null?void 0:a.toString())??"null")}`})(Ss);var xl=Object.freeze({__proto__:null,at:Os,create:xs,index:_s,update:Ss});async function ws(e,t,n){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ws.METADATA,template:ws.METADATA.path,path:ws.path(t)},n)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales/:saleId/reviews",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews`})(ws);async function Ps(e,t,n){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ps.METADATA,template:Ps.METADATA.path,path:Ps.path(t)},n)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales/:saleId/reviews/abridges",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/abridges`})(Ps);async function Rs(e,t,n){return $.fetch(e,{...Rs.METADATA,template:Rs.METADATA.path,path:Rs.path(t,n)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/sales/:saleId/reviews/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/reviews/${encodeURIComponent((n==null?void 0:n.toString())??"null")}`})(Rs);var Sl=Object.freeze({__proto__:null,abridges:Ps,answer:Ol,at:Rs,comments:xl,index:ws});async function qs(e,t,n){return $.fetch(e,{...qs.METADATA,template:qs.METADATA.path,path:qs.path(t,n)})}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/sales/:saleId/snapshots/:id/replica",request:null,response:{type:"application/json",encrypted:!1},status:201},e.path=(t,n)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/replica`})(qs);async function Us(e,t,n){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Us.METADATA,template:Us.METADATA.path,path:Us.path(t)},n)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales/:saleId/snapshots",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots`})(Us);async function Cs(e,t,n){return $.fetch(e,{...Cs.METADATA,template:Cs.METADATA.path,path:Cs.path(t,n)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/sales/:saleId/snapshots/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots/${encodeURIComponent((n==null?void 0:n.toString())??"null")}`})(Cs);async function zs(e,t,n){return $.fetch(e,{...zs.METADATA,template:zs.METADATA.path,path:zs.path(t,n)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/sales/:saleId/snapshots/:id/flip",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/snapshots/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/flip`})(zs);var wl=Object.freeze({__proto__:null,at:Cs,flip:zs,index:Us,replica:qs});async function Fs(e,t,n,a,f){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Fs.METADATA,template:Fs.METADATA.path,path:Fs.path(t,n,a)},f)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales/:saleId/units/:unitId/stocks/:stockId/supplements",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n,a)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/units/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/stocks/${encodeURIComponent((a==null?void 0:a.toString())??"null")}/supplements`})(Fs);async function Ns(e,t,n,a,f){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ns.METADATA,template:Ns.METADATA.path,path:Ns.path(t,n,a)},f)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/sales/:saleId/units/:unitId/stocks/:stockId/supplements",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=(t,n,a)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/units/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/stocks/${encodeURIComponent((a==null?void 0:a.toString())??"null")}/supplements`})(Ns);async function Is(e,t,n,a,f,A){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Is.METADATA,template:Is.METADATA.path,path:Is.path(t,n,a,f)},A)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/sales/:saleId/units/:unitId/stocks/:stockId/supplements/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n,a,f)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/units/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/stocks/${encodeURIComponent((a==null?void 0:a.toString())??"null")}/supplements/${encodeURIComponent((f==null?void 0:f.toString())??"null")}`})(Is);async function Hs(e,t,n,a,f){return $.fetch(e,{...Hs.METADATA,template:Hs.METADATA.path,path:Hs.path(t,n,a,f)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/sellers/sales/:saleId/units/:unitId/stocks/:stockId/supplements/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n,a,f)=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/units/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/stocks/${encodeURIComponent((a==null?void 0:a.toString())??"null")}/supplements/${encodeURIComponent((f==null?void 0:f.toString())??"null")}`})(Hs);var Pl=Object.freeze({__proto__:null,create:Ns,erase:Hs,index:Fs,update:Is}),Rl=Object.freeze({__proto__:null,supplements:Pl}),ql=Object.freeze({__proto__:null,stocks:Rl});async function Ls(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ls.METADATA,template:Ls.METADATA.path,path:Ls.path()},t)}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/sales",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:201},e.path=()=>"/shoppings/sellers/sales"})(Ls);async function Ws(e,t,n){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ws.METADATA,template:Ws.METADATA.path,path:Ws.path(t)},n)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/sales/:id",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Ws);async function ks(e,t,n){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ks.METADATA,template:ks.METADATA.path,path:ks.path(t)},n)}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/sales/:id/open",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/open`})(ks);async function Js(e,t){return $.fetch(e,{...Js.METADATA,template:Js.METADATA.path,path:Js.path(t)})}(function(e){e.METADATA={method:"POST",path:"/shoppings/sellers/sales/:id/replica",request:null,response:{type:"application/json",encrypted:!1},status:201},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/replica`})(Js);async function Bs(e,t){return $.fetch(e,{...Bs.METADATA,template:Bs.METADATA.path,path:Bs.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/sellers/sales/:id/pause",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/pause`})(Bs);async function Gs(e,t){return $.fetch(e,{...Gs.METADATA,template:Gs.METADATA.path,path:Gs.path(t)})}(function(e){e.METADATA={method:"DELETE",path:"/shoppings/sellers/sales/:id/suspend",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/suspend`})(Gs);async function Zs(e,t){return $.fetch(e,{...Zs.METADATA,template:Zs.METADATA.path,path:Zs.path(t)})}(function(e){e.METADATA={method:"PUT",path:"/shoppings/sellers/sales/:id/restore",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/restore`})(Zs);async function Ks(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Ks.METADATA,template:Ks.METADATA.path,path:Ks.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales/details",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/sales/details"})(Ks);async function Qs(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...Qs.METADATA,template:Qs.METADATA.path,path:Qs.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/sales",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/sales"})(Qs);async function Ys(e,t){return $.fetch(e,{...Ys.METADATA,template:Ys.METADATA.path,path:Ys.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/sales/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/sales/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(Ys);var Ul=Object.freeze({__proto__:null,at:Ys,create:Ls,details:Ks,index:Qs,open:ks,pause:Bs,questions:_l,replica:Js,restore:Zs,reviews:Sl,snapshots:wl,suspend:Gs,units:ql,update:Ws});async function Xs(e,t){return $.fetch(e,{...Xs.METADATA,template:Xs.METADATA.path,path:Xs.path(t)})}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/systematic/channels/:channelCode/categories",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories`})(Xs);async function Vs(e,t,n){return $.fetch(e,{...Vs.METADATA,template:Vs.METADATA.path,path:Vs.path(t,n)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/systematic/channels/:channelCode/categories/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n)=>`/shoppings/sellers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories/${encodeURIComponent((n==null?void 0:n.toString())??"null")}`})(Vs);async function ea(e,t,n){return $.fetch(e,{...ea.METADATA,template:ea.METADATA.path,path:ea.path(t,n)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/systematic/channels/:channelCode/categories/:id/invert",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=(t,n)=>`/shoppings/sellers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/categories/${encodeURIComponent((n==null?void 0:n.toString())??"null")}/invert`})(ea);var Cl=Object.freeze({__proto__:null,at:Vs,index:Xs,invert:ea});async function ta(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ta.METADATA,template:ta.METADATA.path,path:ta.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/systematic/channels",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/systematic/channels"})(ta);async function na(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...na.METADATA,template:na.METADATA.path,path:na.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/systematic/channels/hierarchical",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/systematic/channels/hierarchical"})(na);async function sa(e,t){return $.fetch(e,{...sa.METADATA,template:sa.METADATA.path,path:sa.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/systematic/channels/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(sa);async function aa(e,t){return $.fetch(e,{...aa.METADATA,template:aa.METADATA.path,path:aa.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/systematic/channels/:code/get",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/systematic/channels/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/get`})(aa);var zl=Object.freeze({__proto__:null,at:sa,categories:Cl,get:aa,hierarchical:na,index:ta});async function ra(e,t){return $.fetch({...e,headers:{...e.headers,"Content-Type":"application/json"}},{...ra.METADATA,template:ra.METADATA.path,path:ra.path()},t)}(function(e){e.METADATA={method:"PATCH",path:"/shoppings/sellers/systematic/sections",request:{type:"application/json",encrypted:!1},response:{type:"application/json",encrypted:!1},status:200},e.path=()=>"/shoppings/sellers/systematic/sections"})(ra);async function ia(e,t){return $.fetch(e,{...ia.METADATA,template:ia.METADATA.path,path:ia.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/systematic/sections/:id",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/systematic/sections/${encodeURIComponent((t==null?void 0:t.toString())??"null")}`})(ia);async function oa(e,t){return $.fetch(e,{...oa.METADATA,template:oa.METADATA.path,path:oa.path(t)})}(function(e){e.METADATA={method:"GET",path:"/shoppings/sellers/systematic/sections/:code/get",request:null,response:{type:"application/json",encrypted:!1},status:200},e.path=t=>`/shoppings/sellers/systematic/sections/${encodeURIComponent((t==null?void 0:t.toString())??"null")}/get`})(oa);var Fl=Object.freeze({__proto__:null,at:ia,get:oa,index:ra}),Nl=Object.freeze({__proto__:null,channels:zl,sections:Fl}),Il=Object.freeze({__proto__:null,authenticate:Tl,coupons:El,deliveries:jl,orders:bl,sales:Ul,systematic:Nl}),Hl=Object.freeze({__proto__:null,admins:Bo,customers:gl,sellers:Il}),Ll=Object.freeze({__proto__:null,monitors:xo,shoppings:Hl}),ei=Object.freeze({__proto__:null,HttpError:li.HttpError,diagnosers:Mo,functional:Ll}),lr;(function(e){e.is=t=>typeof t=="object"&&t!==null&&typeof t.openapi=="string"&&t.openapi.startsWith("3.0")})(lr||(lr={}));var cr;(function(e){e.is=t=>typeof t=="object"&&t!==null&&typeof t.openapi=="string"&&t.openapi.startsWith("3.1")})(cr||(cr={}));var ur;(function(e){e.is=t=>typeof t=="object"&&t!==null&&typeof t.swagger=="string"&&t.swagger.startsWith("2.0")})(ur||(ur={}));var Pa;(function(e){e.reference=t=>t.split("/").filter((n,a)=>!!n.length&&!(a===0&&n==="#")).join(".")})(Pa||(Pa={}));var K;(function(e){e.take=t=>n=>a=>{const f=t.get(n);if(f)return f;const A=a();return t.set(n,A),A}})(K||(K={}));var oe;(function(e){e.cascade=t=>{var A;if(t.$ref.lastIndexOf(".")===-1)return t.description;const a=t.$ref.split(t.prefix)[1].split("."),f=a.slice(0,t.escape?a.length:a.length-1).map((i,p,u)=>u.slice(0,p+1).join(".")).map(i=>{var p,u;return{key:i,description:(u=(p=t.components.schemas)==null?void 0:p[i])==null?void 0:u.description}}).filter(i=>!!(i!=null&&i.description)).reverse();return f.length===0?t.description:[...(A=t.description)!=null&&A.length?[t.description]:[],...f.map((i,p)=>`Description of the ${p===0&&t.escape?"current":"parent"} {@link ${i.key}} type:
2
-
3
- `+i.description.split(`
4
- `).map(u=>`> ${u}`).join(`
5
- `))].join(`
6
-
7
- ------------------------------
8
-
9
- `)}})(oe||(oe={}));var x;(function(e){e.isNull=s=>s.type==="null",e.isUnknown=s=>s.type===void 0&&!e.isConstant(s)&&!e.isOneOf(s)&&!e.isReference(s),e.isConstant=s=>s.const!==void 0,e.isBoolean=s=>s.type==="boolean",e.isInteger=s=>s.type==="integer",e.isNumber=s=>s.type==="number",e.isString=s=>s.type==="string",e.isArray=s=>s.type==="array"&&s.items!==void 0,e.isTuple=s=>s.type==="array"&&s.prefixItems!==void 0,e.isObject=s=>s.type==="object",e.isReference=s=>s.$ref!==void 0,e.isOneOf=s=>s.oneOf!==void 0,e.isRecursiveReference=s=>{if(e.isReference(s.schema)===!1)return!1;const m=s.schema.$ref.split(s.prefix)[1];let g=0;return e.visit({prefix:s.prefix,components:s.components,schema:s.schema,closure:y=>{if(e.isReference(y)){const v=y.$ref.split(s.prefix)[1];m===v&&++g}}}),g>1},e.unreference=s=>{const m=[],g=t({prefix:s.prefix,refAccessor:s.refAccessor??`$input.${s.prefix.substring(2).split("/").filter(y=>!!y.length).join(".")}`,accessor:s.accessor??"$input.schema",components:s.components,schema:s.schema,reasons:m});return g===null?{success:!1,error:{method:s.method,message:"failed to unreference due to unable to find.",reasons:m}}:{success:!0,value:g}},e.escape=s=>{const m=[],g=n({...s,reasons:m,visited:new Map,accessor:s.accessor??"$input.schema",refAccessor:s.refAccessor??Pa.reference(s.prefix)})||null;return g===null?{success:!1,error:{method:s.method,message:`failed to escape some reference type(s) due to unable to find${Number(s.recursive)===0?" or recursive relationship":""}.`,reasons:m}}:{success:!0,value:g}},e.visit=s=>{const m=new Set,g=s.refAccessor??`$input.${Pa.reference(s.prefix)}`,y=(v,T)=>{var D;if(s.closure(v,T),e.isReference(v)){const _=v.$ref.split(s.prefix).pop();if(m.has(_)===!0)return;m.add(_);const h=(D=s.components.schemas)==null?void 0:D[_];h!==void 0&&y(h,`${g}[${JSON.stringify(_)}]`)}else if(e.isOneOf(v))v.oneOf.forEach((_,h)=>y(_,`${T}.oneOf[${h}]`));else if(e.isObject(v)){for(const[_,h]of Object.entries(v.properties??{}))y(h,`${T}.properties[${JSON.stringify(_)}]`);typeof v.additionalProperties=="object"&&v.additionalProperties!==null&&y(v.additionalProperties,`${T}.additionalProperties`)}else e.isArray(v)?y(v.items,`${T}.items`):e.isTuple(v)&&((v.prefixItems??[]).forEach((_,h)=>y(_,`${T}.prefixItems[${h}]`)),typeof v.additionalItems=="object"&&v.additionalItems!==null&&y(v.additionalItems,`${T}.additionalItems`))};y(s.schema,s.accessor??"$input.schema")},e.covers=s=>a({prefix:s.prefix,components:s.components,x:s.x,y:s.y,visited:new Map});const t=s=>{var y;if(e.isReference(s.schema)===!1)return s.schema;const m=s.schema.$ref.split(s.prefix).pop(),g=(y=s.components.schemas)==null?void 0:y[m];return g===void 0?(s.reasons.push({schema:s.schema,accessor:s.accessor,message:`unable to find reference type ${JSON.stringify(m)}.`}),null):e.isReference(g)===!1?g:s.first===m?(s.reasons.push({schema:s.schema,accessor:s.accessor,message:`recursive reference type ${JSON.stringify(m)}.`}),null):t({...s,accessor:`${s.refAccessor}[${JSON.stringify(m)}]`,first:m})},n=s=>{var m,g;if(e.isReference(s.schema)){const y=s.schema.$ref.split(s.prefix)[1],v=(m=s.components.schemas)==null?void 0:m[y];if(v===void 0)return s.reasons.push({schema:s.schema,accessor:s.accessor,message:`unable to find reference type ${JSON.stringify(y)}.`}),null;if(s.visited.has(y)===!0){if(s.recursive===!1)return null;const T=s.visited.get(y);if(T>s.recursive)return s.recursive===0?(s.reasons.push({schema:s.schema,accessor:s.accessor,message:`recursive reference type ${JSON.stringify(y)}.`}),null):void 0;s.visited.set(y,T+1);const D=n({...s,schema:v,accessor:`${s.refAccessor}[${JSON.stringify(y)}]`});return D&&{...D,description:oe.cascade({prefix:s.prefix,components:s.components,$ref:s.schema.$ref,description:D.description,escape:!0})}}else{const T=n({...s,schema:v,accessor:`${s.refAccessor}[${JSON.stringify(y)}]`,visited:new Map([...s.visited,[y,1]])});return T&&{...T,description:oe.cascade({prefix:s.prefix,components:s.components,$ref:s.schema.$ref,description:T.description,escape:!0})}}}else if(e.isOneOf(s.schema)){const y=s.schema.oneOf.map((T,D)=>n({...s,schema:T,accessor:`${s.accessor}.oneOf[${D}]`}));if(y.some(T=>T===null))return null;const v=y.filter(T=>T!==void 0);return v.length===0?void 0:{...s.schema,oneOf:v.map(T=>o({prefix:s.prefix,components:s.components,schema:T})).flat()}}else if(e.isObject(s.schema)){const y=s.schema,v=Object.entries(y.properties??{}).map(([D,_])=>[D,n({...s,schema:_,visited:s.visited,accessor:`${s.accessor}.properties[${JSON.stringify(D)}]`})]),T=y.additionalProperties?typeof y.additionalProperties=="object"&&y.additionalProperties!==null?n({...s,schema:y.additionalProperties,accessor:`${s.accessor}.additionalProperties`}):y.additionalProperties:!1;return v.some(([D,_])=>_===null)||T===null?null:v.some(([D,_])=>{var h;return _===void 0&&((h=y.required)==null?void 0:h.includes(D))===!0})===!0?void 0:{...y,properties:Object.fromEntries(v.filter(([D,_])=>_!==void 0)),additionalProperties:T??!1,required:((g=y.required)==null?void 0:g.filter(D=>v.some(([_,h])=>_===D&&h!==void 0)))??[]}}else if(e.isTuple(s.schema)){const y=s.schema.prefixItems.map((T,D)=>n({...s,schema:T,accessor:`${s.accessor}.prefixItems[${D}]`})),v=s.schema.additionalItems?typeof s.schema.additionalItems=="object"&&s.schema.additionalItems!==null?n({...s,schema:s.schema.additionalItems,accessor:`${s.accessor}.additionalItems`}):s.schema.additionalItems:!1;return y.some(T=>T===null)||v===null?null:y.some(T=>T===void 0)?void 0:{...s.schema,prefixItems:y,additionalItems:v??!1}}else if(e.isArray(s.schema)){const y=n({...s,schema:s.schema.items,accessor:`${s.accessor}.items`});return y===null?null:y===void 0?{...s.schema,minItems:void 0,maxItems:0,items:{}}:{...s.schema,items:y}}return s.schema},a=s=>{var v;const m=(v=s.visited.get(s.x))==null?void 0:v.get(s.y);if(m!==void 0)return m;const g=K.take(s.visited)(s.x)(()=>new Map);g.set(s.y,!0);const y=f(s);return g.set(s.y,y),y},f=s=>{if(s.x===s.y)return!0;if(e.isReference(s.x)&&e.isReference(s.y)&&s.x.$ref===s.y.$ref)return!0;const m=o({prefix:s.prefix,components:s.components,schema:s.x}),g=o({prefix:s.prefix,components:s.components,schema:s.y});return m.some(y=>e.isUnknown(y))?!0:g.some(y=>e.isUnknown(y))?!1:g.every(y=>m.some(v=>A({prefix:s.prefix,components:s.components,visited:s.visited,x:v,y})))},A=s=>s.x===s.y||e.isUnknown(s.x)?!0:e.isUnknown(s.y)?!1:e.isNull(s.x)?e.isNull(s.y):e.isConstant(s.x)?e.isConstant(s.y)&&s.x.const===s.y.const:e.isBoolean(s.x)?e.isBoolean(s.y)||e.isConstant(s.y)&&typeof s.y.const=="boolean":e.isInteger(s.x)?(e.isInteger(s.y)||e.isConstant(s.y))&&u(s.x,s.y):e.isNumber(s.x)?(e.isConstant(s.y)||e.isInteger(s.y)||e.isNumber(s.y))&&r(s.x,s.y):e.isString(s.x)?(e.isConstant(s.y)||e.isString(s.y))&&l(s.x,s.y):e.isArray(s.x)?(e.isArray(s.y)||e.isTuple(s.y))&&i({prefix:s.prefix,components:s.components,visited:s.visited,x:s.x,y:s.y}):e.isObject(s.x)?e.isObject(s.y)&&p({prefix:s.prefix,components:s.components,visited:s.visited,x:s.x,y:s.y}):e.isReference(s.x)?e.isReference(s.y)&&s.x.$ref===s.y.$ref:!1,i=s=>{if(e.isTuple(s.y))return s.y.prefixItems.every(m=>a({prefix:s.prefix,components:s.components,visited:s.visited,x:s.x.items,y:m}))&&(s.y.additionalItems===void 0||typeof s.y.additionalItems=="object"&&a({prefix:s.prefix,components:s.components,visited:s.visited,x:s.x.items,y:s.y.additionalItems}));if(s.x.minItems===void 0||s.y.minItems!==void 0&&s.x.minItems<=s.y.minItems){if(!(s.x.maxItems===void 0||s.y.maxItems!==void 0&&s.x.maxItems>=s.y.maxItems))return!1}else return!1;return a({prefix:s.prefix,components:s.components,visited:s.visited,x:s.x.items,y:s.y.items})},p=s=>!s.x.additionalProperties&&s.y.additionalProperties||s.x.additionalProperties&&s.y.additionalProperties&&(typeof s.x.additionalProperties=="object"&&s.y.additionalProperties===!0||typeof s.x.additionalProperties=="object"&&typeof s.y.additionalProperties=="object"&&!a({prefix:s.prefix,components:s.components,visited:s.visited,x:s.x.additionalProperties,y:s.y.additionalProperties}))?!1:Object.entries(s.y.properties??{}).every(([m,g])=>{var v,T,D;const y=(v=s.x.properties)==null?void 0:v[m];return y===void 0||((T=s.x.required)==null?void 0:T.includes(m))===!0&&(((D=s.y.required)==null?void 0:D.includes(m))??!1)===!1?!1:a({prefix:s.prefix,components:s.components,visited:s.visited,x:y,y:g})}),u=(s,m)=>e.isConstant(m)?typeof m.const=="number"&&Number.isInteger(m.const):[s.type===m.type,s.minimum===void 0||m.minimum!==void 0&&s.minimum<=m.minimum,s.maximum===void 0||m.maximum!==void 0&&s.maximum>=m.maximum,s.exclusiveMinimum!==!0||s.minimum===void 0||m.minimum!==void 0&&(m.exclusiveMinimum===!0||s.minimum<m.minimum),s.exclusiveMaximum!==!0||s.maximum===void 0||m.maximum!==void 0&&(m.exclusiveMaximum===!0||s.maximum>m.maximum),s.multipleOf===void 0||m.multipleOf!==void 0&&m.multipleOf/s.multipleOf===Math.floor(m.multipleOf/s.multipleOf)].every(g=>g),r=(s,m)=>e.isConstant(m)?typeof m.const=="number":[s.type===m.type||s.type==="number"&&m.type==="integer",s.minimum===void 0||m.minimum!==void 0&&s.minimum<=m.minimum,s.maximum===void 0||m.maximum!==void 0&&s.maximum>=m.maximum,s.exclusiveMinimum!==!0||s.minimum===void 0||m.minimum!==void 0&&(m.exclusiveMinimum===!0||s.minimum<m.minimum),s.exclusiveMaximum!==!0||s.maximum===void 0||m.maximum!==void 0&&(m.exclusiveMaximum===!0||s.maximum>m.maximum),s.multipleOf===void 0||m.multipleOf!==void 0&&m.multipleOf/s.multipleOf===Math.floor(m.multipleOf/s.multipleOf)].every(g=>g),l=(s,m)=>e.isConstant(m)?typeof m.const=="string":[s.format===void 0||m.format!==void 0&&d(s.format,m.format),s.pattern===void 0||s.pattern===m.pattern,s.minLength===void 0||m.minLength!==void 0&&s.minLength<=m.minLength,s.maxLength===void 0||m.maxLength!==void 0&&s.maxLength>=m.maxLength].every(g=>g),d=(s,m)=>s===m||s==="idn-email"&&m==="email"||s==="idn-hostname"&&m==="hostname"||["uri","iri"].includes(s)&&m==="url"||s==="iri"&&m==="uri"||s==="iri-reference"&&m==="uri-reference",o=s=>{const m=c(s);return e.isOneOf(m)?m.oneOf.map(g=>o({prefix:s.prefix,components:s.components,schema:g})).flat():[m]},c=s=>{var y;if(e.isReference(s.schema)===!1)return s.schema;const m=s.schema.$ref.replace(s.prefix,""),g=c({prefix:s.prefix,components:s.components,schema:((y=s.components.schemas)==null?void 0:y[m])??{}});if(g===void 0)throw new Error(`Reference type not found: ${JSON.stringify(s.schema.$ref)}`);return c({prefix:s.prefix,components:s.components,schema:g})}})(x||(x={}));var j;(function(e){e.isNull=t=>x.isNull(t),e.isUnknown=t=>x.isUnknown(t),e.isConstant=t=>x.isConstant(t),e.isBoolean=t=>x.isBoolean(t),e.isInteger=t=>x.isInteger(t),e.isNumber=t=>x.isNumber(t),e.isString=t=>x.isString(t),e.isArray=t=>x.isArray(t),e.isTuple=t=>x.isTuple(t),e.isObject=t=>x.isObject(t),e.isReference=t=>x.isReference(t),e.isOneOf=t=>x.isOneOf(t),e.isRecursiveReference=t=>x.isRecursiveReference({prefix:"#/components/schemas/",components:t.components,schema:t.schema}),e.escape=t=>x.escape({...t,prefix:"#/components/schemas/",method:"OpenApiTypeChecker.method"}),e.unreference=t=>x.unreference({...t,prefix:"#/components/schemas/",method:"OpenApiTypeChecker.unreference"}),e.visit=t=>x.visit({...t,prefix:"#/components/schemas/"}),e.covers=t=>x.covers({prefix:"#/components/schemas/",components:t.components,x:t.x,y:t.y})})(j||(j={}));var Ra;(function(e){e.downgrade=r=>{const l=e.downgradeComponents(r.components);return{openapi:"3.0.0",servers:r.servers,info:r.info,components:l.downgraded,paths:r.paths?Object.fromEntries(Object.entries(r.paths).filter(([d,o])=>o!==void 0).map(([d,o])=>[d,t(l)(o)])):void 0,security:r.security,tags:r.tags}};const t=r=>l=>({...l,...l.get?{get:n(r)(l.get)}:void 0,...l.put?{put:n(r)(l.put)}:void 0,...l.post?{post:n(r)(l.post)}:void 0,...l.delete?{delete:n(r)(l.delete)}:void 0,...l.options?{options:n(r)(l.options)}:void 0,...l.head?{head:n(r)(l.head)}:void 0,...l.patch?{patch:n(r)(l.patch)}:void 0,...l.trace?{trace:n(r)(l.trace)}:void 0}),n=r=>l=>({...l,parameters:l.parameters?l.parameters.map(a(r)):void 0,requestBody:l.requestBody?f(r)(l.requestBody):void 0,responses:l.responses?Object.fromEntries(Object.entries(l.responses).filter(([d,o])=>o!==void 0).map(([d,o])=>[d,A(r)(o)])):void 0}),a=r=>l=>({...l,schema:e.downgradeSchema(r)(l.schema)}),f=r=>l=>({...l,content:l.content?i(r)(l.content):void 0}),A=r=>l=>({...l,content:l.content?i(r)(l.content):void 0,headers:l.headers?Object.fromEntries(Object.entries(l.headers).filter(([d,o])=>o!==void 0).map(([d,o])=>[d,{...o,schema:e.downgradeSchema(r)(o.schema)}])):void 0}),i=r=>l=>Object.fromEntries(Object.entries(l).filter(([d,o])=>o!==void 0).map(([d,o])=>[d,{...o,schema:o!=null&&o.schema?e.downgradeSchema(r)(o.schema):void 0}]));e.downgradeComponents=r=>{const l={original:r,downgraded:{securitySchemes:r.securitySchemes}};if(r.schemas){l.downgraded.schemas={};for(const[d,o]of Object.entries(r.schemas))o!==void 0&&(l.downgraded.schemas[d]=e.downgradeSchema(l)(o))}return l},e.downgradeSchema=r=>l=>{const d=u(new Set)(r.original)(l),o=[],c={title:l.title,description:l.description,example:l.example,examples:l.examples,...Object.fromEntries(Object.entries(l).filter(([g,y])=>g.startsWith("x-")&&y!==void 0))},s=g=>{j.isBoolean(g)?o.push({type:"boolean"}):j.isBoolean(g)||j.isInteger(g)||j.isNumber(g)||j.isString(g)||j.isReference(g)?o.push({...g}):j.isArray(g)?o.push({...g,items:e.downgradeSchema(r)(g.items)}):j.isTuple(g)?o.push({...g,items:(()=>{if(g.additionalItems===!0)return{};const y=[...g.prefixItems,...typeof g.additionalItems=="object"?[e.downgradeSchema(r)(g.additionalItems)]:[]];return y.length===0?{}:{oneOf:y.map(e.downgradeSchema(r))}})(),minItems:g.prefixItems.length,maxItems:g.additionalItems?void 0:g.prefixItems.length,prefixItems:void 0,additionalItems:void 0}):j.isObject(g)?o.push({...g,properties:g.properties?Object.fromEntries(Object.entries(g.properties).filter(([y,v])=>v!==void 0).map(([y,v])=>[y,e.downgradeSchema(r)(v)])):void 0,additionalProperties:typeof g.additionalProperties=="object"?e.downgradeSchema(r)(g.additionalProperties):g.additionalProperties,required:g.required}):j.isOneOf(g)&&g.oneOf.forEach(s)},m=g=>{const y=v=>{const T=o.find(D=>D.type===typeof v);T!==void 0?(T.enum??(T.enum=[]),T.enum.push(v)):o.push({type:typeof v,enum:[v]})};if(j.isConstant(g))y(g.const);else if(j.isOneOf(g))for(const v of g.oneOf)j.isConstant(v)&&y(v.const)};if(s(l),m(l),d===!0)for(const g of o)j.isReference(g)?p(new Set)(r)(g):g.nullable=!0;return d===!0&&o.length===0?{type:"null",...c}:{...o.length===0?{type:void 0}:o.length===1?{...o[0]}:{oneOf:o},...c}};const p=r=>l=>d=>{var m,g;var o;const c=d.$ref.split("/").pop();if(c.endsWith(".Nullable"))return;const s=(m=l.original.schemas)==null?void 0:m[c];if(s!==void 0){{if(u(r)(l.original)(s)===!0)return;((g=l.downgraded.schemas)==null?void 0:g[`${c}.Nullable`])===void 0&&((o=l.downgraded).schemas??(o.schemas={}),l.downgraded.schemas[`${c}.Nullable`]={},l.downgraded.schemas[`${c}.Nullable`]=e.downgradeSchema(l)(j.isOneOf(s)?{...s,oneOf:[...s.oneOf,{type:"null"}]}:{oneOf:[s,{type:"null"}],title:s.title,description:s.description,example:s.example,examples:s.examples,...Object.fromEntries(Object.entries(s).filter(([y,v])=>y.startsWith("x-")&&v!==void 0))}))}d.$ref+=".Nullable"}},u=r=>l=>d=>{var o;if(j.isNull(d))return!0;if(j.isReference(d)){if(r.has(d.$ref))return!1;r.add(d.$ref);const c=d.$ref.split("/").pop(),s=(o=l.schemas)==null?void 0:o[c];return s?u(r)(l)(s):!1}return j.isOneOf(d)&&d.oneOf.some(u(r)(l))}})(Ra||(Ra={}));var qa;(function(e){e.convert=l=>({...l,components:e.convertComponents(l.components??{}),paths:l.paths?Object.fromEntries(Object.entries(l.paths).filter(([d,o])=>o!==void 0).map(([d,o])=>[d,t(l)(o)])):void 0,openapi:"3.1.0","x-samchon-emended":!0});const t=l=>d=>({...d,...d.get?{get:n(l)(d)(d.get)}:void 0,...d.put?{put:n(l)(d)(d.put)}:void 0,...d.post?{post:n(l)(d)(d.post)}:void 0,...d.delete?{delete:n(l)(d)(d.delete)}:void 0,...d.options?{options:n(l)(d)(d.options)}:void 0,...d.head?{head:n(l)(d)(d.head)}:void 0,...d.patch?{patch:n(l)(d)(d.patch)}:void 0,...d.trace?{trace:n(l)(d)(d.trace)}:void 0}),n=l=>d=>o=>({...o,parameters:d.parameters!==void 0||o.parameters!==void 0?[...d.parameters??[],...o.parameters??[]].map(c=>{var m,g,y,v;if(!r.isReference(c))return a(l.components??{})(c);const s=c.$ref.startsWith("#/components/headers/")?(g=(m=l.components)==null?void 0:m.headers)==null?void 0:g[c.$ref.split("/").pop()??""]:(v=(y=l.components)==null?void 0:y.parameters)==null?void 0:v[c.$ref.split("/").pop()??""];return s!==void 0?a(l.components??{})({...s,in:"header"}):void 0}).filter((c,s)=>s!==void 0):void 0,requestBody:o.requestBody?f(l)(o.requestBody):void 0,responses:o.responses?Object.fromEntries(Object.entries(o.responses).filter(([c,s])=>s!==void 0).map(([c,s])=>[c,A(l)(s)]).filter(([c,s])=>s!==void 0)):void 0}),a=l=>d=>({...d,schema:e.convertSchema(l)(d.schema),examples:d.examples?Object.fromEntries(Object.entries(d.examples).map(([o,c])=>{var s;return[o,r.isReference(c)?(s=l.examples)==null?void 0:s[c.$ref.split("/").pop()??""]:c]}).filter(([o,c])=>c!==void 0)):void 0}),f=l=>d=>{var o,c;if(r.isReference(d)){const s=(c=(o=l.components)==null?void 0:o.requestBodies)==null?void 0:c[d.$ref.split("/").pop()??""];if(s===void 0)return;d=s}return{...d,content:d.content?i(l.components??{})(d.content):void 0}},A=l=>d=>{var o,c;if(r.isReference(d)){const s=(c=(o=l.components)==null?void 0:o.responses)==null?void 0:c[d.$ref.split("/").pop()??""];if(s===void 0)return;d=s}return{...d,content:d.content?i(l.components??{})(d.content):void 0,headers:d.headers?Object.fromEntries(Object.entries(d.headers).filter(([s,m])=>m!==void 0).map(([s,m])=>[s,(()=>{var y,v;if(r.isReference(m)===!1)return a(l.components??{})({...m,in:"header"});const g=m.$ref.startsWith("#/components/headers/")?(v=(y=l.components)==null?void 0:y.headers)==null?void 0:v[m.$ref.split("/").pop()??""]:void 0;return g!==void 0?a(l.components??{})({...g,in:"header"}):void 0})()]).filter(([s,m])=>m!==void 0)):void 0}},i=l=>d=>Object.fromEntries(Object.entries(d).filter(([o,c])=>c!==void 0).map(([o,c])=>[o,{...c,schema:c.schema?e.convertSchema(l)(c.schema):void 0,examples:c.examples?Object.fromEntries(Object.entries(c.examples).map(([s,m])=>{var g;return[s,r.isReference(m)?(g=l.examples)==null?void 0:g[m.$ref.split("/").pop()??""]:m]}).filter(([s,m])=>m!==void 0)):void 0}]));e.convertComponents=l=>({schemas:Object.fromEntries(Object.entries(l.schemas??{}).filter(([d,o])=>o!==void 0).map(([d,o])=>[d,e.convertSchema(l)(o)])),securitySchemes:l.securitySchemes}),e.convertSchema=l=>d=>{const o={value:!1,default:void 0},c=[],s={title:d.title,description:d.description,...Object.fromEntries(Object.entries(d).filter(([g,y])=>g.startsWith("x-")&&y!==void 0)),example:d.example,examples:d.examples},m=g=>{var y,v,T;g.nullable===!0&&(o.value||(o.value=!0),g.default===null&&(o.default=null)),Array.isArray(g.enum)&&((y=g.enum)!=null&&y.length)&&((v=g.enum)!=null&&v.some(D=>D===null))&&(o.value||(o.value=!0)),r.isAnyOf(g)?g.anyOf.forEach(m):r.isOneOf(g)?g.oneOf.forEach(m):r.isAllOf(g)?g.allOf.length===1?m(g.allOf[0]):c.push(p(l)(g)):r.isBoolean(g)||r.isInteger(g)||r.isNumber(g)||r.isString(g)?(T=g.enum)!=null&&T.length&&g.enum.filter(D=>D!==null).length?c.push(...g.enum.filter(D=>D!==null).map(D=>({const:D}))):c.push({...g,default:g.default??void 0,enum:void 0}):r.isArray(g)?c.push({...g,items:e.convertSchema(l)(g.items)}):r.isObject(g)?c.push({...g,properties:g.properties?Object.fromEntries(Object.entries(g.properties).filter(([D,_])=>_!==void 0).map(([D,_])=>[D,e.convertSchema(l)(_)])):{},additionalProperties:g.additionalProperties?typeof g.additionalProperties=="object"&&g.additionalProperties!==null?e.convertSchema(l)(g.additionalProperties):g.additionalProperties:void 0,required:g.required??[]}):(r.isReference(g),c.push(g))};if(m(d),o.value===!0&&!c.some(g=>g.type==="null")&&c.push({type:"null",default:o.default}),c.length===2&&c.filter(g=>j.isNull(g)).length===1){const g=c.filter(y=>j.isNull(y)===!1)[0];for(const y of["title","description","deprecated","example","examples"])g[y]!==void 0&&delete g[y]}return{...c.length===0?{type:void 0}:c.length===1?{...c[0]}:{oneOf:c.map(g=>({...g,nullable:void 0}))},...s,nullable:void 0}};const p=l=>d=>{const o=d.allOf.map(c=>u(l)(c));return o.some(c=>c===null)?{type:void 0,allOf:void 0}:{...d,type:"object",properties:Object.fromEntries(o.map(c=>Object.entries((c==null?void 0:c.properties)??{})).flat().map(([c,s])=>[c,e.convertSchema(l)(s)])),allOf:void 0,required:[...new Set(o.map(c=>(c==null?void 0:c.required)??[]).flat())]}},u=l=>(d,o=new Set)=>{var c;return r.isObject(d)?d.properties!==void 0&&!d.additionalProperties?d:null:o.has(d)?null:(o.add(d),r.isReference(d)?u(l)(((c=l.schemas)==null?void 0:c[d.$ref.split("/").pop()??""])??{},o):null)};let r;(function(l){l.isBoolean=d=>d.type==="boolean",l.isInteger=d=>d.type==="integer",l.isNumber=d=>d.type==="number",l.isString=d=>d.type==="string",l.isArray=d=>d.type==="array",l.isObject=d=>d.type==="object",l.isReference=d=>d.$ref!==void 0,l.isAllOf=d=>d.allOf!==void 0,l.isAnyOf=d=>d.anyOf!==void 0,l.isOneOf=d=>d.oneOf!==void 0,l.isNullOnly=d=>d.type==="null"})(r=e.TypeChecker||(e.TypeChecker={}))})(qa||(qa={}));var dr;(function(e){e.convert=c=>c["x-samchon-emended"]===!0?c:{...c,components:u(c.components??{}),paths:c.paths?Object.fromEntries(Object.entries(c.paths).filter(([s,m])=>m!==void 0).map(([s,m])=>[s,n(c)(m)])):void 0,webhooks:c.webhooks?Object.fromEntries(Object.entries(c.webhooks).filter(([s,m])=>m!==void 0).map(([s,m])=>[s,t(c)(m)]).filter(([s,m])=>m!==void 0)):void 0,"x-samchon-emended":!0};const t=c=>s=>{var g,y;if(!o.isReference(s))return n(c)(s);const m=(y=(g=c.components)==null?void 0:g.pathItems)==null?void 0:y[s.$ref.split("/").pop()??""];return m?n(c)(m):void 0},n=c=>s=>({...s,...s.get?{get:a(c)(s)(s.get)}:void 0,...s.put?{put:a(c)(s)(s.put)}:void 0,...s.post?{post:a(c)(s)(s.post)}:void 0,...s.delete?{delete:a(c)(s)(s.delete)}:void 0,...s.options?{options:a(c)(s)(s.options)}:void 0,...s.head?{head:a(c)(s)(s.head)}:void 0,...s.patch?{patch:a(c)(s)(s.patch)}:void 0,...s.trace?{trace:a(c)(s)(s.trace)}:void 0}),a=c=>s=>m=>({...m,parameters:s.parameters!==void 0||m.parameters!==void 0?[...s.parameters??[],...m.parameters??[]].map(g=>{var v,T,D,_;if(!o.isReference(g))return f(c.components??{})(g);const y=g.$ref.startsWith("#/components/headers/")?(T=(v=c.components)==null?void 0:v.headers)==null?void 0:T[g.$ref.split("/").pop()??""]:(_=(D=c.components)==null?void 0:D.parameters)==null?void 0:_[g.$ref.split("/").pop()??""];return y!==void 0?f(c.components??{})({...y,in:"header"}):void 0}).filter((g,y)=>y!==void 0):void 0,requestBody:m.requestBody?A(c)(m.requestBody):void 0,responses:m.responses?Object.fromEntries(Object.entries(m.responses).filter(([g,y])=>y!==void 0).map(([g,y])=>[g,i(c)(y)]).filter(([g,y])=>y!==void 0)):void 0}),f=c=>s=>({...s,schema:r(c)(s.schema),examples:s.examples?Object.fromEntries(Object.entries(s.examples).map(([m,g])=>{var y;return[m,o.isReference(g)?(y=c.examples)==null?void 0:y[g.$ref.split("/").pop()??""]:g]}).filter(([m,g])=>g!==void 0)):void 0}),A=c=>s=>{var m,g;if(o.isReference(s)){const y=(g=(m=c.components)==null?void 0:m.requestBodies)==null?void 0:g[s.$ref.split("/").pop()??""];if(y===void 0)return;s=y}return{...s,content:s.content?p(c.components??{})(s.content):void 0}},i=c=>s=>{var m,g;if(o.isReference(s)){const y=(g=(m=c.components)==null?void 0:m.responses)==null?void 0:g[s.$ref.split("/").pop()??""];if(y===void 0)return;s=y}return{...s,content:s.content?p(c.components??{})(s.content):void 0,headers:s.headers?Object.fromEntries(Object.entries(s.headers).filter(([y,v])=>v!==void 0).map(([y,v])=>[y,(()=>{var D,_;if(o.isReference(v)===!1)return f(c.components??{})({...v,in:"header"});const T=v.$ref.startsWith("#/components/headers/")?(_=(D=c.components)==null?void 0:D.headers)==null?void 0:_[v.$ref.split("/").pop()??""]:void 0;return T!==void 0?f(c.components??{})({...T,in:"header"}):void 0})()]).filter(([y,v])=>v!==void 0)):void 0}},p=c=>s=>Object.fromEntries(Object.entries(s).filter(([m,g])=>g!==void 0).map(([m,g])=>[m,{...g,schema:g.schema?r(c)(g.schema):void 0,examples:g.examples?Object.fromEntries(Object.entries(g.examples).map(([y,v])=>{var T;return[y,o.isReference(v)?(T=c.examples)==null?void 0:T[v.$ref.split("/").pop()??""]:v]}).filter(([y,v])=>v!==void 0)):void 0}])),u=c=>({schemas:Object.fromEntries(Object.entries(c.schemas??{}).filter(([s,m])=>m!==void 0).map(([s,m])=>[s,r(c)(m)])),securitySchemes:c.securitySchemes}),r=c=>s=>{const m=[],g={title:s.title,description:s.description,...Object.fromEntries(Object.entries(s).filter(([T,D])=>T.startsWith("x-")&&D!==void 0))},y={value:!1,default:void 0},v=T=>{var D,_,h,b,M,I,G;if(T.nullable===!0&&(y.value||(y.value=!0),T.default===null&&(y.default=null)),Array.isArray(T.enum)&&((D=T.enum)!=null&&D.length)&&((_=T.enum)!=null&&_.some(S=>S===null))&&(y.value||(y.value=!0)),o.isMixed(T)){T.const!==void 0&&v({...T,type:void 0,oneOf:void 0,anyOf:void 0,allOf:void 0,$ref:void 0}),T.oneOf!==void 0&&v({...T,type:void 0,anyOf:void 0,allOf:void 0,$ref:void 0}),T.anyOf!==void 0&&v({...T,type:void 0,oneOf:void 0,allOf:void 0,$ref:void 0}),T.allOf!==void 0&&v({...T,type:void 0,oneOf:void 0,anyOf:void 0,$ref:void 0});for(const S of T.type)v(S==="boolean"||S==="number"||S==="string"?{...T,enum:(h=T.enum)!=null&&h.length&&T.enum.filter(R=>R!==null)?T.enum.filter(R=>typeof R===S):void 0,type:S}:S==="integer"?{...T,enum:(b=T.enum)!=null&&b.length&&T.enum.filter(R=>R!==null)?T.enum.filter(R=>R!==null&&typeof R=="number"&&Number.isInteger(R)):void 0,type:S}:{...T,type:S})}else if(o.isOneOf(T))T.oneOf.forEach(v);else if(o.isAnyOf(T))T.anyOf.forEach(v);else if(o.isAllOf(T))T.allOf.length===1?v(T.allOf[0]):m.push(l(c)(T));else if(o.isBoolean(T))if((M=T.enum)!=null&&M.length&&T.enum.filter(S=>S!==null).length)for(const S of T.enum.filter(R=>R!==null))m.push({const:S,...T,type:void 0,enum:void 0,default:void 0});else m.push({...T,default:T.default??void 0,enum:void 0});else if(o.isInteger(T)||o.isNumber(T))if((I=T.enum)!=null&&I.length&&T.enum.filter(S=>S!==null))for(const S of T.enum.filter(R=>R!==null))m.push({const:S,...T,type:void 0,enum:void 0,default:void 0,minimum:void 0,maximum:void 0,exclusiveMinimum:void 0,exclusiveMaximum:void 0,multipleOf:void 0});else m.push({...T,default:T.default??void 0,enum:void 0,...typeof T.exclusiveMinimum=="number"?{minimum:T.exclusiveMinimum,exclusiveMinimum:!0}:{exclusiveMinimum:T.exclusiveMinimum},...typeof T.exclusiveMaximum=="number"?{maximum:T.exclusiveMaximum,exclusiveMaximum:!0}:{exclusiveMaximum:T.exclusiveMaximum}});else if(o.isString(T))if((G=T.enum)!=null&&G.length&&T.enum.filter(S=>S!==null).length)for(const S of T.enum.filter(R=>R!==null))m.push({const:S,...T,type:void 0,enum:void 0,default:void 0});else m.push({...T,default:T.default??void 0,enum:void 0});else o.isArray(T)?Array.isArray(T.items)?m.push({...T,items:void 0,prefixItems:T.items.map(r(c)),additionalItems:typeof T.additionalItems=="object"&&T.additionalItems!==null?r(c)(T.additionalItems):T.additionalItems}):Array.isArray(T.prefixItems)?m.push({...T,items:void 0,prefixItems:T.prefixItems.map(r(c)),additionalItems:typeof T.additionalItems=="object"&&T.additionalItems!==null?r(c)(T.additionalItems):T.additionalItems}):T.items===void 0?m.push({...T,items:void 0,prefixItems:[]}):m.push({...T,items:r(c)(T.items),prefixItems:void 0,additionalItems:void 0}):o.isObject(T)?m.push({...T,properties:T.properties?Object.fromEntries(Object.entries(T.properties).filter(([S,R])=>R!==void 0).map(([S,R])=>[S,r(c)(R)])):{},additionalProperties:T.additionalProperties?typeof T.additionalProperties=="object"&&T.additionalProperties!==null?r(c)(T.additionalProperties):T.additionalProperties:void 0,required:T.required??[]}):o.isRecursiveReference(T)?m.push({...T,$ref:T.$recursiveRef,$recursiveRef:void 0}):m.push(T)};return v(s),y.value===!0&&!m.some(T=>T.type==="null")&&m.push({type:"null",default:y.default}),{...m.length===0?{type:void 0}:m.length===1?{...m[0]}:{oneOf:m.map(T=>({...T,nullable:void 0}))},...g,nullable:void 0}},l=c=>s=>{const m=s.allOf.map(g=>d(c)(g));return m.some(g=>g===null)?{type:void 0,allOf:void 0}:{...s,type:"object",properties:Object.fromEntries(m.map(g=>Object.entries((g==null?void 0:g.properties)??{})).flat().map(([g,y])=>[g,r(c)(y)])),allOf:void 0,required:[...new Set(m.map(g=>(g==null?void 0:g.required)??[]).flat())]}},d=c=>(s,m=new Set)=>{var g,y;return o.isObject(s)?s.properties!==void 0&&!s.additionalProperties?s:null:m.has(s)?null:(m.add(s),o.isReference(s)?d(c)(((g=c.schemas)==null?void 0:g[s.$ref.split("/").pop()??""])??{},m):o.isRecursiveReference(s)?d(c)(((y=c.schemas)==null?void 0:y[s.$recursiveRef.split("/").pop()??""])??{},m):null)};let o;(function(c){c.isConstant=s=>s.const!==void 0,c.isBoolean=s=>s.type==="boolean",c.isInteger=s=>s.type==="integer",c.isNumber=s=>s.type==="number",c.isString=s=>s.type==="string",c.isArray=s=>s.type==="array",c.isObject=s=>s.type==="object",c.isReference=s=>s.$ref!==void 0,c.isRecursiveReference=s=>s.$recursiveRef!==void 0,c.isAllOf=s=>s.allOf!==void 0,c.isAnyOf=s=>s.anyOf!==void 0,c.isOneOf=s=>s.oneOf!==void 0,c.isNullOnly=s=>s.type==="null",c.isMixed=s=>Array.isArray(s.type)})(o||(o={}))})(dr||(dr={}));var pr;(function(e){e.downgrade=r=>{var d,o,c;const l=e.downgradeComponents(r.components);return{swagger:"2.0",info:r.info,host:(o=(d=r.servers)==null?void 0:d[0])!=null&&o.url?r.servers[0].url.split("://").pop():"",definitions:l.downgraded,securityDefinitions:(c=r.components)!=null&&c.securitySchemes?Object.fromEntries(Object.entries(r.components.securitySchemes).filter(([s,m])=>m!==void 0).map(([s,m])=>p(m).map(g=>[s,g])).flat()):void 0,paths:r.paths?Object.fromEntries(Object.entries(r.paths).filter(([s,m])=>m!==void 0).map(([s,m])=>[s,t(l)(m)])):void 0,security:r.security,tags:r.tags}};const t=r=>l=>({...l,...l.get?{get:n(r)(l.get)}:void 0,...l.put?{put:n(r)(l.put)}:void 0,...l.post?{post:n(r)(l.post)}:void 0,...l.delete?{delete:n(r)(l.delete)}:void 0,...l.options?{options:n(r)(l.options)}:void 0,...l.head?{head:n(r)(l.head)}:void 0,...l.patch?{patch:n(r)(l.patch)}:void 0,...l.trace?{trace:n(r)(l.trace)}:void 0}),n=r=>l=>({...l,parameters:l.parameters!==void 0||l.requestBody!==void 0?[...(l.parameters??[]).map(a(r)),...l.requestBody?[f(r)(l.requestBody)]:[]]:void 0,responses:l.responses?Object.fromEntries(Object.entries(l.responses).filter(([d,o])=>o!==void 0).map(([d,o])=>[d,A(r)(o)])):void 0,requestBody:void 0,servers:void 0}),a=r=>(l,d)=>{var o;return{...e.downgradeSchema(r)(l.schema),...l,required:(o=l.schema)==null?void 0:o.required,schema:void 0,name:l.name??`p${d}`,example:void 0,examples:void 0}},f=r=>l=>{var d;return{name:"body",in:"body",description:l.description,required:l.required,schema:e.downgradeSchema(r)(((d=Object.values(l.content??{})[0])==null?void 0:d.schema)??{})}},A=r=>l=>{var d;return{description:l.description,schema:e.downgradeSchema(r)(((d=Object.values(l.content??{})[0])==null?void 0:d.schema)??{}),headers:l.headers?Object.fromEntries(Object.entries(l.headers).filter(([o,c])=>c!==void 0).map(([o,c])=>[o,{...c,schema:e.downgradeSchema(r)(c.schema),example:void 0,examples:void 0}])):void 0}};e.downgradeComponents=r=>{const l={original:r,downgraded:{}};if(r.schemas){l.downgraded.schemas={};for(const[d,o]of Object.entries(r.schemas))o!==void 0&&(l.downgraded[d.split("/").pop()]=e.downgradeSchema(l)(o))}return l},e.downgradeSchema=r=>l=>{const d=u(new Set)(r.original)(l),o=[],c={title:l.title,description:l.description,example:l.example,examples:l.examples?Object.values(l.examples):void 0,...Object.fromEntries(Object.entries(l).filter(([m,g])=>m.startsWith("x-")&&g!==void 0))},s=m=>{j.isBoolean(m)?o.push({type:"boolean"}):j.isBoolean(m)||j.isInteger(m)||j.isNumber(m)||j.isString(m)?o.push({...m,examples:m.examples?Object.values(m.examples):void 0}):j.isReference(m)?o.push({$ref:`#/definitions/${m.$ref.split("/").pop()}`}):j.isArray(m)?o.push({...m,items:e.downgradeSchema(r)(m.items),examples:m.examples?Object.values(m.examples):void 0}):j.isTuple(m)?o.push({...m,items:(()=>{if(m.additionalItems===!0)return{};const g=[...m.prefixItems,...typeof m.additionalItems=="object"?[e.downgradeSchema(r)(m.additionalItems)]:[]];return g.length===0?{}:{"x-oneOf":g.map(e.downgradeSchema(r))}})(),minItems:m.prefixItems.length,maxItems:m.additionalItems?void 0:m.prefixItems.length,prefixItems:void 0,additionalItems:void 0,examples:m.examples?Object.values(m.examples):void 0}):j.isObject(m)?o.push({...m,properties:m.properties?Object.fromEntries(Object.entries(m.properties).filter(([g,y])=>y!==void 0).map(([g,y])=>[g,e.downgradeSchema(r)(y)])):void 0,additionalProperties:typeof m.additionalProperties=="object"?e.downgradeSchema(r)(m.additionalProperties):m.additionalProperties,required:m.required,examples:m.examples?Object.values(m.examples):void 0}):j.isOneOf(m)&&m.oneOf.forEach(s)};if(s(l),d)for(const m of o)j.isReference(m)?i(new Set)(r)(m):m["x-nullable"]=!0;return d===!0&&o.length===0?{type:"null",...c}:{...o.length===0?{type:void 0}:o.length===1?{...o[0]}:{"x-oneOf":o},...c,...o.length>1?{discriminator:void 0}:{}}};const i=r=>l=>d=>{var s;const o=d.$ref.split("/").pop();if(o.endsWith(".Nullable"))return;const c=(s=l.original.schemas)==null?void 0:s[o];if(c!==void 0){{if(u(r)(l.original)(c)===!0)return;l.downgraded[`${o}.Nullable`]===void 0&&(l.downgraded[`${o}.Nullable`]={},l.downgraded[`${o}.Nullable`]=e.downgradeSchema(l)(j.isOneOf(c)?{...c,oneOf:[...c.oneOf,{type:"null"}]}:{title:c.title,description:c.description,example:c.example,examples:c.examples?Object.values(c.examples):void 0,...Object.fromEntries(Object.entries(c).filter(([m,g])=>m.startsWith("x-")&&g!==void 0)),oneOf:[c,{type:"null"}]}))}d.$ref+=".Nullable"}},p=r=>{if(r.type==="apiKey")return[r];if(r.type==="http")return r.scheme==="basic"?[{type:"basic",description:r.description}]:[];if(r.type==="oauth2"){const l=[];return r.flows.implicit&&l.push({type:"oauth2",flow:"implicit",authorizationUrl:r.flows.implicit.authorizationUrl,scopes:r.flows.implicit.scopes}),r.flows.password&&l.push({type:"oauth2",flow:"password",tokenUrl:r.flows.password.tokenUrl,scopes:r.flows.password.scopes}),r.flows.clientCredentials&&l.push({type:"oauth2",flow:"application",tokenUrl:r.flows.clientCredentials.tokenUrl,scopes:r.flows.clientCredentials.scopes}),r.flows.authorizationCode&&l.push({type:"oauth2",flow:"accessCode",authorizationUrl:r.flows.authorizationCode.authorizationUrl,tokenUrl:r.flows.authorizationCode.tokenUrl,scopes:r.flows.authorizationCode.scopes}),l}return[]},u=r=>l=>d=>{var o;if(j.isNull(d))return!0;if(j.isReference(d)){if(r.has(d.$ref))return!1;r.add(d.$ref);const c=d.$ref.split("/").pop(),s=(o=l.schemas)==null?void 0:o[c];return s?u(r)(l)(s):!1}return j.isOneOf(d)&&d.oneOf.some(u(r)(l))}})(pr||(pr={}));var fr;(function(e){e.convert=d=>({openapi:"3.1.0",info:d.info,components:i(d),paths:d.paths?Object.fromEntries(Object.entries(d.paths).filter(([o,c])=>c!==void 0).map(([o,c])=>[o,t(d)(c)])):void 0,servers:d.host?[{url:d.host}]:void 0,security:d.security,tags:d.tags,"x-samchon-emended":!0});const t=d=>o=>({...o,...o.get?{get:n(d)(o)(o.get)}:void 0,...o.put?{put:n(d)(o)(o.put)}:void 0,...o.post?{post:n(d)(o)(o.post)}:void 0,...o.delete?{delete:n(d)(o)(o.delete)}:void 0,...o.options?{options:n(d)(o)(o.options)}:void 0,...o.head?{head:n(d)(o)(o.head)}:void 0,...o.patch?{patch:n(d)(o)(o.patch)}:void 0,...o.trace?{trace:n(d)(o)(o.trace)}:void 0}),n=d=>o=>c=>({...c,parameters:o.parameters!==void 0||c.parameters!==void 0?[...o.parameters??[],...c.parameters??[]].map(s=>{var m;return l.isReference(s)?(m=d.parameters)==null?void 0:m[s.$ref.split("/").pop()??""]:s}).filter(s=>s!==void 0&&s.in!=="body"&&s.schema===void 0).map(a(d.definitions??{})):void 0,requestBody:(()=>{var m;const s=(m=c.parameters)==null?void 0:m.find(g=>{var y;return l.isReference(g)&&(g=(y=d.parameters)==null?void 0:y[g.$ref.split("/").pop()??""]),(g==null?void 0:g.schema)!==void 0});return s?f(d.definitions??{})(s):void 0})(),responses:c.responses?Object.fromEntries(Object.entries(c.responses).filter(([s,m])=>m!==void 0).map(([s,m])=>[s,A(d)(m)]).filter(([s,m])=>m!==void 0)):void 0}),a=d=>o=>({name:o.name,in:o.in,description:o.description,schema:e.convertSchema(d)(o),required:!0}),f=d=>o=>({description:o.description,content:{"application/json":{schema:e.convertSchema(d)(o.schema)}}}),A=d=>o=>{var c;if(l.isReference(o)){const s=(c=d.responses)==null?void 0:c[o.$ref.split("/").pop()??""];if(s===void 0)return;o=s}return{description:o.description,content:o.schema?{"application/json":{schema:e.convertSchema(d.definitions??{})(o.schema),example:o.example}}:void 0,headers:o.headers?Object.fromEntries(Object.entries(o.headers).filter(([s,m])=>m!==void 0).map(([s,m])=>[s,{schema:e.convertSchema(d.definitions??{})(m),in:"header"}])):void 0}},i=d=>({schemas:Object.fromEntries(Object.entries(d.definitions??{}).filter(([o,c])=>c!==void 0).map(([o,c])=>[o,e.convertSchema(d.definitions??{})(c)])),securitySchemes:d.securityDefinitions?Object.fromEntries(Object.entries(d.securityDefinitions).filter(([o,c])=>c!==void 0).map(([o,c])=>[o,p(c)]).filter(([o,c])=>c!==void 0)):void 0}),p=d=>{if(d.type==="apiKey")return d;if(d.type==="basic")return{type:"http",scheme:"basic",description:d.description};if(d.type==="oauth2")return d.flow==="implicit"?{type:"oauth2",description:d.description,flows:{implicit:{authorizationUrl:d.authorizationUrl,scopes:d.scopes}}}:d.flow==="accessCode"?{type:"oauth2",description:d.description,flows:{authorizationCode:{authorizationUrl:d.authorizationUrl,tokenUrl:d.tokenUrl,scopes:d.scopes}}}:d.flow==="password"?{type:"oauth2",description:d.description,flows:{password:{tokenUrl:d.tokenUrl,scopes:d.scopes}}}:d.flow==="application"?{type:"oauth2",description:d.description,flows:{clientCredentials:{tokenUrl:d.tokenUrl,scopes:d.scopes}}}:void 0};e.convertSchema=d=>o=>{const c={value:!1,default:void 0},s=[],m={title:o.title,description:o.description,...Object.fromEntries(Object.entries(o).filter(([y,v])=>y.startsWith("x-")&&v!==void 0)),example:o.example,examples:o.examples?Object.fromEntries(o.examples.map((y,v)=>[v.toString(),y])):void 0},g=y=>{var v,T,D;y["x-nullable"]===!0&&(c.value||(c.value=!0),y.default===null&&(c.default=null)),Array.isArray(y.enum)&&((v=y.enum)!=null&&v.length)&&((T=y.enum)!=null&&T.some(_=>_===null))&&(c.value||(c.value=!0)),l.isAnyOf(y)?y["x-anyOf"].forEach(g):l.isOneOf(y)?y["x-oneOf"].forEach(g):l.isAllOf(y)?y.allOf.length===1?g(y.allOf[0]):s.push(u(d)(y)):l.isBoolean(y)||l.isInteger(y)||l.isNumber(y)||l.isString(y)?(D=y.enum)!=null&&D.length&&y.enum.filter(_=>_!==null).length?s.push(...y.enum.filter(_=>_!==null).map(_=>({const:_}))):s.push({...y,default:y.default??void 0,examples:y.examples?Object.fromEntries(y.examples.map((_,h)=>[h.toString(),_])):void 0,enum:void 0}):l.isArray(y)?s.push({...y,items:e.convertSchema(d)(y.items),examples:y.examples?Object.fromEntries(y.examples.map((_,h)=>[h.toString(),_])):void 0}):l.isObject(y)?s.push({...y,properties:y.properties?Object.fromEntries(Object.entries(y.properties).filter(([_,h])=>h!==void 0).map(([_,h])=>[_,e.convertSchema(d)(h)])):{},additionalProperties:y.additionalProperties?typeof y.additionalProperties=="object"&&y.additionalProperties!==null?e.convertSchema(d)(y.additionalProperties):y.additionalProperties:void 0,examples:y.examples?Object.fromEntries(y.examples.map((_,h)=>[h.toString(),_])):void 0,required:y.required??[]}):l.isReference(y)?s.push({...y,$ref:y.$ref.replace("#/definitions/","#/components/schemas/"),examples:y.examples?Object.fromEntries(y.examples.map((_,h)=>[h.toString(),_])):void 0}):s.push({...y,examples:y.examples?Object.fromEntries(y.examples.map((_,h)=>[h.toString(),_])):void 0})};if(g(o),c.value===!0&&!s.some(y=>y.type==="null")&&s.push({type:"null",default:c.default}),s.length===2&&s.filter(y=>j.isNull(y)).length===1){const y=s.filter(v=>j.isNull(v)===!1)[0];for(const v of["title","description","deprecated","example","examples"])y[v]!==void 0&&delete y[v]}return{...s.length===0?{type:void 0}:s.length===1?{...s[0]}:{oneOf:s.map(y=>({...y,"x-nullable":void 0}))},...m,"x-nullable":void 0}};const u=d=>o=>{const c=o.allOf.map(s=>r(d)(s));return c.some(s=>s===null)?{type:void 0,allOf:void 0}:{...o,type:"object",properties:Object.fromEntries(c.map(s=>Object.entries((s==null?void 0:s.properties)??{})).flat().map(([s,m])=>[s,e.convertSchema(d)(m)])),allOf:void 0,required:[...new Set(c.map(s=>(s==null?void 0:s.required)??[]).flat())]}},r=d=>(o,c=new Set)=>l.isObject(o)?o.properties!==void 0&&!o.additionalProperties?o:null:c.has(o)?null:(c.add(o),l.isReference(o)?r(d)((d==null?void 0:d[o.$ref.split("/").pop()??""])??{},c):null);let l;(function(d){d.isBoolean=o=>o.type==="boolean",d.isInteger=o=>o.type==="integer",d.isNumber=o=>o.type==="number",d.isString=o=>o.type==="string",d.isArray=o=>o.type==="array",d.isObject=o=>o.type==="object",d.isReference=o=>o.$ref!==void 0,d.isAllOf=o=>o.allOf!==void 0,d.isOneOf=o=>o["x-oneOf"]!==void 0,d.isAnyOf=o=>o["x-anyOf"]!==void 0,d.isNullOnly=o=>o.type==="null"})(l||(l={}))})(fr||(fr={}));var Ua;(function(e){function t(a){if(cr.is(a))return dr.convert(a);if(lr.is(a))return qa.convert(a);if(ur.is(a))return fr.convert(a);throw new TypeError("Unrecognized Swagger/OpenAPI version.")}e.convert=t;function n(a,f){if(f==="2.0")return pr.downgrade(a);if(f==="3.0")return Ra.downgrade(a);throw new TypeError("Unrecognized Swagger/OpenAPI version.")}e.downgrade=n})(Ua||(Ua={}));class Wl extends Error{constructor(t,n,a,f,A){super(A),this.method=t,this.path=n,this.status=a,this.headers=f,this.body_=ti;const i=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,i):this.__proto__=i}toJSON(){if(this.body_===ti)try{this.body_=JSON.parse(this.message)}catch{this.body_=this.message}return{method:this.method,path:this.path,status:this.status,headers:this.headers,message:this.body_}}}const ti={};var X;(function(e){function t(A){const i=[];for(let u=0;u<A.length;u++){const r=A.charCodeAt(u);65<=r&&r<=90&&i.push(u)}for(let u=i.length-1;u>0;--u){const r=i[u],l=i[u-1];r-l===1&&i.splice(u,1)}if(i.length!==0&&i[0]===0&&i.splice(0,1),i.length===0)return A.toLowerCase();let p="";for(let u=0;u<i.length;u++){const r=u===0?0:i[u-1],l=i[u];p+=A.substring(r,l).toLowerCase(),p+="_"}return p+=A.substring(i[i.length-1]).toLowerCase(),p}e.snake=t;function n(A){return f(i=>i.length===0?i:i[0]===i[0].toUpperCase()?i[0].toLowerCase()+i.substring(1):i)(A)}e.camel=n;function a(A){return f(i=>i.length===0?i:i[0]===i[0].toLowerCase()?i[0].toUpperCase()+i.substring(1):i)(A)}e.pascal=a;const f=A=>i=>{let p="";for(let o=0;o<i.length&&i[o]==="_";o++)p+="_";p.length!==0&&(i=i.substring(p.length));const u=[];for(let o=0;o<i.length;o++){if(i[o]!=="_")continue;const s=u[u.length-1];s===void 0||s[0]+s[1]!==o?u.push([o,1]):++s[1]}if(u.length===0)return p+A(i);let r="";for(let o=0;o<u.length;o++){const[c]=u[o];if(o===0)c===0?r+="_":r+=i.substring(0,c);else{const[s,m]=u[o-1],g=i.substring(s+m,c);g.length&&(r+=e.capitalize(g))}}const l=u[u.length-1],d=i.substring(l[0]+l[1]);return l.length&&(r+=e.capitalize(d)),p+A(r)};e.capitalize=A=>A.length!==0?A[0].toUpperCase()+A.slice(1).toLowerCase():A,e.variable=A=>e.reserved(A)===!1&&/^[a-zA-Z_$][a-zA-Z_$0-9]*$/g.test(A),e.reserved=A=>kl.has(A)})(X||(X={}));const kl=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","export","extends","false","finally","for","function","if","import","in","instanceof","module","new","null","package","public","private","protected","return","super","switch","this","throw","true","try","typeof","var","void","while","with"]);var z;(function(e){e.capitalize=t=>t.length!==0?t[0].toUpperCase()+t.slice(1).toLowerCase():t,e.pascal=t=>e.splitWithNormalization(t).filter(n=>n[0]!=="{").map(X.pascal).join(""),e.splitWithNormalization=t=>t.split("/").map(n=>e.normalize(n.trim())).filter(n=>!!n.length),e.reJoinWithDecimalParameters=t=>(t=t.split("/").map(n=>n[0]==="{"&&n[n.length-1]==="}"?`:${n.substring(1,n.length-1)}`:n).join("/"),`${t.startsWith("/")?"":"/"}${t}`),e.normalize=t=>(t=t.split(".").join("_").split("-").join("_").trim(),Jl.has(t)?`_${t}`:(t.length!==0&&"0"<=t[0]&&t[0]<="9"&&(t=`_${t}`),t)),e.escapeDuplicate=t=>n=>t.includes(n)?e.escapeDuplicate(t)(`_${n}`):n})(z||(z={}));const Jl=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","export","extends","false","finally","for","function","if","import","in","instanceof","module","new","null","package","public","private","protected","return","super","switch","this","throw","true","try","typeof","var","void","while","with"]);var fa;(function(e){e.variable=t=>e.reserved(t)===!1&&/^[a-zA-Z_$][a-zA-Z_$0-9]*$/g.test(t),e.reserved=t=>Bl.has(t)})(fa||(fa={}));const Bl=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","package","return","super","switch","this","throw","true","try","typeof","var","void","while","with"]);var mr;(function(e){e.overwrite=f=>{const A=a(f),i=t(p=>p.emendedPath.split("/").filter(u=>!!u.length&&u[0]!==":").map(z.normalize).map(u=>fa.variable(u)?u:`_${u}`))(f);for(const p of i.values())p.entries.forEach((u,r)=>{u.alias=z.escapeDuplicate([...p.children,...p.entries.filter((o,c)=>r!==c).map(o=>o.alias)].map(z.normalize))(z.normalize(u.alias));const l=[...u.route.parameters,...u.route.body?[u.route.body]:[],...u.route.headers?[u.route.headers]:[],...u.route.query?[u.route.query]:[]];l.forEach((o,c)=>o.key=z.escapeDuplicate(["connection",u.alias,...l.filter((s,m)=>c!==m).map(s=>s.key)])(o.key));const d=u.route.operation()["x-samchon-accessor"];d!==void 0&&A.get(d.join("."))===1?u.route.accessor=d:u.route.accessor=[...p.namespace,u.alias]})};const t=f=>A=>{const i=new Map;for(const p of A){const u=f(p);let r=K.take(i)(u.join("."))(()=>({namespace:u,children:new Set,entries:[]}));r.entries.push({route:p,alias:n(p)}),u.slice(0,-1).forEach((d,o,c)=>{const s=u.slice(0,c.length-o);K.take(i)(s.join("."))(()=>({namespace:s,children:new Set,entries:[]})).children.add(r.namespace.at(-1))});const l=K.take(i)("")(()=>({namespace:[],children:new Set,entries:[]}));u.length&&l.children.add(u[0])}return i},n=f=>{const A=f.method==="delete"?"erase":f.method;return f.parameters.length===0?A:A+"By"+f.parameters.map(i=>z.capitalize(i.key)).join("And")},a=f=>{var i;const A=new Map;for(const p of f){const u=(i=p.operation()["x-samchon-accessor"])==null?void 0:i.join(".");u!==void 0&&(A.has(u)?A.set(u,A.get(u)+1):A.set(u,1))}return A}})(mr||(mr={}));var hr;(function(e){e.compose=i=>{const p=a("request")(m=>f({document:i.document,name:z.pascal(`I/Api/${i.path}`)+"."+z.pascal(`${i.method}/Body`),schema:m}))(i.operation.requestBody),u=(()=>{var g,y,v,T,D;const m=a("response")(_=>f({document:i.document,name:z.pascal(`I/Api/${i.path}`)+"."+z.pascal(`${i.method}/Response`),schema:_}))(((g=i.operation.responses)==null?void 0:g["201"])??((y=i.operation.responses)==null?void 0:y["200"])??((v=i.operation.responses)==null?void 0:v.default));return m&&{...m,status:(T=i.operation.responses)!=null&&T["201"]?"201":(D=i.operation.responses)!=null&&D["200"]?"200":"default"}})(),r=[];p===!1&&r.push('supports only "application/json", "application/x-www-form-urlencoded", "multipart/form-data" and "text/plain" content type in the request body.'),u===!1&&r.push('supports only "application/json", "application/x-www-form-urlencoded" and "text/plain" content type in the response body.');const[l,d]=["header","query"].map(m=>{const g=(i.operation.parameters??[]).filter(h=>h.in===m);if(g.length===0)return null;const y=g.map(h=>{var b;return j.isObject(h.schema)||j.isReference(h.schema)&&j.isObject(((b=i.document.components.schemas)==null?void 0:b[h.schema.$ref.replace("#/components/schemas/","")])??{})?h.schema:null}).filter(h=>!!h),v=g.filter(h=>j.isBoolean(h.schema)||j.isInteger(h.schema)||j.isNumber(h.schema)||j.isString(h.schema)||j.isArray(h.schema)||j.isTuple(h.schema)),T=h=>({...h,name:m,key:m,title:()=>h.title,description:()=>h.description,example:()=>h.example,examples:()=>h.examples});if(y.length===1&&v.length===0)return T(g[0]);if(y.length>1)return r.push(`${m} typed parameters must be only one object type`),!1;const D=y[0]?j.isObject(y[0])?y[0]:(i.document.components.schemas??{})[y[0].$ref.replace("#/components/schemas/","")]:null,_=[...y.map(h=>{var b;return j.isObject(h)?h:(b=i.document.components.schemas)==null?void 0:b[h.$ref.replace("#/components/schemas/","")]}),{type:"object",properties:Object.fromEntries([...v.map(h=>[h.name,{...h.schema,description:h.schema.description??h.description}]),...D?Object.entries(D.properties??{}):[]]),required:[...new Set([...v.filter(h=>h.required).map(h=>h.name),...(D==null?void 0:D.required)??[]])]}];return g.length===0?null:T({schema:f({document:i.document,name:z.pascal(`I/Api/${i.path}`)+"."+z.pascal(`${i.method}/${m}`),schema:{type:"object",properties:Object.fromEntries([...new Map(_.map(h=>Object.entries(h.properties??{}).map(([b,M])=>[b,{...M,description:M.description??M.description}])).flat())]),required:[...new Set(_.map(h=>h.required??[]).flat())]}})})}),o=z.splitWithNormalization(i.emendedPath).filter(m=>m[0]===":").map(m=>m.substring(1)),c=(i.operation.parameters??[]).filter(m=>m.in==="path");if(o.length!==c.length)if(c.length<o.length&&c.every(m=>m.name!==void 0&&o.includes(m.name))){for(const m of o)c.find(g=>g.name===m)===void 0&&c.push({name:m,in:"path",schema:{type:"string"}});c.sort((m,g)=>o.indexOf(m.name)-o.indexOf(g.name)),i.operation.parameters=[...c,...(i.operation.parameters??[]).filter(m=>m.in!=="path")]}else r.push("number of path parameters are not matched with its full path.");if(r.length)return r;const s=(i.operation.parameters??[]).filter(m=>m.in==="path").map((m,g)=>({name:o[g],key:(()=>{let y=z.normalize(o[g]);if(fa.variable(y))return y;for(;;)if(y="_"+y,!o.some(v=>v===y))return y})(),schema:m.schema,parameter:()=>m}));return{method:i.method,path:i.path,emendedPath:i.emendedPath,accessor:["@lazy"],parameters:(i.operation.parameters??[]).filter(m=>m.in==="path").map((m,g)=>({name:o[g],key:(()=>{let y=z.normalize(o[g]);if(fa.variable(y))return y;for(;;)if(y="_"+y,!o.some(v=>v===y))return y})(),schema:m.schema,parameter:()=>m})),headers:l||null,query:d||null,body:p||null,success:u||null,exceptions:Object.fromEntries(Object.entries(i.operation.responses??{}).filter(([m])=>m!=="200"&&m!=="201"&&m!=="default").map(([m,g])=>{var y,v;return[m,{schema:((v=(y=g.content)==null?void 0:y["application/json"])==null?void 0:v.schema)??{},response:()=>g,media:()=>{var T;return((T=g.content)==null?void 0:T["application/json"])??{}}}]})),comment:()=>t({operation:i.operation,parameters:s,body:p||null}),operation:()=>i.operation}};const t=i=>{var l,d;const p=[],u=o=>{p.every(c=>c!==o)&&p.push(o)};let r=i.operation.description??"";if(i.operation.summary){const o=i.operation.summary.endsWith(".")?i.operation.summary:i.operation.summary+".";r.length&&!r.startsWith(i.operation.summary)&&(r=`${o}
10
- ${r}`)}r=r.split(`
11
- `).map(o=>o.trim()).join(`
12
- `);for(const o of i.parameters??[]){const c=o.parameter();if(c.description||c.title){const s=c.description??c.title;u(`@param ${o.name} ${n(s,o.name.length+8)}`)}}(d=(l=i.body)==null?void 0:l.description())!=null&&d.length&&u(`@param body ${n(i.body.description(),12)}`);for(const o of i.operation.security??[])for(const[c,s]of Object.entries(o))u(`@security ${[c,...s].join("")}`);return i.operation.tags&&i.operation.tags.forEach(o=>u(`@tag ${o}`)),i.operation.deprecated&&u("@deprecated"),r=r.length?p.length?`${r}
13
-
14
- ${p.join(`
15
- `)}`:r:p.join(`
16
- `),r=r.split("*/").join("*\\/"),r},n=(i,p)=>i.split(`
17
- `).map(u=>u.trim()).map((u,r)=>r===0?u:`${" ".repeat(p)}${u}`).join(`
18
- `),a=i=>p=>u=>{if(!(u!=null&&u.content))return null;const r=Object.entries(u.content).filter(([c,s])=>!!s),l=r.find(c=>u["x-nestia-encrypted"]===!0?c[0].includes("text/plain")||c[0].includes("application/json"):c[0].includes("application/json")||c[0].includes("*/*"));if(l){const{schema:c}=l[1];return c||i==="response"?{type:"application/json",name:"body",key:"body",schema:c?A(c)?c:p(c):{},description:()=>u.description,media:()=>l[1],"x-nestia-encrypted":u["x-nestia-encrypted"]}:null}const d=r.find(c=>c[0].includes("application/x-www-form-urlencoded"));if(d){const{schema:c}=d[1];return c||i==="response"?{type:"application/x-www-form-urlencoded",name:"body",key:"body",schema:c?A(c)?c:p(c):{},description:()=>u.description,media:()=>d[1]}:null}const o=r.find(c=>c[0].includes("text/plain"));if(o)return{type:"text/plain",name:"body",key:"body",schema:{type:"string"},description:()=>u.description,media:()=>o[1]};if(i==="request"){const c=r.find(s=>s[0].includes("multipart/form-data"));if(c){const{schema:s}=c[1];return{type:"multipart/form-data",name:"body",key:"body",schema:s?A(s)?s:p(s):{},description:()=>u.description,media:()=>c[1]}}}return!1},f=i=>{var p;return(p=i.document.components).schemas??(p.schemas={}),i.document.components.schemas[i.name]=i.schema,{$ref:`#/components/schemas/${i.name}`}},A=i=>j.isReference(i)||j.isBoolean(i)||j.isNumber(i)||j.isString(i)||j.isUnknown(i)||j.isOneOf(i)&&i.oneOf.every(A)||j.isArray(i)&&A(i.items)})(hr||(hr={}));var Ar;(function(e){e.compose=t=>{const n=[],f=Object.entries({...t.paths??{},...t.webhooks??{}}).map(([A,i])=>["head","get","post","put","patch","delete"].filter(p=>i[p]!==void 0).map(p=>{const u=i[p],r=hr.compose({document:t,method:p,path:A,emendedPath:z.reJoinWithDecimalParameters(A),operation:u});return Array.isArray(r)?(n.push({method:p,path:A,operation:()=>u,messages:r}),null):r})).flat().filter(A=>!!A);return mr.overwrite(f),{document:()=>t,routes:f,errors:n}}})(Ar||(Ar={}));var le;(function(e){e.execute=async t=>{var a;const n=await ni("request",t);if((a=t.route.success)==null||a.media,n.status!==200&&n.status!==201)throw new Wl(t.route.method.toUpperCase(),t.route.path,n.status,n.headers,n.body);return n.body},e.propagate=t=>ni("propagate",t)})(le||(le={}));const ni=async(e,t)=>{var l,d,o,c;const n=s=>new Error(`Error on MigrateRouteFetcher.${e}(): ${s}`);if(Array.isArray(t.parameters)){if(t.route.parameters.length!==t.parameters.length)throw n("number of parameters is not matched.")}else if(t.route.parameters.every(s=>t.parameters[s.key]!==void 0)===!1)throw n("number of parameters is not matched.");if(!!t.route.query!=!!t.query)throw n("query is not matched.");if(!!t.route.body!=(t.body!==void 0))throw n("body is not matched.");const a={...t.connection.headers??{},...(l=t.route.body)!=null&&l.type&&t.route.body.type!=="multipart/form-data"?{"Content-Type":t.route.body.type}:{}},f={...t.connection.options??{},method:t.route.method.toUpperCase(),headers:(()=>{const s=[];for(const[m,g]of Object.entries(a))if(g!==void 0)if(Array.isArray(g))for(const y of g)s.push([m,String(y)]);else s.push([m,String(g)]);return s})()};t.body!==void 0&&(f.body=((d=t.route.body)==null?void 0:d.type)==="application/x-www-form-urlencoded"?Zl(t.body):((o=t.route.body)==null?void 0:o.type)==="multipart/form-data"?Kl(t.body):((c=t.route.body)==null?void 0:c.type)==="application/json"?JSON.stringify(t.body):t.body);const A=t.connection.host.endsWith("/")===!1&&t.route.emendedPath.startsWith("/")===!1?`/${si(t)}`:si(t),i=new URL(`${t.connection.host}${A}`),p=await(t.connection.fetch??fetch)(i,f),u=p.status,r=s=>({status:u,headers:Ql(p.headers),body:s});if(u===200||u===201){if(t.route.method.toUpperCase()==="HEAD")return r(void 0);if(t.route.success===null||t.route.success.type==="text/plain")return r(await p.text());if(t.route.success.type==="application/json"){const s=await p.text();return r(s.length?JSON.parse(s):void 0)}else{if(t.route.success.type==="application/x-www-form-urlencoded")return r(new URLSearchParams(await p.text()));if(t.route.success.type==="multipart/form-data")return r(await p.formData())}throw n("Unsupported response body type.")}else{const s=(p.headers.get("content-type")??p.headers.get("Content-Type")??"").split(";")[0].trim();return s===""||s.startsWith("text/")?r(await p.text()):r(s==="application/json"?await p.json():s==="application/x-www-form-urlencoded"?new URLSearchParams(await p.text()):s==="multipart/form-data"?await p.formData():s==="application/octet-stream"?await p.blob():await p.text())}},si=e=>{let t=e.route.emendedPath;return e.route.parameters.forEach((n,a)=>{t=t.replace(`:${n.key}`,encodeURIComponent(String((Array.isArray(e.parameters)?e.parameters[a]:e.parameters[n.key])??"null")))}),e.route.query&&(t+=Gl(e.query??{})),t},Gl=e=>{const t=new URLSearchParams;for(const[n,a]of Object.entries(e))a!==void 0&&(Array.isArray(a)?a.forEach(f=>t.append(n,String(f))):t.set(n,String(a)));return t.size===0?"":`?${t.toString()}`},Zl=e=>{const t=new URLSearchParams;for(const[n,a]of Object.entries(e))a!==void 0&&(Array.isArray(a)?a.forEach(f=>t.append(n,String(f))):t.set(n,String(a)));return t},Kl=e=>{const t=new FormData,n=a=>f=>{f!==void 0&&(typeof File=="function"&&f instanceof File?t.append(a,f,f.name):t.append(a,f))};for(const[a,f]of Object.entries(e))Array.isArray(f)?f.map(n(a)):n(a)(f);return t},Ql=e=>{const t={};return e.forEach((n,a)=>{a==="set-cookie"?(t[a]??(t[a]=[]),t[a].push(...n.split(";").map(f=>f.trim()))):t[a]=n}),t};var yr;(function(e){e.application=t=>Ar.compose(Ua.convert(t)),e.execute=t=>le.execute(t),e.propagate=t=>le.propagate(t)})(yr||(yr={}));var C;(function(e){e.isNull=o=>o.type==="null",e.isUnknown=o=>o.type===void 0&&!e.isAnyOf(o)&&!e.isReference(o),e.isBoolean=o=>o.type==="boolean",e.isInteger=o=>o.type==="integer",e.isNumber=o=>o.type==="number",e.isString=o=>o.type==="string",e.isArray=o=>o.type==="array"&&o.items!==void 0,e.isObject=o=>o.type==="object",e.isReference=o=>o.$ref!==void 0,e.isAnyOf=o=>o.anyOf!==void 0,e.visit=o=>{const c=new Set,s=o.refAccessor??"$input.$defs",m=(g,y)=>{var v;if(o.closure(g,y),e.isReference(g)){const T=g.$ref.split("#/$defs/").pop();if(c.has(T)===!0)return;c.add(T);const D=(v=o.$defs)==null?void 0:v[T];D!==void 0&&m(D,`${s}[${T}]`)}else if(e.isAnyOf(g))g.anyOf.forEach((T,D)=>m(T,`${y}.anyOf[${D}]`));else if(e.isObject(g)){for(const[T,D]of Object.entries(g.properties))m(D,`${y}.properties[${JSON.stringify(T)}]`);typeof g.additionalProperties=="object"&&g.additionalProperties!==null&&m(g.additionalProperties,`${y}.additionalProperties`)}else e.isArray(g)&&m(g.items,`${y}.items`)};m(o.schema,o.accessor??"$input.schemas")},e.covers=o=>t({$defs:o.$defs,x:o.x,y:o.y,visited:new Map});const t=o=>{var g;const c=(g=o.visited.get(o.x))==null?void 0:g.get(o.y);if(c!==void 0)return c;const s=K.take(o.visited)(o.x)(()=>new Map);s.set(o.y,!0);const m=n(o);return s.set(o.y,m),m},n=o=>{if(o.x===o.y)return!0;if(e.isReference(o.x)&&e.isReference(o.y)&&o.x.$ref===o.y.$ref)return!0;const c=l(o.$defs,o.x),s=l(o.$defs,o.y);return c.some(m=>e.isUnknown(m))?!0:s.some(m=>e.isUnknown(m))?!1:s.every(m=>c.some(g=>a({$defs:o.$defs,visited:o.visited,x:g,y:m})))},a=o=>o.x===o.y||e.isUnknown(o.x)?!0:e.isUnknown(o.y)?!1:e.isNull(o.x)?e.isNull(o.y):e.isBoolean(o.x)?e.isBoolean(o.y)&&i(o.x,o.y):e.isInteger(o.x)?e.isInteger(o.y)&&p(o.x,o.y):e.isNumber(o.x)?e.isNumber(o.y)&&u(o.x,o.y):e.isString(o.x)?e.isString(o.y)&&r(o.x,o.y):e.isArray(o.x)?e.isArray(o.y)&&f({$defs:o.$defs,visited:o.visited,x:o.x,y:o.y}):e.isObject(o.x)?e.isObject(o.y)&&A({$defs:o.$defs,visited:o.visited,x:o.x,y:o.y}):e.isReference(o.x)?e.isReference(o.y)&&o.x.$ref===o.y.$ref:!1,f=o=>t({$defs:o.$defs,visited:o.visited,x:o.x.items,y:o.y.items}),A=o=>!o.x.additionalProperties&&o.y.additionalProperties||o.x.additionalProperties&&o.y.additionalProperties&&(typeof o.x.additionalProperties=="object"&&o.y.additionalProperties===!0||typeof o.x.additionalProperties=="object"&&typeof o.y.additionalProperties=="object"&&!t({$defs:o.$defs,visited:o.visited,x:o.x.additionalProperties,y:o.y.additionalProperties}))?!1:Object.entries(o.y.properties??{}).every(([c,s])=>{var g,y,v;const m=(g=o.x.properties)==null?void 0:g[c];return m===void 0||(((y=o.x.required)==null?void 0:y.includes(c))??!1)===!0&&(((v=o.y.required)==null?void 0:v.includes(c))??!1)===!1?!1:t({$defs:o.$defs,visited:o.visited,x:m,y:s})}),i=(o,c)=>{var s,m;return(s=o.enum)!=null&&s.length?!!((m=c.enum)!=null&&m.length)&&c.enum.every(g=>o.enum.includes(g)):!0},p=(o,c)=>{var s,m;return(s=o.enum)!=null&&s.length?!!((m=c.enum)!=null&&m.length)&&c.enum.every(g=>o.enum.includes(g)):o.type===c.type},u=(o,c)=>{var s,m;return(s=o.enum)!=null&&s.length?!!((m=c.enum)!=null&&m.length)&&c.enum.every(g=>o.enum.includes(g)):o.type===c.type||o.type==="number"&&c.type==="integer"},r=(o,c)=>{var s,m;return(s=o.enum)!=null&&s.length?!!((m=c.enum)!=null&&m.length)&&c.enum.every(g=>o.enum.includes(g)):o.type===c.type},l=(o,c)=>(c=d(o,c),e.isAnyOf(c)?c.anyOf.map(s=>l(o,s)).flat():[c]),d=(o,c)=>e.isReference(c)?d(o,o[c.$ref.replace("#/$defs/","")]):c})(C||(C={}));var q;(function(e){e.isNull=t=>x.isNull(t),e.isUnknown=t=>x.isUnknown(t),e.isConstant=t=>x.isConstant(t),e.isBoolean=t=>x.isBoolean(t),e.isInteger=t=>x.isInteger(t),e.isNumber=t=>x.isNumber(t),e.isString=t=>x.isString(t),e.isArray=t=>x.isArray(t),e.isObject=t=>x.isObject(t),e.isReference=t=>x.isReference(t),e.isOneOf=t=>x.isOneOf(t),e.isRecursiveReference=t=>x.isRecursiveReference({prefix:"#/$defs/",components:{schemas:t.$defs},schema:t.schema}),e.covers=t=>x.covers({prefix:"#/$defs/",components:{schemas:t.$defs},x:t.x,y:t.y}),e.visit=t=>x.visit({prefix:"#/$defs/",components:{schemas:t.$defs},closure:t.closure,schema:t.schema})})(q||(q={}));var Yl=q,gr;(function(e){e.visit=p=>{const u=p.accessor??"$input.schema";p.closure(p.schema,u),e.isObject(p.schema)?Object.entries(p.schema.properties??{}).forEach(([r,l])=>e.visit({closure:p.closure,schema:l,accessor:`${u}.properties[${JSON.stringify(r)}]`})):e.isArray(p.schema)&&e.visit({closure:p.closure,schema:p.schema.items,accessor:`${u}.items`})},e.covers=(p,u)=>p===u||e.isUnknown(p)?!0:e.isUnknown(u)?!1:e.isNullOnly(p)?e.isNullOnly(u):e.isNullOnly(u)?p.nullable===!0:p.nullable===!0&&!u.nullable?!1:e.isBoolean(p)?e.isBoolean(u)&&t(p,u):e.isInteger(p)?e.isInteger(u)&&n(p,u):e.isNumber(p)?(e.isNumber(u)||e.isInteger(u))&&a(p,u):e.isString(p)?e.isString(u)&&f(p,u):e.isArray(p)?e.isArray(u)&&A(p,u):e.isObject(p)?e.isObject(u)&&i(p,u):!1;const t=(p,u)=>p.enum===void 0||u.enum!==void 0&&p.enum.every(r=>u.enum.includes(r)),n=(p,u)=>p.enum!==void 0?u.enum!==void 0&&p.enum.every(r=>u.enum.includes(r)):p.type===u.type,a=(p,u)=>p.enum!==void 0?u.enum!==void 0&&p.enum.every(r=>u.enum.includes(r)):p.type===u.type,f=(p,u)=>p.enum!==void 0?u.enum!==void 0&&p.enum.every(r=>u.enum.includes(r)):p.type===u.type,A=(p,u)=>e.covers(p.items,u.items),i=(p,u)=>Object.entries(u.properties??{}).every(([r,l])=>{var o,c,s;const d=(o=p.properties)==null?void 0:o[r];return d===void 0||(((c=p.required)==null?void 0:c.includes(r))??!1)===!0&&(((s=u.required)==null?void 0:s.includes(r))??!1)===!1?!1:e.covers(d,l)});e.isBoolean=p=>p.type==="boolean",e.isInteger=p=>p.type==="integer",e.isNumber=p=>p.type==="number",e.isString=p=>p.type==="string",e.isArray=p=>p.type==="array",e.isObject=p=>p.type==="object",e.isNullOnly=p=>p.type==="null",e.isNullable=p=>!e.isUnknown(p)&&(e.isNullOnly(p)||p.nullable===!0),e.isUnknown=p=>p.type===void 0})(gr||(gr={}));var Xl=q,N;(function(e){e.visit=r=>{const l=r.accessor??"$input.schema";if(r.closure(r.schema,l),e.isOneOf(r.schema))r.schema.oneOf.forEach((d,o)=>e.visit({closure:r.closure,schema:d,accessor:`${l}.oneOf[${o}]`}));else if(e.isObject(r.schema)){for(const[d,o]of Object.entries(r.schema.properties))e.visit({closure:r.closure,schema:o,accessor:`${l}.properties[${JSON.stringify(d)}]`});typeof r.schema.additionalProperties=="object"&&r.schema.additionalProperties!==null&&e.visit({closure:r.closure,schema:r.schema.additionalProperties,accessor:`${l}.additionalProperties`})}else e.isArray(r.schema)&&e.visit({closure:r.closure,schema:r.schema.items,accessor:`${l}.items`})},e.covers=(r,l)=>{const d=u(r),o=u(l);return d.some(c=>e.isUnknown(c))?!0:o.some(c=>e.isUnknown(c))?!1:o.every(c=>d.some(s=>{if(s===c)return!0;if(e.isUnknown(s))return!0;if(e.isUnknown(c))return!1;if(e.isNullOnly(s))return e.isNullOnly(c);if(e.isNullOnly(c))return e.isNullable(s);if(e.isNullable(s)&&!e.isNullable(c))return!1;if(e.isBoolean(s))return e.isBoolean(c)&&t(s,c);if(e.isInteger(s))return e.isInteger(c)&&n(s,c);if(e.isNumber(s))return(e.isNumber(c)||e.isInteger(c))&&a(s,c);if(e.isString(s))return e.isString(c)&&f(s,c);if(e.isArray(s))return e.isArray(c)&&i(s,c);if(e.isObject(s))return e.isObject(c)&&p(s,c);if(e.isOneOf(s))return!1}))};const t=(r,l)=>r.enum===void 0||l.enum!==void 0&&r.enum.every(d=>l.enum.includes(d)),n=(r,l)=>r.enum!==void 0?l.enum!==void 0&&r.enum.every(d=>l.enum.includes(d)):[r.type===l.type,r.minimum===void 0||l.minimum!==void 0&&r.minimum<=l.minimum,r.maximum===void 0||l.maximum!==void 0&&r.maximum>=l.maximum,r.exclusiveMinimum!==!0||r.minimum===void 0||l.minimum!==void 0&&(l.exclusiveMinimum===!0||r.minimum<l.minimum),r.exclusiveMaximum!==!0||r.maximum===void 0||l.maximum!==void 0&&(l.exclusiveMaximum===!0||r.maximum>l.maximum),r.multipleOf===void 0||l.multipleOf!==void 0&&l.multipleOf/r.multipleOf===Math.floor(l.multipleOf/r.multipleOf)].every(d=>d),a=(r,l)=>r.enum!==void 0?l.enum!==void 0&&r.enum.every(d=>l.enum.includes(d)):[r.type===l.type||r.type==="number"&&l.type==="integer",r.minimum===void 0||l.minimum!==void 0&&r.minimum<=l.minimum,r.maximum===void 0||l.maximum!==void 0&&r.maximum>=l.maximum,r.exclusiveMinimum!==!0||r.minimum===void 0||l.minimum!==void 0&&(l.exclusiveMinimum===!0||r.minimum<l.minimum),r.exclusiveMaximum!==!0||r.maximum===void 0||l.maximum!==void 0&&(l.exclusiveMaximum===!0||r.maximum>l.maximum),r.multipleOf===void 0||l.multipleOf!==void 0&&l.multipleOf/r.multipleOf===Math.floor(l.multipleOf/r.multipleOf)].every(d=>d),f=(r,l)=>r.enum!==void 0?l.enum!==void 0&&r.enum.every(d=>l.enum.includes(d)):[r.type===l.type,r.format===void 0||l.format!==void 0&&A(r.format,l.format),r.pattern===void 0||r.pattern===l.pattern,r.minLength===void 0||l.minLength!==void 0&&r.minLength<=l.minLength,r.maxLength===void 0||l.maxLength!==void 0&&r.maxLength>=l.maxLength].every(d=>d),A=(r,l)=>r===l||r==="idn-email"&&l==="email"||r==="idn-hostname"&&l==="hostname"||["uri","iri"].includes(r)&&l==="url"||r==="iri"&&l==="uri"||r==="iri-reference"&&l==="uri-reference",i=(r,l)=>e.covers(r.items,l.items),p=(r,l)=>!r.additionalProperties&&l.additionalProperties||r.additionalProperties&&l.additionalProperties&&typeof r.additionalProperties=="object"&&l.additionalProperties===!0||typeof r.additionalProperties=="object"&&typeof l.additionalProperties=="object"&&!e.covers(r.additionalProperties,l.additionalProperties)?!1:Object.entries(l.properties??{}).every(([d,o])=>{var s,m,g;const c=(s=r.properties)==null?void 0:s[d];return c===void 0||(((m=r.required)==null?void 0:m.includes(d))??!1)===!0&&(((g=l.required)==null?void 0:g.includes(d))??!1)===!1?!1:e.covers(c,o)}),u=r=>e.isOneOf(r)?r.oneOf.flatMap(u):[r];e.isOneOf=r=>r.oneOf!==void 0,e.isObject=r=>r.type==="object",e.isArray=r=>r.type==="array",e.isBoolean=r=>r.type==="boolean",e.isInteger=r=>r.type==="integer",e.isNumber=r=>r.type==="number",e.isString=r=>r.type==="string",e.isNullOnly=r=>r.type==="null",e.isNullable=r=>!e.isUnknown(r)&&(e.isNullOnly(r)||(e.isOneOf(r)?r.oneOf.some(e.isNullable):r.nullable===!0)),e.isUnknown=r=>!e.isOneOf(r)&&r.type===void 0})(N||(N={}));const Vl=e=>{if(e.length<2)return!0;if(["boolean","bigint","number","string"].includes(typeof e[0]))return new Set(e).size===e.length;for(let t=0;t<e.length;t++)for(let n=t+1;n<e.length;n++)if(ec(new WeakMap)(e[t],e[n]))return!1;return!0},ec=e=>{const t=(n,a)=>{if(n===a)return!0;if(typeof n!=typeof a||typeof n!="object")return!1;if(Array.isArray(n))return Array.isArray(a)&&n.map((f,A)=>t(f,a[A])).every(f=>f);if(n instanceof Set)return a instanceof Set&&n.size===a.size&&[...n].every(f=>a.has(f));if(n instanceof Map)return a instanceof Map&&n.size===a.size&&[...n].every(([f,A])=>a.has(f)&&t(A,a.get(f)));if(n instanceof Boolean)return a instanceof Boolean?n.valueOf()===a.valueOf():n.valueOf()===a;if(n instanceof BigInt)return a instanceof BigInt?n===a:n===BigInt(a);if(n instanceof Number)return a instanceof Number?n.valueOf()===a.valueOf():n.valueOf()===a;if(n instanceof String)return a instanceof String?n.valueOf()===a.valueOf():n.valueOf()===a;if(n instanceof Date)return a instanceof Date&&n.getTime()===a.getTime();if(n instanceof Uint8Array)return a instanceof Uint8Array&&n.length===a.length&&n.every((f,A)=>f===a[A]);if(n instanceof Uint8ClampedArray)return a instanceof Uint8ClampedArray&&n.length===a.length&&n.every((f,A)=>f===a[A]);if(n instanceof Uint16Array)return a instanceof Uint16Array&&n.length===a.length&&n.every((f,A)=>f===a[A]);if(n instanceof Uint32Array)return a instanceof Uint32Array&&n.length===a.length&&n.every((f,A)=>f===a[A]);if(n instanceof BigUint64Array)return a instanceof BigUint64Array&&n.length===a.length&&n.every((f,A)=>f===a[A]);if(n instanceof Int8Array)return a instanceof Int8Array&&n.length===a.length&&n.every((f,A)=>f===a[A]);if(n instanceof Int16Array)return a instanceof Int16Array&&n.length===a.length&&n.every((f,A)=>f===a[A]);if(n instanceof Int32Array)return a instanceof Int32Array&&n.length===a.length&&n.every((f,A)=>f===a[A]);if(n instanceof BigInt64Array)return a instanceof BigInt64Array&&n.length===a.length&&n.every((f,A)=>f===a[A]);if(n instanceof Float32Array)return a instanceof Float32Array&&n.length===a.length&&n.every((f,A)=>f===a[A]);if(n instanceof Float64Array)return a instanceof Float64Array&&n.length===a.length&&n.every((f,A)=>f===a[A]);if(n instanceof ArrayBuffer){if(!(a instanceof ArrayBuffer)||n.byteLength!==a.byteLength)return!1;const f=new Uint8Array(n),A=new Uint8Array(a);return f.every((i,p)=>i===A[p])}else if(n instanceof SharedArrayBuffer){if(!(a instanceof SharedArrayBuffer)||n.byteLength!==a.byteLength)return!1;const f=new Uint8Array(n),A=new Uint8Array(a);return f.every((i,p)=>i===A[p])}else if(n instanceof DataView){if(!(a instanceof DataView)||n.byteLength!==a.byteLength)return!1;const f=new Uint8Array(n.buffer),A=new Uint8Array(a.buffer);return f.every((i,p)=>i===A[p])}else{if(n instanceof File)return a instanceof File&&n.name===a.name&&n.size===a.size&&n.type===a.type&&t(n.slice(),a.slice());if(n!==null&&a!==null){if(e.has(n)&&e.get(n).has(a))return e.get(n).get(a);e.has(n)||e.set(n,new WeakMap),e.get(n).set(a,!0);const f=Object.keys(n).length===Object.keys(a).length&&Object.keys(n).every(A=>t(n[A],a[A]));return e.get(n).set(a,f),f}}return!1};return t};var Tr;(function(e){e.validate=t=>Array.isArray(t.value)===!1?t.report(t):[t.value.map((n,a)=>L.validate({...t,schema:t.schema.items,value:n,path:`${t.path}[${a}]`,required:!0})).every(n=>n),t.schema.minItems!==void 0?t.value.length>=t.schema.minItems||t.report({...t,expected:`Array<> & MinItems<${t.schema.minItems}>`}):!0,t.schema.maxItems!==void 0?t.value.length<=t.schema.maxItems||t.report({...t,expected:`Array<> & MaxItems<${t.schema.maxItems}>`}):!0,t.schema.uniqueItems!==void 0&&t.schema.uniqueItems?Vl(t.value)||t.report({...t,expected:"Array<> & UniqueItems"}):!0].every(n=>n)})(Tr||(Tr={}));var $r;(function(e){e.validate=t=>typeof t.value=="boolean"||t.report(t)})($r||($r={}));var vr;(function(e){e.validate=t=>t.value===t.schema.const||t.report(t)})(vr||(vr={}));var jr;(function(e){e.validate=t=>typeof t.value!="number"||Math.floor(t.value)!==t.value?t.report(t):[t.schema.minimum!==void 0?t.schema.exclusiveMinimum?t.value>t.schema.minimum||t.report({...t,expected:`number & Type<"int32"> & ExclusiveMinimum<${t.schema.minimum}>`}):t.value>=t.schema.minimum||t.report({...t,expected:`number & Type<"int32"> & Minimum<${t.schema.minimum}>`}):!0,t.schema.maximum!==void 0?t.schema.exclusiveMaximum?t.value<t.schema.maximum||t.report({...t,expected:`number & Type<"int32"> & ExclusiveMaximum<${t.schema.maximum}>`}):t.value<=t.schema.maximum||t.report({...t,expected:`number & Type<"int32"> & Maximum<${t.schema.maximum}>`}):!0,t.schema.multipleOf!==void 0?t.value%t.schema.multipleOf===0||t.report({...t,expected:`number & Type<"int32"> & MultipleOf<${t.schema.multipleOf}>`}):!0].every(n=>n)})(jr||(jr={}));var Er;(function(e){e.validate=t=>typeof t.value!="number"?t.report(t):[t.schema.minimum!==void 0?t.schema.exclusiveMinimum?t.value>t.schema.minimum||t.report({...t,expected:`number & ExclusiveMinimum<${t.schema.minimum}>`}):t.value>=t.schema.minimum||t.report({...t,expected:`number & Minimum<${t.schema.minimum}>`}):!0,t.schema.maximum!==void 0?t.schema.exclusiveMaximum?t.value<t.schema.maximum||t.report({...t,expected:`number & ExclusiveMaximum<${t.schema.maximum}>`}):t.value<=t.schema.maximum||t.report({...t,expected:`number & Maximum<${t.schema.maximum}>`}):!0,t.schema.multipleOf!==void 0?t.value%t.schema.multipleOf===0||t.report({...t,expected:`number & MultipleOf<${t.schema.multipleOf}>`}):!0].every(n=>n)})(Er||(Er={}));var br;(function(e){e.validate=t=>typeof t.value!="object"||t.value===null?t.report(t):[...Object.entries(t.schema.properties??{}).map(([n,a])=>{var f;return L.validate({...t,schema:a,value:t.value[n],path:t.path+(X.variable(n)?`.${n}`:`[${JSON.stringify(n)}]`),required:((f=t.schema.required)==null?void 0:f.includes(n))??!1})}),...typeof t.schema.additionalProperties=="object"&&t.schema.additionalProperties!==null?Object.entries(t.value).filter(([n])=>Object.keys(t.schema.properties??{}).includes(n)===!1).map(([n,a])=>L.validate({...t,schema:t.schema.additionalProperties,value:a,path:t.path+(X.variable(n)?`.${n}`:`[${JSON.stringify(n)}]`),required:!0})):[]].every(n=>n)})(br||(br={}));var Mr;(function(e){e.validate=f=>{const A=t(f);for(const i of A.branches)if(i.predicator(f.value))return L.validate({...f,schema:i.schema});return A.branches.length===0?A.remainders.map(i=>L.validate({...f,schema:i,exceptionable:!1})).some(i=>i)||f.report(f):e.validate({...f,schema:{oneOf:A.remainders}})};const t=f=>{const A=f.schema.oneOf.map(o=>Dr({components:f.components,schema:o,visited:new Set})),i=A.find(o=>j.isUnknown(o.escaped));if(i)return{branches:[],remainders:[i.schema]};const p=A.filter(o=>j.isNull(o.schema)),u=A.filter(o=>j.isNull(o.escaped)===!1);if(u.length===1)return{branches:[{schema:u[0].schema,predicator:o=>o!==null}],remainders:p.map(o=>o.schema)};const r=u.filter(o=>j.isTuple(o.escaped)),l=u.filter(o=>j.isArray(o.escaped)),d=[...r.length===0&&l.length!==0?n(f,u.filter(o=>j.isArray(o.schema))):[],...a(f,u.filter(o=>j.isObject(o.escaped)),r.length+l.length===0)];return{branches:d,remainders:f.schema.oneOf.filter(o=>d.some(c=>c.schema===o)===!1)}},n=(f,A)=>A.length===1?[{schema:A[0].schema,predicator:i=>Array.isArray(i)}]:A.filter((i,p,u)=>u.every((r,l)=>p===l||!j.covers({components:f.components,x:r.escaped.items,y:i.escaped.items}))).map(i=>({schema:i.schema,predicator:p=>Array.isArray(p)&&(p.length===0||L.validate({...f,schema:i.escaped.items,value:p[0],path:`${f.path}[0]`,exceptionable:!1}))})),a=(f,A,i)=>{if(A.length===1)return[{schema:A[0].schema,predicator:i?u=>typeof u=="object"&&u!==null:u=>typeof u=="object"&&u!==null&&Array.isArray(u)===!1}];A=A.filter(u=>u.escaped.properties!==void 0&&u.escaped.required!==void 0).map(u=>({...u,escaped:{...u.escaped,properties:Object.fromEntries(Object.entries(u.escaped.properties??{}).map(([r,l])=>[r,Dr({components:f.components,schema:l,visited:new Set}).escaped]))}}));const p=new Map;return A.forEach((u,r)=>{var l;for(const[d,o]of Object.entries(u.escaped.properties??{}))(l=u.escaped.required)!=null&&l.includes(d)&&(K.take(p)(d)(()=>new Array(A.length).fill(null))[r]=o)}),A.map((u,r)=>{var c;const l=[];for(const[s,m]of Object.entries(u.escaped.properties??{})){if(!((c=u.escaped.required)!=null&&c.includes(s)))continue;const g=p.get(s).filter((v,T)=>r!==T).filter(v=>v!==null);(j.isConstant(m)?g.every(v=>j.isConstant(v)&&m.const!==v.const):g.length===0)&&l.push(s)}if(l.length===0)return null;const d=l.find(s=>j.isConstant(u.escaped.properties[s]))??l[0],o=u.escaped.properties[d];return{schema:u.schema,predicator:j.isConstant(o)?s=>typeof s=="object"&&s!==null&&s[d]===o.const:s=>typeof s=="object"&&s!==null&&s[d]!==void 0}}).filter(u=>u!==null)}})(Mr||(Mr={}));const Dr=e=>{var t;if(j.isReference(e.schema)){const n=e.schema.$ref.split("/").pop()??"";return e.visited.has(n)?{schema:e.schema,escaped:{}}:(e.visited.add(n),{...Dr({components:e.components,schema:((t=e.components.schemas)==null?void 0:t[n])??{},visited:e.visited}),schema:e.schema})}return{schema:e.schema,escaped:e.schema}};var _r;(function(e){e.getName=(p,u=!1)=>j.isUnknown(p)?"unknown":j.isNull(p)?"null":j.isOneOf(p)?p.oneOf.map(r=>e.getName(r,!0)).join(" | "):j.isConstant(p)?JSON.stringify(p.const):j.isBoolean(p)?"boolean":j.isInteger(p)?i(t(p),u):j.isNumber(p)?i(n(p),u):j.isString(p)?i(a(p),u):j.isReference(p)?p.$ref.split("/").pop()??"unknown":j.isObject(p)?"__object":j.isArray(p)?i(f(p),u):j.isTuple(p)?A(p):"unknown";const t=p=>["number",...p.minimum!==void 0?[p.exclusiveMinimum?`tags.ExclusiveMinimum<${p.minimum}>`:`tags.Minimum<${p.minimum}>`]:[],...p.maximum!==void 0?[p.exclusiveMaximum?`tags.ExclusiveMaximum<${p.maximum}>`:`tags.Maximum<${p.maximum}>`]:[],...p.multipleOf!==void 0?[`tags.MultipleOf<${p.multipleOf}>`]:[]],n=p=>["number",...p.minimum!==void 0?[p.exclusiveMinimum?`tags.ExclusiveMinimum<${p.minimum}>`:`tags.Minimum<${p.minimum}>`]:[],...p.maximum!==void 0?[p.exclusiveMaximum?`tags.ExclusiveMaximum<${p.maximum}>`:`tags.Maximum<${p.maximum}>`]:[],...p.multipleOf!==void 0?[`tags.MultipleOf<${p.multipleOf}>`]:[]],a=p=>["string",...p.format!==void 0?[`tags.Format<${JSON.stringify(p.format)}>`]:[],...p.pattern!==void 0&&p.format===void 0?[`tags.Pattern<${JSON.stringify(p.pattern)}>`]:[],...p.contentMediaType!==void 0?[`tags.ContentMediaType<${JSON.stringify(p.contentMediaType)}>`]:[],...p.minLength!==void 0?[`tags.MinLength<${p.minLength}>`]:[],...p.maxLength!==void 0?[`tags.MaxLength<${p.maxLength}>`]:[]],f=p=>[`Array<${e.getName(p.items)}>`,...p.minItems!==void 0?[`tags.MinItems<${p.minItems}>`]:[],...p.maxItems!==void 0?[`tags.MaxItems<${p.maxItems}>`]:[],...p.uniqueItems!==void 0?["tags.UniqueItems"]:[]],A=p=>"["+[...p.prefixItems.map(u=>e.getName(u)),...p.additionalItems===!0?["...Array<unknown>"]:typeof p.additionalItems=="object"&&p.additionalItems!==null?[`...Array<${e.getName(p.additionalItems)}>`]:[]].join(", ")+"]",i=(p,u)=>{const r=p.join(" & ");return u?`(${r})`:r}})(_r||(_r={}));const tc=e=>(ai.lastIndex=0,ai.test(e)),ai=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm,nc=e=>sc.test(e),sc=/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/,ac=e=>rc.test(e),rc=/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])(T|\s)([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](?:\.[0-9]{1,9})?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$/i,ic=e=>oc.test(e),oc=/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,lc=e=>cc.test(e),cc=/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,uc=e=>dc.test(e),dc=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,pc=e=>fc.test(e),fc=/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,mc=e=>hc.test(e),hc=/^([a-z0-9\u00a1-\uffff0-9]+(-[a-z0-9\u00a1-\uffff0-9]+)*\.)+[a-z\u00a1-\uffff]{2,}$/i,Ac=e=>yc.test(e),yc=/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,gc=e=>Tc.test(e),Tc=/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,$c=e=>vc.test(e),vc=/^[A-Za-z][\d+-.A-Za-z]*:[^\u0000-\u0020"<>\\^`{|}]*$/u,jc=e=>Ec.test(e),Ec=/^[A-Za-z][\d+-.A-Za-z]*:[^\u0000-\u0020"<>\\^`{|}]*$/u,bc=e=>Mc.test(e),Mc=/^(?:\/(?:[^~/]|~0|~1)*)*$/,Dc=e=>{try{return new RegExp(e),!0}catch{return!1}},_c=e=>Oc.test(e),Oc=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,xc=e=>Sc.test(e),Sc=/^([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](?:\.[0-9]{1,9})?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$/i,wc=e=>Pc.test(e)&&Rc.test(e),Pc=/\/|:/,Rc=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,qc=e=>Uc.test(e),Uc=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,Cc=e=>zc.test(e),zc=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,Fc=e=>Nc.test(e),Nc=/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,Ic=e=>Hc.test(e),Hc=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;var Or;(function(e){e.validate=t=>typeof t.value!="string"?t.report(t):[t.schema.minLength!==void 0?t.value.length>=t.schema.minLength||t.report({...t,expected:`string & MinLength<${t.schema.minLength}>`}):!0,t.schema.maxLength!==void 0?t.value.length<=t.schema.maxLength||t.report({...t,expected:`string & MaxLength<${t.schema.maxLength}>`}):!0,t.schema.pattern!==void 0?new RegExp(t.schema.pattern).test(t.value)||t.report({...t,expected:`string & Pattern<${JSON.stringify(t.schema.pattern)}>`}):!0,t.schema.format&&ri[t.schema.format]?ri[t.schema.format](t.value)||t.report({...t,expected:`string & Format<${JSON.stringify(t.schema.format)}>`}):!0].every(n=>n)||t.report(t)})(Or||(Or={}));const ri={byte:tc,regex:Dc,uuid:Ic,email:lc,hostname:uc,"idn-email":pc,"idn-hostname":mc,iri:$c,"iri-reference":jc,ipv4:Ac,ipv6:gc,uri:wc,"uri-reference":qc,"uri-template":Cc,url:Fc,"date-time":ac,date:nc,time:xc,duration:ic,"json-pointer":bc,"relative-json-pointer":_c};var xr;(function(e){e.validate=t=>{if(Array.isArray(t.value)){if(!t.schema.additionalItems)return t.value.length!==t.schema.prefixItems.length?t.report(t):t.value.map((a,f)=>L.validate({...t,schema:t.schema.prefixItems[f],value:a,path:`${t.path}[${f}]`})).every(a=>a)}else return t.report(t);if(t.value.length<t.schema.prefixItems.length)return t.report(t);const n=typeof t.schema.additionalItems=="object"&&t.schema.additionalItems!==null?(a,f)=>L.validate({...t,schema:t.schema.additionalItems,value:a,path:`${t.path}[${f}]`}):()=>!0;return t.value.length>=t.schema.prefixItems.length&&t.value.map((a,f)=>f<t.schema.prefixItems.length?L.validate({...t,schema:t.schema.prefixItems[f],value:a,path:`${t.path}[${f}]`}):n(a,f)).every(a=>a)}})(xr||(xr={}));var L;(function(e){e.validate=(t,n)=>{var a;if(n??(n=(()=>{const f=_r.getName(t.schema);return t.required?f:`${f} | undefined`})()),j.isUnknown(t.schema))return!0;if(t.value===void 0)return t.required===!1||t.report({...t,expected:n});if(j.isNull(t.schema))return t.value===null||t.report({...t,expected:n});if(j.isReference(t.schema)){const f=(a=t.components.schemas)==null?void 0:a[t.schema.$ref.split("/").pop()??""];return f===void 0?!0:e.validate({...t,schema:f},n)}else{if(j.isOneOf(t.schema))return Mr.validate({...t,schema:t.schema,expected:n});if(j.isConstant(t.schema))return vr.validate({...t,schema:t.schema,expected:n});if(j.isBoolean(t.schema))return $r.validate({...t,schema:t.schema,expected:n});if(j.isInteger(t.schema))return jr.validate({...t,schema:t.schema,expected:n});if(j.isNumber(t.schema))return Er.validate({...t,schema:t.schema,expected:n});if(j.isString(t.schema))return Or.validate({...t,schema:t.schema,expected:n});if(j.isArray(t.schema))return Tr.validate({...t,schema:t.schema,expected:n});if(j.isTuple(t.schema))return xr.validate({...t,schema:t.schema,expected:n});if(j.isObject(t.schema))return br.validate({...t,schema:t.schema,expected:n})}return!0}})(L||(L={}));var ce;(function(e){e.create=n=>a=>e.validate({...n,value:a}),e.validate=n=>{const a=[];return L.validate({...n,path:"$input",exceptionable:!0,report:t(a)}),a.length===0?{success:!0,data:n.value}:{success:!1,data:n.value,errors:a}};const t=n=>{const a=f=>{if(n.length===0)return!0;const A=n[n.length-1].path;return f.length>A.length||A.substring(0,f.length)!==f};return f=>(f.exceptionable&&a(f.path)&&n.push({path:f.path,expected:f.expected,value:f.value}),!1)}})(ce||(ce={}));var k;(function(e){e.numeric=n=>{const a=n.split(`
19
- `),f=t({type:"number",name:"exclusiveMinimum",lines:a}),A=t({type:"number",name:"exclusiveMaximum",lines:a});return{minimum:f??t({type:"number",name:"minimum",lines:a}),maximum:A??t({type:"number",name:"maximum",lines:a}),exclusiveMinimum:f!==void 0?!0:void 0,exclusiveMaximum:A!==void 0?!0:void 0,multipleOf:t({type:"number",name:"multipleOf",lines:a})}},e.string=n=>{const a=n.split(`
20
- `);return{format:t({type:"string",name:"format",lines:a}),pattern:t({type:"string",name:"pattern",lines:n.split(`
21
- `)}),contentMediaType:t({type:"string",name:"contentMediaType",lines:a}),minLength:t({type:"number",name:"minLength",lines:a}),maxLength:t({type:"number",name:"maxLength",lines:n.split(`
22
- `)})}},e.array=n=>{const a=n.split(`
23
- `);return{minItems:t({type:"number",name:"minItems",lines:a}),maxItems:t({type:"number",name:"maxItems",lines:a}),uniqueItems:t({type:"boolean",name:"uniqueItems",lines:a})}};const t=n=>{if(n.type==="boolean")return n.lines.some(a=>a.startsWith(`@${n.name}`))?!0:void 0;for(const a of n.lines){if(a.startsWith(`@${n.name} `)===!1)continue;const f=a.replace(`@${n.name} `,"").trim();return n.type==="number"?isNaN(Number(f))?void 0:Number(f):f}}})(k||(k={}));var Q;(function(e){e.shiftArray=t=>{const n=[];return t.minItems!==void 0&&(n.push(`@minItems ${t.minItems}`),delete t.minItems),t.maxItems!==void 0&&(n.push(`@maxItems ${t.maxItems}`),delete t.maxItems),t.uniqueItems!==void 0&&(t.uniqueItems===!0&&n.push("@uniqueItems"),delete t.uniqueItems),t.description=Ka({description:t.description,tags:n}),t},e.shiftNumeric=t=>{const n=[];return t.exclusiveMinimum===void 0&&t.minimum!==void 0&&(n.push(`@minimum ${t.minimum}`),delete t.minimum),t.exclusiveMaximum===void 0&&t.maximum!==void 0&&(n.push(`@maximum ${t.maximum}`),delete t.maximum),t.minimum!==void 0&&t.exclusiveMinimum===!0&&(n.push(`@exclusiveMinimum ${t.minimum}`),delete t.minimum,delete t.exclusiveMinimum),t.maximum!==void 0&&t.exclusiveMaximum===!0&&(n.push(`@exclusiveMaximum ${t.maximum}`),delete t.maximum,delete t.exclusiveMaximum),t.multipleOf!==void 0&&(n.push(`@multipleOf ${t.multipleOf}`),delete t.multipleOf),t.description=Ka({description:t.description,tags:n}),t.default!==void 0&&(n.push(`@default ${t.default}`),delete t.default),t},e.shiftString=t=>{const n=[];return t.minLength!==void 0&&(n.push(`@minLength ${t.minLength}`),delete t.minLength),t.maxLength!==void 0&&(n.push(`@maxLength ${t.maxLength}`),delete t.maxLength),t.format!==void 0&&(n.push(`@format ${t.format}`),delete t.format),t.pattern!==void 0&&(n.push(`@pattern ${t.pattern}`),delete t.pattern),t.contentMediaType!==void 0&&(n.push(`@contentMediaType ${t.contentMediaType}`),delete t.contentMediaType),t.default!==void 0&&(n.push(`@default ${t.default}`),delete t.default),t.description=Ka({description:t.description,tags:n}),t}})(Q||(Q={}));const Ka=e=>{var t;return e.tags.length===0?e.description:[...(t=e.description)!=null&&t.length?[e.description,`
24
- `]:[],...e.tags].join(`
25
- `)};var ma;(function(e){e.parameters=n=>{const a=j.unreference(n);return a.success===!1?a:j.isObject(a.value)===!1?t({...n,message:"LLM only accepts object type as parameters."}):a.value.additionalProperties?t({...n,message:"LLM does not allow additional properties on parameters."}):{success:!0,value:a.value}};const t=n=>({success:!1,error:{method:n.method,message:"failed to compose LLM schema.",reasons:[{schema:n.schema,message:n.message,accessor:n.accessor??"$input.schema"}]}})})(ma||(ma={}));var F;(function(e){e.IS_DEFS=!0,e.parameters=i=>{const p=ma.parameters({...i,method:"LlmSchemaV3_1Composer.parameters"});if(p.success===!1)return p;const u={},r=e.schema({...i,$defs:u,schema:p.value});return r.success===!1?r:{success:!0,value:{...r.value,additionalProperties:!1,$defs:u}}},e.schema=i=>{const p=[],u={title:i.schema.title,description:i.schema.description,example:i.schema.example,examples:i.schema.examples,...Object.fromEntries(Object.entries(i.schema).filter(([d,o])=>d.startsWith("x-")&&o!==void 0))},r=[];if(j.visit({closure:(d,o)=>{var c;if(i.validate&&r.push(...i.validate(d,o)),j.isTuple(d))r.push({schema:d,accessor:o,message:"LLM does not allow tuple type."});else if(j.isReference(d)){const s=d.$ref.split("#/components/schemas/")[1];((c=i.components.schemas)==null?void 0:c[s])===void 0&&r.push({schema:d,accessor:o,message:`unable to find reference type ${JSON.stringify(s)}.`})}},components:i.components,schema:i.schema,accessor:i.accessor,refAccessor:i.refAccessor}),r.length>0)return{success:!1,error:{method:"LlmSchemaV3_1Composer.schema",message:"Failed to compose LLM schema of v3.1",reasons:r}};const l=(d,o)=>{var c;if(j.isOneOf(d))return d.oneOf.forEach((s,m)=>l(s,`${o}.oneOf[${m}]`)),0;if(j.isReference(d)){const s=d.$ref.split("#/components/schemas/")[1],m=(c=i.components.schemas)==null?void 0:c[s];if(m===void 0)return p.push(null);if(i.config.reference===!0||j.isRecursiveReference({components:i.components,schema:d})){const g=()=>p.push({...d,$ref:`#/$defs/${s}`});if(i.$defs[s]!==void 0)return g();i.$defs[s]={};const y=e.schema({config:i.config,components:i.components,$defs:i.$defs,schema:m,refAccessor:i.refAccessor,accessor:`${i.refAccessor??"$def"}[${JSON.stringify(s)}]`});return y.success===!1?p.push(null):(i.$defs[s]=y.value,g())}else{const g=p.length;return l(m,o),g===p.length-1&&p[p.length-1]!==null?p[p.length-1]={...p[p.length-1],description:oe.cascade({prefix:"#/components/schemas/",components:i.components,$ref:d.$ref,description:p[p.length-1].description,escape:!0})}:u.description=oe.cascade({prefix:"#/components/schemas/",components:i.components,$ref:d.$ref,description:u.description,escape:!0}),p.length}}else if(j.isObject(d)){const s=Object.entries(d.properties??{}).reduce((g,[y,v])=>{const T=e.schema({config:i.config,components:i.components,$defs:i.$defs,schema:v,refAccessor:i.refAccessor,accessor:`${o}.properties[${JSON.stringify(y)}]`});return g[y]=T.success?T.value:null,T.success===!1&&r.push(...T.error.reasons),g},{});if(Object.values(s).some(g=>g===null))return p.push(null);const m=(()=>{if(typeof d.additionalProperties=="object"&&d.additionalProperties!==null){const g=e.schema({config:i.config,components:i.components,$defs:i.$defs,schema:d.additionalProperties,refAccessor:i.refAccessor,accessor:`${o}.additionalProperties`});return g.success===!1?(r.push(...g.error.reasons),null):g.value}return d.additionalProperties})();return m===null?p.push(null):p.push({...d,properties:s,additionalProperties:m,required:d.required??[]})}else if(j.isArray(d)){const s=e.schema({config:i.config,components:i.components,$defs:i.$defs,schema:d.items,refAccessor:i.refAccessor,accessor:`${o}.items`});return s.success===!1?(r.push(...s.error.reasons),p.push(null)):p.push((i.config.constraint?m=>m:m=>Q.shiftArray(m))({...d,items:s.value}))}else return j.isString(d)?p.push((i.config.constraint?s=>s:s=>Q.shiftString(s))({...d})):j.isNumber(d)||j.isInteger(d)?p.push((i.config.constraint?s=>s:s=>Q.shiftNumeric(s))({...d})):j.isTuple(d)?p.push(null):p.push({...d})};return l(i.schema,i.accessor??"$input.schema"),p.some(d=>d===null)?{success:!1,error:{method:"LlmSchemaV3_1Composer.schema",message:"Failed to compose LLM schema of v3.1",reasons:r}}:p.length===0?{success:!0,value:{...u,type:void 0}}:p.length===1?{success:!0,value:{...u,...p[0],description:q.isReference(p[0])?void 0:p[0].description}}:{success:!0,value:{...u,oneOf:p.map(d=>({...d,description:q.isReference(d)?void 0:d.description}))}}},e.separateParameters=i=>{const p=i.convention??((d,o)=>`${d}.${X.capitalize(o)}`),[u,r]=a({$defs:i.parameters.$defs,schema:i.parameters,predicate:i.predicate,convention:p});if(u===null||r===null)return{llm:u??{type:"object",properties:{},additionalProperties:!1,required:[],$defs:{}},human:r};const l={llm:{...u,$defs:Object.fromEntries(Object.entries(i.parameters.$defs).filter(([d])=>d.endsWith(".Llm"))),additionalProperties:!1},human:{...r,$defs:Object.fromEntries(Object.entries(i.parameters.$defs).filter(([d])=>d.endsWith(".Human"))),additionalProperties:!1}};for(const d of Object.keys(i.parameters.$defs))d.endsWith(".Llm")===!1&&d.endsWith(".Human")===!1&&delete i.parameters.$defs[d];if(Object.keys(l.llm.properties).length!==0){const d={};l.validate=ce.create({components:d,schema:e.invert({components:d,schema:l.llm,$defs:l.llm.$defs}),required:!0})}return l};const t=i=>i.predicate(i.schema)===!0?[null,i.schema]:q.isUnknown(i.schema)||q.isOneOf(i.schema)?[i.schema,null]:q.isObject(i.schema)?a({predicate:i.predicate,convention:i.convention,$defs:i.$defs,schema:i.schema}):q.isArray(i.schema)?n({predicate:i.predicate,convention:i.convention,$defs:i.$defs,schema:i.schema}):q.isReference(i.schema)?f({predicate:i.predicate,convention:i.convention,$defs:i.$defs,schema:i.schema}):[i.schema,null],n=i=>{const[p,u]=t({predicate:i.predicate,convention:i.convention,$defs:i.$defs,schema:i.schema.items});return[p!==null?{...i.schema,items:p}:null,u!==null?{...i.schema,items:u}:null]},a=i=>{if(Object.keys(i.schema.properties??{}).length===0&&!i.schema.additionalProperties)return[i.schema,null];const p={...i.schema,properties:{},additionalProperties:i.schema.additionalProperties},u={...i.schema,properties:{}};for(const[r,l]of Object.entries(i.schema.properties??{})){const[d,o]=t({predicate:i.predicate,convention:i.convention,$defs:i.$defs,schema:l});d!==null&&(p.properties[r]=d),o!==null&&(u.properties[r]=o)}if(typeof i.schema.additionalProperties=="object"&&i.schema.additionalProperties!==null){const[r,l]=t({predicate:i.predicate,convention:i.convention,$defs:i.$defs,schema:i.schema.additionalProperties});p.additionalProperties=r??!1,u.additionalProperties=l??!1}return[Object.keys(p.properties).length||p.additionalProperties?A(p):null,Object.keys(u.properties).length||u.additionalProperties?A(u):null]},f=i=>{var c,s,m,g,y;const p=i.schema.$ref.split("#/$defs/")[1],u=i.convention(p,"human"),r=i.convention(p,"llm");if((c=i.$defs)!=null&&c[u]||(s=i.$defs)!=null&&s[r])return[(m=i.$defs)!=null&&m[r]?{...i.schema,$ref:`#/$defs/${r}`}:null,(g=i.$defs)!=null&&g[u]?{...i.schema,$ref:`#/$defs/${u}`}:null];i.$defs[r]={},i.$defs[u]={};const l=(y=i.$defs)==null?void 0:y[p],[d,o]=t({predicate:i.predicate,convention:i.convention,$defs:i.$defs,schema:l});return d===null||o===null?(delete i.$defs[r],delete i.$defs[u],d===null?[null,i.schema]:[i.schema,null]):[d!==null?{...i.schema,$ref:`#/$defs/${r}`}:null,o!==null?{...i.schema,$ref:`#/$defs/${u}`}:null]},A=i=>(i.required!==void 0&&(i.required=i.required.filter(p=>{var u;return((u=i.properties)==null?void 0:u[p])!==void 0})),i);e.invert=i=>{var r;var p;const u=l=>e.invert({components:i.components,$defs:i.$defs,schema:l});if(q.isArray(i.schema))return{...k.array(i.schema.description??""),...i.schema,items:u(i.schema.items)};if(q.isObject(i.schema))return{...i.schema,properties:i.schema.properties?Object.fromEntries(Object.entries(i.schema.properties).map(([l,d])=>[l,u(d)])):void 0,additionalProperties:typeof i.schema.additionalProperties=="object"&&i.schema.additionalProperties!==null?u(i.schema.additionalProperties):i.schema.additionalProperties};if(q.isReference(i.schema)){const l=i.schema.$ref.split("#/$defs/").at(-1)??"";return((r=i.components.schemas)==null?void 0:r[l])===void 0&&((p=i.components).schemas??(p.schemas={}),i.components.schemas[l]={},i.components.schemas[l]=u(i.$defs[l]??{})),{...i.schema,$ref:`#/components/schemas/${l}`}}else{if(q.isInteger(i.schema)||q.isNumber(i.schema))return{...k.numeric(i.schema.description??""),...i.schema};if(q.isString(i.schema))return{...k.string(i.schema.description??""),...i.schema}}return i.schema}})(F||(F={}));var V;(function(e){e.IS_DEFS=!0,e.parameters=u=>{var r;(r=u.config).strict??(r.strict=!1);const l=F.parameters({...u,config:{reference:u.config.reference,constraint:!1},validate:u.config.strict===!0?t:void 0});if(l.success===!1)return l;for(const d of Object.keys(l.value.$defs))l.value.$defs[d]=n({config:u.config,schema:l.value.$defs[d]});return{success:!0,value:n({config:u.config,schema:l.value})}},e.schema=u=>{var r;(r=u.config).strict??(r.strict=!1);const l=new Set(Object.keys(u.$defs)),d=F.schema({...u,config:{reference:u.config.reference,constraint:!1},validate:u.config.strict===!0?t:void 0});if(d.success===!1)return d;for(const o of Object.keys(u.$defs))l.has(o)===!1&&(u.$defs[o]=n({config:u.config,schema:u.$defs[o]}));return{success:!0,value:n({config:u.config,schema:d.value})}};const t=(u,r)=>{var d;const l=[];if(j.isObject(u)){u.additionalProperties&&l.push({schema:u,accessor:`${r}.additionalProperties`,message:"ChatGPT does not allow additionalProperties in strict mode, the dynamic key typed object."});for(const o of Object.keys(u.properties??{}))((d=u.required)==null?void 0:d.includes(o))===!1&&l.push({schema:u,accessor:`${r}.properties.${o}`,message:"ChatGPT does not allow optional properties in strict mode."})}return l},n=u=>{const r=[],l={title:u.schema.title,description:u.schema.description,example:u.schema.example,examples:u.schema.examples,...Object.fromEntries(Object.entries(e.schema).filter(([c,s])=>c.startsWith("x-")&&s!==void 0))},d=c=>{q.isOneOf(c)?c.oneOf.forEach(d):q.isArray(c)?r.push({...c,items:n({config:u.config,schema:c.items})}):q.isObject(c)?r.push({...c,properties:Object.fromEntries(Object.entries(c.properties).map(([s,m])=>[s,n({config:u.config,schema:m})])),additionalProperties:u.config.strict===!0?!1:typeof c.additionalProperties=="object"&&c.additionalProperties!==null?n({config:u.config,schema:c.additionalProperties}):c.additionalProperties}):q.isConstant(c)===!1&&r.push(c)},o=c=>{const s=m=>{const g=r.find(y=>(y==null?void 0:y.type)===typeof m);g!==void 0?(g.enum??(g.enum=[]),g.enum.push(m)):r.push({type:typeof m,enum:[m]})};j.isConstant(c)?s(c.const):j.isOneOf(c)&&c.oneOf.forEach(m=>o(m))};return d(u.schema),o(u.schema),r.length===0?{...l,type:void 0}:r.length===1?{...l,...r[0],description:C.isReference(r[0])?void 0:r[0].description??l.description}:{...l,anyOf:r.map(c=>({...c,description:C.isReference(c)?void 0:c.description}))}};e.separateParameters=u=>{const r=u.convention??((c,s)=>`${c}.${X.capitalize(s)}`),[l,d]=A({predicate:u.predicate,convention:r,$defs:u.parameters.$defs,schema:u.parameters});if(l===null||d===null)return{llm:l??{type:"object",properties:{},required:[],additionalProperties:!1,$defs:{}},human:d};const o={llm:{...l,$defs:Object.fromEntries(Object.entries(u.parameters.$defs).filter(([c])=>c.endsWith(".Llm"))),additionalProperties:!1},human:{...d,$defs:Object.fromEntries(Object.entries(u.parameters.$defs).filter(([c])=>c.endsWith(".Human"))),additionalProperties:!1}};for(const c of Object.keys(u.parameters.$defs))c.endsWith(".Llm")===!1&&c.endsWith(".Human")===!1&&delete u.parameters.$defs[c];if(Object.keys(o.llm.properties).length!==0){const c={};o.validate=ce.create({components:c,schema:e.invert({components:c,schema:o.llm,$defs:o.llm.$defs}),required:!0})}return o};const a=u=>u.predicate(u.schema)===!0?[null,u.schema]:C.isUnknown(u.schema)||C.isAnyOf(u.schema)?[u.schema,null]:C.isObject(u.schema)?A({predicate:u.predicate,convention:u.convention,$defs:u.$defs,schema:u.schema}):C.isArray(u.schema)?f({predicate:u.predicate,convention:u.convention,$defs:u.$defs,schema:u.schema}):C.isReference(u.schema)?i({predicate:u.predicate,convention:u.convention,$defs:u.$defs,schema:u.schema}):[u.schema,null],f=u=>{const[r,l]=a({predicate:u.predicate,convention:u.convention,$defs:u.$defs,schema:u.schema.items});return[r!==null?{...u.schema,items:r}:null,l!==null?{...u.schema,items:l}:null]},A=u=>{if(Object.keys(u.schema.properties??{}).length===0&&!u.schema.additionalProperties)return[u.schema,null];const r={...u.schema,properties:{},additionalProperties:u.schema.additionalProperties},l={...u.schema,properties:{}};for(const[d,o]of Object.entries(u.schema.properties??{})){const[c,s]=a({predicate:u.predicate,convention:u.convention,$defs:u.$defs,schema:o});c!==null&&(r.properties[d]=c),s!==null&&(l.properties[d]=s)}if(typeof u.schema.additionalProperties=="object"&&u.schema.additionalProperties!==null){const[d,o]=a({predicate:u.predicate,convention:u.convention,$defs:u.$defs,schema:u.schema.additionalProperties});r.additionalProperties=d??!1,l.additionalProperties=o??!1}return[Object.keys(r.properties).length||r.additionalProperties?p(r):null,Object.keys(l.properties).length||l.additionalProperties?p(l):null]},i=u=>{var m,g,y,v,T;const r=u.schema.$ref.split("#/$defs/")[1],l=u.convention(r,"human"),d=u.convention(r,"llm");if((m=u.$defs)!=null&&m[l]||(g=u.$defs)!=null&&g[d])return[(y=u.$defs)!=null&&y[d]?{...u.schema,$ref:`#/$defs/${d}`}:null,(v=u.$defs)!=null&&v[l]?{...u.schema,$ref:`#/$defs/${l}`}:null];u.$defs[d]={},u.$defs[l]={};const o=(T=u.$defs)==null?void 0:T[r],[c,s]=a({predicate:u.predicate,convention:u.convention,$defs:u.$defs,schema:o});return c===null||s===null?(delete u.$defs[d],delete u.$defs[l],c===null?[null,u.schema]:[u.schema,null]):[c!==null?{...u.schema,$ref:`#/$defs/${d}`}:null,s!==null?{...u.schema,$ref:`#/$defs/${l}`}:null]},p=u=>(u.required=u.required.filter(r=>{var l;return((l=u.properties)==null?void 0:l[r])!==void 0}),u);e.invert=u=>{const r=[],l={title:u.schema.title,description:u.schema.description,...Object.fromEntries(Object.entries(u.schema).filter(([c,s])=>c.startsWith("x-")&&s!==void 0)),example:u.schema.example,examples:u.schema.examples},d=c=>e.invert({components:u.components,$defs:u.$defs,schema:c}),o=c=>{var m,g,y,v;var s;if(C.isArray(c))r.push({...k.array(c.description??""),...c,items:d(c.items)});else if(C.isObject(c))r.push({...c,properties:Object.fromEntries(Object.entries(c.properties).map(([T,D])=>[T,d(D)])),additionalProperties:typeof c.additionalProperties=="object"&&c.additionalProperties!==null?d(c.additionalProperties):c.additionalProperties});else if(C.isAnyOf(c))c.anyOf.forEach(o);else if(C.isReference(c)){const T=c.$ref.split("#/$defs/")[1];((m=u.components.schemas)==null?void 0:m[T])===void 0&&((s=u.components).schemas??(s.schemas={}),u.components.schemas[T]={},u.components.schemas[T]=d(u.$defs[T]??{})),r.push({...c,$ref:`#/components/schemas/${T}`})}else C.isBoolean(c)?(g=c.enum)!=null&&g.length?c.enum.forEach(T=>r.push({const:T})):r.push(c):C.isInteger(c)||C.isNumber(c)?(y=c.enum)!=null&&y.length?c.enum.forEach(T=>r.push({const:T})):r.push({...k.numeric(c.description??""),...c,enum:void 0}):C.isString(c)?(v=c.enum)!=null&&v.length?c.enum.forEach(T=>r.push({const:T})):r.push({...k.string(c.description??""),...c,enum:void 0}):r.push({...c})};return o(u.schema),{...r.length===0?{type:void 0}:r.length===1?{...r[0]}:{oneOf:r.map(c=>({...c,nullable:void 0}))},...l}}})(V||(V={}));var ee;(function(e){e.IS_DEFS=!0,e.parameters=t=>F.parameters({...t,config:{reference:t.config.reference,constraint:!0}}),e.schema=t=>F.schema({...t,config:{reference:t.config.reference,constraint:!0}}),e.separateParameters=t=>F.separateParameters(t),e.invert=t=>F.invert(t)})(ee||(ee={}));var J;(function(e){e.IS_DEFS=!1,e.parameters=A=>{const i=ma.parameters({...A,method:"LlmSchemaV3Composer.parameters"});if(i.success===!1)return i;const p=e.schema({...A,schema:i.value});return p.success===!1?p:{success:!0,value:{...p.value,additionalProperties:!1}}},e.schema=A=>{const i=[];if(j.visit({closure:(r,l)=>{var d;if(A.validate&&i.push(...A.validate(r,l)),j.isTuple(r))i.push({accessor:l,schema:r,message:"LLM does not allow tuple type."});else if(j.isReference(r)){const o=r.$ref.split("#/components/schemas/")[1];((d=A.components.schemas)==null?void 0:d[o])===void 0&&i.push({schema:r,message:`${l}: unable to find reference type ${JSON.stringify(o)}.`,accessor:l})}},components:A.components,schema:A.schema,accessor:A.accessor,refAccessor:A.refAccessor}),i.length>0)return{success:!1,error:{method:"LlmSchemaV3Composer.schema",message:"Failed to compose LLM schema of v3",reasons:i}};const p=j.escape({...A,recursive:A.config.recursive});if(p.success===!1)return{success:!1,error:{method:"LlmSchemaV3Composer.schema",message:"Failed to compose LLM schema of v3",reasons:p.error.reasons}};const u=Ra.downgradeSchema({original:{schemas:{}},downgraded:{}})(p.value);return N.visit({closure:r=>{N.isOneOf(r)&&r.discriminator!==void 0?delete r.discriminator:N.isObject(r)&&(r.properties??(r.properties={}),r.required??(r.required=[])),A.config.constraint===!1&&(N.isInteger(r)||N.isNumber(r)?Q.shiftNumeric(r):N.isString(r)?Q.shiftString(r):N.isArray(r)&&Q.shiftArray(r))},schema:u}),{success:!0,value:u}},e.separateParameters=A=>{const[i,p]=a({predicate:A.predicate,schema:A.parameters});return{llm:i??{type:"object",properties:{},additionalProperties:!1,required:[]},human:p,validate:i?ce.create({components:{},schema:e.invert({schema:i}),required:!0}):void 0}};const t=A=>A.predicate(A.schema)===!0?[null,A.schema]:N.isUnknown(A.schema)||N.isOneOf(A.schema)?[A.schema,null]:N.isObject(A.schema)?a({predicate:A.predicate,schema:A.schema}):N.isArray(A.schema)?n({predicate:A.predicate,schema:A.schema}):[A.schema,null],n=A=>{const[i,p]=t({predicate:A.predicate,schema:A.schema.items});return[i!==null?{...A.schema,items:i}:null,p!==null?{...A.schema,items:p}:null]},a=A=>{if(Object.keys(A.schema.properties??{}).length===0&&!A.schema.additionalProperties)return[A.schema,null];const i={...A.schema,properties:{},additionalProperties:A.schema.additionalProperties},p={...A.schema,properties:{},additionalProperties:A.schema.additionalProperties};for(const[u,r]of Object.entries(A.schema.properties??{})){const[l,d]=t({predicate:A.predicate,schema:r});l!==null&&(i.properties[u]=l),d!==null&&(p.properties[u]=d)}if(typeof A.schema.additionalProperties=="object"&&A.schema.additionalProperties!==null){const[u,r]=t({predicate:A.predicate,schema:A.schema.additionalProperties});i.additionalProperties=u??!1,p.additionalProperties=r??!1}return[Object.keys(i.properties).length||i.additionalProperties?f(i):null,Object.keys(p.properties).length||p.additionalProperties?f(p):null]},f=A=>(A.required=A.required.filter(i=>A.properties[i]!==void 0),A);e.invert=A=>{const i=qa.convertSchema({})(A.schema);return j.visit({closure:p=>{j.isArray(p)?Object.assign(p,{...k.array(p.description??""),...p}):j.isInteger(p)||j.isNumber(p)?Object.assign(p,{...k.numeric(p.description??""),...p}):j.isString(p)&&Object.assign(p,{...k.string(p.description??""),...p})},components:{},schema:i}),i}})(J||(J={}));var te;(function(e){e.IS_DEFS=!1,e.parameters=t=>{const n=ma.parameters({...t,method:"GeminiSchemaComposer.parameters"});return n.success===!1?n:e.schema({...t,schema:n.value})},e.schema=t=>{const n=J.schema({...t,config:{recursive:t.config.recursive,constraint:!1},validate:(a,f)=>{if(j.isObject(a)){if(a.additionalProperties)return[{schema:a,accessor:`${f}.additionalProperties`,message:"Gemini does not allow additionalProperties."}]}else if(j.isOneOf(a)&&Lc(t.components)(a))return[{schema:a,accessor:f,message:"Gemini does not allow union type."}];return[]}});return n.success===!1||N.visit({schema:n.value,closure:a=>{if(a.title!==void 0){if(a.description===void 0)a.description=a.title;else{const f=a.title.endsWith(".")?a.title.substring(0,a.title.length-1):a.title;a.description=a.description.startsWith(f)?a.description:`${f}.
26
-
27
- ${a.description}`}delete a.title}N.isObject(a)&&a.additionalProperties!==void 0&&delete a.additionalProperties}}),n},e.separateParameters=t=>J.separateParameters(t),e.invert=t=>J.invert(t)})(te||(te={}));const Lc=e=>t=>{const n=[],a=new Set,f=i=>{var p;if(j.isBoolean(i)||j.isInteger(i)||j.isNumber(i)||j.isString(i))n.push({...i});else if(j.isArray(i)||j.isTuple(i)||j.isObject(i))n.push(i);else if(j.isOneOf(i))i.oneOf.forEach(f);else if(j.isReference(i))if(a.has(i.$ref))n.push(i);else{a.add(i.$ref);const u=(p=e.schemas)==null?void 0:p[i.$ref.split("/").pop()];u===void 0?n.push(i):f(u)}},A=i=>{const p=u=>{const r=n.find(l=>l.type===typeof u);r!==void 0?(r.enum??(r.enum=[]),r.enum.push(u)):n.push({type:typeof u,enum:[u]})};if(j.isConstant(i))p(i.const);else if(j.isOneOf(i))for(const u of i.oneOf)j.isConstant(u)&&p(u.const)};return f(t),A(t),n.length>1};var ne;(function(e){e.IS_DEFS=!0,e.parameters=t=>F.parameters({...t,config:{reference:t.config.reference,constraint:!0}}),e.schema=t=>F.schema({...t,config:{reference:t.config.reference,constraint:!0}}),e.separateParameters=t=>F.separateParameters(t),e.invert=t=>F.invert(t)})(ne||(ne={}));var ie;(function(e){e.parameters=t=>Wc[t],e.schema=t=>kc[t],e.defaultConfig=t=>Gc[t],e.typeChecker=t=>Zc[t],e.separateParameters=t=>Jc[t],e.invert=t=>Bc[t],e.isDefs=t=>Kc[t]()})(ie||(ie={}));const Wc={chatgpt:V.parameters,claude:ee.parameters,gemini:te.parameters,llama:ne.parameters,"3.0":J.parameters,3.1:F.parameters},kc={chatgpt:V.schema,claude:ee.schema,gemini:te.schema,llama:ne.schema,"3.0":J.schema,3.1:F.schema},Jc={chatgpt:V.separateParameters,claude:ee.separateParameters,gemini:te.separateParameters,llama:ne.separateParameters,"3.0":J.separateParameters,3.1:F.separateParameters},Bc={chatgpt:V.invert,claude:ee.invert,gemini:te.invert,llama:ne.invert,"3.0":J.invert,3.1:F.invert},Gc={chatgpt:{reference:!1,strict:!1},claude:{reference:!1},gemini:{recursive:3},llama:{reference:!1},"3.0":{constraint:!0,recursive:3},3.1:{constraint:!0,reference:!1}},Zc={chatgpt:C,claude:Yl,gemini:gr,llama:Xl,"3.0":N,3.1:q},Kc={chatgpt:()=>V.IS_DEFS,claude:()=>ee.IS_DEFS,gemini:()=>te.IS_DEFS,llama:()=>ne.IS_DEFS,"3.0":()=>J.IS_DEFS,3.1:()=>F.IS_DEFS};var Sr;(function(e){e.application=n=>{var i;const a=n.migrate.errors.filter(p=>p.operation()["x-samchon-human"]!==!0).map(p=>({method:p.method,path:p.path,messages:p.messages,operation:()=>p.operation(),route:()=>{}})),f=n.migrate.routes.filter(p=>p.operation()["x-samchon-human"]!==!0).map((p,u)=>{var d,o;if(p.method==="head")return a.push({method:p.method,path:p.path,messages:["HEAD method is not supported in the LLM application."],operation:()=>p.operation(),route:()=>p}),null;if(((d=p.body)==null?void 0:d.type)==="multipart/form-data"||((o=p.success)==null?void 0:o.type)==="multipart/form-data")return a.push({method:p.method,path:p.path,messages:['The "multipart/form-data" content type is not supported in the LLM application.'],operation:()=>p.operation(),route:()=>p}),null;const r=[],l=t({model:n.model,config:n.options,components:n.migrate.document().components,route:p,errors:r});return l===null&&a.push({method:p.method,path:p.path,messages:r,operation:()=>p.operation(),route:()=>p}),l}).filter(p=>p!==null),A={model:n.model,options:n.options,functions:f,errors:a};return e.shorten(A,((i=n.options)==null?void 0:i.maxLength)??64),A};const t=n=>{const a=`$input.paths[${JSON.stringify(n.route.path)}][${JSON.stringify(n.route.method)}]`,f=n.route.operation(),A=(()=>{var s,m,g,y;if(!((s=f.summary)!=null&&s.length)||!((m=f.description)!=null&&m.length))return[f.summary||f.description,((g=f.summary)==null?void 0:g.length)??((y=f.description)==null?void 0:y.length)??0];const o=f.summary.endsWith(".")?f.summary.slice(0,-1):f.summary,c=f.description.startsWith(o)?f.description:o+`.
28
-
29
- `+f.description;return[c,c.length]})();A[1]>1024&&n.errors.push(`The description of the function is too long (must be equal or less than 1,024 characters, but ${A[1].toLocaleString()} length).`);const i=Yc(n.route.accessor.join("_")),p=/^[a-zA-Z0-9_-]+$/.test(i),u=/^[0-9]/.test(i[0]??"");p===!1&&n.errors.push("Elements of path (separated by '/') must be composed with alphabets, numbers, underscores, and hyphens");const r={type:"object",properties:Object.fromEntries([...n.route.parameters.map(o=>[o.key,{...o.schema,title:o.parameter().title??o.schema.title,description:o.parameter().description??o.schema.description}]),...n.route.query?[[n.route.query.key,{...n.route.query.schema,title:n.route.query.title()??n.route.query.schema.title,description:n.route.query.description()??n.route.query.schema.description}]]:[],...n.route.body?[[n.route.body.key,{...n.route.body.schema,description:n.route.body.description()??n.route.body.schema.description}]]:[]])};r.required=Object.keys(r.properties??{});const l=ie.parameters(n.model)({config:n.config,components:n.components,schema:r,accessor:`${a}.parameters`}),d=n.route.success?ie.schema(n.model)({config:n.config,components:n.components,schema:n.route.success.schema,accessor:`${a}.responses[${JSON.stringify(n.route.success.status)}][${JSON.stringify(n.route.success.type)}].schema`,$defs:l.success?l.value.$defs:{}}):void 0;return(d==null?void 0:d.success)===!1||l.success===!1||p===!1||u===!0||A[1]>1024?((d==null?void 0:d.success)===!1&&n.errors.push(...d.error.reasons.map(o=>`${o.accessor}: ${o.message}`)),l.success===!1&&n.errors.push(...l.error.reasons.map(o=>{var s;return`${o.accessor.replace('parameters.properties["body"]',`requestBody.content[${JSON.stringify(((s=n.route.body)==null?void 0:s.type)??"application/json")}].schema`)}: ${o.message}`})),null):{method:n.route.method,path:n.route.path,name:i,parameters:l.value,separated:n.config.separate?ie.separateParameters(n.model)({predicate:n.config.separate,parameters:l.value}):void 0,output:d==null?void 0:d.value,description:A[0],deprecated:f.deprecated,tags:f.tags,validate:ce.create({components:n.components,schema:r,required:!0}),route:()=>n.route,operation:()=>n.route.operation()}};e.shorten=(n,a=64)=>{const f=new Set,A=[];for(const p of n.functions)f.add(p.name),p.name.length>a&&A.push(p);if(A.length===0)return;let i=0;for(const p of A){let u=!1,r=l=>{f.delete(p.name),f.add(l),p.name=l,u=!0};for(let l=1;l<p.route().accessor.length;++l){const d=p.route().accessor.slice(l).join("_");if(!(d.length>a-8)){if(f.has(d)===!1)r(d);else{const o=`_${i}_${d}`;if(f.has(o)===!0)continue;r(o),++i}break}}u===!1&&r(Qc())}}})(Sr||(Sr={}));const Qc=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)}),Yc=e=>{for(const t of Xc)e=e.split(t).join("_");return e},Xc=["$","%","."];var Ca;(function(e){e.execute=n=>le.execute(t("execute",n)),e.propagate=n=>le.propagate(t("propagate",n));const t=(n,a)=>{const f=a.function.route(),A=a.input;if((typeof A=="object"&&A!==null)===!1)throw new Error(`Error on HttpLlmFunctionFetcher.${n}(): keyworded arguments must be an object`);return{connection:a.connection,route:f,parameters:Object.fromEntries(f.parameters.map(p=>[p.key,A[p.key]])),query:A.query,body:A.body}}})(Ca||(Ca={}));var za;(function(e){e.parameters=n=>{if(n.function.separated===void 0)throw new Error("Error on OpenAiDataComposer.parameters(): the function parameters are not separated.");return e.value(n.llm,n.human)},e.value=(n,a)=>typeof n=="object"&&typeof a=="object"&&n!==null&&a!==null?t(n,a):Array.isArray(n)&&Array.isArray(a)?new Array(Math.max(n.length,a.length)).fill(0).map((f,A)=>e.value(n[A],a[A])):a??n;const t=(n,a)=>{const f={...n};for(const[A,i]of Object.entries(a))f[A]=e.value(n[A],i);return f}})(za||(za={}));var wr;(function(e){e.application=t=>{var a,f;const n=yr.application(t.document);return Sr.application({migrate:n,model:t.model,options:{...ie.defaultConfig(t.model),separate:((a=t.options)==null?void 0:a.separate)??null,maxLength:((f=t.options)==null?void 0:f.maxLength)??null}})},e.execute=t=>Ca.execute(t),e.propagate=t=>Ca.propagate(t),e.mergeParameters=t=>za.parameters(t),e.mergeValue=(t,n)=>za.value(t,n)})(wr||(wr={}));const Vc=e=>{const[t,n]=W.useState(null);if(W.useEffect(()=>{(async()=>{n(wr.application({model:"chatgpt",document:Ua.convert(await fetch("https://raw.githubusercontent.com/samchon/shopping-backend/refs/heads/master/packages/api/customer.swagger.json").then(f=>f.json()))}))})().catch(console.error)},[]),t===null)return O.jsxs("div",{children:[O.jsx("h2",{children:"Loading Swagger document"}),O.jsx("hr",{}),O.jsx("p",{children:"Wait for a moment please."}),O.jsx("p",{children:"Loading Swagger document..."})]});const a=new Li({model:"chatgpt",vendor:{api:e.api,model:"gpt-4o-mini"},controllers:[{protocol:"http",name:"main",application:t,connection:e.connection}],config:{locale:e.locale}});return O.jsx(Wi,{agent:a,title:"Agentica Shopping Chatbot"})},eu=()=>{const[e,t]=W.useState(""),[n,a]=W.useState("gpt-4o-mini"),[f,A]=W.useState(window.navigator.language),[i,p]=W.useState("John Doe"),[u,r]=W.useState("821012345678"),[l,d]=W.useState(!1),[o,c]=W.useState(null),s=async()=>{d(!0);const m={host:"https://shopping-be.wrtn.ai"};await ei.functional.shoppings.customers.authenticate.create(m,{channel_code:"samchon",external_user:null,href:window.location.href,referrer:window.document.referrer}),await ei.functional.shoppings.customers.authenticate.activate(m,{mobile:u,name:i}),c({api:new Gi({apiKey:e,dangerouslyAllowBrowser:!0}),connection:m,name:i,mobile:u,locale:f})};return O.jsx("div",{style:{width:"100%",height:"100%",overflow:o!==null?void 0:"auto"},children:o!==null?O.jsx(Vc,{...o}):O.jsxs(ki,{style:{width:"calc(100% - 60px)",padding:15,margin:15},children:[O.jsx(ba,{variant:"h4",children:"Shopping AI Chatbot"}),O.jsx("br",{}),O.jsx(Zi,{}),O.jsx("br",{}),"Demonstration of Agentica with Shopping Backend API.",O.jsx("br",{}),O.jsx("br",{}),O.jsx(eo,{href:"https://github.com/samchon/shopping-backend",target:"_blank",children:"https://github.com/samchon/shopping-backend"}),O.jsx("br",{}),O.jsx("br",{}),O.jsx(ba,{variant:"h6",children:" OpenAI Configuration "}),O.jsx(va,{onChange:m=>t(m.target.value),defaultValue:e,label:"OpenAI API Key",variant:"outlined",placeholder:"Your OpenAI API Key",error:e.length===0}),O.jsx("br",{}),O.jsxs(Ji,{defaultValue:n,onChange:(m,g)=>a(g),style:{paddingLeft:15},children:[O.jsx(Br,{control:O.jsx(Gr,{}),label:"GPT-4o Mini",value:"gpt-4o-mini"}),O.jsx(Br,{control:O.jsx(Gr,{}),label:"GPT-4o",value:"gpt-4o"})]}),O.jsx("br",{}),O.jsx(ba,{variant:"h6",children:" Membership Information "}),O.jsx("br",{}),O.jsx(va,{onChange:m=>A(m.target.value),defaultValue:f,label:"Locale",variant:"outlined",error:f.length===0}),O.jsx("br",{}),O.jsx(va,{onChange:m=>p(m.target.value),defaultValue:i,label:"Name",variant:"outlined",error:i.length===0}),O.jsx("br",{}),O.jsx(va,{onChange:m=>r(m.target.value),defaultValue:u,label:"Mobile",variant:"outlined",error:u.length===0}),O.jsx("br",{}),O.jsx("br",{}),O.jsx(Bi,{component:"a",fullWidth:!0,variant:"contained",color:"info",size:"large",disabled:l||e.length===0||f.length===0||i.length===0||u.length===0,onClick:()=>s(),children:l?"Starting...":"Start AI Chatbot"})]})})};Di(window.document.getElementById("root")).render(O.jsx(eu,{}));