(function(se,he){typeof exports=="object"&&typeof module<"u"?he(exports):typeof define=="function"&&define.amd?define(["exports"],he):(se=typeof globalThis<"u"?globalThis:se||self,he(se.Curator={}))})(this,function(se){"use strict";function he(e,t){return function(){return e.apply(t,arguments)}}const{toString:Di}=Object.prototype,{getPrototypeOf:wt}=Object,ze=(e=>t=>{const r=Di.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),K=e=>(e=e.toLowerCase(),t=>ze(t)===e),He=e=>t=>typeof t===e,{isArray:ve}=Array,ke=He("undefined");function Bi(e){return e!==null&&!ke(e)&&e.constructor!==null&&!ke(e.constructor)&&G(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ur=K("ArrayBuffer");function Ui(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ur(e.buffer),t}const zi=He("string"),G=He("function"),lr=He("number"),Ze=e=>e!==null&&typeof e=="object",Hi=e=>e===!0||e===!1,Ge=e=>{if(ze(e)!=="object")return!1;const t=wt(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Zi=K("Date"),Gi=K("File"),Yi=K("Blob"),Ji=K("FileList"),Xi=e=>Ze(e)&&G(e.pipe),qi=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||G(e.append)&&((t=ze(e))==="formdata"||t==="object"&&G(e.toString)&&e.toString()==="[object FormData]"))},$i=K("URLSearchParams"),Ki=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Re(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),ve(e))for(n=0,i=e.length;n0;)if(i=r[n],t===i.toLowerCase())return i;return null}const fr=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),mr=e=>!ke(e)&&e!==fr;function gt(){const{caseless:e}=mr(this)&&this||{},t={},r=(n,i)=>{const o=e&&dr(t,i)||i;Ge(t[o])&&Ge(n)?t[o]=gt(t[o],n):Ge(n)?t[o]=gt({},n):ve(n)?t[o]=n.slice():t[o]=n};for(let n=0,i=arguments.length;n(Re(t,(i,o)=>{r&&G(i)?e[o]=he(i,r):e[o]=i},{allOwnKeys:n}),e),eo=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),to=(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)},ro=(e,t,r,n)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=r!==!1&&wt(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},no=(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},io=e=>{if(!e)return null;if(ve(e))return e;let t=e.length;if(!lr(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},oo=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&wt(Uint8Array)),ao=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=n.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},so=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},co=K("HTMLFormElement"),uo=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),pr=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),lo=K("RegExp"),hr=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Re(r,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(n[o]=a||i)}),Object.defineProperties(e,n)},fo=e=>{hr(e,(t,r)=>{if(G(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(G(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+"'")})}})},mo=(e,t)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return ve(e)?n(e):n(String(e).split(t)),r},po=()=>{},ho=(e,t)=>(e=+e,Number.isFinite(e)?e:t),yt="abcdefghijklmnopqrstuvwxyz",vr="0123456789",br={DIGIT:vr,ALPHA:yt,ALPHA_DIGIT:yt+yt.toUpperCase()+vr},vo=(e=16,t=br.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function bo(e){return!!(e&&G(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const wo=e=>{const t=new Array(10),r=(n,i)=>{if(Ze(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const o=ve(n)?[]:{};return Re(n,(a,s)=>{const d=r(a,i+1);!ke(d)&&(o[s]=d)}),t[i]=void 0,o}}return n};return r(e,0)},go=K("AsyncFunction"),v={isArray:ve,isArrayBuffer:ur,isBuffer:Bi,isFormData:qi,isArrayBufferView:Ui,isString:zi,isNumber:lr,isBoolean:Hi,isObject:Ze,isPlainObject:Ge,isUndefined:ke,isDate:Zi,isFile:Gi,isBlob:Yi,isRegExp:lo,isFunction:G,isStream:Xi,isURLSearchParams:$i,isTypedArray:oo,isFileList:Ji,forEach:Re,merge:gt,extend:Qi,trim:Ki,stripBOM:eo,inherits:to,toFlatObject:ro,kindOf:ze,kindOfTest:K,endsWith:no,toArray:io,forEachEntry:ao,matchAll:so,isHTMLForm:co,hasOwnProperty:pr,hasOwnProp:pr,reduceDescriptors:hr,freezeMethods:fo,toObjectSet:mo,toCamelCase:uo,noop:po,toFiniteNumber:ho,findKey:dr,global:fr,isContextDefined:mr,ALPHABET:br,generateString:vo,isSpecCompliantForm:bo,toJSONObject:wo,isAsyncFn:go,isThenable:e=>e&&(Ze(e)||G(e))&&G(e.then)&&G(e.catch)};function A(e,t,r,n,i){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),i&&(this.response=i)}v.inherits(A,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:v.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const wr=A.prototype,gr={};["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=>{gr[e]={value:e}}),Object.defineProperties(A,gr),Object.defineProperty(wr,"isAxiosError",{value:!0}),A.from=(e,t,r,n,i,o)=>{const a=Object.create(wr);return v.toFlatObject(e,a,function(d){return d!==Error.prototype},s=>s!=="isAxiosError"),A.call(a,e.message,t,r,n,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const yo=null;function St(e){return v.isPlainObject(e)||v.isArray(e)}function yr(e){return v.endsWith(e,"[]")?e.slice(0,-2):e}function Sr(e,t,r){return e?e.concat(t).map(function(i,o){return i=yr(i),!r&&o?"["+i+"]":i}).join(r?".":""):t}function So(e){return v.isArray(e)&&!e.some(St)}const Eo=v.toFlatObject(v,{},null,function(t){return/^is[A-Z]/.test(t)});function Ye(e,t,r){if(!v.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=v.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(l,b){return!v.isUndefined(b[l])});const n=r.metaTokens,i=r.visitor||f,o=r.dots,a=r.indexes,d=(r.Blob||typeof Blob<"u"&&Blob)&&v.isSpecCompliantForm(t);if(!v.isFunction(i))throw new TypeError("visitor must be a function");function p(c){if(c===null)return"";if(v.isDate(c))return c.toISOString();if(!d&&v.isBlob(c))throw new A("Blob is not supported. Use a Buffer instead.");return v.isArrayBuffer(c)||v.isTypedArray(c)?d&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function f(c,l,b){let g=c;if(c&&!b&&typeof c=="object"){if(v.endsWith(l,"{}"))l=n?l:l.slice(0,-2),c=JSON.stringify(c);else if(v.isArray(c)&&So(c)||(v.isFileList(c)||v.endsWith(l,"[]"))&&(g=v.toArray(c)))return l=yr(l),g.forEach(function(y,T){!(v.isUndefined(y)||y===null)&&t.append(a===!0?Sr([l],T,o):a===null?l:l+"[]",p(y))}),!1}return St(c)?!0:(t.append(Sr(b,l,o),p(c)),!1)}const u=[],m=Object.assign(Eo,{defaultVisitor:f,convertValue:p,isVisitable:St});function h(c,l){if(!v.isUndefined(c)){if(u.indexOf(c)!==-1)throw Error("Circular reference detected in "+l.join("."));u.push(c),v.forEach(c,function(g,V){(!(v.isUndefined(g)||g===null)&&i.call(t,g,v.isString(V)?V.trim():V,l,m))===!0&&h(g,l?l.concat(V):[V])}),u.pop()}}if(!v.isObject(e))throw new TypeError("data must be an object");return h(e),t}function Er(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Et(e,t){this._pairs=[],e&&Ye(e,this,t)}const Tr=Et.prototype;Tr.append=function(t,r){this._pairs.push([t,r])},Tr.toString=function(t){const r=t?function(n){return t.call(this,n,Er)}:Er;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function To(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function xr(e,t,r){if(!t)return e;const n=r&&r.encode||To,i=r&&r.serialize;let o;if(i?o=i(t,r):o=v.isURLSearchParams(t)?t.toString():new Et(t,r).toString(n),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class xo{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){v.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Or=xo,Cr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Oo={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Et,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Ar=typeof window<"u"&&typeof document<"u",Co=(e=>Ar&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Ao=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Q={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ar,hasStandardBrowserEnv:Co,hasStandardBrowserWebWorkerEnv:Ao},Symbol.toStringTag,{value:"Module"})),...Oo};function ko(e,t){return Ye(e,new Q.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,o){return Q.isNode&&v.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Ro(e){return v.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Po(e){const t={},r=Object.keys(e);let n;const i=r.length;let o;for(n=0;n=r.length;return a=!a&&v.isArray(i)?i.length:a,d?(v.hasOwnProp(i,a)?i[a]=[i[a],n]:i[a]=n,!s):((!i[a]||!v.isObject(i[a]))&&(i[a]=[]),t(r,n,i[a],o)&&v.isArray(i[a])&&(i[a]=Po(i[a])),!s)}if(v.isFormData(e)&&v.isFunction(e.entries)){const r={};return v.forEachEntry(e,(n,i)=>{t(Ro(n),i,r,0)}),r}return null}function Lo(e,t,r){if(v.isString(e))try{return(t||JSON.parse)(e),v.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Tt={transitional:Cr,adapter:["xhr","http"],transformRequest:[function(t,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,o=v.isObject(t);if(o&&v.isHTMLForm(t)&&(t=new FormData(t)),v.isFormData(t))return i?JSON.stringify(kr(t)):t;if(v.isArrayBuffer(t)||v.isBuffer(t)||v.isStream(t)||v.isFile(t)||v.isBlob(t))return t;if(v.isArrayBufferView(t))return t.buffer;if(v.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return ko(t,this.formSerializer).toString();if((s=v.isFileList(t))||n.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return Ye(s?{"files[]":t}:t,d&&new d,this.formSerializer)}}return o||i?(r.setContentType("application/json",!1),Lo(t)):t}],transformResponse:[function(t){const r=this.transitional||Tt.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(t&&v.isString(t)&&(n&&!this.responseType||i)){const a=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?A.from(s,A.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Q.classes.FormData,Blob:Q.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};v.forEach(["delete","get","head","post","put","patch"],e=>{Tt.headers[e]={}});const xt=Tt,Fo=v.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"]),Vo=e=>{const t={};let r,n,i;return e&&e.split(` `).forEach(function(a){i=a.indexOf(":"),r=a.substring(0,i).trim().toLowerCase(),n=a.substring(i+1).trim(),!(!r||t[r]&&Fo[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Rr=Symbol("internals");function Pe(e){return e&&String(e).trim().toLowerCase()}function Je(e){return e===!1||e==null?e:v.isArray(e)?e.map(Je):String(e)}function Mo(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 Io=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ot(e,t,r,n,i){if(v.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!v.isString(t)){if(v.isString(n))return t.indexOf(n)!==-1;if(v.isRegExp(n))return n.test(t)}}function No(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function _o(e,t){const r=v.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,o,a){return this[n].call(this,t,i,o,a)},configurable:!0})})}class Xe{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function o(s,d,p){const f=Pe(d);if(!f)throw new Error("header name must be a non-empty string");const u=v.findKey(i,f);(!u||i[u]===void 0||p===!0||p===void 0&&i[u]!==!1)&&(i[u||d]=Je(s))}const a=(s,d)=>v.forEach(s,(p,f)=>o(p,f,d));return v.isPlainObject(t)||t instanceof this.constructor?a(t,r):v.isString(t)&&(t=t.trim())&&!Io(t)?a(Vo(t),r):t!=null&&o(r,t,n),this}get(t,r){if(t=Pe(t),t){const n=v.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return Mo(i);if(v.isFunction(r))return r.call(this,i,n);if(v.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Pe(t),t){const n=v.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Ot(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function o(a){if(a=Pe(a),a){const s=v.findKey(n,a);s&&(!r||Ot(n,n[s],s,r))&&(delete n[s],i=!0)}}return v.isArray(t)?t.forEach(o):o(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const o=r[n];(!t||Ot(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const r=this,n={};return v.forEach(this,(i,o)=>{const a=v.findKey(n,o);if(a){r[a]=Je(i),delete r[o];return}const s=t?No(o):String(o).trim();s!==o&&delete r[o],r[s]=Je(i),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return v.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&v.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(` `)}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(i=>n.set(i)),n}static accessor(t){const n=(this[Rr]=this[Rr]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=Pe(a);n[s]||(_o(i,a),n[s]=!0)}return v.isArray(t)?t.forEach(o):o(t),this}}Xe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),v.reduceDescriptors(Xe.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),v.freezeMethods(Xe);const ne=Xe;function Ct(e,t){const r=this||xt,n=t||r,i=ne.from(n.headers);let o=n.data;return v.forEach(e,function(s){o=s.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Pr(e){return!!(e&&e.__CANCEL__)}function Le(e,t,r){A.call(this,e??"canceled",A.ERR_CANCELED,t,r),this.name="CanceledError"}v.inherits(Le,A,{__CANCEL__:!0});function Wo(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new A("Request failed with status code "+r.status,[A.ERR_BAD_REQUEST,A.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const jo=Q.hasStandardBrowserEnv?{write(e,t,r,n,i,o){const a=[e+"="+encodeURIComponent(t)];v.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),v.isString(n)&&a.push("path="+n),v.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Do(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Bo(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Lr(e,t){return e&&!Do(t)?Bo(e,t):t}const Uo=Q.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function i(o){let a=o;return t&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=i(window.location.href),function(a){const s=v.isString(a)?i(a):a;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}();function zo(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ho(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(d){const p=Date.now(),f=n[o];a||(a=p),r[i]=d,n[i]=p;let u=o,m=0;for(;u!==i;)m+=r[u++],u=u%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),p-a{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-r,d=n(s),p=o<=a;r=o;const f={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:d||void 0,estimated:d&&a&&p?(a-o)/d:void 0,event:i};f[t?"download":"upload"]=!0,e(f)}}const At={http:yo,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){let i=e.data;const o=ne.from(e.headers).normalize();let{responseType:a,withXSRFToken:s}=e,d;function p(){e.cancelToken&&e.cancelToken.unsubscribe(d),e.signal&&e.signal.removeEventListener("abort",d)}let f;if(v.isFormData(i)){if(Q.hasStandardBrowserEnv||Q.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((f=o.getContentType())!==!1){const[l,...b]=f?f.split(";").map(g=>g.trim()).filter(Boolean):[];o.setContentType([l||"multipart/form-data",...b].join("; "))}}let u=new XMLHttpRequest;if(e.auth){const l=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(l+":"+b))}const m=Lr(e.baseURL,e.url);u.open(e.method.toUpperCase(),xr(m,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function h(){if(!u)return;const l=ne.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),g={data:!a||a==="text"||a==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:l,config:e,request:u};Wo(function(y){r(y),p()},function(y){n(y),p()},g),u=null}if("onloadend"in u?u.onloadend=h:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(h)},u.onabort=function(){u&&(n(new A("Request aborted",A.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new A("Network Error",A.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let b=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const g=e.transitional||Cr;e.timeoutErrorMessage&&(b=e.timeoutErrorMessage),n(new A(b,g.clarifyTimeoutError?A.ETIMEDOUT:A.ECONNABORTED,e,u)),u=null},Q.hasStandardBrowserEnv&&(s&&v.isFunction(s)&&(s=s(e)),s||s!==!1&&Uo(m))){const l=e.xsrfHeaderName&&e.xsrfCookieName&&jo.read(e.xsrfCookieName);l&&o.set(e.xsrfHeaderName,l)}i===void 0&&o.setContentType(null),"setRequestHeader"in u&&v.forEach(o.toJSON(),function(b,g){u.setRequestHeader(g,b)}),v.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),a&&a!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",Fr(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",Fr(e.onUploadProgress)),(e.cancelToken||e.signal)&&(d=l=>{u&&(n(!l||l.type?new Le(null,e,u):l),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(d),e.signal&&(e.signal.aborted?d():e.signal.addEventListener("abort",d)));const c=zo(m);if(c&&Q.protocols.indexOf(c)===-1){n(new A("Unsupported protocol "+c+":",A.ERR_BAD_REQUEST,e));return}u.send(i||null)})}};v.forEach(At,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Vr=e=>`- ${e}`,Zo=e=>v.isFunction(e)||e===null||e===!1,Mr={getAdapter:e=>{e=v.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let o=0;o`adapter ${s} `+(d===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since : `+o.map(Vr).join(` `):" "+Vr(o[0]):"as no adapter specified";throw new A("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:At};function kt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Le(null,e)}function Ir(e){return kt(e),e.headers=ne.from(e.headers),e.data=Ct.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Mr.getAdapter(e.adapter||xt.adapter)(e).then(function(n){return kt(e),n.data=Ct.call(e,e.transformResponse,n),n.headers=ne.from(n.headers),n},function(n){return Pr(n)||(kt(e),n&&n.response&&(n.response.data=Ct.call(e,e.transformResponse,n.response),n.response.headers=ne.from(n.response.headers))),Promise.reject(n)})}const Nr=e=>e instanceof ne?e.toJSON():e;function be(e,t){t=t||{};const r={};function n(p,f,u){return v.isPlainObject(p)&&v.isPlainObject(f)?v.merge.call({caseless:u},p,f):v.isPlainObject(f)?v.merge({},f):v.isArray(f)?f.slice():f}function i(p,f,u){if(v.isUndefined(f)){if(!v.isUndefined(p))return n(void 0,p,u)}else return n(p,f,u)}function o(p,f){if(!v.isUndefined(f))return n(void 0,f)}function a(p,f){if(v.isUndefined(f)){if(!v.isUndefined(p))return n(void 0,p)}else return n(void 0,f)}function s(p,f,u){if(u in t)return n(p,f);if(u in e)return n(void 0,p)}const d={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(p,f)=>i(Nr(p),Nr(f),!0)};return v.forEach(Object.keys(Object.assign({},e,t)),function(f){const u=d[f]||i,m=u(e[f],t[f],f);v.isUndefined(m)&&u!==s||(r[f]=m)}),r}const _r="1.6.7",Rt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Rt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Wr={};Rt.transitional=function(t,r,n){function i(o,a){return"[Axios v"+_r+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return(o,a,s)=>{if(t===!1)throw new A(i(a," has been removed"+(r?" in "+r:"")),A.ERR_DEPRECATED);return r&&!Wr[a]&&(Wr[a]=!0,console.warn(i(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,a,s):!0}};function Go(e,t,r){if(typeof e!="object")throw new A("options must be an object",A.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],a=t[o];if(a){const s=e[o],d=s===void 0||a(s,o,e);if(d!==!0)throw new A("option "+o+" must be "+d,A.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new A("Unknown option "+o,A.ERR_BAD_OPTION)}}const Pt={assertOptions:Go,validators:Rt},ce=Pt.validators;class qe{constructor(t){this.defaults=t,this.interceptors={request:new Or,response:new Or}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";n.stack?o&&!String(n.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(n.stack+=` `+o):n.stack=o}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=be(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:o}=r;n!==void 0&&Pt.assertOptions(n,{silentJSONParsing:ce.transitional(ce.boolean),forcedJSONParsing:ce.transitional(ce.boolean),clarifyTimeoutError:ce.transitional(ce.boolean)},!1),i!=null&&(v.isFunction(i)?r.paramsSerializer={serialize:i}:Pt.assertOptions(i,{encode:ce.function,serialize:ce.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=o&&v.merge(o.common,o[r.method]);o&&v.forEach(["delete","get","head","post","put","patch","common"],c=>{delete o[c]}),r.headers=ne.concat(a,o);const s=[];let d=!0;this.interceptors.request.forEach(function(l){typeof l.runWhen=="function"&&l.runWhen(r)===!1||(d=d&&l.synchronous,s.unshift(l.fulfilled,l.rejected))});const p=[];this.interceptors.response.forEach(function(l){p.push(l.fulfilled,l.rejected)});let f,u=0,m;if(!d){const c=[Ir.bind(this),void 0];for(c.unshift.apply(c,s),c.push.apply(c,p),m=c.length,f=Promise.resolve(r);u{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](i);n._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{n.subscribe(s),o=s}).then(i);return a.cancel=function(){n.unsubscribe(o)},a},t(function(o,a,s){n.reason||(n.reason=new Le(o,a,s),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)}static source(){let t;return{token:new Lt(function(i){t=i}),cancel:t}}}const Yo=Lt;function Jo(e){return function(r){return e.apply(null,r)}}function Xo(e){return v.isObject(e)&&e.isAxiosError===!0}const Ft={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};Object.entries(Ft).forEach(([e,t])=>{Ft[t]=e});const qo=Ft;function jr(e){const t=new $e(e),r=he($e.prototype.request,t);return v.extend(r,$e.prototype,t,{allOwnKeys:!0}),v.extend(r,t,null,{allOwnKeys:!0}),r.create=function(i){return jr(be(e,i))},r}const N=jr(xt);N.Axios=$e,N.CanceledError=Le,N.CancelToken=Yo,N.isCancel=Pr,N.VERSION=_r,N.toFormData=Ye,N.AxiosError=A,N.Cancel=N.CanceledError,N.all=function(t){return Promise.all(t)},N.spread=Jo,N.isAxiosError=Xo,N.mergeConfig=be,N.AxiosHeaders=ne,N.formToJSON=e=>kr(v.isHTMLForm(e)?new FormData(e):e),N.getAdapter=Mr.getAdapter,N.HttpStatusCode=qo,N.default=N;const Dr=N;var Vt=function(){return Vt=Object.assign||function(t){for(var r,n=1,i=arguments.length;n0&&o[o.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!o||p[1]>o[0]&&p[1]=i+r?(i=a,[4,Fe(0)]):[3,3]):[3,4];case 2:s.sent(),s.label=3;case 3:return++o,[3,1];case 4:return[2,n]}})})}function Ve(e){e.then(void 0,function(){})}function ue(e,t){e=[e[0]>>>16,e[0]&65535,e[1]>>>16,e[1]&65535],t=[t[0]>>>16,t[0]&65535,t[1]>>>16,t[1]&65535];var r=[0,0,0,0];return r[3]+=e[3]+t[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=e[2]+t[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=e[1]+t[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=e[0]+t[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]}function Y(e,t){e=[e[0]>>>16,e[0]&65535,e[1]>>>16,e[1]&65535],t=[t[0]>>>16,t[0]&65535,t[1]>>>16,t[1]&65535];var r=[0,0,0,0];return r[3]+=e[3]*t[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=e[2]*t[3],r[1]+=r[2]>>>16,r[2]&=65535,r[2]+=e[3]*t[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=e[1]*t[3],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=e[2]*t[2],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=e[3]*t[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]}function we(e,t){return t%=64,t===32?[e[1],e[0]]:t<32?[e[0]<>>32-t,e[1]<>>32-t]:(t-=32,[e[1]<>>32-t,e[0]<>>32-t])}function H(e,t){return t%=64,t===0?e:t<32?[e[0]<>>32-t,e[1]<>>1]),e=Y(e,[4283543511,3981806797]),e=I(e,[0,e[0]>>>1]),e=Y(e,[3301882366,444984403]),e=I(e,[0,e[0]>>>1]),e}function Ko(e,t){e=e||"",t=t||0;var r=e.length%16,n=e.length-r,i=[0,t],o=[0,t],a=[0,0],s=[0,0],d=[2277735313,289559509],p=[1291169091,658871167],f;for(f=0;f>>0).toString(16)).slice(-8)+("00000000"+(i[1]>>>0).toString(16)).slice(-8)+("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)}function Qo(e){var t;return Vt({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(` `)},e)}function ea(e,t){for(var r=0,n=e.length;r=1)return Math.round(e/t)*t;var r=1/t;return Math.round(e*r)/r}function ra(e){for(var t,r,n="Unexpected syntax '".concat(e,"'"),i=/^\s*([a-z-]*)(.*)$/i.exec(e),o=i[1]||void 0,a={},s=/([.:#][\w-]+|\[.+?\])/gi,d=function(m,h){a[m]=a[m]||[],a[m].push(h)};;){var p=s.exec(i[2]);if(!p)break;var f=p[0];switch(f[0]){case".":d("class",f.slice(1));break;case"#":d("id",f.slice(1));break;case"[":{var u=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(f);if(u)d(u[1],(r=(t=u[4])!==null&&t!==void 0?t:u[5])!==null&&r!==void 0?r:"");else throw new Error(n);break}default:throw new Error(n)}}return[o,a]}function Jr(e){return e&&typeof e=="object"&&"message"in e?e:{message:e}}function na(e){return typeof e!="function"}function ia(e,t){var r=new Promise(function(n){var i=Date.now();Hr(e.bind(null,t),function(){for(var o=[],a=0;a=4}function aa(){var e=window,t=navigator;return q(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!Xr()}function It(){var e=window,t=navigator;return q(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,t.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function Me(){var e=window,t=navigator;return q(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"getStorageUpdates"in t,"WebKitMediaKeys"in e])>=4}function Nt(){var e=window;return q(["safari"in e,!("DeviceMotionEvent"in e),!("ongestureend"in e),!("standalone"in navigator)])>=3}function sa(){var e,t,r=window;return q(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in r,"mozInnerScreenX"in r,"CSSMozDocumentRule"in r,"CanvasCaptureMediaStream"in r])>=4}function ca(){var e=window;return q([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function ua(){var e=window;return q(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function la(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return q(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function da(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function fa(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function qr(){var e=It(),t=sa();if(!e&&!t)return!1;var r=window;return q(["onorientationchange"in r,"orientation"in r,e&&!("SharedWorker"in r),t&&/android/i.test(navigator.appVersion)])>=2}function ma(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(pa())return-1;var r=4500,n=5e3,i=new t(1,n,44100),o=i.createOscillator();o.type="triangle",o.frequency.value=1e4;var a=i.createDynamicsCompressor();a.threshold.value=-50,a.knee.value=40,a.ratio.value=12,a.attack.value=0,a.release.value=.25,o.connect(a),a.connect(i.destination),o.start(0);var s=ha(i),d=s[0],p=s[1],f=d.then(function(u){return va(u.getChannelData(0).subarray(r))},function(u){if(u.name==="timeout"||u.name==="suspended")return-3;throw u});return Ve(f),function(){return p(),f}}function pa(){return Me()&&!Nt()&&!ua()}function ha(e){var t=3,r=500,n=500,i=5e3,o=function(){},a=new Promise(function(s,d){var p=!1,f=0,u=0;e.oncomplete=function(c){return s(c.renderedBuffer)};var m=function(){setTimeout(function(){return d($r("timeout"))},Math.min(n,u+i-Date.now()))},h=function(){try{var c=e.startRendering();switch(zr(c)&&Ve(c),e.state){case"running":u=Date.now(),p&&m();break;case"suspended":document.hidden||f++,p&&f>=t?d($r("suspended")):setTimeout(h,r);break}}catch(l){d(l)}};h(),o=function(){p||(p=!0,u>0&&m())}});return[a,o]}function va(e){for(var t=0,r=0;r=0?"+":"").concat(Math.abs(n))}function Ua(){var e=new Date().getFullYear();return Math.max(X(new Date(e,0,1).getTimezoneOffset()),X(new Date(e,6,1).getTimezoneOffset()))}function za(){try{return!!window.sessionStorage}catch{return!0}}function Ha(){try{return!!window.localStorage}catch{return!0}}function Za(){if(!(Xr()||aa()))try{return!!window.indexedDB}catch{return!0}}function Ga(){return!!window.openDatabase}function Ya(){return navigator.cpuClass}function Ja(){var e=navigator.platform;return e==="MacIntel"&&Me()&&!Nt()?la()?"iPad":"iPhone":e}function Xa(){return navigator.vendor||""}function qa(){for(var e=[],t=0,r=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];tu.length*.6}),s.sort(),[2,s]}})})}function es(){return Me()||qr()}function ts(e){var t;return ie(this,void 0,void 0,function(){var r,n,i,o,d,a,s,d;return oe(this,function(p){switch(p.label){case 0:for(r=document,n=r.createElement("div"),i=new Array(e.length),o={},en(n),d=0;d')}function hs(){var e,t=document.createElement("canvas"),r=(e=t.getContext("webgl"))!==null&&e!==void 0?e:t.getContext("experimental-webgl");if(r&&"getExtension"in r){var n=r.getExtension("WEBGL_debug_renderer_info");if(n)return{vendor:(r.getParameter(n.UNMASKED_VENDOR_WEBGL)||"").toString(),renderer:(r.getParameter(n.UNMASKED_RENDERER_WEBGL)||"").toString()}}}function vs(){return navigator.pdfViewerEnabled}function bs(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}var ws={fonts:Sa,domBlockers:Qa,fontPreferences:ms,audio:ma,screenFrame:ja,osCpu:Pa,languages:La,colorDepth:Fa,deviceMemory:Va,screenResolution:Ma,hardwareConcurrency:Da,timezone:Ba,sessionStorage:za,localStorage:Ha,indexedDB:Za,openDatabase:Ga,cpuClass:Ya,platform:Ja,plugins:Ea,canvas:Ta,touchSupport:Ra,vendor:Xa,vendorFlavors:qa,cookiesEnabled:$a,colorGamut:ns,invertedColors:is,forcedColors:os,monochrome:ss,contrast:cs,reducedMotion:us,hdr:ls,math:ds,videoCard:hs,pdfViewerEnabled:vs,architecture:bs};function gs(e){return oa(ws,e,[])}var ys="$ if upgrade to Pro: https://fpjs.dev/pro";function Ss(e){var t=Es(e),r=Ts(t);return{score:t,comment:ys.replace(/\$/g,"".concat(r))}}function Es(e){if(qr())return .4;if(Me())return Nt()?.5:.3;var t=e.platform.value||"";return/^Win/.test(t)?.6:/^Mac/.test(t)?.5:.7}function Ts(e){return Yr(.99+.01*e,1e-4)}function xs(e){for(var t="",r=0,n=Object.keys(e).sort();r=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(Ur,"/npm-monitoring"),!0),e.send()}catch(t){console.error(t)}}function Rs(e){var t=e===void 0?{}:e,r=t.delayFallback,n=t.debug,i=t.monitoring,o=i===void 0?!0:i;return ie(this,void 0,void 0,function(){var a;return oe(this,function(s){switch(s.label){case 0:return o&&ks(),[4,Cs(r)];case 1:return s.sent(),a=gs({debug:n}),[2,As(a,n)]}})})}var Ps={load:Rs,hashComponents:sn,componentsToDebugString:an},Ls=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},w={},cn={exports:{}},O={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Ie=Symbol.for("react.element"),Fs=Symbol.for("react.portal"),Vs=Symbol.for("react.fragment"),Ms=Symbol.for("react.strict_mode"),Is=Symbol.for("react.profiler"),Ns=Symbol.for("react.provider"),_s=Symbol.for("react.context"),Ws=Symbol.for("react.forward_ref"),js=Symbol.for("react.suspense"),Ds=Symbol.for("react.memo"),Bs=Symbol.for("react.lazy"),un=Symbol.iterator;function Us(e){return e===null||typeof e!="object"?null:(e=un&&e[un]||e["@@iterator"],typeof e=="function"?e:null)}var ln={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},dn=Object.assign,fn={};function Se(e,t,r){this.props=e,this.context=t,this.refs=fn,this.updater=r||ln}Se.prototype.isReactComponent={},Se.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},Se.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function mn(){}mn.prototype=Se.prototype;function Ut(e,t,r){this.props=e,this.context=t,this.refs=fn,this.updater=r||ln}var zt=Ut.prototype=new mn;zt.constructor=Ut,dn(zt,Se.prototype),zt.isPureReactComponent=!0;var pn=Array.isArray,hn=Object.prototype.hasOwnProperty,Ht={current:null},vn={key:!0,ref:!0,__self:!0,__source:!0};function bn(e,t,r){var n,i={},o=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)hn.call(t,n)&&!vn.hasOwnProperty(n)&&(i[n]=t[n]);var s=arguments.length-2;if(s===1)i.children=r;else if(10?R.length===2?typeof R[1]==s?this[R[0]]=R[1].call(this,re):this[R[0]]=R[1]:R.length===3?typeof R[1]===s&&!(R[1].exec&&R[1].test)?this[R[0]]=re?R[1].call(this,re,R[2]):n:this[R[0]]=re?re.replace(R[1],R[2]):n:R.length===4&&(this[R[0]]=re?R[3].call(this,re.replace(R[1],R[2])):n):this[R]=re||n;x+=2}},sr=function(C,L){for(var x in L)if(typeof L[x]===p&&L[x].length>0){for(var M=0;M2&&(E[m]="iPad",E[c]=T),E},this.getEngine=function(){var E={};return E[h]=n,E[b]=n,Ue.call(E,M,te.engine),E},this.getOS=function(){var E={};return E[h]=n,E[b]=n,Ue.call(E,M,te.os),R&&!E[h]&&me&&me.platform!="Unknown"&&(E[h]=me.platform.replace(/chrome os/i,Mi).replace(/macos/i,Ii)),E},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return M},this.setUA=function(E){return M=typeof E===f&&E.length>P?ar(E,P):E,this},this.setUA(M),this};$.VERSION=i,$.BROWSER=vt([h,b,u]),$.CPU=vt([g]),$.DEVICE=vt([m,l,c,V,y,_,T,fe,je]),$.ENGINE=$.OS=vt([h,b]),e.exports&&(t=e.exports=$),t.UAParser=$;var Ae=typeof r!==d&&(r.jQuery||r.Zepto);if(Ae&&!Ae.ua){var bt=new $;Ae.ua=bt.getResult(),Ae.ua.get=function(){return bt.getUA()},Ae.ua.set=function(C){bt.setUA(C);var L=bt.getResult();for(var x in L)Ae.ua[x]=L[x]}}})(typeof window=="object"?window:Ls)})(Yt,Yt.exports);var Js=Yt.exports;Object.defineProperty(w,"__esModule",{value:!0});function Xs(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var W=Ys,F=Xs(W),gn=Js,le=new gn,j=le.getBrowser(),qs=le.getCPU(),Z=le.getDevice(),Jt=le.getEngine(),de=le.getOS(),Ne=le.getUA(),yn=function(t){return le.setUA(t)},_e=function(t){if(!t){console.error("No userAgent string was provided");return}var r=new gn(t);return{UA:r,browser:r.getBrowser(),cpu:r.getCPU(),device:r.getDevice(),engine:r.getEngine(),os:r.getOS(),ua:r.getUA(),setUserAgent:function(i){return r.setUA(i)}}},Sn=Object.freeze({ClientUAInstance:le,browser:j,cpu:qs,device:Z,engine:Jt,os:de,ua:Ne,setUa:yn,parseUserAgent:_e});function En(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $s(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}function J(e,t){if(e==null)return{};var r=rc(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function rt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nc(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rt(e)}function ic(e,t){return oc(e)||ac(e,t)||sc(e,t)||cc()}function oc(e){if(Array.isArray(e))return e}function ac(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,s;try{for(r=r.call(e);!(i=(a=r.next()).done)&&(n.push(a.value),!(t&&n.length===t));i=!0);}catch(d){o=!0,s=d}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function sc(e,t){if(e){if(typeof e=="string")return xn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xn(e,t)}}function xn(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:"none";return t||r},Kt=function(){return typeof window<"u"&&(window.navigator||navigator)?window.navigator||navigator:!1},Qt=function(t){var r=Kt();return r&&r.platform&&(r.platform.indexOf(t)!==-1||r.platform==="MacIntel"&&r.maxTouchPoints>1&&!window.MSStream)},fc=function(t,r,n,i,o){return{isBrowser:t,browserMajorVersion:S(r.major),browserFullVersion:S(r.version),browserName:S(r.name),engineName:S(n.name),engineVersion:S(n.version),osName:S(i.name),osVersion:S(i.version),userAgent:S(o)}},On=function(t,r,n,i){return $s({},t,{vendor:S(r.vendor),model:S(r.model),os:S(n.name),osVersion:S(n.version),ua:S(i)})},mc=function(t,r,n,i){return{isSmartTV:t,engineName:S(r.name),engineVersion:S(r.version),osName:S(n.name),osVersion:S(n.version),userAgent:S(i)}},pc=function(t,r,n,i){return{isConsole:t,engineName:S(r.name),engineVersion:S(r.version),osName:S(n.name),osVersion:S(n.version),userAgent:S(i)}},hc=function(t,r,n,i){return{isWearable:t,engineName:S(r.name),engineVersion:S(r.version),osName:S(n.name),osVersion:S(n.version),userAgent:S(i)}},vc=function(t,r,n,i,o){return{isEmbedded:t,vendor:S(r.vendor),model:S(r.model),engineName:S(n.name),engineVersion:S(n.version),osName:S(i.name),osVersion:S(i.version),userAgent:S(o)}};function bc(e){var t=e?_e(e):Sn,r=t.device,n=t.browser,i=t.engine,o=t.os,a=t.ua,s=lc(r.type),d=s.isBrowser,p=s.isMobile,f=s.isTablet,u=s.isSmartTV,m=s.isConsole,h=s.isWearable,c=s.isEmbedded;if(d)return fc(d,n,i,o,a);if(u)return mc(u,i,o,a);if(m)return pc(m,i,o,a);if(p||f)return On(s,r,o,a);if(h)return hc(h,i,o,a);if(c)return vc(c,r,i,o,a)}var Cn=function(t){var r=t.type;return r===D.Mobile},An=function(t){var r=t.type;return r===D.Tablet},kn=function(t){var r=t.type;return r===D.Mobile||r===D.Tablet},Rn=function(t){var r=t.type;return r===D.SmartTv},nt=function(t){var r=t.type;return r===D.Browser},Pn=function(t){var r=t.type;return r===D.Wearable},Ln=function(t){var r=t.type;return r===D.Console},Fn=function(t){var r=t.type;return r===D.Embedded},Vn=function(t){var r=t.vendor;return S(r)},Mn=function(t){var r=t.model;return S(r)},In=function(t){var r=t.type;return S(r,"browser")},Nn=function(t){var r=t.name;return r===Ee.Android},_n=function(t){var r=t.name;return r===Ee.Windows},Wn=function(t){var r=t.name;return r===Ee.MAC_OS},jn=function(t){var r=t.name;return r===Ee.WindowsPhone},Dn=function(t){var r=t.name;return r===Ee.IOS},Bn=function(t){var r=t.version;return S(r)},Un=function(t){var r=t.name;return S(r)},zn=function(t){var r=t.name;return r===z.Chrome},Hn=function(t){var r=t.name;return r===z.Firefox},Zn=function(t){var r=t.name;return r===z.Chromium},it=function(t){var r=t.name;return r===z.Edge},Gn=function(t){var r=t.name;return r===z.Yandex},Yn=function(t){var r=t.name;return r===z.Safari||r===z.MobileSafari},Jn=function(t){var r=t.name;return r===z.MobileSafari},Xn=function(t){var r=t.name;return r===z.Opera},qn=function(t){var r=t.name;return r===z.InternetExplorer||r===z.Ie},$n=function(t){var r=t.name;return r===z.MIUI},Kn=function(t){var r=t.name;return r===z.SamsungBrowser},Qn=function(t){var r=t.version;return S(r)},ei=function(t){var r=t.major;return S(r)},ti=function(t){var r=t.name;return S(r)},ri=function(t){var r=t.name;return S(r)},ni=function(t){var r=t.version;return S(r)},ii=function(){var t=Kt(),r=t&&t.userAgent&&t.userAgent.toLowerCase();return typeof r=="string"?/electron/.test(r):!1},Te=function(t){return typeof t=="string"&&t.indexOf("Edg/")!==-1},oi=function(){var t=Kt();return t&&(/iPad|iPhone|iPod/.test(t.platform)||t.platform==="MacIntel"&&t.maxTouchPoints>1)&&!window.MSStream},ee=function(){return Qt("iPad")},ai=function(){return Qt("iPhone")},si=function(){return Qt("iPod")},ci=function(t){return S(t)};function ui(e){var t=e||Sn,r=t.device,n=t.browser,i=t.os,o=t.engine,a=t.ua;return{isSmartTV:Rn(r),isConsole:Ln(r),isWearable:Pn(r),isEmbedded:Fn(r),isMobileSafari:Jn(n)||ee(),isChromium:Zn(n),isMobile:kn(r)||ee(),isMobileOnly:Cn(r),isTablet:An(r)||ee(),isBrowser:nt(r),isDesktop:nt(r),isAndroid:Nn(i),isWinPhone:jn(i),isIOS:Dn(i)||ee(),isChrome:zn(n),isFirefox:Hn(n),isSafari:Yn(n),isOpera:Xn(n),isIE:qn(n),osVersion:Bn(i),osName:Un(i),fullBrowserVersion:Qn(n),browserVersion:ei(n),browserName:ti(n),mobileVendor:Vn(r),mobileModel:Mn(r),engineName:ri(o),engineVersion:ni(o),getUA:ci(a),isEdge:it(n)||Te(a),isYandex:Gn(n),deviceType:In(r),isIOS13:oi(),isIPad13:ee(),isIPhone13:ai(),isIPod13:si(),isElectron:ii(),isEdgeChromium:Te(a),isLegacyEdge:it(n)&&!Te(a),isWindows:_n(i),isMacOs:Wn(i),isMIUI:$n(n),isSamsungBrowser:Kn(n)}}var li=Rn(Z),di=Ln(Z),fi=Pn(Z),wc=Fn(Z),gc=Jn(j)||ee(),yc=Zn(j),ot=kn(Z)||ee(),mi=Cn(Z),pi=An(Z)||ee(),hi=nt(Z),Sc=nt(Z),vi=Nn(de),bi=jn(de),wi=Dn(de)||ee(),Ec=zn(j),Tc=Hn(j),xc=Yn(j),Oc=Xn(j),gi=qn(j),Cc=Bn(de),Ac=Un(de),kc=Qn(j),Rc=ei(j),Pc=ti(j),Lc=Vn(Z),Fc=Mn(Z),Vc=ri(Jt),Mc=ni(Jt),Ic=ci(Ne),Nc=it(j)||Te(Ne),_c=Gn(j),Wc=In(Z),jc=oi(),Dc=ee(),Bc=ai(),Uc=si(),zc=ii(),Hc=Te(Ne),Zc=it(j)&&!Te(Ne),Gc=_n(de),Yc=Wn(de),Jc=$n(j),Xc=Kn(j),qc=function(t){if(!t||typeof t!="string"){console.error("No valid user agent string was provided");return}var r=_e(t),n=r.device,i=r.browser,o=r.os,a=r.engine,s=r.ua;return ui({device:n,browser:i,os:o,engine:a,ua:s})},$c=function(t){var r=t.renderWithFragment,n=t.children,i=J(t,["renderWithFragment","children"]);return vi?r?F.createElement(W.Fragment,null,n):F.createElement("div",i,n):null},Kc=function(t){var r=t.renderWithFragment,n=t.children,i=J(t,["renderWithFragment","children"]);return hi?r?F.createElement(W.Fragment,null,n):F.createElement("div",i,n):null},Qc=function(t){var r=t.renderWithFragment,n=t.children,i=J(t,["renderWithFragment","children"]);return gi?r?F.createElement(W.Fragment,null,n):F.createElement("div",i,n):null},eu=function(t){var r=t.renderWithFragment,n=t.children,i=J(t,["renderWithFragment","children"]);return wi?r?F.createElement(W.Fragment,null,n):F.createElement("div",i,n):null},tu=function(t){var r=t.renderWithFragment,n=t.children,i=J(t,["renderWithFragment","children"]);return ot?r?F.createElement(W.Fragment,null,n):F.createElement("div",i,n):null},ru=function(t){var r=t.renderWithFragment,n=t.children,i=J(t,["renderWithFragment","children"]);return pi?r?F.createElement(W.Fragment,null,n):F.createElement("div",i,n):null},nu=function(t){var r=t.renderWithFragment,n=t.children,i=J(t,["renderWithFragment","children"]);return bi?r?F.createElement(W.Fragment,null,n):F.createElement("div",i,n):null},iu=function(t){var r=t.renderWithFragment,n=t.children;t.viewClassName,t.style;var i=J(t,["renderWithFragment","children","viewClassName","style"]);return mi?r?F.createElement(W.Fragment,null,n):F.createElement("div",i,n):null},ou=function(t){var r=t.renderWithFragment,n=t.children,i=J(t,["renderWithFragment","children"]);return li?r?F.createElement(W.Fragment,null,n):F.createElement("div",i,n):null},au=function(t){var r=t.renderWithFragment,n=t.children,i=J(t,["renderWithFragment","children"]);return di?r?F.createElement(W.Fragment,null,n):F.createElement("div",i,n):null},su=function(t){var r=t.renderWithFragment,n=t.children,i=J(t,["renderWithFragment","children"]);return fi?r?F.createElement(W.Fragment,null,n):F.createElement("div",i,n):null},cu=function(t){var r=t.renderWithFragment,n=t.children;t.viewClassName,t.style;var i=t.condition,o=J(t,["renderWithFragment","children","viewClassName","style","condition"]);return i?r?F.createElement(W.Fragment,null,n):F.createElement("div",o,n):null};function uu(e){return function(t){tc(r,t);function r(n){var i;return Ks(this,r),i=nc(this,qt(r).call(this,n)),i.isEventListenerAdded=!1,i.handleOrientationChange=i.handleOrientationChange.bind(rt(i)),i.onOrientationChange=i.onOrientationChange.bind(rt(i)),i.onPageLoad=i.onPageLoad.bind(rt(i)),i.state={isLandscape:!1,isPortrait:!1},i}return Qs(r,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var i=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:i===0,isLandscape:i===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window>"u"?"undefined":We(window))!==void 0&&ot&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return F.createElement(e,Xt({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),r}(F.Component)}function lu(){var e=W.useState(function(){var o=window.innerWidth>window.innerHeight?90:0;return{isPortrait:o===0,isLandscape:o===90,orientation:o===0?"portrait":"landscape"}}),t=ic(e,2),r=t[0],n=t[1],i=W.useCallback(function(){var o=window.innerWidth>window.innerHeight?90:0,a={isPortrait:o===0,isLandscape:o===90,orientation:o===0?"portrait":"landscape"};r.orientation!==a.orientation&&n(a)},[r.orientation]);return W.useEffect(function(){return(typeof window>"u"?"undefined":We(window))!==void 0&&ot&&(i(),window.addEventListener("load",i,!1),window.addEventListener("resize",i,!1)),function(){window.removeEventListener("resize",i,!1),window.removeEventListener("load",i,!1)}},[i]),r}function yi(e){var t=e||window.navigator.userAgent;return _e(t)}function du(e){var t=e||window.navigator.userAgent,r=yi(t),n=ui(r);return[n,r]}w.AndroidView=$c,w.BrowserTypes=z,w.BrowserView=Kc,w.ConsoleView=au,w.CustomView=cu,w.IEView=Qc,w.IOSView=eu,w.MobileOnlyView=iu,w.MobileView=tu,w.OsTypes=Ee,w.SmartTVView=ou,w.TabletView=ru,w.WearableView=su,w.WinPhoneView=nu;var fu=w.browserName=Pc,mu=w.browserVersion=Rc;w.deviceDetect=bc;var pu=w.deviceType=Wc,hu=w.engineName=Vc,vu=w.engineVersion=Mc,bu=w.fullBrowserVersion=kc;w.getSelectorsByUserAgent=qc,w.getUA=Ic,w.isAndroid=vi,w.isBrowser=hi,w.isChrome=Ec,w.isChromium=yc,w.isConsole=di,w.isDesktop=Sc,w.isEdge=Nc,w.isEdgeChromium=Hc,w.isElectron=zc,w.isEmbedded=wc,w.isFirefox=Tc,w.isIE=gi,w.isIOS=wi,w.isIOS13=jc,w.isIPad13=Dc,w.isIPhone13=Bc,w.isIPod13=Uc,w.isLegacyEdge=Zc,w.isMIUI=Jc,w.isMacOs=Yc,w.isMobile=ot,w.isMobileOnly=mi,w.isMobileSafari=gc,w.isOpera=Oc,w.isSafari=xc,w.isSamsungBrowser=Xc,w.isSmartTV=li,w.isTablet=pi,w.isWearable=fi,w.isWinPhone=bi,w.isWindows=Gc,w.isYandex=_c;var wu=w.mobileModel=Fc,gu=w.mobileVendor=Lc,yu=w.osName=Ac,Su=w.osVersion=Cc;w.parseUserAgent=_e,w.setUserAgent=dc,w.useDeviceData=yi,w.useDeviceSelectors=du,w.useMobileOrientation=lu,w.withOrientationChange=uu;let Si="",Ei="",Ti="",xi="",er="",at="",xe=0,Oe=0,Ce="",st={};const ct="1a2b3c4d5e6f7g8h",Oi=async e=>{const t={name:"AES-CBC",iv:new TextEncoder().encode(ct)},r=await crypto.subtle.importKey("raw",new TextEncoder().encode(ct),"AES-CBC",!1,["encrypt"]),n=new TextEncoder().encode(e),i=await crypto.subtle.encrypt(t,r,n),o=Array.from(new Uint8Array(i));return btoa(String.fromCharCode(...o))},tr=async e=>{const t={name:"AES-CBC",iv:new TextEncoder().encode(ct)},r=await crypto.subtle.importKey("raw",new TextEncoder().encode(ct),"AES-CBC",!1,["decrypt"]),i=new Uint8Array(atob(e).split("").map(s=>s.charCodeAt(0))).buffer,o=await crypto.subtle.decrypt(t,r,i);return new TextDecoder().decode(o)};function Eu(e,t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const i of r)if(!n.includes(i))return!1;return!0}async function Tu(){try{const t=await(await Ps.load()).get();return er=(t==null?void 0:t.visitorId)||"-",(t==null?void 0:t.visitorId)||"-"}catch(e){return console.error("Error at fingerprint device:",e),er="-","-"}}async function xu(){try{const t=await(await fetch("https://api64.ipify.org?format=json")).json();return at=t.ip||"-",t.ip||"-"}catch(e){return console.error("Error fetching IP address:",e),at="-","-"}}async function Ou(){return new Promise(e=>{"geolocation"in navigator?navigator.geolocation.getCurrentPosition(async t=>{const r=t.coords.latitude,n=t.coords.longitude;xe=r||"-",Oe=n||"-",fetch(`https://api.bigdatacloud.net/data/reverse-geocode-client?latitude=${r}&longitude=${n}&localityLanguage=en`).then(i=>i.json()).then(i=>{Ce=i.countryName||"-",e({latitude:r||"-",longitude:n||"-",country:i.countryName||"-"})}).catch(i=>{console.error("Error getting country name:",i),Ce="-",e({latitude:r||"-",longitude:n||"-",country:"-"})})},async t=>{console.error("Error getting user location:",t),e({latitude:"-",longitude:"-",country:"-"})}):(console.error("Geolocation is not supported by this browser"),e({latitude:"-",longitude:"-",country:"-"}))})}function Cu(){const t=new Date().getTimezoneOffset(),r=Math.floor(Math.abs(t)/60),n=Math.abs(t)%60,i=`${t<0?"+":"-"}${r.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`;return xi=i,i}async function Au(e,t,r,n,i,o){var u,m,h,c;const a=await Oi(JSON.stringify(e.userDetails)),s={buildVersion:"-",buildTime:"-",buildManufacturer:"-",buildProduct:"-",buildModel:"-",buildBrand:"-",buildDevice:"-",buildFingerPrint:"-",buildHardware:"-",buildType:"-",buildDisplay:"-",buildHost:"-",buildID:"-",deviceId:r||er,macAddress:"-",wifiSsid:"-",ip:n||at,ip2Address:n||at,loc:`${xe},${Oe}`,timeZone:t||xi,timeZoneArea:Intl.DateTimeFormat().resolvedOptions().timeZone,browserName:fu,browserVersion:mu,deviceType:pu,engineName:hu,engineVersion:vu,fullBrowserVersion:bu,mobileModel:wu,mobileVendor:gu,osName:yu,osVersion:Su,screenResolution:`${window.innerWidth},${window.innerHeight}`,defaultLanguage:`${navigator.language}`,isVpnUsed:!1,latitude:((u=i==null?void 0:i.latitude)==null?void 0:u.toString())||(xe==null?void 0:xe.toString())||"-",longitude:((m=i==null?void 0:i.longitude)==null?void 0:m.toString())||(Oe==null?void 0:Oe.toString())||"-",country:o||(Ce==null?void 0:Ce.toString())||"-"},d=await Oi(JSON.stringify(s)),p=(c=(h=new Date().toISOString())==null?void 0:h.replaceAll("T"," "))==null?void 0:c.replaceAll("Z","");return await Dr.post(`${Si}/curate`,{userDetails:a,deviceDetails:d},{params:{appId:Ti,requestTime:p},headers:{authToken:Ei}})}async function Ci(e){var s,d;const{onMessage:t,operatorId:r,serverURL:n,appId:i,password:o}=e,a=t||(p=>{console.log("Initialize Message ::> ",p)});try{if(!r||!n||!i||!o)return a({call:"initialize",code:-1,result:`${r?"":"operatorId is required, "}${n?"":"serverURL is required, "}${i?"":"appId is required, "}${o?"":"password is required"}`}),"Required parameters are missing";Si=e.serverURL,Ti=e.appId;const p=new Date().toISOString().replace("T"," ").replace("Z",""),f=await Dr.post(`${n}/GetJWTToken`,{operatorId:r,password:o},{params:{requestTime:p,appId:i}}),u=f==null?void 0:f.data;if((u==null?void 0:u.resultCode)===0){const m=(s=u==null?void 0:u.resultData)==null?void 0:s.token;Ei=typeof m=="string"?await tr(m):"";const b=(await tr((d=u==null?void 0:u.resultData)==null?void 0:d.text)||"[]").slice(1,-1).split(",").map(V=>V.trim()),g={};return b.forEach(V=>{g[V]=""}),st=g,a({call:"initialize",code:1,result:{resultMessage:u==null?void 0:u.resultMessage,resultCode:u==null?void 0:u.resultCode,timestamp:u==null?void 0:u.timestamp,userDetailsPayload:g}}),g}return a({call:"initialize",code:-1,result:{resultMessage:u==null?void 0:u.resultMessage,resultCode:u==null?void 0:u.resultCode,timestamp:u==null?void 0:u.timestamp}}),(u==null?void 0:u.resultMessage)||u}catch(p){return a({call:"initialize",code:0,result:p||"Unknown error occurred"}),p||"Unknown error occurred"}}async function Ai(e){const{onMessage:t,userDetails:r}=e,n=t||(i=>{console.log("Curate Message ::> ",i)});if(typeof r>"u"||r==null||typeof r!="object")return n({call:"curate",code:-1,result:"Invalid userDetails: Expected an object."}),!1;try{if(Eu(st,r)){n({call:"curate",code:2,result:{message:"object matched",expectedPayload:st,realityPayload:r}});const o=Cu(),[a,s,d]=await Promise.all([Tu(),xu(),Ou()]),p=await Au(e,o,a,s,{latitude:(d==null?void 0:d.latitude)||xe||void 0,longitude:(d==null?void 0:d.longitude)||Oe||void 0},(d==null?void 0:d.country)||Ce||void 0);if(p.data){const{data:f}=p;if((f==null?void 0:f.resultCode)===1)return n({call:"curate",code:1,result:f}),!0;{const u=f.resultData?await tr(f.resultData):null;return n({call:"curate",code:-1,result:{resultCode:f.resultCode,resultMessage:f.resultMessage,timestamp:f.timestamp,resultData:u}}),!1}}return n({call:"curate",code:0,result:p||"Unknown error occurred"}),!1}else return n({call:"curate",code:-1,result:{message:"Invalid Object, Expected object didn't match form object",expectedPayload:st,realityPayload:r}}),!1}catch(i){return n({call:"curate",code:0,result:i||"Unknown error occurred"}),!1}}const ku={initialize:Ci,curate:Ai};se.curate=Ai,se.default=ku,se.initialize=Ci,Object.defineProperties(se,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});