(()=>{var qr=Object.defineProperty;var u=(t,e)=>()=>(t&&(e=t(t=0)),e);var jr=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Mr=(t,e)=>{for(var r in e)qr(t,r,{get:e[r],enumerable:!0})};function G(t,e){return function(){return t.apply(e,arguments)}}var Te=u(()=>{"use strict"});function zr(t){return t!==null&&!X(t)&&t.constructor!==null&&!X(t.constructor)&&O(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}function Vr(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&bt(t.buffer),e}function Q(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,o;if(typeof t!="object"&&(t=[t]),j(t))for(n=0,o=t.length;n0;)if(o=r[n],e===o.toLowerCase())return o;return null}function De(){let{caseless:t}=St(this)&&this||{},e={},r=(n,o)=>{let i=t&&Rt(e,o)||o;ue(e[i])&&ue(n)?e[i]=De(e[i],n):ue(n)?e[i]=De({},n):j(n)?e[i]=n.slice():e[i]=n};for(let n=0,o=arguments.length;n{"use strict";Te();({toString:Jr}=Object.prototype),{getPrototypeOf:Ne}=Object,fe=(t=>e=>{let r=Jr.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),I=t=>(t=t.toLowerCase(),e=>fe(e)===t),de=t=>e=>typeof e===t,{isArray:j}=Array,X=de("undefined");bt=I("ArrayBuffer");Wr=de("string"),O=de("function"),Et=de("number"),pe=t=>t!==null&&typeof t=="object",$r=t=>t===!0||t===!1,ue=t=>{if(fe(t)!=="object")return!1;let e=Ne(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Kr=I("Date"),Gr=I("File"),Xr=I("Blob"),Qr=I("FileList"),Zr=t=>pe(t)&&O(t.pipe),Yr=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||O(t.append)&&((e=fe(t))==="formdata"||e==="object"&&O(t.toString)&&t.toString()==="[object FormData]"))},en=I("URLSearchParams"),tn=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");xt=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),St=t=>!X(t)&&t!==xt;rn=(t,e,r,{allOwnKeys:n}={})=>(Q(e,(o,i)=>{r&&O(o)?t[i]=G(o,r):t[i]=o},{allOwnKeys:n}),t),nn=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),on=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},sn=(t,e,r,n)=>{let o,i,s,c={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)s=o[i],(!n||n(s,t,e))&&!c[s]&&(e[s]=t[s],c[s]=!0);t=r!==!1&&Ne(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},an=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;let n=t.indexOf(e,r);return n!==-1&&n===r},cn=t=>{if(!t)return null;if(j(t))return t;let e=t.length;if(!Et(e))return null;let r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},ln=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Ne(Uint8Array)),un=(t,e)=>{let n=(t&&t[Symbol.iterator]).call(t),o;for(;(o=n.next())&&!o.done;){let i=o.value;e.call(t,i[0],i[1])}},fn=(t,e)=>{let r,n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},dn=I("HTMLFormElement"),pn=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),gt=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),mn=I("RegExp"),At=(t,e)=>{let r=Object.getOwnPropertyDescriptors(t),n={};Q(r,(o,i)=>{let s;(s=e(o,i,t))!==!1&&(n[i]=s||o)}),Object.defineProperties(t,n)},hn=t=>{At(t,(e,r)=>{if(O(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;let n=t[r];if(O(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},yn=(t,e)=>{let r={},n=o=>{o.forEach(i=>{r[i]=!0})};return j(t)?n(t):n(String(t).split(e)),r},gn=()=>{},wn=(t,e)=>(t=+t,Number.isFinite(t)?t:e),Ie="abcdefghijklmnopqrstuvwxyz",wt="0123456789",Pt={DIGIT:wt,ALPHA:Ie,ALPHA_DIGIT:Ie+Ie.toUpperCase()+wt},bn=(t=16,e=Pt.ALPHA_DIGIT)=>{let r="",{length:n}=e;for(;t--;)r+=e[Math.random()*n|0];return r};Rn=t=>{let e=new Array(10),r=(n,o)=>{if(pe(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[o]=n;let i=j(n)?[]:{};return Q(n,(s,c)=>{let p=r(s,o+1);!X(p)&&(i[c]=p)}),e[o]=void 0,i}}return n};return r(t,0)},xn=I("AsyncFunction"),Sn=t=>t&&(pe(t)||O(t))&&O(t.then)&&O(t.catch),a={isArray:j,isArrayBuffer:bt,isBuffer:zr,isFormData:Yr,isArrayBufferView:Vr,isString:Wr,isNumber:Et,isBoolean:$r,isObject:pe,isPlainObject:ue,isUndefined:X,isDate:Kr,isFile:Gr,isBlob:Xr,isRegExp:mn,isFunction:O,isStream:Zr,isURLSearchParams:en,isTypedArray:ln,isFileList:Qr,forEach:Q,merge:De,extend:rn,trim:tn,stripBOM:nn,inherits:on,toFlatObject:sn,kindOf:fe,kindOfTest:I,endsWith:an,toArray:cn,forEachEntry:un,matchAll:fn,isHTMLForm:dn,hasOwnProperty:gt,hasOwnProp:gt,reduceDescriptors:At,freezeMethods:hn,toObjectSet:yn,toCamelCase:pn,noop:gn,toFiniteNumber:wn,findKey:Rt,global:xt,isContextDefined:St,ALPHABET:Pt,generateString:bn,isSpecCompliantForm:En,toJSONObject:Rn,isAsyncFn:xn,isThenable:Sn}});function M(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}var Ot,Ct,y,D=u(()=>{"use strict";w();a.inherits(M,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:a.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});Ot=M.prototype,Ct={};["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(t=>{Ct[t]={value:t}});Object.defineProperties(M,Ct);Object.defineProperty(Ot,"isAxiosError",{value:!0});M.from=(t,e,r,n,o,i)=>{let s=Object.create(Ot);return a.toFlatObject(t,s,function(p){return p!==Error.prototype},c=>c!=="isAxiosError"),M.call(s,t.message,e,r,n,o),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};y=M});var me,Ue=u(()=>{me=null});function Fe(t){return a.isPlainObject(t)||a.isArray(t)}function It(t){return a.endsWith(t,"[]")?t.slice(0,-2):t}function Tt(t,e,r){return t?t.concat(e).map(function(o,i){return o=It(o),!r&&i?"["+o+"]":o}).join(r?".":""):e}function An(t){return a.isArray(t)&&!t.some(Fe)}function On(t,e,r){if(!a.isObject(t))throw new TypeError("target must be an object");e=e||new(me||FormData),r=a.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,R){return!a.isUndefined(R[h])});let n=r.metaTokens,o=r.visitor||f,i=r.dots,s=r.indexes,p=(r.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(e);if(!a.isFunction(o))throw new TypeError("visitor must be a function");function d(m){if(m===null)return"";if(a.isDate(m))return m.toISOString();if(!p&&a.isBlob(m))throw new y("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(m)||a.isTypedArray(m)?p&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function f(m,h,R){let S=m;if(m&&!R&&typeof m=="object"){if(a.endsWith(h,"{}"))h=n?h:h.slice(0,-2),m=JSON.stringify(m);else if(a.isArray(m)&&An(m)||(a.isFileList(m)||a.endsWith(h,"[]"))&&(S=a.toArray(m)))return h=It(h),S.forEach(function(k,Hr){!(a.isUndefined(k)||k===null)&&e.append(s===!0?Tt([h],Hr,i):s===null?h:h+"[]",d(k))}),!1}return Fe(m)?!0:(e.append(Tt(R,h,i),d(m)),!1)}let l=[],g=Object.assign(Pn,{defaultVisitor:f,convertValue:d,isVisitable:Fe});function E(m,h){if(!a.isUndefined(m)){if(l.indexOf(m)!==-1)throw Error("Circular reference detected in "+h.join("."));l.push(m),a.forEach(m,function(S,L){(!(a.isUndefined(S)||S===null)&&o.call(e,S,a.isString(L)?L.trim():L,h,g))===!0&&E(S,h?h.concat(L):[L])}),l.pop()}}if(!a.isObject(t))throw new TypeError("data must be an object");return E(t),e}var Pn,v,Z=u(()=>{"use strict";w();D();Ue();Pn=a.toFlatObject(a,{},null,function(e){return/^is[A-Z]/.test(e)});v=On});function Dt(t){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Nt(t,e){this._pairs=[],t&&v(t,this,e)}var Ut,he,Le=u(()=>{"use strict";Z();Ut=Nt.prototype;Ut.append=function(e,r){this._pairs.push([e,r])};Ut.toString=function(e){let r=e?function(n){return e.call(this,n,Dt)}:Dt;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};he=Nt});function Cn(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Y(t,e,r){if(!e)return t;let n=r&&r.encode||Cn,o=r&&r.serialize,i;if(o?i=o(e,r):i=a.isURLSearchParams(e)?e.toString():new he(e,r).toString(n),i){let s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}var ke=u(()=>{"use strict";w();Le()});var ve,Be,Ft=u(()=>{"use strict";w();ve=class{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){a.forEach(this.handlers,function(n){n!==null&&e(n)})}},Be=ve});var ye,_e=u(()=>{"use strict";ye={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}});var Lt,kt=u(()=>{"use strict";Le();Lt=typeof URLSearchParams<"u"?URLSearchParams:he});var vt,Bt=u(()=>{"use strict";vt=typeof FormData<"u"?FormData:null});var _t,Ht=u(()=>{"use strict";_t=typeof Blob<"u"?Blob:null});var qt,jt=u(()=>{kt();Bt();Ht();qt={isBrowser:!0,classes:{URLSearchParams:Lt,FormData:vt,Blob:_t},protocols:["http","https","file","blob","url","data"]}});var He={};Mr(He,{hasBrowserEnv:()=>Mt,hasStandardBrowserEnv:()=>Tn,hasStandardBrowserWebWorkerEnv:()=>In});var Mt,Tn,In,Jt=u(()=>{Mt=typeof window<"u"&&typeof document<"u",Tn=(t=>Mt&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),In=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")()});var A,J=u(()=>{jt();Jt();A={...He,...qt}});function qe(t,e){return v(t,new A.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return A.isNode&&a.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}var zt=u(()=>{"use strict";w();Z();J()});function Dn(t){return a.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Nn(t){let e={},r=Object.keys(t),n,o=r.length,i;for(n=0;n=r.length;return s=!s&&a.isArray(o)?o.length:s,p?(a.hasOwnProp(o,s)?o[s]=[o[s],n]:o[s]=n,!c):((!o[s]||!a.isObject(o[s]))&&(o[s]=[]),e(r,n,o[s],i)&&a.isArray(o[s])&&(o[s]=Nn(o[s])),!c)}if(a.isFormData(t)&&a.isFunction(t.entries)){let r={};return a.forEachEntry(t,(n,o)=>{e(Dn(n),o,r,0)}),r}return null}var ge,je=u(()=>{"use strict";w();ge=Un});function Fn(t,e,r){if(a.isString(t))try{return(e||JSON.parse)(t),a.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}var Me,z,we=u(()=>{"use strict";w();D();_e();Z();zt();J();je();Me={transitional:ye,adapter:["xhr","http"],transformRequest:[function(e,r){let n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=a.isObject(e);if(i&&a.isHTMLForm(e)&&(e=new FormData(e)),a.isFormData(e))return o&&o?JSON.stringify(ge(e)):e;if(a.isArrayBuffer(e)||a.isBuffer(e)||a.isStream(e)||a.isFile(e)||a.isBlob(e))return e;if(a.isArrayBufferView(e))return e.buffer;if(a.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return qe(e,this.formSerializer).toString();if((c=a.isFileList(e))||n.indexOf("multipart/form-data")>-1){let p=this.env&&this.env.FormData;return v(c?{"files[]":e}:e,p&&new p,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),Fn(e)):e}],transformResponse:[function(e){let r=this.transitional||Me.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(e&&a.isString(e)&&(n&&!this.responseType||o)){let s=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(c){if(s)throw c.name==="SyntaxError"?y.from(c,y.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:A.classes.FormData,Blob:A.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],t=>{Me.headers[t]={}});z=Me});var Ln,Vt,Wt=u(()=>{"use strict";w();Ln=a.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"]),Vt=t=>{let e={},r,n,o;return t&&t.split(` `).forEach(function(s){o=s.indexOf(":"),r=s.substring(0,o).trim().toLowerCase(),n=s.substring(o+1).trim(),!(!r||e[r]&&Ln[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e}});function ee(t){return t&&String(t).trim().toLowerCase()}function be(t){return t===!1||t==null?t:a.isArray(t)?t.map(be):String(t)}function kn(t){let e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}function Je(t,e,r,n,o){if(a.isFunction(n))return n.call(this,e,r);if(o&&(e=r),!!a.isString(e)){if(a.isString(n))return e.indexOf(n)!==-1;if(a.isRegExp(n))return n.test(e)}}function Bn(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function _n(t,e){let r=a.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(o,i,s){return this[n].call(this,e,o,i,s)},configurable:!0})})}var $t,vn,V,P,q=u(()=>{"use strict";w();Wt();$t=Symbol("internals");vn=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());V=class{constructor(e){e&&this.set(e)}set(e,r,n){let o=this;function i(c,p,d){let f=ee(p);if(!f)throw new Error("header name must be a non-empty string");let l=a.findKey(o,f);(!l||o[l]===void 0||d===!0||d===void 0&&o[l]!==!1)&&(o[l||p]=be(c))}let s=(c,p)=>a.forEach(c,(d,f)=>i(d,f,p));return a.isPlainObject(e)||e instanceof this.constructor?s(e,r):a.isString(e)&&(e=e.trim())&&!vn(e)?s(Vt(e),r):e!=null&&i(r,e,n),this}get(e,r){if(e=ee(e),e){let n=a.findKey(this,e);if(n){let o=this[n];if(!r)return o;if(r===!0)return kn(o);if(a.isFunction(r))return r.call(this,o,n);if(a.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=ee(e),e){let n=a.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||Je(this,this[n],n,r)))}return!1}delete(e,r){let n=this,o=!1;function i(s){if(s=ee(s),s){let c=a.findKey(n,s);c&&(!r||Je(n,n[c],c,r))&&(delete n[c],o=!0)}}return a.isArray(e)?e.forEach(i):i(e),o}clear(e){let r=Object.keys(this),n=r.length,o=!1;for(;n--;){let i=r[n];(!e||Je(this,this[i],i,e,!0))&&(delete this[i],o=!0)}return o}normalize(e){let r=this,n={};return a.forEach(this,(o,i)=>{let s=a.findKey(n,i);if(s){r[s]=be(o),delete r[i];return}let c=e?Bn(i):String(i).trim();c!==i&&delete r[i],r[c]=be(o),n[c]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let r=Object.create(null);return a.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=e&&a.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){let n=new this(e);return r.forEach(o=>n.set(o)),n}static accessor(e){let n=(this[$t]=this[$t]={accessors:{}}).accessors,o=this.prototype;function i(s){let c=ee(s);n[c]||(_n(o,s),n[c]=!0)}return a.isArray(e)?e.forEach(i):i(e),this}};V.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(V.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});a.freezeMethods(V);P=V});function te(t,e){let r=this||z,n=e||r,o=P.from(n.headers),i=n.data;return a.forEach(t,function(c){i=c.call(r,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}var Kt=u(()=>{"use strict";w();we();q()});function re(t){return!!(t&&t.__CANCEL__)}var ze=u(()=>{"use strict"});function Gt(t,e,r){y.call(this,t??"canceled",y.ERR_CANCELED,e,r),this.name="CanceledError"}var B,ne=u(()=>{"use strict";D();w();a.inherits(Gt,y,{__CANCEL__:!0});B=Gt});function Ve(t,e,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new y("Request failed with status code "+r.status,[y.ERR_BAD_REQUEST,y.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}var Xt=u(()=>{"use strict";D()});var Qt,Zt=u(()=>{w();J();Qt=A.hasStandardBrowserEnv?{write(t,e,r,n,o,i){let s=[t+"="+encodeURIComponent(e)];a.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),a.isString(n)&&s.push("path="+n),a.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){let e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}}});function We(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}var Yt=u(()=>{"use strict"});function $e(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}var er=u(()=>{"use strict"});function oe(t,e){return t&&!We(e)?$e(t,e):e}var Ke=u(()=>{"use strict";Yt();er()});var tr,rr=u(()=>{"use strict";w();J();tr=A.hasStandardBrowserEnv?function(){let e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function o(i){let s=i;return e&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{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=o(window.location.href),function(s){let c=a.isString(s)?o(s):s;return c.protocol===n.protocol&&c.host===n.host}}():function(){return function(){return!0}}()});function Ge(t){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}var nr=u(()=>{"use strict"});function Hn(t,e){t=t||10;let r=new Array(t),n=new Array(t),o=0,i=0,s;return e=e!==void 0?e:1e3,function(p){let d=Date.now(),f=n[i];s||(s=d),r[o]=p,n[o]=d;let l=i,g=0;for(;l!==o;)g+=r[l++],l=l%t;if(o=(o+1)%t,o===i&&(i=(i+1)%t),d-s{"use strict";or=Hn});function sr(t,e){let r=0,n=or(50,250);return o=>{let i=o.loaded,s=o.lengthComputable?o.total:void 0,c=i-r,p=n(c),d=i<=s;r=i;let f={loaded:i,total:s,progress:s?i/s:void 0,bytes:c,rate:p||void 0,estimated:p&&s&&d?(s-i)/p:void 0,event:o};f[e?"download":"upload"]=!0,t(f)}}var qn,ar,cr=u(()=>{"use strict";w();Xt();Zt();ke();Ke();rr();_e();D();ne();nr();J();q();ir();qn=typeof XMLHttpRequest<"u",ar=qn&&function(t){return new Promise(function(r,n){let o=t.data,i=P.from(t.headers).normalize(),{responseType:s,withXSRFToken:c}=t,p;function d(){t.cancelToken&&t.cancelToken.unsubscribe(p),t.signal&&t.signal.removeEventListener("abort",p)}let f;if(a.isFormData(o)){if(A.hasStandardBrowserEnv||A.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((f=i.getContentType())!==!1){let[h,...R]=f?f.split(";").map(S=>S.trim()).filter(Boolean):[];i.setContentType([h||"multipart/form-data",...R].join("; "))}}let l=new XMLHttpRequest;if(t.auth){let h=t.auth.username||"",R=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+R))}let g=oe(t.baseURL,t.url);l.open(t.method.toUpperCase(),Y(g,t.params,t.paramsSerializer),!0),l.timeout=t.timeout;function E(){if(!l)return;let h=P.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),S={data:!s||s==="text"||s==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:h,config:t,request:l};Ve(function(k){r(k),d()},function(k){n(k),d()},S),l=null}if("onloadend"in l?l.onloadend=E:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(E)},l.onabort=function(){l&&(n(new y("Request aborted",y.ECONNABORTED,t,l)),l=null)},l.onerror=function(){n(new y("Network Error",y.ERR_NETWORK,t,l)),l=null},l.ontimeout=function(){let R=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",S=t.transitional||ye;t.timeoutErrorMessage&&(R=t.timeoutErrorMessage),n(new y(R,S.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,t,l)),l=null},A.hasStandardBrowserEnv&&(c&&a.isFunction(c)&&(c=c(t)),c||c!==!1&&tr(g))){let h=t.xsrfHeaderName&&t.xsrfCookieName&&Qt.read(t.xsrfCookieName);h&&i.set(t.xsrfHeaderName,h)}o===void 0&&i.setContentType(null),"setRequestHeader"in l&&a.forEach(i.toJSON(),function(R,S){l.setRequestHeader(S,R)}),a.isUndefined(t.withCredentials)||(l.withCredentials=!!t.withCredentials),s&&s!=="json"&&(l.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&l.addEventListener("progress",sr(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",sr(t.onUploadProgress)),(t.cancelToken||t.signal)&&(p=h=>{l&&(n(!h||h.type?new B(null,t,l):h),l.abort(),l=null)},t.cancelToken&&t.cancelToken.subscribe(p),t.signal&&(t.signal.aborted?p():t.signal.addEventListener("abort",p)));let m=Ge(g);if(m&&A.protocols.indexOf(m)===-1){n(new y("Unsupported protocol "+m+":",y.ERR_BAD_REQUEST,t));return}l.send(o||null)})}});var Xe,lr,jn,Ee,Qe=u(()=>{w();Ue();cr();D();Xe={http:me,xhr:ar};a.forEach(Xe,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});lr=t=>`- ${t}`,jn=t=>a.isFunction(t)||t===null||t===!1,Ee={getAdapter:t=>{t=a.isArray(t)?t:[t];let{length:e}=t,r,n,o={};for(let i=0;i`adapter ${c} `+(p===!1?"is not supported by the environment":"is not available in the build")),s=e?i.length>1?`since : `+i.map(lr).join(` `):" "+lr(i[0]):"as no adapter specified";throw new y("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:Xe}});function Ze(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new B(null,t)}function Re(t){return Ze(t),t.headers=P.from(t.headers),t.data=te.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Ee.getAdapter(t.adapter||z.adapter)(t).then(function(n){return Ze(t),n.data=te.call(t,t.transformResponse,n),n.headers=P.from(n.headers),n},function(n){return re(n)||(Ze(t),n&&n.response&&(n.response.data=te.call(t,t.transformResponse,n.response),n.response.headers=P.from(n.response.headers))),Promise.reject(n)})}var ur=u(()=>{"use strict";Kt();ze();we();ne();q();Qe()});function N(t,e){e=e||{};let r={};function n(d,f,l){return a.isPlainObject(d)&&a.isPlainObject(f)?a.merge.call({caseless:l},d,f):a.isPlainObject(f)?a.merge({},f):a.isArray(f)?f.slice():f}function o(d,f,l){if(a.isUndefined(f)){if(!a.isUndefined(d))return n(void 0,d,l)}else return n(d,f,l)}function i(d,f){if(!a.isUndefined(f))return n(void 0,f)}function s(d,f){if(a.isUndefined(f)){if(!a.isUndefined(d))return n(void 0,d)}else return n(void 0,f)}function c(d,f,l){if(l in e)return n(d,f);if(l in t)return n(void 0,d)}let p={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c,headers:(d,f)=>o(fr(d),fr(f),!0)};return a.forEach(Object.keys(Object.assign({},t,e)),function(f){let l=p[f]||o,g=l(t[f],e[f],f);a.isUndefined(g)&&l!==c||(r[f]=g)}),r}var fr,Ye=u(()=>{"use strict";w();q();fr=t=>t instanceof P?t.toJSON():t});var xe,et=u(()=>{xe="1.6.2"});function Mn(t,e,r){if(typeof t!="object")throw new y("options must be an object",y.ERR_BAD_OPTION_VALUE);let n=Object.keys(t),o=n.length;for(;o-- >0;){let i=n[o],s=e[i];if(s){let c=t[i],p=c===void 0||s(c,i,t);if(p!==!0)throw new y("option "+i+" must be "+p,y.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new y("Unknown option "+i,y.ERR_BAD_OPTION)}}var tt,dr,Se,pr=u(()=>{"use strict";et();D();tt={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{tt[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});dr={};tt.transitional=function(e,r,n){function o(i,s){return"[Axios v"+xe+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return(i,s,c)=>{if(e===!1)throw new y(o(s," has been removed"+(r?" in "+r:"")),y.ERR_DEPRECATED);return r&&!dr[s]&&(dr[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(i,s,c):!0}};Se={assertOptions:Mn,validators:tt}});var _,W,ie,mr=u(()=>{"use strict";w();ke();Ft();ur();Ye();Ke();pr();q();_=Se.validators,W=class{constructor(e){this.defaults=e,this.interceptors={request:new Be,response:new Be}}request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=N(this.defaults,r);let{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&Se.assertOptions(n,{silentJSONParsing:_.transitional(_.boolean),forcedJSONParsing:_.transitional(_.boolean),clarifyTimeoutError:_.transitional(_.boolean)},!1),o!=null&&(a.isFunction(o)?r.paramsSerializer={serialize:o}:Se.assertOptions(o,{encode:_.function,serialize:_.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=i&&a.merge(i.common,i[r.method]);i&&a.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),r.headers=P.concat(s,i);let c=[],p=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(r)===!1||(p=p&&h.synchronous,c.unshift(h.fulfilled,h.rejected))});let d=[];this.interceptors.response.forEach(function(h){d.push(h.fulfilled,h.rejected)});let f,l=0,g;if(!p){let m=[Re.bind(this),void 0];for(m.unshift.apply(m,c),m.push.apply(m,d),g=m.length,f=Promise.resolve(r);l{"use strict";ne();se=class{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});let n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i,s=new Promise(c=>{n.subscribe(c),i=c}).then(o);return s.cancel=function(){n.unsubscribe(i)},s},e(function(i,s,c){n.reason||(n.reason=new B(i,s,c),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}static source(){let e;return{token:new se(function(o){e=o}),cancel:e}}},hr=se});function rt(t){return function(r){return t.apply(null,r)}}var gr=u(()=>{"use strict"});function nt(t){return a.isObject(t)&&t.isAxiosError===!0}var wr=u(()=>{"use strict";w()});var ot,br,Er=u(()=>{ot={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(ot).forEach(([t,e])=>{ot[e]=t});br=ot});function Rr(t){let e=new ie(t),r=G(ie.prototype.request,e);return a.extend(r,ie.prototype,e,{allOwnKeys:!0}),a.extend(r,e,null,{allOwnKeys:!0}),r.create=function(o){return Rr(N(t,o))},r}var b,$,xr=u(()=>{"use strict";w();Te();mr();Ye();we();je();ne();yr();ze();et();Z();D();gr();wr();q();Qe();Er();b=Rr(z);b.Axios=ie;b.CanceledError=B;b.CancelToken=hr;b.isCancel=re;b.VERSION=xe;b.toFormData=v;b.AxiosError=y;b.Cancel=b.CanceledError;b.all=function(e){return Promise.all(e)};b.spread=rt;b.isAxiosError=nt;b.mergeConfig=N;b.AxiosHeaders=P;b.formToJSON=t=>ge(a.isHTMLForm(t)?new FormData(t):t);b.getAdapter=Ee.getAdapter;b.HttpStatusCode=br;b.default=b;$=b});var Ts,Is,Ds,Ns,Us,Fs,Ls,ks,vs,Bs,_s,Hs,qs,js,Ms,Js,Sr=u(()=>{xr();({Axios:Ts,AxiosError:Is,CanceledError:Ds,isCancel:Ns,CancelToken:Us,VERSION:Fs,all:Ls,Cancel:ks,isAxiosError:vs,spread:Bs,toFormData:_s,AxiosHeaders:Hs,HttpStatusCode:qs,formToJSON:js,getAdapter:Ms,mergeConfig:Js}=$)});var it,C,st=u(()=>{it=class{constructor(e=!1){this.debugMode=e}setDebugMode(e){this.debugMode=e}log(e,...r){this.debugMode&&console.log(`[LOG] ${e}`,...r)}debug(e,...r){this.debugMode&&console.log(`[DEBUG] ${e}`,...r)}info(e,...r){this.debugMode&&console.info(`[INFO] ${e}`,...r)}warn(e,...r){this.debugMode&&console.warn(`[WARN] ${e}`,...r)}error(e,...r){this.debugMode&&console.error(`[ERROR] ${e}`,...r)}},C=new it(!1)});function Ar(t){Ae={...Ae,...t},C.setDebugMode(Ae?.debug===!0)}function ae(){return Ae}var Ae,at=u(()=>{st();Ae={api:{},collector:{},dataCapture:{autoCapture:!1,sessionReplay:{enabled:!1}},debug:!1}});var H,ce,ct=u(()=>{H=class{constructor(){this.errors=[]}static getInstance(){return H.instance||(H.instance=new H),H.instance}addError(e,r){this.errors.push({message:e,error:r})}getErrors(){return this.errors}},ce=H.getInstance()});function lt(){if(!Pe&&(Pe=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Pe))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Pe(Jn)}var Pe,Jn,Pr=u(()=>{Jn=new Uint8Array(16)});function Or(t,e=0){return(x[t[e+0]]+x[t[e+1]]+x[t[e+2]]+x[t[e+3]]+"-"+x[t[e+4]]+x[t[e+5]]+"-"+x[t[e+6]]+x[t[e+7]]+"-"+x[t[e+8]]+x[t[e+9]]+"-"+x[t[e+10]]+x[t[e+11]]+x[t[e+12]]+x[t[e+13]]+x[t[e+14]]+x[t[e+15]]).toLowerCase()}var x,Cr=u(()=>{x=[];for(let t=0;t<256;++t)x.push((t+256).toString(16).slice(1))});var zn,ut,Tr=u(()=>{zn=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ut={randomUUID:zn}});function Vn(t,e,r){if(ut.randomUUID&&!e&&!t)return ut.randomUUID();t=t||{};let n=t.random||(t.rng||lt)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){r=r||0;for(let o=0;o<16;++o)e[r+o]=n[o];return e}return Or(n)}var K,Ir=u(()=>{Tr();Pr();Cr();K=Vn});var Dr=u(()=>{Ir()});var ft,Wn,dt,Nr=u(()=>{Dr();ct();ft=class{constructor(e=30){this.requestId=K();this.ttlInMinutes=e}clearSession(){localStorage.removeItem("session")}initializeSession(){try{let e=localStorage.getItem("session");if(e){let{sessionId:o,requestId:i,timestamp:s,identity:c}=JSON.parse(e),p=new Date().getTime();if(p-s{$n="0.2.62/62f54534",Oe=$n});var U,Ur=u(()=>{Sr();at();ct();Nr();pt();$.defaults.withCredentials=!0;U=class{static async formatRequest(e,r){return JSON.stringify({type:e,data:r})}static secureEnv(){return Boolean(window.crypto?.subtle)}static async post(e,r,n){try{let o=ae()?.api?.baseUrl;if(!o)throw console.error("Internal honeypot error: missing base url"),new Error("Missing base URL");let i=`${o}${e}`,s={identity:dt.getIdentity(),identities:dt.getIdentities()},c={...n,...s,library_version:Oe},p=await U.formatRequest(r,c);return(await $.post(i,p,{headers:{"Content-Type":"application/json;charset=UTF-8"}})).data}catch(o){throw ce.addError("Failed to communicate with the backend server"),U.postError(o),o}}static async postError(e){try{let n=ae()?.api?.routes?.errors;if(!n)return;let o=await U.formatRequest("error",{message:e}),i=await $.post(n,o,{headers:{"Content-Type":"application/json;charset=UTF-8"}})}catch{console.error("error HP10002")}}}});var Ce,mt=u(()=>{Ce=(t,e,r)=>{let n=0,o=i=>{try{let s=new URLSearchParams(window.location.search).has("hpdebug");(r?.debug===!0||s)&&console.log(`[hp] ${i}`)}catch{}};return{name:"honeypot-enrichment",type:"before",setup:async i=>{let s=await e();o(`initialized plugin. honey=${JSON.stringify(s)}`)},execute:async i=>{try{let{user_id:s,event_type:c}=i,d=c.startsWith("[Amplitude] ")?c.replace("[Amplitude] ",""):c;n=n+1;let f=!1;if(r?.excludeEvents?.includes(d)||r?.includeEvents?.length&&!r?.includeEvents.includes(d)){if(r?.enrichEventProperties){let E={ignored:!0};i.event_properties={...i.event_properties,honey:E}}return o(`ignoring event: ${c}`),i}f||(o(`tracking event: ${c}`),await t(c,i.event_properties));let g=await e();return g?.geofenced&&g?.redirect_auto?(o(`dropping event: ${c}`),null):(r?.enrichEventProperties&&(i.event_properties={...i.event_properties,honey:g},o(`enriching event: ${c}. ${JSON.stringify(i.event_properties)}`)),i)}catch{return i}}}}});var ht,Kn,Fr=u(()=>{mt();ht=class{constructor(){this.config=null;this.honey=null;this.id=[];this.q=[];this.didInit=!1;this.didLoad=!1;this.callbacks={};this.geofenced=!1}setup(e){this.config=e}amplitudePlugin(e){return Ce(this.track.bind(this),this.get.bind(this),e)}geofence(){window.honeypot?.geofence&&window.honeypot.geofence(),this.geofenced=!0}ensureHoneypot(){window.honeypot||(window.honeypot={q:[],id:[]})}async identify(e,r,n){if(this.ensureHoneypot(),window.honeypot?.identify)window.honeypot.identify(e,r,n);else{let o={id:e,...r?{properties:r}:{},...n?{type:n}:{}};Array.isArray(window.honeypot.id)||(window.honeypot.id=[]),window.honeypot.id.push(o)}}on(e,r){this.ensureHoneypot(),window.honeypot.on?window.honeypot.on(e,r):(window.honeypot.callbacks[e]??=[]).push(r)}async flow(e,r){return this.ensureHoneypot(),new Promise((n,o)=>{let i=Date.now(),s=()=>{window&&window.honeypot&&this.didInit?n(window.honeypot.flow(e,r)):Date.now()-i>=5e3?o(new Error("Flow could not be created. Did you call the load() method first?")):setTimeout(s,100)};s()})}async track(e,r={}){this.ensureHoneypot();try{if(window.honeypot?.track)window.honeypot.track(e,r);else{let n=this.q||[];n.push([e,r]),this.q=n}}catch(n){this.config?.debug&&console.error("Error tracking event:",n)}}async init(){}maybeTime(e,r){if(this.config?.debug){if(r){console.timeEnd(e);return}console.time(e)}}load(e,r,n){return this.didLoad=!0,new Promise(o=>{let i=document.createElement("script");i.async=!0;let s=new URL(e),c=null,p=null;try{c=window.location.href}catch{}try{p=document.title}catch{}s.searchParams.append("url",c||"URL not available"),s.searchParams.append("title",p||"Title not available");try{if(window.honeypot&&Array.isArray(window.honeypot.q)){let l=window.honeypot.q.map(g=>g[0]);s.searchParams.append("events",JSON.stringify(l))}}catch(l){this.config?.debug&&console.error("Error appending event names to the script URL:",l)}try{let l=["hpdebug","hpgeotest"],g=new URLSearchParams(window.location.search);l.forEach(E=>{g.has(E)&&s.searchParams.append(E,g.get(E)||"")})}catch{}r&&(s.searchParams.append("identity",r),n&&s.searchParams.append("type",n));let d=new URLSearchParams(window.location.search).get("georef");d&&s.searchParams.append("georef",d),this.maybeTime("load honeypot"),i.src=s.toString(),document.head.appendChild(i);let f=this.config;i.onload=()=>{this.didInit=!0,this.maybeTime("load honeypot",!0);try{window.honeypot&&(window.honeypot.config=f)}catch{}o(window.honeypot)}})}async get(){if(!this.didLoad&&this.config?.url)try{if(await this.load(this.config.url),window.honeypot)return window.honeypot.get()}catch{throw new Error("Failed to load")}else if(this.didLoad&&!this.didInit)return new Promise((e,r)=>{let n=Date.now(),o=()=>{window.honeypot&&window.honeypot.get?e(window.honeypot.get()):Date.now()-n>=2e3?r(new Error("Timeout: Honeypot SDK did not initialize in time.")):setTimeout(o,50)};o()});return new Promise((e,r)=>{(()=>{if(window.honeypot&&window.honeypot.honey)e(window.honeypot.honey);else{if(window.honeypot?.get)return window.honeypot.get();r(new Error("Honey not found"))}})()})}},Kn=new ht});var le,Lr=u(()=>{mt();le=class{amplitudePlugin(e){return Ce(this.track.bind(this),this.get.bind(this),e)}}});var kr=u(()=>{Fr();Lr()});var T,vr=u(()=>{T=class{static sleep(e){return new Promise(r=>setTimeout(r,e))}static isConstantLike(e){return typeof e=="string"&&!e.match(/[^A-Z0-9_x]/)}static getConstantsFromPrototype(e){return Object.keys(e.__proto__).filter(T.isConstantLike)}static recur(e,r=new WeakSet,n=!1){if(r.has(e))return{};try{r.add(e)}catch{}var o=n?[]:{};for(var i in e)try{let s;if(i==="enabledPlugin"||typeof e[i]=="function")continue;Array.isArray(e[i])?typeof e[i][0]=="object"?(s=T.recur(e[i],r,!0),o[i]=s.length?s:e[i]):o[i]=e[i]:typeof e[i]=="object"?(s=T.recur(e[i],r),Object.keys(s).length&&(o[i]=s)):n?o.push(e[i]):o[i]=e[i]}catch{}return o}static isValidUrlOrPath(e){try{if(!e)return!1;if(e.startsWith("/"))return!0;if(e.startsWith("http://")||e.startsWith("https://"))return new URL(e),!0}catch{return!1}return!1}static onRedirectPage(e){if(!T.isValidUrlOrPath(e))return!1;var r=e===window.location.pathname;if(!r)try{r=new URL(e,window.location.origin).href===window.location.href}catch{}return r}}});var yt,Gn,F,Br=u(()=>{Ur();at();st();kr();vr();pt();new URLSearchParams(window.location.search).has("hpdebug")&&console.log(`hp${Oe}`);yt=class extends le{constructor(){super(...arguments);this.config=null;this.honey=null;this.id=null;this.q=[];this.didInit=!1;this.callbacks={};this.geofenceResults=null;this.intervalId=null}setup(r){this.config=r}_setup(r){Ar(r),C.setDebugMode(r?.debug===!0);try{this.didInit=!0;let n=window.navigator,o=this.maybeRescreen.bind(this);"connection"in n&&(n.connection||n?.mozConnection||n?.webkitConnection).addEventListener("change",()=>{C.debug("Connection changed"),o()})}catch(n){C.error("Could not setup Honeypot"),C.error(n)}}async track(r,n={}){let o=ae()?.api?.routes?.ping;if(!o)return Promise.reject("Internal honeypot error: no endpoint is configured");try{let s={event:{time:String(Date.now()),type:r,properties:n}};C.info("Payload"),C.info(JSON.stringify(s));let c=await U.post(o,"beacon",s);return this.honey=c?.honey,this.geofenceResults=c?.geofenceResults||null,this.processGeofenceResults(),this.get()}catch(i){return Promise.reject(i)}}async get(){return this.honey?Promise.resolve(this.honey):Promise.reject("Honey not found")}processGeofenceResults(){if(!this.geofenceResults)return;let r=this.geofenceResults;r.redirectUrl&&r.autoRedirect&&this.geofence(),r?.rescreenEnabled&&r?.rescreenFrequencySeconds&&r.rescreenFrequencySeconds>=1?this.startRescreening(r.rescreenFrequencySeconds):this.stopRescreening()}async maybeRescreen(){return this.geofenceResults?.rescreenEnabled?await this.track("__rescreen"):Promise.resolve("skipped")}startRescreening(r){let n=this.maybeRescreen.bind(this);this.intervalId||(this.intervalId=setInterval(async()=>{let o=await n();C.info("Schedule results"),C.info(JSON.stringify(o))},r*1e3))}stopRescreening(){try{this.intervalId!==null&&(clearInterval(this.intervalId),this.intervalId=null)}catch{}}geofence(){try{let r=this.geofenceResults?.redirectUrl;r&&T.isValidUrlOrPath(r)&&!T.onRedirectPage(r)&&window.location.pathname!="/geo-unavailable"&&(window.location.href=r+"?georef="+this.geofenceResults?.ref)}catch{}}},Gn=new yt,F=Gn});var Xn=jr((Fa,_r)=>{Br();window&&(window.honeypot&&(F.id=window.honeypot.id||null,F.config=window.honeypot.config||{},F.q=window.honeypot.q||[],F.fq=window.honeypot.fq||[],F.callbacks=window.honeypot.callbacks||{},F.geofenced=window.honeypot.geofenced||!1),window.honeypot=F);_r.exports={honeypot:F}});Xn();})(); honeypot._setup({"api":{"baseUrl":"https://os-ujcrq.quill.run","routes":{"ping":"/58sj3ae84cd6"}}}) honeypot.honey = {"redirect_auto":"","redirect_url":"","created":"2024-11-06T01:50:31.709Z","vre":false} honeypot.geofenceResults = {"autoRedirect":false,"redirectUrl":null,"ref":null,"rescreenFrequencySeconds":-1} honeypot.processGeofenceResults()