analytica.click 0.0.142 → 0.0.143

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +7 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,13 +1,13 @@
1
- var gs=Object.create;var He=Object.defineProperty,ys=Object.defineProperties,bs=Object.getOwnPropertyDescriptor,ws=Object.getOwnPropertyDescriptors,Os=Object.getOwnPropertyNames,Rr=Object.getOwnPropertySymbols,Cs=Object.getPrototypeOf,Tr=Object.prototype.hasOwnProperty,_s=Object.prototype.propertyIsEnumerable;var xr=(e,t,r)=>t in e?He(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_=(e,t)=>{for(var r in t||(t={}))Tr.call(t,r)&&xr(e,r,t[r]);if(Rr)for(var r of Rr(t))_s.call(t,r)&&xr(e,r,t[r]);return e},D=(e,t)=>ys(e,ws(t)),Sr=e=>He(e,"__esModule",{value:!0});var f=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Es=(e,t)=>{for(var r in t)He(e,r,{get:t[r],enumerable:!0})},Pr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Os(t))!Tr.call(e,o)&&(r||o!=="default")&&He(e,o,{get:()=>t[o],enumerable:!(n=bs(t,o))||n.enumerable});return e},M=(e,t)=>Pr(Sr(He(e!=null?gs(Cs(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),qs=(e=>(t,r)=>e&&e.get(t)||(r=Pr(Sr({}),t,1),e&&e.set(t,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var z=(e,t,r)=>new Promise((n,o)=>{var s=c=>{try{u(r.next(c))}catch(d){o(d)}},i=c=>{try{u(r.throw(c))}catch(d){o(d)}},u=c=>c.done?n(c.value):Promise.resolve(c.value).then(s,i);u((r=r.apply(e,t)).next())});var Ft=f($=>{"use strict";Object.defineProperty($,"__esModule",{value:!0});$.notEmpty=$.partition=$.chunk=$.take=$.flat=$.toObject=void 0;var As=(e,t)=>{let r={};return!e||!t||e.forEach(n=>{let o=t(n);r[o]=n}),r};$.toObject=As;var Rs=e=>[].concat(...e);$.flat=Rs;var Ts=(e,t)=>{let r=JSON.parse(JSON.stringify(e));return{part:r.slice(0,t),rest:r.slice(t)}};$.take=Ts;var xs=(e,t)=>{let r=[],n=[];for(let o in e){let s=e[o];n.push(s),n.length>=t&&(r.push(n),n=[])}return n.length>0&&r.push(n),r};$.chunk=xs;var Ss=(e,t)=>(e==null?void 0:e.length)?[e.filter(r=>t(r)),e.filter(r=>!t(r))]:null;$.partition=Ss;function Ps(e){return e!=null&&e!==!1}$.notEmpty=Ps});var kr=f(ae=>{"use strict";var jr=ae&&ae.__awaiter||function(e,t,r,n){function o(s){return s instanceof r?s:new r(function(i){i(s)})}return new(r||(r=Promise))(function(s,i){function u(a){try{d(n.next(a))}catch(l){i(l)}}function c(a){try{d(n.throw(a))}catch(l){i(l)}}function d(a){a.done?s(a.value):o(a.value).then(u,c)}d((n=n.apply(e,t||[])).next())})};Object.defineProperty(ae,"__esModule",{value:!0});ae.asyncMap=ae.asyncForEach=void 0;function js(e,t){return jr(this,void 0,void 0,function*(){for(let r=0;r<e.length;r+=1)yield t(e[r],r,e)})}ae.asyncForEach=js;function ks(e,t){return jr(this,void 0,void 0,function*(){let r=[];for(let n=0;n<e.length;n+=1)r.push(yield t(e[n],n,e));return r})}ae.asyncMap=ks});var Fr=f(E=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});E.dateTimeToNearestMinute=E.CSharpToJs=E.dateDiffDays=E.lastDayInMonth=E.addMinutes=E.addDays=E.addHours=E.getTimeSeconds=void 0;var Fs=()=>Math.ceil(new Date().getTime()/1e3);E.getTimeSeconds=Fs;var Ds=(e,t)=>new Date(e+t*60*60*1e3);E.addHours=Ds;var Ms=(e,t)=>{let r=new Date(e);return r.setDate(r.getDate()+t),r};E.addDays=Ms;var Bs=(e,t)=>new Date(e.getTime()+t*6e4);E.addMinutes=Bs;var Ns=e=>new Date(e.getFullYear(),e.getMonth()+1,0);E.lastDayInMonth=Ns;var Ls=(e,t)=>{let r=new Date(e),n=new Date(t);return Math.floor((Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())-Date.UTC(r.getFullYear(),r.getMonth(),r.getDate()))/1e3)};E.dateDiffDays=Ls;var Is=e=>{let t=e/1e4,r=Math.abs(new Date(0,0,1).setFullYear(1));return new Date(t-r)};E.CSharpToJs=Is;var Us=(e,t)=>{let r=1e3*60*e;return t||(t=new Date),new Date(Math.round(t.getTime()/r)*r)};E.dateTimeToNearestMinute=Us});var Dr=f(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.distinct=qe.distinctBy=void 0;function Vs(e,t,r){if(!e||e.length===0)return e;let n=new Set;return e.filter(o=>{let s;return typeof t=="string"?s=o[t]:s=t(o),!s&&r||n.has(s)?!1:(n.add(s),!0)})}qe.distinctBy=Vs;var $s=e=>[...new Set(e)];qe.distinct=$s});var Mr=f(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.getEmailsErrors=re.getEmailErrors=re.isEmailValid=void 0;var Hs=Ft(),zs=/^[-!#$%&'*+/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/,Js=e=>{if(!e||e.length>256||!zs.test(e))return!1;let r=e.split("@");return!(r[0].length>64||r[1].split(".").some(o=>o.length>64))};re.isEmailValid=Js;var Ks=(e,t)=>{if(!(0,re.isEmailValid)(e))return`email not valid:${e}`;if(t.creatorId===e)return"You cannot add the creator of this event as an admin"};re.getEmailErrors=Ks;var Gs=(e,t)=>e.map(r=>(0,re.getEmailErrors)(r,t)).filter(Hs.notEmpty);re.getEmailsErrors=Gs});var Br=f(Ae=>{"use strict";var Ws=Ae&&Ae.__awaiter||function(e,t,r,n){function o(s){return s instanceof r?s:new r(function(i){i(s)})}return new(r||(r=Promise))(function(s,i){function u(a){try{d(n.next(a))}catch(l){i(l)}}function c(a){try{d(n.throw(a))}catch(l){i(l)}}function d(a){a.done?s(a.value):o(a.value).then(u,c)}d((n=n.apply(e,t||[])).next())})};Object.defineProperty(Ae,"__esModule",{value:!0});Ae.runGenerator=void 0;function Xs(e,t){return Ws(this,void 0,void 0,function*(){let r;do{if(r=yield e.next(),!(r==null?void 0:r.value)||r.value.length===0)return;yield t(r.value)}while(!r.done)})}Ae.runGenerator=Xs});var Nr=f(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.groupByTwice=ue.groupByList=ue.groupBy=void 0;function Ys(e,t){let r={};return e.forEach(n=>{let o=t(n);r[o]||(r[o]=[]),r[o].push(n)}),r}ue.groupBy=Ys;function Qs(e,t){let r=[];return e.forEach(n=>{let o=t(n),s=r.find(i=>i.key===o);s?s.items.push(n):r.push({key:o,items:[n]})}),r}ue.groupByList=Qs;function Zs(e,t,r){let n={};return e.forEach(o=>{let s=t(o),i=r(o);n[s]||(n[s]={}),n[s][i]=o}),n}ue.groupByTwice=Zs});var Lr=f(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.generateNewPK=ye.hashCode=void 0;var ei=(e,t=0)=>{if(!e)return"";let r=3735928559^t,n=1103547991^t;for(let s=0,i;s<e.length;s+=1)i=e.charCodeAt(s),r=Math.imul(r^i,2654435761),n=Math.imul(n^i,1597334677);return r=Math.imul(r^r>>>16,2246822507)^Math.imul(n^n>>>13,3266489909),n=Math.imul(n^n>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),(4294967296*(2097151&n)+(r>>>0)).toString()};ye.hashCode=ei;var ti=()=>(0,ye.hashCode)(new Date().getTime().toString());ye.generateNewPK=ti});var Ir=f(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.t=oe.getValidatedLang=oe.AllLang=void 0;oe.AllLang=["en","id","vi"];var ri=e=>{let t=oe.AllLang.find(r=>r===e);return t||"en"};oe.getValidatedLang=ri;var ni=(e,t)=>{var r;return(r=e[t])!==null&&r!==void 0?r:e.en};oe.t=ni});var Ur=f(B=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});B.toFixedDown=B.isNumber=B.getRandomInt=B.sumArray=B.clamp=B.roundToHalf=B.toFixed=void 0;var oi=(e,t)=>{var r,n;let o=new RegExp(`^-?\\d+(?:.\\d{0,${t||-1}})?`),s=(n=(r=e==null?void 0:e.toString())===null||r===void 0?void 0:r.match(o))===null||n===void 0?void 0:n[0];return s?Number.parseFloat(s):e};B.toFixed=oi;function si(e){let t=e-parseInt(e.toString(),10);return t=Math.round(t*10),t===5?parseInt(e.toString(),10)+.5:t<3||t>7?Math.round(e):parseInt(e.toString(),10)+.5}B.roundToHalf=si;function ii({value:e,min:t,max:r}){return e<t?t:e>r?r:e}B.clamp=ii;function ai(e){return e.reduce((t,r)=>t+r)}B.sumArray=ai;var ui=e=>Math.floor(Math.random()*Math.floor(e));B.getRandomInt=ui;function ci(e){let t=new RegExp("(\\d+\\.?\\d*)(\\d)");return!!e.toString().match(t)}B.isNumber=ci;function li(e,t){if(!`${e}`.includes("e"))return+`${Math.round(`${e}e+${t}`)}e-${t}`;let r=`${e}`.split("e"),n="";return+r[1]+t>0&&(n="+"),+`${Math.round(`${+r[0]}e${n}${+r[1]+t}`)}e-${t}`}B.toFixedDown=li});var Vr=f(P=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0});P.objectAlphaSort=P.objectToArray=P.getObjectKeysAsNumber=P.objectKeysToLowerCase=P.isJson=P.tryJsonParse=void 0;var di=(e,t)=>{if(!e)return null;try{return JSON.parse(e)}catch{return t}};P.tryJsonParse=di;function fi(e){try{JSON.parse(typeof e=="string"?e:JSON.stringify(e))}catch{return!1}return!0}P.isJson=fi;var pi=e=>!e||Object.keys(e).length===0?{}:Object.keys(e).reduce((t,r)=>{let n=e[r],o=typeof n=="object"?(0,P.objectKeysToLowerCase)(n):n;return t[r.toLowerCase()]=o,t},{});P.objectKeysToLowerCase=pi;var hi=e=>Object.keys(e).map(t=>parseInt(t,10));P.getObjectKeysAsNumber=hi;function mi(e){if(!e)return[];let t=[];return Object.keys(e).forEach(r=>{t.push({key:r,value:e[r]})}),t}P.objectToArray=mi;var vi=(e,t=-1)=>t===0?e:e!==null&&typeof e=="object"?Object.keys(e).sort((r,n)=>r.toLowerCase()<n.toLowerCase()?-1:1).reduce((r,n)=>(r[n]=(0,P.objectAlphaSort)(e[n],t-1),r),{}):Array.isArray(e)?e.map(r=>(0,P.objectAlphaSort)(r,t-1)):e;P.objectAlphaSort=vi});var $r=f(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.shuffle=void 0;function gi(e,t){let r=e.length,n,o;t=t||1;let s=function(){let i=Math.sin(t+=1)*1e4;return i-Math.floor(i)};for(;r!==0;)o=Math.floor(s()*r),r-=1,n=e[r],e[r]=e[o],e[o]=n;return e}ot.shuffle=gi});var Hr=f(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.secondsInNearest=void 0;var st=(e,t)=>{var r,n;let o=new RegExp(`^-?\\d+(?:.\\d{0,${t||-1}})?`),s=(n=(r=e==null?void 0:e.toString())===null||r===void 0?void 0:r.match(o))===null||n===void 0?void 0:n[0];return s?Number.parseFloat(s):e},yi=({seconds:e,precision:t=2})=>{if(e<=0)return"Now";if(e<90){let i=st(e,t);return`${i} ${i===1?"second":"seconds"}`}let r=e/60;if(r<120){let i=st(r,t);return`${i} ${i===1?"minute":"minutes"}`}let n=r/60;if(n<24){let i=st(n,t);return`${i} ${i===1?"hour":"hours"}`}let o=n/24,s=st(o,t);return`${s} ${s===1?"day":"days"}`};it.secondsInNearest=yi});var Dt=f(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.sleep=void 0;var bi=e=>new Promise(t=>setTimeout(t,e));at.sleep=bi});var Jr=f(N=>{"use strict";Object.defineProperty(N,"__esModule",{value:!0});N.replaceRemove=N.toTitleCase=N.niceUrl=N.truncate=N.trim=N.trimSide=N.csvJSON=void 0;var wi=e=>{let t=e.split(`
1
+ var gs=Object.create;var He=Object.defineProperty,ys=Object.defineProperties,bs=Object.getOwnPropertyDescriptor,ws=Object.getOwnPropertyDescriptors,Os=Object.getOwnPropertyNames,Rr=Object.getOwnPropertySymbols,Cs=Object.getPrototypeOf,Tr=Object.prototype.hasOwnProperty,_s=Object.prototype.propertyIsEnumerable;var xr=(e,t,r)=>t in e?He(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_=(e,t)=>{for(var r in t||(t={}))Tr.call(t,r)&&xr(e,r,t[r]);if(Rr)for(var r of Rr(t))_s.call(t,r)&&xr(e,r,t[r]);return e},D=(e,t)=>ys(e,ws(t)),Sr=e=>He(e,"__esModule",{value:!0});var f=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Es=(e,t)=>{for(var r in t)He(e,r,{get:t[r],enumerable:!0})},Pr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Os(t))!Tr.call(e,o)&&(r||o!=="default")&&He(e,o,{get:()=>t[o],enumerable:!(n=bs(t,o))||n.enumerable});return e},M=(e,t)=>Pr(Sr(He(e!=null?gs(Cs(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),qs=(e=>(t,r)=>e&&e.get(t)||(r=Pr(Sr({}),t,1),e&&e.set(t,r),r))(typeof WeakMap!="undefined"?new WeakMap:0);var z=(e,t,r)=>new Promise((n,o)=>{var s=c=>{try{u(r.next(c))}catch(d){o(d)}},i=c=>{try{u(r.throw(c))}catch(d){o(d)}},u=c=>c.done?n(c.value):Promise.resolve(c.value).then(s,i);u((r=r.apply(e,t)).next())});var Ft=f($=>{"use strict";Object.defineProperty($,"__esModule",{value:!0});$.notEmpty=$.partition=$.chunk=$.take=$.flat=$.toObject=void 0;var As=(e,t)=>{let r={};return!e||!t||e.forEach(n=>{let o=t(n);r[o]=n}),r};$.toObject=As;var Rs=e=>[].concat(...e);$.flat=Rs;var Ts=(e,t)=>{let r=JSON.parse(JSON.stringify(e));return{part:r.slice(0,t),rest:r.slice(t)}};$.take=Ts;var xs=(e,t)=>{let r=[],n=[];for(let o in e){let s=e[o];n.push(s),n.length>=t&&(r.push(n),n=[])}return n.length>0&&r.push(n),r};$.chunk=xs;var Ss=(e,t)=>(e==null?void 0:e.length)?[e.filter(r=>t(r)),e.filter(r=>!t(r))]:null;$.partition=Ss;function Ps(e){return e!=null&&e!==!1}$.notEmpty=Ps});var kr=f(ae=>{"use strict";var jr=ae&&ae.__awaiter||function(e,t,r,n){function o(s){return s instanceof r?s:new r(function(i){i(s)})}return new(r||(r=Promise))(function(s,i){function u(a){try{d(n.next(a))}catch(l){i(l)}}function c(a){try{d(n.throw(a))}catch(l){i(l)}}function d(a){a.done?s(a.value):o(a.value).then(u,c)}d((n=n.apply(e,t||[])).next())})};Object.defineProperty(ae,"__esModule",{value:!0});ae.asyncMap=ae.asyncForEach=void 0;function js(e,t){return jr(this,void 0,void 0,function*(){for(let r=0;r<e.length;r+=1)yield t(e[r],r,e)})}ae.asyncForEach=js;function ks(e,t){return jr(this,void 0,void 0,function*(){let r=[];for(let n=0;n<e.length;n+=1)r.push(yield t(e[n],n,e));return r})}ae.asyncMap=ks});var Fr=f(E=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});E.dateTimeToNearestMinute=E.CSharpToJs=E.dateDiffDays=E.lastDayInMonth=E.addMinutes=E.addDays=E.addHours=E.getTimeSeconds=void 0;var Fs=()=>Math.ceil(new Date().getTime()/1e3);E.getTimeSeconds=Fs;var Ds=(e,t)=>new Date(e+t*60*60*1e3);E.addHours=Ds;var Ms=(e,t)=>{let r=new Date(e);return r.setDate(r.getDate()+t),r};E.addDays=Ms;var Bs=(e,t)=>new Date(e.getTime()+t*6e4);E.addMinutes=Bs;var Ns=e=>new Date(e.getFullYear(),e.getMonth()+1,0);E.lastDayInMonth=Ns;var Ls=(e,t)=>{let r=new Date(e),n=new Date(t);return Math.floor((Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())-Date.UTC(r.getFullYear(),r.getMonth(),r.getDate()))/1e3)};E.dateDiffDays=Ls;var Is=e=>{let t=e/1e4,r=Math.abs(new Date(0,0,1).setFullYear(1));return new Date(t-r)};E.CSharpToJs=Is;var Us=(e,t)=>{let r=1e3*60*e;return t||(t=new Date),new Date(Math.round(t.getTime()/r)*r)};E.dateTimeToNearestMinute=Us});var Dr=f(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.distinct=qe.distinctBy=void 0;function Vs(e,t,r){if(!e||e.length===0)return e;let n=new Set;return e.filter(o=>{let s;return typeof t=="string"?s=o[t]:s=t(o),!s&&r||n.has(s)?!1:(n.add(s),!0)})}qe.distinctBy=Vs;var $s=e=>[...new Set(e)];qe.distinct=$s});var Mr=f(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.getEmailsErrors=re.getEmailErrors=re.isEmailValid=void 0;var Hs=Ft(),zs=/^[-!#$%&'*+/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/,Js=e=>{if(!e||e.length>256||!zs.test(e))return!1;let r=e.split("@");return!(r[0].length>64||r[1].split(".").some(o=>o.length>64))};re.isEmailValid=Js;var Ks=(e,t)=>{if(!(0,re.isEmailValid)(e))return`email not valid:${e}`;if(t.creatorId===e)return"You cannot add the creator of this event as an admin"};re.getEmailErrors=Ks;var Gs=(e,t)=>e.map(r=>(0,re.getEmailErrors)(r,t)).filter(Hs.notEmpty);re.getEmailsErrors=Gs});var Br=f(Ae=>{"use strict";var Ws=Ae&&Ae.__awaiter||function(e,t,r,n){function o(s){return s instanceof r?s:new r(function(i){i(s)})}return new(r||(r=Promise))(function(s,i){function u(a){try{d(n.next(a))}catch(l){i(l)}}function c(a){try{d(n.throw(a))}catch(l){i(l)}}function d(a){a.done?s(a.value):o(a.value).then(u,c)}d((n=n.apply(e,t||[])).next())})};Object.defineProperty(Ae,"__esModule",{value:!0});Ae.runGenerator=void 0;function Xs(e,t){return Ws(this,void 0,void 0,function*(){let r;do{if(r=yield e.next(),!(r==null?void 0:r.value)||r.value.length===0)return;yield t(r.value)}while(!r.done)})}Ae.runGenerator=Xs});var Nr=f(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.groupByTwice=ue.groupByList=ue.groupBy=void 0;function Ys(e,t){let r={};return e.forEach(n=>{let o=t(n);r[o]||(r[o]=[]),r[o].push(n)}),r}ue.groupBy=Ys;function Qs(e,t){let r=[];return e.forEach(n=>{let o=t(n),s=r.find(i=>i.key===o);s?s.items.push(n):r.push({key:o,items:[n]})}),r}ue.groupByList=Qs;function Zs(e,t,r){let n={};return e.forEach(o=>{let s=t(o),i=r(o);n[s]||(n[s]={}),n[s][i]=o}),n}ue.groupByTwice=Zs});var Lr=f(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.generateNewPK=ye.hashCode=void 0;var ei=(e,t=0)=>{if(!e)return"";let r=3735928559^t,n=1103547991^t;for(let s=0,i;s<e.length;s+=1)i=e.charCodeAt(s),r=Math.imul(r^i,2654435761),n=Math.imul(n^i,1597334677);return r=Math.imul(r^r>>>16,2246822507)^Math.imul(n^n>>>13,3266489909),n=Math.imul(n^n>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),(4294967296*(2097151&n)+(r>>>0)).toString()};ye.hashCode=ei;var ti=()=>(0,ye.hashCode)(new Date().getTime().toString());ye.generateNewPK=ti});var Ir=f(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.t=oe.getValidatedLang=oe.AllLang=void 0;oe.AllLang=["en","id","vi"];var ri=e=>{let t=oe.AllLang.find(r=>r===e);return t||"en"};oe.getValidatedLang=ri;var ni=(e,t)=>{var r;return(r=e[t])!==null&&r!==void 0?r:e.en};oe.t=ni});var Ur=f(B=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});B.toFixedDown=B.isNumber=B.getRandomInt=B.sumArray=B.clamp=B.roundToHalf=B.toFixed=void 0;var oi=(e,t)=>{var r,n;let o=new RegExp(`^-?\\d+(?:.\\d{0,${t||-1}})?`),s=(n=(r=e==null?void 0:e.toString())===null||r===void 0?void 0:r.match(o))===null||n===void 0?void 0:n[0];return s?Number.parseFloat(s):e};B.toFixed=oi;function si(e){let t=e-parseInt(e.toString(),10);return t=Math.round(t*10),t===5?parseInt(e.toString(),10)+.5:t<3||t>7?Math.round(e):parseInt(e.toString(),10)+.5}B.roundToHalf=si;function ii({value:e,min:t,max:r}){return e<t?t:e>r?r:e}B.clamp=ii;function ai(e){return e.reduce((t,r)=>t+r)}B.sumArray=ai;var ui=e=>Math.floor(Math.random()*Math.floor(e));B.getRandomInt=ui;function ci(e){let t=new RegExp("(\\d+\\.?\\d*)(\\d)");return!!e.toString().match(t)}B.isNumber=ci;function li(e,t){if(!`${e}`.includes("e"))return+`${Math.round(`${e}e+${t}`)}e-${t}`;let r=`${e}`.split("e"),n="";return+r[1]+t>0&&(n="+"),+`${Math.round(`${+r[0]}e${n}${+r[1]+t}`)}e-${t}`}B.toFixedDown=li});var Vr=f(P=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0});P.objectAlphaSort=P.objectToArray=P.getObjectKeysAsNumber=P.objectKeysToLowerCase=P.isJson=P.tryJsonParse=void 0;var di=(e,t)=>{if(!e)return null;try{return JSON.parse(e)}catch{return t}};P.tryJsonParse=di;function fi(e){try{JSON.parse(typeof e=="string"?e:JSON.stringify(e))}catch{return!1}return!0}P.isJson=fi;var pi=e=>!e||Object.keys(e).length===0?{}:Object.keys(e).reduce((t,r)=>{let n=e[r],o=typeof n=="object"?(0,P.objectKeysToLowerCase)(n):n;return t[r.toLowerCase()]=o,t},{});P.objectKeysToLowerCase=pi;var hi=e=>Object.keys(e).map(t=>parseInt(t,10));P.getObjectKeysAsNumber=hi;function mi(e){if(!e)return[];let t=[];return Object.keys(e).forEach(r=>{t.push({key:r,value:e[r]})}),t}P.objectToArray=mi;var vi=(e,t=-1)=>t===0?e:e!==null&&typeof e=="object"?Object.keys(e).sort((r,n)=>r.toLowerCase()<n.toLowerCase()?-1:1).reduce((r,n)=>(r[n]=(0,P.objectAlphaSort)(e[n],t-1),r),{}):Array.isArray(e)?e.map(r=>(0,P.objectAlphaSort)(r,t-1)):e;P.objectAlphaSort=vi});var $r=f(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.shuffle=void 0;function gi(e,t){let r=e.length,n,o;t=t||1;let s=function(){let i=Math.sin(t+=1)*1e4;return i-Math.floor(i)};for(;r!==0;)o=Math.floor(s()*r),r-=1,n=e[r],e[r]=e[o],e[o]=n;return e}nt.shuffle=gi});var Hr=f(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.secondsInNearest=void 0;var ot=(e,t)=>{var r,n;let o=new RegExp(`^-?\\d+(?:.\\d{0,${t||-1}})?`),s=(n=(r=e==null?void 0:e.toString())===null||r===void 0?void 0:r.match(o))===null||n===void 0?void 0:n[0];return s?Number.parseFloat(s):e},yi=({seconds:e,precision:t=2})=>{if(e<=0)return"Now";if(e<90){let i=ot(e,t);return`${i} ${i===1?"second":"seconds"}`}let r=e/60;if(r<120){let i=ot(r,t);return`${i} ${i===1?"minute":"minutes"}`}let n=r/60;if(n<24){let i=ot(n,t);return`${i} ${i===1?"hour":"hours"}`}let o=n/24,s=ot(o,t);return`${s} ${s===1?"day":"days"}`};st.secondsInNearest=yi});var Dt=f(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.sleep=void 0;var bi=e=>new Promise(t=>setTimeout(t,e));it.sleep=bi});var Jr=f(N=>{"use strict";Object.defineProperty(N,"__esModule",{value:!0});N.replaceRemove=N.toTitleCase=N.niceUrl=N.truncate=N.trim=N.trimSide=N.csvJSON=void 0;var wi=e=>{let t=e.split(`
2
2
  `),r=[],n=t[0].split(",");for(let o=1;o<t.length;o+=1){let s={},i=t[o].split(",");for(let u=0;u<n.length;u+=1)s[n[u]]=i[u];r.push(s)}return r};N.csvJSON=wi;function Mt(e,t=!0,...r){let n=r.join("");if(!e)return e;let o=e.replace(new RegExp(`[${n}]*$`,"g"),"");return t?o.replace(new RegExp(`^[${n}]*`,"g"),""):o}N.trimSide=Mt;function zr(e,...t){return e=Mt(e,!0,...t),e=Mt(e,!1,...t),e}N.trim=zr;function Oi(e,t,r){if(!!e)return e.length>t?e.substr(0,t-1)+r:e}N.truncate=Oi;var Ci=e=>{if(!e)return;let t=e.substring(e.indexOf(":")+1).replace("sc-domain:","").replace("https://","").replace("http://","");return t=zr(t,"/"),{siteUrl:e,niceSiteUrl:t}};N.niceUrl=Ci;function _i(e){return e&&e.replace(/\w\S*/g,t=>t&&t.charAt(0).toUpperCase()+t.substring(1).toLowerCase())}N.toTitleCase=_i;function Ei(e,...t){let r=[],n=[];t.forEach(d=>{if(typeof d!="string")throw new Error("trim only supports strings");d.length===1?r.push(d):n.push(d)});let o=0,s=0,i=e,u=`[${r.join("")}]*`,c=`(${n.map(d=>`(${d})`).join("|")})*`;do o=i.length,i=i.replace(new RegExp(c,"gim"),""),i=i.replace(new RegExp(u,"gim"),""),s=i.length;while(s<o);return i}N.replaceRemove=Ei});var Kr=f(y=>{"use strict";var qi=y&&y.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),L=y&&y.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&qi(t,e,r)};Object.defineProperty(y,"__esModule",{value:!0});L(Ft(),y);L(kr(),y);L(Fr(),y);L(Dr(),y);L(Mr(),y);L(Br(),y);L(Nr(),y);L(Lr(),y);L(Ir(),y);L(be(),y);L(Ur(),y);L(Vr(),y);L($r(),y);L(Hr(),y);L(Dt(),y);L(Jr(),y)});var be=f(b=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});b.fatal=b.error=b.trace=b.warn=b.info=b.debug=b.SetLogLevel=b.GetLogLevel=void 0;var Ai=Kr(),Ri=e=>["TRACE","DEBUG","INFO","WARN","ERROR","FATAL"].findIndex(t=>t===e);b.GetLogLevel=Ri;var Gr="WARN",Ti=e=>{let t=e==null?void 0:e.toUpperCase();(0,b.GetLogLevel)(t)!==-1&&(Gr=t)};b.SetLogLevel=Ti;(0,b.SetLogLevel)(process.env.LOG_LEVEL||"");function xi(){let e=new Date;return`${e.getHours()}:${e.getMinutes()}:${e.getSeconds()}`}function Re(e,t){let r=(0,b.GetLogLevel)(Gr);if((0,b.GetLogLevel)(e)<r)return;let o=[`[${xi()}]`,e,...t.filter(Ai.notEmpty)];switch(e){case"TRACE":{console.trace(...o);break}case"DEBUG":{console.debug(...o);break}case"INFO":{console.log(...o);break}case"WARN":{console.warn(...o);break}case"ERROR":{console.error(...o);break}case"FATAL":{console.error(...o);break}default:{console.log(...o);break}}}function Bt(...e){let t=[],r=!1;try{throw new Error("Test")}catch(n){let o=n;if(o.stack){let s=o.stack.split(`
3
3
  `);for(let i=0,u=s.length;i<u;i+=1)t.push(` ${s[i]} `);t.shift(),r=!0}else if(window.opera&&o.message){let s=o.message.split(`
4
4
  `);for(let i=0,u=s.length;i<u;i+=1)if(s[i].match(/^\s*[A-Za-z0-9\-_$]+\(/)){let c=s[i];s[i+1]&&(c+=` at ${s[i+1]}`,i+=1),t.push(c)}t.shift(),r=!0}}if(!r){let n=e.callee.caller;for(;n;){let o=n.toString(),s=o.substring(o.indexOf("function")+8,o.indexOf("("))||"anonymous";t.push(s),n=n.caller}}return t.join(`
5
- `)}var Si=(...e)=>Re("DEBUG",e);b.debug=Si;var Pi=(...e)=>Re("INFO",e);b.info=Pi;var ji=(...e)=>Re("WARN",e);b.warn=ji;var ki=(...e)=>{e.push(Bt()),Re("TRACE",e)};b.trace=ki;var Fi=(...e)=>{e.push(Bt()),Re("ERROR",e)};b.error=Fi;var Di=(...e)=>{e.push(Bt()),Re("FATAL",e)};b.fatal=Di});var Zr=f(I=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});I.useCookie=I.getCookieWrapper=I.wipeCookies=I.setCookieWrapper=I.fromBase64=I.toBase64=void 0;var Mi=require("react"),Bi="Thu, 01 Jan 1970 00:00:00 UTC",Wr=4e3,Ni=(e,t)=>e.match(new RegExp(`.{1,${t}}`,"g")),Li=e=>Buffer.from(e).toString("base64");I.toBase64=Li;var Ii=e=>Buffer.from(decodeURIComponent(e),"base64").toString();I.fromBase64=Ii;function ut(e,t,r=1){let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${!t||r<0?Bi:n.toUTCString()}`;document.cookie=`${e}=${t||""};${o};path=/`}function Nt({cname:e,cookieDocument:t}){let r=`${e}=`,n=t||typeof window!="undefined"&&document.cookie;if(!n||!(n==null?void 0:n.trim()))return;let o=n.split(";").map(s=>s.trim());for(let s of o)if(s.indexOf(r)===0)return s.substr(r.length,s.length)}function Xr(e,t,r=1){let n=0;for(;Nt({cname:e+n});)ut(e+n,null,-1),n+=1;if(!t)return;let o=(0,I.toBase64)(JSON.stringify(t)),s=[o];o.length>Wr&&(s=Ni(o,Wr));for(let i in s){let u=s[i];ut(e+i,u,r)}}I.setCookieWrapper=Xr;function Yr(e){let t=0;for(;;)if(Nt({cname:e+t}))ut(e+t,void 0),t+=1;else return}I.wipeCookies=Yr;function Qr({cname:e,cookieDocument:t,defaultValue:r}){let n="",o=0;for(;;){let s=Nt({cname:e+o,cookieDocument:t});if(!s){if(o===0)return r?(ut(e,r),r):void 0;try{return JSON.parse((0,I.fromBase64)(n))}catch{Yr(e);return}}n+=s,o+=1}}I.getCookieWrapper=Qr;function Ui({key:e,defaultValue:t,cookieDocument:r}){let[n,o]=(0,Mi.useState)(Qr({cname:e,defaultValue:t,cookieDocument:r}));return[n,s=>{Xr(e,s,2),o(s)}]}I.useCookie=Ui});var en=f(Te=>{"use strict";var Lt=Te&&Te.__awaiter||function(e,t,r,n){function o(s){return s instanceof r?s:new r(function(i){i(s)})}return new(r||(r=Promise))(function(s,i){function u(a){try{d(n.next(a))}catch(l){i(l)}}function c(a){try{d(n.throw(a))}catch(l){i(l)}}function d(a){a.done?s(a.value):o(a.value).then(u,c)}d((n=n.apply(e,t||[])).next())})};Object.defineProperty(Te,"__esModule",{value:!0});Te.callOpenApi=void 0;var Vi=Zr(),$i=Dt(),Hi=({func:e,apiUrl:t,overrideAuth:r,refreshToken:n,logout:o,newDefaultApi:s})=>Lt(void 0,void 0,void 0,function*(){var i,u,c,d,a,l;let p,F,Z={basePath:t,baseOptions:{headers:{authorization:""}}},x=!!(0,Vi.getCookieWrapper)({cname:"id_token"});if(r==null?void 0:r.id_token)Z.baseOptions.headers.authorization=`Bearer ${r==null?void 0:r.id_token}`;else if(x){let O=yield n();((i=O==null?void 0:O.jwt)===null||i===void 0?void 0:i.id_token)&&(Z.baseOptions.headers.authorization=`Bearer ${(u=O==null?void 0:O.jwt)===null||u===void 0?void 0:u.id_token}`)}let m=s(Z),g=0,C=3;for(;g<=C;){g+=1;try{let O=yield e(m);if(O.status<400){F=O.data;break}throw new Error(JSON.stringify(O.data)||O.statusText)}catch(O){let S=O,me=(c=S.response)===null||c===void 0?void 0:c.status,ve=((d=S.response)===null||d===void 0?void 0:d.data)||((a=S.response)===null||a===void 0?void 0:a.statusText)||((l=S.response)===null||l===void 0?void 0:l.status)||"ERROR";if(me===403||me===401)return o(),{error:S,data:void 0,datetime:new Date().getTime(),loading:!1,reFetch:()=>Lt(void 0,void 0,void 0,function*(){}),url:e.toString()};if(me!==500||g===C){p=Object.assign(Object.assign({},S),{message:ve});break}}yield(0,$i.sleep)(2e3)}return{data:F,error:p,loading:!1,reFetch:()=>Lt(void 0,void 0,void 0,function*(){return e(m)}),url:e.toString(),datetime:new Date().getTime()}});Te.callOpenApi=Hi});var It=f((Qc,tn)=>{"use strict";tn.exports=function(t,r){return function(){for(var o=new Array(arguments.length),s=0;s<o.length;s++)o[s]=arguments[s];return t.apply(r,o)}}});var V=f((Zc,on)=>{"use strict";var zi=It(),we=Object.prototype.toString;function Ut(e){return we.call(e)==="[object Array]"}function Vt(e){return typeof e=="undefined"}function Ji(e){return e!==null&&!Vt(e)&&e.constructor!==null&&!Vt(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Ki(e){return we.call(e)==="[object ArrayBuffer]"}function Gi(e){return typeof FormData!="undefined"&&e instanceof FormData}function Wi(e){var t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function Xi(e){return typeof e=="string"}function Yi(e){return typeof e=="number"}function rn(e){return e!==null&&typeof e=="object"}function ct(e){if(we.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Qi(e){return we.call(e)==="[object Date]"}function Zi(e){return we.call(e)==="[object File]"}function ea(e){return we.call(e)==="[object Blob]"}function nn(e){return we.call(e)==="[object Function]"}function ta(e){return rn(e)&&nn(e.pipe)}function ra(e){return typeof URLSearchParams!="undefined"&&e instanceof URLSearchParams}function na(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function oa(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function $t(e,t){if(!(e===null||typeof e=="undefined"))if(typeof e!="object"&&(e=[e]),Ut(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}function Ht(){var e={};function t(o,s){ct(e[s])&&ct(o)?e[s]=Ht(e[s],o):ct(o)?e[s]=Ht({},o):Ut(o)?e[s]=o.slice():e[s]=o}for(var r=0,n=arguments.length;r<n;r++)$t(arguments[r],t);return e}function sa(e,t,r){return $t(t,function(o,s){r&&typeof o=="function"?e[s]=zi(o,r):e[s]=o}),e}function ia(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}on.exports={isArray:Ut,isArrayBuffer:Ki,isBuffer:Ji,isFormData:Gi,isArrayBufferView:Wi,isString:Xi,isNumber:Yi,isObject:rn,isPlainObject:ct,isUndefined:Vt,isDate:Qi,isFile:Zi,isBlob:ea,isFunction:nn,isStream:ta,isURLSearchParams:ra,isStandardBrowserEnv:oa,forEach:$t,merge:Ht,extend:sa,trim:na,stripBOM:ia}});var lt=f((el,an)=>{"use strict";var xe=V();function sn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}an.exports=function(t,r,n){if(!r)return t;var o;if(n)o=n(r);else if(xe.isURLSearchParams(r))o=r.toString();else{var s=[];xe.forEach(r,function(c,d){c===null||typeof c=="undefined"||(xe.isArray(c)?d=d+"[]":c=[c],xe.forEach(c,function(l){xe.isDate(l)?l=l.toISOString():xe.isObject(l)&&(l=JSON.stringify(l)),s.push(sn(d)+"="+sn(l))}))}),o=s.join("&")}if(o){var i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}});var cn=f((tl,un)=>{"use strict";var aa=V();function dt(){this.handlers=[]}dt.prototype.use=function(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};dt.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};dt.prototype.forEach=function(t){aa.forEach(this.handlers,function(n){n!==null&&t(n)})};un.exports=dt});var dn=f((rl,ln)=>{"use strict";var ua=V();ln.exports=function(t,r){ua.forEach(t,function(o,s){s!==r&&s.toUpperCase()===r.toUpperCase()&&(t[r]=o,delete t[s])})}});var ft=f((nl,fn)=>{"use strict";fn.exports=function(t,r,n,o,s){return t.config=r,n&&(t.code=n),t.request=o,t.response=s,t.isAxiosError=!0,t.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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t}});var pt=f((ol,pn)=>{"use strict";var ca=ft();pn.exports=function(t,r,n,o,s){var i=new Error(t);return ca(i,r,n,o,s)}});var zt=f((sl,hn)=>{"use strict";var la=pt();hn.exports=function(t,r,n){var o=n.config.validateStatus;!n.status||!o||o(n.status)?t(n):r(la("Request failed with status code "+n.status,n.config,null,n.request,n))}});var vn=f((il,mn)=>{"use strict";var ht=V();mn.exports=ht.isStandardBrowserEnv()?function(){return{write:function(r,n,o,s,i,u){var c=[];c.push(r+"="+encodeURIComponent(n)),ht.isNumber(o)&&c.push("expires="+new Date(o).toGMTString()),ht.isString(s)&&c.push("path="+s),ht.isString(i)&&c.push("domain="+i),u===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(r){var n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()});var yn=f((al,gn)=>{"use strict";gn.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}});var wn=f((ul,bn)=>{"use strict";bn.exports=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}});var Jt=f((cl,On)=>{"use strict";var da=yn(),fa=wn();On.exports=function(t,r){return t&&!da(r)?fa(t,r):r}});var _n=f((ll,Cn)=>{"use strict";var Kt=V(),pa=["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"];Cn.exports=function(t){var r={},n,o,s;return t&&Kt.forEach(t.split(`
6
- `),function(u){if(s=u.indexOf(":"),n=Kt.trim(u.substr(0,s)).toLowerCase(),o=Kt.trim(u.substr(s+1)),n){if(r[n]&&pa.indexOf(n)>=0)return;n==="set-cookie"?r[n]=(r[n]?r[n]:[]).concat([o]):r[n]=r[n]?r[n]+", "+o:o}}),r}});var An=f((dl,qn)=>{"use strict";var En=V();qn.exports=En.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function o(s){var i=s;return t&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{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(i){var u=En.isString(i)?o(i):i;return u.protocol===n.protocol&&u.host===n.host}}():function(){return function(){return!0}}()});var Se=f((fl,Rn)=>{"use strict";function Gt(e){this.message=e}Gt.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};Gt.prototype.__CANCEL__=!0;Rn.exports=Gt});var xn=f((pl,Tn)=>{"use strict";var mt=V(),ha=zt(),ma=vn(),va=lt(),ga=Jt(),ya=_n(),ba=An(),Wt=pt(),wa=Pe(),Oa=Se();Tn.exports=function(t){return new Promise(function(n,o){var s=t.data,i=t.headers,u=t.responseType,c;function d(){t.cancelToken&&t.cancelToken.unsubscribe(c),t.signal&&t.signal.removeEventListener("abort",c)}mt.isFormData(s)&&delete i["Content-Type"];var a=new XMLHttpRequest;if(t.auth){var l=t.auth.username||"",p=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.Authorization="Basic "+btoa(l+":"+p)}var F=ga(t.baseURL,t.url);a.open(t.method.toUpperCase(),va(F,t.params,t.paramsSerializer),!0),a.timeout=t.timeout;function Z(){if(!!a){var m="getAllResponseHeaders"in a?ya(a.getAllResponseHeaders()):null,g=!u||u==="text"||u==="json"?a.responseText:a.response,C={data:g,status:a.status,statusText:a.statusText,headers:m,config:t,request:a};ha(function(S){n(S),d()},function(S){o(S),d()},C),a=null}}if("onloadend"in a?a.onloadend=Z:a.onreadystatechange=function(){!a||a.readyState!==4||a.status===0&&!(a.responseURL&&a.responseURL.indexOf("file:")===0)||setTimeout(Z)},a.onabort=function(){!a||(o(Wt("Request aborted",t,"ECONNABORTED",a)),a=null)},a.onerror=function(){o(Wt("Network Error",t,null,a)),a=null},a.ontimeout=function(){var g=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",C=t.transitional||wa.transitional;t.timeoutErrorMessage&&(g=t.timeoutErrorMessage),o(Wt(g,t,C.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",a)),a=null},mt.isStandardBrowserEnv()){var x=(t.withCredentials||ba(F))&&t.xsrfCookieName?ma.read(t.xsrfCookieName):void 0;x&&(i[t.xsrfHeaderName]=x)}"setRequestHeader"in a&&mt.forEach(i,function(g,C){typeof s=="undefined"&&C.toLowerCase()==="content-type"?delete i[C]:a.setRequestHeader(C,g)}),mt.isUndefined(t.withCredentials)||(a.withCredentials=!!t.withCredentials),u&&u!=="json"&&(a.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&a.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&a.upload&&a.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(c=function(m){!a||(o(!m||m&&m.type?new Oa("canceled"):m),a.abort(),a=null)},t.cancelToken&&t.cancelToken.subscribe(c),t.signal&&(t.signal.aborted?c():t.signal.addEventListener("abort",c))),s||(s=null),a.send(s)})}});var Pn=f((hl,Sn)=>{var je=1e3,ke=je*60,Fe=ke*60,Oe=Fe*24,Ca=Oe*7,_a=Oe*365.25;Sn.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Ea(e);if(r==="number"&&isFinite(e))return t.long?Aa(e):qa(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Ea(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!!t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*_a;case"weeks":case"week":case"w":return r*Ca;case"days":case"day":case"d":return r*Oe;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Fe;case"minutes":case"minute":case"mins":case"min":case"m":return r*ke;case"seconds":case"second":case"secs":case"sec":case"s":return r*je;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function qa(e){var t=Math.abs(e);return t>=Oe?Math.round(e/Oe)+"d":t>=Fe?Math.round(e/Fe)+"h":t>=ke?Math.round(e/ke)+"m":t>=je?Math.round(e/je)+"s":e+"ms"}function Aa(e){var t=Math.abs(e);return t>=Oe?vt(e,t,Oe,"day"):t>=Fe?vt(e,t,Fe,"hour"):t>=ke?vt(e,t,ke,"minute"):t>=je?vt(e,t,je,"second"):e+" ms"}function vt(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+" "+n+(o?"s":"")}});var Xt=f((ml,jn)=>{function Ra(e){r.debug=r,r.default=r,r.coerce=c,r.disable=s,r.enable=o,r.enabled=i,r.humanize=Pn(),r.destroy=d,Object.keys(e).forEach(a=>{r[a]=e[a]}),r.names=[],r.skips=[],r.formatters={};function t(a){let l=0;for(let p=0;p<a.length;p++)l=(l<<5)-l+a.charCodeAt(p),l|=0;return r.colors[Math.abs(l)%r.colors.length]}r.selectColor=t;function r(a){let l,p=null,F,Z;function x(...m){if(!x.enabled)return;let g=x,C=Number(new Date),O=C-(l||C);g.diff=O,g.prev=l,g.curr=C,l=C,m[0]=r.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let S=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(ve,X)=>{if(ve==="%%")return"%";S++;let ee=r.formatters[X];if(typeof ee=="function"){let et=m[S];ve=ee.call(g,et),m.splice(S,1),S--}return ve}),r.formatArgs.call(g,m),(g.log||r.log).apply(g,m)}return x.namespace=a,x.useColors=r.useColors(),x.color=r.selectColor(a),x.extend=n,x.destroy=r.destroy,Object.defineProperty(x,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(F!==r.namespaces&&(F=r.namespaces,Z=r.enabled(a)),Z),set:m=>{p=m}}),typeof r.init=="function"&&r.init(x),x}function n(a,l){let p=r(this.namespace+(typeof l=="undefined"?":":l)+a);return p.log=this.log,p}function o(a){r.save(a),r.namespaces=a,r.names=[],r.skips=[];let l,p=(typeof a=="string"?a:"").split(/[\s,]+/),F=p.length;for(l=0;l<F;l++)!p[l]||(a=p[l].replace(/\*/g,".*?"),a[0]==="-"?r.skips.push(new RegExp("^"+a.substr(1)+"$")):r.names.push(new RegExp("^"+a+"$")))}function s(){let a=[...r.names.map(u),...r.skips.map(u).map(l=>"-"+l)].join(",");return r.enable(""),a}function i(a){if(a[a.length-1]==="*")return!0;let l,p;for(l=0,p=r.skips.length;l<p;l++)if(r.skips[l].test(a))return!1;for(l=0,p=r.names.length;l<p;l++)if(r.names[l].test(a))return!0;return!1}function u(a){return a.toString().substring(2,a.toString().length-2).replace(/\.\*\?$/,"*")}function c(a){return a instanceof Error?a.stack||a.message:a}function d(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}jn.exports=Ra});var kn=f((J,gt)=>{J.formatArgs=xa;J.save=Sa;J.load=Pa;J.useColors=Ta;J.storage=ja();J.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();J.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Ta(){return typeof window!="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function xa(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+gt.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(r++,o==="%c"&&(n=r))}),e.splice(n,0,t)}J.log=console.debug||console.log||(()=>{});function Sa(e){try{e?J.storage.setItem("debug",e):J.storage.removeItem("debug")}catch{}}function Pa(){let e;try{e=J.storage.getItem("debug")}catch{}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}function ja(){try{return localStorage}catch{}}gt.exports=Xt()(J);var{formatters:ka}=gt.exports;ka.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var Dn=f((vl,Fn)=>{"use strict";Fn.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),o=t.indexOf("--");return n!==-1&&(o===-1||n<o)}});var Nn=f((gl,Bn)=>{"use strict";var Fa=require("os"),Mn=require("tty"),Y=Dn(),{env:q}=process,ce;Y("no-color")||Y("no-colors")||Y("color=false")||Y("color=never")?ce=0:(Y("color")||Y("colors")||Y("color=true")||Y("color=always"))&&(ce=1);"FORCE_COLOR"in q&&(q.FORCE_COLOR==="true"?ce=1:q.FORCE_COLOR==="false"?ce=0:ce=q.FORCE_COLOR.length===0?1:Math.min(parseInt(q.FORCE_COLOR,10),3));function Yt(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Qt(e,t){if(ce===0)return 0;if(Y("color=16m")||Y("color=full")||Y("color=truecolor"))return 3;if(Y("color=256"))return 2;if(e&&!t&&ce===void 0)return 0;let r=ce||0;if(q.TERM==="dumb")return r;if(process.platform==="win32"){let n=Fa.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in q)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in q)||q.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in q)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(q.TEAMCITY_VERSION)?1:0;if(q.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in q){let n=parseInt((q.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(q.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(q.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(q.TERM)||"COLORTERM"in q?1:r}function Da(e){let t=Qt(e,e&&e.isTTY);return Yt(t)}Bn.exports={supportsColor:Da,stdout:Yt(Qt(!0,Mn.isatty(1))),stderr:Yt(Qt(!0,Mn.isatty(2)))}});var In=f((j,bt)=>{var Ma=require("tty"),yt=require("util");j.init=$a;j.log=Ia;j.formatArgs=Na;j.save=Ua;j.load=Va;j.useColors=Ba;j.destroy=yt.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");j.colors=[6,2,3,4,5,1];try{let e=Nn();e&&(e.stderr||e).level>=2&&(j.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}j.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(o,s)=>s.toUpperCase()),n=process.env[t];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),e[r]=n,e},{});function Ba(){return"colors"in j.inspectOpts?Boolean(j.inspectOpts.colors):Ma.isatty(process.stderr.fd)}function Na(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,o="[3"+(n<8?n:"8;5;"+n),s=` ${o};1m${t} `;e[0]=s+e[0].split(`
5
+ `)}var Si=(...e)=>Re("DEBUG",e);b.debug=Si;var Pi=(...e)=>Re("INFO",e);b.info=Pi;var ji=(...e)=>Re("WARN",e);b.warn=ji;var ki=(...e)=>{e.push(Bt()),Re("TRACE",e)};b.trace=ki;var Fi=(...e)=>{e.push(Bt()),Re("ERROR",e)};b.error=Fi;var Di=(...e)=>{e.push(Bt()),Re("FATAL",e)};b.fatal=Di});var Zr=f(I=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});I.useCookie=I.getCookieWrapper=I.wipeCookies=I.setCookieWrapper=I.fromBase64=I.toBase64=void 0;var Mi=require("react"),Bi="Thu, 01 Jan 1970 00:00:00 UTC",Wr=4e3,Ni=(e,t)=>e.match(new RegExp(`.{1,${t}}`,"g")),Li=e=>Buffer.from(e).toString("base64");I.toBase64=Li;var Ii=e=>Buffer.from(decodeURIComponent(e),"base64").toString();I.fromBase64=Ii;function at(e,t,r=1){let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${!t||r<0?Bi:n.toUTCString()}`;document.cookie=`${e}=${t||""};${o};path=/`}function Nt({cname:e,cookieDocument:t}){let r=`${e}=`,n=t||typeof window!="undefined"&&document.cookie;if(!n||!(n==null?void 0:n.trim()))return;let o=n.split(";").map(s=>s.trim());for(let s of o)if(s.indexOf(r)===0)return s.substr(r.length,s.length)}function Xr(e,t,r=1){let n=0;for(;Nt({cname:e+n});)at(e+n,null,-1),n+=1;if(!t)return;let o=(0,I.toBase64)(JSON.stringify(t)),s=[o];o.length>Wr&&(s=Ni(o,Wr));for(let i in s){let u=s[i];at(e+i,u,r)}}I.setCookieWrapper=Xr;function Yr(e){let t=0;for(;;)if(Nt({cname:e+t}))at(e+t,void 0),t+=1;else return}I.wipeCookies=Yr;function Qr({cname:e,cookieDocument:t,defaultValue:r}){let n="",o=0;for(;;){let s=Nt({cname:e+o,cookieDocument:t});if(!s){if(o===0)return r?(at(e,r),r):void 0;try{return JSON.parse((0,I.fromBase64)(n))}catch{Yr(e);return}}n+=s,o+=1}}I.getCookieWrapper=Qr;function Ui({key:e,defaultValue:t,cookieDocument:r}){let[n,o]=(0,Mi.useState)(Qr({cname:e,defaultValue:t,cookieDocument:r}));return[n,s=>{Xr(e,s,2),o(s)}]}I.useCookie=Ui});var en=f(Te=>{"use strict";var Lt=Te&&Te.__awaiter||function(e,t,r,n){function o(s){return s instanceof r?s:new r(function(i){i(s)})}return new(r||(r=Promise))(function(s,i){function u(a){try{d(n.next(a))}catch(l){i(l)}}function c(a){try{d(n.throw(a))}catch(l){i(l)}}function d(a){a.done?s(a.value):o(a.value).then(u,c)}d((n=n.apply(e,t||[])).next())})};Object.defineProperty(Te,"__esModule",{value:!0});Te.callOpenApi=void 0;var Vi=Zr(),$i=Dt(),Hi=({func:e,apiUrl:t,overrideAuth:r,refreshToken:n,logout:o,newDefaultApi:s})=>Lt(void 0,void 0,void 0,function*(){var i,u,c,d,a,l;let p,F,Z={basePath:t,baseOptions:{headers:{authorization:""}}},x=!!(0,Vi.getCookieWrapper)({cname:"id_token"});if(r==null?void 0:r.id_token)Z.baseOptions.headers.authorization=`Bearer ${r==null?void 0:r.id_token}`;else if(x){let O=yield n();((i=O==null?void 0:O.jwt)===null||i===void 0?void 0:i.id_token)&&(Z.baseOptions.headers.authorization=`Bearer ${(u=O==null?void 0:O.jwt)===null||u===void 0?void 0:u.id_token}`)}let m=s(Z),g=0,C=3;for(;g<=C;){g+=1;try{let O=yield e(m);if(O.status<400){F=O.data;break}throw new Error(JSON.stringify(O.data)||O.statusText)}catch(O){let S=O,me=(c=S.response)===null||c===void 0?void 0:c.status,ve=((d=S.response)===null||d===void 0?void 0:d.data)||((a=S.response)===null||a===void 0?void 0:a.statusText)||((l=S.response)===null||l===void 0?void 0:l.status)||"ERROR";if(me===403||me===401)return o(),{error:S,data:void 0,datetime:new Date().getTime(),loading:!1,reFetch:()=>Lt(void 0,void 0,void 0,function*(){}),url:e.toString()};if(me!==500||g===C){p=Object.assign(Object.assign({},S),{message:ve});break}}yield(0,$i.sleep)(2e3)}return{data:F,error:p,loading:!1,reFetch:()=>Lt(void 0,void 0,void 0,function*(){return e(m)}),url:e.toString(),datetime:new Date().getTime()}});Te.callOpenApi=Hi});var It=f((Qc,tn)=>{"use strict";tn.exports=function(t,r){return function(){for(var o=new Array(arguments.length),s=0;s<o.length;s++)o[s]=arguments[s];return t.apply(r,o)}}});var V=f((Zc,on)=>{"use strict";var zi=It(),we=Object.prototype.toString;function Ut(e){return we.call(e)==="[object Array]"}function Vt(e){return typeof e=="undefined"}function Ji(e){return e!==null&&!Vt(e)&&e.constructor!==null&&!Vt(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Ki(e){return we.call(e)==="[object ArrayBuffer]"}function Gi(e){return typeof FormData!="undefined"&&e instanceof FormData}function Wi(e){var t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function Xi(e){return typeof e=="string"}function Yi(e){return typeof e=="number"}function rn(e){return e!==null&&typeof e=="object"}function ut(e){if(we.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Qi(e){return we.call(e)==="[object Date]"}function Zi(e){return we.call(e)==="[object File]"}function ea(e){return we.call(e)==="[object Blob]"}function nn(e){return we.call(e)==="[object Function]"}function ta(e){return rn(e)&&nn(e.pipe)}function ra(e){return typeof URLSearchParams!="undefined"&&e instanceof URLSearchParams}function na(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function oa(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function $t(e,t){if(!(e===null||typeof e=="undefined"))if(typeof e!="object"&&(e=[e]),Ut(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}function Ht(){var e={};function t(o,s){ut(e[s])&&ut(o)?e[s]=Ht(e[s],o):ut(o)?e[s]=Ht({},o):Ut(o)?e[s]=o.slice():e[s]=o}for(var r=0,n=arguments.length;r<n;r++)$t(arguments[r],t);return e}function sa(e,t,r){return $t(t,function(o,s){r&&typeof o=="function"?e[s]=zi(o,r):e[s]=o}),e}function ia(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}on.exports={isArray:Ut,isArrayBuffer:Ki,isBuffer:Ji,isFormData:Gi,isArrayBufferView:Wi,isString:Xi,isNumber:Yi,isObject:rn,isPlainObject:ut,isUndefined:Vt,isDate:Qi,isFile:Zi,isBlob:ea,isFunction:nn,isStream:ta,isURLSearchParams:ra,isStandardBrowserEnv:oa,forEach:$t,merge:Ht,extend:sa,trim:na,stripBOM:ia}});var ct=f((el,an)=>{"use strict";var xe=V();function sn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}an.exports=function(t,r,n){if(!r)return t;var o;if(n)o=n(r);else if(xe.isURLSearchParams(r))o=r.toString();else{var s=[];xe.forEach(r,function(c,d){c===null||typeof c=="undefined"||(xe.isArray(c)?d=d+"[]":c=[c],xe.forEach(c,function(l){xe.isDate(l)?l=l.toISOString():xe.isObject(l)&&(l=JSON.stringify(l)),s.push(sn(d)+"="+sn(l))}))}),o=s.join("&")}if(o){var i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}});var cn=f((tl,un)=>{"use strict";var aa=V();function lt(){this.handlers=[]}lt.prototype.use=function(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};lt.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};lt.prototype.forEach=function(t){aa.forEach(this.handlers,function(n){n!==null&&t(n)})};un.exports=lt});var dn=f((rl,ln)=>{"use strict";var ua=V();ln.exports=function(t,r){ua.forEach(t,function(o,s){s!==r&&s.toUpperCase()===r.toUpperCase()&&(t[r]=o,delete t[s])})}});var dt=f((nl,fn)=>{"use strict";fn.exports=function(t,r,n,o,s){return t.config=r,n&&(t.code=n),t.request=o,t.response=s,t.isAxiosError=!0,t.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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t}});var ft=f((ol,pn)=>{"use strict";var ca=dt();pn.exports=function(t,r,n,o,s){var i=new Error(t);return ca(i,r,n,o,s)}});var zt=f((sl,hn)=>{"use strict";var la=ft();hn.exports=function(t,r,n){var o=n.config.validateStatus;!n.status||!o||o(n.status)?t(n):r(la("Request failed with status code "+n.status,n.config,null,n.request,n))}});var vn=f((il,mn)=>{"use strict";var pt=V();mn.exports=pt.isStandardBrowserEnv()?function(){return{write:function(r,n,o,s,i,u){var c=[];c.push(r+"="+encodeURIComponent(n)),pt.isNumber(o)&&c.push("expires="+new Date(o).toGMTString()),pt.isString(s)&&c.push("path="+s),pt.isString(i)&&c.push("domain="+i),u===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(r){var n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()});var yn=f((al,gn)=>{"use strict";gn.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}});var wn=f((ul,bn)=>{"use strict";bn.exports=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}});var Jt=f((cl,On)=>{"use strict";var da=yn(),fa=wn();On.exports=function(t,r){return t&&!da(r)?fa(t,r):r}});var _n=f((ll,Cn)=>{"use strict";var Kt=V(),pa=["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"];Cn.exports=function(t){var r={},n,o,s;return t&&Kt.forEach(t.split(`
6
+ `),function(u){if(s=u.indexOf(":"),n=Kt.trim(u.substr(0,s)).toLowerCase(),o=Kt.trim(u.substr(s+1)),n){if(r[n]&&pa.indexOf(n)>=0)return;n==="set-cookie"?r[n]=(r[n]?r[n]:[]).concat([o]):r[n]=r[n]?r[n]+", "+o:o}}),r}});var An=f((dl,qn)=>{"use strict";var En=V();qn.exports=En.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function o(s){var i=s;return t&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{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(i){var u=En.isString(i)?o(i):i;return u.protocol===n.protocol&&u.host===n.host}}():function(){return function(){return!0}}()});var Se=f((fl,Rn)=>{"use strict";function Gt(e){this.message=e}Gt.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};Gt.prototype.__CANCEL__=!0;Rn.exports=Gt});var xn=f((pl,Tn)=>{"use strict";var ht=V(),ha=zt(),ma=vn(),va=ct(),ga=Jt(),ya=_n(),ba=An(),Wt=ft(),wa=Pe(),Oa=Se();Tn.exports=function(t){return new Promise(function(n,o){var s=t.data,i=t.headers,u=t.responseType,c;function d(){t.cancelToken&&t.cancelToken.unsubscribe(c),t.signal&&t.signal.removeEventListener("abort",c)}ht.isFormData(s)&&delete i["Content-Type"];var a=new XMLHttpRequest;if(t.auth){var l=t.auth.username||"",p=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.Authorization="Basic "+btoa(l+":"+p)}var F=ga(t.baseURL,t.url);a.open(t.method.toUpperCase(),va(F,t.params,t.paramsSerializer),!0),a.timeout=t.timeout;function Z(){if(!!a){var m="getAllResponseHeaders"in a?ya(a.getAllResponseHeaders()):null,g=!u||u==="text"||u==="json"?a.responseText:a.response,C={data:g,status:a.status,statusText:a.statusText,headers:m,config:t,request:a};ha(function(S){n(S),d()},function(S){o(S),d()},C),a=null}}if("onloadend"in a?a.onloadend=Z:a.onreadystatechange=function(){!a||a.readyState!==4||a.status===0&&!(a.responseURL&&a.responseURL.indexOf("file:")===0)||setTimeout(Z)},a.onabort=function(){!a||(o(Wt("Request aborted",t,"ECONNABORTED",a)),a=null)},a.onerror=function(){o(Wt("Network Error",t,null,a)),a=null},a.ontimeout=function(){var g=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",C=t.transitional||wa.transitional;t.timeoutErrorMessage&&(g=t.timeoutErrorMessage),o(Wt(g,t,C.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",a)),a=null},ht.isStandardBrowserEnv()){var x=(t.withCredentials||ba(F))&&t.xsrfCookieName?ma.read(t.xsrfCookieName):void 0;x&&(i[t.xsrfHeaderName]=x)}"setRequestHeader"in a&&ht.forEach(i,function(g,C){typeof s=="undefined"&&C.toLowerCase()==="content-type"?delete i[C]:a.setRequestHeader(C,g)}),ht.isUndefined(t.withCredentials)||(a.withCredentials=!!t.withCredentials),u&&u!=="json"&&(a.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&a.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&a.upload&&a.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(c=function(m){!a||(o(!m||m&&m.type?new Oa("canceled"):m),a.abort(),a=null)},t.cancelToken&&t.cancelToken.subscribe(c),t.signal&&(t.signal.aborted?c():t.signal.addEventListener("abort",c))),s||(s=null),a.send(s)})}});var Pn=f((hl,Sn)=>{var je=1e3,ke=je*60,Fe=ke*60,Oe=Fe*24,Ca=Oe*7,_a=Oe*365.25;Sn.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Ea(e);if(r==="number"&&isFinite(e))return t.long?Aa(e):qa(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Ea(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!!t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*_a;case"weeks":case"week":case"w":return r*Ca;case"days":case"day":case"d":return r*Oe;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Fe;case"minutes":case"minute":case"mins":case"min":case"m":return r*ke;case"seconds":case"second":case"secs":case"sec":case"s":return r*je;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function qa(e){var t=Math.abs(e);return t>=Oe?Math.round(e/Oe)+"d":t>=Fe?Math.round(e/Fe)+"h":t>=ke?Math.round(e/ke)+"m":t>=je?Math.round(e/je)+"s":e+"ms"}function Aa(e){var t=Math.abs(e);return t>=Oe?mt(e,t,Oe,"day"):t>=Fe?mt(e,t,Fe,"hour"):t>=ke?mt(e,t,ke,"minute"):t>=je?mt(e,t,je,"second"):e+" ms"}function mt(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+" "+n+(o?"s":"")}});var Xt=f((ml,jn)=>{function Ra(e){r.debug=r,r.default=r,r.coerce=c,r.disable=s,r.enable=o,r.enabled=i,r.humanize=Pn(),r.destroy=d,Object.keys(e).forEach(a=>{r[a]=e[a]}),r.names=[],r.skips=[],r.formatters={};function t(a){let l=0;for(let p=0;p<a.length;p++)l=(l<<5)-l+a.charCodeAt(p),l|=0;return r.colors[Math.abs(l)%r.colors.length]}r.selectColor=t;function r(a){let l,p=null,F,Z;function x(...m){if(!x.enabled)return;let g=x,C=Number(new Date),O=C-(l||C);g.diff=O,g.prev=l,g.curr=C,l=C,m[0]=r.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let S=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(ve,X)=>{if(ve==="%%")return"%";S++;let ee=r.formatters[X];if(typeof ee=="function"){let Ze=m[S];ve=ee.call(g,Ze),m.splice(S,1),S--}return ve}),r.formatArgs.call(g,m),(g.log||r.log).apply(g,m)}return x.namespace=a,x.useColors=r.useColors(),x.color=r.selectColor(a),x.extend=n,x.destroy=r.destroy,Object.defineProperty(x,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(F!==r.namespaces&&(F=r.namespaces,Z=r.enabled(a)),Z),set:m=>{p=m}}),typeof r.init=="function"&&r.init(x),x}function n(a,l){let p=r(this.namespace+(typeof l=="undefined"?":":l)+a);return p.log=this.log,p}function o(a){r.save(a),r.namespaces=a,r.names=[],r.skips=[];let l,p=(typeof a=="string"?a:"").split(/[\s,]+/),F=p.length;for(l=0;l<F;l++)!p[l]||(a=p[l].replace(/\*/g,".*?"),a[0]==="-"?r.skips.push(new RegExp("^"+a.substr(1)+"$")):r.names.push(new RegExp("^"+a+"$")))}function s(){let a=[...r.names.map(u),...r.skips.map(u).map(l=>"-"+l)].join(",");return r.enable(""),a}function i(a){if(a[a.length-1]==="*")return!0;let l,p;for(l=0,p=r.skips.length;l<p;l++)if(r.skips[l].test(a))return!1;for(l=0,p=r.names.length;l<p;l++)if(r.names[l].test(a))return!0;return!1}function u(a){return a.toString().substring(2,a.toString().length-2).replace(/\.\*\?$/,"*")}function c(a){return a instanceof Error?a.stack||a.message:a}function d(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}jn.exports=Ra});var kn=f((J,vt)=>{J.formatArgs=xa;J.save=Sa;J.load=Pa;J.useColors=Ta;J.storage=ja();J.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();J.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Ta(){return typeof window!="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function xa(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+vt.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(r++,o==="%c"&&(n=r))}),e.splice(n,0,t)}J.log=console.debug||console.log||(()=>{});function Sa(e){try{e?J.storage.setItem("debug",e):J.storage.removeItem("debug")}catch{}}function Pa(){let e;try{e=J.storage.getItem("debug")}catch{}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}function ja(){try{return localStorage}catch{}}vt.exports=Xt()(J);var{formatters:ka}=vt.exports;ka.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var Dn=f((vl,Fn)=>{"use strict";Fn.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),o=t.indexOf("--");return n!==-1&&(o===-1||n<o)}});var Nn=f((gl,Bn)=>{"use strict";var Fa=require("os"),Mn=require("tty"),Y=Dn(),{env:q}=process,ce;Y("no-color")||Y("no-colors")||Y("color=false")||Y("color=never")?ce=0:(Y("color")||Y("colors")||Y("color=true")||Y("color=always"))&&(ce=1);"FORCE_COLOR"in q&&(q.FORCE_COLOR==="true"?ce=1:q.FORCE_COLOR==="false"?ce=0:ce=q.FORCE_COLOR.length===0?1:Math.min(parseInt(q.FORCE_COLOR,10),3));function Yt(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Qt(e,t){if(ce===0)return 0;if(Y("color=16m")||Y("color=full")||Y("color=truecolor"))return 3;if(Y("color=256"))return 2;if(e&&!t&&ce===void 0)return 0;let r=ce||0;if(q.TERM==="dumb")return r;if(process.platform==="win32"){let n=Fa.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in q)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in q)||q.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in q)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(q.TEAMCITY_VERSION)?1:0;if(q.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in q){let n=parseInt((q.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(q.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(q.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(q.TERM)||"COLORTERM"in q?1:r}function Da(e){let t=Qt(e,e&&e.isTTY);return Yt(t)}Bn.exports={supportsColor:Da,stdout:Yt(Qt(!0,Mn.isatty(1))),stderr:Yt(Qt(!0,Mn.isatty(2)))}});var In=f((j,yt)=>{var Ma=require("tty"),gt=require("util");j.init=$a;j.log=Ia;j.formatArgs=Na;j.save=Ua;j.load=Va;j.useColors=Ba;j.destroy=gt.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");j.colors=[6,2,3,4,5,1];try{let e=Nn();e&&(e.stderr||e).level>=2&&(j.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}j.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(o,s)=>s.toUpperCase()),n=process.env[t];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),e[r]=n,e},{});function Ba(){return"colors"in j.inspectOpts?Boolean(j.inspectOpts.colors):Ma.isatty(process.stderr.fd)}function Na(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,o="[3"+(n<8?n:"8;5;"+n),s=` ${o};1m${t} `;e[0]=s+e[0].split(`
7
7
  `).join(`
8
- `+s),e.push(o+"m+"+bt.exports.humanize(this.diff)+"")}else e[0]=La()+t+" "+e[0]}function La(){return j.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Ia(...e){return process.stderr.write(yt.format(...e)+`
9
- `)}function Ua(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function Va(){return process.env.DEBUG}function $a(e){e.inspectOpts={};let t=Object.keys(j.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=j.inspectOpts[t[r]]}bt.exports=Xt()(j);var{formatters:Ln}=bt.exports;Ln.o=function(e){return this.inspectOpts.colors=this.useColors,yt.inspect(e,this.inspectOpts).split(`
10
- `).map(t=>t.trim()).join(" ")};Ln.O=function(e){return this.inspectOpts.colors=this.useColors,yt.inspect(e,this.inspectOpts)}});var Un=f((yl,Zt)=>{typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?Zt.exports=kn():Zt.exports=In()});var $n=f((bl,Vn)=>{var ze;Vn.exports=function(){if(!ze){try{ze=Un()("follow-redirects")}catch{}typeof ze!="function"&&(ze=function(){})}ze.apply(null,arguments)}});var or=f((wl,nr)=>{var Ce=require("url"),er=Ce.URL,Ha=require("http"),za=require("https"),Hn=require("stream").Writable,Ja=require("assert"),zn=$n(),_e=["abort","aborted","connect","error","socket","timeout"],tr=Object.create(null);_e.forEach(function(e){tr[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var Jn=wt("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Ka=wt("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),Ga=wt("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Wa=wt("ERR_STREAM_WRITE_AFTER_END","write after end");function K(e,t){Hn.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(n){r._processResponse(n)},this._performRequest()}K.prototype=Object.create(Hn.prototype);K.prototype.abort=function(){Wn(this._currentRequest),this.emit("abort")};K.prototype.write=function(e,t,r){if(this._ending)throw new Wa;if(!(typeof e=="string"||typeof e=="object"&&"length"in e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(typeof t=="function"&&(r=t,t=null),e.length===0){r&&r();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new Ga),this.abort())};K.prototype.end=function(e,t,r){if(typeof e=="function"?(r=e,e=t=null):typeof t=="function"&&(r=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,o=this._currentRequest;this.write(e,t,function(){n._ended=!0,o.end(null,null,r)}),this._ending=!0}};K.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)};K.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)};K.prototype.setTimeout=function(e,t){var r=this;function n(i){i.setTimeout(e),i.removeListener("timeout",i.destroy),i.addListener("timeout",i.destroy)}function o(i){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),s()},e),n(i)}function s(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",s),r.removeListener("error",s),r.removeListener("response",s),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",o)}return t&&this.on("timeout",t),this.socket?o(this.socket):this._currentRequest.once("socket",o),this.on("socket",n),this.on("abort",s),this.on("error",s),this.on("response",s),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){K.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(K.prototype,e,{get:function(){return this._currentRequest[e]}})});K.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}};K.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t){this.emit("error",new TypeError("Unsupported protocol "+e));return}if(this._options.agents){var r=e.substr(0,e.length-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);this._currentUrl=Ce.format(this._options),n._redirectable=this;for(var o=0;o<_e.length;o++)n.on(_e[o],tr[_e[o]]);if(this._isRedirect){var s=0,i=this,u=this._requestBodyBuffers;(function c(d){if(n===i._currentRequest)if(d)i.emit("error",d);else if(s<u.length){var a=u[s++];n.finished||n.write(a.data,a.encoding,c)}else i._ended&&n.end()})()}};K.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(r&&this._options.followRedirects!==!1&&t>=300&&t<400){if(Wn(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new Ka);return}((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],rr(/^content-/i,this._options.headers));var n=rr(/^host$/i,this._options.headers),o=Ce.parse(this._currentUrl),s=n||o.host,i=/^\w+:/.test(r)?this._currentUrl:Ce.format(Object.assign(o,{host:s})),u;try{u=Ce.resolve(i,r)}catch(a){this.emit("error",new Jn(a));return}zn("redirecting to",u),this._isRedirect=!0;var c=Ce.parse(u);if(Object.assign(this._options,c),c.host===s||Ya(c.host,s)||rr(/^authorization$/i,this._options.headers),typeof this._options.beforeRedirect=="function"){var d={headers:e.headers};try{this._options.beforeRedirect.call(null,this._options,d)}catch(a){this.emit("error",a);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(a){this.emit("error",new Jn(a))}}else e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[]};function Kn(e){var t={maxRedirects:21,maxBodyLength:10*1024*1024},r={};return Object.keys(e).forEach(function(n){var o=n+":",s=r[o]=e[n],i=t[n]=Object.create(s);function u(d,a,l){if(typeof d=="string"){var p=d;try{d=Gn(new er(p))}catch{d=Ce.parse(p)}}else er&&d instanceof er?d=Gn(d):(l=a,a=d,d={protocol:o});return typeof a=="function"&&(l=a,a=null),a=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},d,a),a.nativeProtocols=r,Ja.equal(a.protocol,o,"protocol mismatch"),zn("options",a),new K(a,l)}function c(d,a,l){var p=i.request(d,a,l);return p.end(),p}Object.defineProperties(i,{request:{value:u,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),t}function Xa(){}function Gn(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return e.port!==""&&(t.port=Number(e.port)),t}function rr(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return r===null||typeof r=="undefined"?void 0:String(r).trim()}function wt(e,t){function r(n){Error.captureStackTrace(this,this.constructor),n?(this.message=t+": "+n.message,this.cause=n):this.message=t}return r.prototype=new Error,r.prototype.constructor=r,r.prototype.name="Error ["+e+"]",r.prototype.code=e,r}function Wn(e){for(var t=0;t<_e.length;t++)e.removeListener(_e[t],tr[_e[t]]);e.on("error",Xa),e.abort()}function Ya(e,t){let r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}nr.exports=Kn({http:Ha,https:za});nr.exports.wrap=Kn});var Ot=f((Ol,Xn)=>{Xn.exports={version:"0.24.0"}});var ro=f((Cl,to)=>{"use strict";var Je=V(),Yn=zt(),Qa=Jt(),Za=lt(),eu=require("http"),tu=require("https"),ru=or().http,nu=or().https,Qn=require("url"),ou=require("zlib"),su=Ot().version,Ct=pt(),sr=ft(),iu=Pe(),au=Se(),Zn=/https:?/;function eo(e,t,r){if(e.hostname=t.host,e.host=t.host,e.port=t.port,e.path=r,t.auth){var n=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+n}e.beforeRedirect=function(s){s.headers.host=s.host,eo(s,t,s.href)}}to.exports=function(t){return new Promise(function(n,o){var s;function i(){t.cancelToken&&t.cancelToken.unsubscribe(s),t.signal&&t.signal.removeEventListener("abort",s)}var u=function(v){i(),n(v)},c=function(v){i(),o(v)},d=t.data,a=t.headers,l={};if(Object.keys(a).forEach(function(v){l[v.toLowerCase()]=v}),"user-agent"in l?a[l["user-agent"]]||delete a[l["user-agent"]]:a["User-Agent"]="axios/"+su,d&&!Je.isStream(d)){if(!Buffer.isBuffer(d))if(Je.isArrayBuffer(d))d=Buffer.from(new Uint8Array(d));else if(Je.isString(d))d=Buffer.from(d,"utf-8");else return c(Ct("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",t));l["content-length"]||(a["Content-Length"]=d.length)}var p=void 0;if(t.auth){var F=t.auth.username||"",Z=t.auth.password||"";p=F+":"+Z}var x=Qa(t.baseURL,t.url),m=Qn.parse(x),g=m.protocol||"http:";if(!p&&m.auth){var C=m.auth.split(":"),O=C[0]||"",S=C[1]||"";p=O+":"+S}p&&l.authorization&&delete a[l.authorization];var me=Zn.test(g),ve=me?t.httpsAgent:t.httpAgent,X={path:Za(m.path,t.params,t.paramsSerializer).replace(/^\?/,""),method:t.method.toUpperCase(),headers:a,agent:ve,agents:{http:t.httpAgent,https:t.httpsAgent},auth:p};t.socketPath?X.socketPath=t.socketPath:(X.hostname=m.hostname,X.port=m.port);var ee=t.proxy;if(!ee&&ee!==!1){var et=g.slice(0,-1)+"_proxy",br=process.env[et]||process.env[et.toUpperCase()];if(br){var $e=Qn.parse(br),wr=process.env.no_proxy||process.env.NO_PROXY,Or=!0;if(wr){var vs=wr.split(",").map(function(v){return v.trim()});Or=!vs.some(function(v){return v?v==="*"||v[0]==="."&&m.hostname.substr(m.hostname.length-v.length)===v?!0:m.hostname===v:!1})}if(Or&&(ee={host:$e.hostname,port:$e.port,protocol:$e.protocol},$e.auth)){var Cr=$e.auth.split(":");ee.auth={username:Cr[0],password:Cr[1]}}}}ee&&(X.headers.host=m.hostname+(m.port?":"+m.port:""),eo(X,ee,g+"//"+m.hostname+(m.port?":"+m.port:"")+X.path));var tt,_r=me&&(ee?Zn.test(ee.protocol):!0);t.transport?tt=t.transport:t.maxRedirects===0?tt=_r?tu:eu:(t.maxRedirects&&(X.maxRedirects=t.maxRedirects),tt=_r?nu:ru),t.maxBodyLength>-1&&(X.maxBodyLength=t.maxBodyLength),t.insecureHTTPParser&&(X.insecureHTTPParser=t.insecureHTTPParser);var U=tt.request(X,function(v){if(!U.aborted){var ge=v,rt=v.req||U;if(v.statusCode!==204&&rt.method!=="HEAD"&&t.decompress!==!1)switch(v.headers["content-encoding"]){case"gzip":case"compress":case"deflate":ge=ge.pipe(ou.createUnzip()),delete v.headers["content-encoding"];break}var nt={status:v.statusCode,statusText:v.statusMessage,headers:v.headers,config:t,request:rt};if(t.responseType==="stream")nt.data=ge,Yn(u,c,nt);else{var Er=[],qr=0;ge.on("data",function(te){Er.push(te),qr+=te.length,t.maxContentLength>-1&&qr>t.maxContentLength&&(ge.destroy(),c(Ct("maxContentLength size of "+t.maxContentLength+" exceeded",t,null,rt)))}),ge.on("error",function(te){U.aborted||c(sr(te,t,null,rt))}),ge.on("end",function(){var te=Buffer.concat(Er);t.responseType!=="arraybuffer"&&(te=te.toString(t.responseEncoding),(!t.responseEncoding||t.responseEncoding==="utf8")&&(te=Je.stripBOM(te))),nt.data=te,Yn(u,c,nt)})}}});if(U.on("error",function(v){U.aborted&&v.code!=="ERR_FR_TOO_MANY_REDIRECTS"||c(sr(v,t,null,U))}),t.timeout){var kt=parseInt(t.timeout,10);if(isNaN(kt)){c(Ct("error trying to parse `config.timeout` to int",t,"ERR_PARSE_TIMEOUT",U));return}U.setTimeout(kt,function(){U.abort();var v=t.transitional||iu.transitional;c(Ct("timeout of "+kt+"ms exceeded",t,v.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",U))})}(t.cancelToken||t.signal)&&(s=function(H){U.aborted||(U.abort(),c(!H||H&&H.type?new au("canceled"):H))},t.cancelToken&&t.cancelToken.subscribe(s),t.signal&&(t.signal.aborted?s():t.signal.addEventListener("abort",s))),Je.isStream(d)?d.on("error",function(v){c(sr(v,t,null,U))}).pipe(U):U.end(d)})}});var Pe=f((_l,so)=>{"use strict";var k=V(),no=dn(),uu=ft(),cu={"Content-Type":"application/x-www-form-urlencoded"};function oo(e,t){!k.isUndefined(e)&&k.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function lu(){var e;return typeof XMLHttpRequest!="undefined"?e=xn():typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]"&&(e=ro()),e}function du(e,t,r){if(k.isString(e))try{return(t||JSON.parse)(e),k.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var _t={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:lu(),transformRequest:[function(t,r){return no(r,"Accept"),no(r,"Content-Type"),k.isFormData(t)||k.isArrayBuffer(t)||k.isBuffer(t)||k.isStream(t)||k.isFile(t)||k.isBlob(t)?t:k.isArrayBufferView(t)?t.buffer:k.isURLSearchParams(t)?(oo(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):k.isObject(t)||r&&r["Content-Type"]==="application/json"?(oo(r,"application/json"),du(t)):t}],transformResponse:[function(t){var r=this.transitional||_t.transitional,n=r&&r.silentJSONParsing,o=r&&r.forcedJSONParsing,s=!n&&this.responseType==="json";if(s||o&&k.isString(t)&&t.length)try{return JSON.parse(t)}catch(i){if(s)throw i.name==="SyntaxError"?uu(i,this,"E_JSON_PARSE"):i}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};k.forEach(["delete","get","head"],function(t){_t.headers[t]={}});k.forEach(["post","put","patch"],function(t){_t.headers[t]=k.merge(cu)});so.exports=_t});var ao=f((El,io)=>{"use strict";var fu=V(),pu=Pe();io.exports=function(t,r,n){var o=this||pu;return fu.forEach(n,function(i){t=i.call(o,t,r)}),t}});var ir=f((ql,uo)=>{"use strict";uo.exports=function(t){return!!(t&&t.__CANCEL__)}});var fo=f((Al,lo)=>{"use strict";var co=V(),ar=ao(),hu=ir(),mu=Pe(),vu=Se();function ur(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new vu("canceled")}lo.exports=function(t){ur(t),t.headers=t.headers||{},t.data=ar.call(t,t.data,t.headers,t.transformRequest),t.headers=co.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),co.forEach(["delete","get","head","post","put","patch","common"],function(o){delete t.headers[o]});var r=t.adapter||mu.adapter;return r(t).then(function(o){return ur(t),o.data=ar.call(t,o.data,o.headers,t.transformResponse),o},function(o){return hu(o)||(ur(t),o&&o.response&&(o.response.data=ar.call(t,o.response.data,o.response.headers,t.transformResponse))),Promise.reject(o)})}});var cr=f((Rl,po)=>{"use strict";var G=V();po.exports=function(t,r){r=r||{};var n={};function o(a,l){return G.isPlainObject(a)&&G.isPlainObject(l)?G.merge(a,l):G.isPlainObject(l)?G.merge({},l):G.isArray(l)?l.slice():l}function s(a){if(G.isUndefined(r[a])){if(!G.isUndefined(t[a]))return o(void 0,t[a])}else return o(t[a],r[a])}function i(a){if(!G.isUndefined(r[a]))return o(void 0,r[a])}function u(a){if(G.isUndefined(r[a])){if(!G.isUndefined(t[a]))return o(void 0,t[a])}else return o(void 0,r[a])}function c(a){if(a in r)return o(t[a],r[a]);if(a in t)return o(void 0,t[a])}var d={url:i,method:i,data:i,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:c};return G.forEach(Object.keys(t).concat(Object.keys(r)),function(l){var p=d[l]||s,F=p(l);G.isUndefined(F)&&p!==c||(n[l]=F)}),n}});var vo=f((Tl,mo)=>{"use strict";var gu=Ot().version,lr={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){lr[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var ho={};lr.transitional=function(t,r,n){function o(s,i){return"[Axios v"+gu+"] Transitional option '"+s+"'"+i+(n?". "+n:"")}return function(s,i,u){if(t===!1)throw new Error(o(i," has been removed"+(r?" in "+r:"")));return r&&!ho[i]&&(ho[i]=!0,console.warn(o(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,i,u):!0}};function yu(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),o=n.length;o-- >0;){var s=n[o],i=t[s];if(i){var u=e[s],c=u===void 0||i(u,s,e);if(c!==!0)throw new TypeError("option "+s+" must be "+c);continue}if(r!==!0)throw Error("Unknown option "+s)}}mo.exports={assertOptions:yu,validators:lr}});var Co=f((xl,Oo)=>{"use strict";var go=V(),bu=lt(),yo=cn(),bo=fo(),Et=cr(),wo=vo(),De=wo.validators;function Ke(e){this.defaults=e,this.interceptors={request:new yo,response:new yo}}Ke.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=Et(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;r!==void 0&&wo.assertOptions(r,{silentJSONParsing:De.transitional(De.boolean),forcedJSONParsing:De.transitional(De.boolean),clarifyTimeoutError:De.transitional(De.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(t)===!1||(o=o&&p.synchronous,n.unshift(p.fulfilled,p.rejected))});var s=[];this.interceptors.response.forEach(function(p){s.push(p.fulfilled,p.rejected)});var i;if(!o){var u=[bo,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(s),i=Promise.resolve(t);u.length;)i=i.then(u.shift(),u.shift());return i}for(var c=t;n.length;){var d=n.shift(),a=n.shift();try{c=d(c)}catch(l){a(l);break}}try{i=bo(c)}catch(l){return Promise.reject(l)}for(;s.length;)i=i.then(s.shift(),s.shift());return i};Ke.prototype.getUri=function(t){return t=Et(this.defaults,t),bu(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};go.forEach(["delete","get","head","options"],function(t){Ke.prototype[t]=function(r,n){return this.request(Et(n||{},{method:t,url:r,data:(n||{}).data}))}});go.forEach(["post","put","patch"],function(t){Ke.prototype[t]=function(r,n,o){return this.request(Et(o||{},{method:t,url:r,data:n}))}});Oo.exports=Ke});var Eo=f((Sl,_o)=>{"use strict";var wu=Se();function Me(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(o){t=o});var r=this;this.promise.then(function(n){if(!!r._listeners){var o,s=r._listeners.length;for(o=0;o<s;o++)r._listeners[o](n);r._listeners=null}}),this.promise.then=function(n){var o,s=new Promise(function(i){r.subscribe(i),o=i}).then(n);return s.cancel=function(){r.unsubscribe(o)},s},e(function(o){r.reason||(r.reason=new wu(o),t(r.reason))})}Me.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};Me.prototype.subscribe=function(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]};Me.prototype.unsubscribe=function(t){if(!!this._listeners){var r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}};Me.source=function(){var t,r=new Me(function(o){t=o});return{token:r,cancel:t}};_o.exports=Me});var Ao=f((Pl,qo)=>{"use strict";qo.exports=function(t){return function(n){return t.apply(null,n)}}});var To=f((jl,Ro)=>{"use strict";Ro.exports=function(t){return typeof t=="object"&&t.isAxiosError===!0}});var Po=f((kl,dr)=>{"use strict";var xo=V(),Ou=It(),qt=Co(),Cu=cr(),_u=Pe();function So(e){var t=new qt(e),r=Ou(qt.prototype.request,t);return xo.extend(r,qt.prototype,t),xo.extend(r,t),r.create=function(o){return So(Cu(e,o))},r}var ne=So(_u);ne.Axios=qt;ne.Cancel=Se();ne.CancelToken=Eo();ne.isCancel=ir();ne.VERSION=Ot().version;ne.all=function(t){return Promise.all(t)};ne.spread=Ao();ne.isAxiosError=To();dr.exports=ne;dr.exports.default=ne});var fr=f((Fl,jo)=>{jo.exports=Po()});var Do=f(W=>{var Eu=W&&W.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(W,"__esModule",{value:!0});W.RequiredError=W.BaseAPI=W.COLLECTION_FORMATS=W.BASE_PATH=void 0;var qu=Eu(fr());W.BASE_PATH="https://api.analytica.click".replace(/\/+$/,"");W.COLLECTION_FORMATS={csv:",",ssv:" ",tsv:" ",pipes:"|"};var ko=class{constructor(t,r=W.BASE_PATH,n=qu.default){this.basePath=r,this.axios=n,t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)}};W.BaseAPI=ko;var Fo=class extends Error{constructor(t,r){super(r);this.field=t,this.name="RequiredError"}};W.RequiredError=Fo});var Bo=f(h=>{var Au=h&&h.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Ru=h&&h.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Tu=h&&h.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Au(t,e,r);return Ru(t,e),t},A=h&&h.__awaiter||function(e,t,r,n){function o(s){return s instanceof r?s:new r(function(i){i(s)})}return new(r||(r=Promise))(function(s,i){function u(a){try{d(n.next(a))}catch(l){i(l)}}function c(a){try{d(n.throw(a))}catch(l){i(l)}}function d(a){a.done?s(a.value):o(a.value).then(u,c)}d((n=n.apply(e,t||[])).next())})},xu=h&&h.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(h,"__esModule",{value:!0});h.DefaultApi=h.DefaultApiFactory=h.DefaultApiFp=h.DefaultApiAxiosParamCreator=h.Sentiment=void 0;var R=Tu(require("url")),se=xu(fr()),w=Do(),Su;(function(e){e.Good="good",e.Bad="bad",e.Neutral="neutral"})(Su=h.Sentiment||(h.Sentiment={}));var Pu=function(e){return{accountGet:(t={})=>A(this,void 0,void 0,function*(){let r="/account",n=R.parse(r,!0),o;e&&(o=e.baseOptions);let s=Object.assign(Object.assign({method:"GET"},o),t),i={},u={};if(e&&e.apiKey){let d=typeof e.apiKey=="function"?yield e.apiKey("authorization"):yield e.apiKey;i.authorization=d}n.query=Object.assign(Object.assign(Object.assign({},n.query),u),t.query),delete n.search;let c=o&&o.headers?o.headers:{};return s.headers=Object.assign(Object.assign(Object.assign({},i),c),t.headers),{url:R.format(n),options:s}}),bingIntegrationPost:(t,r={})=>A(this,void 0,void 0,function*(){if(t==null)throw new w.RequiredError("bingIntegration","Required parameter bingIntegration was null or undefined when calling bingIntegrationPost.");let n="/account/integrations/bing",o=R.parse(n,!0),s;e&&(s=e.baseOptions);let i=Object.assign(Object.assign({method:"POST"},s),r),u={},c={};if(e&&e.apiKey){let l=typeof e.apiKey=="function"?yield e.apiKey("authorization"):yield e.apiKey;u.authorization=l}u["Content-Type"]="application/json",o.query=Object.assign(Object.assign(Object.assign({},o.query),c),r.query),delete o.search;let d=s&&s.headers?s.headers:{};i.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers);let a=typeof t!="string"||i.headers["Content-Type"]==="application/json";return i.data=a?JSON.stringify(t!==void 0?t:{}):t||"",{url:R.format(o),options:i}}),getTrackingAllSites:(t,r,n={})=>A(this,void 0,void 0,function*(){if(t==null)throw new w.RequiredError("minDate","Required parameter minDate was null or undefined when calling getTrackingAllSites.");if(r==null)throw new w.RequiredError("maxDate","Required parameter maxDate was null or undefined when calling getTrackingAllSites.");let o="/site/tracking",s=R.parse(o,!0),i;e&&(i=e.baseOptions);let u=Object.assign(Object.assign({method:"GET"},i),n),c={},d={};if(e&&e.apiKey){let l=typeof e.apiKey=="function"?yield e.apiKey("authorization"):yield e.apiKey;c.authorization=l}t!==void 0&&(d.minDate=t),r!==void 0&&(d.maxDate=r),s.query=Object.assign(Object.assign(Object.assign({},s.query),d),n.query),delete s.search;let a=i&&i.headers?i.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},c),a),n.headers),{url:R.format(s),options:u}}),getTrackingSite:(t,r,n,o={})=>A(this,void 0,void 0,function*(){if(t==null)throw new w.RequiredError("id","Required parameter id was null or undefined when calling getTrackingSite.");if(r==null)throw new w.RequiredError("minDate","Required parameter minDate was null or undefined when calling getTrackingSite.");if(n==null)throw new w.RequiredError("maxDate","Required parameter maxDate was null or undefined when calling getTrackingSite.");let s="/site/tracking/{id}".replace("{id}",encodeURIComponent(String(t))),i=R.parse(s,!0),u;e&&(u=e.baseOptions);let c=Object.assign(Object.assign({method:"GET"},u),o),d={},a={};if(e&&e.apiKey){let p=typeof e.apiKey=="function"?yield e.apiKey("authorization"):yield e.apiKey;d.authorization=p}r!==void 0&&(a.minDate=r),n!==void 0&&(a.maxDate=n),i.query=Object.assign(Object.assign(Object.assign({},i.query),a),o.query),delete i.search;let l=u&&u.headers?u.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},d),l),o.headers),{url:R.format(i),options:c}}),googleIntegrationPost:(t,r={})=>A(this,void 0,void 0,function*(){if(t==null)throw new w.RequiredError("googleIntegration","Required parameter googleIntegration was null or undefined when calling googleIntegrationPost.");let n="/account/integrations/google",o=R.parse(n,!0),s;e&&(s=e.baseOptions);let i=Object.assign(Object.assign({method:"POST"},s),r),u={},c={};if(e&&e.apiKey){let l=typeof e.apiKey=="function"?yield e.apiKey("authorization"):yield e.apiKey;u.authorization=l}u["Content-Type"]="application/json",o.query=Object.assign(Object.assign(Object.assign({},o.query),c),r.query),delete o.search;let d=s&&s.headers?s.headers:{};i.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers);let a=typeof t!="string"||i.headers["Content-Type"]==="application/json";return i.data=a?JSON.stringify(t!==void 0?t:{}):t||"",{url:R.format(o),options:i}}),postError:(t,r={})=>A(this,void 0,void 0,function*(){if(t==null)throw new w.RequiredError("postError","Required parameter postError was null or undefined when calling postError.");let n="/error",o=R.parse(n,!0),s;e&&(s=e.baseOptions);let i=Object.assign(Object.assign({method:"POST"},s),r),u={},c={};u["Content-Type"]="application/json",o.query=Object.assign(Object.assign(Object.assign({},o.query),c),r.query),delete o.search;let d=s&&s.headers?s.headers:{};i.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers);let a=typeof t!="string"||i.headers["Content-Type"]==="application/json";return i.data=a?JSON.stringify(t!==void 0?t:{}):t||"",{url:R.format(o),options:i}}),postPageTrack:(t,r={})=>A(this,void 0,void 0,function*(){if(t==null)throw new w.RequiredError("postSiteTrack","Required parameter postSiteTrack was null or undefined when calling postPageTrack.");let n="/site",o=R.parse(n,!0),s;e&&(s=e.baseOptions);let i=Object.assign(Object.assign({method:"POST"},s),r),u={},c={};u["Content-Type"]="application/json",o.query=Object.assign(Object.assign(Object.assign({},o.query),c),r.query),delete o.search;let d=s&&s.headers?s.headers:{};i.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers);let a=typeof t!="string"||i.headers["Content-Type"]==="application/json";return i.data=a?JSON.stringify(t!==void 0?t:{}):t||"",{url:R.format(o),options:i}}),putFeedback:(t,r={})=>A(this,void 0,void 0,function*(){if(t==null)throw new w.RequiredError("feedbackPutData","Required parameter feedbackPutData was null or undefined when calling putFeedback.");let n="/feedback",o=R.parse(n,!0),s;e&&(s=e.baseOptions);let i=Object.assign(Object.assign({method:"PUT"},s),r),u={},c={};u["Content-Type"]="application/json",o.query=Object.assign(Object.assign(Object.assign({},o.query),c),r.query),delete o.search;let d=s&&s.headers?s.headers:{};i.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers);let a=typeof t!="string"||i.headers["Content-Type"]==="application/json";return i.data=a?JSON.stringify(t!==void 0?t:{}):t||"",{url:R.format(o),options:i}}),sitePost:(t,r={})=>A(this,void 0,void 0,function*(){if(t==null)throw new w.RequiredError("postAccount","Required parameter postAccount was null or undefined when calling sitePost.");let n="/account/site",o=R.parse(n,!0),s;e&&(s=e.baseOptions);let i=Object.assign(Object.assign({method:"POST"},s),r),u={},c={};if(e&&e.apiKey){let l=typeof e.apiKey=="function"?yield e.apiKey("authorization"):yield e.apiKey;u.authorization=l}u["Content-Type"]="application/json",o.query=Object.assign(Object.assign(Object.assign({},o.query),c),r.query),delete o.search;let d=s&&s.headers?s.headers:{};i.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers);let a=typeof t!="string"||i.headers["Content-Type"]==="application/json";return i.data=a?JSON.stringify(t!==void 0?t:{}):t||"",{url:R.format(o),options:i}})}};h.DefaultApiAxiosParamCreator=Pu;var ju=function(e){return{accountGet(t){return A(this,void 0,void 0,function*(){let r=yield(0,h.DefaultApiAxiosParamCreator)(e).accountGet(t);return(n=se.default,o=w.BASE_PATH)=>{let s=Object.assign(Object.assign({},r.options),{url:o+r.url});return n.request(s)}})},bingIntegrationPost(t,r){return A(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(e).bingIntegrationPost(t,r);return(o=se.default,s=w.BASE_PATH)=>{let i=Object.assign(Object.assign({},n.options),{url:s+n.url});return o.request(i)}})},getTrackingAllSites(t,r,n){return A(this,void 0,void 0,function*(){let o=yield(0,h.DefaultApiAxiosParamCreator)(e).getTrackingAllSites(t,r,n);return(s=se.default,i=w.BASE_PATH)=>{let u=Object.assign(Object.assign({},o.options),{url:i+o.url});return s.request(u)}})},getTrackingSite(t,r,n,o){return A(this,void 0,void 0,function*(){let s=yield(0,h.DefaultApiAxiosParamCreator)(e).getTrackingSite(t,r,n,o);return(i=se.default,u=w.BASE_PATH)=>{let c=Object.assign(Object.assign({},s.options),{url:u+s.url});return i.request(c)}})},googleIntegrationPost(t,r){return A(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(e).googleIntegrationPost(t,r);return(o=se.default,s=w.BASE_PATH)=>{let i=Object.assign(Object.assign({},n.options),{url:s+n.url});return o.request(i)}})},postError(t,r){return A(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(e).postError(t,r);return(o=se.default,s=w.BASE_PATH)=>{let i=Object.assign(Object.assign({},n.options),{url:s+n.url});return o.request(i)}})},postPageTrack(t,r){return A(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(e).postPageTrack(t,r);return(o=se.default,s=w.BASE_PATH)=>{let i=Object.assign(Object.assign({},n.options),{url:s+n.url});return o.request(i)}})},putFeedback(t,r){return A(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(e).putFeedback(t,r);return(o=se.default,s=w.BASE_PATH)=>{let i=Object.assign(Object.assign({},n.options),{url:s+n.url});return o.request(i)}})},sitePost(t,r){return A(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(e).sitePost(t,r);return(o=se.default,s=w.BASE_PATH)=>{let i=Object.assign(Object.assign({},n.options),{url:s+n.url});return o.request(i)}})}}};h.DefaultApiFp=ju;var ku=function(e,t,r){return{accountGet(n){return(0,h.DefaultApiFp)(e).accountGet(n).then(o=>o(r,t))},bingIntegrationPost(n,o){return(0,h.DefaultApiFp)(e).bingIntegrationPost(n,o).then(s=>s(r,t))},getTrackingAllSites(n,o,s){return(0,h.DefaultApiFp)(e).getTrackingAllSites(n,o,s).then(i=>i(r,t))},getTrackingSite(n,o,s,i){return(0,h.DefaultApiFp)(e).getTrackingSite(n,o,s,i).then(u=>u(r,t))},googleIntegrationPost(n,o){return(0,h.DefaultApiFp)(e).googleIntegrationPost(n,o).then(s=>s(r,t))},postError(n,o){return(0,h.DefaultApiFp)(e).postError(n,o).then(s=>s(r,t))},postPageTrack(n,o){return(0,h.DefaultApiFp)(e).postPageTrack(n,o).then(s=>s(r,t))},putFeedback(n,o){return(0,h.DefaultApiFp)(e).putFeedback(n,o).then(s=>s(r,t))},sitePost(n,o){return(0,h.DefaultApiFp)(e).sitePost(n,o).then(s=>s(r,t))}}};h.DefaultApiFactory=ku;var Mo=class extends w.BaseAPI{accountGet(t){return(0,h.DefaultApiFp)(this.configuration).accountGet(t).then(r=>r(this.axios,this.basePath))}bingIntegrationPost(t,r){return(0,h.DefaultApiFp)(this.configuration).bingIntegrationPost(t,r).then(n=>n(this.axios,this.basePath))}getTrackingAllSites(t,r,n){return(0,h.DefaultApiFp)(this.configuration).getTrackingAllSites(t,r,n).then(o=>o(this.axios,this.basePath))}getTrackingSite(t,r,n,o){return(0,h.DefaultApiFp)(this.configuration).getTrackingSite(t,r,n,o).then(s=>s(this.axios,this.basePath))}googleIntegrationPost(t,r){return(0,h.DefaultApiFp)(this.configuration).googleIntegrationPost(t,r).then(n=>n(this.axios,this.basePath))}postError(t,r){return(0,h.DefaultApiFp)(this.configuration).postError(t,r).then(n=>n(this.axios,this.basePath))}postPageTrack(t,r){return(0,h.DefaultApiFp)(this.configuration).postPageTrack(t,r).then(n=>n(this.axios,this.basePath))}putFeedback(t,r){return(0,h.DefaultApiFp)(this.configuration).putFeedback(t,r).then(n=>n(this.axios,this.basePath))}sitePost(t,r){return(0,h.DefaultApiFp)(this.configuration).sitePost(t,r).then(n=>n(this.axios,this.basePath))}};h.DefaultApi=Mo});var $o=f(Rt=>{"use strict";Rt.__esModule=!0;Rt.createRequires=void 0;var Lu=function(e){return typeof e=="function"?e():e||{}},Iu=function(e){var t=!1;return function(r){if(t||(e=Lu(e),t=!0),!(r in e))throw new Error("Could not require '"+r+"'. '"+r+"' does not exist in dependencies.");return e[r]}};Rt.createRequires=Iu});var Ho=f(mr=>{"use strict";mr.__esModule=!0;var Uu=function(e){var t={};return function(r){return r in t||(t[r]=e(r)),t[r]}};mr.default=Uu});var vr=f(Ne=>{"use strict";Ne.__esModule=!0;Ne.InternalServerError=Ne.OK=void 0;Ne.OK=200;Ne.InternalServerError=500});var zo=f(de=>{"use strict";de.__esModule=!0;de.DONE=de.OPENED=de.UNSENT=void 0;de.UNSENT=0;de.OPENED=1;de.DONE=4});var Jo=f(gr=>{"use strict";gr.__esModule=!0;var Vu=vr(),$u=zo(),Hu=function(e){return new Promise(function(t,r){var n=new XMLHttpRequest;n.onreadystatechange=function(){n.readyState===$u.DONE&&(n.status===Vu.OK?t(n.responseText):r(new Error("HTTP Error Response: "+n.status+" "+n.statusText+" ("+e+")")))},n.open("GET",e,!0),n.send()})};gr.default=Hu});var Xo=f(Xe=>{"use strict";var Ko=Xe&&Xe.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,s;n<o;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))};Xe.__esModule=!0;var Go=require("http"),Wo=require("https"),zu=vr(),Ju=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return typeof e!="string"?{on:function(n,o){o(new Error("URL must be a string."))}}:e.indexOf("https://")===0?Wo.get.apply(Wo,Ko([e],t,!1)):Go.get.apply(Go,Ko([e],t,!1))},Ku=function(e){return new Promise(function(t,r){Ju(e,function(n){if(n.statusCode!==zu.OK)return r(new Error("HTTP Error Response: "+n.statusCode+" "+n.statusMessage+" ("+e+")"));var o=null;n.on("data",function(s){if(o===null){o=s;return}o+=s}),n.on("end",function(){return t(o)})}).on("error",r)})};Xe.default=Ku});var Yo=f(Tt=>{"use strict";Tt.__esModule=!0;Tt.createLoadRemoteModule=void 0;var Gu=Ho(),Wu=Jo(),Xu=Xo(),Yu=typeof window!="undefined"&&typeof window.document!="undefined",Qu=Yu?Wu.default:Xu.default,Zu=function(e){throw new Error("Could not require '"+e+"'. The 'requires' function was not provided.")},ec=function(e){var t=e===void 0?{}:e,r=t.requires,n=t.fetcher,o=r||Zu,s=n||Qu;return(0,Gu.default)(function(i){return s(i).then(function(u){var c={},d={exports:c},a=new Function("require","module","exports",u);return a(o,d,c),d.exports})})};Tt.createLoadRemoteModule=ec});var Qo=f(xt=>{"use strict";xt.__esModule=!0;xt.createRequires=void 0;var tc=function(e){return function(t){var r=e||{};if(!(t in r))throw new Error("Could not require '"+t+"'. '"+t+"' does not exist in dependencies.");return r[t]}};xt.createRequires=tc});var es=f(fe=>{"use strict";var Zo=fe&&fe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]});fe.__esModule=!0;fe.createRequires=fe.default=void 0;var rc=Yo();Zo(fe,rc,"createLoadRemoteModule","default");var nc=Qo();Zo(fe,nc,"createRequires")});var rs=f(Le=>{"use strict";var oc=Le&&Le.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Le.__esModule=!0;Le.createUseRemoteComponent=void 0;var ts=require("react"),sc=oc(es()),ic=function(e){var t=sc.default(e),r=function(n){var o=ts.useState({loading:!0,err:void 0,component:void 0}),s=o[0],i=s.loading,u=s.err,c=s.component,d=o[1];return ts.useEffect(function(){var a=d;return a({loading:!0,err:void 0,component:void 0}),t(n).then(function(l){return a({loading:!1,err:void 0,component:l.default})}).catch(function(l){return a({loading:!1,err:l,component:void 0})}),function(){a=function(){}}},[n]),[i,u,c]};return r};Le.createUseRemoteComponent=ic});var us=f(Ue=>{"use strict";var as=Ue&&Ue.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ue,"__esModule",{value:!0});Ue.Close=void 0;var lc=as(require("styled-components")),dc=as(require("react")),fc=lc.default.div`
8
+ `+s),e.push(o+"m+"+yt.exports.humanize(this.diff)+"")}else e[0]=La()+t+" "+e[0]}function La(){return j.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Ia(...e){return process.stderr.write(gt.format(...e)+`
9
+ `)}function Ua(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function Va(){return process.env.DEBUG}function $a(e){e.inspectOpts={};let t=Object.keys(j.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=j.inspectOpts[t[r]]}yt.exports=Xt()(j);var{formatters:Ln}=yt.exports;Ln.o=function(e){return this.inspectOpts.colors=this.useColors,gt.inspect(e,this.inspectOpts).split(`
10
+ `).map(t=>t.trim()).join(" ")};Ln.O=function(e){return this.inspectOpts.colors=this.useColors,gt.inspect(e,this.inspectOpts)}});var Un=f((yl,Zt)=>{typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?Zt.exports=kn():Zt.exports=In()});var $n=f((bl,Vn)=>{var ze;Vn.exports=function(){if(!ze){try{ze=Un()("follow-redirects")}catch{}typeof ze!="function"&&(ze=function(){})}ze.apply(null,arguments)}});var or=f((wl,nr)=>{var Ce=require("url"),er=Ce.URL,Ha=require("http"),za=require("https"),Hn=require("stream").Writable,Ja=require("assert"),zn=$n(),_e=["abort","aborted","connect","error","socket","timeout"],tr=Object.create(null);_e.forEach(function(e){tr[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var Jn=bt("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Ka=bt("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),Ga=bt("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Wa=bt("ERR_STREAM_WRITE_AFTER_END","write after end");function K(e,t){Hn.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(n){r._processResponse(n)},this._performRequest()}K.prototype=Object.create(Hn.prototype);K.prototype.abort=function(){Wn(this._currentRequest),this.emit("abort")};K.prototype.write=function(e,t,r){if(this._ending)throw new Wa;if(!(typeof e=="string"||typeof e=="object"&&"length"in e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(typeof t=="function"&&(r=t,t=null),e.length===0){r&&r();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new Ga),this.abort())};K.prototype.end=function(e,t,r){if(typeof e=="function"?(r=e,e=t=null):typeof t=="function"&&(r=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,o=this._currentRequest;this.write(e,t,function(){n._ended=!0,o.end(null,null,r)}),this._ending=!0}};K.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)};K.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)};K.prototype.setTimeout=function(e,t){var r=this;function n(i){i.setTimeout(e),i.removeListener("timeout",i.destroy),i.addListener("timeout",i.destroy)}function o(i){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),s()},e),n(i)}function s(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",s),r.removeListener("error",s),r.removeListener("response",s),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",o)}return t&&this.on("timeout",t),this.socket?o(this.socket):this._currentRequest.once("socket",o),this.on("socket",n),this.on("abort",s),this.on("error",s),this.on("response",s),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){K.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(K.prototype,e,{get:function(){return this._currentRequest[e]}})});K.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}};K.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t){this.emit("error",new TypeError("Unsupported protocol "+e));return}if(this._options.agents){var r=e.substr(0,e.length-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);this._currentUrl=Ce.format(this._options),n._redirectable=this;for(var o=0;o<_e.length;o++)n.on(_e[o],tr[_e[o]]);if(this._isRedirect){var s=0,i=this,u=this._requestBodyBuffers;(function c(d){if(n===i._currentRequest)if(d)i.emit("error",d);else if(s<u.length){var a=u[s++];n.finished||n.write(a.data,a.encoding,c)}else i._ended&&n.end()})()}};K.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(r&&this._options.followRedirects!==!1&&t>=300&&t<400){if(Wn(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new Ka);return}((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],rr(/^content-/i,this._options.headers));var n=rr(/^host$/i,this._options.headers),o=Ce.parse(this._currentUrl),s=n||o.host,i=/^\w+:/.test(r)?this._currentUrl:Ce.format(Object.assign(o,{host:s})),u;try{u=Ce.resolve(i,r)}catch(a){this.emit("error",new Jn(a));return}zn("redirecting to",u),this._isRedirect=!0;var c=Ce.parse(u);if(Object.assign(this._options,c),c.host===s||Ya(c.host,s)||rr(/^authorization$/i,this._options.headers),typeof this._options.beforeRedirect=="function"){var d={headers:e.headers};try{this._options.beforeRedirect.call(null,this._options,d)}catch(a){this.emit("error",a);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(a){this.emit("error",new Jn(a))}}else e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[]};function Kn(e){var t={maxRedirects:21,maxBodyLength:10*1024*1024},r={};return Object.keys(e).forEach(function(n){var o=n+":",s=r[o]=e[n],i=t[n]=Object.create(s);function u(d,a,l){if(typeof d=="string"){var p=d;try{d=Gn(new er(p))}catch{d=Ce.parse(p)}}else er&&d instanceof er?d=Gn(d):(l=a,a=d,d={protocol:o});return typeof a=="function"&&(l=a,a=null),a=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},d,a),a.nativeProtocols=r,Ja.equal(a.protocol,o,"protocol mismatch"),zn("options",a),new K(a,l)}function c(d,a,l){var p=i.request(d,a,l);return p.end(),p}Object.defineProperties(i,{request:{value:u,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),t}function Xa(){}function Gn(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return e.port!==""&&(t.port=Number(e.port)),t}function rr(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return r===null||typeof r=="undefined"?void 0:String(r).trim()}function bt(e,t){function r(n){Error.captureStackTrace(this,this.constructor),n?(this.message=t+": "+n.message,this.cause=n):this.message=t}return r.prototype=new Error,r.prototype.constructor=r,r.prototype.name="Error ["+e+"]",r.prototype.code=e,r}function Wn(e){for(var t=0;t<_e.length;t++)e.removeListener(_e[t],tr[_e[t]]);e.on("error",Xa),e.abort()}function Ya(e,t){let r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}nr.exports=Kn({http:Ha,https:za});nr.exports.wrap=Kn});var wt=f((Ol,Xn)=>{Xn.exports={version:"0.24.0"}});var ro=f((Cl,to)=>{"use strict";var Je=V(),Yn=zt(),Qa=Jt(),Za=ct(),eu=require("http"),tu=require("https"),ru=or().http,nu=or().https,Qn=require("url"),ou=require("zlib"),su=wt().version,Ot=ft(),sr=dt(),iu=Pe(),au=Se(),Zn=/https:?/;function eo(e,t,r){if(e.hostname=t.host,e.host=t.host,e.port=t.port,e.path=r,t.auth){var n=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+n}e.beforeRedirect=function(s){s.headers.host=s.host,eo(s,t,s.href)}}to.exports=function(t){return new Promise(function(n,o){var s;function i(){t.cancelToken&&t.cancelToken.unsubscribe(s),t.signal&&t.signal.removeEventListener("abort",s)}var u=function(v){i(),n(v)},c=function(v){i(),o(v)},d=t.data,a=t.headers,l={};if(Object.keys(a).forEach(function(v){l[v.toLowerCase()]=v}),"user-agent"in l?a[l["user-agent"]]||delete a[l["user-agent"]]:a["User-Agent"]="axios/"+su,d&&!Je.isStream(d)){if(!Buffer.isBuffer(d))if(Je.isArrayBuffer(d))d=Buffer.from(new Uint8Array(d));else if(Je.isString(d))d=Buffer.from(d,"utf-8");else return c(Ot("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",t));l["content-length"]||(a["Content-Length"]=d.length)}var p=void 0;if(t.auth){var F=t.auth.username||"",Z=t.auth.password||"";p=F+":"+Z}var x=Qa(t.baseURL,t.url),m=Qn.parse(x),g=m.protocol||"http:";if(!p&&m.auth){var C=m.auth.split(":"),O=C[0]||"",S=C[1]||"";p=O+":"+S}p&&l.authorization&&delete a[l.authorization];var me=Zn.test(g),ve=me?t.httpsAgent:t.httpAgent,X={path:Za(m.path,t.params,t.paramsSerializer).replace(/^\?/,""),method:t.method.toUpperCase(),headers:a,agent:ve,agents:{http:t.httpAgent,https:t.httpsAgent},auth:p};t.socketPath?X.socketPath=t.socketPath:(X.hostname=m.hostname,X.port=m.port);var ee=t.proxy;if(!ee&&ee!==!1){var Ze=g.slice(0,-1)+"_proxy",br=process.env[Ze]||process.env[Ze.toUpperCase()];if(br){var $e=Qn.parse(br),wr=process.env.no_proxy||process.env.NO_PROXY,Or=!0;if(wr){var vs=wr.split(",").map(function(v){return v.trim()});Or=!vs.some(function(v){return v?v==="*"||v[0]==="."&&m.hostname.substr(m.hostname.length-v.length)===v?!0:m.hostname===v:!1})}if(Or&&(ee={host:$e.hostname,port:$e.port,protocol:$e.protocol},$e.auth)){var Cr=$e.auth.split(":");ee.auth={username:Cr[0],password:Cr[1]}}}}ee&&(X.headers.host=m.hostname+(m.port?":"+m.port:""),eo(X,ee,g+"//"+m.hostname+(m.port?":"+m.port:"")+X.path));var et,_r=me&&(ee?Zn.test(ee.protocol):!0);t.transport?et=t.transport:t.maxRedirects===0?et=_r?tu:eu:(t.maxRedirects&&(X.maxRedirects=t.maxRedirects),et=_r?nu:ru),t.maxBodyLength>-1&&(X.maxBodyLength=t.maxBodyLength),t.insecureHTTPParser&&(X.insecureHTTPParser=t.insecureHTTPParser);var U=et.request(X,function(v){if(!U.aborted){var ge=v,tt=v.req||U;if(v.statusCode!==204&&tt.method!=="HEAD"&&t.decompress!==!1)switch(v.headers["content-encoding"]){case"gzip":case"compress":case"deflate":ge=ge.pipe(ou.createUnzip()),delete v.headers["content-encoding"];break}var rt={status:v.statusCode,statusText:v.statusMessage,headers:v.headers,config:t,request:tt};if(t.responseType==="stream")rt.data=ge,Yn(u,c,rt);else{var Er=[],qr=0;ge.on("data",function(te){Er.push(te),qr+=te.length,t.maxContentLength>-1&&qr>t.maxContentLength&&(ge.destroy(),c(Ot("maxContentLength size of "+t.maxContentLength+" exceeded",t,null,tt)))}),ge.on("error",function(te){U.aborted||c(sr(te,t,null,tt))}),ge.on("end",function(){var te=Buffer.concat(Er);t.responseType!=="arraybuffer"&&(te=te.toString(t.responseEncoding),(!t.responseEncoding||t.responseEncoding==="utf8")&&(te=Je.stripBOM(te))),rt.data=te,Yn(u,c,rt)})}}});if(U.on("error",function(v){U.aborted&&v.code!=="ERR_FR_TOO_MANY_REDIRECTS"||c(sr(v,t,null,U))}),t.timeout){var kt=parseInt(t.timeout,10);if(isNaN(kt)){c(Ot("error trying to parse `config.timeout` to int",t,"ERR_PARSE_TIMEOUT",U));return}U.setTimeout(kt,function(){U.abort();var v=t.transitional||iu.transitional;c(Ot("timeout of "+kt+"ms exceeded",t,v.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",U))})}(t.cancelToken||t.signal)&&(s=function(H){U.aborted||(U.abort(),c(!H||H&&H.type?new au("canceled"):H))},t.cancelToken&&t.cancelToken.subscribe(s),t.signal&&(t.signal.aborted?s():t.signal.addEventListener("abort",s))),Je.isStream(d)?d.on("error",function(v){c(sr(v,t,null,U))}).pipe(U):U.end(d)})}});var Pe=f((_l,so)=>{"use strict";var k=V(),no=dn(),uu=dt(),cu={"Content-Type":"application/x-www-form-urlencoded"};function oo(e,t){!k.isUndefined(e)&&k.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function lu(){var e;return typeof XMLHttpRequest!="undefined"?e=xn():typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]"&&(e=ro()),e}function du(e,t,r){if(k.isString(e))try{return(t||JSON.parse)(e),k.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var Ct={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:lu(),transformRequest:[function(t,r){return no(r,"Accept"),no(r,"Content-Type"),k.isFormData(t)||k.isArrayBuffer(t)||k.isBuffer(t)||k.isStream(t)||k.isFile(t)||k.isBlob(t)?t:k.isArrayBufferView(t)?t.buffer:k.isURLSearchParams(t)?(oo(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):k.isObject(t)||r&&r["Content-Type"]==="application/json"?(oo(r,"application/json"),du(t)):t}],transformResponse:[function(t){var r=this.transitional||Ct.transitional,n=r&&r.silentJSONParsing,o=r&&r.forcedJSONParsing,s=!n&&this.responseType==="json";if(s||o&&k.isString(t)&&t.length)try{return JSON.parse(t)}catch(i){if(s)throw i.name==="SyntaxError"?uu(i,this,"E_JSON_PARSE"):i}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};k.forEach(["delete","get","head"],function(t){Ct.headers[t]={}});k.forEach(["post","put","patch"],function(t){Ct.headers[t]=k.merge(cu)});so.exports=Ct});var ao=f((El,io)=>{"use strict";var fu=V(),pu=Pe();io.exports=function(t,r,n){var o=this||pu;return fu.forEach(n,function(i){t=i.call(o,t,r)}),t}});var ir=f((ql,uo)=>{"use strict";uo.exports=function(t){return!!(t&&t.__CANCEL__)}});var fo=f((Al,lo)=>{"use strict";var co=V(),ar=ao(),hu=ir(),mu=Pe(),vu=Se();function ur(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new vu("canceled")}lo.exports=function(t){ur(t),t.headers=t.headers||{},t.data=ar.call(t,t.data,t.headers,t.transformRequest),t.headers=co.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),co.forEach(["delete","get","head","post","put","patch","common"],function(o){delete t.headers[o]});var r=t.adapter||mu.adapter;return r(t).then(function(o){return ur(t),o.data=ar.call(t,o.data,o.headers,t.transformResponse),o},function(o){return hu(o)||(ur(t),o&&o.response&&(o.response.data=ar.call(t,o.response.data,o.response.headers,t.transformResponse))),Promise.reject(o)})}});var cr=f((Rl,po)=>{"use strict";var G=V();po.exports=function(t,r){r=r||{};var n={};function o(a,l){return G.isPlainObject(a)&&G.isPlainObject(l)?G.merge(a,l):G.isPlainObject(l)?G.merge({},l):G.isArray(l)?l.slice():l}function s(a){if(G.isUndefined(r[a])){if(!G.isUndefined(t[a]))return o(void 0,t[a])}else return o(t[a],r[a])}function i(a){if(!G.isUndefined(r[a]))return o(void 0,r[a])}function u(a){if(G.isUndefined(r[a])){if(!G.isUndefined(t[a]))return o(void 0,t[a])}else return o(void 0,r[a])}function c(a){if(a in r)return o(t[a],r[a]);if(a in t)return o(void 0,t[a])}var d={url:i,method:i,data:i,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:c};return G.forEach(Object.keys(t).concat(Object.keys(r)),function(l){var p=d[l]||s,F=p(l);G.isUndefined(F)&&p!==c||(n[l]=F)}),n}});var vo=f((Tl,mo)=>{"use strict";var gu=wt().version,lr={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){lr[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var ho={};lr.transitional=function(t,r,n){function o(s,i){return"[Axios v"+gu+"] Transitional option '"+s+"'"+i+(n?". "+n:"")}return function(s,i,u){if(t===!1)throw new Error(o(i," has been removed"+(r?" in "+r:"")));return r&&!ho[i]&&(ho[i]=!0,console.warn(o(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,i,u):!0}};function yu(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),o=n.length;o-- >0;){var s=n[o],i=t[s];if(i){var u=e[s],c=u===void 0||i(u,s,e);if(c!==!0)throw new TypeError("option "+s+" must be "+c);continue}if(r!==!0)throw Error("Unknown option "+s)}}mo.exports={assertOptions:yu,validators:lr}});var Co=f((xl,Oo)=>{"use strict";var go=V(),bu=ct(),yo=cn(),bo=fo(),_t=cr(),wo=vo(),De=wo.validators;function Ke(e){this.defaults=e,this.interceptors={request:new yo,response:new yo}}Ke.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=_t(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;r!==void 0&&wo.assertOptions(r,{silentJSONParsing:De.transitional(De.boolean),forcedJSONParsing:De.transitional(De.boolean),clarifyTimeoutError:De.transitional(De.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(t)===!1||(o=o&&p.synchronous,n.unshift(p.fulfilled,p.rejected))});var s=[];this.interceptors.response.forEach(function(p){s.push(p.fulfilled,p.rejected)});var i;if(!o){var u=[bo,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(s),i=Promise.resolve(t);u.length;)i=i.then(u.shift(),u.shift());return i}for(var c=t;n.length;){var d=n.shift(),a=n.shift();try{c=d(c)}catch(l){a(l);break}}try{i=bo(c)}catch(l){return Promise.reject(l)}for(;s.length;)i=i.then(s.shift(),s.shift());return i};Ke.prototype.getUri=function(t){return t=_t(this.defaults,t),bu(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};go.forEach(["delete","get","head","options"],function(t){Ke.prototype[t]=function(r,n){return this.request(_t(n||{},{method:t,url:r,data:(n||{}).data}))}});go.forEach(["post","put","patch"],function(t){Ke.prototype[t]=function(r,n,o){return this.request(_t(o||{},{method:t,url:r,data:n}))}});Oo.exports=Ke});var Eo=f((Sl,_o)=>{"use strict";var wu=Se();function Me(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(o){t=o});var r=this;this.promise.then(function(n){if(!!r._listeners){var o,s=r._listeners.length;for(o=0;o<s;o++)r._listeners[o](n);r._listeners=null}}),this.promise.then=function(n){var o,s=new Promise(function(i){r.subscribe(i),o=i}).then(n);return s.cancel=function(){r.unsubscribe(o)},s},e(function(o){r.reason||(r.reason=new wu(o),t(r.reason))})}Me.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};Me.prototype.subscribe=function(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]};Me.prototype.unsubscribe=function(t){if(!!this._listeners){var r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}};Me.source=function(){var t,r=new Me(function(o){t=o});return{token:r,cancel:t}};_o.exports=Me});var Ao=f((Pl,qo)=>{"use strict";qo.exports=function(t){return function(n){return t.apply(null,n)}}});var To=f((jl,Ro)=>{"use strict";Ro.exports=function(t){return typeof t=="object"&&t.isAxiosError===!0}});var Po=f((kl,dr)=>{"use strict";var xo=V(),Ou=It(),Et=Co(),Cu=cr(),_u=Pe();function So(e){var t=new Et(e),r=Ou(Et.prototype.request,t);return xo.extend(r,Et.prototype,t),xo.extend(r,t),r.create=function(o){return So(Cu(e,o))},r}var ne=So(_u);ne.Axios=Et;ne.Cancel=Se();ne.CancelToken=Eo();ne.isCancel=ir();ne.VERSION=wt().version;ne.all=function(t){return Promise.all(t)};ne.spread=Ao();ne.isAxiosError=To();dr.exports=ne;dr.exports.default=ne});var fr=f((Fl,jo)=>{jo.exports=Po()});var Do=f(W=>{var Eu=W&&W.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(W,"__esModule",{value:!0});W.RequiredError=W.BaseAPI=W.COLLECTION_FORMATS=W.BASE_PATH=void 0;var qu=Eu(fr());W.BASE_PATH="https://api.analytica.click".replace(/\/+$/,"");W.COLLECTION_FORMATS={csv:",",ssv:" ",tsv:" ",pipes:"|"};var ko=class{constructor(t,r=W.BASE_PATH,n=qu.default){this.basePath=r,this.axios=n,t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)}};W.BaseAPI=ko;var Fo=class extends Error{constructor(t,r){super(r);this.field=t,this.name="RequiredError"}};W.RequiredError=Fo});var Bo=f(h=>{var Au=h&&h.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Ru=h&&h.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Tu=h&&h.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Au(t,e,r);return Ru(t,e),t},A=h&&h.__awaiter||function(e,t,r,n){function o(s){return s instanceof r?s:new r(function(i){i(s)})}return new(r||(r=Promise))(function(s,i){function u(a){try{d(n.next(a))}catch(l){i(l)}}function c(a){try{d(n.throw(a))}catch(l){i(l)}}function d(a){a.done?s(a.value):o(a.value).then(u,c)}d((n=n.apply(e,t||[])).next())})},xu=h&&h.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(h,"__esModule",{value:!0});h.DefaultApi=h.DefaultApiFactory=h.DefaultApiFp=h.DefaultApiAxiosParamCreator=h.Sentiment=void 0;var R=Tu(require("url")),se=xu(fr()),w=Do(),Su;(function(e){e.Good="good",e.Bad="bad",e.Neutral="neutral"})(Su=h.Sentiment||(h.Sentiment={}));var Pu=function(e){return{accountGet:(t={})=>A(this,void 0,void 0,function*(){let r="/account",n=R.parse(r,!0),o;e&&(o=e.baseOptions);let s=Object.assign(Object.assign({method:"GET"},o),t),i={},u={};if(e&&e.apiKey){let d=typeof e.apiKey=="function"?yield e.apiKey("authorization"):yield e.apiKey;i.authorization=d}n.query=Object.assign(Object.assign(Object.assign({},n.query),u),t.query),delete n.search;let c=o&&o.headers?o.headers:{};return s.headers=Object.assign(Object.assign(Object.assign({},i),c),t.headers),{url:R.format(n),options:s}}),bingIntegrationPost:(t,r={})=>A(this,void 0,void 0,function*(){if(t==null)throw new w.RequiredError("bingIntegration","Required parameter bingIntegration was null or undefined when calling bingIntegrationPost.");let n="/account/integrations/bing",o=R.parse(n,!0),s;e&&(s=e.baseOptions);let i=Object.assign(Object.assign({method:"POST"},s),r),u={},c={};if(e&&e.apiKey){let l=typeof e.apiKey=="function"?yield e.apiKey("authorization"):yield e.apiKey;u.authorization=l}u["Content-Type"]="application/json",o.query=Object.assign(Object.assign(Object.assign({},o.query),c),r.query),delete o.search;let d=s&&s.headers?s.headers:{};i.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers);let a=typeof t!="string"||i.headers["Content-Type"]==="application/json";return i.data=a?JSON.stringify(t!==void 0?t:{}):t||"",{url:R.format(o),options:i}}),getTrackingAllSites:(t,r,n={})=>A(this,void 0,void 0,function*(){if(t==null)throw new w.RequiredError("minDate","Required parameter minDate was null or undefined when calling getTrackingAllSites.");if(r==null)throw new w.RequiredError("maxDate","Required parameter maxDate was null or undefined when calling getTrackingAllSites.");let o="/site/tracking",s=R.parse(o,!0),i;e&&(i=e.baseOptions);let u=Object.assign(Object.assign({method:"GET"},i),n),c={},d={};if(e&&e.apiKey){let l=typeof e.apiKey=="function"?yield e.apiKey("authorization"):yield e.apiKey;c.authorization=l}t!==void 0&&(d.minDate=t),r!==void 0&&(d.maxDate=r),s.query=Object.assign(Object.assign(Object.assign({},s.query),d),n.query),delete s.search;let a=i&&i.headers?i.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},c),a),n.headers),{url:R.format(s),options:u}}),getTrackingSite:(t,r,n,o={})=>A(this,void 0,void 0,function*(){if(t==null)throw new w.RequiredError("id","Required parameter id was null or undefined when calling getTrackingSite.");if(r==null)throw new w.RequiredError("minDate","Required parameter minDate was null or undefined when calling getTrackingSite.");if(n==null)throw new w.RequiredError("maxDate","Required parameter maxDate was null or undefined when calling getTrackingSite.");let s="/site/tracking/{id}".replace("{id}",encodeURIComponent(String(t))),i=R.parse(s,!0),u;e&&(u=e.baseOptions);let c=Object.assign(Object.assign({method:"GET"},u),o),d={},a={};if(e&&e.apiKey){let p=typeof e.apiKey=="function"?yield e.apiKey("authorization"):yield e.apiKey;d.authorization=p}r!==void 0&&(a.minDate=r),n!==void 0&&(a.maxDate=n),i.query=Object.assign(Object.assign(Object.assign({},i.query),a),o.query),delete i.search;let l=u&&u.headers?u.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},d),l),o.headers),{url:R.format(i),options:c}}),googleIntegrationPost:(t,r={})=>A(this,void 0,void 0,function*(){if(t==null)throw new w.RequiredError("googleIntegration","Required parameter googleIntegration was null or undefined when calling googleIntegrationPost.");let n="/account/integrations/google",o=R.parse(n,!0),s;e&&(s=e.baseOptions);let i=Object.assign(Object.assign({method:"POST"},s),r),u={},c={};if(e&&e.apiKey){let l=typeof e.apiKey=="function"?yield e.apiKey("authorization"):yield e.apiKey;u.authorization=l}u["Content-Type"]="application/json",o.query=Object.assign(Object.assign(Object.assign({},o.query),c),r.query),delete o.search;let d=s&&s.headers?s.headers:{};i.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers);let a=typeof t!="string"||i.headers["Content-Type"]==="application/json";return i.data=a?JSON.stringify(t!==void 0?t:{}):t||"",{url:R.format(o),options:i}}),postError:(t,r={})=>A(this,void 0,void 0,function*(){if(t==null)throw new w.RequiredError("postError","Required parameter postError was null or undefined when calling postError.");let n="/error",o=R.parse(n,!0),s;e&&(s=e.baseOptions);let i=Object.assign(Object.assign({method:"POST"},s),r),u={},c={};u["Content-Type"]="application/json",o.query=Object.assign(Object.assign(Object.assign({},o.query),c),r.query),delete o.search;let d=s&&s.headers?s.headers:{};i.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers);let a=typeof t!="string"||i.headers["Content-Type"]==="application/json";return i.data=a?JSON.stringify(t!==void 0?t:{}):t||"",{url:R.format(o),options:i}}),postPageTrack:(t,r={})=>A(this,void 0,void 0,function*(){if(t==null)throw new w.RequiredError("postSiteTrack","Required parameter postSiteTrack was null or undefined when calling postPageTrack.");let n="/site",o=R.parse(n,!0),s;e&&(s=e.baseOptions);let i=Object.assign(Object.assign({method:"POST"},s),r),u={},c={};u["Content-Type"]="application/json",o.query=Object.assign(Object.assign(Object.assign({},o.query),c),r.query),delete o.search;let d=s&&s.headers?s.headers:{};i.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers);let a=typeof t!="string"||i.headers["Content-Type"]==="application/json";return i.data=a?JSON.stringify(t!==void 0?t:{}):t||"",{url:R.format(o),options:i}}),putFeedback:(t,r={})=>A(this,void 0,void 0,function*(){if(t==null)throw new w.RequiredError("feedbackPutData","Required parameter feedbackPutData was null or undefined when calling putFeedback.");let n="/feedback",o=R.parse(n,!0),s;e&&(s=e.baseOptions);let i=Object.assign(Object.assign({method:"PUT"},s),r),u={},c={};u["Content-Type"]="application/json",o.query=Object.assign(Object.assign(Object.assign({},o.query),c),r.query),delete o.search;let d=s&&s.headers?s.headers:{};i.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers);let a=typeof t!="string"||i.headers["Content-Type"]==="application/json";return i.data=a?JSON.stringify(t!==void 0?t:{}):t||"",{url:R.format(o),options:i}}),sitePost:(t,r={})=>A(this,void 0,void 0,function*(){if(t==null)throw new w.RequiredError("postAccount","Required parameter postAccount was null or undefined when calling sitePost.");let n="/account/site",o=R.parse(n,!0),s;e&&(s=e.baseOptions);let i=Object.assign(Object.assign({method:"POST"},s),r),u={},c={};if(e&&e.apiKey){let l=typeof e.apiKey=="function"?yield e.apiKey("authorization"):yield e.apiKey;u.authorization=l}u["Content-Type"]="application/json",o.query=Object.assign(Object.assign(Object.assign({},o.query),c),r.query),delete o.search;let d=s&&s.headers?s.headers:{};i.headers=Object.assign(Object.assign(Object.assign({},u),d),r.headers);let a=typeof t!="string"||i.headers["Content-Type"]==="application/json";return i.data=a?JSON.stringify(t!==void 0?t:{}):t||"",{url:R.format(o),options:i}})}};h.DefaultApiAxiosParamCreator=Pu;var ju=function(e){return{accountGet(t){return A(this,void 0,void 0,function*(){let r=yield(0,h.DefaultApiAxiosParamCreator)(e).accountGet(t);return(n=se.default,o=w.BASE_PATH)=>{let s=Object.assign(Object.assign({},r.options),{url:o+r.url});return n.request(s)}})},bingIntegrationPost(t,r){return A(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(e).bingIntegrationPost(t,r);return(o=se.default,s=w.BASE_PATH)=>{let i=Object.assign(Object.assign({},n.options),{url:s+n.url});return o.request(i)}})},getTrackingAllSites(t,r,n){return A(this,void 0,void 0,function*(){let o=yield(0,h.DefaultApiAxiosParamCreator)(e).getTrackingAllSites(t,r,n);return(s=se.default,i=w.BASE_PATH)=>{let u=Object.assign(Object.assign({},o.options),{url:i+o.url});return s.request(u)}})},getTrackingSite(t,r,n,o){return A(this,void 0,void 0,function*(){let s=yield(0,h.DefaultApiAxiosParamCreator)(e).getTrackingSite(t,r,n,o);return(i=se.default,u=w.BASE_PATH)=>{let c=Object.assign(Object.assign({},s.options),{url:u+s.url});return i.request(c)}})},googleIntegrationPost(t,r){return A(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(e).googleIntegrationPost(t,r);return(o=se.default,s=w.BASE_PATH)=>{let i=Object.assign(Object.assign({},n.options),{url:s+n.url});return o.request(i)}})},postError(t,r){return A(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(e).postError(t,r);return(o=se.default,s=w.BASE_PATH)=>{let i=Object.assign(Object.assign({},n.options),{url:s+n.url});return o.request(i)}})},postPageTrack(t,r){return A(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(e).postPageTrack(t,r);return(o=se.default,s=w.BASE_PATH)=>{let i=Object.assign(Object.assign({},n.options),{url:s+n.url});return o.request(i)}})},putFeedback(t,r){return A(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(e).putFeedback(t,r);return(o=se.default,s=w.BASE_PATH)=>{let i=Object.assign(Object.assign({},n.options),{url:s+n.url});return o.request(i)}})},sitePost(t,r){return A(this,void 0,void 0,function*(){let n=yield(0,h.DefaultApiAxiosParamCreator)(e).sitePost(t,r);return(o=se.default,s=w.BASE_PATH)=>{let i=Object.assign(Object.assign({},n.options),{url:s+n.url});return o.request(i)}})}}};h.DefaultApiFp=ju;var ku=function(e,t,r){return{accountGet(n){return(0,h.DefaultApiFp)(e).accountGet(n).then(o=>o(r,t))},bingIntegrationPost(n,o){return(0,h.DefaultApiFp)(e).bingIntegrationPost(n,o).then(s=>s(r,t))},getTrackingAllSites(n,o,s){return(0,h.DefaultApiFp)(e).getTrackingAllSites(n,o,s).then(i=>i(r,t))},getTrackingSite(n,o,s,i){return(0,h.DefaultApiFp)(e).getTrackingSite(n,o,s,i).then(u=>u(r,t))},googleIntegrationPost(n,o){return(0,h.DefaultApiFp)(e).googleIntegrationPost(n,o).then(s=>s(r,t))},postError(n,o){return(0,h.DefaultApiFp)(e).postError(n,o).then(s=>s(r,t))},postPageTrack(n,o){return(0,h.DefaultApiFp)(e).postPageTrack(n,o).then(s=>s(r,t))},putFeedback(n,o){return(0,h.DefaultApiFp)(e).putFeedback(n,o).then(s=>s(r,t))},sitePost(n,o){return(0,h.DefaultApiFp)(e).sitePost(n,o).then(s=>s(r,t))}}};h.DefaultApiFactory=ku;var Mo=class extends w.BaseAPI{accountGet(t){return(0,h.DefaultApiFp)(this.configuration).accountGet(t).then(r=>r(this.axios,this.basePath))}bingIntegrationPost(t,r){return(0,h.DefaultApiFp)(this.configuration).bingIntegrationPost(t,r).then(n=>n(this.axios,this.basePath))}getTrackingAllSites(t,r,n){return(0,h.DefaultApiFp)(this.configuration).getTrackingAllSites(t,r,n).then(o=>o(this.axios,this.basePath))}getTrackingSite(t,r,n,o){return(0,h.DefaultApiFp)(this.configuration).getTrackingSite(t,r,n,o).then(s=>s(this.axios,this.basePath))}googleIntegrationPost(t,r){return(0,h.DefaultApiFp)(this.configuration).googleIntegrationPost(t,r).then(n=>n(this.axios,this.basePath))}postError(t,r){return(0,h.DefaultApiFp)(this.configuration).postError(t,r).then(n=>n(this.axios,this.basePath))}postPageTrack(t,r){return(0,h.DefaultApiFp)(this.configuration).postPageTrack(t,r).then(n=>n(this.axios,this.basePath))}putFeedback(t,r){return(0,h.DefaultApiFp)(this.configuration).putFeedback(t,r).then(n=>n(this.axios,this.basePath))}sitePost(t,r){return(0,h.DefaultApiFp)(this.configuration).sitePost(t,r).then(n=>n(this.axios,this.basePath))}};h.DefaultApi=Mo});var $o=f(Rt=>{"use strict";Rt.__esModule=!0;Rt.createRequires=void 0;var Lu=function(e){return typeof e=="function"?e():e||{}},Iu=function(e){var t=!1;return function(r){if(t||(e=Lu(e),t=!0),!(r in e))throw new Error("Could not require '"+r+"'. '"+r+"' does not exist in dependencies.");return e[r]}};Rt.createRequires=Iu});var Ho=f(mr=>{"use strict";mr.__esModule=!0;var Uu=function(e){var t={};return function(r){return r in t||(t[r]=e(r)),t[r]}};mr.default=Uu});var vr=f(Ne=>{"use strict";Ne.__esModule=!0;Ne.InternalServerError=Ne.OK=void 0;Ne.OK=200;Ne.InternalServerError=500});var zo=f(de=>{"use strict";de.__esModule=!0;de.DONE=de.OPENED=de.UNSENT=void 0;de.UNSENT=0;de.OPENED=1;de.DONE=4});var Jo=f(gr=>{"use strict";gr.__esModule=!0;var Vu=vr(),$u=zo(),Hu=function(e){return new Promise(function(t,r){var n=new XMLHttpRequest;n.onreadystatechange=function(){n.readyState===$u.DONE&&(n.status===Vu.OK?t(n.responseText):r(new Error("HTTP Error Response: "+n.status+" "+n.statusText+" ("+e+")")))},n.open("GET",e,!0),n.send()})};gr.default=Hu});var Xo=f(We=>{"use strict";var Ko=We&&We.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,s;n<o;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))};We.__esModule=!0;var Go=require("http"),Wo=require("https"),zu=vr(),Ju=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return typeof e!="string"?{on:function(n,o){o(new Error("URL must be a string."))}}:e.indexOf("https://")===0?Wo.get.apply(Wo,Ko([e],t,!1)):Go.get.apply(Go,Ko([e],t,!1))},Ku=function(e){return new Promise(function(t,r){Ju(e,function(n){if(n.statusCode!==zu.OK)return r(new Error("HTTP Error Response: "+n.statusCode+" "+n.statusMessage+" ("+e+")"));var o=null;n.on("data",function(s){if(o===null){o=s;return}o+=s}),n.on("end",function(){return t(o)})}).on("error",r)})};We.default=Ku});var Yo=f(Tt=>{"use strict";Tt.__esModule=!0;Tt.createLoadRemoteModule=void 0;var Gu=Ho(),Wu=Jo(),Xu=Xo(),Yu=typeof window!="undefined"&&typeof window.document!="undefined",Qu=Yu?Wu.default:Xu.default,Zu=function(e){throw new Error("Could not require '"+e+"'. The 'requires' function was not provided.")},ec=function(e){var t=e===void 0?{}:e,r=t.requires,n=t.fetcher,o=r||Zu,s=n||Qu;return(0,Gu.default)(function(i){return s(i).then(function(u){var c={},d={exports:c},a=new Function("require","module","exports",u);return a(o,d,c),d.exports})})};Tt.createLoadRemoteModule=ec});var Qo=f(xt=>{"use strict";xt.__esModule=!0;xt.createRequires=void 0;var tc=function(e){return function(t){var r=e||{};if(!(t in r))throw new Error("Could not require '"+t+"'. '"+t+"' does not exist in dependencies.");return r[t]}};xt.createRequires=tc});var es=f(fe=>{"use strict";var Zo=fe&&fe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]});fe.__esModule=!0;fe.createRequires=fe.default=void 0;var rc=Yo();Zo(fe,rc,"createLoadRemoteModule","default");var nc=Qo();Zo(fe,nc,"createRequires")});var rs=f(Le=>{"use strict";var oc=Le&&Le.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Le.__esModule=!0;Le.createUseRemoteComponent=void 0;var ts=require("react"),sc=oc(es()),ic=function(e){var t=sc.default(e),r=function(n){var o=ts.useState({loading:!0,err:void 0,component:void 0}),s=o[0],i=s.loading,u=s.err,c=s.component,d=o[1];return ts.useEffect(function(){var a=d;return a({loading:!0,err:void 0,component:void 0}),t(n).then(function(l){return a({loading:!1,err:void 0,component:l.default})}).catch(function(l){return a({loading:!1,err:l,component:void 0})}),function(){a=function(){}}},[n]),[i,u,c]};return r};Le.createUseRemoteComponent=ic});var us=f(Ue=>{"use strict";var as=Ue&&Ue.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ue,"__esModule",{value:!0});Ue.Close=void 0;var lc=as(require("styled-components")),dc=as(require("react")),fc=lc.default.div`
11
11
  position: absolute;
12
12
  width: 32px;
13
13
  height: 32px;
@@ -74,4 +74,4 @@ var gs=Object.create;var He=Object.defineProperty,ys=Object.defineProperties,bs=
74
74
  }
75
75
  `;var Ec=({open:e,setOpen:t,children:r,position:n="left",topPosition:o="bottom",showCloseButton:s=!0,closeOnMoveMouseOutside:i=!1,className:u})=>{let c=(0,pe.useRef)(null);return(0,Oc.useOnClickOutside)({ref:c,moveMouseOutside:i},()=>{e&&t(!1)}),e?pe.default.createElement(Cc,{className:u},pe.default.createElement(_c,{"data-position":n,"data-topposition":o,ref:c},s&&pe.default.createElement(wc.Close,{onClick:()=>t(!1)}),r)):pe.default.createElement(pe.default.Fragment,null)};T.Modal=Ec;var qc=e=>pe.default.createElement(T.Modal,Object.assign({},e,{className:e.className}),e.options.map((t,r)=>pe.default.createElement(T.ModalItem,{key:t,onClick:n=>{var o;n.stopPropagation(),n.preventDefault(),(o=e.onSelect)===null||o===void 0||o.call(e,r,n),e.setOpen(!1)}},t)));T.ModalDropList=qc});var ps=f(Ve=>{var ds=Ve&&Ve.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ve,"__esModule",{value:!0});Ve.ErrorBoundary=void 0;var Ac=ls(),jt=ds(require("react")),Rc=ds(require("styled-components")),Tc=Rc.default.div`
76
76
  font-size: 2rem;
77
- `,fs=class extends jt.default.Component{constructor(t){super(t);this.state={hasError:void 0}}static getDerivedStateFromError(t){var r;let n=typeof window!="undefined"&&((r=window==null?void 0:window.location)===null||r===void 0?void 0:r.href);return{hasError:Object.assign(Object.assign(Object.assign(Object.assign({},t),{message:(t==null?void 0:t.message)||t}),(t==null?void 0:t.stack)&&{stack:t==null?void 0:t.stack}),n&&{href:n})}}render(){let{hasError:t}=this.state,{children:r,notify:n}=this.props;return t?(n&&n(t),jt.default.createElement(Ac.Modal,{open:!0,setOpen:()=>{}},jt.default.createElement(Tc,null,"A fatal error has occurred - the admin has been notified.",jt.default.createElement("button",{type:"button",onClick:()=>window.location.reload()},"Press here to restart app")))):r}};Ve.ErrorBoundary=fs});var Pc={};Es(Pc,{AnalyticaConfigContext:()=>Q,AnalyticaConfigProvider:()=>Mu,ErrorBoundary:()=>Sc,ExternalComponent:()=>Qe,Feedback:()=>uc,GenerateCognitoAuth:()=>cc,errorTrack:()=>Ee,feedback:()=>At,page:()=>Vo,tokenMissing:()=>ie,track:()=>hr,useFeedback:()=>Bu,useTrack:()=>Nu});var is=M(be()),Ie=M(require("react"));var Ge=M(be()),Io=require("react");var le=M(require("react"));var pr=M(be());var No=M(en()),Lo=M(Bo());function Be(e){return(0,No.callOpenApi)(D(_({},e),{func:t=>e.func(t),newDefaultApi:t=>new Lo.DefaultApi(t),logout:()=>window.location.reload(),refreshToken:()=>z(this,null,function*(){})}))}var Ee=r=>z(void 0,[r],function*({data:e,overrideBaseUrl:t="https://api.analytica.click"}){var o;if(typeof window!="undefined"&&((o=window==null?void 0:window.location)==null?void 0:o.hostname)==="localhost")return(0,pr.debug)(`local error tracking ignored:${e.data.message} ${JSON.stringify(e)}, to ${t}`),{};(0,pr.debug)("error track",e.data.message,JSON.stringify(e));let n=yield Be({apiUrl:t,func:s=>s.postError(e)});return n.error?{error:n.error.message}:{}});var Fu={analyticaToken:void 0,overrideBaseUrl:void 0},Q=le.default.createContext(Fu);function Du(e){if(!e.analyticaToken)return;let t=window.console.error;window.console.error=(...n)=>Ee({data:{data:{href:window.location.href,message:JSON.stringify(n)},key:e.analyticaToken},overrideBaseUrl:e.overrideBaseUrl}).finally(()=>t(...n));let r=window.console.warn;window.console.warn=(...n)=>Ee({data:{data:{href:window.location.href,message:JSON.stringify(n)},key:e.analyticaToken},overrideBaseUrl:e.overrideBaseUrl}).finally(()=>r(...n))}var Mu=({children:e,values:t})=>{let[r,n]=(0,le.useState)(t);return(0,le.useEffect)(()=>{JSON.stringify(t)!==JSON.stringify(r)&&n(t)},[r,t]),(0,le.useEffect)(()=>{Du(t)},[]),le.default.createElement(Q.Provider,{value:r},e)};var ie=e=>`[Analytica.${e}] Please load analytica token in AnalyticaConfigProvider to use this component`;var At=n=>z(void 0,[n],function*({data:e,analyticaToken:t,overrideBaseUrl:r="https://api.analytica.click"}){var s;if(typeof window!="undefined"&&((s=window==null?void 0:window.location)==null?void 0:s.hostname)==="localhost")return(0,Ge.debug)(`local feedback ignored:${JSON.stringify(e)}, to ${r}`),{};(0,Ge.debug)("feedback",JSON.stringify(e));let o=yield Be({apiUrl:r,func:i=>i.putFeedback({key:t,data:e})});return o.error?{error:o.error.message}:{}}),Bu=()=>{let{analyticaToken:e,overrideBaseUrl:t}=(0,Io.useContext)(Q);return e?{trackWithToken:r=>At(D(_({},r),{analyticaToken:e,overrideBaseUrl:t}))}:((0,Ge.warn)(ie("useFeedback")),{trackWithToken:()=>({error:"no token"})})};var We=M(be()),Uo=require("react");var hr=o=>z(void 0,[o],function*({analyticaToken:e,userData:t,overrideBaseUrl:r="https://api.analytica.click",eventName:n}){var u,c,d;let s={eventName:n};if(typeof window!="undefined"&&(s=D(_({},s),{pageLocation:window.location.href,browserResolution:`${(u=window==null?void 0:window.screen)==null?void 0:u.width}:${(c=window==null?void 0:window.screen)==null?void 0:c.height}`})),typeof document!="undefined"&&(s=D(_({},s),{pageReferrer:document.referrer,pageTitle:document.title})),typeof navigator!="undefined"&&(s=D(_({},s),{browserLanguage:navigator.language})),typeof window!="undefined"&&((d=window==null?void 0:window.location)==null?void 0:d.hostname)==="localhost")return(0,We.debug)(`local page ignored: ${JSON.stringify(s)}, to ${r}`),{};(0,We.debug)("track",JSON.stringify(s));let i=yield Be({apiUrl:r,func:a=>a.postPageTrack({key:e,data:s,userData:t})});return i.error?{error:i.error.message}:{}}),Vo=n=>z(void 0,[n],function*({analyticaToken:e,userData:t,overrideBaseUrl:r="https://api.analytica.click"}){return hr({analyticaToken:e,userData:t,overrideBaseUrl:r,eventName:"PAGE"})}),Nu=()=>{let{analyticaToken:e,overrideBaseUrl:t}=(0,Uo.useContext)(Q);if(!e){(0,We.warn)(ie("useTrack"));let r=()=>z(void 0,null,function*(){return{error:"no token"}});return{page:r,track:r}}return{page:r=>Vo(D(_({},r),{analyticaToken:e,overrideBaseUrl:t})),track:r=>hr(D(_({},r),{analyticaToken:e,overrideBaseUrl:t}))}};var Ye=M(require("react")),ns=M($o()),os=M(rs()),ss=M(require("react-dom")),ac=require("styled-components"),St={},Qe=({url:e,props:t})=>{let r=(0,ns.createRequires)(()=>({react:Ye.default,"react-dom":ss.default,"styled-components":ac})),n,o=!1,s;return St[e]?n=St[e]:[o,s,n]=(0,os.createUseRemoteComponent)({requires:r})(e),!St[e]&&!o&&!s&&n&&(St[e]=n),Ye.default.createElement(Ye.default.Fragment,null,!o&&!s&&Ye.default.createElement(n,_({},t)),s&&s)};var uc=e=>{let{analyticaToken:t,overrideBaseUrl:r,devMode:n}=(0,Ie.useContext)(Q);if(!t)return(0,is.warn)(ie("Feedback")),Ie.default.createElement(Ie.default.Fragment,null);let o=D(_({},e),{submitFeedback:At,analyticaToken:t,overrideBaseUrl:r}),s="https://cdn.analytica.click/feedback.js";return n&&(s="/feedback.js"),Ie.default.createElement(Qe,{url:s,props:o})};var Ze=M(require("react"));var cc=()=>{let{devMode:e}=(0,Ze.useContext)(Q),t=Ze.default.createContext(void 0),r="https://cdn.analytica.click/cognito.js";return{CognitoAuthContext:t,CognitoAuthProvider:o=>{let s=D(_({},o),{Context:t});return e&&(r="/cognito.js"),Ze.default.createElement(Qe,{url:r,props:s})}}};var hs=M(ps()),he=M(require("react")),ms=M(be());function xc(n){return z(this,arguments,function*({ev:e,analyticaToken:t,filterBrowserError:r}){if(r&&r(e)===!1)return;let o=(e==null?void 0:e.message)||(e==null?void 0:e.error),{href:s}=window.location,i=e==null?void 0:e.stack,u=e==null?void 0:e.filename;yield Ee({data:{key:t,data:{message:o,stack:i,filename:u,href:s}}})})}var Sc=({children:e,filterBrowserError:t})=>{let{analyticaToken:r}=(0,he.useContext)(Q);return(0,he.useEffect)(()=>{if(!r)return()=>{};let n=o=>xc({ev:o,analyticaToken:r,filterBrowserError:t});return window.addEventListener("error",n),()=>{window.removeEventListener("error",n)}},[r,t]),r?he.default.createElement(hs.ErrorBoundary,{notify:n=>z(void 0,null,function*(){let{href:o}=window.location;yield Ee({data:{key:r,data:D(_({},n),{href:o})}})})},e):((0,ms.warn)(ie("ErrorBoundary")),he.default.createElement(he.default.Fragment,null,e))};module.exports=qs(Pc);0&&(module.exports={AnalyticaConfigContext,AnalyticaConfigProvider,ErrorBoundary,ExternalComponent,Feedback,GenerateCognitoAuth,errorTrack,feedback,page,tokenMissing,track,useFeedback,useTrack});
77
+ `,fs=class extends jt.default.Component{constructor(t){super(t);this.state={hasError:void 0}}static getDerivedStateFromError(t){var r;let n=typeof window!="undefined"&&((r=window==null?void 0:window.location)===null||r===void 0?void 0:r.href);return{hasError:Object.assign(Object.assign(Object.assign(Object.assign({},t),{message:(t==null?void 0:t.message)||t}),(t==null?void 0:t.stack)&&{stack:t==null?void 0:t.stack}),n&&{href:n})}}render(){let{hasError:t}=this.state,{children:r,notify:n}=this.props;return t?(n&&n(t),jt.default.createElement(Ac.Modal,{open:!0,setOpen:()=>{}},jt.default.createElement(Tc,null,"A fatal error has occurred - the admin has been notified.",jt.default.createElement("button",{type:"button",onClick:()=>window.location.reload()},"Press here to restart app")))):r}};Ve.ErrorBoundary=fs});var Pc={};Es(Pc,{AnalyticaConfigContext:()=>Q,AnalyticaConfigProvider:()=>Mu,ErrorBoundary:()=>Sc,ExternalComponent:()=>Ye,Feedback:()=>uc,GenerateCognitoAuth:()=>cc,errorTrack:()=>Ee,feedback:()=>qt,page:()=>Vo,tokenMissing:()=>ie,track:()=>hr,useFeedback:()=>Bu,useTrack:()=>Nu});var is=M(be()),Ie=M(require("react"));var Ge=M(be()),Io=require("react");var le=M(require("react"));var pr=M(be());var No=M(en()),Lo=M(Bo());function Be(e){return(0,No.callOpenApi)(D(_({},e),{func:t=>e.func(t),newDefaultApi:t=>new Lo.DefaultApi(t),logout:()=>window.location.reload(),refreshToken:()=>z(this,null,function*(){})}))}var Ee=r=>z(void 0,[r],function*({data:e,overrideBaseUrl:t="https://api.analytica.click"}){var o;if(typeof window!="undefined"&&((o=window==null?void 0:window.location)==null?void 0:o.hostname)==="localhost")return(0,pr.debug)(`local error tracking ignored:${e.data.message} ${JSON.stringify(e)}, to ${t}`),{};(0,pr.debug)("error track",e.data.message,JSON.stringify(e));let n=yield Be({apiUrl:t,func:s=>s.postError(e)});return n.error?{error:n.error.message}:{}});var Fu={analyticaToken:void 0,overrideBaseUrl:void 0},Q=le.default.createContext(Fu);function Du(e){if(!e.analyticaToken)return;let t=window.console.error;window.console.error=(...n)=>Ee({data:{data:{href:window.location.href,message:JSON.stringify(n)},key:e.analyticaToken},overrideBaseUrl:e.overrideBaseUrl}).finally(()=>t(...n));let r=window.console.warn;window.console.warn=(...n)=>Ee({data:{data:{href:window.location.href,message:JSON.stringify(n)},key:e.analyticaToken},overrideBaseUrl:e.overrideBaseUrl}).finally(()=>r(...n))}var Mu=({children:e,values:t})=>{let[r,n]=(0,le.useState)(t);return(0,le.useEffect)(()=>{JSON.stringify(t)!==JSON.stringify(r)&&n(t)},[r,t]),(0,le.useEffect)(()=>{Du(t)},[]),le.default.createElement(Q.Provider,{value:r},e)};var ie=e=>`[Analytica.${e}] Please load analytica token in AnalyticaConfigProvider to use this component`;var qt=n=>z(void 0,[n],function*({data:e,analyticaToken:t,overrideBaseUrl:r="https://api.analytica.click"}){var s;if(typeof window!="undefined"&&((s=window==null?void 0:window.location)==null?void 0:s.hostname)==="localhost")return(0,Ge.debug)(`local feedback ignored:${JSON.stringify(e)}, to ${r}`),{};(0,Ge.debug)("feedback",JSON.stringify(e));let o=yield Be({apiUrl:r,func:i=>i.putFeedback({key:t,data:e})});return o.error?{error:o.error.message}:{}}),Bu=()=>{let{analyticaToken:e,overrideBaseUrl:t}=(0,Io.useContext)(Q);return e?{trackWithToken:r=>qt(D(_({},r),{analyticaToken:e,overrideBaseUrl:t}))}:((0,Ge.warn)(ie("useFeedback")),{trackWithToken:()=>({error:"no token"})})};var At=M(be()),Uo=require("react");var hr=o=>z(void 0,[o],function*({analyticaToken:e,userData:t,overrideBaseUrl:r="https://api.analytica.click",eventName:n}){var u,c,d;let s={eventName:n};if(typeof window!="undefined"&&(s=D(_({},s),{pageLocation:window.location.href,browserResolution:`${(u=window==null?void 0:window.screen)==null?void 0:u.width}:${(c=window==null?void 0:window.screen)==null?void 0:c.height}`})),typeof document!="undefined"&&(s=D(_({},s),{pageReferrer:document.referrer,pageTitle:document.title})),typeof navigator!="undefined"&&(s=D(_({},s),{browserLanguage:navigator.language})),typeof window!="undefined"&&((d=window==null?void 0:window.location)==null?void 0:d.hostname)==="localhost")return(0,At.debug)(`local page ignored: ${JSON.stringify(s)}, to ${r}`),{};let i=yield Be({apiUrl:r,func:a=>a.postPageTrack({key:e,data:s,userData:t})});return i.error?{error:i.error.message}:{}}),Vo=n=>z(void 0,[n],function*({analyticaToken:e,userData:t,overrideBaseUrl:r="https://api.analytica.click"}){return hr({analyticaToken:e,userData:t,overrideBaseUrl:r,eventName:"PAGE"})}),Nu=()=>{let{analyticaToken:e,overrideBaseUrl:t}=(0,Uo.useContext)(Q);if(!e){(0,At.warn)(ie("useTrack"));let r=()=>z(void 0,null,function*(){return{error:"no token"}});return{page:r,track:r}}return{page:r=>Vo(D(_({},r),{analyticaToken:e,overrideBaseUrl:t})),track:r=>hr(D(_({},r),{analyticaToken:e,overrideBaseUrl:t}))}};var Xe=M(require("react")),ns=M($o()),os=M(rs()),ss=M(require("react-dom")),ac=require("styled-components"),St={},Ye=({url:e,props:t})=>{let r=(0,ns.createRequires)(()=>({react:Xe.default,"react-dom":ss.default,"styled-components":ac})),n,o=!1,s;return St[e]?n=St[e]:[o,s,n]=(0,os.createUseRemoteComponent)({requires:r})(e),!St[e]&&!o&&!s&&n&&(St[e]=n),Xe.default.createElement(Xe.default.Fragment,null,!o&&!s&&Xe.default.createElement(n,_({},t)),s&&s)};var uc=e=>{let{analyticaToken:t,overrideBaseUrl:r,devMode:n}=(0,Ie.useContext)(Q);if(!t)return(0,is.warn)(ie("Feedback")),Ie.default.createElement(Ie.default.Fragment,null);let o=D(_({},e),{submitFeedback:qt,analyticaToken:t,overrideBaseUrl:r}),s="https://cdn.analytica.click/feedback.js";return n&&(s="/feedback.js"),Ie.default.createElement(Ye,{url:s,props:o})};var Qe=M(require("react"));var cc=()=>{let{devMode:e}=(0,Qe.useContext)(Q),t=Qe.default.createContext(void 0),r="https://cdn.analytica.click/cognito.js";return{CognitoAuthContext:t,CognitoAuthProvider:o=>{let s=D(_({},o),{Context:t});return e&&(r="/cognito.js"),Qe.default.createElement(Ye,{url:r,props:s})}}};var hs=M(ps()),he=M(require("react")),ms=M(be());function xc(n){return z(this,arguments,function*({ev:e,analyticaToken:t,filterBrowserError:r}){if(r&&r(e)===!1)return;let o=(e==null?void 0:e.message)||(e==null?void 0:e.error),{href:s}=window.location,i=e==null?void 0:e.stack,u=e==null?void 0:e.filename;yield Ee({data:{key:t,data:{message:o,stack:i,filename:u,href:s}}})})}var Sc=({children:e,filterBrowserError:t})=>{let{analyticaToken:r}=(0,he.useContext)(Q);return(0,he.useEffect)(()=>{if(!r)return()=>{};let n=o=>xc({ev:o,analyticaToken:r,filterBrowserError:t});return window.addEventListener("error",n),()=>{window.removeEventListener("error",n)}},[r,t]),r?he.default.createElement(hs.ErrorBoundary,{notify:n=>z(void 0,null,function*(){let{href:o}=window.location;yield Ee({data:{key:r,data:D(_({},n),{href:o})}})})},e):((0,ms.warn)(ie("ErrorBoundary")),he.default.createElement(he.default.Fragment,null,e))};module.exports=qs(Pc);0&&(module.exports={AnalyticaConfigContext,AnalyticaConfigProvider,ErrorBoundary,ExternalComponent,Feedback,GenerateCognitoAuth,errorTrack,feedback,page,tokenMissing,track,useFeedback,useTrack});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "analytica.click",
3
- "version": "0.0.142",
3
+ "version": "0.0.143",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "author": " <help@analytica.click> (analytica.click)",