vendor: 14,241 bytes, line 1
1import{r as b,j as kn}from"./index-7981e740.js";import{E as J,c as qn,a as oe,A as v,r as vn,b as Hn}from"./AppHelper-f8dbef70.js";const x=J.apiURL,$n=J.winServerApiURL,zn={currentSessionUrl:`${x}/auth/me`,registrationUrl:J.signUpURL,getProjectListUrl:`${x}/projects`,getProjectSubmissionUrl:`${x}/projects/submissions`,uploadProjectUrl:`${$n}/webUpload`,freeTrialUrl:`${x}/entitlements/freetrial`,downloadProjectUrl:`${x}/projects/downloadurl`,getSubscriptionsUrl:`${x}/subscriptions`,getSubscriptionFactorUrl:`${x}/subscriptions/subscriptionFactor`,getCustomerLaunchPortalUrl:`${x}/subscriptions/session/customer-portal`,purchaseBaseSubscriptionUrl:`${x}/subscriptions/base`,purchaseAddOnsSubscriptionUrl:`${x}/subscriptions/addOns`,purchasePayPerMissionUrl:`${x}/subscriptions/pay-per-mission`,updateSubscriptionUrl:`${x}/subscriptions/update`,cancelDowngradeSubscriptionUrl:`${x}/subscriptions/downgrade/cancel`,getReleaseNotesUrl:`${x}/releasenotes`,postTidRedirectUrl:J.redirectURL};function Ot(e,t){return function(){return e.apply(t,arguments)}}const{toString:Vn}=Object.prototype,{getPrototypeOf:Oe}=Object,{iterator:Te,toStringTag:Tt}=Symbol,Ae=(e=>t=>{const n=Vn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),B=e=>(e=e.toLowerCase(),t=>Ae(t)===e),Pe=e=>t=>typeof t===e,{isArray:ee}=Array,Y=Pe("undefined");function ie(e){return e!==null&&!Y(e)&&e.constructor!==null&&!Y(e.constructor)&&D(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const At=B("ArrayBuffer");function Jn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&At(e.buffer),t}const Wn=Pe("string"),D=Pe("function"),Pt=Pe("number"),ae=e=>e!==null&&typeof e=="object",Kn=e=>e===!0||e===!1,Se=e=>{if(Ae(e)!=="object")return!1;const t=Oe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Tt in e)&&!(Te in e)},Xn=e=>{if(!ae(e)||ie(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Gn=B("Date"),Qn=B("File"),Zn=e=>!!(e&&typeof e.uri<"u"),Yn=e=>e&&typeof e.getParts<"u",es=B("Blob"),ts=B("FileList"),ns=e=>ae(e)&&D(e.pipe);function ss(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const it=ss(),at=typeof it.FormData<"u"?it.FormData:void 0,rs=e=>{if(!e)return!1;if(at&&e instanceof at)return!0;const t=Oe(e);if(!t||t===Object.prototype||!D(e.append))return!1;const n=Ae(e);return n==="formdata"||n==="object"&&D(e.toString)&&e.toString()==="[object FormData]"},os=B("URLSearchParams"),[is,as,cs,ls]=["ReadableStream","Request","Response","Headers"].map(B),us=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ce(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),ee(e))for(s=0,r=e.length;s<r;s++)t.call(null,e[s],s,e);else{if(ie(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let c;for(s=0;s<i;s++)c=o[s],t.call(null,e[c],c,e)}}function Ut(e,t){if(ie(e))return null;t=t.toLowerCase();const n=Object.keys(e);let s=n.length,r;for(;s-- >0;)if(r=n[s],t===r.toLowerCase())return r;return null}const V=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Ct=e=>!Y(e)&&e!==V;function Ie(){const{caseless:e,skipUndefined:t}=Ct(this)&&this||{},n={},s=(r,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const i=e&&Ut(n,o)||o;Se(n[i])&&Se(r)?n[i]=Ie(n[i],r):Se(r)?n[i]=Ie({},r):ee(r)?n[i]=r.slice():(!t||!Y(r))&&(n[i]=r)};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&ce(arguments[r],s);return n}const ds=(e,t,n,{allOwnKeys:s}={})=>(ce(t,(r,o)=>{n&&D(r)?Object.defineProperty(e,o,{value:Ot(r,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{value:r,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:s}),e),fs=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ps=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},hs=(e,t,n,s)=>{let r,o,i;const c={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),o=r.length;o-- >0;)i=r[o],(!s||s(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&Oe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ms=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},bs=e=>{if(!e)return null;if(ee(e))return e;let t=e.length;if(!Pt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Ss=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Oe(Uint8Array)),ys=(e,t)=>{const s=(e&&e[Te]).call(e);let r;for(;(r=s.next())&&!r.done;){const o=r.value;t.call(e,o[0],o[1])}},ws=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},Rs=B("HTMLFormElement"),gs=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),ct=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Es=B("RegExp"),_t=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};ce(n,(r,o)=>{let i;(i=t(r,o,e))!==!1&&(s[o]=i||r)}),Object.defineProperties(e,s)},Os=e=>{_t(e,(t,n)=>{if(D(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(D(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Ts=(e,t)=>{const n={},s=r=>{r.forEach(o=>{n[o]=!0})};return ee(e)?s(e):s(String(e).split(t)),n},As=()=>{},Ps=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Us(e){return!!(e&&D(e.append)&&e[Tt]==="FormData"&&e[Te])}const Cs=e=>{const t=new Array(10),n=(s,r)=>{if(ae(s)){if(t.indexOf(s)>=0)return;if(ie(s))return s;if(!("toJSON"in s)){t[r]=s;const o=ee(s)?[]:{};return ce(s,(i,c)=>{const f=n(i,r+1);!Y(f)&&(o[c]=f)}),t[r]=void 0,o}}return s};return n(e,0)},_s=B("AsyncFunction"),xs=e=>e&&(ae(e)||D(e))&&D(e.then)&&D(e.catch),xt=((e,t)=>e?setImmediate:t?((n,s)=>(V.addEventListener("message",({source:r,data:o})=>{r===V&&o===n&&s.length&&s.shift()()},!1),r=>{s.push(r),V.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",D(V.postMessage)),Ds=typeof queueMicrotask<"u"?queueMicrotask.bind(V):typeof process<"u"&&process.nextTick||xt,Fs=e=>e!=null&&D(e[Te]),a={isArray:ee,isArrayBuffer:At,isBuffer:ie,isFormData:rs,isArrayBufferView:Jn,isString:Wn,isNumber:Pt,isBoolean:Kn,isObject:ae,isPlainObject:Se,isEmptyObject:Xn,isReadableStream:is,isRequest:as,isResponse:cs,isHeaders:ls,isUndefined:Y,isDate:Gn,isFile:Qn,isReactNativeBlob:Zn,isReactNative:Yn,isBlob:es,isRegExp:Es,isFunction:D,isStream:ns,isURLSearchParams:os,isTypedArray:Ss,isFileList:ts,forEach:ce,merge:Ie,extend:ds,trim:us,stripBOM:fs,inherits:ps,toFlatObject:hs,kindOf:Ae,kindOfTest:B,endsWith:ms,toArray:bs,forEachEntry:ys,matchAll:ws,isHTMLForm:Rs,hasOwnProperty:ct,hasOwnProp:ct,reduceDescriptors:_t,freezeMethods:Os,toObjectSet:Ts,toCamelCase:gs,noop:As,toFiniteNumber:Ps,findKey:Ut,global:V,isContextDefined:Ct,isSpecCompliantForm:Us,toJSONObject:Cs,isAsyncFn:_s,isThenable:xs,setImmediate:xt,asap:Ds,isIterable:Fs};class U extends Error{static from(t,n,s,r,o,i){const c=new U(t.message,n||t.code,s,r,o);return c.cause=t,c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),i&&Object.assign(c,i),c}constructor(t,n,s,r,o){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),s&&(this.config=s),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}}U.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";U.ERR_BAD_OPTION="ERR_BAD_OPTION";U.ECONNABORTED="ECONNABORTED";U.ETIMEDOUT="ETIMEDOUT";U.ERR_NETWORK="ERR_NETWORK";U.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";U.ERR_DEPRECATED="ERR_DEPRECATED";U.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";U.ERR_BAD_REQUEST="ERR_BAD_REQUEST";U.ERR_CANCELED="ERR_CANCELED";U.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";U.ERR_INVALID_URL="ERR_INVALID_URL";U.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const S=U,Ns=null;function Be(e){return a.isPlainObject(e)||a.isArray(e)}function Dt(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function De(e,t,n){return e?e.concat(t).map(function(r,o){return r=Dt(r),!n&&o?"["+r+"]":r}).join(n?".":""):t}function Ls(e){return a.isArray(e)&&!e.some(Be)}const Is=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function Ue(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,w){return!a.isUndefined(w[d])});const s=n.metaTokens,r=n.visitor||m,o=n.dots,i=n.indexes,c=n.Blob||typeof Blob<"u"&&Blob,f=n.maxDepth===void 0?100:n.maxDepth,u=c&&a.isSpecCompliantForm(t);if(!a.isFunction(r))throw new TypeError("visitor must be a function");function l(p){if(p===null)return"";if(a.isDate(p))return p.toISOString();if(a.isBoolean(p))return p.toString();if(!u&&a.isBlob(p))throw new S("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(p)||a.isTypedArray(p)?u&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function m(p,d,w){let F=p;if(a.isReactNative(t)&&a.isReactNativeBlob(p))return t.append(De(w,d,o),l(p)),!1;if(p&&!w&&typeof p=="object"){if(a.endsWith(d,"{}"))d=s?d:d.slice(0,-2),p=JSON.stringify(p);else if(a.isArray(p)&&Ls(p)||(a.isFileList(p)||a.endsWith(d,"[]"))&&(F=a.toArray(p)))return d=Dt(d),F.forEach(function(R,A){!(a.isUndefined(R)||R===null)&&t.append(i===!0?De([d],A,o):i===null?d:d+"[]",l(R))}),!1}return Be(p)?!0:(t.append(De(w,d,o),l(p)),!1)}const y=[],g=Object.assign(Is,{defaultVisitor:m,convertValue:l,isVisitable:Be});function h(p,d,w=0){if(!a.isUndefined(p)){if(w>f)throw new S("Object is too deeply nested ("+w+" levels). Max depth: "+f,S.ERR_FORM_DATA_DEPTH_EXCEEDED);if(y.indexOf(p)!==-1)throw Error("Circular reference detected in "+d.join("."));y.push(p),a.forEach(p,function(E,R){(!(a.isUndefined(E)||E===null)&&r.call(t,E,a.isString(R)?R.trim():R,d,g))===!0&&h(E,d?d.concat(R):[R],w+1)}),y.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return h(e),t}function lt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(s){return t[s]})}function ke(e,t){this._pairs=[],e&&Ue(e,this,t)}const Ft=ke.prototype;Ft.append=function(t,n){this._pairs.push([t,n])};Ft.toString=function(t){const n=t?function(s){return t.call(this,s,lt)}:lt;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function Bs(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Nt(e,t,n){if(!t)return e;const s=n&&n.encode||Bs,r=a.isFunction(n)?{serialize:n}:n,o=r&&r.serialize;let i;if(o?i=o(t,r):i=a.isURLSearchParams(t)?t.toString():new ke(t,r).toString(s),i){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class js{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(s){s!==null&&t(s)})}}const ut=js,qe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Ms=typeof URLSearchParams<"u"?URLSearchParams:ke,ks=typeof FormData<"u"?FormData:null,qs=typeof Blob<"u"?Blob:null,vs={isBrowser:!0,classes:{URLSearchParams:Ms,FormData:ks,Blob:qs},protocols:["http","https","file","blob","url","data"]},ve=typeof window<"u"&&typeof document<"u",je=typeof navigator=="object"&&navigator||void 0,Hs=ve&&(!je||["ReactNative","NativeScript","NS"].indexOf(je.product)<0),$s=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),zs=ve&&window.location.href||"http://localhost",Vs=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ve,hasStandardBrowserEnv:Hs,hasStandardBrowserWebWorkerEnv:$s,navigator:je,origin:zs},Symbol.toStringTag,{value:"Module"})),P={...Vs,...vs};function Js(e,t){return Ue(e,new P.classes.URLSearchParams,{visitor:function(n,s,r,o){return P.isNode&&a.isBuffer(n)?(this.append(s,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function Ws(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ks(e){const t={},n=Object.keys(e);let s;const r=n.length;let o;for(s=0;s<r;s++)o=n[s],t[o]=e[o];return t}function Lt(e){function t(n,s,r,o){let i=n[o++];if(i==="__proto__")return!0;const c=Number.isFinite(+i),f=o>=n.length;return i=!i&&a.isArray(r)?r.length:i,f?(a.hasOwnProp(r,i)?r[i]=a.isArray(r[i])?r[i].concat(s):[r[i],s]:r[i]=s,!c):((!r[i]||!a.isObject(r[i]))&&(r[i]=[]),t(n,s,r[i],o)&&a.isArray(r[i])&&(r[i]=Ks(r[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(s,r)=>{t(Ws(s),r,n,0)}),n}return null}const Z=(e,t)=>e!=null&&a.hasOwnProp(e,t)?e[t]:void 0;function Xs(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const He={transitional:qe,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return r?JSON.stringify(Lt(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;
vendor: 4,771 bytes, lines 1-3
1if(o){const f=Z(this,"formSerializer");if(s.indexOf("application/x-www-form-urlencoded")>-1)return Js(t,f).toString();if((c=a.isFileList(t))||s.indexOf("multipart/form-data")>-1){const u=Z(this,"env"),l=u&&u.FormData;return Ue(c?{"files[]":t}:t,l&&new l,f)}}return o||r?(n.setContentType("application/json",!1),Xs(t)):t}],transformResponse:[function(t){const n=Z(this,"transitional")||He.transitional,s=n&&n.forcedJSONParsing,r=Z(this,"responseType"),o=r==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(s&&!r||o)){const c=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,Z(this,"parseReviver"))}catch(f){if(c)throw f.name==="SyntaxError"?S.from(f,S.ERR_BAD_RESPONSE,this,null,Z(this,"response")):f}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:P.classes.FormData,Blob:P.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{He.headers[e]={}});const $e=He,Gs=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Qs=e=>{const t={};let n,s,r;return e&&e.split(` 2`).forEach(function(i){r=i.indexOf(":"),n=i.substring(0,r).trim().toLowerCase(),s=i.substring(r+1).trim(),!(!n||t[n]&&Gs[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},dt=Symbol("internals"),Zs=/[^\x09\x20-\x7E\x80-\xFF]/g;function Ys(e){let t=0,n=e.length;for(;t<n;){const s=e.charCodeAt(t);if(s!==9&&s!==32)break;t+=1}for(;n>t;){const s=e.charCodeAt(n-1);if(s!==9&&s!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}function re(e){return e&&String(e).trim().toLowerCase()}function er(e){return Ys(e.replace(Zs,""))}function ye(e){return e===!1||e==null?e:a.isArray(e)?e.map(ye):er(String(e))}function tr(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const nr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Fe(e,t,n,s,r){if(a.isFunction(s))return s.call(this,t,n);if(r&&(t=n),!!a.isString(t)){if(a.isString(s))return t.indexOf(s)!==-1;if(a.isRegExp(s))return s.test(t)}}function sr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function rr(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(r,o,i){return this[s].call(this,t,r,o,i)},configurable:!0})})}class Ce{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function o(c,f,u){const l=re(f);if(!l)throw new Error("header name must be a non-empty string");const m=a.findKey(r,l);(!m||r[m]===void 0||u===!0||u===void 0&&r[m]!==!1)&&(r[m||f]=ye(c))}const i=(c,f)=>a.forEach(c,(u,l)=>o(u,l,f));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!nr(t))i(Qs(t),n);else if(a.isObject(t)&&a.isIterable(t)){let c={},f,u;for(const l of t){if(!a.isArray(l))throw TypeError("Object iterator must return a key-value pair");c[u=l[0]]=(f=c[u])?a.isArray(f)?[...f,l[1]]:[f,l[1]]:l[1]}i(c,n)}else t!=null&&o(n,t,s);return this}get(t,n){if(t=re(t),t){const s=a.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return tr(r);if(a.isFunction(n))return n.call(this,r,s);if(a.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=re(t),t){const s=a.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||Fe(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function o(i){if(i=re(i),i){const c=a.findKey(s,i);c&&(!n||Fe(s,s[c],c,n))&&(delete s[c],r=!0)}}return a.isArray(t)?t.forEach(o):o(t),r}clear(t){const n=Object.keys(this);let s=n.length,r=!1;for(;s--;){const o=n[s];(!t||Fe(this,this[o],o,t,!0))&&(delete this[o],r=!0)}return r}normalize(t){const n=this,s={};return a.forEach(this,(r,o)=>{const i=a.findKey(s,o);if(i){n[i]=ye(r),delete n[o];return}const c=t?sr(o):String(o).trim();c!==o&&delete n[o],n[c]=ye(r),s[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&a.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` 3`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);
3return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[dt]=this[dt]={accessors:{}}).accessors,r=this.prototype;function o(i){const c=re(i);s[c]||(rr(r,i),s[c]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}}Ce.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(Ce.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});a.freezeMethods(Ce);const I=Ce;function Ne(e,t){const n=this||$e,s=t||n,r=I.from(s.headers);let o=s.data;return a.forEach(e,function(c){o=c.call(n,o,r.normalize(),t?t.status:void 0)}),r.normalize(),o}function It(e){return!!(e&&e.__CANCEL__)}class or extends S{constructor(t,n,s){super(t??"canceled",S.ERR_CANCELED,n,s),this.name="CanceledError",this.__CANCEL__=!0}}const le=or;function Bt(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new S("Request failed with status code "+n.status,[S.ERR_BAD_REQUEST,S.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function ir(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ar(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,o=0,i;return t=t!==void 0?t:1e3,function(f){const u=Date.now(),l=s[o];i||(i=u),n[r]=f,s[r]=u;let m=o,y=0;for(;m!==r;)y+=n[m++],m=m%e;if(r=(r+1)%e,r===o&&(o=(o+1)%e),u-i<t)return;const g=l&&u-l;return g?Math.round(y*1e3/g):void 0}}function cr(e,t){let n=0,s=1e3/t,r,o;const i=(u,l=Date.now())=>{n=l,r=null,o&&(clearTimeout(o),o=null),e(...u)};return[(...u)=>{const l=Date.now(),m=l-n;m>=s?i(u,l):(r=u,o||(o=setTimeout(()=>{o=null,i(r)},s-m)))},()=>r&&i(r)]}const ge=(e,t,n=3)=>{let s=0;const r=ar(50,250);return cr(o=>{const i=o.loaded,c=o.lengthComputable?o.total:void 0,f=c!=null?Math.min(i,c):i,u=Math.max(0,f-s),l=r(u);s=Math.max(s,f);const m={loaded:f,total:c,progress:c?f/c:void 0,bytes:u,rate:l||void 0,estimated:l&&c?(c-f)/l:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(m)},n)},ft=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},pt=e=>(...t)=>a.asap(()=>e(...t)),lr=P.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,P.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(P.origin),P.navigator&&/(msie|trident)/i.test(P.navigator.userAgent)):()=>!0,ur=P.hasStandardBrowserEnv?{write(e,t,n,s,r,o,i){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];a.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),a.isString(s)&&c.push(`path=${s}`),a.isString(r)&&c.push(`domain=${r}`),o===!0&&c.push("secure"),a.isString(i)&&c.push(`SameSite=${i}`),document.cookie=c.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function dr(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function fr(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function jt(e,t,n){let s=!dr(t);return e&&(s||n===!1)?fr(e,t):t}const ht=e=>e instanceof I?{...e}:e;function W(e,t){t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function s(u,l,m,y){return a.isPlainObject(u)&&a.isPlainObject(l)?a.merge.call({caseless:y}
vendor: 5,997 bytes, line 3
3,u,l):a.isPlainObject(l)?a.merge({},l):a.isArray(l)?l.slice():l}function r(u,l,m,y){if(a.isUndefined(l)){if(!a.isUndefined(u))return s(void 0,u,m,y)}else return s(u,l,m,y)}function o(u,l){if(!a.isUndefined(l))return s(void 0,l)}function i(u,l){if(a.isUndefined(l)){if(!a.isUndefined(u))return s(void 0,u)}else return s(void 0,l)}function c(u,l,m){if(a.hasOwnProp(t,m))return s(u,l);if(a.hasOwnProp(e,m))return s(void 0,u)}const f={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,allowedSocketPaths:i,responseEncoding:i,validateStatus:c,headers:(u,l,m)=>r(ht(u),ht(l),m,!0)};return a.forEach(Object.keys({...e,...t}),function(l){if(l==="__proto__"||l==="constructor"||l==="prototype")return;const m=a.hasOwnProp(f,l)?f[l]:r,y=a.hasOwnProp(e,l)?e[l]:void 0,g=a.hasOwnProp(t,l)?t[l]:void 0,h=m(y,g,l);a.isUndefined(h)&&m!==c||(n[l]=h)}),n}const Mt=e=>{const t=W({},e),n=y=>a.hasOwnProp(t,y)?t[y]:void 0,s=n("data");let r=n("withXSRFToken");const o=n("xsrfHeaderName"),i=n("xsrfCookieName");let c=n("headers");const f=n("auth"),u=n("baseURL"),l=n("allowAbsoluteUrls"),m=n("url");if(t.headers=c=I.from(c),t.url=Nt(jt(u,m,l),e.params,e.paramsSerializer),f&&c.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):""))),a.isFormData(s)){if(P.hasStandardBrowserEnv||P.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if(a.isFunction(s.getHeaders)){const y=s.getHeaders(),g=["content-type","content-length"];Object.entries(y).forEach(([h,p])=>{g.includes(h.toLowerCase())&&c.set(h,p)})}}if(P.hasStandardBrowserEnv&&(a.isFunction(r)&&(r=r(t)),r===!0||r==null&&lr(t.url))){const g=o&&i&&ur.read(i);g&&c.set(o,g)}return t},pr=typeof XMLHttpRequest<"u",hr=pr&&function(e){return new Promise(function(n,s){const r=Mt(e);let o=r.data;const i=I.from(r.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:u}=r,l,m,y,g,h;function p(){g&&g(),h&&h(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener("abort",l)}let d=new XMLHttpRequest;d.open(r.method.toUpperCase(),r.url,!0),d.timeout=r.timeout;function w(){if(!d)return;const E=I.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),A={data:!c||c==="text"||c==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:E,config:e,request:d};Bt(function(C){n(C),p()},function(C){s(C),p()},A),d=null}"onloadend"in d?d.onloadend=w:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(w)},d.onabort=function(){d&&(s(new S("Request aborted",S.ECONNABORTED,e,d)),d=null)},d.onerror=function(R){const A=R&&R.message?R.message:"Network Error",M=new S(A,S.ERR_NETWORK,e,d);M.event=R||null,s(M),d=null},d.ontimeout=function(){let R=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const A=r.transitional||qe;r.timeoutErrorMessage&&(R=r.timeoutErrorMessage),s(new S(R,A.clarifyTimeoutError?S.ETIMEDOUT:S.ECONNABORTED,e,d)),d=null},o===void 0&&i.setContentType(null),"setRequestHeader"in d&&a.forEach(i.toJSON(),function(R,A){d.setRequestHeader(A,R)}),a.isUndefined(r.withCredentials)||(d.withCredentials=!!r.withCredentials),c&&c!=="json"&&(d.responseType=r.responseType),u&&([y,h]=ge(u,!0),d.addEventListener("progress",y)),f&&d.upload&&([m,g]=ge(f),d.upload.addEventListener("progress",m),d.upload.addEventListener("loadend",g)),(r.cancelToken||r.signal)&&(l=E=>{d&&(s(!E||E.type?new le(null,e,d):E),d.abort(),d=null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener("abort",l)));const F=ir(r.url);if(F&&P.protocols.indexOf(F)===-1){s(new S("Unsupported protocol "+F+":",S.ERR_BAD_REQUEST,e));return}d.send(o||null)})},mr=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,r;const o=function(u){if(!r){r=!0,c();const l=u instanceof Error?u:this.reason;s.abort(l instanceof S?l:new le(l instanceof Error?l.message:l))}};let i=t&&setTimeout(()=>{i=null,o(new S(`timeout of ${t}ms exceeded`,S.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:f}=s;return f.unsubscribe=()=>a.asap(c),f}},br=mr,Sr=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let s=0,r;for(;s<n;)r=s+t,yield e.slice(s,r),s=r},yr=async function*(e,t){for await(const n of wr(e))yield*Sr(n,t)},wr=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:s}=await t.read();if(n)break;yield s}}finally{await t.cancel()}},mt=(e,t,n,s)=>{const r=yr(e,t);let o=0,i,c=f=>{i||(i=!0,s&&s(f))};return new ReadableStream({async pull(f){try{const{done:u,value:l}=await r.next();if(u){c(),f.close();return}let m=l.byteLength;if(n){let y=o+=m;n(y)}f.enqueue(new Uint8Array(l))}catch(u){throw c(u),u}},cancel(f){return c(f),r.return()}},{highWaterMark:2})},bt=64*1024,{isFunction:be}=a,Rr=(({Request:e,Response:t})=>({Request:e,Response:t}))(a.global),{ReadableStream:St,TextEncoder:yt}=a.global,wt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},gr=e=>{e=a.merge.call({skipUndefined:!0},Rr,e);const{fetch:t,Request:n,Response:s}=e,r=t?be(t):typeof fetch=="function",o=be(n),i=be(s);if(!r)return!1;const c=r&&be(St),f=r&&(typeof yt=="function"?(h=>p=>h.encode(p))(new yt):async h=>new Uint8Array(await new n(h).arrayBuffer())),u=o&&c&&wt(()=>{let h=!1;const p=new n(P.origin,{body:new St,method:"POST",get duplex(){return h=!0,"half"}}),d=p.headers.has("Content-Type");return p.body!=null&&p.body.cancel(),h&&!d}),l=i&&c&&wt(()=>
vendor: 9,121 bytes, lines 3-9
3a.isReadableStream(new s("").body)),m={stream:l&&(h=>h.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach(h=>{!m[h]&&(m[h]=(p,d)=>{let w=p&&p[h];if(w)return w.call(p);throw new S(`Response type '${h}' is not supported`,S.ERR_NOT_SUPPORT,d)})});const y=async h=>{if(h==null)return 0;if(a.isBlob(h))return h.size;if(a.isSpecCompliantForm(h))return(await new n(P.origin,{method:"POST",body:h}).arrayBuffer()).byteLength;if(a.isArrayBufferView(h)||a.isArrayBuffer(h))return h.byteLength;if(a.isURLSearchParams(h)&&(h=h+""),a.isString(h))return(await f(h)).byteLength},g=async(h,p)=>{const d=a.toFiniteNumber(h.getContentLength());return d??y(p)};return async h=>{let{url:p,method:d,data:w,signal:F,cancelToken:E,timeout:R,onDownloadProgress:A,onUploadProgress:M,responseType:C,headers:H,withCredentials:X="same-origin",fetchOptions:te}=Mt(h),ue=t||fetch;C=C?(C+"").toLowerCase():"text";let $=br([F,E&&E.toAbortSignal()],R),z=null;const k=$&&$.unsubscribe&&(()=>{$.unsubscribe()});let de;try{if(M&&u&&d!=="get"&&d!=="head"&&(de=await g(H,w))!==0){let _=new n(p,{method:"POST",body:w,duplex:"half"}),q;if(a.isFormData(w)&&(q=_.headers.get("content-type"))&&H.setContentType(q),_.body){const[ne,G]=ft(de,ge(pt(M)));w=mt(_.body,bt,ne,G)}}a.isString(X)||(X=X?"include":"omit");const T=o&&"credentials"in n.prototype;if(a.isFormData(w)){const _=H.getContentType();_&&/^multipart\/form-data/i.test(_)&&!/boundary=/i.test(_)&&H.delete("content-type")}const fe={...te,signal:$,method:d.toUpperCase(),headers:H.normalize().toJSON(),body:w,duplex:"half",credentials:T?X:void 0};z=o&&new n(p,fe);let L=await(o?ue(z,te):ue(p,fe));const pe=l&&(C==="stream"||C==="response");if(l&&(A||pe&&k)){const _={};["status","statusText","headers"].forEach(me=>{_[me]=L[me]});const q=a.toFiniteNumber(L.headers.get("content-length")),[ne,G]=A&&ft(q,ge(pt(A),!0))||[];L=new s(mt(L.body,bt,ne,()=>{G&&G(),k&&k()}),_)}C=C||"text";let he=await m[a.findKey(m,C)||"text"](L,h);return!pe&&k&&k(),await new Promise((_,q)=>{Bt(_,q,{data:he,headers:I.from(L.headers),status:L.status,statusText:L.statusText,config:h,request:z})})}catch(T){throw k&&k(),T&&T.name==="TypeError"&&/Load failed|fetch/i.test(T.message)?Object.assign(new S("Network Error",S.ERR_NETWORK,h,z,T&&T.response),{cause:T.cause||T}):S.from(T,T&&T.code,h,z,T&&T.response)}}},Er=new Map,kt=e=>{let t=e&&e.env||{};const{fetch:n,Request:s,Response:r}=t,o=[s,r,n];let i=o.length,c=i,f,u,l=Er;for(;c--;)f=o[c],u=l.get(f),u===void 0&&l.set(f,u=c?new Map:gr(t)),l=u;return u};kt();const ze={http:Ns,xhr:hr,fetch:{get:kt}};a.forEach(ze,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Rt=e=>`- ${e}`,Or=e=>a.isFunction(e)||e===null||e===!1;function Tr(e,t){e=a.isArray(e)?e:[e];const{length:n}=e;let s,r;const o={};for(let i=0;i<n;i++){s=e[i];let c;if(r=s,!Or(s)&&(r=ze[(c=String(s)).toLowerCase()],r===void 0))throw new S(`Unknown adapter '${c}'`);if(r&&(a.isFunction(r)||(r=r.get(t))))break;o[c||"#"+i]=r}if(!r){const i=Object.entries(o).map(([f,u])=>`adapter ${f} `+(u===!1?"is not supported by the environment":"is not available in the build"));let c=n?i.length>1?`since : 4`+i.map(Rt).join(` 5`):" "+Rt(i[0]):"as no adapter specified";throw new S("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return r}const qt={getAdapter:Tr,adapters:ze};function Le(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new le(null,e)}function gt(e){return Le(e),e.headers=I.from(e.headers),e.data=Ne.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),qt.getAdapter(e.adapter||$e.adapter,e)(e).then(function(s){return Le(e),s.data=Ne.call(e,e.transformResponse,s),s.headers=I.from(s.headers),s},function(s){return It(s)||(Le(e),s&&s.response&&(s.response.data=Ne.call(e,e.transformResponse,s.response),s.response.headers=I.from(s.response.headers))),Promise.reject(s)})}const vt="1.15.2",_e={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{_e[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const Et={};_e.transitional=function(t,n,s){function r(o,i){return"[Axios v"+vt+"] Transitional option '"+o+"'"+i+(s?". "+s:"")}return(o,i,c)=>{if(t===!1)throw new S(r(i," has been removed"+(n?" in "+n:"")),S.ERR_DEPRECATED);return n&&!Et[i]&&(Et[i]=!0,console.warn(r(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};_e.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function Ar(e,t,n){if(typeof e!="object")throw new S("options must be an object",S.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const o=s[r],i=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(i){const c=e[o],f=c===void 0||i(c,o,e);if(f!==!0)throw new S("option "+o+" must be "+f,S.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new S("Unknown option "+o,S.ERR_BAD_OPTION)}}const we={assertOptions:Ar,validators:_e},N=we.validators;class Ee{constructor(t){this.defaults=t||{},this.interceptors={request:new ut,response:new ut}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const o=(()=>{if(!r.stack)return"";const i=r.stack.indexOf(` 6`);return i===-1?"":r.stack.slice(i+1)})();try{if(!s.stack)s.stack=o;else if(o){const i=o.indexOf(` 7`),c=i===-1?-1:o.indexOf(` 8`,i+1),f=c===-1?"":o.slice(c+1);String(s.stack).endsWith(f)||(s.stack+=` 9`+o)}}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=W(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:o}=n;s!==void 0&&we.assertOptions(s,{silentJSONParsing:N.transitional(N.boolean),forcedJSONParsing:N.transitional(N.boolean),clarifyTimeoutError:N.transitional(N.boolean),legacyInterceptorReqResOrdering:N.transitional(N.boolean)},!1),r!=null&&(a.isFunction(r)?n.paramsSerializer={serialize:r}:we.assertOptions(r,{encode:N.function,serialize:N.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),we.assertOptions(n,{baseUrl:N.spelling("baseURL"),withXsrfToken:N.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&a.merge(o.common,o[n.method]);o&&a.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),n.headers=I.concat(i,o);const c=[];let f=!0;this.interceptors.request.forEach(function(p){if(typeof p.runWhen=="function"&&p.runWhen(n)===!1)return;f=f&&p.synchronous;const d=n.transitional||qe;d&&d.legacyInterceptorReqResOrdering?c.unshift(p.fulfilled,p.rejected):c.push(p.fulfilled,p.rejected)});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let l,m=0,y;if(!f){const h=[gt.bind(this),void 0];for(h.unshift(...c),h.push(...u),y=h.length,l=Promise.resolve(n);m<y;)l=l.then(h[m++],h[m++]);return l}y=c.length;let g=n;for(;m<y;){const h=c[m++],p=c[m++];try{g=h(g)}catch(d){p.call(this,d);break}}try{l=gt.call(this,g)}catch(h){return Promise.reject(h)}for(m=0,y=u.length;m<y;)l=l.then(u[m++],u[m++]);return l}getUri(t){t=W(this.defaults,t);const n=jt(t.baseURL,t.url,t.allowAbsoluteUrls);return Nt(n,t.params,t.paramsSerializer)}}a.forEach(["delete","get","head","options"],function(t){Ee.prototype[t]=function(n,s){return this.request(W(s||{},{method:t,url:n,data:(s||{}).data}))}});a.forEach(["post","put","patch"],function(t){function n(s){return function(o,i,c){return this.request(W(c||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}Ee.prototype[t]=n(),Ee.prototype[t+"Form"]=n(!0)});const Re=Ee;class Ve{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const s=this;this.promise.then(r=>{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](r);s._listeners=null}),this.promise.then=r=>{let o;const i=new Promise(c=>{s.subscribe(c),o=c}).then(r);return i.cancel=function(){s.unsubscribe(o)},i},t(function(o,i,c){s.reason||(s.reason=new le(o,i,c),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Ve(function(r){t=r}),cancel:t}}}const Pr=Ve;function Ur(e){return function(n){return e.apply(null,n)}}function Cr(e){return a.isObject(e)&&e.isAxiosError===!0}const Me={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
9alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Me).forEach(([e,t])=>{Me[t]=e});const _r=Me;function Ht(e){const t=new Re(e),n=Ot(Re.prototype.request,t);return a.extend(n,Re.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Ht(W(e,r))},n}const O=Ht($e);O.Axios=Re;O.CanceledError=le;O.CancelToken=Pr;O.isCancel=It;O.VERSION=vt;O.toFormData=Ue;O.AxiosError=S;O.Cancel=O.CanceledError;O.all=function(t){return Promise.all(t)};O.spread=Ur;O.isAxiosError=Cr;O.mergeConfig=W;O.AxiosHeaders=I;O.formToJSON=e=>Lt(a.isHTMLForm(e)?new FormData(e):e);O.getAdapter=qt.getAdapter;O.HttpStatusCode=_r;O.default=O;const xr=O;function Dr(){qn(),window.location.assign(J.redirectUrl)}const j=xr.create();j.interceptors.request.use(async e=>{const t=oe("accessToken"),n=oe("application");return t&&(e.headers.Authorization=`Bearer ${t}`),n&&(e.headers["user-domain"]=n),e},e=>Promise.reject(e));j.interceptors.response.use(e=>e,e=>(e?.response?.status===401&&Dr(),Promise.reject(e)));const{getSubscriptionsUrl:Fr,getCustomerLaunchPortalUrl:Nr,purchaseBaseSubscriptionUrl:Lr,purchaseAddOnsSubscriptionUrl:Ir,getSubscriptionFactorUrl:Br,updateSubscriptionUrl:jr,cancelDowngradeSubscriptionUrl:Mr,purchasePayPerMissionUrl:kr,getProjectSubmissionUrl:qr}=zn,vr=async()=>{try{return await j.get(Fr)}catch(e){return K(e)}},Hr=async()=>{try{return(await j.get(Br))?.data?.data?.remainingSubscriptionFactor}catch(e){return K(e)}},Xr=async e=>{try{let t={type:e};return await j.get(Nr,{params:t})}catch(t){return K(t)}},Gr=async(e,t)=>{try{let n={type:e,priceId:t};return await j.get(jr,{params:n})}catch{return{error:"Unable to update the subscription"}}},Qr=async e=>{try{let t={scheduleId:e};return await j.get(Mr,{params:t})}catch{return{error:"Unable to cancel the downgraded subscription"}}},Zr=async e=>{try{let t={priceId:e};return await j.post(Lr,t)}catch(t){return K(t)}},Yr=async(e,t)=>{try{let n={priceId:e,projectId:t};return await j.post(kr,n)}catch(n){return K(n)}},eo=async(e,t)=>{try{let n={priceId:e,quantity:t};return await j.post(Ir,n)}catch(n){return K(n)}},K=e=>e?.response?.status?e.response.data?.message?{error:e.response.data?.message}:{error:"Unauthorized"}:{error:e?.message??"Something went wrong"},to=function(e){const t=new Date(e*1e3),n={weekday:"short",year:"numeric",month:"short",day:"numeric"};return t.toLocaleDateString("en-US",n)},no=async e=>{try{return await j.get(`${qr}/${e}`)}catch(t){return K(t)}},$r=async()=>{try{let e=oe(v.ACCESS_TOKEN),t=oe(v.APPLICATION);return J.SUBSCRIPTION_INTEGRATION[t]&&e?await vr():null}catch{return{error:"Unable to fetch the subscription"}}},$t=b.createContext({}),zr=({children:e})=>{const[t,n]=b.useState(),[s,r]=b.useState(!1),[o,i]=b.useState(!0),[c,f]=b.useState(!1),[u,l]=b.useState(!1),[m,y]=b.useState(!1),[g,h]=b.useState(),[p,d]=b.useState(),[w,F]=b.useState(),[E,R]=b.useState(),[A,M]=b.useState(),[C,H]=b.useState(),[X,te]=b.useState(),[ue,$]=b.useState(!1),[z,k]=b.useState([]),[de,T]=b.useState(!1),[fe,L]=b.useState(!1),[pe,he]=b.useState(),[_,q]=b.useState(),[ne,G]=b.useState(),[me,zt]=b.useState(),[Vt,Jt]=b.useState(),[Wt,Kt]=b.useState(),[Xt,Je]=b.useState(!1),[Gt,We]=b.useState(!1),[Qt,Ke]=b.useState(),[Zt,Yt]=b.useState(!1),[en,tn]=b.useState(),[nn,
9Xe]=b.useState(!1),[sn,rn]=b.useState(),[on,an]=b.useState(),[cn,Ge]=b.useState(),[ln,Qe]=b.useState([]),[un,Ze]=b.useState(v.REAL_TIME_QC_FEATURE),[dn,Ye]=b.useState(v.AUTO_IMU_CONTEXT),[fn,et]=b.useState(),[pn,tt]=b.useState(),[hn,nt]=b.useState(!1),[mn,bn]=b.useState(),[Sn,yn]=b.useState(),[wn,Rn]=b.useState(!1),[gn,En]=b.useState(),[On,st]=b.useState(),[Tn,xe]=b.useState(null),[An,Pn]=b.useState(),[Un,Cn]=b.useState(),[_n,xn]=b.useState(!0),[Dn,Fn]=b.useState(!1),[Nn,Ln]=b.useState(!1),[In,rt]=b.useState(),Bn=()=>{k([]),Xe(!1),Qe([]),Ge(""),Ze(v.REAL_TIME_QC_FEATURE),Ye(v.AUTO_IMU_CONTEXT),T(!1),L(!1),he(void 0),st(void 0),q(void 0),Je(!1),We(!1),Ke(null),tt(void 0),nt(!1),$(!1),xe(null),rt(void 0),y(!1),R(null),M(null),h(null),F(null),d(null),H(null),te(null)},jn=async()=>{if(oe(v.ACCESS_TOKEN)){let Q=await Hr();Q?.error?(vn(Q?.error),Q?.error==v.UNAUTHORIZED&&await ot()):et(Q)}},ot=async()=>{await setTimeout(()=>{Hn(v.ACCESS_TOKEN)},5e3),window.location.href=J.redirectUrl},Mn={canShowTgapResultALert:hn,setCanShowTgapResultALert:nt,tgapSuggestedProcessingMode:pn,setTgapSuggestedProcessingMode:tt,availableSubscriptionFactor:fn,setAvailableSubscriptionFactor:et,setAvailableSubscriptionFactorOfUser:jn,rawDataFilesUploaded:ln,setRawDataFilesUploaded:Qe,imuContextSelected:dn,setIMUContextSelected:Ye,isEnterBaseStationPositionActive:de,setIsEnterBaseStationPositionActive:T,isProjectCreationSuccessful:fe,setIsProjectCreationSuccessful:L,errorMessage:_,setErrorMessage:q,projectId:pe,setProjectId:he,previouslySelectedEventsTableRows:C,setPreviouslySelectedEventsTableRows:H,previouslySelectedImagesTableRows:X,setPreviouslySelectedImagesTableRows:te,unselectedEvents:E,setUnselectedEvents:R,unselectedImages:A,setUnselectedImages:M,imageMappingTableData:w,setImageMappingTableData:F,imageEventsMappedTableData:p,setImageEventsMappedTableData:d,eventMappingTableData:g,setEventMappingTableData:h,application:t,setApplication:n,isPhotoIdGeneratorModalOpen:s,setIsPhotoIdGeneratorModalOpen:r,isNextButtonEnabled:o,setIsNextButtonEnabled:i,isPreviousButtonEnabled:c,setIsPreviousButtonEnabled:f,isFinishButtonEnabled:u,setIsFinishButtonEnabled:l,isProcessCompleted:m,setIsProcessCompleted:y,isFormResetTriggered:ue,setIsFormResetTriggered:$,photoIdFilesUploaded:z,setPhotoIdFilesUploaded:k,handleOnReset:Bn,stripeProductDetails:ne,setStripeProductDetails:G,baseSubscriptionDetails:me,setBaseSubscriptionDetails:zt,addOnsSubscriptionDetails:Wt,setAddonsSubscriptionDetails:Kt,subscriptionSchedules:mn,setSubscriptionSchedules:bn,downgradeDate:Sn,setDowngradeDate:yn,removeAccessToken:ot,isProjectRerunModalOpen:Xt,setIsProjectRerunModalOpen:Je,isRerunRequestCompleted:Gt,setIsRerunRequestCompleted:We,projectSelectedForRerun:Qt,setProjectSelectedForRerun:Ke,onFreeTrial:Zt,setOnFreeTrial:Yt,userSubscription:sn,setUserSubscription:rn,webAppUserDetails:on,setWebAppUserDetails:an,rawDataFileName:cn,setRawDataFileName:Ge,isPhotoIdFilesUploaded:nn,setIsPhotoIdFilesUploaded:Xe,featureSelected:un,setFeatureSelected:Ze,professionalSubscriptionDetails:Vt,setProfessionalSubscriptionDetails:Jt,refreshMap:()=>{const se=document.querySelector("trimble-gnss-aug-planner");if(se?.cancelSmartSelectRequest)try{se.cancelSmartSelectRequest()}catch(Q){console.warn("cancelSmartSelectRequest failed",Q)}window.dispatchEvent(new CustomEvent("triggerMapRefresh"))},showTutorialModal:wn,setShowTutorialModal:Rn,payPerMissionMode:en,setPayPerMissionMode:tn,payPerMissionPriceDetails:gn,setPayPerMissionPriceDetails:En,projectIdForModal:On,setProjectIdForModal:st,subscriptionLoaderData:Tn,setSubscriptionLoaderData:xe,refreshLoaderData:async()=>{const se=await $r();xe(se)},payPerMissionAvailableSfDetails:An,setPayPerMissionModeAvailableSfDetails:Pn,processingMode:Un,setProcessingMode:Cn,isBaseStationUploadChecked:_n,setIsBaseStationUploadChecked:xn,isSingleBaseFileUploaded:Dn,setIsSingleBaseFileUploaded:Fn,isRTXBasePositionActive:Nn,setIsRTXBasePositionActive:Ln,projectsCount:In,setProjectsCount:rt};return kn($t.Provider,{value:Mn,children:e})},so=Object.freeze(Object.defineProperty({__proto__:null,AppProvider:zr,default:$t},Symbol.toStringTag,{value:"Module"}));
9export{$t as A,j as a,$r as b,eo as c,Zr as d,vr as e,Qr as f,no as g,to as h,so as i,Xr as l,Yr as p,zn as s,Gr as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.