@enviabybus/react-utility-belt 2.2.0 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/services.cjs.js +5 -5
- package/dist/services.es.js +147 -144
- package/dist/src/services/http/axios.adapter.d.ts.map +1 -1
- package/dist/src/services/http/http.service.d.ts.map +1 -1
- package/dist/src/services/services.d.ts.map +1 -1
- package/dist/src/services/tracker/posthog.adapter.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/services.cjs.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";var It=e=>{throw TypeError(e)};var ct=(e,t,r)=>t.has(e)||It("Cannot "+r);var d=(e,t,r)=>(ct(e,t,"read from private field"),r?r.call(e):t.get(e)),T=(e,t,r)=>t.has(e)?It("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),S=(e,t,r,n)=>(ct(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),x=(e,t,r)=>(ct(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ee=require("./chunks/http.helper.DIOQCl86.js"),ge=require("react"),mr=require("react/jsx-runtime"),Z=require("./errors.cjs.js");function Gr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const _=Gr(ge),Xr=e=>({...t})=>e(t),Zr=({useAdapter:e,LoggerService:t})=>$e("ERROR_SERVICE",Xr(e),[t.ServiceProvider]),Yr=()=>({LoggerService:e})=>{const t=ke(e),r=ge.useRef({}),n=(a,f)=>{const u=r.current;r.current={...u,[a]:[...u[a]||[],f]}},s=(a,f)=>{const u=r.current;r.current={...u,[a]:u[a].filter(c=>c!==f)}};return{raiseError:a=>{var f;t.error(a),(f=r.current[a.code])==null||f.forEach(u=>u(a))},useErrorHandler:(a,f)=>{const u=ee.compilerRuntimeExports.c(4);let c,h;u[0]!==f||u[1]!==a?(c=()=>(n(a,f),()=>{s(a,f)}),h=[a,f],u[0]=f,u[1]=a,u[2]=c,u[3]=h):(c=u[2],h=u[3]),ge.useEffect(c,h)}}},en=e=>({ErrorService:t,LoggerService:r})=>{const n=e(),s=ke(r),o=ke(t),i=E=>{const w=ee.lodashExports.omitBy(E,ee.lodashExports.isNil);s.info(`HTTP request: ${JSON.stringify(w)}`)},a=E=>{const{body:w,status:O}=E;s.info(`HTTP response: ${JSON.stringify({body:w,status:O})}`)},f=E=>E>=400&&E<600,u=E=>{const{details:w,message:O}=E;return o.raiseError(new Z.HttpServiceError({code:Z.HttpServiceErrorCode.Unauthorized,details:w,message:O}))},c=E=>{const{status:w}=E.details||{};if(!w||w>=500){const O=JSON.stringify(E);s.error(O)}else{if(w===401)return u(E);s.warn(E)}return o.raiseError(E)},h=async(E,w,O={})=>{i({method:E,...w});let A,F;const N=L=>{if(L instanceof Z.HttpServiceError){F=L;return}A=L};switch(E){case"GET":{N(await n.get(w,O));break}case"DELETE":{N(await n.delete(w,O));break}case"PATCH":{N(await n.patch(w,O));break}case"POST":{N(await n.post(w,O));break}case"PUT":{N(await n.put(w,O));break}default:throw Error(`Unknown method HTTP method '${E}'`)}if(F)throw F;return A?(a(A),f(A.status)&&c(new Z.HttpServiceError({details:{body:JSON.stringify(A.body),method:E,status:A.status,url:w.url}})),A):void 0};return{delete:(E,w={})=>h("DELETE",E,w),get:(E,w={})=>h("GET",E,w),patch:(E,w={})=>h("PATCH",E,w),post:async(E,w={})=>await h("POST",E,w),put:(E,w={})=>h("PUT",E,w)}},tn=({useAdapter:e,ErrorService:t,LoggerService:r})=>$e("HTTP_SERVICE",en(e),[t.ServiceProvider,r.ServiceProvider]);function yr(e,t){return function(){return e.apply(t,arguments)}}const{toString:rn}=Object.prototype,{getPrototypeOf:At}=Object,{iterator:et,toStringTag:br}=Symbol,tt=(e=>t=>{const r=rn.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),z=e=>(e=e.toLowerCase(),t=>tt(t)===e),rt=e=>t=>typeof t===e,{isArray:Fe}=Array,Pe=rt("undefined");function Be(e){return e!==null&&!Pe(e)&&e.constructor!==null&&!Pe(e.constructor)&&j(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const gr=z("ArrayBuffer");function nn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&gr(e.buffer),t}const sn=rt("string"),j=rt("function"),Er=rt("number"),je=e=>e!==null&&typeof e=="object",on=e=>e===!0||e===!1,Qe=e=>{if(tt(e)!=="object")return!1;const t=At(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(br in e)&&!(et in e)},an=e=>{if(!je(e)||Be(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},cn=z("Date"),un=z("File"),ln=z("Blob"),fn=z("FileList"),hn=e=>je(e)&&j(e.pipe),dn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||j(e.append)&&((t=tt(e))==="formdata"||t==="object"&&j(e.toString)&&e.toString()==="[object FormData]"))},pn=z("URLSearchParams"),[mn,yn,bn,gn]=["ReadableStream","Request","Response","Headers"].map(z),En=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function He(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),Fe(e))for(n=0,s=e.length;n<s;n++)t.call(null,e[n],n,e);else{if(Be(e))return;const o=r?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(n=0;n<i;n++)a=o[n],t.call(null,e[a],a,e)}}function wr(e,t){if(Be(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,s;for(;n-- >0;)if(s=r[n],t===s.toLowerCase())return s;return null}const fe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Sr=e=>!Pe(e)&&e!==fe;function ht(){const{caseless:e,skipUndefined:t}=Sr(this)&&this||{},r={},n=(s,o)=>{const i=e&&wr(r,o)||o;Qe(r[i])&&Qe(s)?r[i]=ht(r[i],s):Qe(s)?r[i]=ht({},s):Fe(s)?r[i]=s.slice():(!t||!Pe(s))&&(r[i]=s)};for(let s=0,o=arguments.length;s<o;s++)arguments[s]&&He(arguments[s],n);return r}const wn=(e,t,r,{allOwnKeys:n}={})=>(He(t,(s,o)=>{r&&j(s)?e[o]=yr(s,r):e[o]=s},{allOwnKeys:n}),e),Sn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Rn=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},On=(e,t,r,n)=>{let s,o,i;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!n||n(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=r!==!1&&At(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},vn=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Tn=e=>{if(!e)return null;if(Fe(e))return e;let t=e.length;if(!Er(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Cn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&At(Uint8Array)),An=(e,t)=>{const n=(e&&e[et]).call(e);let s;for(;(s=n.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},xn=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Pn=z("HTMLFormElement"),Fn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,s){return n.toUpperCase()+s}),Bt=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Ln=z("RegExp"),Rr=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};He(r,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(n[o]=i||s)}),Object.defineProperties(e,n)},Nn=e=>{Rr(e,(t,r)=>{if(j(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(j(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},_n=(e,t)=>{const r={},n=s=>{s.forEach(o=>{r[o]=!0})};return Fe(e)?n(e):n(String(e).split(t)),r},Un=()=>{},Dn=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function kn(e){return!!(e&&j(e.append)&&e[br]==="FormData"&&e[et])}const Mn=e=>{const t=new Array(10),r=(n,s)=>{if(je(n)){if(t.indexOf(n)>=0)return;if(Be(n))return n;if(!("toJSON"in n)){t[s]=n;const o=Fe(n)?[]:{};return He(n,(i,a)=>{const f=r(i,s+1);!Pe(f)&&(o[a]=f)}),t[s]=void 0,o}}return n};return r(e,0)},In=z("AsyncFunction"),Bn=e=>e&&(je(e)||j(e))&&j(e.then)&&j(e.catch),Or=((e,t)=>e?setImmediate:t?((r,n)=>(fe.addEventListener("message",({source:s,data:o})=>{s===fe&&o===r&&n.length&&n.shift()()},!1),s=>{n.push(s),fe.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",j(fe.postMessage)),jn=typeof queueMicrotask<"u"?queueMicrotask.bind(fe):typeof process<"u"&&process.nextTick||Or,Hn=e=>e!=null&&j(e[et]),l={isArray:Fe,isArrayBuffer:gr,isBuffer:Be,isFormData:dn,isArrayBufferView:nn,isString:sn,isNumber:Er,isBoolean:on,isObject:je,isPlainObject:Qe,isEmptyObject:an,isReadableStream:mn,isRequest:yn,isResponse:bn,isHeaders:gn,isUndefined:Pe,isDate:cn,isFile:un,isBlob:ln,isRegExp:Ln,isFunction:j,isStream:hn,isURLSearchParams:pn,isTypedArray:Cn,isFileList:fn,forEach:He,merge:ht,extend:wn,trim:En,stripBOM:Sn,inherits:Rn,toFlatObject:On,kindOf:tt,kindOfTest:z,endsWith:vn,toArray:Tn,forEachEntry:An,matchAll:xn,isHTMLForm:Pn,hasOwnProperty:Bt,hasOwnProp:Bt,reduceDescriptors:Rr,freezeMethods:Nn,toObjectSet:_n,toCamelCase:Fn,noop:Un,toFiniteNumber:Dn,findKey:wr,global:fe,isContextDefined:Sr,isSpecCompliantForm:kn,toJSONObject:Mn,isAsyncFn:In,isThenable:Bn,setImmediate:Or,asap:jn,isIterable:Hn};function R(e,t,r,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),s&&(this.response=s,this.status=s.status?s.status:null)}l.inherits(R,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:l.toJSONObject(this.config),code:this.code,status:this.status}}});const vr=R.prototype,Tr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Tr[e]={value:e}});Object.defineProperties(R,Tr);Object.defineProperty(vr,"isAxiosError",{value:!0});R.from=(e,t,r,n,s,o)=>{const i=Object.create(vr);l.toFlatObject(e,i,function(c){return c!==Error.prototype},u=>u!=="isAxiosError");const a=e&&e.message?e.message:"Error",f=t==null&&e?e.code:t;return R.call(i,a,f,r,n,s),e&&i.cause==null&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",o&&Object.assign(i,o),i};const qn=null;function dt(e){return l.isPlainObject(e)||l.isArray(e)}function Cr(e){return l.endsWith(e,"[]")?e.slice(0,-2):e}function jt(e,t,r){return e?e.concat(t).map(function(s,o){return s=Cr(s),!r&&o?"["+s+"]":s}).join(r?".":""):t}function $n(e){return l.isArray(e)&&!e.some(dt)}const zn=l.toFlatObject(l,{},null,function(t){return/^is[A-Z]/.test(t)});function nt(e,t,r){if(!l.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=l.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,m){return!l.isUndefined(m[b])});const n=r.metaTokens,s=r.visitor||c,o=r.dots,i=r.indexes,f=(r.Blob||typeof Blob<"u"&&Blob)&&l.isSpecCompliantForm(t);if(!l.isFunction(s))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(l.isDate(p))return p.toISOString();if(l.isBoolean(p))return p.toString();if(!f&&l.isBlob(p))throw new R("Blob is not supported. Use a Buffer instead.");return l.isArrayBuffer(p)||l.isTypedArray(p)?f&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,b,m){let E=p;if(p&&!m&&typeof p=="object"){if(l.endsWith(b,"{}"))b=n?b:b.slice(0,-2),p=JSON.stringify(p);else if(l.isArray(p)&&$n(p)||(l.isFileList(p)||l.endsWith(b,"[]"))&&(E=l.toArray(p)))return b=Cr(b),E.forEach(function(O,A){!(l.isUndefined(O)||O===null)&&t.append(i===!0?jt([b],A,o):i===null?b:b+"[]",u(O))}),!1}return dt(p)?!0:(t.append(jt(m,b,o),u(p)),!1)}const h=[],y=Object.assign(zn,{defaultVisitor:c,convertValue:u,isVisitable:dt});function g(p,b){if(!l.isUndefined(p)){if(h.indexOf(p)!==-1)throw Error("Circular reference detected in "+b.join("."));h.push(p),l.forEach(p,function(E,w){(!(l.isUndefined(E)||E===null)&&s.call(t,E,l.isString(w)?w.trim():w,b,y))===!0&&g(E,b?b.concat(w):[w])}),h.pop()}}if(!l.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Ht(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function xt(e,t){this._pairs=[],e&&nt(e,this,t)}const Ar=xt.prototype;Ar.append=function(t,r){this._pairs.push([t,r])};Ar.toString=function(t){const r=t?function(n){return t.call(this,n,Ht)}:Ht;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function Vn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function xr(e,t,r){if(!t)return e;const n=r&&r.encode||Vn;l.isFunction(r)&&(r={serialize:r});const s=r&&r.serialize;let o;if(s?o=s(t,r):o=l.isURLSearchParams(t)?t.toString():new xt(t,r).toString(n),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class qt{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){l.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Pr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Jn=typeof URLSearchParams<"u"?URLSearchParams:xt,Qn=typeof FormData<"u"?FormData:null,Wn=typeof Blob<"u"?Blob:null,Kn={isBrowser:!0,classes:{URLSearchParams:Jn,FormData:Qn,Blob:Wn},protocols:["http","https","file","blob","url","data"]},Pt=typeof window<"u"&&typeof document<"u",pt=typeof navigator=="object"&&navigator||void 0,Gn=Pt&&(!pt||["ReactNative","NativeScript","NS"].indexOf(pt.product)<0),Xn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Zn=Pt&&window.location.href||"http://localhost",Yn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Pt,hasStandardBrowserEnv:Gn,hasStandardBrowserWebWorkerEnv:Xn,navigator:pt,origin:Zn},Symbol.toStringTag,{value:"Module"})),U={...Yn,...Kn};function es(e,t){return nt(e,new U.classes.URLSearchParams,{visitor:function(r,n,s,o){return U.isNode&&l.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function ts(e){return l.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function rs(e){const t={},r=Object.keys(e);let n;const s=r.length;let o;for(n=0;n<s;n++)o=r[n],t[o]=e[o];return t}function Fr(e){function t(r,n,s,o){let i=r[o++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),f=o>=r.length;return i=!i&&l.isArray(s)?s.length:i,f?(l.hasOwnProp(s,i)?s[i]=[s[i],n]:s[i]=n,!a):((!s[i]||!l.isObject(s[i]))&&(s[i]=[]),t(r,n,s[i],o)&&l.isArray(s[i])&&(s[i]=rs(s[i])),!a)}if(l.isFormData(e)&&l.isFunction(e.entries)){const r={};return l.forEachEntry(e,(n,s)=>{t(ts(n),s,r,0)}),r}return null}function ns(e,t,r){if(l.isString(e))try{return(t||JSON.parse)(e),l.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const qe={transitional:Pr,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",s=n.indexOf("application/json")>-1,o=l.isObject(t);if(o&&l.isHTMLForm(t)&&(t=new FormData(t)),l.isFormData(t))return s?JSON.stringify(Fr(t)):t;if(l.isArrayBuffer(t)||l.isBuffer(t)||l.isStream(t)||l.isFile(t)||l.isBlob(t)||l.isReadableStream(t))return t;if(l.isArrayBufferView(t))return t.buffer;if(l.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return es(t,this.formSerializer).toString();if((a=l.isFileList(t))||n.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return nt(a?{"files[]":t}:t,f&&new f,this.formSerializer)}}return o||s?(r.setContentType("application/json",!1),ns(t)):t}],transformResponse:[function(t){const r=this.transitional||qe.transitional,n=r&&r.forcedJSONParsing,s=this.responseType==="json";if(l.isResponse(t)||l.isReadableStream(t))return t;if(t&&l.isString(t)&&(n&&!this.responseType||s)){const i=!(r&&r.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(a){if(i)throw a.name==="SyntaxError"?R.from(a,R.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:U.classes.FormData,Blob:U.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};l.forEach(["delete","get","head","post","put","patch"],e=>{qe.headers[e]={}});const ss=l.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),os=e=>{const t={};let r,n,s;return e&&e.split(`
|
|
1
|
+
"use strict";var It=e=>{throw TypeError(e)};var ct=(e,t,r)=>t.has(e)||It("Cannot "+r);var d=(e,t,r)=>(ct(e,t,"read from private field"),r?r.call(e):t.get(e)),T=(e,t,r)=>t.has(e)?It("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),S=(e,t,r,n)=>(ct(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),x=(e,t,r)=>(ct(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ee=require("./chunks/http.helper.DIOQCl86.js"),ge=require("react"),mr=require("react/jsx-runtime"),z=require("./errors.cjs.js");function Gr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const _=Gr(ge),Xr=e=>({...t})=>e(t),Zr=({useAdapter:e,LoggerService:t})=>$e("ERROR_SERVICE",Xr(e),[t.ServiceProvider]),Yr=()=>({LoggerService:e})=>{const t=De(e),r=ge.useRef({}),n=(a,f)=>{const u=r.current;r.current={...u,[a]:[...u[a]||[],f]}},s=(a,f)=>{const u=r.current;r.current={...u,[a]:u[a].filter(c=>c!==f)}};return{raiseError:a=>{var f;t.error(a),(f=r.current[a.code])==null||f.forEach(u=>u(a))},useErrorHandler:(a,f)=>{const u=ee.compilerRuntimeExports.c(4);let c,h;u[0]!==f||u[1]!==a?(c=()=>(n(a,f),()=>{s(a,f)}),h=[a,f],u[0]=f,u[1]=a,u[2]=c,u[3]=h):(c=u[2],h=u[3]),ge.useEffect(c,h)}}},en=e=>({ErrorService:t,LoggerService:r})=>{const n=e(),s=De(r),o=De(t),i=E=>{const w=ee.lodashExports.omitBy(E,ee.lodashExports.isNil);s.info(`HTTP request: ${JSON.stringify(w)}`)},a=E=>{const{body:w,status:O}=E;s.info(`HTTP response: ${JSON.stringify({body:w,status:O})}`)},f=E=>E>=400&&E<600,u=E=>{const{details:w,message:O}=E;return o.raiseError(new z.HttpServiceError({code:z.HttpServiceErrorCode.Unauthorized,details:w,message:O}))},c=E=>{const{status:w}=E.details||{};if(!w||w>=500){const O=JSON.stringify(E);s.error(O)}else{if(w===401)return u(E);s.warn(E)}return o.raiseError(E)},h=async(E,w,O={})=>{i({method:E,...w});let A,F;const N=L=>{if(L instanceof z.HttpServiceError){F=L;return}A=L};switch(E){case"GET":{N(await n.get(w,O));break}case"DELETE":{N(await n.delete(w,O));break}case"PATCH":{N(await n.patch(w,O));break}case"POST":{N(await n.post(w,O));break}case"PUT":{N(await n.put(w,O));break}default:throw Error(`Unknown method HTTP method '${E}'`)}if(F)throw c(F),F;return A?(a(A),f(A.status)&&c(new z.HttpServiceError({details:{body:JSON.stringify(A.body),method:E,status:A.status,url:w.url}})),A):void 0};return{delete:(E,w={})=>h("DELETE",E,w),get:(E,w={})=>h("GET",E,w),patch:(E,w={})=>h("PATCH",E,w),post:async(E,w={})=>await h("POST",E,w),put:(E,w={})=>h("PUT",E,w)}},tn=({useAdapter:e,ErrorService:t,LoggerService:r})=>$e("HTTP_SERVICE",en(e),[t.ServiceProvider,r.ServiceProvider]);function yr(e,t){return function(){return e.apply(t,arguments)}}const{toString:rn}=Object.prototype,{getPrototypeOf:At}=Object,{iterator:et,toStringTag:br}=Symbol,tt=(e=>t=>{const r=rn.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),V=e=>(e=e.toLowerCase(),t=>tt(t)===e),rt=e=>t=>typeof t===e,{isArray:Fe}=Array,Pe=rt("undefined");function Be(e){return e!==null&&!Pe(e)&&e.constructor!==null&&!Pe(e.constructor)&&j(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const gr=V("ArrayBuffer");function nn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&gr(e.buffer),t}const sn=rt("string"),j=rt("function"),Er=rt("number"),je=e=>e!==null&&typeof e=="object",on=e=>e===!0||e===!1,Qe=e=>{if(tt(e)!=="object")return!1;const t=At(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(br in e)&&!(et in e)},an=e=>{if(!je(e)||Be(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},cn=V("Date"),un=V("File"),ln=V("Blob"),fn=V("FileList"),hn=e=>je(e)&&j(e.pipe),dn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||j(e.append)&&((t=tt(e))==="formdata"||t==="object"&&j(e.toString)&&e.toString()==="[object FormData]"))},pn=V("URLSearchParams"),[mn,yn,bn,gn]=["ReadableStream","Request","Response","Headers"].map(V),En=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function He(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),Fe(e))for(n=0,s=e.length;n<s;n++)t.call(null,e[n],n,e);else{if(Be(e))return;const o=r?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(n=0;n<i;n++)a=o[n],t.call(null,e[a],a,e)}}function wr(e,t){if(Be(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,s;for(;n-- >0;)if(s=r[n],t===s.toLowerCase())return s;return null}const fe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Sr=e=>!Pe(e)&&e!==fe;function ht(){const{caseless:e,skipUndefined:t}=Sr(this)&&this||{},r={},n=(s,o)=>{const i=e&&wr(r,o)||o;Qe(r[i])&&Qe(s)?r[i]=ht(r[i],s):Qe(s)?r[i]=ht({},s):Fe(s)?r[i]=s.slice():(!t||!Pe(s))&&(r[i]=s)};for(let s=0,o=arguments.length;s<o;s++)arguments[s]&&He(arguments[s],n);return r}const wn=(e,t,r,{allOwnKeys:n}={})=>(He(t,(s,o)=>{r&&j(s)?e[o]=yr(s,r):e[o]=s},{allOwnKeys:n}),e),Sn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Rn=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},On=(e,t,r,n)=>{let s,o,i;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!n||n(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=r!==!1&&At(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},vn=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Tn=e=>{if(!e)return null;if(Fe(e))return e;let t=e.length;if(!Er(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Cn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&At(Uint8Array)),An=(e,t)=>{const n=(e&&e[et]).call(e);let s;for(;(s=n.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},xn=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Pn=V("HTMLFormElement"),Fn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,s){return n.toUpperCase()+s}),Bt=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Ln=V("RegExp"),Rr=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};He(r,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(n[o]=i||s)}),Object.defineProperties(e,n)},Nn=e=>{Rr(e,(t,r)=>{if(j(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(j(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},_n=(e,t)=>{const r={},n=s=>{s.forEach(o=>{r[o]=!0})};return Fe(e)?n(e):n(String(e).split(t)),r},Un=()=>{},kn=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Dn(e){return!!(e&&j(e.append)&&e[br]==="FormData"&&e[et])}const Mn=e=>{const t=new Array(10),r=(n,s)=>{if(je(n)){if(t.indexOf(n)>=0)return;if(Be(n))return n;if(!("toJSON"in n)){t[s]=n;const o=Fe(n)?[]:{};return He(n,(i,a)=>{const f=r(i,s+1);!Pe(f)&&(o[a]=f)}),t[s]=void 0,o}}return n};return r(e,0)},In=V("AsyncFunction"),Bn=e=>e&&(je(e)||j(e))&&j(e.then)&&j(e.catch),Or=((e,t)=>e?setImmediate:t?((r,n)=>(fe.addEventListener("message",({source:s,data:o})=>{s===fe&&o===r&&n.length&&n.shift()()},!1),s=>{n.push(s),fe.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",j(fe.postMessage)),jn=typeof queueMicrotask<"u"?queueMicrotask.bind(fe):typeof process<"u"&&process.nextTick||Or,Hn=e=>e!=null&&j(e[et]),l={isArray:Fe,isArrayBuffer:gr,isBuffer:Be,isFormData:dn,isArrayBufferView:nn,isString:sn,isNumber:Er,isBoolean:on,isObject:je,isPlainObject:Qe,isEmptyObject:an,isReadableStream:mn,isRequest:yn,isResponse:bn,isHeaders:gn,isUndefined:Pe,isDate:cn,isFile:un,isBlob:ln,isRegExp:Ln,isFunction:j,isStream:hn,isURLSearchParams:pn,isTypedArray:Cn,isFileList:fn,forEach:He,merge:ht,extend:wn,trim:En,stripBOM:Sn,inherits:Rn,toFlatObject:On,kindOf:tt,kindOfTest:V,endsWith:vn,toArray:Tn,forEachEntry:An,matchAll:xn,isHTMLForm:Pn,hasOwnProperty:Bt,hasOwnProp:Bt,reduceDescriptors:Rr,freezeMethods:Nn,toObjectSet:_n,toCamelCase:Fn,noop:Un,toFiniteNumber:kn,findKey:wr,global:fe,isContextDefined:Sr,isSpecCompliantForm:Dn,toJSONObject:Mn,isAsyncFn:In,isThenable:Bn,setImmediate:Or,asap:jn,isIterable:Hn};function R(e,t,r,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),s&&(this.response=s,this.status=s.status?s.status:null)}l.inherits(R,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:l.toJSONObject(this.config),code:this.code,status:this.status}}});const vr=R.prototype,Tr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Tr[e]={value:e}});Object.defineProperties(R,Tr);Object.defineProperty(vr,"isAxiosError",{value:!0});R.from=(e,t,r,n,s,o)=>{const i=Object.create(vr);l.toFlatObject(e,i,function(c){return c!==Error.prototype},u=>u!=="isAxiosError");const a=e&&e.message?e.message:"Error",f=t==null&&e?e.code:t;return R.call(i,a,f,r,n,s),e&&i.cause==null&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",o&&Object.assign(i,o),i};const qn=null;function dt(e){return l.isPlainObject(e)||l.isArray(e)}function Cr(e){return l.endsWith(e,"[]")?e.slice(0,-2):e}function jt(e,t,r){return e?e.concat(t).map(function(s,o){return s=Cr(s),!r&&o?"["+s+"]":s}).join(r?".":""):t}function $n(e){return l.isArray(e)&&!e.some(dt)}const zn=l.toFlatObject(l,{},null,function(t){return/^is[A-Z]/.test(t)});function nt(e,t,r){if(!l.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=l.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,m){return!l.isUndefined(m[b])});const n=r.metaTokens,s=r.visitor||c,o=r.dots,i=r.indexes,f=(r.Blob||typeof Blob<"u"&&Blob)&&l.isSpecCompliantForm(t);if(!l.isFunction(s))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(l.isDate(p))return p.toISOString();if(l.isBoolean(p))return p.toString();if(!f&&l.isBlob(p))throw new R("Blob is not supported. Use a Buffer instead.");return l.isArrayBuffer(p)||l.isTypedArray(p)?f&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,b,m){let E=p;if(p&&!m&&typeof p=="object"){if(l.endsWith(b,"{}"))b=n?b:b.slice(0,-2),p=JSON.stringify(p);else if(l.isArray(p)&&$n(p)||(l.isFileList(p)||l.endsWith(b,"[]"))&&(E=l.toArray(p)))return b=Cr(b),E.forEach(function(O,A){!(l.isUndefined(O)||O===null)&&t.append(i===!0?jt([b],A,o):i===null?b:b+"[]",u(O))}),!1}return dt(p)?!0:(t.append(jt(m,b,o),u(p)),!1)}const h=[],y=Object.assign(zn,{defaultVisitor:c,convertValue:u,isVisitable:dt});function g(p,b){if(!l.isUndefined(p)){if(h.indexOf(p)!==-1)throw Error("Circular reference detected in "+b.join("."));h.push(p),l.forEach(p,function(E,w){(!(l.isUndefined(E)||E===null)&&s.call(t,E,l.isString(w)?w.trim():w,b,y))===!0&&g(E,b?b.concat(w):[w])}),h.pop()}}if(!l.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Ht(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function xt(e,t){this._pairs=[],e&&nt(e,this,t)}const Ar=xt.prototype;Ar.append=function(t,r){this._pairs.push([t,r])};Ar.toString=function(t){const r=t?function(n){return t.call(this,n,Ht)}:Ht;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function Vn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function xr(e,t,r){if(!t)return e;const n=r&&r.encode||Vn;l.isFunction(r)&&(r={serialize:r});const s=r&&r.serialize;let o;if(s?o=s(t,r):o=l.isURLSearchParams(t)?t.toString():new xt(t,r).toString(n),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class qt{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){l.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Pr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Jn=typeof URLSearchParams<"u"?URLSearchParams:xt,Qn=typeof FormData<"u"?FormData:null,Wn=typeof Blob<"u"?Blob:null,Kn={isBrowser:!0,classes:{URLSearchParams:Jn,FormData:Qn,Blob:Wn},protocols:["http","https","file","blob","url","data"]},Pt=typeof window<"u"&&typeof document<"u",pt=typeof navigator=="object"&&navigator||void 0,Gn=Pt&&(!pt||["ReactNative","NativeScript","NS"].indexOf(pt.product)<0),Xn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Zn=Pt&&window.location.href||"http://localhost",Yn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Pt,hasStandardBrowserEnv:Gn,hasStandardBrowserWebWorkerEnv:Xn,navigator:pt,origin:Zn},Symbol.toStringTag,{value:"Module"})),U={...Yn,...Kn};function es(e,t){return nt(e,new U.classes.URLSearchParams,{visitor:function(r,n,s,o){return U.isNode&&l.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function ts(e){return l.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function rs(e){const t={},r=Object.keys(e);let n;const s=r.length;let o;for(n=0;n<s;n++)o=r[n],t[o]=e[o];return t}function Fr(e){function t(r,n,s,o){let i=r[o++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),f=o>=r.length;return i=!i&&l.isArray(s)?s.length:i,f?(l.hasOwnProp(s,i)?s[i]=[s[i],n]:s[i]=n,!a):((!s[i]||!l.isObject(s[i]))&&(s[i]=[]),t(r,n,s[i],o)&&l.isArray(s[i])&&(s[i]=rs(s[i])),!a)}if(l.isFormData(e)&&l.isFunction(e.entries)){const r={};return l.forEachEntry(e,(n,s)=>{t(ts(n),s,r,0)}),r}return null}function ns(e,t,r){if(l.isString(e))try{return(t||JSON.parse)(e),l.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const qe={transitional:Pr,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",s=n.indexOf("application/json")>-1,o=l.isObject(t);if(o&&l.isHTMLForm(t)&&(t=new FormData(t)),l.isFormData(t))return s?JSON.stringify(Fr(t)):t;if(l.isArrayBuffer(t)||l.isBuffer(t)||l.isStream(t)||l.isFile(t)||l.isBlob(t)||l.isReadableStream(t))return t;if(l.isArrayBufferView(t))return t.buffer;if(l.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return es(t,this.formSerializer).toString();if((a=l.isFileList(t))||n.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return nt(a?{"files[]":t}:t,f&&new f,this.formSerializer)}}return o||s?(r.setContentType("application/json",!1),ns(t)):t}],transformResponse:[function(t){const r=this.transitional||qe.transitional,n=r&&r.forcedJSONParsing,s=this.responseType==="json";if(l.isResponse(t)||l.isReadableStream(t))return t;if(t&&l.isString(t)&&(n&&!this.responseType||s)){const i=!(r&&r.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(a){if(i)throw a.name==="SyntaxError"?R.from(a,R.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:U.classes.FormData,Blob:U.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};l.forEach(["delete","get","head","post","put","patch"],e=>{qe.headers[e]={}});const ss=l.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),os=e=>{const t={};let r,n,s;return e&&e.split(`
|
|
2
2
|
`).forEach(function(i){s=i.indexOf(":"),r=i.substring(0,s).trim().toLowerCase(),n=i.substring(s+1).trim(),!(!r||t[r]&&ss[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},$t=Symbol("internals");function Ne(e){return e&&String(e).trim().toLowerCase()}function We(e){return e===!1||e==null?e:l.isArray(e)?e.map(We):String(e)}function is(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const as=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ut(e,t,r,n,s){if(l.isFunction(n))return n.call(this,t,r);if(s&&(t=r),!!l.isString(t)){if(l.isString(n))return t.indexOf(n)!==-1;if(l.isRegExp(n))return n.test(t)}}function cs(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function us(e,t){const r=l.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(s,o,i){return this[n].call(this,t,s,o,i)},configurable:!0})})}let H=class{constructor(t){t&&this.set(t)}set(t,r,n){const s=this;function o(a,f,u){const c=Ne(f);if(!c)throw new Error("header name must be a non-empty string");const h=l.findKey(s,c);(!h||s[h]===void 0||u===!0||u===void 0&&s[h]!==!1)&&(s[h||f]=We(a))}const i=(a,f)=>l.forEach(a,(u,c)=>o(u,c,f));if(l.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(l.isString(t)&&(t=t.trim())&&!as(t))i(os(t),r);else if(l.isObject(t)&&l.isIterable(t)){let a={},f,u;for(const c of t){if(!l.isArray(c))throw TypeError("Object iterator must return a key-value pair");a[u=c[0]]=(f=a[u])?l.isArray(f)?[...f,c[1]]:[f,c[1]]:c[1]}i(a,r)}else t!=null&&o(r,t,n);return this}get(t,r){if(t=Ne(t),t){const n=l.findKey(this,t);if(n){const s=this[n];if(!r)return s;if(r===!0)return is(s);if(l.isFunction(r))return r.call(this,s,n);if(l.isRegExp(r))return r.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Ne(t),t){const n=l.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||ut(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let s=!1;function o(i){if(i=Ne(i),i){const a=l.findKey(n,i);a&&(!r||ut(n,n[a],a,r))&&(delete n[a],s=!0)}}return l.isArray(t)?t.forEach(o):o(t),s}clear(t){const r=Object.keys(this);let n=r.length,s=!1;for(;n--;){const o=r[n];(!t||ut(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const r=this,n={};return l.forEach(this,(s,o)=>{const i=l.findKey(n,o);if(i){r[i]=We(s),delete r[o];return}const a=t?cs(o):String(o).trim();a!==o&&delete r[o],r[a]=We(s),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return l.forEach(this,(n,s)=>{n!=null&&n!==!1&&(r[s]=t&&l.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
3
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(s=>n.set(s)),n}static accessor(t){const n=(this[$t]=this[$t]={accessors:{}}).accessors,s=this.prototype;function o(i){const a=Ne(i);n[a]||(us(s,i),n[a]=!0)}return l.isArray(t)?t.forEach(o):o(t),this}};H.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);l.reduceDescriptors(H.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});l.freezeMethods(H);function lt(e,t){const r=this||qe,n=t||r,s=H.from(n.headers);let o=n.data;return l.forEach(e,function(a){o=a.call(r,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function Lr(e){return!!(e&&e.__CANCEL__)}function Le(e,t,r){R.call(this,e??"canceled",R.ERR_CANCELED,t,r),this.name="CanceledError"}l.inherits(Le,R,{__CANCEL__:!0});function Nr(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new R("Request failed with status code "+r.status,[R.ERR_BAD_REQUEST,R.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function ls(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function fs(e,t){e=e||10;const r=new Array(e),n=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(f){const u=Date.now(),c=n[o];i||(i=u),r[s]=f,n[s]=u;let h=o,y=0;for(;h!==s;)y+=r[h++],h=h%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),u-i<t)return;const g=c&&u-c;return g?Math.round(y*1e3/g):void 0}}function hs(e,t){let r=0,n=1e3/t,s,o;const i=(u,c=Date.now())=>{r=c,s=null,o&&(clearTimeout(o),o=null),e(...u)};return[(...u)=>{const c=Date.now(),h=c-r;h>=n?i(u,c):(s=u,o||(o=setTimeout(()=>{o=null,i(s)},n-h)))},()=>s&&i(s)]}const Xe=(e,t,r=3)=>{let n=0;const s=fs(50,250);return hs(o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,f=i-n,u=s(f),c=i<=a;n=i;const h={loaded:i,total:a,progress:a?i/a:void 0,bytes:f,rate:u||void 0,estimated:u&&a&&c?(a-i)/u:void 0,event:o,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(h)},r)},zt=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Vt=e=>(...t)=>l.asap(()=>e(...t)),ds=U.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,U.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(U.origin),U.navigator&&/(msie|trident)/i.test(U.navigator.userAgent)):()=>!0,ps=U.hasStandardBrowserEnv?{write(e,t,r,n,s,o,i){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];l.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),l.isString(n)&&a.push(`path=${n}`),l.isString(s)&&a.push(`domain=${s}`),o===!0&&a.push("secure"),l.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function ms(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ys(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function _r(e,t,r){let n=!ms(t);return e&&(n||r==!1)?ys(e,t):t}const Jt=e=>e instanceof H?{...e}:e;function Ee(e,t){t=t||{};const r={};function n(u,c,h,y){return l.isPlainObject(u)&&l.isPlainObject(c)?l.merge.call({caseless:y},u,c):l.isPlainObject(c)?l.merge({},c):l.isArray(c)?c.slice():c}function s(u,c,h,y){if(l.isUndefined(c)){if(!l.isUndefined(u))return n(void 0,u,h,y)}else return n(u,c,h,y)}function o(u,c){if(!l.isUndefined(c))return n(void 0,c)}function i(u,c){if(l.isUndefined(c)){if(!l.isUndefined(u))return n(void 0,u)}else return n(void 0,c)}function a(u,c,h){if(h in t)return n(u,c);if(h in e)return n(void 0,u)}const f={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(u,c,h)=>s(Jt(u),Jt(c),h,!0)};return l.forEach(Object.keys({...e,...t}),function(c){const h=f[c]||s,y=h(e[c],t[c],c);l.isUndefined(y)&&h!==a||(r[c]=y)}),r}const Ur=e=>{const t=Ee({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:a}=t;if(t.headers=i=H.from(i),t.url=xr(_r(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),l.isFormData(r)){if(U.hasStandardBrowserEnv||U.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(l.isFunction(r.getHeaders)){const f=r.getHeaders(),u=["content-type","content-length"];Object.entries(f).forEach(([c,h])=>{u.includes(c.toLowerCase())&&i.set(c,h)})}}if(U.hasStandardBrowserEnv&&(n&&l.isFunction(n)&&(n=n(t)),n||n!==!1&&ds(t.url))){const f=s&&o&&ps.read(o);f&&i.set(s,f)}return t},bs=typeof XMLHttpRequest<"u",gs=bs&&function(e){return new Promise(function(r,n){const s=Ur(e);let o=s.data;const i=H.from(s.headers).normalize();let{responseType:a,onUploadProgress:f,onDownloadProgress:u}=s,c,h,y,g,p;function b(){g&&g(),p&&p(),s.cancelToken&&s.cancelToken.unsubscribe(c),s.signal&&s.signal.removeEventListener("abort",c)}let m=new XMLHttpRequest;m.open(s.method.toUpperCase(),s.url,!0),m.timeout=s.timeout;function E(){if(!m)return;const O=H.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),F={data:!a||a==="text"||a==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:O,config:e,request:m};Nr(function(L){r(L),b()},function(L){n(L),b()},F),m=null}"onloadend"in m?m.onloadend=E:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(E)},m.onabort=function(){m&&(n(new R("Request aborted",R.ECONNABORTED,e,m)),m=null)},m.onerror=function(A){const F=A&&A.message?A.message:"Network Error",N=new R(F,R.ERR_NETWORK,e,m);N.event=A||null,n(N),m=null},m.ontimeout=function(){let A=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const F=s.transitional||Pr;s.timeoutErrorMessage&&(A=s.timeoutErrorMessage),n(new R(A,F.clarifyTimeoutError?R.ETIMEDOUT:R.ECONNABORTED,e,m)),m=null},o===void 0&&i.setContentType(null),"setRequestHeader"in m&&l.forEach(i.toJSON(),function(A,F){m.setRequestHeader(F,A)}),l.isUndefined(s.withCredentials)||(m.withCredentials=!!s.withCredentials),a&&a!=="json"&&(m.responseType=s.responseType),u&&([y,p]=Xe(u,!0),m.addEventListener("progress",y)),f&&m.upload&&([h,g]=Xe(f),m.upload.addEventListener("progress",h),m.upload.addEventListener("loadend",g)),(s.cancelToken||s.signal)&&(c=O=>{m&&(n(!O||O.type?new Le(null,e,m):O),m.abort(),m=null)},s.cancelToken&&s.cancelToken.subscribe(c),s.signal&&(s.signal.aborted?c():s.signal.addEventListener("abort",c)));const w=ls(s.url);if(w&&U.protocols.indexOf(w)===-1){n(new R("Unsupported protocol "+w+":",R.ERR_BAD_REQUEST,e));return}m.send(o||null)})},Es=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,s;const o=function(u){if(!s){s=!0,a();const c=u instanceof Error?u:this.reason;n.abort(c instanceof R?c:new Le(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{i=null,o(new R(`timeout ${t} of ms exceeded`,R.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:f}=n;return f.unsubscribe=()=>l.asap(a),f}},ws=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,s;for(;n<r;)s=n+t,yield e.slice(n,s),n=s},Ss=async function*(e,t){for await(const r of Rs(e))yield*ws(r,t)},Rs=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},Qt=(e,t,r,n)=>{const s=Ss(e,t);let o=0,i,a=f=>{i||(i=!0,n&&n(f))};return new ReadableStream({async pull(f){try{const{done:u,value:c}=await s.next();if(u){a(),f.close();return}let h=c.byteLength;if(r){let y=o+=h;r(y)}f.enqueue(new Uint8Array(c))}catch(u){throw a(u),u}},cancel(f){return a(f),s.return()}},{highWaterMark:2})},Wt=64*1024,{isFunction:Ve}=l,Os=(({Request:e,Response:t})=>({Request:e,Response:t}))(l.global),{ReadableStream:Kt,TextEncoder:Gt}=l.global,Xt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},vs=e=>{e=l.merge.call({skipUndefined:!0},Os,e);const{fetch:t,Request:r,Response:n}=e,s=t?Ve(t):typeof fetch=="function",o=Ve(r),i=Ve(n);if(!s)return!1;const a=s&&Ve(Kt),f=s&&(typeof Gt=="function"?(p=>b=>p.encode(b))(new Gt):async p=>new Uint8Array(await new r(p).arrayBuffer())),u=o&&a&&Xt(()=>{let p=!1;const b=new r(U.origin,{body:new Kt,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!b}),c=i&&a&&Xt(()=>l.isReadableStream(new n("").body)),h={stream:c&&(p=>p.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!h[p]&&(h[p]=(b,m)=>{let E=b&&b[p];if(E)return E.call(b);throw new R(`Response type '${p}' is not supported`,R.ERR_NOT_SUPPORT,m)})});const y=async p=>{if(p==null)return 0;if(l.isBlob(p))return p.size;if(l.isSpecCompliantForm(p))return(await new r(U.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(l.isArrayBufferView(p)||l.isArrayBuffer(p))return p.byteLength;if(l.isURLSearchParams(p)&&(p=p+""),l.isString(p))return(await f(p)).byteLength},g=async(p,b)=>{const m=l.toFiniteNumber(p.getContentLength());return m??y(b)};return async p=>{let{url:b,method:m,data:E,signal:w,cancelToken:O,timeout:A,onDownloadProgress:F,onUploadProgress:N,responseType:L,headers:M,withCredentials:ce="same-origin",fetchOptions:D}=Ur(p),ue=t||fetch;L=L?(L+"").toLowerCase():"text";let q=Es([w,O&&O.toAbortSignal()],A),V=null;const le=q&&q.unsubscribe&&(()=>{q.unsubscribe()});let Ut;try{if(N&&u&&m!=="get"&&m!=="head"&&(Ut=await g(M,E))!==0){let re=new r(b,{method:"POST",body:E,duplex:"half"}),Se;if(l.isFormData(E)&&(Se=re.headers.get("content-type"))&&M.setContentType(Se),re.body){const[at,ze]=zt(Ut,Xe(Vt(N)));E=Qt(re.body,Wt,at,ze)}}l.isString(ce)||(ce=ce?"include":"omit");const J=o&&"credentials"in r.prototype,Dt={...D,signal:q,method:m.toUpperCase(),headers:M.normalize().toJSON(),body:E,duplex:"half",credentials:J?ce:void 0};V=o&&new r(b,Dt);let te=await(o?ue(V,D):ue(b,Dt));const kt=c&&(L==="stream"||L==="response");if(c&&(F||kt&&le)){const re={};["status","statusText","headers"].forEach(Mt=>{re[Mt]=te[Mt]});const Se=l.toFiniteNumber(te.headers.get("content-length")),[at,ze]=F&&zt(Se,Xe(Vt(F),!0))||[];te=new n(Qt(te.body,Wt,at,()=>{ze&&ze(),le&&le()}),re)}L=L||"text";let Kr=await h[l.findKey(h,L)||"text"](te,p);return!kt&&le&&le(),await new Promise((re,Se)=>{Nr(re,Se,{data:Kr,headers:H.from(te.headers),status:te.status,statusText:te.statusText,config:p,request:V})})}catch(J){throw le&&le(),J&&J.name==="TypeError"&&/Load failed|fetch/i.test(J.message)?Object.assign(new R("Network Error",R.ERR_NETWORK,p,V),{cause:J.cause||J}):R.from(J,J&&J.code,p,V)}}},Ts=new Map,Dr=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:s}=t,o=[n,s,r];let i=o.length,a=i,f,u,c=Ts;for(;a--;)f=o[a],u=c.get(f),u===void 0&&c.set(f,u=a?new Map:vs(t)),c=u;return u};Dr();const Ft={http:qn,xhr:gs,fetch:{get:Dr}};l.forEach(Ft,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Zt=e=>`- ${e}`,Cs=e=>l.isFunction(e)||e===null||e===!1;function As(e,t){e=l.isArray(e)?e:[e];const{length:r}=e;let n,s;const o={};for(let i=0;i<r;i++){n=e[i];let a;if(s=n,!Cs(n)&&(s=Ft[(a=String(n)).toLowerCase()],s===void 0))throw new R(`Unknown adapter '${a}'`);if(s&&(l.isFunction(s)||(s=s.get(t))))break;o[a||"#"+i]=s}if(!s){const i=Object.entries(o).map(([f,u])=>`adapter ${f} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=r?i.length>1?`since :
|
|
3
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(s=>n.set(s)),n}static accessor(t){const n=(this[$t]=this[$t]={accessors:{}}).accessors,s=this.prototype;function o(i){const a=Ne(i);n[a]||(us(s,i),n[a]=!0)}return l.isArray(t)?t.forEach(o):o(t),this}};H.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);l.reduceDescriptors(H.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});l.freezeMethods(H);function lt(e,t){const r=this||qe,n=t||r,s=H.from(n.headers);let o=n.data;return l.forEach(e,function(a){o=a.call(r,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function Lr(e){return!!(e&&e.__CANCEL__)}function Le(e,t,r){R.call(this,e??"canceled",R.ERR_CANCELED,t,r),this.name="CanceledError"}l.inherits(Le,R,{__CANCEL__:!0});function Nr(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new R("Request failed with status code "+r.status,[R.ERR_BAD_REQUEST,R.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function ls(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function fs(e,t){e=e||10;const r=new Array(e),n=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(f){const u=Date.now(),c=n[o];i||(i=u),r[s]=f,n[s]=u;let h=o,y=0;for(;h!==s;)y+=r[h++],h=h%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),u-i<t)return;const g=c&&u-c;return g?Math.round(y*1e3/g):void 0}}function hs(e,t){let r=0,n=1e3/t,s,o;const i=(u,c=Date.now())=>{r=c,s=null,o&&(clearTimeout(o),o=null),e(...u)};return[(...u)=>{const c=Date.now(),h=c-r;h>=n?i(u,c):(s=u,o||(o=setTimeout(()=>{o=null,i(s)},n-h)))},()=>s&&i(s)]}const Xe=(e,t,r=3)=>{let n=0;const s=fs(50,250);return hs(o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,f=i-n,u=s(f),c=i<=a;n=i;const h={loaded:i,total:a,progress:a?i/a:void 0,bytes:f,rate:u||void 0,estimated:u&&a&&c?(a-i)/u:void 0,event:o,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(h)},r)},zt=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Vt=e=>(...t)=>l.asap(()=>e(...t)),ds=U.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,U.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(U.origin),U.navigator&&/(msie|trident)/i.test(U.navigator.userAgent)):()=>!0,ps=U.hasStandardBrowserEnv?{write(e,t,r,n,s,o,i){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];l.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),l.isString(n)&&a.push(`path=${n}`),l.isString(s)&&a.push(`domain=${s}`),o===!0&&a.push("secure"),l.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function ms(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ys(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function _r(e,t,r){let n=!ms(t);return e&&(n||r==!1)?ys(e,t):t}const Jt=e=>e instanceof H?{...e}:e;function Ee(e,t){t=t||{};const r={};function n(u,c,h,y){return l.isPlainObject(u)&&l.isPlainObject(c)?l.merge.call({caseless:y},u,c):l.isPlainObject(c)?l.merge({},c):l.isArray(c)?c.slice():c}function s(u,c,h,y){if(l.isUndefined(c)){if(!l.isUndefined(u))return n(void 0,u,h,y)}else return n(u,c,h,y)}function o(u,c){if(!l.isUndefined(c))return n(void 0,c)}function i(u,c){if(l.isUndefined(c)){if(!l.isUndefined(u))return n(void 0,u)}else return n(void 0,c)}function a(u,c,h){if(h in t)return n(u,c);if(h in e)return n(void 0,u)}const f={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(u,c,h)=>s(Jt(u),Jt(c),h,!0)};return l.forEach(Object.keys({...e,...t}),function(c){const h=f[c]||s,y=h(e[c],t[c],c);l.isUndefined(y)&&h!==a||(r[c]=y)}),r}const Ur=e=>{const t=Ee({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:a}=t;if(t.headers=i=H.from(i),t.url=xr(_r(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),l.isFormData(r)){if(U.hasStandardBrowserEnv||U.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(l.isFunction(r.getHeaders)){const f=r.getHeaders(),u=["content-type","content-length"];Object.entries(f).forEach(([c,h])=>{u.includes(c.toLowerCase())&&i.set(c,h)})}}if(U.hasStandardBrowserEnv&&(n&&l.isFunction(n)&&(n=n(t)),n||n!==!1&&ds(t.url))){const f=s&&o&&ps.read(o);f&&i.set(s,f)}return t},bs=typeof XMLHttpRequest<"u",gs=bs&&function(e){return new Promise(function(r,n){const s=Ur(e);let o=s.data;const i=H.from(s.headers).normalize();let{responseType:a,onUploadProgress:f,onDownloadProgress:u}=s,c,h,y,g,p;function b(){g&&g(),p&&p(),s.cancelToken&&s.cancelToken.unsubscribe(c),s.signal&&s.signal.removeEventListener("abort",c)}let m=new XMLHttpRequest;m.open(s.method.toUpperCase(),s.url,!0),m.timeout=s.timeout;function E(){if(!m)return;const O=H.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),F={data:!a||a==="text"||a==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:O,config:e,request:m};Nr(function(L){r(L),b()},function(L){n(L),b()},F),m=null}"onloadend"in m?m.onloadend=E:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(E)},m.onabort=function(){m&&(n(new R("Request aborted",R.ECONNABORTED,e,m)),m=null)},m.onerror=function(A){const F=A&&A.message?A.message:"Network Error",N=new R(F,R.ERR_NETWORK,e,m);N.event=A||null,n(N),m=null},m.ontimeout=function(){let A=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const F=s.transitional||Pr;s.timeoutErrorMessage&&(A=s.timeoutErrorMessage),n(new R(A,F.clarifyTimeoutError?R.ETIMEDOUT:R.ECONNABORTED,e,m)),m=null},o===void 0&&i.setContentType(null),"setRequestHeader"in m&&l.forEach(i.toJSON(),function(A,F){m.setRequestHeader(F,A)}),l.isUndefined(s.withCredentials)||(m.withCredentials=!!s.withCredentials),a&&a!=="json"&&(m.responseType=s.responseType),u&&([y,p]=Xe(u,!0),m.addEventListener("progress",y)),f&&m.upload&&([h,g]=Xe(f),m.upload.addEventListener("progress",h),m.upload.addEventListener("loadend",g)),(s.cancelToken||s.signal)&&(c=O=>{m&&(n(!O||O.type?new Le(null,e,m):O),m.abort(),m=null)},s.cancelToken&&s.cancelToken.subscribe(c),s.signal&&(s.signal.aborted?c():s.signal.addEventListener("abort",c)));const w=ls(s.url);if(w&&U.protocols.indexOf(w)===-1){n(new R("Unsupported protocol "+w+":",R.ERR_BAD_REQUEST,e));return}m.send(o||null)})},Es=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,s;const o=function(u){if(!s){s=!0,a();const c=u instanceof Error?u:this.reason;n.abort(c instanceof R?c:new Le(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{i=null,o(new R(`timeout ${t} of ms exceeded`,R.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:f}=n;return f.unsubscribe=()=>l.asap(a),f}},ws=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,s;for(;n<r;)s=n+t,yield e.slice(n,s),n=s},Ss=async function*(e,t){for await(const r of Rs(e))yield*ws(r,t)},Rs=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},Qt=(e,t,r,n)=>{const s=Ss(e,t);let o=0,i,a=f=>{i||(i=!0,n&&n(f))};return new ReadableStream({async pull(f){try{const{done:u,value:c}=await s.next();if(u){a(),f.close();return}let h=c.byteLength;if(r){let y=o+=h;r(y)}f.enqueue(new Uint8Array(c))}catch(u){throw a(u),u}},cancel(f){return a(f),s.return()}},{highWaterMark:2})},Wt=64*1024,{isFunction:Ve}=l,Os=(({Request:e,Response:t})=>({Request:e,Response:t}))(l.global),{ReadableStream:Kt,TextEncoder:Gt}=l.global,Xt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},vs=e=>{e=l.merge.call({skipUndefined:!0},Os,e);const{fetch:t,Request:r,Response:n}=e,s=t?Ve(t):typeof fetch=="function",o=Ve(r),i=Ve(n);if(!s)return!1;const a=s&&Ve(Kt),f=s&&(typeof Gt=="function"?(p=>b=>p.encode(b))(new Gt):async p=>new Uint8Array(await new r(p).arrayBuffer())),u=o&&a&&Xt(()=>{let p=!1;const b=new r(U.origin,{body:new Kt,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!b}),c=i&&a&&Xt(()=>l.isReadableStream(new n("").body)),h={stream:c&&(p=>p.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!h[p]&&(h[p]=(b,m)=>{let E=b&&b[p];if(E)return E.call(b);throw new R(`Response type '${p}' is not supported`,R.ERR_NOT_SUPPORT,m)})});const y=async p=>{if(p==null)return 0;if(l.isBlob(p))return p.size;if(l.isSpecCompliantForm(p))return(await new r(U.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(l.isArrayBufferView(p)||l.isArrayBuffer(p))return p.byteLength;if(l.isURLSearchParams(p)&&(p=p+""),l.isString(p))return(await f(p)).byteLength},g=async(p,b)=>{const m=l.toFiniteNumber(p.getContentLength());return m??y(b)};return async p=>{let{url:b,method:m,data:E,signal:w,cancelToken:O,timeout:A,onDownloadProgress:F,onUploadProgress:N,responseType:L,headers:M,withCredentials:ce="same-origin",fetchOptions:k}=Ur(p),ue=t||fetch;L=L?(L+"").toLowerCase():"text";let q=Es([w,O&&O.toAbortSignal()],A),J=null;const le=q&&q.unsubscribe&&(()=>{q.unsubscribe()});let Ut;try{if(N&&u&&m!=="get"&&m!=="head"&&(Ut=await g(M,E))!==0){let re=new r(b,{method:"POST",body:E,duplex:"half"}),Se;if(l.isFormData(E)&&(Se=re.headers.get("content-type"))&&M.setContentType(Se),re.body){const[at,ze]=zt(Ut,Xe(Vt(N)));E=Qt(re.body,Wt,at,ze)}}l.isString(ce)||(ce=ce?"include":"omit");const Q=o&&"credentials"in r.prototype,kt={...k,signal:q,method:m.toUpperCase(),headers:M.normalize().toJSON(),body:E,duplex:"half",credentials:Q?ce:void 0};J=o&&new r(b,kt);let te=await(o?ue(J,k):ue(b,kt));const Dt=c&&(L==="stream"||L==="response");if(c&&(F||Dt&&le)){const re={};["status","statusText","headers"].forEach(Mt=>{re[Mt]=te[Mt]});const Se=l.toFiniteNumber(te.headers.get("content-length")),[at,ze]=F&&zt(Se,Xe(Vt(F),!0))||[];te=new n(Qt(te.body,Wt,at,()=>{ze&&ze(),le&&le()}),re)}L=L||"text";let Kr=await h[l.findKey(h,L)||"text"](te,p);return!Dt&&le&&le(),await new Promise((re,Se)=>{Nr(re,Se,{data:Kr,headers:H.from(te.headers),status:te.status,statusText:te.statusText,config:p,request:J})})}catch(Q){throw le&&le(),Q&&Q.name==="TypeError"&&/Load failed|fetch/i.test(Q.message)?Object.assign(new R("Network Error",R.ERR_NETWORK,p,J),{cause:Q.cause||Q}):R.from(Q,Q&&Q.code,p,J)}}},Ts=new Map,kr=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:s}=t,o=[n,s,r];let i=o.length,a=i,f,u,c=Ts;for(;a--;)f=o[a],u=c.get(f),u===void 0&&c.set(f,u=a?new Map:vs(t)),c=u;return u};kr();const Ft={http:qn,xhr:gs,fetch:{get:kr}};l.forEach(Ft,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Zt=e=>`- ${e}`,Cs=e=>l.isFunction(e)||e===null||e===!1;function As(e,t){e=l.isArray(e)?e:[e];const{length:r}=e;let n,s;const o={};for(let i=0;i<r;i++){n=e[i];let a;if(s=n,!Cs(n)&&(s=Ft[(a=String(n)).toLowerCase()],s===void 0))throw new R(`Unknown adapter '${a}'`);if(s&&(l.isFunction(s)||(s=s.get(t))))break;o[a||"#"+i]=s}if(!s){const i=Object.entries(o).map(([f,u])=>`adapter ${f} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=r?i.length>1?`since :
|
|
4
4
|
`+i.map(Zt).join(`
|
|
5
|
-
`):" "+Zt(i[0]):"as no adapter specified";throw new R("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return s}const
|
|
6
|
-
`+o):n.stack=o}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ee(this.defaults,r);const{transitional:n,paramsSerializer:s,headers:o}=r;n!==void 0&&Ke.assertOptions(n,{silentJSONParsing:
|
|
5
|
+
`):" "+Zt(i[0]):"as no adapter specified";throw new R("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return s}const Dr={getAdapter:As,adapters:Ft};function ft(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Le(null,e)}function Yt(e){return ft(e),e.headers=H.from(e.headers),e.data=lt.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Dr.getAdapter(e.adapter||qe.adapter,e)(e).then(function(n){return ft(e),n.data=lt.call(e,e.transformResponse,n),n.headers=H.from(n.headers),n},function(n){return Lr(n)||(ft(e),n&&n.response&&(n.response.data=lt.call(e,e.transformResponse,n.response),n.response.headers=H.from(n.response.headers))),Promise.reject(n)})}const Mr="1.13.2",st={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{st[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const er={};st.transitional=function(t,r,n){function s(o,i){return"[Axios v"+Mr+"] Transitional option '"+o+"'"+i+(n?". "+n:"")}return(o,i,a)=>{if(t===!1)throw new R(s(i," has been removed"+(r?" in "+r:"")),R.ERR_DEPRECATED);return r&&!er[i]&&(er[i]=!0,console.warn(s(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,i,a):!0}};st.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function xs(e,t,r){if(typeof e!="object")throw new R("options must be an object",R.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const o=n[s],i=t[o];if(i){const a=e[o],f=a===void 0||i(a,o,e);if(f!==!0)throw new R("option "+o+" must be "+f,R.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new R("Unknown option "+o,R.ERR_BAD_OPTION)}}const Ke={assertOptions:xs,validators:st},W=Ke.validators;let be=class{constructor(t){this.defaults=t||{},this.interceptors={request:new qt,response:new qt}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{n.stack?o&&!String(n.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
6
|
+
`+o):n.stack=o}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ee(this.defaults,r);const{transitional:n,paramsSerializer:s,headers:o}=r;n!==void 0&&Ke.assertOptions(n,{silentJSONParsing:W.transitional(W.boolean),forcedJSONParsing:W.transitional(W.boolean),clarifyTimeoutError:W.transitional(W.boolean)},!1),s!=null&&(l.isFunction(s)?r.paramsSerializer={serialize:s}:Ke.assertOptions(s,{encode:W.function,serialize:W.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Ke.assertOptions(r,{baseUrl:W.spelling("baseURL"),withXsrfToken:W.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=o&&l.merge(o.common,o[r.method]);o&&l.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),r.headers=H.concat(i,o);const a=[];let f=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(r)===!1||(f=f&&b.synchronous,a.unshift(b.fulfilled,b.rejected))});const u=[];this.interceptors.response.forEach(function(b){u.push(b.fulfilled,b.rejected)});let c,h=0,y;if(!f){const p=[Yt.bind(this),void 0];for(p.unshift(...a),p.push(...u),y=p.length,c=Promise.resolve(r);h<y;)c=c.then(p[h++],p[h++]);return c}y=a.length;let g=r;for(;h<y;){const p=a[h++],b=a[h++];try{g=p(g)}catch(m){b.call(this,m);break}}try{c=Yt.call(this,g)}catch(p){return Promise.reject(p)}for(h=0,y=u.length;h<y;)c=c.then(u[h++],u[h++]);return c}getUri(t){t=Ee(this.defaults,t);const r=_r(t.baseURL,t.url,t.allowAbsoluteUrls);return xr(r,t.params,t.paramsSerializer)}};l.forEach(["delete","get","head","options"],function(t){be.prototype[t]=function(r,n){return this.request(Ee(n||{},{method:t,url:r,data:(n||{}).data}))}});l.forEach(["post","put","patch"],function(t){function r(n){return function(o,i,a){return this.request(Ee(a||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}be.prototype[t]=r(),be.prototype[t+"Form"]=r(!0)});let Ps=class Ir{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(o){r=o});const n=this;this.promise.then(s=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](s);n._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(a=>{n.subscribe(a),o=a}).then(s);return i.cancel=function(){n.unsubscribe(o)},i},t(function(o,i,a){n.reason||(n.reason=new Le(o,i,a),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Ir(function(s){t=s}),cancel:t}}};function Fs(e){return function(r){return e.apply(null,r)}}function Ls(e){return l.isObject(e)&&e.isAxiosError===!0}const mt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(mt).forEach(([e,t])=>{mt[t]=e});function Br(e){const t=new be(e),r=yr(be.prototype.request,t);return l.extend(r,be.prototype,t,{allOwnKeys:!0}),l.extend(r,t,null,{allOwnKeys:!0}),r.create=function(s){return Br(Ee(e,s))},r}const P=Br(qe);P.Axios=be;P.CanceledError=Le;P.CancelToken=Ps;P.isCancel=Lr;P.VERSION=Mr;P.toFormData=nt;P.AxiosError=R;P.Cancel=P.CanceledError;P.all=function(t){return Promise.all(t)};P.spread=Fs;P.isAxiosError=Ls;P.mergeConfig=Ee;P.AxiosHeaders=H;P.formToJSON=e=>Fr(l.isHTMLForm(e)?new FormData(e):e);P.getAdapter=Dr.getAdapter;P.HttpStatusCode=mt;P.default=P;const{Axios:Bo,AxiosError:Ns,CanceledError:jo,isCancel:Ho,CancelToken:qo,VERSION:$o,all:zo,Cancel:Vo,isAxiosError:_s,spread:Jo,toFormData:Qo,AxiosHeaders:Wo,HttpStatusCode:Ko,formToJSON:Go,getAdapter:Xo,mergeConfig:Zo}=P,Us=e=>({PATCH:P.patch,POST:P.post,PUT:P.put})[e],ks=e=>({DELETE:P.delete,GET:P.get})[e],Ds=e=>{const{data:t,headers:r,status:n}=e;return{body:t,header:r,status:n}},Ms=e=>{if(!_s(e))return new z.HttpServiceError({message:"An unknown error occured"});const{message:t,response:r}=e;if(!r)return new z.HttpServiceError({message:t});const{config:{url:n,method:s},status:o,data:i}=r,a={method:s,status:o,url:n};if(!i)return new z.HttpServiceError({details:a,message:t});try{return new z.HttpServiceError({details:{...a,body:i},message:t})}catch{return new z.HttpServiceError({details:a,message:t})}},jr=async e=>{try{const t=await e;return Ds(t)}catch(t){return t instanceof Ns?Ms(t):new z.HttpServiceError({code:z.HttpServiceErrorCode.Generic,message:"An unknown error occured"})}},Hr=(e,{headers:t={},query:r={},timeout:n,url:s},o)=>{const i=ks(e),a={headers:t},f=ee.addQueryParams(s,r);return o.buffer&&(a.responseType="arraybuffer"),n&&(a.timeout=n),jr(i(f,a))},Lt=(e,{headers:t={},body:r=null,query:n={},timeout:s,url:o,attachments:i},a)=>{const f=Us(e),u=i&&i.length>0,c=new FormData,h=u?c:r,y={headers:t},g=ee.addQueryParams(o,n);return u&&i.forEach(p=>{c.append(p.name,p.filePath)}),a.buffer&&(y.responseType="arraybuffer"),s&&(y.timeout=s),jr(f(g,h,y))},Is=(e,t)=>Hr("DELETE",e,t),Bs=(e,t)=>Hr("GET",e,t),js=(e,t)=>Lt("PATCH",e,t),Hs=(e,t)=>Lt("POST",e,t),qs=(e,t)=>Lt("PUT",e,t),$s=()=>()=>({delete:Is,get:Bs,patch:js,post:Hs,put:qs}),qr=e=>()=>e(),zs=({useAdapter:e})=>$e("LOGGER_SERVICE",qr(e),[]);var $r={exports:{}};/*!
|
|
7
7
|
* js-logger - http://github.com/jonnyreeves/js-logger
|
|
8
8
|
* Jonny Reeves, http://jonnyreeves.co.uk/
|
|
9
9
|
* js-logger may be freely distributed under the MIT license.
|
|
10
|
-
*/(function(e){(function(t){var r={};r.VERSION="1.6.1";var n,s={},o=function(c,h){return function(){return h.apply(c,arguments)}},i=function(){var c=arguments,h=c[0],y,g;for(g=1;g<c.length;g++)for(y in c[g])!(y in h)&&c[g].hasOwnProperty(y)&&(h[y]=c[g][y]);return h},a=function(c,h){return{value:c,name:h}};r.TRACE=a(1,"TRACE"),r.DEBUG=a(2,"DEBUG"),r.INFO=a(3,"INFO"),r.TIME=a(4,"TIME"),r.WARN=a(5,"WARN"),r.ERROR=a(8,"ERROR"),r.OFF=a(99,"OFF");var f=function(c){this.context=c,this.setLevel(c.filterLevel),this.log=this.info};f.prototype={setLevel:function(c){c&&"value"in c&&(this.context.filterLevel=c)},getLevel:function(){return this.context.filterLevel},enabledFor:function(c){var h=this.context.filterLevel;return c.value>=h.value},trace:function(){this.invoke(r.TRACE,arguments)},debug:function(){this.invoke(r.DEBUG,arguments)},info:function(){this.invoke(r.INFO,arguments)},warn:function(){this.invoke(r.WARN,arguments)},error:function(){this.invoke(r.ERROR,arguments)},time:function(c){typeof c=="string"&&c.length>0&&this.invoke(r.TIME,[c,"start"])},timeEnd:function(c){typeof c=="string"&&c.length>0&&this.invoke(r.TIME,[c,"end"])},invoke:function(c,h){n&&this.enabledFor(c)&&n(h,i({level:c},this.context))}};var u=new f({filterLevel:r.OFF});(function(){var c=r;c.enabledFor=o(u,u.enabledFor),c.trace=o(u,u.trace),c.debug=o(u,u.debug),c.time=o(u,u.time),c.timeEnd=o(u,u.timeEnd),c.info=o(u,u.info),c.warn=o(u,u.warn),c.error=o(u,u.error),c.log=c.info})(),r.setHandler=function(c){n=c},r.setLevel=function(c){u.setLevel(c);for(var h in s)s.hasOwnProperty(h)&&s[h].setLevel(c)},r.getLevel=function(){return u.getLevel()},r.get=function(c){return s[c]||(s[c]=new f(i({name:c},u.context)))},r.createDefaultHandler=function(c){c=c||{},c.formatter=c.formatter||function(p,b){b.name&&p.unshift("["+b.name+"]")};var h={},y=function(g,p){Function.prototype.apply.call(g,console,p)};return typeof console>"u"?function(){}:function(g,p){g=Array.prototype.slice.call(g);var b=console.log,m;p.level===r.TIME?(m=(p.name?"["+p.name+"] ":"")+g[0],g[1]==="start"?console.time?console.time(m):h[m]=new Date().getTime():console.timeEnd?console.timeEnd(m):y(b,[m+": "+(new Date().getTime()-h[m])+"ms"])):(p.level===r.WARN&&console.warn?b=console.warn:p.level===r.ERROR&&console.error?b=console.error:p.level===r.INFO&&console.info?b=console.info:p.level===r.DEBUG&&console.debug?b=console.debug:p.level===r.TRACE&&console.trace&&(b=console.trace),c.formatter(g,p),y(b,g))}},r.useDefaults=function(c){r.setLevel(c&&c.defaultLevel||r.DEBUG),r.setHandler(r.createDefaultHandler(c))},r.setDefaults=r.useDefaults,e.exports?e.exports=r:(r._prevLogger=t.Logger,r.noConflict=function(){return t.Logger=r._prevLogger,r},t.Logger=r)})(ee.commonjsGlobal)})($r);var Vs=$r.exports;const we=ee.getDefaultExportFromCjs(Vs),Nt=e=>typeof e=="string"?e:e.stack||e.toString(),Js=e=>{we.debug("💡",e)},Qs=e=>{we.error("❌",Nt(e))},Ws=e=>{we.error("❌",Nt(e))},Ks=e=>{we.info("✅",Nt(e))},Gs=e=>{we.warn("⚠️",e.toString())},Xs=()=>()=>(ge.useEffect(()=>{we.useDefaults({defaultLevel:we.INFO})},[]),{debug:Js,error:Qs,fatal:Ws,info:Ks,warn:Gs}),Zs=e=>({...t})=>{const r=e(t),[n,s]=r.captureEvent;return{captureEvent:n,useCaptureEvent:s}},Ys=({useAdapter:e,HttpService:t})=>$e("TRACKER_SERVICE",Zs(e),[t.ServiceProvider]),eo=({getDistinctId:e,getTimestamp:t,getHeaders:r,transformProperties:n,config:s})=>({HttpService:o})=>{const i=ke(o),f={Authorization:`Bearer ${s.apiKey}`,...r==null?void 0:r()},u=y=>[s.host,y].filter(Boolean).join("/"),c=(y,g)=>i.post({body:g,headers:f,url:u(y)});return{captureEvent:Wr("posthog-capture-event",async({event:y,properties:g})=>{const p=s.paths.event,b=e(y,g),m=t==null?void 0:t(y,g),E=n(y,g);await c(p,{api_key:s.apiKey,distinct_id:b,event:y,properties:E,timestamp:m})})}};var ot=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},to={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},W,he,lr,ro=(lr=class{constructor(){T(this,W,to);T(this,he,!1)}setTimeoutProvider(e){process.env.NODE_ENV!=="production"&&d(this,he)&&e!==d(this,W)&&console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:d(this,W),provider:e}),S(this,W,e),process.env.NODE_ENV!=="production"&&S(this,he,!1)}setTimeout(e,t){return process.env.NODE_ENV!=="production"&&S(this,he,!0),d(this,W).setTimeout(e,t)}clearTimeout(e){d(this,W).clearTimeout(e)}setInterval(e,t){return process.env.NODE_ENV!=="production"&&S(this,he,!0),d(this,W).setInterval(e,t)}clearInterval(e){d(this,W).clearInterval(e)}},W=new WeakMap,he=new WeakMap,lr),Je=new ro;function no(e){setTimeout(e,0)}var De=typeof window>"u"||"Deno"in globalThis;function Ze(){}function tr(e){return typeof e=="number"&&e>=0&&e!==1/0}function so(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ue(e,t){return typeof e=="function"?e(t):e}function $(e,t){return typeof e=="function"?e(t):e}function rr(e){return JSON.stringify(e,(t,r)=>bt(r)?Object.keys(r).sort().reduce((n,s)=>(n[s]=r[s],n),{}):r)}var oo=Object.prototype.hasOwnProperty;function yt(e,t){if(e===t)return e;const r=nr(e)&&nr(t);if(!r&&!(bt(e)&&bt(t)))return t;const s=(r?e:Object.keys(e)).length,o=r?t:Object.keys(t),i=o.length,a=r?new Array(i):{};let f=0;for(let u=0;u<i;u++){const c=r?u:o[u],h=e[c],y=t[c];if(h===y){a[c]=h,(r?u<s:oo.call(e,c))&&f++;continue}if(h===null||y===null||typeof h!="object"||typeof y!="object"){a[c]=y;continue}const g=yt(h,y);a[c]=g,g===h&&f++}return s===i&&f===s?e:a}function Ye(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function nr(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function bt(e){if(!sr(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!sr(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function sr(e){return Object.prototype.toString.call(e)==="[object Object]"}function or(e,t,r){if(typeof r.structuralSharing=="function")return r.structuralSharing(e,t);if(r.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return yt(e,t)}catch(n){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${r.queryHash}]: ${n}`),n}return yt(e,t)}return t}function zr(e,t){return typeof e=="function"?e(...t):!!e}var de,ne,Re,fr,io=(fr=class extends ot{constructor(){super();T(this,de);T(this,ne);T(this,Re);S(this,Re,t=>{if(!De&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){d(this,ne)||this.setEventListener(d(this,Re))}onUnsubscribe(){var t;this.hasListeners()||((t=d(this,ne))==null||t.call(this),S(this,ne,void 0))}setEventListener(t){var r;S(this,Re,t),(r=d(this,ne))==null||r.call(this),S(this,ne,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){d(this,de)!==t&&(S(this,de,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof d(this,de)=="boolean"?d(this,de):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},de=new WeakMap,ne=new WeakMap,Re=new WeakMap,fr),ao=new io;function ir(){let e,t;const r=new Promise((s,o)=>{e=s,t=o});r.status="pending",r.catch(()=>{});function n(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{n({status:"fulfilled",value:s}),e(s)},r.reject=s=>{n({status:"rejected",reason:s}),t(s)},r}var co=no;function uo(){let e=[],t=0,r=a=>{a()},n=a=>{a()},s=co;const o=a=>{t?e.push(a):s(()=>{r(a)})},i=()=>{const a=e;e=[],a.length&&s(()=>{n(()=>{a.forEach(f=>{r(f)})})})};return{batch:a=>{let f;t++;try{f=a()}finally{t--,t||i()}return f},batchCalls:a=>(...f)=>{o(()=>{a(...f)})},schedule:o,setNotifyFunction:a=>{r=a},setBatchNotifyFunction:a=>{n=a},setScheduler:a=>{s=a}}}var it=uo(),Oe,se,ve,hr,lo=(hr=class extends ot{constructor(){super();T(this,Oe,!0);T(this,se);T(this,ve);S(this,ve,t=>{if(!De&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){d(this,se)||this.setEventListener(d(this,ve))}onUnsubscribe(){var t;this.hasListeners()||((t=d(this,se))==null||t.call(this),S(this,se,void 0))}setEventListener(t){var r;S(this,ve,t),(r=d(this,se))==null||r.call(this),S(this,se,t(this.setOnline.bind(this)))}setOnline(t){d(this,Oe)!==t&&(S(this,Oe,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return d(this,Oe)}},Oe=new WeakMap,se=new WeakMap,ve=new WeakMap,hr),fo=new lo;function ho(e){return(e??"online")==="online"?fo.isOnline():!0}function po(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ho(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}var I,v,Me,k,pe,Te,K,oe,Ie,Ce,Ae,me,ye,ie,xe,C,_e,gt,Et,wt,St,Rt,Ot,vt,Vr,dr,mo=(dr=class extends ot{constructor(t,r){super();T(this,C);T(this,I);T(this,v);T(this,Me);T(this,k);T(this,pe);T(this,Te);T(this,K);T(this,oe);T(this,Ie);T(this,Ce);T(this,Ae);T(this,me);T(this,ye);T(this,ie);T(this,xe,new Set);this.options=r,S(this,I,t),S(this,oe,null),S(this,K,ir()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(d(this,v).addObserver(this),ar(d(this,v),this.options)?x(this,C,_e).call(this):this.updateResult(),x(this,C,St).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Tt(d(this,v),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Tt(d(this,v),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,x(this,C,Rt).call(this),x(this,C,Ot).call(this),d(this,v).removeObserver(this)}setOptions(t){const r=this.options,n=d(this,v);if(this.options=d(this,I).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof $(this.options.enabled,d(this,v))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");x(this,C,vt).call(this),d(this,v).setOptions(this.options),r._defaulted&&!Ye(this.options,r)&&d(this,I).getQueryCache().notify({type:"observerOptionsUpdated",query:d(this,v),observer:this});const s=this.hasListeners();s&&cr(d(this,v),n,this.options,r)&&x(this,C,_e).call(this),this.updateResult(),s&&(d(this,v)!==n||$(this.options.enabled,d(this,v))!==$(r.enabled,d(this,v))||Ue(this.options.staleTime,d(this,v))!==Ue(r.staleTime,d(this,v)))&&x(this,C,gt).call(this);const o=x(this,C,Et).call(this);s&&(d(this,v)!==n||$(this.options.enabled,d(this,v))!==$(r.enabled,d(this,v))||o!==d(this,ie))&&x(this,C,wt).call(this,o)}getOptimisticResult(t){const r=d(this,I).getQueryCache().build(d(this,I),t),n=this.createResult(r,t);return bo(this,n)&&(S(this,k,n),S(this,Te,this.options),S(this,pe,d(this,v).state)),n}getCurrentResult(){return d(this,k)}trackResult(t,r){return new Proxy(t,{get:(n,s)=>(this.trackProp(s),r==null||r(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&d(this,K).status==="pending"&&d(this,K).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,s))})}trackProp(t){d(this,xe).add(t)}getCurrentQuery(){return d(this,v)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=d(this,I).defaultQueryOptions(t),n=d(this,I).getQueryCache().build(d(this,I),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return x(this,C,_e).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),d(this,k)))}createResult(t,r){var ce;const n=d(this,v),s=this.options,o=d(this,k),i=d(this,pe),a=d(this,Te),u=t!==n?t.state:d(this,Me),{state:c}=t;let h={...c},y=!1,g;if(r._optimisticResults){const D=this.hasListeners(),ue=!D&&ar(t,r),q=D&&cr(t,n,r,s);(ue||q)&&(h={...h,...po(c.data,t.options)}),r._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:p,errorUpdatedAt:b,status:m}=h;g=h.data;let E=!1;if(r.placeholderData!==void 0&&g===void 0&&m==="pending"){let D;o!=null&&o.isPlaceholderData&&r.placeholderData===(a==null?void 0:a.placeholderData)?(D=o.data,E=!0):D=typeof r.placeholderData=="function"?r.placeholderData((ce=d(this,Ae))==null?void 0:ce.state.data,d(this,Ae)):r.placeholderData,D!==void 0&&(m="success",g=or(o==null?void 0:o.data,D,r),y=!0)}if(r.select&&g!==void 0&&!E)if(o&&g===(i==null?void 0:i.data)&&r.select===d(this,Ie))g=d(this,Ce);else try{S(this,Ie,r.select),g=r.select(g),g=or(o==null?void 0:o.data,g,r),S(this,Ce,g),S(this,oe,null)}catch(D){S(this,oe,D)}d(this,oe)&&(p=d(this,oe),g=d(this,Ce),b=Date.now(),m="error");const w=h.fetchStatus==="fetching",O=m==="pending",A=m==="error",F=O&&w,N=g!==void 0,M={status:m,fetchStatus:h.fetchStatus,isPending:O,isSuccess:m==="success",isError:A,isInitialLoading:F,isLoading:F,data:g,dataUpdatedAt:h.dataUpdatedAt,error:p,errorUpdatedAt:b,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>u.dataUpdateCount||h.errorUpdateCount>u.errorUpdateCount,isFetching:w,isRefetching:w&&!O,isLoadingError:A&&!N,isPaused:h.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:A&&N,isStale:_t(t,r),refetch:this.refetch,promise:d(this,K),isEnabled:$(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const D=V=>{M.status==="error"?V.reject(M.error):M.data!==void 0&&V.resolve(M.data)},ue=()=>{const V=S(this,K,M.promise=ir());D(V)},q=d(this,K);switch(q.status){case"pending":t.queryHash===n.queryHash&&D(q);break;case"fulfilled":(M.status==="error"||M.data!==q.value)&&ue();break;case"rejected":(M.status!=="error"||M.error!==q.reason)&&ue();break}}return M}updateResult(){const t=d(this,k),r=this.createResult(d(this,v),this.options);if(S(this,pe,d(this,v).state),S(this,Te,this.options),d(this,pe).data!==void 0&&S(this,Ae,d(this,v)),Ye(r,t))return;S(this,k,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!d(this,xe).size)return!0;const i=new Set(o??d(this,xe));return this.options.throwOnError&&i.add("error"),Object.keys(d(this,k)).some(a=>{const f=a;return d(this,k)[f]!==t[f]&&i.has(f)})};x(this,C,Vr).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&x(this,C,St).call(this)}},I=new WeakMap,v=new WeakMap,Me=new WeakMap,k=new WeakMap,pe=new WeakMap,Te=new WeakMap,K=new WeakMap,oe=new WeakMap,Ie=new WeakMap,Ce=new WeakMap,Ae=new WeakMap,me=new WeakMap,ye=new WeakMap,ie=new WeakMap,xe=new WeakMap,C=new WeakSet,_e=function(t){x(this,C,vt).call(this);let r=d(this,v).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(Ze)),r},gt=function(){x(this,C,Rt).call(this);const t=Ue(this.options.staleTime,d(this,v));if(De||d(this,k).isStale||!tr(t))return;const n=so(d(this,k).dataUpdatedAt,t)+1;S(this,me,Je.setTimeout(()=>{d(this,k).isStale||this.updateResult()},n))},Et=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(d(this,v)):this.options.refetchInterval)??!1},wt=function(t){x(this,C,Ot).call(this),S(this,ie,t),!(De||$(this.options.enabled,d(this,v))===!1||!tr(d(this,ie))||d(this,ie)===0)&&S(this,ye,Je.setInterval(()=>{(this.options.refetchIntervalInBackground||ao.isFocused())&&x(this,C,_e).call(this)},d(this,ie)))},St=function(){x(this,C,gt).call(this),x(this,C,wt).call(this,x(this,C,Et).call(this))},Rt=function(){d(this,me)&&(Je.clearTimeout(d(this,me)),S(this,me,void 0))},Ot=function(){d(this,ye)&&(Je.clearInterval(d(this,ye)),S(this,ye,void 0))},vt=function(){const t=d(this,I).getQueryCache().build(d(this,I),this.options);if(t===d(this,v))return;const r=d(this,v);S(this,v,t),S(this,Me,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},Vr=function(t){it.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(d(this,k))}),d(this,I).getQueryCache().notify({query:d(this,v),type:"observerResultsUpdated"})})},dr);function yo(e,t){return $(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function ar(e,t){return yo(e,t)||e.state.data!==void 0&&Tt(e,t,t.refetchOnMount)}function Tt(e,t,r){if($(t.enabled,e)!==!1&&Ue(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&_t(e,t)}return!1}function cr(e,t,r,n){return(e!==t||$(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&_t(e,r)}function _t(e,t){return $(t.enabled,e)!==!1&&e.isStaleByTime(Ue(t.staleTime,e))}function bo(e,t){return!Ye(e.getCurrentResult(),t)}function go(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var G,ae,B,X,Y,Ge,Ct,pr,Eo=(pr=class extends ot{constructor(t,r){super();T(this,Y);T(this,G);T(this,ae);T(this,B);T(this,X);S(this,G,t),this.setOptions(r),this.bindMethods(),x(this,Y,Ge).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=d(this,G).defaultMutationOptions(t),Ye(this.options,r)||d(this,G).getMutationCache().notify({type:"observerOptionsUpdated",mutation:d(this,B),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&rr(r.mutationKey)!==rr(this.options.mutationKey)?this.reset():((n=d(this,B))==null?void 0:n.state.status)==="pending"&&d(this,B).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=d(this,B))==null||t.removeObserver(this)}onMutationUpdate(t){x(this,Y,Ge).call(this),x(this,Y,Ct).call(this,t)}getCurrentResult(){return d(this,ae)}reset(){var t;(t=d(this,B))==null||t.removeObserver(this),S(this,B,void 0),x(this,Y,Ge).call(this),x(this,Y,Ct).call(this)}mutate(t,r){var n;return S(this,X,r),(n=d(this,B))==null||n.removeObserver(this),S(this,B,d(this,G).getMutationCache().build(d(this,G),this.options)),d(this,B).addObserver(this),d(this,B).execute(t)}},G=new WeakMap,ae=new WeakMap,B=new WeakMap,X=new WeakMap,Y=new WeakSet,Ge=function(){var r;const t=((r=d(this,B))==null?void 0:r.state)??go();S(this,ae,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},Ct=function(t){it.batch(()=>{var r,n,s,o,i,a,f,u;if(d(this,X)&&this.hasListeners()){const c=d(this,ae).variables,h=d(this,ae).context,y={client:d(this,G),meta:this.options.meta,mutationKey:this.options.mutationKey};(t==null?void 0:t.type)==="success"?((n=(r=d(this,X)).onSuccess)==null||n.call(r,t.data,c,h,y),(o=(s=d(this,X)).onSettled)==null||o.call(s,t.data,null,c,h,y)):(t==null?void 0:t.type)==="error"&&((a=(i=d(this,X)).onError)==null||a.call(i,t.error,c,h,y),(u=(f=d(this,X)).onSettled)==null||u.call(f,void 0,t.error,c,h,y))}this.listeners.forEach(c=>{c(d(this,ae))})})},pr),wo=_.createContext(void 0),Jr=e=>{const t=_.useContext(wo);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Qr=_.createContext(!1),So=()=>_.useContext(Qr);Qr.Provider;function Ro(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Oo=_.createContext(Ro()),vo=()=>_.useContext(Oo),To=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Co=e=>{_.useEffect(()=>{e.clearReset()},[e])},Ao=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(s&&e.data===void 0||zr(r,[e.error,n])),xo=e=>{if(e.suspense){const r=s=>s==="static"?s:Math.max(s??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...s)=>r(n(...s)):r(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Po=(e,t)=>e.isLoading&&e.isFetching&&!t,Fo=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,ur=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function Lo(e,t,r){var h,y,g,p,b;if(process.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const n=So(),s=vo(),o=Jr(),i=o.defaultQueryOptions(e);(y=(h=o.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||y.call(h,i),process.env.NODE_ENV!=="production"&&(i.queryFn||console.error(`[${i.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)),i._optimisticResults=n?"isRestoring":"optimistic",xo(i),To(i,s),Co(s);const a=!o.getQueryCache().get(i.queryHash),[f]=_.useState(()=>new t(o,i)),u=f.getOptimisticResult(i),c=!n&&e.subscribed!==!1;if(_.useSyncExternalStore(_.useCallback(m=>{const E=c?f.subscribe(it.batchCalls(m)):Ze;return f.updateResult(),E},[f,c]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),_.useEffect(()=>{f.setOptions(i)},[i,f]),Fo(i,u))throw ur(i,f,s);if(Ao({result:u,errorResetBoundary:s,throwOnError:i.throwOnError,query:o.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw u.error;if((p=(g=o.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||p.call(g,i,u),i.experimental_prefetchInRender&&!De&&Po(u,n)){const m=a?ur(i,f,s):(b=o.getQueryCache().get(i.queryHash))==null?void 0:b.promise;m==null||m.catch(Ze).finally(()=>{f.updateResult()})}return i.notifyOnChangeProps?u:f.trackResult(u)}function No(e,t){return Lo(e,mo)}function _o(e,t){const r=Jr(),[n]=_.useState(()=>new Eo(r,e));_.useEffect(()=>{n.setOptions(e)},[n,e]);const s=_.useSyncExternalStore(_.useCallback(i=>n.subscribe(it.batchCalls(i)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=_.useCallback((i,a)=>{n.mutate(i,a).catch(Ze)},[n]);if(s.error&&zr(n.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:o,mutateAsync:s.mutate}}const Uo=()=>{const e=ge.createContext(void 0);return{Provider:n=>{const s=ee.compilerRuntimeExports.c(3),{children:o,value:i}=n;let a;return s[0]!==o||s[1]!==i?(a=mr.jsx(e.Provider,{value:i,children:o}),s[0]=o,s[1]=i,s[2]=a):a=s[2],a},useContext:()=>{const n=ge.useContext(e);if(n===void 0)throw new Error("Context is missing a provider");return n}}},Do=(e,t)=>[t,({initialVariables:n,...s})=>{const[o,i]=ge.useState(n);return{...No({queryFn:()=>t(o),queryKey:[e,t,o,...s.queryKey]}),setVariables:i,variables:o}}],Wr=(e,t)=>[t,n=>_o({...n,mutationFn:t,mutationKey:[e,t,...n.mutationKey??[]]})],$e=(e,t,r)=>{const{useContext:n,Provider:s}=Uo(),o=a=>{const f=ee.compilerRuntimeExports.c(6);let u,c;f[0]!==a?({children:u,...c}=a,f[0]=a,f[1]=u,f[2]=c):(u=f[1],c=f[2]);const h=t(c);let y;return f[3]!==u||f[4]!==h?(y=mr.jsx(s,{value:h,children:u}),f[3]=u,f[4]=h,f[5]=y):y=f[5],y};return o.serviceName=Symbol(e),o.serviceDependencies=r,{ServiceProvider:o,useService:n}},ke=e=>e.useService();exports.createAxiosHttpAdapter=$s;exports.createErrorService=Zr;exports.createEventBasedErrorAdapter=Yr;exports.createHttpService=tn;exports.createJsLogLoggerAdapter=Xs;exports.createLoggerBuilder=qr;exports.createLoggerService=zs;exports.createPosthogTrackerAdapter=eo;exports.createService=$e;exports.createTrackerService=Ys;exports.useBuildMutation=Wr;exports.useBuildQuery=Do;exports.useService=ke;
|
|
10
|
+
*/(function(e){(function(t){var r={};r.VERSION="1.6.1";var n,s={},o=function(c,h){return function(){return h.apply(c,arguments)}},i=function(){var c=arguments,h=c[0],y,g;for(g=1;g<c.length;g++)for(y in c[g])!(y in h)&&c[g].hasOwnProperty(y)&&(h[y]=c[g][y]);return h},a=function(c,h){return{value:c,name:h}};r.TRACE=a(1,"TRACE"),r.DEBUG=a(2,"DEBUG"),r.INFO=a(3,"INFO"),r.TIME=a(4,"TIME"),r.WARN=a(5,"WARN"),r.ERROR=a(8,"ERROR"),r.OFF=a(99,"OFF");var f=function(c){this.context=c,this.setLevel(c.filterLevel),this.log=this.info};f.prototype={setLevel:function(c){c&&"value"in c&&(this.context.filterLevel=c)},getLevel:function(){return this.context.filterLevel},enabledFor:function(c){var h=this.context.filterLevel;return c.value>=h.value},trace:function(){this.invoke(r.TRACE,arguments)},debug:function(){this.invoke(r.DEBUG,arguments)},info:function(){this.invoke(r.INFO,arguments)},warn:function(){this.invoke(r.WARN,arguments)},error:function(){this.invoke(r.ERROR,arguments)},time:function(c){typeof c=="string"&&c.length>0&&this.invoke(r.TIME,[c,"start"])},timeEnd:function(c){typeof c=="string"&&c.length>0&&this.invoke(r.TIME,[c,"end"])},invoke:function(c,h){n&&this.enabledFor(c)&&n(h,i({level:c},this.context))}};var u=new f({filterLevel:r.OFF});(function(){var c=r;c.enabledFor=o(u,u.enabledFor),c.trace=o(u,u.trace),c.debug=o(u,u.debug),c.time=o(u,u.time),c.timeEnd=o(u,u.timeEnd),c.info=o(u,u.info),c.warn=o(u,u.warn),c.error=o(u,u.error),c.log=c.info})(),r.setHandler=function(c){n=c},r.setLevel=function(c){u.setLevel(c);for(var h in s)s.hasOwnProperty(h)&&s[h].setLevel(c)},r.getLevel=function(){return u.getLevel()},r.get=function(c){return s[c]||(s[c]=new f(i({name:c},u.context)))},r.createDefaultHandler=function(c){c=c||{},c.formatter=c.formatter||function(p,b){b.name&&p.unshift("["+b.name+"]")};var h={},y=function(g,p){Function.prototype.apply.call(g,console,p)};return typeof console>"u"?function(){}:function(g,p){g=Array.prototype.slice.call(g);var b=console.log,m;p.level===r.TIME?(m=(p.name?"["+p.name+"] ":"")+g[0],g[1]==="start"?console.time?console.time(m):h[m]=new Date().getTime():console.timeEnd?console.timeEnd(m):y(b,[m+": "+(new Date().getTime()-h[m])+"ms"])):(p.level===r.WARN&&console.warn?b=console.warn:p.level===r.ERROR&&console.error?b=console.error:p.level===r.INFO&&console.info?b=console.info:p.level===r.DEBUG&&console.debug?b=console.debug:p.level===r.TRACE&&console.trace&&(b=console.trace),c.formatter(g,p),y(b,g))}},r.useDefaults=function(c){r.setLevel(c&&c.defaultLevel||r.DEBUG),r.setHandler(r.createDefaultHandler(c))},r.setDefaults=r.useDefaults,e.exports?e.exports=r:(r._prevLogger=t.Logger,r.noConflict=function(){return t.Logger=r._prevLogger,r},t.Logger=r)})(ee.commonjsGlobal)})($r);var Vs=$r.exports;const we=ee.getDefaultExportFromCjs(Vs),Nt=e=>typeof e=="string"?e:e.stack||e.toString(),Js=e=>{we.debug("💡",e)},Qs=e=>{we.error("❌",Nt(e))},Ws=e=>{we.error("❌",Nt(e))},Ks=e=>{we.info("✅",Nt(e))},Gs=e=>{we.warn("⚠️",e.toString())},Xs=()=>()=>(ge.useEffect(()=>{we.useDefaults({defaultLevel:we.INFO})},[]),{debug:Js,error:Qs,fatal:Ws,info:Ks,warn:Gs}),Zs=e=>({...t})=>{const r=e(t),[n,s]=r.captureEvent;return{captureEvent:n,useCaptureEvent:s}},Ys=({useAdapter:e,HttpService:t})=>$e("TRACKER_SERVICE",Zs(e),[t.ServiceProvider]),eo=({getDistinctId:e,getTimestamp:t,getHeaders:r,transformProperties:n,config:s})=>({HttpService:o})=>{const i=De(o),a=()=>({Authorization:`Bearer ${s.apiKey}`,...r==null?void 0:r()}),f=h=>[s.host,h].filter(Boolean).join("/"),u=(h,y)=>i.post({body:y,headers:a(),url:f(h)});return{captureEvent:Wr("posthog-capture-event",async({event:h,properties:y})=>{const g=s.paths.event,p=e(h,y),b=t==null?void 0:t(h,y),m=n(h,y);await u(g,{api_key:s.apiKey,distinct_id:p,event:h,properties:m,timestamp:b})})}};var ot=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},to={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},K,he,lr,ro=(lr=class{constructor(){T(this,K,to);T(this,he,!1)}setTimeoutProvider(e){process.env.NODE_ENV!=="production"&&d(this,he)&&e!==d(this,K)&&console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:d(this,K),provider:e}),S(this,K,e),process.env.NODE_ENV!=="production"&&S(this,he,!1)}setTimeout(e,t){return process.env.NODE_ENV!=="production"&&S(this,he,!0),d(this,K).setTimeout(e,t)}clearTimeout(e){d(this,K).clearTimeout(e)}setInterval(e,t){return process.env.NODE_ENV!=="production"&&S(this,he,!0),d(this,K).setInterval(e,t)}clearInterval(e){d(this,K).clearInterval(e)}},K=new WeakMap,he=new WeakMap,lr),Je=new ro;function no(e){setTimeout(e,0)}var ke=typeof window>"u"||"Deno"in globalThis;function Ze(){}function tr(e){return typeof e=="number"&&e>=0&&e!==1/0}function so(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ue(e,t){return typeof e=="function"?e(t):e}function $(e,t){return typeof e=="function"?e(t):e}function rr(e){return JSON.stringify(e,(t,r)=>bt(r)?Object.keys(r).sort().reduce((n,s)=>(n[s]=r[s],n),{}):r)}var oo=Object.prototype.hasOwnProperty;function yt(e,t){if(e===t)return e;const r=nr(e)&&nr(t);if(!r&&!(bt(e)&&bt(t)))return t;const s=(r?e:Object.keys(e)).length,o=r?t:Object.keys(t),i=o.length,a=r?new Array(i):{};let f=0;for(let u=0;u<i;u++){const c=r?u:o[u],h=e[c],y=t[c];if(h===y){a[c]=h,(r?u<s:oo.call(e,c))&&f++;continue}if(h===null||y===null||typeof h!="object"||typeof y!="object"){a[c]=y;continue}const g=yt(h,y);a[c]=g,g===h&&f++}return s===i&&f===s?e:a}function Ye(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function nr(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function bt(e){if(!sr(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!sr(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function sr(e){return Object.prototype.toString.call(e)==="[object Object]"}function or(e,t,r){if(typeof r.structuralSharing=="function")return r.structuralSharing(e,t);if(r.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return yt(e,t)}catch(n){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${r.queryHash}]: ${n}`),n}return yt(e,t)}return t}function zr(e,t){return typeof e=="function"?e(...t):!!e}var de,ne,Re,fr,io=(fr=class extends ot{constructor(){super();T(this,de);T(this,ne);T(this,Re);S(this,Re,t=>{if(!ke&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){d(this,ne)||this.setEventListener(d(this,Re))}onUnsubscribe(){var t;this.hasListeners()||((t=d(this,ne))==null||t.call(this),S(this,ne,void 0))}setEventListener(t){var r;S(this,Re,t),(r=d(this,ne))==null||r.call(this),S(this,ne,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){d(this,de)!==t&&(S(this,de,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof d(this,de)=="boolean"?d(this,de):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},de=new WeakMap,ne=new WeakMap,Re=new WeakMap,fr),ao=new io;function ir(){let e,t;const r=new Promise((s,o)=>{e=s,t=o});r.status="pending",r.catch(()=>{});function n(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{n({status:"fulfilled",value:s}),e(s)},r.reject=s=>{n({status:"rejected",reason:s}),t(s)},r}var co=no;function uo(){let e=[],t=0,r=a=>{a()},n=a=>{a()},s=co;const o=a=>{t?e.push(a):s(()=>{r(a)})},i=()=>{const a=e;e=[],a.length&&s(()=>{n(()=>{a.forEach(f=>{r(f)})})})};return{batch:a=>{let f;t++;try{f=a()}finally{t--,t||i()}return f},batchCalls:a=>(...f)=>{o(()=>{a(...f)})},schedule:o,setNotifyFunction:a=>{r=a},setBatchNotifyFunction:a=>{n=a},setScheduler:a=>{s=a}}}var it=uo(),Oe,se,ve,hr,lo=(hr=class extends ot{constructor(){super();T(this,Oe,!0);T(this,se);T(this,ve);S(this,ve,t=>{if(!ke&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){d(this,se)||this.setEventListener(d(this,ve))}onUnsubscribe(){var t;this.hasListeners()||((t=d(this,se))==null||t.call(this),S(this,se,void 0))}setEventListener(t){var r;S(this,ve,t),(r=d(this,se))==null||r.call(this),S(this,se,t(this.setOnline.bind(this)))}setOnline(t){d(this,Oe)!==t&&(S(this,Oe,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return d(this,Oe)}},Oe=new WeakMap,se=new WeakMap,ve=new WeakMap,hr),fo=new lo;function ho(e){return(e??"online")==="online"?fo.isOnline():!0}function po(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ho(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}var I,v,Me,D,pe,Te,G,oe,Ie,Ce,Ae,me,ye,ie,xe,C,_e,gt,Et,wt,St,Rt,Ot,vt,Vr,dr,mo=(dr=class extends ot{constructor(t,r){super();T(this,C);T(this,I);T(this,v);T(this,Me);T(this,D);T(this,pe);T(this,Te);T(this,G);T(this,oe);T(this,Ie);T(this,Ce);T(this,Ae);T(this,me);T(this,ye);T(this,ie);T(this,xe,new Set);this.options=r,S(this,I,t),S(this,oe,null),S(this,G,ir()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(d(this,v).addObserver(this),ar(d(this,v),this.options)?x(this,C,_e).call(this):this.updateResult(),x(this,C,St).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Tt(d(this,v),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Tt(d(this,v),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,x(this,C,Rt).call(this),x(this,C,Ot).call(this),d(this,v).removeObserver(this)}setOptions(t){const r=this.options,n=d(this,v);if(this.options=d(this,I).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof $(this.options.enabled,d(this,v))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");x(this,C,vt).call(this),d(this,v).setOptions(this.options),r._defaulted&&!Ye(this.options,r)&&d(this,I).getQueryCache().notify({type:"observerOptionsUpdated",query:d(this,v),observer:this});const s=this.hasListeners();s&&cr(d(this,v),n,this.options,r)&&x(this,C,_e).call(this),this.updateResult(),s&&(d(this,v)!==n||$(this.options.enabled,d(this,v))!==$(r.enabled,d(this,v))||Ue(this.options.staleTime,d(this,v))!==Ue(r.staleTime,d(this,v)))&&x(this,C,gt).call(this);const o=x(this,C,Et).call(this);s&&(d(this,v)!==n||$(this.options.enabled,d(this,v))!==$(r.enabled,d(this,v))||o!==d(this,ie))&&x(this,C,wt).call(this,o)}getOptimisticResult(t){const r=d(this,I).getQueryCache().build(d(this,I),t),n=this.createResult(r,t);return bo(this,n)&&(S(this,D,n),S(this,Te,this.options),S(this,pe,d(this,v).state)),n}getCurrentResult(){return d(this,D)}trackResult(t,r){return new Proxy(t,{get:(n,s)=>(this.trackProp(s),r==null||r(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&d(this,G).status==="pending"&&d(this,G).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,s))})}trackProp(t){d(this,xe).add(t)}getCurrentQuery(){return d(this,v)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=d(this,I).defaultQueryOptions(t),n=d(this,I).getQueryCache().build(d(this,I),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return x(this,C,_e).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),d(this,D)))}createResult(t,r){var ce;const n=d(this,v),s=this.options,o=d(this,D),i=d(this,pe),a=d(this,Te),u=t!==n?t.state:d(this,Me),{state:c}=t;let h={...c},y=!1,g;if(r._optimisticResults){const k=this.hasListeners(),ue=!k&&ar(t,r),q=k&&cr(t,n,r,s);(ue||q)&&(h={...h,...po(c.data,t.options)}),r._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:p,errorUpdatedAt:b,status:m}=h;g=h.data;let E=!1;if(r.placeholderData!==void 0&&g===void 0&&m==="pending"){let k;o!=null&&o.isPlaceholderData&&r.placeholderData===(a==null?void 0:a.placeholderData)?(k=o.data,E=!0):k=typeof r.placeholderData=="function"?r.placeholderData((ce=d(this,Ae))==null?void 0:ce.state.data,d(this,Ae)):r.placeholderData,k!==void 0&&(m="success",g=or(o==null?void 0:o.data,k,r),y=!0)}if(r.select&&g!==void 0&&!E)if(o&&g===(i==null?void 0:i.data)&&r.select===d(this,Ie))g=d(this,Ce);else try{S(this,Ie,r.select),g=r.select(g),g=or(o==null?void 0:o.data,g,r),S(this,Ce,g),S(this,oe,null)}catch(k){S(this,oe,k)}d(this,oe)&&(p=d(this,oe),g=d(this,Ce),b=Date.now(),m="error");const w=h.fetchStatus==="fetching",O=m==="pending",A=m==="error",F=O&&w,N=g!==void 0,M={status:m,fetchStatus:h.fetchStatus,isPending:O,isSuccess:m==="success",isError:A,isInitialLoading:F,isLoading:F,data:g,dataUpdatedAt:h.dataUpdatedAt,error:p,errorUpdatedAt:b,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>u.dataUpdateCount||h.errorUpdateCount>u.errorUpdateCount,isFetching:w,isRefetching:w&&!O,isLoadingError:A&&!N,isPaused:h.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:A&&N,isStale:_t(t,r),refetch:this.refetch,promise:d(this,G),isEnabled:$(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const k=J=>{M.status==="error"?J.reject(M.error):M.data!==void 0&&J.resolve(M.data)},ue=()=>{const J=S(this,G,M.promise=ir());k(J)},q=d(this,G);switch(q.status){case"pending":t.queryHash===n.queryHash&&k(q);break;case"fulfilled":(M.status==="error"||M.data!==q.value)&&ue();break;case"rejected":(M.status!=="error"||M.error!==q.reason)&&ue();break}}return M}updateResult(){const t=d(this,D),r=this.createResult(d(this,v),this.options);if(S(this,pe,d(this,v).state),S(this,Te,this.options),d(this,pe).data!==void 0&&S(this,Ae,d(this,v)),Ye(r,t))return;S(this,D,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!d(this,xe).size)return!0;const i=new Set(o??d(this,xe));return this.options.throwOnError&&i.add("error"),Object.keys(d(this,D)).some(a=>{const f=a;return d(this,D)[f]!==t[f]&&i.has(f)})};x(this,C,Vr).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&x(this,C,St).call(this)}},I=new WeakMap,v=new WeakMap,Me=new WeakMap,D=new WeakMap,pe=new WeakMap,Te=new WeakMap,G=new WeakMap,oe=new WeakMap,Ie=new WeakMap,Ce=new WeakMap,Ae=new WeakMap,me=new WeakMap,ye=new WeakMap,ie=new WeakMap,xe=new WeakMap,C=new WeakSet,_e=function(t){x(this,C,vt).call(this);let r=d(this,v).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(Ze)),r},gt=function(){x(this,C,Rt).call(this);const t=Ue(this.options.staleTime,d(this,v));if(ke||d(this,D).isStale||!tr(t))return;const n=so(d(this,D).dataUpdatedAt,t)+1;S(this,me,Je.setTimeout(()=>{d(this,D).isStale||this.updateResult()},n))},Et=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(d(this,v)):this.options.refetchInterval)??!1},wt=function(t){x(this,C,Ot).call(this),S(this,ie,t),!(ke||$(this.options.enabled,d(this,v))===!1||!tr(d(this,ie))||d(this,ie)===0)&&S(this,ye,Je.setInterval(()=>{(this.options.refetchIntervalInBackground||ao.isFocused())&&x(this,C,_e).call(this)},d(this,ie)))},St=function(){x(this,C,gt).call(this),x(this,C,wt).call(this,x(this,C,Et).call(this))},Rt=function(){d(this,me)&&(Je.clearTimeout(d(this,me)),S(this,me,void 0))},Ot=function(){d(this,ye)&&(Je.clearInterval(d(this,ye)),S(this,ye,void 0))},vt=function(){const t=d(this,I).getQueryCache().build(d(this,I),this.options);if(t===d(this,v))return;const r=d(this,v);S(this,v,t),S(this,Me,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},Vr=function(t){it.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(d(this,D))}),d(this,I).getQueryCache().notify({query:d(this,v),type:"observerResultsUpdated"})})},dr);function yo(e,t){return $(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function ar(e,t){return yo(e,t)||e.state.data!==void 0&&Tt(e,t,t.refetchOnMount)}function Tt(e,t,r){if($(t.enabled,e)!==!1&&Ue(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&_t(e,t)}return!1}function cr(e,t,r,n){return(e!==t||$(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&_t(e,r)}function _t(e,t){return $(t.enabled,e)!==!1&&e.isStaleByTime(Ue(t.staleTime,e))}function bo(e,t){return!Ye(e.getCurrentResult(),t)}function go(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var X,ae,B,Z,Y,Ge,Ct,pr,Eo=(pr=class extends ot{constructor(t,r){super();T(this,Y);T(this,X);T(this,ae);T(this,B);T(this,Z);S(this,X,t),this.setOptions(r),this.bindMethods(),x(this,Y,Ge).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=d(this,X).defaultMutationOptions(t),Ye(this.options,r)||d(this,X).getMutationCache().notify({type:"observerOptionsUpdated",mutation:d(this,B),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&rr(r.mutationKey)!==rr(this.options.mutationKey)?this.reset():((n=d(this,B))==null?void 0:n.state.status)==="pending"&&d(this,B).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=d(this,B))==null||t.removeObserver(this)}onMutationUpdate(t){x(this,Y,Ge).call(this),x(this,Y,Ct).call(this,t)}getCurrentResult(){return d(this,ae)}reset(){var t;(t=d(this,B))==null||t.removeObserver(this),S(this,B,void 0),x(this,Y,Ge).call(this),x(this,Y,Ct).call(this)}mutate(t,r){var n;return S(this,Z,r),(n=d(this,B))==null||n.removeObserver(this),S(this,B,d(this,X).getMutationCache().build(d(this,X),this.options)),d(this,B).addObserver(this),d(this,B).execute(t)}},X=new WeakMap,ae=new WeakMap,B=new WeakMap,Z=new WeakMap,Y=new WeakSet,Ge=function(){var r;const t=((r=d(this,B))==null?void 0:r.state)??go();S(this,ae,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},Ct=function(t){it.batch(()=>{var r,n,s,o,i,a,f,u;if(d(this,Z)&&this.hasListeners()){const c=d(this,ae).variables,h=d(this,ae).context,y={client:d(this,X),meta:this.options.meta,mutationKey:this.options.mutationKey};(t==null?void 0:t.type)==="success"?((n=(r=d(this,Z)).onSuccess)==null||n.call(r,t.data,c,h,y),(o=(s=d(this,Z)).onSettled)==null||o.call(s,t.data,null,c,h,y)):(t==null?void 0:t.type)==="error"&&((a=(i=d(this,Z)).onError)==null||a.call(i,t.error,c,h,y),(u=(f=d(this,Z)).onSettled)==null||u.call(f,void 0,t.error,c,h,y))}this.listeners.forEach(c=>{c(d(this,ae))})})},pr),wo=_.createContext(void 0),Jr=e=>{const t=_.useContext(wo);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Qr=_.createContext(!1),So=()=>_.useContext(Qr);Qr.Provider;function Ro(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Oo=_.createContext(Ro()),vo=()=>_.useContext(Oo),To=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Co=e=>{_.useEffect(()=>{e.clearReset()},[e])},Ao=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(s&&e.data===void 0||zr(r,[e.error,n])),xo=e=>{if(e.suspense){const r=s=>s==="static"?s:Math.max(s??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...s)=>r(n(...s)):r(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Po=(e,t)=>e.isLoading&&e.isFetching&&!t,Fo=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,ur=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function Lo(e,t,r){var h,y,g,p,b;if(process.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const n=So(),s=vo(),o=Jr(),i=o.defaultQueryOptions(e);(y=(h=o.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||y.call(h,i),process.env.NODE_ENV!=="production"&&(i.queryFn||console.error(`[${i.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)),i._optimisticResults=n?"isRestoring":"optimistic",xo(i),To(i,s),Co(s);const a=!o.getQueryCache().get(i.queryHash),[f]=_.useState(()=>new t(o,i)),u=f.getOptimisticResult(i),c=!n&&e.subscribed!==!1;if(_.useSyncExternalStore(_.useCallback(m=>{const E=c?f.subscribe(it.batchCalls(m)):Ze;return f.updateResult(),E},[f,c]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),_.useEffect(()=>{f.setOptions(i)},[i,f]),Fo(i,u))throw ur(i,f,s);if(Ao({result:u,errorResetBoundary:s,throwOnError:i.throwOnError,query:o.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw u.error;if((p=(g=o.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||p.call(g,i,u),i.experimental_prefetchInRender&&!ke&&Po(u,n)){const m=a?ur(i,f,s):(b=o.getQueryCache().get(i.queryHash))==null?void 0:b.promise;m==null||m.catch(Ze).finally(()=>{f.updateResult()})}return i.notifyOnChangeProps?u:f.trackResult(u)}function No(e,t){return Lo(e,mo)}function _o(e,t){const r=Jr(),[n]=_.useState(()=>new Eo(r,e));_.useEffect(()=>{n.setOptions(e)},[n,e]);const s=_.useSyncExternalStore(_.useCallback(i=>n.subscribe(it.batchCalls(i)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=_.useCallback((i,a)=>{n.mutate(i,a).catch(Ze)},[n]);if(s.error&&zr(n.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:o,mutateAsync:s.mutate}}const Uo=()=>{const e=ge.createContext(void 0);return{Provider:n=>{const s=ee.compilerRuntimeExports.c(3),{children:o,value:i}=n;let a;return s[0]!==o||s[1]!==i?(a=mr.jsx(e.Provider,{value:i,children:o}),s[0]=o,s[1]=i,s[2]=a):a=s[2],a},useContext:()=>{const n=ge.useContext(e);if(n===void 0)throw new Error("Context is missing a provider");return n}}},ko=(e,t)=>[t,({initialVariables:n,...s})=>{const[o,i]=ge.useState(n);return{...No({queryFn:()=>t(o),queryKey:[e,t,o,...s.queryKey]}),setVariables:i,variables:o}}],Wr=(e,t)=>[t,n=>_o({...n,mutationFn:t,mutationKey:[e,t,...n.mutationKey??[]]})],$e=(e,t,r)=>{const{useContext:n,Provider:s}=Uo(),o=a=>{const f=ee.compilerRuntimeExports.c(6);let u,c;f[0]!==a?({children:u,...c}=a,f[0]=a,f[1]=u,f[2]=c):(u=f[1],c=f[2]);const h=t(c);let y;return f[3]!==u||f[4]!==h?(y=mr.jsx(s,{value:h,children:u}),f[3]=u,f[4]=h,f[5]=y):y=f[5],y};return o.serviceName=Symbol(e),o.serviceDependencies=r,{ServiceProvider:o,useService:n}},De=e=>e.useService();exports.createAxiosHttpAdapter=$s;exports.createErrorService=Zr;exports.createEventBasedErrorAdapter=Yr;exports.createHttpService=tn;exports.createJsLogLoggerAdapter=Xs;exports.createLoggerBuilder=qr;exports.createLoggerService=zs;exports.createPosthogTrackerAdapter=eo;exports.createService=$e;exports.createTrackerService=Ys;exports.useBuildMutation=Wr;exports.useBuildQuery=ko;exports.useService=De;
|
package/dist/services.es.js
CHANGED
|
@@ -3,11 +3,11 @@ var Mt = (e) => {
|
|
|
3
3
|
};
|
|
4
4
|
var it = (e, t, r) => t.has(e) || Mt("Cannot " + r);
|
|
5
5
|
var d = (e, t, r) => (it(e, t, "read from private field"), r ? r.call(e) : t.get(e)), T = (e, t, r) => t.has(e) ? Mt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), S = (e, t, r, n) => (it(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r), x = (e, t, r) => (it(e, t, "access private method"), r);
|
|
6
|
-
import { c as Tt, l as It, a as mr, d as
|
|
6
|
+
import { c as Tt, l as It, a as mr, d as Xr, g as Zr } from "./chunks/http.helper.CwyjayYT.js";
|
|
7
7
|
import * as _ from "react";
|
|
8
|
-
import { useRef as
|
|
8
|
+
import { useRef as Yr, useEffect as yr, createContext as en, useState as tn, useContext as rn } from "react";
|
|
9
9
|
import { jsx as br } from "react/jsx-runtime";
|
|
10
|
-
import { HttpServiceError as
|
|
10
|
+
import { HttpServiceError as Z, HttpServiceErrorCode as gr } from "./errors.es.js";
|
|
11
11
|
const nn = (e) => ({
|
|
12
12
|
...t
|
|
13
13
|
}) => e(t), jo = ({
|
|
@@ -16,7 +16,7 @@ const nn = (e) => ({
|
|
|
16
16
|
}) => st("ERROR_SERVICE", nn(e), [t.ServiceProvider]), qo = () => ({
|
|
17
17
|
LoggerService: e
|
|
18
18
|
}) => {
|
|
19
|
-
const t = Ge(e), r =
|
|
19
|
+
const t = Ge(e), r = Yr({}), n = (a, f) => {
|
|
20
20
|
const u = r.current;
|
|
21
21
|
r.current = {
|
|
22
22
|
...u,
|
|
@@ -64,8 +64,8 @@ const nn = (e) => ({
|
|
|
64
64
|
details: w,
|
|
65
65
|
message: O
|
|
66
66
|
} = E;
|
|
67
|
-
return o.raiseError(new
|
|
68
|
-
code:
|
|
67
|
+
return o.raiseError(new Z({
|
|
68
|
+
code: gr.Unauthorized,
|
|
69
69
|
details: w,
|
|
70
70
|
message: O
|
|
71
71
|
}));
|
|
@@ -89,7 +89,7 @@ const nn = (e) => ({
|
|
|
89
89
|
});
|
|
90
90
|
let A, F;
|
|
91
91
|
const L = (N) => {
|
|
92
|
-
if (N instanceof
|
|
92
|
+
if (N instanceof Z) {
|
|
93
93
|
F = N;
|
|
94
94
|
return;
|
|
95
95
|
}
|
|
@@ -120,8 +120,8 @@ const nn = (e) => ({
|
|
|
120
120
|
throw Error(`Unknown method HTTP method '${E}'`);
|
|
121
121
|
}
|
|
122
122
|
if (F)
|
|
123
|
-
throw F;
|
|
124
|
-
return A ? (a(A), f(A.status) && c(new
|
|
123
|
+
throw c(F), F;
|
|
124
|
+
return A ? (a(A), f(A.status) && c(new Z({
|
|
125
125
|
details: {
|
|
126
126
|
body: JSON.stringify(A.body),
|
|
127
127
|
method: E,
|
|
@@ -142,28 +142,28 @@ const nn = (e) => ({
|
|
|
142
142
|
ErrorService: t,
|
|
143
143
|
LoggerService: r
|
|
144
144
|
}) => st("HTTP_SERVICE", sn(e), [t.ServiceProvider, r.ServiceProvider]);
|
|
145
|
-
function
|
|
145
|
+
function Er(e, t) {
|
|
146
146
|
return function() {
|
|
147
147
|
return e.apply(t, arguments);
|
|
148
148
|
};
|
|
149
149
|
}
|
|
150
|
-
const { toString: on } = Object.prototype, { getPrototypeOf: Ct } = Object, { iterator: Xe, toStringTag:
|
|
150
|
+
const { toString: on } = Object.prototype, { getPrototypeOf: Ct } = Object, { iterator: Xe, toStringTag: wr } = Symbol, Ze = /* @__PURE__ */ ((e) => (t) => {
|
|
151
151
|
const r = on.call(t);
|
|
152
152
|
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
153
153
|
})(/* @__PURE__ */ Object.create(null)), z = (e) => (e = e.toLowerCase(), (t) => Ze(t) === e), Ye = (e) => (t) => typeof t === e, { isArray: xe } = Array, Ae = Ye("undefined");
|
|
154
154
|
function ke(e) {
|
|
155
155
|
return e !== null && !Ae(e) && e.constructor !== null && !Ae(e.constructor) && j(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
156
156
|
}
|
|
157
|
-
const
|
|
157
|
+
const Sr = z("ArrayBuffer");
|
|
158
158
|
function an(e) {
|
|
159
159
|
let t;
|
|
160
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
160
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Sr(e.buffer), t;
|
|
161
161
|
}
|
|
162
|
-
const cn = Ye("string"), j = Ye("function"),
|
|
162
|
+
const cn = Ye("string"), j = Ye("function"), Rr = Ye("number"), Me = (e) => e !== null && typeof e == "object", un = (e) => e === !0 || e === !1, $e = (e) => {
|
|
163
163
|
if (Ze(e) !== "object")
|
|
164
164
|
return !1;
|
|
165
165
|
const t = Ct(e);
|
|
166
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
166
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(wr in e) && !(Xe in e);
|
|
167
167
|
}, ln = (e) => {
|
|
168
168
|
if (!Me(e) || ke(e))
|
|
169
169
|
return !1;
|
|
@@ -193,7 +193,7 @@ function Ie(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
|
193
193
|
a = o[n], t.call(null, e[a], a, e);
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function Or(e, t) {
|
|
197
197
|
if (ke(e))
|
|
198
198
|
return null;
|
|
199
199
|
t = t.toLowerCase();
|
|
@@ -204,10 +204,10 @@ function Rr(e, t) {
|
|
|
204
204
|
return s;
|
|
205
205
|
return null;
|
|
206
206
|
}
|
|
207
|
-
const le = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
|
207
|
+
const le = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, vr = (e) => !Ae(e) && e !== le;
|
|
208
208
|
function lt() {
|
|
209
|
-
const { caseless: e, skipUndefined: t } =
|
|
210
|
-
const i = e &&
|
|
209
|
+
const { caseless: e, skipUndefined: t } = vr(this) && this || {}, r = {}, n = (s, o) => {
|
|
210
|
+
const i = e && Or(r, o) || o;
|
|
211
211
|
$e(r[i]) && $e(s) ? r[i] = lt(r[i], s) : $e(s) ? r[i] = lt({}, s) : xe(s) ? r[i] = s.slice() : (!t || !Ae(s)) && (r[i] = s);
|
|
212
212
|
};
|
|
213
213
|
for (let s = 0, o = arguments.length; s < o; s++)
|
|
@@ -215,7 +215,7 @@ function lt() {
|
|
|
215
215
|
return r;
|
|
216
216
|
}
|
|
217
217
|
const On = (e, t, r, { allOwnKeys: n } = {}) => (Ie(t, (s, o) => {
|
|
218
|
-
r && j(s) ? e[o] =
|
|
218
|
+
r && j(s) ? e[o] = Er(s, r) : e[o] = s;
|
|
219
219
|
}, { allOwnKeys: n }), e), vn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Tn = (e, t, r, n) => {
|
|
220
220
|
e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
221
221
|
value: t.prototype
|
|
@@ -238,7 +238,7 @@ const On = (e, t, r, { allOwnKeys: n } = {}) => (Ie(t, (s, o) => {
|
|
|
238
238
|
if (!e) return null;
|
|
239
239
|
if (xe(e)) return e;
|
|
240
240
|
let t = e.length;
|
|
241
|
-
if (!
|
|
241
|
+
if (!Rr(t)) return null;
|
|
242
242
|
const r = new Array(t);
|
|
243
243
|
for (; t-- > 0; )
|
|
244
244
|
r[t] = e[t];
|
|
@@ -261,14 +261,14 @@ const On = (e, t, r, { allOwnKeys: n } = {}) => (Ie(t, (s, o) => {
|
|
|
261
261
|
function(r, n, s) {
|
|
262
262
|
return n.toUpperCase() + s;
|
|
263
263
|
}
|
|
264
|
-
), Bt = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), Un = z("RegExp"),
|
|
264
|
+
), Bt = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), Un = z("RegExp"), Tr = (e, t) => {
|
|
265
265
|
const r = Object.getOwnPropertyDescriptors(e), n = {};
|
|
266
266
|
Ie(r, (s, o) => {
|
|
267
267
|
let i;
|
|
268
268
|
(i = t(s, o, e)) !== !1 && (n[o] = i || s);
|
|
269
269
|
}), Object.defineProperties(e, n);
|
|
270
270
|
}, Dn = (e) => {
|
|
271
|
-
|
|
271
|
+
Tr(e, (t, r) => {
|
|
272
272
|
if (j(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
|
|
273
273
|
return !1;
|
|
274
274
|
const n = e[r];
|
|
@@ -292,7 +292,7 @@ const On = (e, t, r, { allOwnKeys: n } = {}) => (Ie(t, (s, o) => {
|
|
|
292
292
|
}, Mn = () => {
|
|
293
293
|
}, In = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
294
294
|
function Bn(e) {
|
|
295
|
-
return !!(e && j(e.append) && e[
|
|
295
|
+
return !!(e && j(e.append) && e[wr] === "FormData" && e[Xe]);
|
|
296
296
|
}
|
|
297
297
|
const jn = (e) => {
|
|
298
298
|
const t = new Array(10), r = (n, s) => {
|
|
@@ -313,21 +313,21 @@ const jn = (e) => {
|
|
|
313
313
|
return n;
|
|
314
314
|
};
|
|
315
315
|
return r(e, 0);
|
|
316
|
-
}, qn = z("AsyncFunction"), Hn = (e) => e && (Me(e) || j(e)) && j(e.then) && j(e.catch),
|
|
316
|
+
}, qn = z("AsyncFunction"), Hn = (e) => e && (Me(e) || j(e)) && j(e.then) && j(e.catch), Cr = ((e, t) => e ? setImmediate : t ? ((r, n) => (le.addEventListener("message", ({ source: s, data: o }) => {
|
|
317
317
|
s === le && o === r && n.length && n.shift()();
|
|
318
318
|
}, !1), (s) => {
|
|
319
319
|
n.push(s), le.postMessage(r, "*");
|
|
320
320
|
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
|
|
321
321
|
typeof setImmediate == "function",
|
|
322
322
|
j(le.postMessage)
|
|
323
|
-
), $n = typeof queueMicrotask < "u" ? queueMicrotask.bind(le) : typeof process < "u" && process.nextTick ||
|
|
323
|
+
), $n = typeof queueMicrotask < "u" ? queueMicrotask.bind(le) : typeof process < "u" && process.nextTick || Cr, zn = (e) => e != null && j(e[Xe]), l = {
|
|
324
324
|
isArray: xe,
|
|
325
|
-
isArrayBuffer:
|
|
325
|
+
isArrayBuffer: Sr,
|
|
326
326
|
isBuffer: ke,
|
|
327
327
|
isFormData: yn,
|
|
328
328
|
isArrayBufferView: an,
|
|
329
329
|
isString: cn,
|
|
330
|
-
isNumber:
|
|
330
|
+
isNumber: Rr,
|
|
331
331
|
isBoolean: un,
|
|
332
332
|
isObject: Me,
|
|
333
333
|
isPlainObject: $e,
|
|
@@ -363,20 +363,20 @@ const jn = (e) => {
|
|
|
363
363
|
hasOwnProperty: Bt,
|
|
364
364
|
hasOwnProp: Bt,
|
|
365
365
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
366
|
-
reduceDescriptors:
|
|
366
|
+
reduceDescriptors: Tr,
|
|
367
367
|
freezeMethods: Dn,
|
|
368
368
|
toObjectSet: kn,
|
|
369
369
|
toCamelCase: _n,
|
|
370
370
|
noop: Mn,
|
|
371
371
|
toFiniteNumber: In,
|
|
372
|
-
findKey:
|
|
372
|
+
findKey: Or,
|
|
373
373
|
global: le,
|
|
374
|
-
isContextDefined:
|
|
374
|
+
isContextDefined: vr,
|
|
375
375
|
isSpecCompliantForm: Bn,
|
|
376
376
|
toJSONObject: jn,
|
|
377
377
|
isAsyncFn: qn,
|
|
378
378
|
isThenable: Hn,
|
|
379
|
-
setImmediate:
|
|
379
|
+
setImmediate: Cr,
|
|
380
380
|
asap: $n,
|
|
381
381
|
isIterable: zn
|
|
382
382
|
};
|
|
@@ -404,7 +404,7 @@ l.inherits(R, Error, {
|
|
|
404
404
|
};
|
|
405
405
|
}
|
|
406
406
|
});
|
|
407
|
-
const
|
|
407
|
+
const Ar = R.prototype, xr = {};
|
|
408
408
|
[
|
|
409
409
|
"ERR_BAD_OPTION_VALUE",
|
|
410
410
|
"ERR_BAD_OPTION",
|
|
@@ -420,12 +420,12 @@ const Cr = R.prototype, Ar = {};
|
|
|
420
420
|
"ERR_INVALID_URL"
|
|
421
421
|
// eslint-disable-next-line func-names
|
|
422
422
|
].forEach((e) => {
|
|
423
|
-
|
|
423
|
+
xr[e] = { value: e };
|
|
424
424
|
});
|
|
425
|
-
Object.defineProperties(R,
|
|
426
|
-
Object.defineProperty(
|
|
425
|
+
Object.defineProperties(R, xr);
|
|
426
|
+
Object.defineProperty(Ar, "isAxiosError", { value: !0 });
|
|
427
427
|
R.from = (e, t, r, n, s, o) => {
|
|
428
|
-
const i = Object.create(
|
|
428
|
+
const i = Object.create(Ar);
|
|
429
429
|
l.toFlatObject(e, i, function(c) {
|
|
430
430
|
return c !== Error.prototype;
|
|
431
431
|
}, (u) => u !== "isAxiosError");
|
|
@@ -436,12 +436,12 @@ const Vn = null;
|
|
|
436
436
|
function ft(e) {
|
|
437
437
|
return l.isPlainObject(e) || l.isArray(e);
|
|
438
438
|
}
|
|
439
|
-
function
|
|
439
|
+
function Pr(e) {
|
|
440
440
|
return l.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
441
441
|
}
|
|
442
442
|
function jt(e, t, r) {
|
|
443
443
|
return e ? e.concat(t).map(function(s, o) {
|
|
444
|
-
return s =
|
|
444
|
+
return s = Pr(s), !r && o ? "[" + s + "]" : s;
|
|
445
445
|
}).join(r ? "." : "") : t;
|
|
446
446
|
}
|
|
447
447
|
function Jn(e) {
|
|
@@ -479,7 +479,7 @@ function et(e, t, r) {
|
|
|
479
479
|
if (l.endsWith(b, "{}"))
|
|
480
480
|
b = n ? b : b.slice(0, -2), p = JSON.stringify(p);
|
|
481
481
|
else if (l.isArray(p) && Jn(p) || (l.isFileList(p) || l.endsWith(b, "[]")) && (E = l.toArray(p)))
|
|
482
|
-
return b =
|
|
482
|
+
return b = Pr(b), E.forEach(function(O, A) {
|
|
483
483
|
!(l.isUndefined(O) || O === null) && t.append(
|
|
484
484
|
// eslint-disable-next-line no-nested-ternary
|
|
485
485
|
i === !0 ? jt([b], A, o) : i === null ? b : b + "[]",
|
|
@@ -530,11 +530,11 @@ function qt(e) {
|
|
|
530
530
|
function At(e, t) {
|
|
531
531
|
this._pairs = [], e && et(e, this, t);
|
|
532
532
|
}
|
|
533
|
-
const
|
|
534
|
-
|
|
533
|
+
const Fr = At.prototype;
|
|
534
|
+
Fr.append = function(t, r) {
|
|
535
535
|
this._pairs.push([t, r]);
|
|
536
536
|
};
|
|
537
|
-
|
|
537
|
+
Fr.toString = function(t) {
|
|
538
538
|
const r = t ? function(n) {
|
|
539
539
|
return t.call(this, n, qt);
|
|
540
540
|
} : qt;
|
|
@@ -545,7 +545,7 @@ Pr.toString = function(t) {
|
|
|
545
545
|
function Wn(e) {
|
|
546
546
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function Nr(e, t, r) {
|
|
549
549
|
if (!t)
|
|
550
550
|
return e;
|
|
551
551
|
const n = r && r.encode || Wn;
|
|
@@ -614,7 +614,7 @@ class Ht {
|
|
|
614
614
|
});
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
|
-
const
|
|
617
|
+
const Lr = {
|
|
618
618
|
silentJSONParsing: !0,
|
|
619
619
|
forcedJSONParsing: !0,
|
|
620
620
|
clarifyTimeoutError: !1
|
|
@@ -658,7 +658,7 @@ function os(e) {
|
|
|
658
658
|
o = r[n], t[o] = e[o];
|
|
659
659
|
return t;
|
|
660
660
|
}
|
|
661
|
-
function
|
|
661
|
+
function _r(e) {
|
|
662
662
|
function t(r, n, s, o) {
|
|
663
663
|
let i = r[o++];
|
|
664
664
|
if (i === "__proto__") return !0;
|
|
@@ -684,12 +684,12 @@ function is(e, t, r) {
|
|
|
684
684
|
return (r || JSON.stringify)(e);
|
|
685
685
|
}
|
|
686
686
|
const Be = {
|
|
687
|
-
transitional:
|
|
687
|
+
transitional: Lr,
|
|
688
688
|
adapter: ["xhr", "http", "fetch"],
|
|
689
689
|
transformRequest: [function(t, r) {
|
|
690
690
|
const n = r.getContentType() || "", s = n.indexOf("application/json") > -1, o = l.isObject(t);
|
|
691
691
|
if (o && l.isHTMLForm(t) && (t = new FormData(t)), l.isFormData(t))
|
|
692
|
-
return s ? JSON.stringify(
|
|
692
|
+
return s ? JSON.stringify(_r(t)) : t;
|
|
693
693
|
if (l.isArrayBuffer(t) || l.isBuffer(t) || l.isStream(t) || l.isFile(t) || l.isBlob(t) || l.isReadableStream(t))
|
|
694
694
|
return t;
|
|
695
695
|
if (l.isArrayBufferView(t))
|
|
@@ -960,7 +960,7 @@ function ct(e, t) {
|
|
|
960
960
|
o = a.call(r, o, s.normalize(), t ? t.status : void 0);
|
|
961
961
|
}), s.normalize(), o;
|
|
962
962
|
}
|
|
963
|
-
function
|
|
963
|
+
function Ur(e) {
|
|
964
964
|
return !!(e && e.__CANCEL__);
|
|
965
965
|
}
|
|
966
966
|
function Pe(e, t, r) {
|
|
@@ -969,7 +969,7 @@ function Pe(e, t, r) {
|
|
|
969
969
|
l.inherits(Pe, R, {
|
|
970
970
|
__CANCEL__: !0
|
|
971
971
|
});
|
|
972
|
-
function
|
|
972
|
+
function Dr(e, t, r) {
|
|
973
973
|
const n = r.config.validateStatus;
|
|
974
974
|
!r.status || !n || n(r.status) ? e(r) : t(new R(
|
|
975
975
|
"Request failed with status code " + r.status,
|
|
@@ -1075,7 +1075,7 @@ function gs(e) {
|
|
|
1075
1075
|
function Es(e, t) {
|
|
1076
1076
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
1077
1077
|
}
|
|
1078
|
-
function
|
|
1078
|
+
function kr(e, t, r) {
|
|
1079
1079
|
let n = !gs(t);
|
|
1080
1080
|
return e && (n || r == !1) ? Es(e, t) : t;
|
|
1081
1081
|
}
|
|
@@ -1144,10 +1144,10 @@ function be(e, t) {
|
|
|
1144
1144
|
l.isUndefined(y) && h !== a || (r[c] = y);
|
|
1145
1145
|
}), r;
|
|
1146
1146
|
}
|
|
1147
|
-
const
|
|
1147
|
+
const Mr = (e) => {
|
|
1148
1148
|
const t = be({}, e);
|
|
1149
1149
|
let { data: r, withXSRFToken: n, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: a } = t;
|
|
1150
|
-
if (t.headers = i = q.from(i), t.url =
|
|
1150
|
+
if (t.headers = i = q.from(i), t.url = Nr(kr(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && i.set(
|
|
1151
1151
|
"Authorization",
|
|
1152
1152
|
"Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
|
|
1153
1153
|
), l.isFormData(r)) {
|
|
@@ -1167,7 +1167,7 @@ const kr = (e) => {
|
|
|
1167
1167
|
return t;
|
|
1168
1168
|
}, ws = typeof XMLHttpRequest < "u", Ss = ws && function(e) {
|
|
1169
1169
|
return new Promise(function(r, n) {
|
|
1170
|
-
const s =
|
|
1170
|
+
const s = Mr(e);
|
|
1171
1171
|
let o = s.data;
|
|
1172
1172
|
const i = q.from(s.headers).normalize();
|
|
1173
1173
|
let { responseType: a, onUploadProgress: f, onDownloadProgress: u } = s, c, h, y, g, p;
|
|
@@ -1189,7 +1189,7 @@ const kr = (e) => {
|
|
|
1189
1189
|
config: e,
|
|
1190
1190
|
request: m
|
|
1191
1191
|
};
|
|
1192
|
-
|
|
1192
|
+
Dr(function(N) {
|
|
1193
1193
|
r(N), b();
|
|
1194
1194
|
}, function(N) {
|
|
1195
1195
|
n(N), b();
|
|
@@ -1204,7 +1204,7 @@ const kr = (e) => {
|
|
|
1204
1204
|
L.event = A || null, n(L), m = null;
|
|
1205
1205
|
}, m.ontimeout = function() {
|
|
1206
1206
|
let A = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1207
|
-
const F = s.transitional ||
|
|
1207
|
+
const F = s.transitional || Lr;
|
|
1208
1208
|
s.timeoutErrorMessage && (A = s.timeoutErrorMessage), n(new R(
|
|
1209
1209
|
A,
|
|
1210
1210
|
F.clarifyTimeoutError ? R.ETIMEDOUT : R.ECONNABORTED,
|
|
@@ -1375,7 +1375,7 @@ const kr = (e) => {
|
|
|
1375
1375
|
headers: M,
|
|
1376
1376
|
withCredentials: ae = "same-origin",
|
|
1377
1377
|
fetchOptions: D
|
|
1378
|
-
} =
|
|
1378
|
+
} = Mr(p), ce = t || fetch;
|
|
1379
1379
|
N = N ? (N + "").toLowerCase() : "text";
|
|
1380
1380
|
let H = Rs([w, O && O.toAbortSignal()], A), V = null;
|
|
1381
1381
|
const ue = H && H.unsubscribe && (() => {
|
|
@@ -1384,17 +1384,17 @@ const kr = (e) => {
|
|
|
1384
1384
|
let _t;
|
|
1385
1385
|
try {
|
|
1386
1386
|
if (L && u && m !== "get" && m !== "head" && (_t = await g(M, E)) !== 0) {
|
|
1387
|
-
let
|
|
1387
|
+
let te = new r(b, {
|
|
1388
1388
|
method: "POST",
|
|
1389
1389
|
body: E,
|
|
1390
1390
|
duplex: "half"
|
|
1391
1391
|
}), Ee;
|
|
1392
|
-
if (l.isFormData(E) && (Ee =
|
|
1392
|
+
if (l.isFormData(E) && (Ee = te.headers.get("content-type")) && M.setContentType(Ee), te.body) {
|
|
1393
1393
|
const [ot, je] = zt(
|
|
1394
1394
|
_t,
|
|
1395
1395
|
Qe(Vt(L))
|
|
1396
1396
|
);
|
|
1397
|
-
E = Qt(
|
|
1397
|
+
E = Qt(te.body, Wt, ot, je);
|
|
1398
1398
|
}
|
|
1399
1399
|
}
|
|
1400
1400
|
l.isString(ae) || (ae = ae ? "include" : "omit");
|
|
@@ -1408,32 +1408,32 @@ const kr = (e) => {
|
|
|
1408
1408
|
credentials: J ? ae : void 0
|
|
1409
1409
|
};
|
|
1410
1410
|
V = o && new r(b, Ut);
|
|
1411
|
-
let
|
|
1411
|
+
let ee = await (o ? ce(V, D) : ce(b, Ut));
|
|
1412
1412
|
const Dt = c && (N === "stream" || N === "response");
|
|
1413
1413
|
if (c && (F || Dt && ue)) {
|
|
1414
|
-
const
|
|
1414
|
+
const te = {};
|
|
1415
1415
|
["status", "statusText", "headers"].forEach((kt) => {
|
|
1416
|
-
|
|
1416
|
+
te[kt] = ee[kt];
|
|
1417
1417
|
});
|
|
1418
|
-
const Ee = l.toFiniteNumber(
|
|
1418
|
+
const Ee = l.toFiniteNumber(ee.headers.get("content-length")), [ot, je] = F && zt(
|
|
1419
1419
|
Ee,
|
|
1420
1420
|
Qe(Vt(F), !0)
|
|
1421
1421
|
) || [];
|
|
1422
|
-
|
|
1423
|
-
Qt(
|
|
1422
|
+
ee = new n(
|
|
1423
|
+
Qt(ee.body, Wt, ot, () => {
|
|
1424
1424
|
je && je(), ue && ue();
|
|
1425
1425
|
}),
|
|
1426
|
-
|
|
1426
|
+
te
|
|
1427
1427
|
);
|
|
1428
1428
|
}
|
|
1429
1429
|
N = N || "text";
|
|
1430
|
-
let
|
|
1431
|
-
return !Dt && ue && ue(), await new Promise((
|
|
1432
|
-
|
|
1433
|
-
data:
|
|
1434
|
-
headers: q.from(
|
|
1435
|
-
status:
|
|
1436
|
-
statusText:
|
|
1430
|
+
let Gr = await h[l.findKey(h, N) || "text"](ee, p);
|
|
1431
|
+
return !Dt && ue && ue(), await new Promise((te, Ee) => {
|
|
1432
|
+
Dr(te, Ee, {
|
|
1433
|
+
data: Gr,
|
|
1434
|
+
headers: q.from(ee.headers),
|
|
1435
|
+
status: ee.status,
|
|
1436
|
+
statusText: ee.statusText,
|
|
1437
1437
|
config: p,
|
|
1438
1438
|
request: V
|
|
1439
1439
|
});
|
|
@@ -1447,7 +1447,7 @@ const kr = (e) => {
|
|
|
1447
1447
|
) : R.from(J, J && J.code, p, V);
|
|
1448
1448
|
}
|
|
1449
1449
|
};
|
|
1450
|
-
}, xs = /* @__PURE__ */ new Map(),
|
|
1450
|
+
}, xs = /* @__PURE__ */ new Map(), Ir = (e) => {
|
|
1451
1451
|
let t = e && e.env || {};
|
|
1452
1452
|
const { fetch: r, Request: n, Response: s } = t, o = [
|
|
1453
1453
|
n,
|
|
@@ -1459,12 +1459,12 @@ const kr = (e) => {
|
|
|
1459
1459
|
f = o[a], u = c.get(f), u === void 0 && c.set(f, u = a ? /* @__PURE__ */ new Map() : As(t)), c = u;
|
|
1460
1460
|
return u;
|
|
1461
1461
|
};
|
|
1462
|
-
|
|
1462
|
+
Ir();
|
|
1463
1463
|
const Pt = {
|
|
1464
1464
|
http: Vn,
|
|
1465
1465
|
xhr: Ss,
|
|
1466
1466
|
fetch: {
|
|
1467
|
-
get:
|
|
1467
|
+
get: Ir
|
|
1468
1468
|
}
|
|
1469
1469
|
};
|
|
1470
1470
|
l.forEach(Pt, (e, t) => {
|
|
@@ -1505,7 +1505,7 @@ function Fs(e, t) {
|
|
|
1505
1505
|
}
|
|
1506
1506
|
return s;
|
|
1507
1507
|
}
|
|
1508
|
-
const
|
|
1508
|
+
const Br = {
|
|
1509
1509
|
/**
|
|
1510
1510
|
* Resolve an adapter from a list of adapter names or functions.
|
|
1511
1511
|
* @type {Function}
|
|
@@ -1525,21 +1525,21 @@ function Yt(e) {
|
|
|
1525
1525
|
return ut(e), e.headers = q.from(e.headers), e.data = ct.call(
|
|
1526
1526
|
e,
|
|
1527
1527
|
e.transformRequest
|
|
1528
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1528
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Br.getAdapter(e.adapter || Be.adapter, e)(e).then(function(n) {
|
|
1529
1529
|
return ut(e), n.data = ct.call(
|
|
1530
1530
|
e,
|
|
1531
1531
|
e.transformResponse,
|
|
1532
1532
|
n
|
|
1533
1533
|
), n.headers = q.from(n.headers), n;
|
|
1534
1534
|
}, function(n) {
|
|
1535
|
-
return
|
|
1535
|
+
return Ur(n) || (ut(e), n && n.response && (n.response.data = ct.call(
|
|
1536
1536
|
e,
|
|
1537
1537
|
e.transformResponse,
|
|
1538
1538
|
n.response
|
|
1539
1539
|
), n.response.headers = q.from(n.response.headers))), Promise.reject(n);
|
|
1540
1540
|
});
|
|
1541
1541
|
}
|
|
1542
|
-
const
|
|
1542
|
+
const jr = "1.13.2", tt = {};
|
|
1543
1543
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1544
1544
|
tt[e] = function(n) {
|
|
1545
1545
|
return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
@@ -1548,7 +1548,7 @@ const Br = "1.13.2", tt = {};
|
|
|
1548
1548
|
const er = {};
|
|
1549
1549
|
tt.transitional = function(t, r, n) {
|
|
1550
1550
|
function s(o, i) {
|
|
1551
|
-
return "[Axios v" +
|
|
1551
|
+
return "[Axios v" + jr + "] Transitional option '" + o + "'" + i + (n ? ". " + n : "");
|
|
1552
1552
|
}
|
|
1553
1553
|
return (o, i, a) => {
|
|
1554
1554
|
if (t === !1)
|
|
@@ -1684,8 +1684,8 @@ let ye = class {
|
|
|
1684
1684
|
}
|
|
1685
1685
|
getUri(t) {
|
|
1686
1686
|
t = be(this.defaults, t);
|
|
1687
|
-
const r =
|
|
1688
|
-
return
|
|
1687
|
+
const r = kr(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1688
|
+
return Nr(r, t.params, t.paramsSerializer);
|
|
1689
1689
|
}
|
|
1690
1690
|
};
|
|
1691
1691
|
l.forEach(["delete", "get", "head", "options"], function(t) {
|
|
@@ -1712,7 +1712,7 @@ l.forEach(["post", "put", "patch"], function(t) {
|
|
|
1712
1712
|
}
|
|
1713
1713
|
ye.prototype[t] = r(), ye.prototype[t + "Form"] = r(!0);
|
|
1714
1714
|
});
|
|
1715
|
-
let Ls = class
|
|
1715
|
+
let Ls = class qr {
|
|
1716
1716
|
constructor(t) {
|
|
1717
1717
|
if (typeof t != "function")
|
|
1718
1718
|
throw new TypeError("executor must be a function.");
|
|
@@ -1778,7 +1778,7 @@ let Ls = class jr {
|
|
|
1778
1778
|
static source() {
|
|
1779
1779
|
let t;
|
|
1780
1780
|
return {
|
|
1781
|
-
token: new
|
|
1781
|
+
token: new qr(function(s) {
|
|
1782
1782
|
t = s;
|
|
1783
1783
|
}),
|
|
1784
1784
|
cancel: t
|
|
@@ -1867,18 +1867,18 @@ const dt = {
|
|
|
1867
1867
|
Object.entries(dt).forEach(([e, t]) => {
|
|
1868
1868
|
dt[t] = e;
|
|
1869
1869
|
});
|
|
1870
|
-
function
|
|
1871
|
-
const t = new ye(e), r =
|
|
1870
|
+
function Hr(e) {
|
|
1871
|
+
const t = new ye(e), r = Er(ye.prototype.request, t);
|
|
1872
1872
|
return l.extend(r, ye.prototype, t, { allOwnKeys: !0 }), l.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(s) {
|
|
1873
|
-
return
|
|
1873
|
+
return Hr(be(e, s));
|
|
1874
1874
|
}, r;
|
|
1875
1875
|
}
|
|
1876
|
-
const P =
|
|
1876
|
+
const P = Hr(Be);
|
|
1877
1877
|
P.Axios = ye;
|
|
1878
1878
|
P.CanceledError = Pe;
|
|
1879
1879
|
P.CancelToken = Ls;
|
|
1880
|
-
P.isCancel =
|
|
1881
|
-
P.VERSION =
|
|
1880
|
+
P.isCancel = Ur;
|
|
1881
|
+
P.VERSION = jr;
|
|
1882
1882
|
P.toFormData = et;
|
|
1883
1883
|
P.AxiosError = R;
|
|
1884
1884
|
P.Cancel = P.CanceledError;
|
|
@@ -1889,8 +1889,8 @@ P.spread = _s;
|
|
|
1889
1889
|
P.isAxiosError = Us;
|
|
1890
1890
|
P.mergeConfig = be;
|
|
1891
1891
|
P.AxiosHeaders = q;
|
|
1892
|
-
P.formToJSON = (e) =>
|
|
1893
|
-
P.getAdapter =
|
|
1892
|
+
P.formToJSON = (e) => _r(l.isHTMLForm(e) ? new FormData(e) : e);
|
|
1893
|
+
P.getAdapter = Br.getAdapter;
|
|
1894
1894
|
P.HttpStatusCode = dt;
|
|
1895
1895
|
P.default = P;
|
|
1896
1896
|
const {
|
|
@@ -1930,15 +1930,15 @@ const {
|
|
|
1930
1930
|
};
|
|
1931
1931
|
}, js = (e) => {
|
|
1932
1932
|
if (!ks(e))
|
|
1933
|
-
return new
|
|
1934
|
-
message: "An unknown error
|
|
1933
|
+
return new Z({
|
|
1934
|
+
message: "An unknown error occured"
|
|
1935
1935
|
});
|
|
1936
1936
|
const {
|
|
1937
1937
|
message: t,
|
|
1938
1938
|
response: r
|
|
1939
1939
|
} = e;
|
|
1940
1940
|
if (!r)
|
|
1941
|
-
return new
|
|
1941
|
+
return new Z({
|
|
1942
1942
|
message: t
|
|
1943
1943
|
});
|
|
1944
1944
|
const {
|
|
@@ -1954,12 +1954,12 @@ const {
|
|
|
1954
1954
|
url: n
|
|
1955
1955
|
};
|
|
1956
1956
|
if (!i)
|
|
1957
|
-
return new
|
|
1957
|
+
return new Z({
|
|
1958
1958
|
details: a,
|
|
1959
1959
|
message: t
|
|
1960
1960
|
});
|
|
1961
1961
|
try {
|
|
1962
|
-
return new
|
|
1962
|
+
return new Z({
|
|
1963
1963
|
details: {
|
|
1964
1964
|
...a,
|
|
1965
1965
|
body: i
|
|
@@ -1967,19 +1967,22 @@ const {
|
|
|
1967
1967
|
message: t
|
|
1968
1968
|
});
|
|
1969
1969
|
} catch {
|
|
1970
|
-
return new
|
|
1970
|
+
return new Z({
|
|
1971
1971
|
details: a,
|
|
1972
1972
|
message: t
|
|
1973
1973
|
});
|
|
1974
1974
|
}
|
|
1975
|
-
},
|
|
1975
|
+
}, $r = async (e) => {
|
|
1976
1976
|
try {
|
|
1977
1977
|
const t = await e;
|
|
1978
1978
|
return Bs(t);
|
|
1979
1979
|
} catch (t) {
|
|
1980
|
-
|
|
1980
|
+
return t instanceof Ds ? js(t) : new Z({
|
|
1981
|
+
code: gr.Generic,
|
|
1982
|
+
message: "An unknown error occured"
|
|
1983
|
+
});
|
|
1981
1984
|
}
|
|
1982
|
-
},
|
|
1985
|
+
}, zr = (e, {
|
|
1983
1986
|
headers: t = {},
|
|
1984
1987
|
query: r = {},
|
|
1985
1988
|
timeout: n,
|
|
@@ -1988,7 +1991,7 @@ const {
|
|
|
1988
1991
|
const i = Is(e), a = {
|
|
1989
1992
|
headers: t
|
|
1990
1993
|
}, f = mr(s, r);
|
|
1991
|
-
return o.buffer && (a.responseType = "arraybuffer"), n && (a.timeout = n),
|
|
1994
|
+
return o.buffer && (a.responseType = "arraybuffer"), n && (a.timeout = n), $r(i(f, a));
|
|
1992
1995
|
}, Ft = (e, {
|
|
1993
1996
|
headers: t = {},
|
|
1994
1997
|
body: r = null,
|
|
@@ -2002,8 +2005,8 @@ const {
|
|
|
2002
2005
|
}, g = mr(o, n);
|
|
2003
2006
|
return u && i.forEach((p) => {
|
|
2004
2007
|
c.append(p.name, p.filePath);
|
|
2005
|
-
}), a.buffer && (y.responseType = "arraybuffer"), s && (y.timeout = s),
|
|
2006
|
-
}, qs = (e, t) =>
|
|
2008
|
+
}), a.buffer && (y.responseType = "arraybuffer"), s && (y.timeout = s), $r(f(g, h, y));
|
|
2009
|
+
}, qs = (e, t) => zr("DELETE", e, t), Hs = (e, t) => zr("GET", e, t), $s = (e, t) => Ft("PATCH", e, t), zs = (e, t) => Ft("POST", e, t), Vs = (e, t) => Ft("PUT", e, t), oi = () => () => ({
|
|
2007
2010
|
delete: qs,
|
|
2008
2011
|
get: Hs,
|
|
2009
2012
|
patch: $s,
|
|
@@ -2012,7 +2015,7 @@ const {
|
|
|
2012
2015
|
}), Js = (e) => () => e(), ii = ({
|
|
2013
2016
|
useAdapter: e
|
|
2014
2017
|
}) => st("LOGGER_SERVICE", Js(e), []);
|
|
2015
|
-
var
|
|
2018
|
+
var Vr = { exports: {} };
|
|
2016
2019
|
/*!
|
|
2017
2020
|
* js-logger - http://github.com/jonnyreeves/js-logger
|
|
2018
2021
|
* Jonny Reeves, http://jonnyreeves.co.uk/
|
|
@@ -2111,10 +2114,10 @@ var zr = { exports: {} };
|
|
|
2111
2114
|
}, r.setDefaults = r.useDefaults, e.exports ? e.exports = r : (r._prevLogger = t.Logger, r.noConflict = function() {
|
|
2112
2115
|
return t.Logger = r._prevLogger, r;
|
|
2113
2116
|
}, t.Logger = r);
|
|
2114
|
-
})(
|
|
2115
|
-
})(
|
|
2116
|
-
var Qs =
|
|
2117
|
-
const ge = /* @__PURE__ */
|
|
2117
|
+
})(Xr);
|
|
2118
|
+
})(Vr);
|
|
2119
|
+
var Qs = Vr.exports;
|
|
2120
|
+
const ge = /* @__PURE__ */ Zr(Qs), Nt = (e) => typeof e == "string" ? e : e.stack || e.toString(), Ws = (e) => {
|
|
2118
2121
|
ge.debug("💡", e);
|
|
2119
2122
|
}, Ks = (e) => {
|
|
2120
2123
|
ge.error("❌", Nt(e));
|
|
@@ -2154,26 +2157,26 @@ const ge = /* @__PURE__ */ Xr(Qs), Nt = (e) => typeof e == "string" ? e : e.stac
|
|
|
2154
2157
|
}) => ({
|
|
2155
2158
|
HttpService: o
|
|
2156
2159
|
}) => {
|
|
2157
|
-
const i = Ge(o),
|
|
2160
|
+
const i = Ge(o), a = () => ({
|
|
2158
2161
|
Authorization: `Bearer ${s.apiKey}`,
|
|
2159
2162
|
...r == null ? void 0 : r()
|
|
2160
|
-
},
|
|
2161
|
-
body:
|
|
2162
|
-
headers:
|
|
2163
|
-
url:
|
|
2163
|
+
}), f = (h) => [s.host, h].filter(Boolean).join("/"), u = (h, y) => i.post({
|
|
2164
|
+
body: y,
|
|
2165
|
+
headers: a(),
|
|
2166
|
+
url: f(h)
|
|
2164
2167
|
});
|
|
2165
2168
|
return {
|
|
2166
2169
|
captureEvent: Uo("posthog-capture-event", async ({
|
|
2167
|
-
event:
|
|
2168
|
-
properties:
|
|
2170
|
+
event: h,
|
|
2171
|
+
properties: y
|
|
2169
2172
|
}) => {
|
|
2170
|
-
const
|
|
2171
|
-
await
|
|
2173
|
+
const g = s.paths.event, p = e(h, y), b = t == null ? void 0 : t(h, y), m = n(h, y);
|
|
2174
|
+
await u(g, {
|
|
2172
2175
|
api_key: s.apiKey,
|
|
2173
|
-
distinct_id:
|
|
2174
|
-
event:
|
|
2175
|
-
properties:
|
|
2176
|
-
timestamp:
|
|
2176
|
+
distinct_id: p,
|
|
2177
|
+
event: h,
|
|
2178
|
+
properties: m,
|
|
2179
|
+
timestamp: b
|
|
2177
2180
|
});
|
|
2178
2181
|
})
|
|
2179
2182
|
};
|
|
@@ -2325,7 +2328,7 @@ function or(e, t, r) {
|
|
|
2325
2328
|
}
|
|
2326
2329
|
return t;
|
|
2327
2330
|
}
|
|
2328
|
-
function
|
|
2331
|
+
function Jr(e, t) {
|
|
2329
2332
|
return typeof e == "function" ? e(...t) : !!e;
|
|
2330
2333
|
}
|
|
2331
2334
|
var he, re, we, fr, oo = (fr = class extends rt {
|
|
@@ -2501,7 +2504,7 @@ function ho(e, t) {
|
|
|
2501
2504
|
}
|
|
2502
2505
|
};
|
|
2503
2506
|
}
|
|
2504
|
-
var I, v, Ue, k, de, Oe, K, se, De, ve, Te, pe, me, oe, Ce, C, Ne, yt, bt, gt, Et, wt, St, Rt,
|
|
2507
|
+
var I, v, Ue, k, de, Oe, K, se, De, ve, Te, pe, me, oe, Ce, C, Ne, yt, bt, gt, Et, wt, St, Rt, Qr, dr, po = (dr = class extends rt {
|
|
2505
2508
|
constructor(t, r) {
|
|
2506
2509
|
super();
|
|
2507
2510
|
T(this, C);
|
|
@@ -2711,7 +2714,7 @@ var I, v, Ue, k, de, Oe, K, se, De, ve, Te, pe, me, oe, Ce, C, Ne, yt, bt, gt, E
|
|
|
2711
2714
|
return d(this, k)[f] !== t[f] && i.has(f);
|
|
2712
2715
|
});
|
|
2713
2716
|
};
|
|
2714
|
-
x(this, C,
|
|
2717
|
+
x(this, C, Qr).call(this, { listeners: n() });
|
|
2715
2718
|
}
|
|
2716
2719
|
onQueryUpdate() {
|
|
2717
2720
|
this.updateResult(), this.hasListeners() && x(this, C, Et).call(this);
|
|
@@ -2753,7 +2756,7 @@ var I, v, Ue, k, de, Oe, K, se, De, ve, Te, pe, me, oe, Ce, C, Ne, yt, bt, gt, E
|
|
|
2753
2756
|
return;
|
|
2754
2757
|
const r = d(this, v);
|
|
2755
2758
|
S(this, v, t), S(this, Ue, t.state), this.hasListeners() && (r == null || r.removeObserver(this), t.addObserver(this));
|
|
2756
|
-
},
|
|
2759
|
+
}, Qr = function(t) {
|
|
2757
2760
|
nt.batch(() => {
|
|
2758
2761
|
t.listeners && this.listeners.forEach((r) => {
|
|
2759
2762
|
r(d(this, k));
|
|
@@ -2798,15 +2801,15 @@ function bo() {
|
|
|
2798
2801
|
submittedAt: 0
|
|
2799
2802
|
};
|
|
2800
2803
|
}
|
|
2801
|
-
var G, ie, B, X,
|
|
2804
|
+
var G, ie, B, X, Y, Je, vt, pr, go = (pr = class extends rt {
|
|
2802
2805
|
constructor(t, r) {
|
|
2803
2806
|
super();
|
|
2804
|
-
T(this,
|
|
2807
|
+
T(this, Y);
|
|
2805
2808
|
T(this, G);
|
|
2806
2809
|
T(this, ie);
|
|
2807
2810
|
T(this, B);
|
|
2808
2811
|
T(this, X);
|
|
2809
|
-
S(this, G, t), this.setOptions(r), this.bindMethods(), x(this,
|
|
2812
|
+
S(this, G, t), this.setOptions(r), this.bindMethods(), x(this, Y, Je).call(this);
|
|
2810
2813
|
}
|
|
2811
2814
|
bindMethods() {
|
|
2812
2815
|
this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this);
|
|
@@ -2825,20 +2828,20 @@ var G, ie, B, X, Z, Je, vt, pr, go = (pr = class extends rt {
|
|
|
2825
2828
|
this.hasListeners() || (t = d(this, B)) == null || t.removeObserver(this);
|
|
2826
2829
|
}
|
|
2827
2830
|
onMutationUpdate(t) {
|
|
2828
|
-
x(this,
|
|
2831
|
+
x(this, Y, Je).call(this), x(this, Y, vt).call(this, t);
|
|
2829
2832
|
}
|
|
2830
2833
|
getCurrentResult() {
|
|
2831
2834
|
return d(this, ie);
|
|
2832
2835
|
}
|
|
2833
2836
|
reset() {
|
|
2834
2837
|
var t;
|
|
2835
|
-
(t = d(this, B)) == null || t.removeObserver(this), S(this, B, void 0), x(this,
|
|
2838
|
+
(t = d(this, B)) == null || t.removeObserver(this), S(this, B, void 0), x(this, Y, Je).call(this), x(this, Y, vt).call(this);
|
|
2836
2839
|
}
|
|
2837
2840
|
mutate(t, r) {
|
|
2838
2841
|
var n;
|
|
2839
2842
|
return S(this, X, r), (n = d(this, B)) == null || n.removeObserver(this), S(this, B, d(this, G).getMutationCache().build(d(this, G), this.options)), d(this, B).addObserver(this), d(this, B).execute(t);
|
|
2840
2843
|
}
|
|
2841
|
-
}, G = new WeakMap(), ie = new WeakMap(), B = new WeakMap(), X = new WeakMap(),
|
|
2844
|
+
}, G = new WeakMap(), ie = new WeakMap(), B = new WeakMap(), X = new WeakMap(), Y = new WeakSet(), Je = function() {
|
|
2842
2845
|
var r;
|
|
2843
2846
|
const t = ((r = d(this, B)) == null ? void 0 : r.state) ?? bo();
|
|
2844
2847
|
S(this, ie, {
|
|
@@ -2893,13 +2896,13 @@ var G, ie, B, X, Z, Je, vt, pr, go = (pr = class extends rt {
|
|
|
2893
2896
|
});
|
|
2894
2897
|
}, pr), Eo = _.createContext(
|
|
2895
2898
|
void 0
|
|
2896
|
-
),
|
|
2899
|
+
), Wr = (e) => {
|
|
2897
2900
|
const t = _.useContext(Eo);
|
|
2898
2901
|
if (!t)
|
|
2899
2902
|
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
2900
2903
|
return t;
|
|
2901
|
-
},
|
|
2902
|
-
|
|
2904
|
+
}, Kr = _.createContext(!1), wo = () => _.useContext(Kr);
|
|
2905
|
+
Kr.Provider;
|
|
2903
2906
|
function So() {
|
|
2904
2907
|
let e = !1;
|
|
2905
2908
|
return {
|
|
@@ -2924,7 +2927,7 @@ var Ro = _.createContext(So()), Oo = () => _.useContext(Ro), vo = (e, t) => {
|
|
|
2924
2927
|
throwOnError: r,
|
|
2925
2928
|
query: n,
|
|
2926
2929
|
suspense: s
|
|
2927
|
-
}) => e.isError && !t.isReset() && !e.isFetching && n && (s && e.data === void 0 ||
|
|
2930
|
+
}) => e.isError && !t.isReset() && !e.isFetching && n && (s && e.data === void 0 || Jr(r, [e.error, n])), Ao = (e) => {
|
|
2928
2931
|
if (e.suspense) {
|
|
2929
2932
|
const r = (s) => s === "static" ? s : Math.max(s ?? 1e3, 1e3), n = e.staleTime;
|
|
2930
2933
|
e.staleTime = typeof n == "function" ? (...s) => r(n(...s)) : r(n), typeof e.gcTime == "number" && (e.gcTime = Math.max(
|
|
@@ -2941,7 +2944,7 @@ function Fo(e, t, r) {
|
|
|
2941
2944
|
throw new Error(
|
|
2942
2945
|
'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
|
|
2943
2946
|
);
|
|
2944
|
-
const n = wo(), s = Oo(), o =
|
|
2947
|
+
const n = wo(), s = Oo(), o = Wr(), i = o.defaultQueryOptions(e);
|
|
2945
2948
|
(y = (h = o.getDefaultOptions().queries) == null ? void 0 : h._experimental_beforeQuery) == null || y.call(
|
|
2946
2949
|
h,
|
|
2947
2950
|
i
|
|
@@ -2998,7 +3001,7 @@ function No(e, t) {
|
|
|
2998
3001
|
return Fo(e, po);
|
|
2999
3002
|
}
|
|
3000
3003
|
function Lo(e, t) {
|
|
3001
|
-
const r =
|
|
3004
|
+
const r = Wr(), [n] = _.useState(
|
|
3002
3005
|
() => new go(
|
|
3003
3006
|
r,
|
|
3004
3007
|
e
|
|
@@ -3020,12 +3023,12 @@ function Lo(e, t) {
|
|
|
3020
3023
|
},
|
|
3021
3024
|
[n]
|
|
3022
3025
|
);
|
|
3023
|
-
if (s.error &&
|
|
3026
|
+
if (s.error && Jr(n.options.throwOnError, [s.error]))
|
|
3024
3027
|
throw s.error;
|
|
3025
3028
|
return { ...s, mutate: o, mutateAsync: s.mutate };
|
|
3026
3029
|
}
|
|
3027
3030
|
const _o = () => {
|
|
3028
|
-
const e =
|
|
3031
|
+
const e = en(void 0);
|
|
3029
3032
|
return {
|
|
3030
3033
|
Provider: (n) => {
|
|
3031
3034
|
const s = Tt.c(3), {
|
|
@@ -3036,7 +3039,7 @@ const _o = () => {
|
|
|
3036
3039
|
return s[0] !== o || s[1] !== i ? (a = /* @__PURE__ */ br(e.Provider, { value: i, children: o }), s[0] = o, s[1] = i, s[2] = a) : a = s[2], a;
|
|
3037
3040
|
},
|
|
3038
3041
|
useContext: () => {
|
|
3039
|
-
const n =
|
|
3042
|
+
const n = rn(e);
|
|
3040
3043
|
if (n === void 0)
|
|
3041
3044
|
throw new Error("Context is missing a provider");
|
|
3042
3045
|
return n;
|
|
@@ -3046,7 +3049,7 @@ const _o = () => {
|
|
|
3046
3049
|
initialVariables: n,
|
|
3047
3050
|
...s
|
|
3048
3051
|
}) => {
|
|
3049
|
-
const [o, i] =
|
|
3052
|
+
const [o, i] = tn(n);
|
|
3050
3053
|
return {
|
|
3051
3054
|
...No({
|
|
3052
3055
|
// Ignoring type check for variable due to the following scenarios:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axios.adapter.d.ts","sourceRoot":"","sources":["../../../../src/services/http/axios.adapter.ts"],"names":[],"mappings":"AAWA,OAAO,EAML,kBAAkB,EACnB,MAAM,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"axios.adapter.d.ts","sourceRoot":"","sources":["../../../../src/services/http/axios.adapter.ts"],"names":[],"mappings":"AAWA,OAAO,EAML,kBAAkB,EACnB,MAAM,GAAG,CAAC;AAgLX,eAAO,MAAM,sBAAsB,QAAO,kBAMxC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.service.d.ts","sourceRoot":"","sources":["../../../../src/services/http/http.service.ts"],"names":[],"mappings":"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
|
|
1
|
+
{"version":3,"file":"http.service.d.ts","sourceRoot":"","sources":["../../../../src/services/http/http.service.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../../src/services/services.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,kBAAkB,EAClB,iBAAiB,EAEjB,eAAe,EACf,cAAc,EACf,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,MAAM,MAAM,aAAa,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,GACzD,MAAM,OAAO,CAAC,GAAG,CAAC,GAClB,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../../src/services/services.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"posthog.adapter.d.ts","sourceRoot":"","sources":["../../../../src/services/tracker/posthog.adapter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAEL,WAAW,EACX,cAAc,EACd,oBAAoB,EAGrB,MAAM,IAAI,CAAC;AAEZ,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,2BAA2B,GACrC,MAAM,SAAS,oBAAoB,EAAE,2EAMnC;IACD,aAAa,EAAE,CACb,KAAK,EAAE,MAAM,MAAM,EACnB,UAAU,EAAE,MAAM,CAAC,MAAM,MAAM,CAAC,KAC7B,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,CACb,KAAK,EAAE,MAAM,MAAM,EACnB,UAAU,EAAE,MAAM,CAAC,MAAM,MAAM,CAAC,KAC7B,IAAI,CAAC;IACV,UAAU,CAAC,EAAE,MAAM,WAAW,CAAC;IAC/B,mBAAmB,EAAE,CACnB,KAAK,EAAE,MAAM,MAAM,EACnB,UAAU,EAAE,MAAM,CAAC,MAAM,MAAM,CAAC,KAC7B,UAAU,CAAC;IAChB,MAAM,EAAE,aAAa,CAAC;CACvB,KAAG,cAAc,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"posthog.adapter.d.ts","sourceRoot":"","sources":["../../../../src/services/tracker/posthog.adapter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAEL,WAAW,EACX,cAAc,EACd,oBAAoB,EAGrB,MAAM,IAAI,CAAC;AAEZ,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,2BAA2B,GACrC,MAAM,SAAS,oBAAoB,EAAE,2EAMnC;IACD,aAAa,EAAE,CACb,KAAK,EAAE,MAAM,MAAM,EACnB,UAAU,EAAE,MAAM,CAAC,MAAM,MAAM,CAAC,KAC7B,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,CACb,KAAK,EAAE,MAAM,MAAM,EACnB,UAAU,EAAE,MAAM,CAAC,MAAM,MAAM,CAAC,KAC7B,IAAI,CAAC;IACV,UAAU,CAAC,EAAE,MAAM,WAAW,CAAC;IAC/B,mBAAmB,EAAE,CACnB,KAAK,EAAE,MAAM,MAAM,EACnB,UAAU,EAAE,MAAM,CAAC,MAAM,MAAM,CAAC,KAC7B,UAAU,CAAC;IAChB,MAAM,EAAE,aAAa,CAAC;CACvB,KAAG,cAAc,CAAC,MAAM,CA4CxB,CAAC"}
|