var XsollaLogin=function(e){"use strict";var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,n)};function n(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n}function i(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(a,s)}c((r=r.apply(e,t||[])).next())})}function a(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var s="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function c(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}var u=c,d=l;function f(e){if(u===setTimeout)return setTimeout(e,0);if((u===c||!u)&&setTimeout)return u=setTimeout,setTimeout(e,0);try{return u(e,0)}catch(t){try{return u.call(null,e,0)}catch(t){return u.call(this,e,0)}}}"function"==typeof s.setTimeout&&(u=setTimeout),"function"==typeof s.clearTimeout&&(d=clearTimeout);var p,h=[],m=!1,g=-1;function v(){m&&p&&(m=!1,p.length?h=p.concat(h):g=-1,h.length&&w())}function w(){if(!m){var e=f(v);m=!0;for(var t=h.length;t;){for(p=h,h=[];++g<t;)p&&p[g].run();g=-1,t=h.length}p=null,m=!1,function(e){if(d===clearTimeout)return clearTimeout(e);if((d===l||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}(e)}}function y(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new b(e,t)),1!==h.length||m||f(w)}function b(e,t){this.fun=e,this.array=t}b.prototype.run=function(){this.fun.apply(null,this.array)};function E(){}var _=E,k=E,S=E,x=E,O=E,L=E,T=E;var P=s.performance||{},R=P.now||P.mozNow||P.msNow||P.oNow||P.webkitNow||function(){return(new Date).getTime()};var C=new Date;var A={nextTick:y,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:_,addListener:k,once:S,off:x,removeListener:O,removeAllListeners:L,emit:T,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*R.call(P),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-C)/1e3}};function U(e,t){return function(){return e.apply(t,arguments)}}const{toString:I}=Object.prototype,{getPrototypeOf:N}=Object,M=(e=>t=>{const n=I.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),j=e=>(e=e.toLowerCase(),t=>M(t)===e),B=e=>t=>typeof t===e,{isArray:D}=Array,F=B("undefined");const q=j("ArrayBuffer");const H=B("string"),W=B("function"),G=B("number"),X=e=>null!==e&&"object"==typeof e,V=e=>{if("object"!==M(e))return!1;const t=N(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},z=j("Date"),J=j("File"),K=j("Blob"),Z=j("FileList"),$=j("URLSearchParams"),[Y,Q,ee,te]=["ReadableStream","Request","Response","Headers"].map(j);function ne(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),D(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function re(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(t===(r=n[o]).toLowerCase())return r;return null}const oe=(()=>"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:s)(),ie=e=>!F(e)&&e!==oe;const ae=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&N(Uint8Array)),se=j("HTMLFormElement"),ce=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),le=j("RegExp"),ue=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ne(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)};const de=j("AsyncFunction"),fe=((e,t)=>e?setImmediate:t?((e,t)=>(oe.addEventListener("message",({source:n,data:r})=>{n===oe&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),oe.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))("function"==typeof setImmediate,W(oe.postMessage)),pe="undefined"!=typeof queueMicrotask?queueMicrotask.bind(oe):void 0!==A&&y||fe;var he={isArray:D,isArrayBuffer:q,isBuffer:function(e){return null!==e&&!F(e)&&null!==e.constructor&&!F(e.constructor)&&W(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||W(e.append)&&("formdata"===(t=M(e))||"object"===t&&W(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&q(e.buffer)},isString:H,isNumber:G,isBoolean:e=>!0===e||!1===e,isObject:X,isPlainObject:V,isReadableStream:Y,isRequest:Q,isResponse:ee,isHeaders:te,isUndefined:F,isDate:z,isFile:J,isBlob:K,isRegExp:le,isFunction:W,isStream:e=>X(e)&&W(e.pipe),isURLSearchParams:$,isTypedArray:ae,isFileList:Z,forEach:ne,merge:function e(){const{caseless:t}=ie(this)&&this||{},n={},r=(r,o)=>{const i=t&&re(n,o)||o;V(n[i])&&V(r)?n[i]=e(n[i],r):V(r)?n[i]=e({},r):D(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&ne(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(ne(t,(t,r)=>{n&&W(t)?e[r]=U(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(i=(o=Object.getOwnPropertyNames(e)).length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&N(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:M,kindOfTest:j,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(D(e))return e;let t=e.length;if(!G(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:se,hasOwnProperty:ce,hasOwnProp:ce,reduceDescriptors:ue,freezeMethods:e=>{ue(e,(t,n)=>{if(W(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];W(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=(()=>{throw Error("Can not rewrite read-only method '"+n+"'")})))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return D(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:re,global:oe,isContextDefined:ie,isSpecCompliantForm:function(e){return!!(e&&W(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(X(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=D(e)?[]:{};return ne(e,(e,t)=>{const i=n(e,r+1);!F(i)&&(o[t]=i)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:de,isThenable:e=>e&&(X(e)||W(e))&&W(e.then)&&W(e.catch),setImmediate:fe,asap:pe};function me(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}he.inherits(me,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:he.toJSONObject(this.config),code:this.code,status:this.status}}});const ge=me.prototype,ve={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ve[e]={value:e}}),Object.defineProperties(me,ve),Object.defineProperty(ge,"isAxiosError",{value:!0}),me.from=((e,t,n,r,o,i)=>{const a=Object.create(ge);return he.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),me.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a});function we(e){return he.isPlainObject(e)||he.isArray(e)}function ye(e){return he.endsWith(e,"[]")?e.slice(0,-2):e}function be(e,t,n){return e?e.concat(t).map(function(e,t){return e=ye(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const Ee=he.toFlatObject(he,{},null,function(e){return/^is[A-Z]/.test(e)});function _e(e,t,n){if(!he.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=he.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!he.isUndefined(t[e])})).metaTokens,o=n.visitor||l,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&he.isSpecCompliantForm(t);if(!he.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(he.isDate(e))return e.toISOString();if(!s&&he.isBlob(e))throw new me("Blob is not supported. Use a Buffer instead.");return he.isArrayBuffer(e)||he.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(he.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(he.isArray(e)&&function(e){return he.isArray(e)&&!e.some(we)}(e)||(he.isFileList(e)||he.endsWith(n,"[]"))&&(s=he.toArray(e)))return n=ye(n),s.forEach(function(e,r){!he.isUndefined(e)&&null!==e&&t.append(!0===a?be([n],r,i):null===a?n:n+"[]",c(e))}),!1;return!!we(e)||(t.append(be(o,n,i),c(e)),!1)}const u=[],d=Object.assign(Ee,{defaultVisitor:l,convertValue:c,isVisitable:we});if(!he.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!he.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),he.forEach(n,function(n,i){!0===(!(he.isUndefined(n)||null===n)&&o.call(t,n,he.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])}),u.pop()}}(e),t}function ke(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Se(e,t){this._pairs=[],e&&_e(e,this,t)}const xe=Se.prototype;function Oe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Le(e,t,n){if(!t)return e;const r=n&&n.encode||Oe;he.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):he.isURLSearchParams(t)?t.toString():new Se(t,n).toString(r)){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}xe.append=function(e,t){this._pairs.push([e,t])},xe.toString=function(e){const t=e?function(t){return e.call(this,t,ke)}:ke;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class Te{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){he.forEach(this.handlers,function(t){null!==t&&e(t)})}}var Pe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Re={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Se,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Ce="undefined"!=typeof window&&"undefined"!=typeof document,Ae="object"==typeof navigator&&navigator||void 0,Ue=Ce&&(!Ae||["ReactNative","NativeScript","NS"].indexOf(Ae.product)<0),Ie=(()=>"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts)(),Ne=Ce&&window.location.href||"http://localhost";var Me={...Object.freeze({hasBrowserEnv:Ce,hasStandardBrowserWebWorkerEnv:Ie,hasStandardBrowserEnv:Ue,navigator:Ae,origin:Ne}),...Re};function je(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;return i=!i&&he.isArray(r)?r.length:i,s?(he.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&&he.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&he.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)t[i=n[r]]=e[i];return t}(r[i])),!a)}if(he.isFormData(e)&&he.isFunction(e.entries)){const n={};return he.forEachEntry(e,(e,r)=>{t(function(e){return he.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const Be={transitional:Pe,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=he.isObject(e);if(o&&he.isHTMLForm(e)&&(e=new FormData(e)),he.isFormData(e))return r?JSON.stringify(je(e)):e;if(he.isArrayBuffer(e)||he.isBuffer(e)||he.isStream(e)||he.isFile(e)||he.isBlob(e)||he.isReadableStream(e))return e;if(he.isArrayBufferView(e))return e.buffer;if(he.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return _e(e,new Me.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Me.isNode&&he.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=he.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return _e(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(he.isString(e))try{return(t||JSON.parse)(e),he.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Be.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(he.isResponse(e)||he.isReadableStream(e))return e;if(e&&he.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw me.from(e,me.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Me.classes.FormData,Blob:Me.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};he.forEach(["delete","get","head","post","put","patch"],e=>{Be.headers[e]={}});const De=he.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"]);var Fe=e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&De[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};const qe=Symbol("internals");function He(e){return e&&String(e).trim().toLowerCase()}function We(e){return!1===e||null==e?e:he.isArray(e)?e.map(We):String(e)}const Ge=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Xe(e,t,n,r,o){return he.isFunction(r)?r.call(this,t,n):(o&&(t=n),he.isString(t)?he.isString(r)?-1!==t.indexOf(r):he.isRegExp(r)?r.test(t):void 0:void 0)}class Ve{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=He(t);if(!o)throw new Error("header name must be a non-empty string");const i=he.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=We(e))}const i=(e,t)=>he.forEach(e,(e,n)=>o(e,n,t));if(he.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(he.isString(e)&&(e=e.trim())&&!Ge(e))i(Fe(e),t);else if(he.isHeaders(e))for(const[t,r]of e.entries())o(r,t,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=He(e)){const n=he.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(he.isFunction(t))return t.call(this,e,n);if(he.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=He(e)){const n=he.findKey(this,e);return!(!n||void 0===this[n]||t&&!Xe(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=He(e)){const o=he.findKey(n,e);!o||t&&!Xe(0,n[o],o,t)||(delete n[o],r=!0)}}return he.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Xe(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return he.forEach(this,(r,o)=>{const i=he.findKey(n,o);if(i)return t[i]=We(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();a!==o&&delete t[o],t[a]=We(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return he.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&he.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[qe]=this[qe]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=He(e);t[r]||(!function(e,t){const n=he.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return he.isArray(e)?e.forEach(r):r(e),this}}function ze(e,t){const n=this||Be,r=t||n,o=Ve.from(r.headers);let i=r.data;return he.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Je(e){return!(!e||!e.__CANCEL__)}function Ke(e,t,n){me.call(this,null==e?"canceled":e,me.ERR_CANCELED,t,n),this.name="CanceledError"}function Ze(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new me("Request failed with status code "+n.status,[me.ERR_BAD_REQUEST,me.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}Ve.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),he.reduceDescriptors(Ve.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),he.freezeMethods(Ve),he.inherits(Ke,me,{__CANCEL__:!0});const $e=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),l=r[a];o||(o=c),n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if((i=(i+1)%e)===a&&(a=(a+1)%e),c-o<t)return;const f=l&&c-l;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},i-s)))},()=>n&&a(n)]}(n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,c=o(s);r=i,e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},Ye=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Qe=e=>(...t)=>he.asap(()=>e(...t));var et=Me.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Me.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Me.origin),Me.navigator&&/(msie|trident)/i.test(Me.navigator.userAgent)):()=>!0,tt=Me.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];he.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),he.isString(r)&&a.push("path="+r),he.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function nt(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&r||0==n?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const rt=e=>e instanceof Ve?{...e}:e;function ot(e,t){t=t||{};const n={};function r(e,t,n,r){return he.isPlainObject(e)&&he.isPlainObject(t)?he.merge.call({caseless:r},e,t):he.isPlainObject(t)?he.merge({},t):he.isArray(t)?t.slice():t}function o(e,t,n,o){return he.isUndefined(t)?he.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!he.isUndefined(t))return r(void 0,t)}function a(e,t){return he.isUndefined(t)?he.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>o(rt(e),rt(t),0,!0)};return he.forEach(Object.keys(Object.assign({},e,t)),function(r){const i=c[r]||o,a=i(e[r],t[r],r);he.isUndefined(a)&&i!==s||(n[r]=a)}),n}var it=e=>{const t=ot({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:c}=t;if(t.headers=s=Ve.from(s),t.url=Le(nt(t.baseURL,t.url),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),he.isFormData(r))if(Me.hasStandardBrowserEnv||Me.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map(e=>e.trim()).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(Me.hasStandardBrowserEnv&&(o&&he.isFunction(o)&&(o=o(t)),o||!1!==o&&et(t.url))){const e=i&&a&&tt.read(a);e&&s.set(i,e)}return t};var at="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=it(e);let o=r.data;const i=Ve.from(r.headers).normalize();let a,s,c,l,u,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function h(){l&&l(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=Ve.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Ze(function(e){t(e),h()},function(e){n(e),h()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new me("Request aborted",me.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new me("Network Error",me.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Pe;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new me(t,o.clarifyTimeoutError?me.ETIMEDOUT:me.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&he.forEach(i.toJSON(),function(e,t){m.setRequestHeader(t,e)}),he.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),p&&([c,u]=$e(p,!0),m.addEventListener("progress",c)),f&&m.upload&&([s,l]=$e(f),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",l)),(r.cancelToken||r.signal)&&(a=(t=>{m&&(n(!t||t.type?new Ke(null,e,m):t),m.abort(),m=null)}),r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);v&&-1===Me.protocols.indexOf(v)?n(new me("Unsupported protocol "+v+":",me.ERR_BAD_REQUEST,e)):m.send(o||null)})};const st=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof me?t:new Ke(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new me(`timeout ${t} of ms exceeded`,me.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=(()=>he.asap(a)),s}},ct=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},lt=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},ut=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of lt(e))yield*ct(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},dt="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,ft=dt&&"function"==typeof ReadableStream,pt=dt&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),ht=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},mt=ft&&ht(()=>{let e=!1;const t=new Request(Me.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),gt=ft&&ht(()=>he.isReadableStream(new Response("").body)),vt={stream:gt&&(e=>e.body)};var wt;dt&&(wt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!vt[e]&&(vt[e]=he.isFunction(wt[e])?t=>t[e]():(t,n)=>{throw new me(`Response type '${e}' is not supported`,me.ERR_NOT_SUPPORT,n)})}));const yt=async(e,t)=>{const n=he.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(he.isBlob(e))return e.size;if(he.isSpecCompliantForm(e)){const t=new Request(Me.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return he.isArrayBufferView(e)||he.isArrayBuffer(e)?e.byteLength:(he.isURLSearchParams(e)&&(e+=""),he.isString(e)?(await pt(e)).byteLength:void 0)})(t):n};const bt={http:null,xhr:at,fetch:dt&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:c,responseType:l,headers:u,withCredentials:d="same-origin",fetchOptions:f}=it(e);l=l?(l+"").toLowerCase():"text";let p,h=st([o,i&&i.toAbortSignal()],a);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(c&&mt&&"get"!==n&&"head"!==n&&0!==(g=await yt(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(he.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=Ye(g,$e(Qe(c)));r=ut(n.body,65536,e,t)}}he.isString(d)||(d=d?"include":"omit");const o="credentials"in Request.prototype;p=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:o?d:void 0});let i=await fetch(p);const a=gt&&("stream"===l||"response"===l);if(gt&&(s||a&&m)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=i[t]});const t=he.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&Ye(t,$e(Qe(s),!0))||[];i=new Response(ut(i.body,65536,n,()=>{r&&r(),m&&m()}),e)}l=l||"text";let v=await vt[he.findKey(vt,l)||"text"](i,e);return!a&&m&&m(),await new Promise((t,n)=>{Ze(t,n,{data:v,headers:Ve.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:p})})}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new me("Network Error",me.ERR_NETWORK,e,p),{cause:t.cause||t});throw me.from(t,t&&t.code,e,p)}})};he.forEach(bt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const Et=e=>`- ${e}`,_t=e=>he.isFunction(e)||null===e||!1===e;var kt={getAdapter:e=>{e=he.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(r=n=e[i],!_t(n)&&void 0===(r=bt[(t=String(n)).toLowerCase()]))throw new me(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new me("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Et).join("\n"):" "+Et(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r},adapters:bt};function St(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ke(null,e)}function xt(e){return St(e),e.headers=Ve.from(e.headers),e.data=ze.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),kt.getAdapter(e.adapter||Be.adapter)(e).then(function(t){return St(e),t.data=ze.call(e,e.transformResponse,t),t.headers=Ve.from(t.headers),t},function(t){return Je(t)||(St(e),t&&t.response&&(t.response.data=ze.call(e,e.transformResponse,t.response),t.response.headers=Ve.from(t.response.headers))),Promise.reject(t)})}const Ot="1.8.2",Lt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Lt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Tt={};Lt.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Ot+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new me(r(o," has been removed"+(t?" in "+t:"")),me.ERR_DEPRECATED);return t&&!Tt[o]&&(Tt[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},Lt.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var Pt={assertOptions:function(e,t,n){if("object"!=typeof e)throw new me("options must be an object",me.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new me("option "+i+" must be "+n,me.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new me("Unknown option "+i,me.ERR_BAD_OPTION)}},validators:Lt};const Rt=Pt.validators;class Ct{constructor(e){this.defaults=e,this.interceptors={request:new Te,response:new Te}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=ot(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Pt.assertOptions(n,{silentJSONParsing:Rt.transitional(Rt.boolean),forcedJSONParsing:Rt.transitional(Rt.boolean),clarifyTimeoutError:Rt.transitional(Rt.boolean)},!1),null!=r&&(he.isFunction(r)?t.paramsSerializer={serialize:r}:Pt.assertOptions(r,{encode:Rt.function,serialize:Rt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Pt.assertOptions(t,{baseUrl:Rt.spelling("baseURL"),withXsrfToken:Rt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&he.merge(o.common,o[t.method]);o&&he.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=Ve.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))});const c=[];let l;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let u,d=0;if(!s){const e=[xt.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,c),u=e.length,l=Promise.resolve(t);d<u;)l=l.then(e[d++],e[d++]);return l}u=a.length;let f=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{l=xt.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,u=c.length;d<u;)l=l.then(c[d++],c[d++]);return l}getUri(e){return Le(nt((e=ot(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}he.forEach(["delete","get","head","options"],function(e){Ct.prototype[e]=function(t,n){return this.request(ot(n||{},{method:e,url:t,data:(n||{}).data}))}}),he.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(ot(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Ct.prototype[e]=t(),Ct.prototype[e+"Form"]=t(!0)});class At{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=(e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r}),e(function(e,r,o){n.reason||(n.reason=new Ke(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=(()=>this.unsubscribe(t)),e.signal}static source(){let e;return{token:new At(function(t){e=t}),cancel:e}}}const Ut={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ut).forEach(([e,t])=>{Ut[t]=e});const It=function e(t){const n=new Ct(t),r=U(Ct.prototype.request,n);return he.extend(r,Ct.prototype,n,{allOwnKeys:!0}),he.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(ot(t,n))},r}(Be);function Nt(e,t){return e(t={exports:{}},t.exports),t.exports}It.Axios=Ct,It.CanceledError=Ke,It.CancelToken=At,It.isCancel=Je,It.VERSION=Ot,It.toFormData=_e,It.AxiosError=me,It.Cancel=It.CanceledError,It.all=function(e){return Promise.all(e)},It.spread=function(e){return function(t){return e.apply(null,t)}},It.isAxiosError=function(e){return he.isObject(e)&&!0===e.isAxiosError},It.mergeConfig=ot,It.AxiosHeaders=Ve,It.formToJSON=(e=>je(he.isHTMLForm(e)?new FormData(e):e)),It.getAdapter=kt.getAdapter,It.HttpStatusCode=Ut,It.default=It;var Mt,jt,Bt,Dt,Ft=Nt(function(e,t){var n;n=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function i(t,n,i){if("undefined"!=typeof document){"number"==typeof(i=e({path:"/"},o.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var a=JSON.stringify(n);/^[\{\[]/.test(a)&&(n=a)}catch(e){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var c in i)i[c]&&(s+="; "+c,!0!==i[c]&&(s+="="+i[c].split(";")[0]));return document.cookie=t+"="+n+s}}function a(e,n){if("undefined"!=typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],a=0;a<i.length;a++){var s=i[a].split("="),c=s.slice(1).join("=");n||'"'!==c.charAt(0)||(c=c.slice(1,-1));try{var l=t(s[0]);if(c=(r.read||r)(c,l)||t(c),n)try{c=JSON.parse(c)}catch(e){}if(o[l]=c,e===l)break}catch(e){}}return e?o[e]:o}}return o.set=i,o.get=function(e){return a(e,!1)},o.getJSON=function(e){return a(e,!0)},o.remove=function(t,n){i(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}(function(){})},e.exports=n()}),qt=function(e){function t(n){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];var i=e.apply(this,r)||this;return i.code=n,i.name=i.constructor.name,i.message=n,Object.setPrototypeOf(i,t.prototype),Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return n(t,e),t}(Error),Ht=function(e){function t(n){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];var i=e.apply(this,r)||this;return i.message=n,i.name=i.constructor.name,i.message=n,Object.setPrototypeOf(i,t.prototype),Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return n(t,e),t}(Error),Wt=["ar","bg","cs","de","en","es","fr","he","hu","it","ja","ko","pl","pt","ro","ru","th","tr","vi","zh","km","id","lo","my","ph","ne"],Gt=[navigator.language].concat(navigator.languages),Xt=function(e){return n=[t=e].concat(Gt).find(function(e){return!!e&&Wt.includes(e.substring(0,2))})||"en-XX",t&&n!==t?(console.error("Locale "+n+" cannot be applied, language code should be one of "+Wt.join(", ")),"en-XX"):n;var t,n};(Mt=e.ConfirmationType||(e.ConfirmationType={})).CODE="code",Mt.LINK="link",(jt=e.PostMessageEvents||(e.PostMessageEvents={})).ThemeUpdate="@xsolla-login/sdk:theme-update",jt.Close="@xsolla-login/sdk:close",jt.Open="@xsolla-login/sdk:open",jt.Dimensions="@xsolla-login/sdk:dimensions",jt.PageOpen="@xsolla-login/sdk:page:open",jt.IframeOpen="@xsolla-login/sdk:iframe:open",jt.GetRedirectCode="@xsolla-login/sdk:get-redirect-url",jt.WidgetStep="@xsolla-login/sdk:widget:step",jt.GoogleOneTapOpen="@xsolla-login/sdk:google-one-tap:open",jt.GoogleOneTapSuccess="@xsolla-login/sdk:google-one-tap:success",jt.LoginSuccess="@xsolla-login/sdk:login:success",jt.LoginError="@xsolla-login/sdk:login:error",jt.SignupSuccess="@xsolla-login/sdk:signup:success",jt.SignupError="@xsolla-login/sdk:signup:error",jt.SocialLogin="@xsolla-login/sdk:social-login",jt.SocialLoginSuccess="@xsolla-login/sdk:social-login-success",jt.BabkaLogin="@xsolla-login/sdk:babka-login",jt.BabkaLoginPopup="@xsolla-login/sdk:babka-login-popup",jt.OpenBabkaPopupWidget="@xsolla-login/sdk:open-babka-popup-widget",jt.RequestAncestorsLocation="@xsolla-login/sdk:request-ancestors-location",jt.ResponseAncestorsLocation="@xsolla-login/sdk:response-ancestors-location",jt.BabkaPopupWidgetLoad="@xsolla-login/sdk/babka-widget:open",jt.BabkaPopupWidgetClose="@xsolla-login/sdk/babka-widget:close",(Bt=e.WidgetPages||(e.WidgetPages={})).SignUpPage="signUp",Bt.LogInPage="logIn",Bt.LogInPresetPage="logInUserPreset",Bt.ResetPasswordPage="passwordReset",Bt.SetPasswordPage="passwordSet",Bt.AskPage="ask",Bt.ErrorPage="error",Bt.SocialsPage="socials",Bt.AgreementPage="agreement",Bt.TwoFactorPage="otp",(Dt=e.CloseSource||(e.CloseSource={}))[Dt.Button=0]="Button";var Vt=function(t){var n=t.message,o=t.targetOrigin,i=t.target,a=t.globalObject,s=void 0===a?window:a,c=s.parent;if(!c||c===s){if(void 0!==i)switch(n.type){case e.PostMessageEvents.PageOpen:case e.PostMessageEvents.ThemeUpdate:case e.PostMessageEvents.GoogleOneTapSuccess:case e.PostMessageEvents.IframeOpen:case e.PostMessageEvents.BabkaLoginPopup:case e.PostMessageEvents.BabkaPopupWidgetLoad:case e.PostMessageEvents.RequestAncestorsLocation:case e.PostMessageEvents.ResponseAncestorsLocation:case e.PostMessageEvents.SocialLoginSuccess:i.postMessage(r({},n),o)}}else switch(n.type.replace("@xsolla/login-sdk","@xsolla-login/sdk")){case e.PostMessageEvents.Close:case e.PostMessageEvents.Open:case e.PostMessageEvents.Dimensions:case e.PostMessageEvents.WidgetStep:case e.PostMessageEvents.PageOpen:case e.PostMessageEvents.GetRedirectCode:case e.PostMessageEvents.GoogleOneTapOpen:case e.PostMessageEvents.LoginSuccess:case e.PostMessageEvents.LoginError:case e.PostMessageEvents.SignupSuccess:case e.PostMessageEvents.SignupError:case e.PostMessageEvents.SocialLogin:case e.PostMessageEvents.OpenBabkaPopupWidget:c.postMessage(r({},n),o);break;case e.PostMessageEvents.ThemeUpdate:case e.PostMessageEvents.IframeOpen:case e.PostMessageEvents.GoogleOneTapSuccess:case e.PostMessageEvents.BabkaPopupWidgetLoad:case e.PostMessageEvents.RequestAncestorsLocation:case e.PostMessageEvents.ResponseAncestorsLocation:void 0!==i&&i.postMessage(r({},n),o);break;case e.PostMessageEvents.BabkaLogin:c.opener.postMessage(r({},n),"*")}},zt=window.addEventListener?"addEventListener":"attachEvent",Jt=window[zt],Kt="addEventListener"!==zt?"on":"";var Zt,$t;Nt(function(e){var t;t=function(e){var t={counterId:0,clientId:0,siteDomains:null,server:"",hitUrl:"",userParamsUrl:"",externalId:null,extraValues:"",hit:!0,extLink:!0,click:!0,scroll:!0,sendLoadMetrics:!1,abParams:"",isBrowser:"undefined"!=typeof window},n=null,r=!1,o=!1,i=!1,a=0,s=0;t.isBrowser&&(s="hidden"===document.visibilityState?0:1/0);var c={isArray:function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},isString:function(e){return"[object String]"===Object.prototype.toString.call(e)},random:function(e,t){return 2>arguments.length&&(t=e,e=0),1>arguments.length&&(t=1073741824),Math.floor(Math.random()*(t-e))+e},mergeObjects:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},apiHelper:function(e,n){2!=e&&(r=!1,o=!1,i=!1);var a=n&&n.eid?n.eid:t.externalId,s=n&&n.exv?JSON.stringify(n.exv):t.extraValues,l=n&&"object"==typeof n.abParams?JSON.stringify(n.abParams):t.abParams,u={et:e,eid:a};return s&&(u.exv=s),l&&(u.abParams=l),"object"!=typeof n&&(n={}),n=c.mergeObjects(n,u)}},l=function(){if(0===s)return null;var e=0;if(window.performance&&window.performance.getEntriesByType){for(var t=window.performance.getEntriesByType("paint"),n=0;n<t.length;n++)if("first-contentful-paint"===t[n].name)return(e=Math.round(t[n].startTime))<s?e:null;return null}if("object"==typeof window.chrome&&window.chrome.loadTimes){var r=window.chrome.loadTimes();if(r.requestTime&&r.firstPaintTime&&window.performance&&window.performance.timing)return(e=Math.round(1e3*r.firstPaintTime-window.performance.timing.navigationStart))<s?e:null}else if(window.performance&&window.performance.timing&&((r=window.performance.timing).navigationStart&&r.msFirstPaint))return(e=r.msFirstPaint-r.navigationStart)<s?e:null;return null},u=function(){try{function e(e){if(e.startTime<s&&(a=Math.round(e.startTime),t.sendLoadMetrics)){var n=document.documentElement.scrollHeight||0;(document.documentElement.clientHeight||0)>=n&&k.eventForLCP()}}var n=new PerformanceObserver(function(t){for(var n=t.getEntries(),r=0;r<n.length;r++)e(n[r])});n.observe({type:"largest-contentful-paint",buffered:!0}),document.addEventListener("visibilitychange",function t(){if("hidden"===document.visibilityState){document.removeEventListener("visibilitychange",t,!0);var r=[];n.takeRecords&&(r=n.takeRecords());for(var o=0;o<r.length;o++)e(r[o]);n.disconnect()}},!0)}catch(e){}},d=function(){var e=(navigator.connection||{type:""}).type;return void 0===e?"":e},f=function(){var e=(window.navigator?navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage:"").toLowerCase();return c.isString(e)?e:""},p=function(){try{return navigator.javaEnabled()}catch(e){return!1}},h=function(){try{var e=Notification.permission}catch(e){}switch(e){case"denied":return 0;case"granted":return 1}},m=function(){try{return window.top!==window.self}catch(e){return!1}},g=function(){if(navigator.cookieEnabled)return!0;document.cookie="cookietest=1";var e=-1!==document.cookie.indexOf("cookietest=");return document.cookie="cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",e},v=function(){return Math.round(+new Date/1e3)},w=function(){return-(new Date).getTimezoneOffset()},y={getVid:function(){var e=b.isFromAd()?0:this.readM("vid");return e||(e=v()+""+c.random()),this.create("vid",e,30),e},getUid:function(){this.globalDomain();var e=this.readM("uid"),t=this.readLocalStorage("uid");return e||t?!e&&t?(e=t,this.create("uid",t,1036800)):e&&!t&&this.createLocalStorage("uid",e):(e=v()+""+c.random(),this.create("uid",e,1036800),this.createLocalStorage("uid",e)),e},getXsollauid:function(e){this.globalDomain();var t=this.readM("xsollauid"),n=this.readLocalStorage("xsollauid");return e?(this.create("xsollauid",e,5184e3),this.createLocalStorage("xsollauid",e),e):(t&&!n?this.createLocalStorage("xsollauid",t):!t&&n&&this.create("xsollauid",n,5184e3),t||n)},createLocalStorage:function(e,t){try{localStorage.setItem(this._prepareName(e),encodeURIComponent(t))}catch(e){}},create:function(e,t,n){var r,o=[this._prepareName(e)+"="+encodeURIComponent(t)];n&&((r=new Date).setTime(r.getTime()+6e4*n),o.push("expires="+r.toGMTString())),this._domain&&o.push("domain="+this._domain),o.push("path=/");try{document.cookie=o.join(";")}catch(e){}},globalDomain:function(){return this._domain=b.extractHostname(window.location.host),this._domain},readM:function(e){return e=this._prepareName(e),this.read(e)},read:function(e){try{var t=document.cookie}catch(e){}return t&&t.match(new RegExp("(?:^|;\\s*)"+e+"=([^;]*)"))?decodeURIComponent(RegExp.$1):null},readLocalStorage:function(e){e=this._prepareName(e);try{return localStorage.getItem(e)}catch(e){return null}},erase:function(e){this.create(e,"",-1)},_prepareName:function(e){return"xsollauid"===e?e:"_mm_"+e+(t.counterId?"_"+t.counterId:"")}},b={getDocumentCharset:function(){return(""+(document.characterSet||document.charset||"")).toLowerCase()},getRootElement:function(){var e=document.documentElement;return"CSS1Compat"===document.compatMode?e:document.body||e},getViewportSize:function(){var e=this.getRootElement();return[e.clientWidth||window.innerWidth,e.clientHeight||window.innerHeight]},getDocumentTitle:function(){var e=document.title;return"string"!=typeof e&&(e=(e=document.getElementsByTagName("title"))&&e.length?e[0].innerHTML:""),e},isFromAd:function(){if(!document.referrer)return!1;var e=["adfox","admitad","adnews","adnous","adriver","advmaker","aport","aport.ru","AvitoPromo","AvitoContext","begun","bing","B2BContext","criteo","directadvert","directadvert.ru","drivenetwork","facebook","fb","facebook.com","fb.com","giraffio","google","adwords","adsense","instagram","kavanga","ladycenter","link","magna","marketgid","medialand","merchant","moimir","nnn","nnn.ru","odnoklassniki","price","price.ru","prre","mytarget","targetmailru","taboola","torg.mail.ru","trorer","rorer","Ttarget","ubn.ua","banner.ua","videonow","vkontakte","vk","vk.com","whisla","youtube"],t=["cpc","ppc","paidsearch","cpv","cpa","cpp","display","cpm","banner"],n=window.location.search.replace("?","").split("&"),r=window.location.hash.replace("#","").split("&").concat(n),o=!1;return r.forEach(function(n){var r=n.split("=");return"utm_source"===r[0]&&r[1]&&e.indexOf(r[1])?o=!0:"utm_medium"===r[0]&&r[1]&&t.indexOf(r[1])?o=!0:void 0}),o},extractHostname:function(e){return void 0===e||""===e?"":(e.indexOf("://")>-1?e.split("/")[2]:e.split("/")[0]).split(":")[0].split("?")[0].replace(/^www\./,"").replace("#","")},isExternal:function(e){var n=this.extractHostname(e);return Array.isArray(t.siteDomains)?!(t.siteDomains.indexOf(n)>-1||""===n):!(this.extractHostname(window.location.hostname)===n||""===n)},isInternal:function(e){var n=this.extractHostname(e);return this.extractHostname(window.location.hostname)!==n&&(!Array.isArray(t.siteDomains)||(t.siteDomains.indexOf(n)>-1||""===n))}},E={send:function(e,n){if(e===t.hitUrl&&(n.ident=this.prepareBrowserInfo()),t.xsollauid&&-1===e.indexOf("_xm")){var r="_xm="+t.xsollauid;e=-1===e.indexOf("?")?e+"?"+r:e+"&"+r}var o="string"!=typeof n?JSON.stringify(n):n;t.xsollauid||0!==t.hitCount?t.xsollauid||1!==t.hitCount?this.sendBeacon(e,o)||this.sendXHR(e,o):setTimeout(function(){t.hitCount=2,E.send(e,n)},1e3):(t.hitCount=1,this.sendXHR(e,o))},sendUserParams:function(e){e.clid=t.clientId,e.cid=t.counterId;var n=JSON.stringify(e),r=t.userParamsUrl;this.sendBeacon(r,n)||this.sendXHR(r,n)},sendBeacon:function(e,t){return!("function"!=typeof navigator.sendBeacon||!navigator.onLine)&&(navigator.sendBeacon(e,t),!0)},sendXHR:function(e,n){if(window.XMLHttpRequest){var r=new XMLHttpRequest;try{r.open("POST",e,!0)}catch(e){return!1}return r.timeout=1e4,r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.withCredentials=!0,r.ontimeout=function(){E.sendXHR(e,n)},r.onload=function(){var e=E.getValueFromUrl(r.responseURL,"_xm");if(e&&e!==t.xsollauid)t.xsollauid=y.getXsollauid(e);else{var n=E.getValueFromBody(r.responseText,"xsollauid");n&&n!==t.xsollauid&&(t.xsollauid=y.getXsollauid(n))}},r.send(n),!0}return!1},getValueFromUrl:function(e,t){if(e&&e.indexOf(t+"=")>-1){var n=new RegExp("https?://.*"+t+"=([^&]*)"),r=e.match(n);if(r&&r.length>1)return r[1]}return null},getValueFromBody:function(e,t){try{var n=e?JSON.parse(e)[t]:null}catch(e){n=null}return n},setXsollauidFromUrl:function(e){var n=E.getValueFromUrl(e,"_xm");n?(n=n.split("."))&&2===n.length&&n[0]===""+t.counterId&&n[1]!==t.xsollauid&&(t.xsollauid=y.getXsollauid(n[1])):(n=E.getValueFromUrl(e,"_xsollauid"))&&n!==t.xsollauid&&(t.xsollauid=y.getXsollauid(n))},prepareBrowserInfo:function(){var e={},n=window.screen,r=h();""!==r&&(e.ntf=r);var o=d();""!==o&&(e.net=o),e.t=b.getDocumentTitle(),e.pc=b.getDocumentCharset(),e.tz=w();var i=b.getViewportSize();e.wcw=i[0],e.wch=i[1],e.plt=l(),e.lcp=t.sendLoadMetrics?a:0,e.la=f(),e.j=p()?1:0,e.clid=t.clientId,e.cid=t.counterId,e.vid=y.getVid(),e.c=g()?1:0,e.sw=n.width,e.sh=n.height,e.sc=n.colorDepth||n.pixelDepth,m()&&(e.ifr=1);var s=y.read("_ym_uid");s&&(e.yid=s);try{var c=y.read("_ga");c.length>0&&(c=c.split("."),e.gaid=c[2]+"."+c[3])}catch(e){}var u=y.read("paystation_visit");u&&(e.pv=u);var v=y.read("corpsite_visit");v&&(e.cv=v);var E=y.read("pa_visit");E&&(e.pav=E);var _=y.read("dev_visit");_&&(e.dv=_);var k=y.read("first_visit");return k&&(e.fvp=k),e}},_={setHandlers:function(e,t,n,r,o,i){o&&this.documentVisibilityChange(),o&&this.documentReadyEvent(u),e&&this.documentReadyEvent(this.onDocumentReady),t&&this.documentReadyEvent(this.clickEvent),n&&this.documentReadyEvent(this.selectorEvent),r&&this.documentReadyEvent(this.scrollEvent),i&&this.documentReadyEvent(this.externalTransitionEvent)},documentReadyEvent:function(e){(document.attachEvent?"complete"===document.readyState:"loading"!==document.readyState)?e():document.addEventListener("DOMContentLoaded",e)},documentVisibilityChange:function(){document.addEventListener("visibilitychange",function e(t){"hidden"===document.visibilityState&&(s=Math.min(s,Math.round(t.timeStamp)),document.removeEventListener("visibilitychange",e))})},clickEvent:function(){for(var e=document.getElementsByTagName("a"),t=0;t<e.length;t++)_.setEvents(e[t],"click",_.onClick)},setEvents:function(e,t,n){e.addEventListener?e.addEventListener(t,n):e.attachEvent&&e.attachEvent("on"+t,n)},onDocumentReady:function(){var e=window.location.href,n={et:1,url:e,eid:t.externalId,exv:t.extraValues,abParams:t.abParams};n.eid&&2340===n.eid||(document.referrer&&(n.referer=document.referrer,b.isExternal(n.referer)||(n.ss=1),E.setXsollauidFromUrl(e)),E.send(t.hitUrl,n))},onClick:function(){b.isExternal(this.href)&&E.send(t.hitUrl,{et:2,referer:window.location.href,url:this.href,eid:t.externalId,exv:t.extraValues,abParams:t.abParams})},selectorEvent:function(){for(var e=document.querySelectorAll("[data-analytics]"),t=0;t<e.length;t++)_.setEvents(e[t],"click",_.onSelectorClick)},onSelectorClick:function(){E.send(t.hitUrl,{et:3,en:this.dataset.analytics,url:window.location.href,eid:t.externalId,exv:t.extraValues,abParams:t.abParams})},scrollEvent:function(){_.setEvents(window,"scroll",_.onScroll)},onScroll:function(){null!==n&&clearTimeout(n),n=setTimeout(function(){var e=document.documentElement.scrollTop||document.body.scrollTop,n=document.documentElement.scrollHeight||document.body.scrollHeight;!r&&e>0&&(r=!0,E.send(t.hitUrl,{et:10,url:window.location.href,eid:t.externalId,exv:t.extraValues,abParams:t.abParams})),!o&&2*e>n-document.documentElement.clientHeight&&(o=!0,E.send(t.hitUrl,{et:11,url:window.location.href,eid:t.externalId,exv:t.extraValues,abParams:t.abParams})),!i&&e>=.9*(n-document.documentElement.clientHeight)&&(i=!0,E.send(t.hitUrl,{et:12,url:window.location.href,eid:t.externalId,exv:t.extraValues,abParams:t.abParams}))},150)},onFormSubmit:function(){},externalTransitionEvent:function(){_.setEvents(document,"mousedown",_.onExternalTransition),_.setEvents(document,"keyup",_.onExternalTransition)},onExternalTransition:function(e){e:{var n=(e=e||window.event).target||e.srcElement;for(e=100;n&&0<e;){if(n.href&&n.nodeName.match(/^a(?:rea)?$/i)){var r=n;break e}n=n.parentNode,e--}r={}}if(("http:"===r.protocol||"https:"===r.protocol)&&r.href&&b.isInternal(r.href)&&!(r.href.indexOf("_xm=")>-1)&&t.xsollauid&&t.counterId){var o="_xm="+t.counterId+"."+t.xsollauid;r.href=-1!==r.href.indexOf("?")?r.href+"&"+o:r.href+"?"+o}}},k={hit:function(e,n){if(t.isBrowser){var r=c.apiHelper(1,n),o=window.location!=window.parent.location?document.referrer:document.location.href,i=r&&r.referer?r.referer:o;r.referer=i,r.referer!=document.location.href&&E.setXsollauidFromUrl(e),r.url=e,E.send(t.hitUrl,r)}},externalLink:function(e,n){if(t.isBrowser){var r=c.apiHelper(2,n);r.referer=window.location.href,r.url=e,E.send(t.hitUrl,r)}},elementClick:function(e,n){if(t.isBrowser){var r=c.apiHelper(3,n);r.url=window.location.href,r.en=e,E.send(t.hitUrl,r)}},formData:function(e,n,r){if(t.isBrowser){var o=c.apiHelper(4,r);o.url=window.location.href;var i=n?JSON.stringify(n):"";o.form=i,o.en=e,E.send(t.hitUrl,o)}},customEvent:function(e,n){if(t.isBrowser){var r=c.apiHelper(5,n);r.url=window.location.href,r.en=e,E.send(t.hitUrl,r)}},eventForLCP:function(){if(t.isBrowser){var e={et:6,url:window.location.href};E.send(t.hitUrl,e)}},setABParams:function(e){t.isBrowser&&(t.abParams="object"==typeof e?JSON.stringify(e):"")},setUserParams:function(e){var t="object"!=typeof e?"":{uprm:e};t&&E.sendUserParams(t)},addXsollauidToUrl:function(e){if(e.indexOf("_xsollauid=")>-1)return e;var t=y.getXsollauid(),n=t?"_xsollauid="+t:"";return n?-1!==e.indexOf("?")?e+"&"+n:e+"?"+n:e},sendCustomData:function(e,n){var r=e?t.server+"/"+e:"",o=t.xsollauid?"_xm="+t.xsollauid:"";(r=o?-1!==r.indexOf("?")?r+"&"+o:r+"?"+o:r)&&E.send(r,n)}};t.counterId=e.id,t.siteDomains=e.siteDomains;var S=e.server.match(/(https?:\/\/[^\/]*)/g);return t.server=S&&S.length?S[0]:console.log("Не удалось извлечь адрес сервера! Установлено значение по умолчанию - https://datagather.xsolla.com")||"https://datagather.xsolla.com",t.hitUrl=t.server+"/hit",t.userParamsUrl=t.server+"/users_params",t.externalId=e.externalId||e.merchantId,t.extraValues=e.extraValues?JSON.stringify(e.extraValues):"",t.hit=void 0===e.hit||e.hit,t.extLink=void 0===e.extLink||e.extLink,t.click=void 0===e.click||e.click,t.scroll=void 0===e.scroll||e.scroll,t.sendLoadMetrics=void 0!==e.sendLoadMetrics&&e.sendLoadMetrics,t.crossDomainTracking=void 0===e.crossDomainTracking||e.crossDomainTracking,t.hitCount=0,t.isBrowser&&(t.clientId=y.getUid(),t.visitId=y.getVid(),t.xsollauid=e.xsollauid||y.getXsollauid(),e.abParams&&k.setABParams(e.abParams),t.server&&t.counterId&&_.setHandlers(t.hit,t.extLink,t.click,t.scroll,t.sendLoadMetrics,t.crossDomainTracking),e.userParams&&k.setUserParams(e.userParams)),k},"undefined"!=typeof window?window.XsollaAnalytics=t:e.exports=t});(Zt=e.MetrikaEventNames||(e.MetrikaEventNames={})).initiate="login-widget_sign-in_initiate",Zt.secure_account="login-widget_sign-in_secure-account",Zt.email_confirm="login-widget_email-verification_confirm",Zt.confirm_secure_email="login-widget_email-verification_secure-confirm",Zt.phone_confirm="login-widget_phone-verification_confirm",Zt.confirm_secure_phone="login-widget_phone-verification_secure-confirm",Zt.sign_up="login-widget_sign-up_email",Zt.reset_pass_init="login-widget_reset-pass_initiate",Zt.widget_open="login-widget_opening_initiate",Zt.performance="widget_performance",Zt.performanceJSLoad="widget_performance_js_load",Zt.performanceRequest="widget_performance_request",Zt.pageOpen="widget_page_open",Zt.passwordlessAuthDeclined="passwordless_auth_declined",Zt.attemptToInputRussianLocalPhone="attempt_to_input_russian_local_phone",Zt.babka_login_consent_open="babka-login_consent_open",Zt.babka_login_consent_allow="babka-login_consent_allow",Zt.babka_login_consent_deny="babka-login_consent_deny",Zt.babka_login_consent_error="babka-login_consent_error",($t=e.SocialPosition||(e.SocialPosition={})).primary="primary",$t.secondary="secondary",$t.other="other";var Yt="",Qt="",en=function(e){var t=r({},e,{exv:r({},e&&e.exv?e.exv:{},{projectId:Yt,trackId:""})});return t.exv.trackId=tn()||Qt||"",t},tn=function(){return Ft.get("xl_track_id")},nn=function(e,t){var n=function(e){return"object"==typeof e?"lg_"+e.block+"_"+e.section+"_"+e.action:"lg_"+e}(e);if(window.XA){var r=en(t);window.XA.elementClick(n,r)}},rn={AD:6,AE:6,AF:6,AG:6,AI:6,AL:1,AM:4,AO:6,AQ:6,AR:4,AS:5,AT:1,AU:6,AW:5,AX:1,AZ:4,BA:1,BB:5,BD:6,BE:1,BF:6,BG:1,BH:6,BI:6,BJ:6,BL:5,BM:5,BN:6,BO:5,BQ:5,BR:5,BS:5,BT:6,BV:6,BW:6,BY:4,BZ:5,CA:5,CC:5,CD:6,CF:6,CG:6,CH:1,CI:6,CK:6,CL:1,CM:6,CN:2,CO:1,CR:1,CU:1,CV:6,CW:5,CX:6,CY:1,CZ:1,DE:1,DJ:6,DK:1,DM:5,DO:5,DZ:6,EC:5,EE:1,EG:6,EH:6,ER:6,ES:1,ET:6,FI:1,FJ:6,FK:5,FM:5,FO:6,FR:1,GA:6,GB:1,GD:5,GE:4,GF:5,GG:1,GH:6,GI:1,GL:6,GM:6,GN:6,GP:5,GQ:6,GR:1,GS:1,GT:5,GU:6,GW:6,GY:6,HK:2,HM:6,HN:5,HR:1,HT:5,HU:1,ID:6,IE:1,IL:6,IM:1,IN:6,IO:6,IQ:6,IR:6,IS:6,IT:1,JE:1,JM:5,JO:6,JP:6,KE:6,KG:4,KH:6,KI:6,KM:6,KN:5,KP:3,KR:3,KW:6,KY:5,KZ:4,LA:6,LB:6,LC:5,LI:1,LK:6,LR:6,LS:6,LT:1,LU:1,LV:1,LY:6,MA:6,MC:1,MD:4,ME:1,MF:1,MG:6,MH:6,MK:1,ML:6,MM:6,MN:6,MO:2,MP:6,MQ:1,MR:5,MS:5,MT:1,MU:6,MV:6,MW:6,MX:5,MY:6,MZ:6,NA:6,NC:6,NE:6,NF:6,NG:6,NI:5,NL:1,NO:1,NP:6,NR:6,NU:6,NZ:6,OM:6,PA:5,PE:5,PF:6,PG:6,PH:6,PK:6,PL:1,PM:5,PN:6,PR:6,PS:6,PT:1,PW:6,PY:5,QA:6,RE:6,RO:1,RS:1,RU:4,RW:6,SA:6,SB:6,SC:6,SD:6,SE:1,SG:6,SH:6,SI:1,SJ:6,SK:1,SL:6,SM:1,SN:6,SO:6,SR:5,SS:6,ST:6,SV:5,SX:5,SY:6,SZ:6,TC:5,TD:6,TF:6,TG:6,TH:6,TJ:4,TK:6,TL:6,TM:4,TN:6,TO:6,TR:1,TT:5,TV:6,TW:2,TZ:6,UA:4,UG:6,UM:6,US:5,UY:5,UZ:4,VA:1,VC:5,VE:5,VG:6,VI:6,VN:6,VU:6,WF:1,WS:6,YE:6,YT:6,ZA:6,ZM:6,ZW:6,ZZ:6},on=function(e,t){var n=e;return Object.entries(t).forEach(function(e,t){var r=e[0],o=e[1];0!==t||n.includes("?")?n+="&"+r+"="+o:n+="?"+r+"="+o}),n},an=function(e){return e.appendIfNotEmpty=function(t,n){n&&e.append(t,n)},e},sn=function(e,t){return e?on(e,{xsolla_lang:t}):""},cn=function(e,t){var n=document.createElement("script");n.type="text/javascript",n.src="https://accounts.google.com/gsi/client",n.async=!0,n.defer=!0,document.getElementsByTagName("head")[0].appendChild(n),window.onGoogleLibraryLoad=function(){window.google.accounts.id.initialize({client_id:e,callback:function(e){return t(e)},context:"signin",cancel_on_tap_outside:!1}),window.google.accounts.id.prompt()}};var ln,un={apiUrl:"https://login.xsolla.com/api/",cdnUrl:"https://cdn.xsolla.net/login-widget/",consentUrl:"https://consent-api.xsolla.com/v2/consen",projectId:"",theme:{background:{color:"#FFFFFF",image:{url:"",opacity:"1"}},primary_color:"#0073F7",secondary_color:"#DADADA",text_color:"#000000",error_color:"#eb002f",button_image:"",rounding:{inputs:"6px",buttons:"100px",widget:"6px"},scene:{color:"#f7faff"}},is_oauth2:!1},dn=function(e){return e&&e.data&&e.data.error&&(e.data.error.code||0===e.data.error.code&&"0")||null},fn=["clientId","scope","state","redirectUri","responseType"],pn=fn.concat(["audience"]),hn=["projectId","fullLocale","callbackUrl","payload","with_logout"],mn=["customStyle","customLabels"],gn=["emailTemplate"],vn=["challenge_id","fullLocale"],wn=function(e,t,n){void 0===t&&(t=[]);var r={projectId:e.projectId};return n&&(r["x-request-id"]=n),t.forEach(function(t){if(e[t])switch(t){case"callbackUrl":r.login_url=e.callbackUrl;break;case"fullLocale":r.locale=e.fullLocale?e.fullLocale.replace("-","_"):e.fullLocale;break;case"clientId":r.client_id=e.clientId;break;case"redirectUri":r.redirect_uri=e.redirectUri;break;case"responseType":r.response_type=e.responseType;break;case"emailTemplate":r.email_template=e.emailTemplate;break;default:r[t]=e[t]}}),r},yn=function(t){return function(n){var i=It.create();i.defaults.baseURL=t.apiUrl||"https://login.xsolla.com/api",i.defaults.withCredentials=!0;var a=["/login/email/request","/login/phone/request","/login/email/confirm","/login/phone/confirm","/login","/user"];return i.interceptors.request.use(function(e){return e.analytics={requestName:n,requestUrl:""+e.baseURL+e.url,projectId:t.projectId,startTime:(new Date).getTime(),requestType:e.method},e.url&&a.includes(e.url)&&(e.headers["X-REQUEST-ID"]=tn()),e},function(e){return Promise.reject(e)}),i.interceptors.response.use(function(t){var n=t.config.analytics,i=n.startTime,a=o(n,["startTime"]);return nn(e.MetrikaEventNames.performanceRequest,{exv:r({},a,{isError:!1,load_time:(new Date).getTime()-i})}),t},function(t){var n=t.response.config.analytics,i=n.startTime,a=o(n,["startTime"]),s=dn(t.response);return nn(e.MetrikaEventNames.performanceRequest,{exv:r({},a,{isError:s,load_time:(new Date).getTime()-i})}),Promise.reject(t)}),i}},bn=function(){function t(e){this.config=un,this.updateConfig(e),this.loginApi=yn(e)}return t.prototype.getConfig=function(){return this.config},t.prototype.updateConfig=function(e){var t=function e(t){if(null!=t){var n=Array.isArray(t)?[]:{};return Object.keys(t).forEach(function(r){var o=t[r];"object"==typeof o?n[r]=e(o):""!==o&&(n[r]=o)}),n}}(e);!function e(t,n){if(void 0===t)return n;for(var r in n)r in t&&"object"==typeof n[r]?e(t[r],n[r]):void 0!==n[r]&&(t[r]=n[r]);return t}(this.config,t);var n=this.config,r=n.clientId,o=n.redirectUri,i=n.responseType,a=n.state;return r&&i&&o&&a&&(this.config.is_oauth2=!0),this.config},t.prototype.fetchConfig=function(){return i(this,void 0,void 0,function(){var t,n,o,i,s,c,l,u,d,f,p,h,m,g,v,w=this;return a(this,function(a){return t=wn(this.config,hn.concat(fn)),n=this.config,o=n.settingsJSON,i=n.socialsJSON,s=n.themeJSON,c=n.projectId,l=n.apiUrl,u=n.disableCache,d=new URL(o||l+"/projects/"+c+"/settings/auth"),f=new URL(i||l+"/projects/"+c+"/settings/socials/by_region"),p=new URL(s||l+"/projects/"+c+"/settings/widget"),h=(new Date).getTime(),m={projectId:c,requestName:"fetchConfigWidget",requestType:"get",requestUrl:[d,f,p,l+"/client/details"]},u&&(g=Date.now(),d.searchParams.append("currTime",g.toString()),f.searchParams.append("currTime",g.toString()),p.searchParams.append("currTime",g.toString())),v=[It.get(d.toString(),{withCredentials:!1}),It.get(f.toString(),{withCredentials:!1}),It.get(p.toString(),{withCredentials:!1}),this.loginApi("details").get("/client/details")],[2,Promise.all(v).then(function(n){nn(e.MetrikaEventNames.performanceRequest,{exv:r({},m,{isError:!1,load_time:(new Date).getTime()-h})});var o,i,a,s,c,l,u=n,d=u[0],f=u[1],p=u[2],g=u[3].data.geo_ip_country.toUpperCase()||"US",v=function(e,t,n,r){var o=r.projectId,i=r.client_id,a=void 0===i?"":i,s=r.scope,c=void 0===s?"":s,l=r.state,u=void 0===l?"":l,d=r.response_type,f=void 0===d?"":d,p=r.redirect_uri,h=void 0===p?"":p,m=r.login_url,g=void 0===m?"":m,v=r.payload,w=void 0===v?"":v,y=r.locale,b=void 0===y?"":y,E=an(new URLSearchParams);E.appendIfNotEmpty("projectId",o),E.appendIfNotEmpty("login_url",g),E.appendIfNotEmpty("payload",w),E.appendIfNotEmpty("locale",b),n&&(E.appendIfNotEmpty("client_id",a.toString()),E.appendIfNotEmpty("redirect_uri",h),E.appendIfNotEmpty("response_type",f),E.appendIfNotEmpty("scope",c),E.appendIfNotEmpty("state",u));var _="?"+E.toString(),k=Object.keys(rn).includes(t)?e[rn[t]]:e[rn.US],S=k.primary.map(function(e){return{name:e.name,url:n?""+e.oauth2+_:""+e.jwt+_}}),x=k.secondary.map(function(e){return{name:e.name,url:n?""+e.oauth2+_:""+e.jwt+_}});return k.custom&&S.unshift({name:k.custom.name,url:n?""+k.custom.oauth2+_:""+k.custom.jwt+_}),{primary:S,secondary:x,all:S.concat(x),showOtherLink:!1}}(f.data,g,w.config.is_oauth2||!1,t),y=(o=d.data,i=o.tos_url,a=o.consent_url,s=o.cookie_policy,c=o.privacy_policy,l="en",navigator.language&&(l=navigator.language.trim().split(/-|_/)[0]),r({},o,{tos_url:sn(i,l),consent_url:sn(a,l),cookie_policy:sn(s,l),privacy_policy:sn(c,l)}));return w.updateConfig(r({apiUrl:"",projectId:""},y,{social_links:r({},v),theme:p.data,geo_ip_country:g}))}).then(function(e){return s?It.get(s,{withCredentials:!1}).then(function(t){return w.updateConfig(r({},e,{theme:t.data}))}):e}).catch(function(t){var n=dn(t.response);if(nn(e.MetrikaEventNames.performanceRequest,{exv:r({},m,{isError:n,load_time:(new Date).getTime()-h})}),n)throw new qt(n);throw t})]})})},t.prototype.signup=function(e){var t=e.userInfo;return i(this,void 0,void 0,function(){var e,n;return a(this,function(r){return e=wn(this.config,hn.concat(fn,gn)),n=this.config.is_oauth2?"/oauth2/user":"/user",[2,this.loginApi("signup").post(n,t,{params:e}).then(function(e){return e.data}).catch(function(e){var t=dn(e.response);if(t)throw new qt(t);throw e})]})})},t.prototype.login=function(e){var t=e.credentials,n=e.captchaData;return i(this,void 0,void 0,function(){var e,r,o;return a(this,function(i){return e=wn(this.config,hn.concat(fn)),r={},this.config.callbackUrl&&(e.login_url=this.config.callbackUrl),n&&(r["X-LOT-NUMBER"]=n.lot_number,r["X-CAPTCHA-OUTPUT"]=n.captcha_output,r["X-PASS-TOKEN"]=n.pass_token,r["X-GEN-TIME"]=n.gen_time),o=this.config.is_oauth2?"/oauth2/login":"/login",[2,this.loginApi("login").post(o,t,{params:e,headers:r}).then(function(e){return e.data}).catch(function(e){var t=dn(e.response),n=e.response.headers["x-captcha-enabled"];if("003-038"===t&&n&&"1"===n)throw new qt("003-338");if(t)throw new qt(t);throw e})]})})},t.prototype.agreement=function(e){var t=e.token,n=e.isAccepted,r=e.consentId;return i(this,void 0,void 0,function(){var e;return a(this,function(o){return e={token:t,projectId:this.config.projectId,accept_consent:n},r&&(e.consent_id=r),[2,this.loginApi("socialConsent").put("/social/consent",e).then(function(e){return e.data}).catch(function(e){var t=dn(e.response);if(t)throw new qt(t);throw e})]})})},t.prototype.reset=function(e){return i(this,void 0,void 0,function(){var t;return a(this,function(n){return t=wn(this.config,hn.concat(gn)),this.config.callbackUrl&&(t.login_url=this.config.callbackUrl),[2,this.loginApi("passwordResetRequest").post("/password/reset/request",e,{params:t}).then(function(e){return e.data}).catch(function(e){var t=dn(e.response);if(t)throw new qt(t);throw e})]})})},t.prototype.set=function(e){return i(this,void 0,void 0,function(){var t,n;return a(this,function(r){return t=wn(this.config,hn),this.config.callbackUrl&&(t.login_url=this.config.callbackUrl),n={new_password:e.newPassword,reset_code:e.code,user_id:e.user_id},[2,this.loginApi("passwordResetConfirm").post("/password/reset/confirm",n,{params:t}).then(function(e){return e.data}).catch(function(e){var t=dn(e.response);if(t)throw new qt(t);throw e})]})})},t.prototype.getConfirmCode=function(e){return i(this,void 0,void 0,function(){var t;return a(this,function(n){return t={projectId:this.config.projectId,login:e.login.toLowerCase(),operation_id:e.operation_id},[2,this.loginApi("getConfirmCode").get("/otc/code",{params:t,cancelToken:e.cancelToken.token}).then(function(e){return e.data}).catch(function(e){var t=dn(e.response);if(t)throw new qt(t);throw e})]})})},t.prototype.pushConfirmCode=function(e){return i(this,void 0,void 0,function(){var t;return a(this,function(n){return t=r({projectId:this.config.projectId},e),[2,this.loginApi("pushConfirmCode").get("/otc/push",{params:t}).then(function(e){return e.data}).catch(function(e){var t=dn(e.response);if(t)throw new qt(t);throw e})]})})},t.prototype.ask=function(e){return i(this,void 0,void 0,function(){var t,n,r,i,s,c,l,u,d,f,p,h,m;return a(this,function(a){return t=wn(this.config,hn.concat(fn,gn,mn)),n=t.customLabels,r=void 0===n?"":n,i=t.customStyle,s=void 0===i?"":i,c=o(t,["customLabels","customStyle"]),(l=an(new URLSearchParams)).appendIfNotEmpty("customStyle",s),l.appendIfNotEmpty("customLabels",r),u=l.toString(),(m={})[e.fields.email?"email":"phone_number"]={link_url:u?e.link_url+"/?"+u:e.link_url,send_link:this.config.enable_magic_link&&!this.config.disableConfirmByLink},d=m,f={},e.captchaData&&(f["X-LOT-NUMBER"]=e.captchaData.lot_number,f["X-CAPTCHA-OUTPUT"]=e.captchaData.captcha_output,f["X-PASS-TOKEN"]=e.captchaData.pass_token,f["X-GEN-TIME"]=e.captchaData.gen_time),p={updatedFields:e.fields,token:e.token,settings:d,email:this.config.is_oauth2?e.fields.email:""},h=this.config.is_oauth2?"/oauth2/user/ask":"/token/update",[2,this.loginApi("userAsk").post(h,p,{params:c,headers:f}).then(function(e){return e.data}).catch(function(e){var t=dn(e.response),n=e.response.headers["x-captcha-enabled"];if("003-038"===t&&n&&"1"===n)throw new qt("003-338");if(t)throw new qt(t);throw e})]})})},t.prototype.getAskFields=function(e){return i(this,void 0,void 0,function(){var t,n;return a(this,function(r){return t={projectId:this.config.projectId},(n={}).Authorization="Bearer "+e,[2,this.loginApi("getAskFields").get("/users/me/ask",{params:t,headers:n}).then(function(e){return 0!==e.data.length?e.data:function(){var e=[],t=new URLSearchParams(window.location.search).getAll("fields");if(0!==t.length)for(var n=0,r=t[0].split(",");n<r.length;n++)if("email"===r[n]){e.push({name:"email",required:!0,type:"email",validation:{regexps:[]},step:0});break}return e}()}).catch(function(e){var t=dn(e.response);if(t)throw new qt(t);throw e})]})})},t.prototype.getSocialLink=function(e,t){return i(this,void 0,void 0,function(){var n,o,i;return a(this,function(a){return n=Ft.get()._mm_vid_2222,o=wn(r({},this.config,t),hn.concat(fn),n),i=this.config.is_oauth2?"oauth2/social/"+e+"/login_url":"/social/"+e+"/login_url",[2,this.loginApi("getSocialLink").get(i,{params:o}).then(function(e){return e.data}).catch(function(e){var t=dn(e.response);if(t)throw new qt(t);throw e})]})})},t.prototype.otpLogin=function(e){var t=e.code,n=e.remember_me,r=void 0===n||n;return i(this,void 0,void 0,function(){var e;return a(this,function(n){return e=wn(this.config,vn),[2,this.loginApi("otpLoginValidate").get("/otp/validate",{params:{code:t,remember_me:r,challenge_id:e.challenge_id}}).then(function(e){return e.data}).catch(function(e){var t=dn(e.response);if(t)throw new qt(t);throw e})]})})},t.prototype.otpResendCode=function(){return i(this,void 0,void 0,function(){var e;return a(this,function(t){return e=wn(this.config,vn),[2,this.loginApi("otpResendCode").put("/otp/resend",{locale:e.locale},{params:{challenge_id:e.challenge_id}}).then(function(e){return e.data}).catch(function(e){var t=dn(e.response);if(t)throw new qt(t);throw e})]})})},t.prototype.phoneGetCode=function(e){var t=e.phone_number,n=e.link_url,r=e.isOauth2,s=e.captchaData;return i(this,void 0,void 0,function(){var e,i,c,l,u,d,f,p,h,m;return a(this,function(a){return e=wn(this.config,hn.concat(fn,mn)),i=e.customLabels,c=void 0===i?"":i,l=e.customStyle,u=void 0===l?"":l,d=o(e,["customLabels","customStyle"]),f={},s&&(f["X-LOT-NUMBER"]=s.lot_number,f["X-CAPTCHA-OUTPUT"]=s.captcha_output,f["X-PASS-TOKEN"]=s.pass_token,f["X-GEN-TIME"]=s.gen_time),p=(r?"/oauth2":"")+"/login/phone/request",(h=an(new URLSearchParams)).appendIfNotEmpty("customStyle",u),h.appendIfNotEmpty("customLabels",c),m=h.toString(),[2,this.loginApi("phoneGetCode").post(p,{link_url:m?n+"/?"+m:n,phone_number:t||"",send_link:this.config.enable_magic_link&&!this.config.disableConfirmByLink},{params:d,headers:f}).then(function(e){return e.data}).catch(function(e){var t=dn(e.response),n=e.response.headers["x-captcha-enabled"];if("003-038"===t&&n&&"1"===n)throw new qt("003-338");if(t)throw new qt(t);throw e})]})})},t.prototype.loginWithPhoneCode=function(e){var t=e.phone_number,n=e.code,r=e.operation_id,o=e.isOauth2;return i(this,void 0,void 0,function(){var e,i;return a(this,function(a){return e=wn(this.config,hn.concat(fn)),i=(o?"/oauth2":"")+"/login/phone/confirm",[2,this.loginApi("loginWithPhoneCodeConfirm").post(i,{phone_number:t,code:n,operation_id:r},{params:e}).then(function(e){return e.data}).catch(function(e){var t=dn(e.response);if(t)throw new qt(t);throw e})]})})},t.prototype.emailGetCode=function(e){var t=e.email,n=e.isOauth2,r=e.link_url,s=e.captchaData;return i(this,void 0,void 0,function(){var e,i,c,l,u,d,f,p,h,m;return a(this,function(a){return e=wn(this.config,hn.concat(fn,mn)),i=e.customLabels,c=void 0===i?"":i,l=e.customStyle,u=void 0===l?"":l,d=o(e,["customLabels","customStyle"]),f={},s&&(f["X-LOT-NUMBER"]=s.lot_number,f["X-CAPTCHA-OUTPUT"]=s.captcha_output,f["X-PASS-TOKEN"]=s.pass_token,f["X-GEN-TIME"]=s.gen_time),p=(n?"/oauth2":"")+"/login/email/request",(h=an(new URLSearchParams)).appendIfNotEmpty("customStyle",u),h.appendIfNotEmpty("customLabels",c),m=h.toString(),[2,this.loginApi("emailGetCode").post(p,{link_url:m?r+"/?"+m:r,email:t?t.toLowerCase():"",send_link:this.config.enable_magic_link&&!this.config.disableConfirmByLink},{params:d,headers:f}).then(function(e){return e.data}).catch(function(e){var t=dn(e.response),n=e.response.headers["x-captcha-enabled"];if("003-038"===t&&n&&"1"===n)throw new qt("003-338");if(t)throw new qt(t);throw e})]})})},t.prototype.loginWithEmailCode=function(e){var t=e.email,n=e.code,r=e.operation_id,o=e.isOauth2;return i(this,void 0,void 0,function(){var e,i;return a(this,function(a){return e=wn(this.config,hn.concat(fn)),i=(o?"/oauth2":"")+"/login/email/confirm",[2,this.loginApi("loginWithEmail_CodeConfirm").post(i,{email:t,code:n,operation_id:r},{params:e}).then(function(e){return e.data}).catch(function(e){var t=dn(e.response);if(t)throw new qt(t);throw e})]})})},t.prototype.resendEmail=function(e){var t=wn(this.config,hn.concat(fn,gn)),n=(this.config.is_oauth2?"/oauth2":"")+"/user/resend_confirmation_link";return this.loginApi("resendEmailConfirmationLink").post(n,{username:e},{params:t}).then(function(e){return e.data}).catch(function(e){var t=dn(e.response);if(t)throw new qt(t);throw e})},t.prototype.oneTapLogin=function(e,t){return i(this,void 0,void 0,function(){var n,r;return a(this,function(o){return n=wn(this.config,hn.concat(fn)),r=(this.config.is_oauth2?"/oauth2":"")+"/social/"+t+"/one_tap/complete",[2,this.loginApi("oneTapLoginComplete").post(r,{access_token:e},{params:n}).then(function(e){return e.data}).catch(function(e){var t=dn(e.response);if(t)throw new qt(t);throw e})]})})},t.prototype.checkUserAuthSSO=function(){return i(this,void 0,void 0,function(){var e;return a(this,function(t){return e=wn(this.config,hn),[2,this.loginApi("oneTapLoginComplete").get("/jwt/sso",{params:e}).then(function(e){return e.data}).catch(function(e){var t=dn(e.response);if(t)throw new qt(t);throw e})]})})},t.prototype.userAuthSSOWithRedirect=function(e){return i(this,void 0,void 0,function(){var t;return a(this,function(n){return t=wn(this.config,hn),[2,this.loginApi("userAuthSSOWithRedirect").get("/jwt/sso/redirect",{params:r({},t,{login_url:e})}).then(function(e){return e.data}).catch(function(e){var t=dn(e.response);if(t)throw new qt(t);throw e})]})})},t.prototype.logout=function(e,t){return i(this,void 0,void 0,function(){var n;return a(this,function(r){return(n={}).Authorization="Bearer "+e,[2,this.loginApi("logout").get("/oauth2/logout",{headers:n,params:{sessions:t}}).then(function(e){return e.data}).catch(function(e){var t=dn(e.response);if(t)throw new qt(t);throw e})]})})},t.prototype.oauth2Auth=function(){var t=wn(this.config,pn),n=this.config,r=n.payload,o=n.enablePostMessageLogin,i=r&&function(e){try{return JSON.parse(e),!0}catch(e){return!1}}(r)&&JSON.parse(r).trackId,a=this.config.apiUrl+"/oauth2/auth?response_type=code";i&&(a+="&trackId="+i),Object.entries(t).forEach(function(e){var t=e[0],n=e[1];a+="&"+t+"="+encodeURIComponent(n)}),o&&window.parent.opener?(Vt({message:{loginUri:a,type:e.PostMessageEvents.BabkaLogin},targetOrigin:"*"}),window.parent.close()):window.top&&(window.top.location.href=a)},t.prototype.oauth2ConsentValidate=function(e){return i(this,void 0,void 0,function(){var t,n,r;return a(this,function(o){return t=wn(this.config,fn),(n={}).Authorization="Bearer "+e,r=this.config.apiUrl+"/oauth2/consent/validate",[2,this.loginApi("oauth2ConsentValidate").post(r,{client_id:t.client_id,scope:t.scope},{headers:n}).then(function(e){return e.data}).catch(function(e){var t=dn(e.response);if(t)throw new qt(t);throw e})]})})},t.prototype.oauth2PostConsent=function(e,t){return i(this,void 0,void 0,function(){var n,o;return a(this,function(i){return n=wn(this.config,fn),(o={}).Authorization="Bearer "+e,[2,this.loginApi("oauth2PostConsent").post("/oauth2/consent",r({},n,{approval:t}),{headers:o}).then(function(e){return e.data}).catch(function(e){var t=dn(e.response);if(t)throw new qt(t);throw e})]})})},t.prototype.clearSSO=function(){return i(this,void 0,void 0,function(){var e;return a(this,function(t){return e=wn(this.config),[2,this.loginApi("clear_sso").get("/oauth2/clear_sso",{params:e}).then(function(e){return e.data}).catch(function(e){var t=dn(e.response);if(t)throw new qt(t);throw e})]})})},t.prototype.protectedRedirect=function(e){var t=this.config,n=t.projectId,r=t.clientId,o=this.config.apiUrl+"/protected_redirect?url="+e;return o+=r?"&client_id="+r:"&projectId="+n},t.prototype.getCustomStylesLabels=function(e){return i(this,void 0,void 0,function(){return a(this,function(t){return[2,this.loginApi("").get("/client/customisation?client_id="+e).then(function(e){return e.data}).catch(function(e){var t=dn(e.response);if(t)throw new qt(t);throw e})]})})},t}(),En="object"==typeof Reflect?Reflect:null,_n=En&&"function"==typeof En.apply?En.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};ln=En&&"function"==typeof En.ownKeys?En.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var kn=Number.isNaN||function(e){return e!=e};function Sn(){Sn.init.call(this)}var xn=Sn;Sn.EventEmitter=Sn,Sn.prototype._events=void 0,Sn.prototype._eventsCount=0,Sn.prototype._maxListeners=void 0;var On=10;function Ln(e){return void 0===e._maxListeners?Sn.defaultMaxListeners:e._maxListeners}function Tn(e,t,n,r){var o,i,a,s;if("function"!=typeof n)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof n);if(void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=Ln(e))>0&&a.length>o&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,s=c,console&&console.warn&&console.warn(s)}return e}function Pn(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=function(){for(var e=[],t=0;t<arguments.length;t++)e.push(arguments[t]);this.fired||(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,_n(this.listener,this.target,e))}.bind(r);return o.listener=n,r.wrapFn=o,o}function Rn(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):An(o,o.length)}function Cn(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function An(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(Sn,"defaultMaxListeners",{enumerable:!0,get:function(){return On},set:function(e){if("number"!=typeof e||e<0||kn(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");On=e}}),Sn.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Sn.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||kn(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},Sn.prototype.getMaxListeners=function(){return Ln(this)},Sn.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var s=o[e];if(void 0===s)return!1;if("function"==typeof s)_n(s,this,t);else{var c=s.length,l=An(s,c);for(n=0;n<c;++n)_n(l[n],this,t)}return!0},Sn.prototype.addListener=function(e,t){return Tn(this,e,t,!1)},Sn.prototype.on=Sn.prototype.addListener,Sn.prototype.prependListener=function(e,t){return Tn(this,e,t,!0)},Sn.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);return this.on(e,Pn(this,e,t)),this},Sn.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);return this.prependListener(e,Pn(this,e,t)),this},Sn.prototype.removeListener=function(e,t){var n,r,o,i,a;if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);if(void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},Sn.prototype.off=Sn.prototype.removeListener,Sn.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},Sn.prototype.listeners=function(e){return Rn(this,e,!0)},Sn.prototype.rawListeners=function(e){return Rn(this,e,!1)},Sn.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):Cn.call(e,t)},Sn.prototype.listenerCount=Cn,Sn.prototype.eventNames=function(){return this._eventsCount>0?ln(this._events):[]};var Un,In=function(e){e.sandbox.add("allow-forms"),e.sandbox.add("allow-scripts"),e.sandbox.add("allow-same-origin"),e.sandbox.add("allow-top-navigation"),e.sandbox.add("allow-modals"),e.sandbox.add("allow-popups"),e.sandbox.add("allow-popups-to-escape-sandbox"),e.sandbox.add("allow-presentation"),e.sandbox.add("allow-orientation-lock"),e.sandbox.add("allow-pointer-lock")},Nn={projectId:"8513c380-0336-4927-b351-02ccec7f3cb6",url:"https://login-widget.xsolla.com/latest",popupBackgroundColor:"rgba(0, 0, 0, 0.6)",showPopupBackground:!0,iframeZIndex:9e3,siteHaveGDPRBanner:!1,showCloseButton:!1},Mn=["preferredLocale","callbackUrl","disableConfirmByLink","payload","with_logout","clientId","emailTemplate","scope","state","redirectUri","responseType","isDemo","challenge_id","analyticsProductName","theme","authData","page","customStyle","customLabels","parentIsFrame","settingsJSON","socialsJSON","themeJSON","siteHaveGDPRBanner","sendLoadMetrics","enablePostMessageLogin","disableCache","audience","token","showCloseButton","babkaLoginFlow","socialLoginFlow","disableSocials","appleIdPriority","trackId","disable_passwordless_email","forcePrimarySocial"],jn={signUp:"/sign-up",confirm:"/confirm",logIn:"/",passwordReset:"/password/reset",passwordSet:"/password/set",ask:"/ask",error:"/404",socials:"/socials",agreement:"/agreement",otp:"/otp",logInUserPreset:"/",externalOauth2:"/external_oauth2",loginCustomRedirection:"/login-custom-redirection"},Bn=function(t){function o(n){var o=t.call(this)||this;return o.events=e.PostMessageEvents,o.eventsArray=Object.values(e.PostMessageEvents),o.handler={},o.config=r({},Nn,n),o.api=new bn(r({},un,n)),o.inFullscreenMode=!1,o.page=o.config.page?jn[o.config.page]:"",o.setLocale(o.config.preferredLocale),o.on("newListener",function(t){if(!(o.eventsArray.indexOf(t)>-1))throw new Ht("Invalid event");t===e.PostMessageEvents.Close&&(o.handler[t]=!0)}),o.postMessageHandler=o.onPostMessage.bind(o),window.addEventListener("message",o.postMessageHandler),o}return n(o,t),o.prototype.mount=function(t){var n=this.config,r=n.isHardMounted,o=n.babkaLoginPopup;this.iframe=document.createElement("iframe"),this.iframe.style.width="100%",this.iframe.style.height="100%",this.iframe.style.border="none",this.iframe.style.borderRadius="inherit",r&&(this.iframe.style.position="absolute",this.iframe.style.top="0",this.iframe.style.bottom="0",this.iframe.style.left="0",this.iframe.style.right="0"),this.iframe.sandbox&&In(this.iframe);var i=r?document.body:document.getElementById(t);if(i){var a=window.getComputedStyle(i);this.config.sendLoadMetrics="none"!==a.display&&"hidden"!==a.visibility,o&&(i.style.display="none"),i.appendChild(this.iframe)}this.updateWidget(),nn(e.MetrikaEventNames.widget_open),this.initDispatcher(),"popup"===this.config.babkaLoginFlow&&(this.babkaLoginIframe=document.createElement("iframe"),this.babkaLoginIframe.style.width="100%",this.babkaLoginIframe.style.height="100%",this.babkaLoginIframe.style.border="none",this.babkaLoginIframe.style.borderRadius="inherit",this.babkaLoginIframe.style.position="absolute",this.babkaLoginIframe.style.top="0",this.babkaLoginIframe.style.bottom="0",this.babkaLoginIframe.style.left="0",this.babkaLoginIframe.style.right="0",this.babkaLoginIframe.style.zIndex="9999",this.babkaLoginIframe.style.display="none",this.babkaLoginIframe.style.background="rgba(0, 0, 0, 0.4)",this.babkaLoginIframe.sandbox&&In(this.babkaLoginIframe),i&&i.appendChild(this.babkaLoginIframe))},o.prototype.unmount=function(){if(!this.iframe||!this.iframe.parentNode)throw new Ht("Widget is not mounted");this.iframe.parentNode.removeChild(this.iframe),window.removeEventListener("message",this.postMessageHandler)},o.prototype.setLocale=function(e){e&&(this.locale=Xt(e),this.updateWidget())},o.prototype.setTheme=function(t){if(!this.iframe||!this.iframe.contentWindow)throw new Ht("Widget is not mounted");Vt({message:{theme:t,type:e.PostMessageEvents.ThemeUpdate},targetOrigin:this.config.url||window.location.origin,target:this.iframe.contentWindow})},o.prototype.setPage=function(t){if(t){if(!this.iframe||!this.iframe.contentWindow)throw new Ht("Widget is not mounted");Vt({message:{page:t,type:e.PostMessageEvents.PageOpen},targetOrigin:this.config.url||window.location.origin,target:this.iframe.contentWindow})}},o.prototype.open=function(){if(!this.iframe||!this.iframe.contentWindow)return Error("Widget is not mounted");if(this.config.babkaLoginPopup)Vt({message:{type:e.PostMessageEvents.BabkaLoginPopup},targetOrigin:this.config.url||window.location.origin,target:this.iframe.contentWindow});else{var t=this.iframe.style;t.position="fixed",t.zIndex=String(this.config.iframeZIndex),t.left="0",t.top="0",t.width="100%",t.height="100%",this.inFullscreenMode=!0,this.config.showPopupBackground&&this.config.popupBackgroundColor?t.backgroundColor=this.config.popupBackgroundColor:t.backgroundColor="transparent"}nn(e.MetrikaEventNames.widget_open),Vt({message:{type:e.PostMessageEvents.IframeOpen},targetOrigin:this.config.url||window.location.origin,target:this.iframe.contentWindow})},o.prototype.close=function(){if(!this.iframe||!this.iframe.contentWindow)return Error("Widget is not mounted");var e=this.iframe.style;e.position="",e.zIndex="",e.left="",e.top="",e.width="0",e.height="0",e.backgroundColor=""},o.prototype.initDispatcher=function(){var t=this;Jt(Kt+"message",function(n){n.data.type!==e.PostMessageEvents.Close||t.handler[e.PostMessageEvents.Close]||t.onCloseEvent(n.data.source),n.data.type===e.PostMessageEvents.GoogleOneTapOpen?t.onOpenGoogleOneTapEvent(n.data.params):t.emit(n.data.type,n.data)},!1)},o.prototype.onCloseEvent=function(t){(this.inFullscreenMode||t===e.CloseSource.Button)&&this.close()},o.prototype.onOpenGoogleOneTapEvent=function(t){var n=this;if(!this.iframe||!this.iframe.parentNode)throw new Ht("Widget is not mounted");var r=t.appId;cn(r,function(t){Vt({message:{type:e.PostMessageEvents.GoogleOneTapSuccess,credential:t.credential},targetOrigin:n.config.url||window.location.origin,target:n.iframe.contentWindow})})},o.prototype.updateWidget=function(){var e=this;if(this.iframe){var t="";Mn.forEach(function(n){var r=e.config[n];if(r)switch(n){case"preferredLocale":t+="&locale="+r;break;case"clientId":t+="&client_id="+r;break;case"redirectUri":t+="&redirect_uri="+r;break;case"responseType":t+="&response_type="+r;break;case"theme":t+="&theme="+JSON.stringify(r);break;case"authData":t+="&auth_data="+JSON.stringify(r);break;case"siteHaveGDPRBanner":default:t+="&"+n+"="+r}}),this.iframe.src=""+this.config.url+this.page+"?projectId="+this.config.projectId,this.iframe.src+=t}},o.prototype.onPostMessage=function(t){switch(t.data.type){case e.PostMessageEvents.OpenBabkaPopupWidget:if(!this.babkaLoginIframe)return;return void(t.data.src?this.babkaLoginIframe.src=t.data.src:this.babkaLoginIframe.style.display="block");case e.PostMessageEvents.BabkaPopupWidgetClose:return void(this.babkaLoginIframe&&(this.babkaLoginIframe.style.display="none"));case e.PostMessageEvents.BabkaPopupWidgetLoad:if(this.babkaLoginIframe&&(this.babkaLoginIframe.style.display="block"),!this.iframe||!this.iframe.src||!this.iframe.contentWindow)return;return void Vt({message:{type:e.PostMessageEvents.BabkaPopupWidgetLoad},targetOrigin:this.config.url||window.location.origin,target:this.iframe.contentWindow});case e.PostMessageEvents.SocialLoginSuccess:if(!window.top||!this.config.callbackUrl||this.config.enablePostMessageLogin)return;var n=new URL(this.config.callbackUrl);return n.searchParams.append("token",t.data.params.token),void(window.top.location.href=n.toString());default:return}},o}(xn);return(Un=e.Socials||(e.Socials={})).amazon="amazon",Un.apple="apple",Un.babka="babka",Un.baidu="baidu",Un.battlenet="battlenet",Un.china_telecom="china_telecom",Un.discord="discord",Un.email="email",Un.epicgames="epicgames",Un.facebook="facebook",Un.github="github",Un.google="google",Un["google-plus"]="google-plus",Un.instagram="instagram",Un.kabam="kabam",Un.kakao="kakao",Un.kefir="kefir",Un.linkedin="linkedin",Un.mailru="mailru",Un.microsoft="microsoft",Un.msn="msn",Un.naver="naver",Un.ok="ok",Un.okta="okta",Un.paradox="paradox",Un.paypal="paypal",Un.paxdei="paxdei",Un.paxdeidev="paxdeidev",Un.pinterest="pinterest",Un.qq="qq",Un.reddit="reddit",Un.steam="steam",Un.slack="slack",Un.twitch="twitch",Un.twitter="twitter",Un.vimeo="vimeo",Un.vk="vk",Un.wbgames="wbgames",Un.wechat="wechat",Un.weibo="weibo",Un.xbox="xbox",Un.yahoo="yahoo",Un.yandex="yandex",Un.youtube="youtube",e.Api=bn,e.defaultConfig=un,e.Widget=Bn,e.APIError=qt,e.SUPPORTED_LANGUAGES=Wt,e.LANGUAGE_MAP={ae:"ar",bh:"ar",dz:"ar",eg:"ar",iq:"ar",jo:"ar",km:"km",kw:"ar",lb:"ar",ly:"ar",ma:"ar",mr:"ar",om:"ar",ps:"ar",qa:"ar",sa:"ar",sd:"ar",sy:"ar",tn:"ar",ye:"ar",bg:"bg",cz:"cs",de:"de",at:"de",li:"de",ch:"de",es:"es",ar:"es",bo:"es",cl:"es",co:"es",cr:"es",cu:"es",do:"es",ec:"es",eh:"es",gq:"es",gt:"es",hn:"es",mx:"es",ni:"es",pa:"es",pe:"es",pr:"es",py:"es",sv:"es",uy:"es",ve:"es",fr:"fr",bf:"fr",bi:"fr",bj:"fr",bl:"fr",cd:"fr",cf:"fr",cg:"fr",ci:"fr",dj:"fr",ga:"fr",gf:"fr",gn:"fr",gp:"fr",ht:"fr",lu:"fr",mc:"fr",mg:"fr",ml:"fr",mq:"fr",nc:"fr",ne:"fr",pf:"fr",pm:"fr",re:"fr",sc:"fr",sn:"fr",td:"fr",tf:"fr",tg:"fr",wf:"fr",yt:"fr",il:"he",hu:"hu",it:"it",sm:"it",va:"it",jp:"ja",kr:"ko",kp:"ko",pt:"pt",ao:"pt",br:"pt",cv:"pt",gw:"pt",mz:"pt",st:"pt",tl:"pt",ro:"ro",md:"ro",ru:"ru",kz:"ru",ua:"ru",by:"ru",th:"th",tr:"tr",vn:"vi",cn:"zh",hk:"zh",mo:"zh",tw:"zh",id:"id",lo:"lo",my:"my",ph:"ph"},e.sendMessage=Vt,e.initGoogleOneTap=cn,e.getUrlVersion=function(e){var t=e.match(/\/([^\/]+)\//);return null!==t?t[1]:"latest"},e.getPageName=function(e){var t=e.lastIndexOf("/");return e.substring(t+1,e.length)},e.initAnalytics=function(e){var t=e.projectId,n=e.trackId,o=e.analyticsProductName,i=e.sendLoadMetrics;try{var a=["login-widget.xsolla.com"],s=a.concat(["account.xsolla.com"]),c={projectId:Yt=t,trackId:Qt=n};o&&(c.productName=o);var l={extraValues:c,sendLoadMetrics:i,server:"https://datagather.xsolla.com/hit",externalId:Yt};return window.XA=new window.XsollaAnalytics(r({},l,{id:2222,siteDomains:a})),window.XA_BabkaLogin=new window.XsollaAnalytics(r({},l,{id:2002,hit:!1,extLink:!1,click:!1,scroll:!1,siteDomains:s})),!0}catch(e){return e}},e.TRACK_ID_COOKIE_NAME="xl_track_id",e.getTrackId=tn,e.addEvent=nn,e.openEvent=function(e,t){if(window.XA){var n=en(t);window.XA.hit(e,n)}},e.addBabkaLoginEvent=function(e,t){if(window.XA_BabkaLogin){var n=en(t);window.XA_BabkaLogin.elementClick(e,n)}},e.addQueryParamsToURL=on,e}({});
//# sourceMappingURL=sdk.js.map
