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 o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function r(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&(n[o[r]]=e[o[r]])}return n}function i(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{c(o.next(e))}catch(e){i(e)}}function s(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){e.done?r(e.value):new n(function(t){t(e.value)}).then(a,s)}c((o=o.apply(e,t||[])).next())})}function a(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[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,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],o=0}finally{n=r=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=[],g=!1,m=-1;function v(){g&&p&&(g=!1,p.length?h=p.concat(h):m=-1,h.length&&w())}function w(){if(!g){var e=f(v);g=!0;for(var t=h.length;t;){for(p=h,h=[];++m<t;)p&&p[m].run();m=-1,t=h.length}p=null,g=!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||g||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),o=Math.floor(t%1*1e9);return e&&(n-=e[0],(o-=e[1])<0&&(n--,o+=1e9)),[n,o]},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 o,r;if("object"!=typeof e&&(e=[e]),D(e))for(o=0,r=e.length;o<r;o++)t.call(null,e[o],o,e);else{const r=n?Object.getOwnPropertyNames(e):Object.keys(e),i=r.length;let a;for(o=0;o<i;o++)a=r[o],t.call(null,e[a],a,e)}}function oe(e,t){t=t.toLowerCase();const n=Object.keys(e);let o,r=n.length;for(;r-- >0;)if(t===(o=n[r]).toLowerCase())return o;return null}const re=(()=>"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:s)(),ie=e=>!F(e)&&e!==re;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),o={};ne(n,(n,r)=>{let i;!1!==(i=t(n,r,e))&&(o[r]=i||n)}),Object.defineProperties(e,o)};const de=j("AsyncFunction"),fe=((e,t)=>e?setImmediate:t?((e,t)=>(re.addEventListener("message",({source:n,data:o})=>{n===re&&o===e&&t.length&&t.shift()()},!1),n=>{t.push(n),re.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))("function"==typeof setImmediate,W(re.postMessage)),pe="undefined"!=typeof queueMicrotask?queueMicrotask.bind(re):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={},o=(o,r)=>{const i=t&&oe(n,r)||r;V(n[i])&&V(o)?n[i]=e(n[i],o):V(o)?n[i]=e({},o):D(o)?n[i]=o.slice():n[i]=o};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&ne(arguments[e],o);return n},extend:(e,t,n,{allOwnKeys:o}={})=>(ne(t,(t,o)=>{n&&W(t)?e[o]=U(t,n):e[o]=t},{allOwnKeys:o}),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,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{let r,i,a;const s={};if(t=t||{},null==e)return t;do{for(i=(r=Object.getOwnPropertyNames(e)).length;i-- >0;)a=r[i],o&&!o(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 o=e.indexOf(t,n);return-1!==o&&o===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 o;for(;(o=n.next())&&!o.done;){const n=o.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const o=[];for(;null!==(n=e.exec(t));)o.push(n);return o},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 o=e[n];W(o)&&(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={},o=e=>{e.forEach(e=>{n[e]=!0})};return D(e)?o(e):o(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:oe,global:re,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,o)=>{if(X(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[o]=e;const r=D(e)?[]:{};return ne(e,(e,t)=>{const i=n(e,o+1);!F(i)&&(r[t]=i)}),t[o]=void 0,r}}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 ge(e,t,n,o,r){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),o&&(this.request=o),r&&(this.response=r,this.status=r.status?r.status:null)}he.inherits(ge,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 me=ge.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(ge,ve),Object.defineProperty(me,"isAxiosError",{value:!0}),ge.from=((e,t,n,o,r,i)=>{const a=Object.create(me);return he.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),ge.call(a,e.message,t,n,o,r),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 o=(n=he.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!he.isUndefined(t[e])})).metaTokens,r=n.visitor||l,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&he.isSpecCompliantForm(t);if(!he.isFunction(r))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 ge("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,r){let s=e;if(e&&!r&&"object"==typeof e)if(he.endsWith(n,"{}"))n=o?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,o){!he.isUndefined(e)&&null!==e&&t.append(!0===a?be([n],o,i):null===a?n:n+"[]",c(e))}),!1;return!!we(e)||(t.append(be(r,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,o){if(!he.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+o.join("."));u.push(n),he.forEach(n,function(n,i){!0===(!(he.isUndefined(n)||null===n)&&r.call(t,n,he.isString(i)?i.trim():i,o,d))&&e(n,o?o.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 o=n&&n.encode||Oe;he.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let i;if(i=r?r(t,n):he.isURLSearchParams(t)?t.toString():new Se(t,n).toString(o)){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,o,r){let i=e[r++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=r>=e.length;return i=!i&&he.isArray(o)?o.length:i,s?(he.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!a):(o[i]&&he.isObject(o[i])||(o[i]=[]),t(e,n,o[i],r)&&he.isArray(o[i])&&(o[i]=function(e){const t={},n=Object.keys(e);let o;const r=n.length;let i;for(o=0;o<r;o++)t[i=n[o]]=e[i];return t}(o[i])),!a)}if(he.isFormData(e)&&he.isFunction(e.entries)){const n={};return he.forEachEntry(e,(e,o)=>{t(function(e){return he.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),o,n,0)}),n}return null}const Be={transitional:Pe,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,r=he.isObject(e);if(r&&he.isHTMLForm(e)&&(e=new FormData(e)),he.isFormData(e))return o?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(r){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,o){return Me.isNode&&he.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.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 r||o?(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,o="json"===this.responseType;if(he.isResponse(e)||he.isReadableStream(e))return e;if(e&&he.isString(e)&&(n&&!this.responseType||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw ge.from(e,ge.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,o,r;return e&&e.split("\n").forEach(function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),o=e.substring(r+1).trim(),!n||t[n]&&De[n]||("set-cookie"===n?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),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,o,r){return he.isFunction(o)?o.call(this,t,n):(r&&(t=n),he.isString(t)?he.isString(o)?-1!==t.indexOf(o):he.isRegExp(o)?o.test(t):void 0:void 0)}class Ve{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function r(e,t,n){const r=He(t);if(!r)throw new Error("header name must be a non-empty string");const i=he.findKey(o,r);(!i||void 0===o[i]||!0===n||void 0===n&&!1!==o[i])&&(o[i||t]=We(e))}const i=(e,t)=>he.forEach(e,(e,n)=>r(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,o]of e.entries())r(o,t,n);else null!=e&&r(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 o;for(;o=n.exec(e);)t[o[1]]=o[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 o=!1;function r(e){if(e=He(e)){const r=he.findKey(n,e);!r||t&&!Xe(0,n[r],r,t)||(delete n[r],o=!0)}}return he.isArray(e)?e.forEach(r):r(e),o}clear(e){const t=Object.keys(this);let n=t.length,o=!1;for(;n--;){const r=t[n];e&&!Xe(0,this[r],r,e,!0)||(delete this[r],o=!0)}return o}normalize(e){const t=this,n={};return he.forEach(this,(o,r)=>{const i=he.findKey(n,r);if(i)return t[i]=We(o),void delete t[r];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(r):String(r).trim();a!==r&&delete t[r],t[a]=We(o),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return he.forEach(this,(n,o)=>{null!=n&&!1!==n&&(t[o]=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 o(e){const o=He(e);t[o]||(!function(e,t){const n=he.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(e,n,r){return this[o].call(this,t,e,n,r)},configurable:!0})})}(n,e),t[o]=!0)}return he.isArray(e)?e.forEach(o):o(e),this}}function ze(e,t){const n=this||Be,o=t||n,r=Ve.from(o.headers);let i=o.data;return he.forEach(e,function(e){i=e.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function Je(e){return!(!e||!e.__CANCEL__)}function Ke(e,t,n){ge.call(this,null==e?"canceled":e,ge.ERR_CANCELED,t,n),this.name="CanceledError"}function Ze(e,t,n){const o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new ge("Request failed with status code "+n.status,[ge.ERR_BAD_REQUEST,ge.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,ge,{__CANCEL__:!0});const $e=(e,t,n=3)=>{let o=0;const r=function(e,t){e=e||10;const n=new Array(e),o=new Array(e);let r,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),l=o[a];r||(r=c),n[i]=s,o[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-r<t)return;const f=l&&c-l;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let n,o,r=0,i=1e3/t;const a=(t,i=Date.now())=>{r=i,n=null,o&&(clearTimeout(o),o=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-r;s>=i?a(e,t):(n=e,o||(o=setTimeout(()=>{o=null,a(n)},i-s)))},()=>n&&a(n)]}(n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-o,c=r(s);o=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[o=>t[0]({lengthComputable:n,total:e,loaded:o}),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,o,r,i){const a=[e+"="+encodeURIComponent(t)];he.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),he.isString(o)&&a.push("path="+o),he.isString(r)&&a.push("domain="+r),!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 o=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&o||0==n?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const ot=e=>e instanceof Ve?{...e}:e;function rt(e,t){t=t||{};const n={};function o(e,t,n,o){return he.isPlainObject(e)&&he.isPlainObject(t)?he.merge.call({caseless:o},e,t):he.isPlainObject(t)?he.merge({},t):he.isArray(t)?t.slice():t}function r(e,t,n,r){return he.isUndefined(t)?he.isUndefined(e)?void 0:o(void 0,e,0,r):o(e,t,0,r)}function i(e,t){if(!he.isUndefined(t))return o(void 0,t)}function a(e,t){return he.isUndefined(t)?he.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function s(n,r,i){return i in t?o(n,r):i in e?o(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)=>r(ot(e),ot(t),0,!0)};return he.forEach(Object.keys(Object.assign({},e,t)),function(o){const i=c[o]||r,a=i(e[o],t[o],o);he.isUndefined(a)&&i!==s||(n[o]=a)}),n}var it=e=>{const t=rt({},e);let n,{data:o,withXSRFToken:r,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(o))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&&(r&&he.isFunction(r)&&(r=r(t)),r||!1!==r&&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 o=it(e);let r=o.data;const i=Ve.from(o.headers).normalize();let a,s,c,l,u,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=o;function h(){l&&l(),u&&u(),o.cancelToken&&o.cancelToken.unsubscribe(a),o.signal&&o.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;function m(){if(!g)return;const o=Ve.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());Ze(function(e){t(e),h()},function(e){n(e),h()},{data:d&&"text"!==d&&"json"!==d?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:o,config:e,request:g}),g=null}g.open(o.method.toUpperCase(),o.url,!0),g.timeout=o.timeout,"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(m)},g.onabort=function(){g&&(n(new ge("Request aborted",ge.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new ge("Network Error",ge.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let t=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const r=o.transitional||Pe;o.timeoutErrorMessage&&(t=o.timeoutErrorMessage),n(new ge(t,r.clarifyTimeoutError?ge.ETIMEDOUT:ge.ECONNABORTED,e,g)),g=null},void 0===r&&i.setContentType(null),"setRequestHeader"in g&&he.forEach(i.toJSON(),function(e,t){g.setRequestHeader(t,e)}),he.isUndefined(o.withCredentials)||(g.withCredentials=!!o.withCredentials),d&&"json"!==d&&(g.responseType=o.responseType),p&&([c,u]=$e(p,!0),g.addEventListener("progress",c)),f&&g.upload&&([s,l]=$e(f),g.upload.addEventListener("progress",s),g.upload.addEventListener("loadend",l)),(o.cancelToken||o.signal)&&(a=(t=>{g&&(n(!t||t.type?new Ke(null,e,g):t),g.abort(),g=null)}),o.cancelToken&&o.cancelToken.subscribe(a),o.signal&&(o.signal.aborted?a():o.signal.addEventListener("abort",a)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(o.url);v&&-1===Me.protocols.indexOf(v)?n(new ge("Unsupported protocol "+v+":",ge.ERR_BAD_REQUEST,e)):g.send(r||null)})};const st=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,o=new AbortController;const r=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;o.abort(t instanceof ge?t:new Ke(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,r(new ge(`timeout ${t} of ms exceeded`,ge.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};e.forEach(e=>e.addEventListener("abort",r));const{signal:s}=o;return s.unsubscribe=(()=>he.asap(a)),s}},ct=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let o,r=0;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},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,o)=>{const r=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,o&&o(e))};return new ReadableStream({async pull(e){try{const{done:t,value:o}=await r.next();if(t)return s(),void e.close();let i=o.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(o))}catch(e){throw s(e),e}},cancel:e=>(s(e),r.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}},gt=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}),mt=ft&&ht(()=>he.isReadableStream(new Response("").body)),vt={stream:mt&&(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 ge(`Response type '${e}' is not supported`,ge.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:o,signal:r,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([r,i&&i.toAbortSignal()],a);const g=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let m;try{if(c&&gt&&"get"!==n&&"head"!==n&&0!==(m=await yt(u,o))){let e,n=new Request(t,{method:"POST",body:o,duplex:"half"});if(he.isFormData(o)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=Ye(m,$e(Qe(c)));o=ut(n.body,65536,e,t)}}he.isString(d)||(d=d?"include":"omit");const r="credentials"in Request.prototype;p=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:o,duplex:"half",credentials:r?d:void 0});let i=await fetch(p);const a=mt&&("stream"===l||"response"===l);if(mt&&(s||a&&g)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=i[t]});const t=he.toFiniteNumber(i.headers.get("content-length")),[n,o]=s&&Ye(t,$e(Qe(s),!0))||[];i=new Response(ut(i.body,65536,n,()=>{o&&o(),g&&g()}),e)}l=l||"text";let v=await vt[he.findKey(vt,l)||"text"](i,e);return!a&&g&&g(),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(g&&g(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new ge("Network Error",ge.ERR_NETWORK,e,p),{cause:t.cause||t});throw ge.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,o;const r={};for(let i=0;i<t;i++){let t;if(o=n=e[i],!_t(n)&&void 0===(o=bt[(t=String(n)).toLowerCase()]))throw new ge(`Unknown adapter '${t}'`);if(o)break;r[t||"#"+i]=o}if(!o){const e=Object.entries(r).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new ge("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 o},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 o(e,t){return"[Axios v"+Ot+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,i)=>{if(!1===e)throw new ge(o(r," has been removed"+(t?" in "+t:"")),ge.ERR_DEPRECATED);return t&&!Tt[r]&&(Tt[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,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 ge("options must be an object",ge.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let r=o.length;for(;r-- >0;){const i=o[r],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new ge("option "+i+" must be "+n,ge.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new ge("Unknown option "+i,ge.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=rt(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:r}=t;void 0!==n&&Pt.assertOptions(n,{silentJSONParsing:Rt.transitional(Rt.boolean),forcedJSONParsing:Rt.transitional(Rt.boolean),clarifyTimeoutError:Rt.transitional(Rt.boolean)},!1),null!=o&&(he.isFunction(o)?t.paramsSerializer={serialize:o}:Pt.assertOptions(o,{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=r&&he.merge(r.common,r[t.method]);r&&he.forEach(["delete","get","head","post","put","patch","common"],e=>{delete r[e]}),t.headers=Ve.concat(i,r);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=rt(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(rt(n||{},{method:e,url:t,data:(n||{}).data}))}}),he.forEach(["post","put","patch"],function(e){function t(t){return function(n,o,r){return this.request(rt(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}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 o=new Promise(e=>{n.subscribe(e),t=e}).then(e);return o.cancel=function(){n.unsubscribe(t)},o}),e(function(e,o,r){n.reason||(n.reason=new Ke(e,o,r),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),o=U(Ct.prototype.request,n);return he.extend(o,Ct.prototype,n,{allOwnKeys:!0}),he.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(rt(t,n))},o}(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=ge,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=rt,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 o in n)t[o]=n[o]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(o){function r(){}function i(t,n,i){if("undefined"!=typeof document){"number"==typeof(i=e({path:"/"},r.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=o.write?o.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 r={},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=(o.read||o)(c,l)||t(c),n)try{c=JSON.parse(c)}catch(e){}if(r[l]=c,e===l)break}catch(e){}}return e?r[e]:r}}return r.set=i,r.get=function(e){return a(e,!1)},r.getJSON=function(e){return a(e,!0)},r.remove=function(t,n){i(t,"",e(n,{expires:-1}))},r.defaults={},r.withConverter=n,r}(function(){})},e.exports=n()}),qt=function(e){function t(n){for(var o=[],r=1;r<arguments.length;r++)o[r-1]=arguments[r];var i=e.apply(this,o)||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 o=[],r=1;r<arguments.length;r++)o[r-1]=arguments[r];var i=e.apply(this,o)||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,r=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(o({},n),r)}}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(o({},n),r);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(o({},n),r);break;case e.PostMessageEvents.BabkaLogin:c.opener.postMessage(o({},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,o=!1,r=!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&&(o=!1,r=!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 o=window.chrome.loadTimes();if(o.requestTime&&o.firstPaintTime&&window.performance&&window.performance.timing)return(e=Math.round(1e3*o.firstPaintTime-window.performance.timing.navigationStart))<s?e:null}else if(window.performance&&window.performance.timing&&((o=window.performance.timing).navigationStart&&o.msFirstPaint))return(e=o.msFirstPaint-o.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(),o=0;o<n.length;o++)e(n[o])});n.observe({type:"largest-contentful-paint",buffered:!0}),document.addEventListener("visibilitychange",function t(){if("hidden"===document.visibilityState){document.removeEventListener("visibilitychange",t,!0);var o=[];n.takeRecords&&(o=n.takeRecords());for(var r=0;r<o.length;r++)e(o[r]);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}},g=function(){try{return window.top!==window.self}catch(e){return!1}},m=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 o,r=[this._prepareName(e)+"="+encodeURIComponent(t)];n&&((o=new Date).setTime(o.getTime()+6e4*n),r.push("expires="+o.toGMTString())),this._domain&&r.push("domain="+this._domain),r.push("path=/");try{document.cookie=r.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("&"),o=window.location.hash.replace("#","").split("&").concat(n),r=!1;return o.forEach(function(n){var o=n.split("=");return"utm_source"===o[0]&&o[1]&&e.indexOf(o[1])?r=!0:"utm_medium"===o[0]&&o[1]&&t.indexOf(o[1])?r=!0:void 0}),r},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 o="_xm="+t.xsollauid;e=-1===e.indexOf("?")?e+"?"+o:e+"&"+o}var r="string"!=typeof n?JSON.stringify(n):n;t.xsollauid||0!==t.hitCount?t.xsollauid||1!==t.hitCount?this.sendBeacon(e,r)||this.sendXHR(e,r):setTimeout(function(){t.hitCount=2,E.send(e,n)},1e3):(t.hitCount=1,this.sendXHR(e,r))},sendUserParams:function(e){e.clid=t.clientId,e.cid=t.counterId;var n=JSON.stringify(e),o=t.userParamsUrl;this.sendBeacon(o,n)||this.sendXHR(o,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 o=new XMLHttpRequest;try{o.open("POST",e,!0)}catch(e){return!1}return o.timeout=1e4,o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.withCredentials=!0,o.ontimeout=function(){E.sendXHR(e,n)},o.onload=function(){var e=E.getValueFromUrl(o.responseURL,"_xm");if(e&&e!==t.xsollauid)t.xsollauid=y.getXsollauid(e);else{var n=E.getValueFromBody(o.responseText,"xsollauid");n&&n!==t.xsollauid&&(t.xsollauid=y.getXsollauid(n))}},o.send(n),!0}return!1},getValueFromUrl:function(e,t){if(e&&e.indexOf(t+"=")>-1){var n=new RegExp("https?://.*"+t+"=([^&]*)"),o=e.match(n);if(o&&o.length>1)return o[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,o=h();""!==o&&(e.ntf=o);var r=d();""!==r&&(e.net=r),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=m()?1:0,e.sw=n.width,e.sh=n.height,e.sc=n.colorDepth||n.pixelDepth,g()&&(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,o,r,i){r&&this.documentVisibilityChange(),r&&this.documentReadyEvent(u),e&&this.documentReadyEvent(this.onDocumentReady),t&&this.documentReadyEvent(this.clickEvent),n&&this.documentReadyEvent(this.selectorEvent),o&&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;!o&&e>0&&(o=!0,E.send(t.hitUrl,{et:10,url:window.location.href,eid:t.externalId,exv:t.extraValues,abParams:t.abParams})),!r&&2*e>n-document.documentElement.clientHeight&&(r=!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 o=n;break e}n=n.parentNode,e--}o={}}if(("http:"===o.protocol||"https:"===o.protocol)&&o.href&&b.isInternal(o.href)&&!(o.href.indexOf("_xm=")>-1)&&t.xsollauid&&t.counterId){var r="_xm="+t.counterId+"."+t.xsollauid;o.href=-1!==o.href.indexOf("?")?o.href+"&"+r:o.href+"?"+r}}},k={hit:function(e,n){if(t.isBrowser){var o=c.apiHelper(1,n),r=window.location!=window.parent.location?document.referrer:document.location.href,i=o&&o.referer?o.referer:r;o.referer=i,o.referer!=document.location.href&&E.setXsollauidFromUrl(e),o.url=e,E.send(t.hitUrl,o)}},externalLink:function(e,n){if(t.isBrowser){var o=c.apiHelper(2,n);o.referer=window.location.href,o.url=e,E.send(t.hitUrl,o)}},elementClick:function(e,n){if(t.isBrowser){var o=c.apiHelper(3,n);o.url=window.location.href,o.en=e,E.send(t.hitUrl,o)}},formData:function(e,n,o){if(t.isBrowser){var r=c.apiHelper(4,o);r.url=window.location.href;var i=n?JSON.stringify(n):"";r.form=i,r.en=e,E.send(t.hitUrl,r)}},customEvent:function(e,n){if(t.isBrowser){var o=c.apiHelper(5,n);o.url=window.location.href,o.en=e,E.send(t.hitUrl,o)}},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 o=e?t.server+"/"+e:"",r=t.xsollauid?"_xm="+t.xsollauid:"";(o=r?-1!==o.indexOf("?")?o+"&"+r:o+"?"+r:o)&&E.send(o,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=o({},e,{exv:o({},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 o=en(t);window.XA.elementClick(n,o)}},on={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},rn=function(e,t){var n=e;return Object.entries(t).forEach(function(e,t){var o=e[0],r=e[1];0!==t||n.includes("?")?n+="&"+o+"="+r:n+="?"+o+"="+r}),n},an=function(e){return e.appendIfNotEmpty=function(t,n){n&&e.append(t,n)},e},sn=function(e,t){return e?rn(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"],gn=["customStyle","customLabels"],mn=["emailTemplate"],vn=["challenge_id","fullLocale"],wn=function(e,t,n){void 0===t&&(t=[]);var o={projectId:e.projectId};return n&&(o["x-request-id"]=n),t.forEach(function(t){if(e[t])switch(t){case"callbackUrl":o.login_url=e.callbackUrl;break;case"fullLocale":o.locale=e.fullLocale?e.fullLocale.replace("-","_"):e.fullLocale;break;case"clientId":o.client_id=e.clientId;break;case"redirectUri":o.redirect_uri=e.redirectUri;break;case"responseType":o.response_type=e.responseType;break;case"emailTemplate":o.email_template=e.emailTemplate;break;default:o[t]=e[t]}}),o},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=r(n,["startTime"]);return nn(e.MetrikaEventNames.performanceRequest,{exv:o({},a,{isError:!1,load_time:(new Date).getTime()-i})}),t},function(t){var n=t.response.config.analytics,i=n.startTime,a=r(n,["startTime"]),s=dn(t.response);return nn(e.MetrikaEventNames.performanceRequest,{exv:o({},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(o){var r=t[o];"object"==typeof r?n[o]=e(r):""!==r&&(n[o]=r)}),n}}(e);!function e(t,n){if(void 0===t)return n;for(var o in n)o in t&&"object"==typeof n[o]?e(t[o],n[o]):void 0!==n[o]&&(t[o]=n[o]);return t}(this.config,t);var n=this.config,o=n.clientId,r=n.redirectUri,i=n.responseType,a=n.state;return o&&i&&r&&a&&(this.config.is_oauth2=!0),this.config},t.prototype.fetchConfig=function(){return i(this,void 0,void 0,function(){var t,n,r,i,s,c,l,u,d,f,p,h,g,m,v,w,y=this;return a(this,function(a){return t=wn(this.config,hn.concat(fn)),n=this.config,r=n.settingsJSON,i=n.socialsJSON,s=n.themeJSON,c=n.projectId,l=n.apiUrl,u=n.disableCache,d="https://login.xsolla.com/api"===l?"https://cdn.xsolla.net/xsolla-login-widget":l,f=new URL(r||d+"/projects/"+c+"/settings/auth"),p=new URL(i||d+"/projects/"+c+"/settings/socials/by_region"),h=new URL(s||d+"/projects/"+c+"/settings/widget"),g=(new Date).getTime(),m={projectId:c,requestName:"fetchConfigWidget",requestType:"get",requestUrl:[f,p,h,l+"/client/details"]},u&&(v=Date.now(),f.searchParams.append("currTime",v.toString()),p.searchParams.append("currTime",v.toString()),h.searchParams.append("currTime",v.toString())),w=[It.get(f.toString(),{withCredentials:!1}),It.get(p.toString(),{withCredentials:!1}),It.get(h.toString(),{withCredentials:!1}),this.loginApi("details").get("/client/details")],[2,Promise.all(w).then(function(n){nn(e.MetrikaEventNames.performanceRequest,{exv:o({},m,{isError:!1,load_time:(new Date).getTime()-g})});var r,i,a,s,c,l,u=n,d=u[0],f=u[1],p=u[2],h=u[3].data.geo_ip_country.toUpperCase()||"US",v=function(e,t,n,o){var r=o.projectId,i=o.client_id,a=void 0===i?"":i,s=o.scope,c=void 0===s?"":s,l=o.state,u=void 0===l?"":l,d=o.response_type,f=void 0===d?"":d,p=o.redirect_uri,h=void 0===p?"":p,g=o.login_url,m=void 0===g?"":g,v=o.payload,w=void 0===v?"":v,y=o.locale,b=void 0===y?"":y,E=an(new URLSearchParams);E.appendIfNotEmpty("projectId",r),E.appendIfNotEmpty("login_url",m),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(on).includes(t)?e[on[t]]:e[on.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,h,y.config.is_oauth2||!1,t),w=(r=d.data,i=r.tos_url,a=r.consent_url,s=r.cookie_policy,c=r.privacy_policy,l="en",navigator.language&&(l=navigator.language.trim().split(/-|_/)[0]),o({},r,{tos_url:sn(i,l),consent_url:sn(a,l),cookie_policy:sn(s,l),privacy_policy:sn(c,l)}));return y.updateConfig(o({apiUrl:"",projectId:""},w,{social_links:o({},v),theme:p.data,geo_ip_country:h}))}).then(function(e){return s?It.get(s,{withCredentials:!1}).then(function(t){return y.updateConfig(o({},e,{theme:t.data}))}):e}).catch(function(t){var n=dn(t.response);if(nn(e.MetrikaEventNames.performanceRequest,{exv:o({},m,{isError:n,load_time:(new Date).getTime()-g})}),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(o){return e=wn(this.config,hn.concat(fn,mn)),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,o,r;return a(this,function(i){return e=wn(this.config,hn.concat(fn)),o={},this.config.callbackUrl&&(e.login_url=this.config.callbackUrl),n&&(o["X-LOT-NUMBER"]=n.lot_number,o["X-CAPTCHA-OUTPUT"]=n.captcha_output,o["X-PASS-TOKEN"]=n.pass_token,o["X-GEN-TIME"]=n.gen_time),r=this.config.is_oauth2?"/oauth2/login":"/login",[2,this.loginApi("login").post(r,t,{params:e,headers:o}).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,o=e.consentId;return i(this,void 0,void 0,function(){var e;return a(this,function(r){return e={token:t,projectId:this.config.projectId,accept_consent:n},o&&(e.consent_id=o),[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(mn)),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(o){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=o({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,o,i,s,c,l,u,d,f,p,h,g;return a(this,function(a){return t=wn(this.config,hn.concat(fn,mn,gn)),n=t.customLabels,o=void 0===n?"":n,i=t.customStyle,s=void 0===i?"":i,c=r(t,["customLabels","customStyle"]),(l=an(new URLSearchParams)).appendIfNotEmpty("customStyle",s),l.appendIfNotEmpty("customLabels",o),u=l.toString(),(g={})[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=g,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(o){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,o=t[0].split(",");n<o.length;n++)if("email"===o[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,r,i;return a(this,function(a){return n=Ft.get()._mm_vid_2222,r=wn(o({},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:r}).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,o=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:o,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,o=e.isOauth2,s=e.captchaData;return i(this,void 0,void 0,function(){var e,i,c,l,u,d,f,p,h,g;return a(this,function(a){return e=wn(this.config,hn.concat(fn,gn)),i=e.customLabels,c=void 0===i?"":i,l=e.customStyle,u=void 0===l?"":l,d=r(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=(o?"/oauth2":"")+"/login/phone/request",(h=an(new URLSearchParams)).appendIfNotEmpty("customStyle",u),h.appendIfNotEmpty("customLabels",c),g=h.toString(),[2,this.loginApi("phoneGetCode").post(p,{link_url:g?n+"/?"+g: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,o=e.operation_id,r=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=(r?"/oauth2":"")+"/login/phone/confirm",[2,this.loginApi("loginWithPhoneCodeConfirm").post(i,{phone_number:t,code:n,operation_id:o},{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,o=e.link_url,s=e.captchaData;return i(this,void 0,void 0,function(){var e,i,c,l,u,d,f,p,h,g;return a(this,function(a){return e=wn(this.config,hn.concat(fn,gn)),i=e.customLabels,c=void 0===i?"":i,l=e.customStyle,u=void 0===l?"":l,d=r(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),g=h.toString(),[2,this.loginApi("emailGetCode").post(p,{link_url:g?o+"/?"+g:o,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,o=e.operation_id,r=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=(r?"/oauth2":"")+"/login/email/confirm",[2,this.loginApi("loginWithEmail_CodeConfirm").post(i,{email:t,code:n,operation_id:o},{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,mn)),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,o;return a(this,function(r){return n=wn(this.config,hn.concat(fn)),o=(this.config.is_oauth2?"/oauth2":"")+"/social/"+t+"/one_tap/complete",[2,this.loginApi("oneTapLoginComplete").post(o,{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:o({},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(o){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,o=n.payload,r=n.enablePostMessageLogin,i=o&&function(e){try{return JSON.parse(e),!0}catch(e){return!1}}(o)&&JSON.parse(o).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)}),r&&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,o;return a(this,function(r){return t=wn(this.config,fn),(n={}).Authorization="Bearer "+e,o=this.config.apiUrl+"/oauth2/consent/validate",[2,this.loginApi("oauth2ConsentValidate").post(o,{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,r;return a(this,function(i){return n=wn(this.config,fn),(r={}).Authorization="Bearer "+e,[2,this.loginApi("oauth2PostConsent").post("/oauth2/consent",o({},n,{approval:t}),{headers:r}).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,o=t.clientId,r=this.config.apiUrl+"/protected_redirect?url="+e;return r+=o?"&client_id="+o:"&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,o){var r,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]=o?[n,a]:[a,n]:o?a.unshift(n):a.push(n),(r=Ln(e))>0&&a.length>r&&!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 o={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=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(o);return r.listener=n,o.wrapFn=r,r}function Rn(e,t,n){var o=e._events;if(void 0===o)return[];var r=o[t];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]: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}(r):An(r,r.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),o=0;o<t;++o)n[o]=e[o];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 o="error"===e,r=this._events;if(void 0!==r)o=o&&void 0===r.error;else if(!o)return!1;if(o){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=r[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,o,r,i,a;if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);if(void 0===(o=this._events))return this;if(void 0===(n=o[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete o[e],o.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(r=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,r=i;break}if(r<0)return this;0===r?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,r),1===n.length&&(o[e]=n[0]),void 0!==o.removeListener&&this.emit("removeListener",e,a||t)}return this},Sn.prototype.off=Sn.prototype.removeListener,Sn.prototype.removeAllListeners=function(e){var t,n,o;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 r,i=Object.keys(n);for(o=0;o<i.length;++o)"removeListener"!==(r=i[o])&&this.removeAllListeners(r);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(o=t.length-1;o>=0;o--)this.removeListener(e,t[o]);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 r(n){var r=t.call(this)||this;return r.events=e.PostMessageEvents,r.eventsArray=Object.values(e.PostMessageEvents),r.handler={},r.config=o({},Nn,n),r.api=new bn(o({},un,n)),r.inFullscreenMode=!1,r.page=r.config.page?jn[r.config.page]:"",r.setLocale(r.config.preferredLocale),r.on("newListener",function(t){if(!(r.eventsArray.indexOf(t)>-1))throw new Ht("Invalid event");t===e.PostMessageEvents.Close&&(r.handler[t]=!0)}),r.postMessageHandler=r.onPostMessage.bind(r),window.addEventListener("message",r.postMessageHandler),r}return n(r,t),r.prototype.mount=function(t){var n=this.config,o=n.isHardMounted,r=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",o&&(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=o?document.body:document.getElementById(t);if(i){var a=window.getComputedStyle(i);this.config.sendLoadMetrics="none"!==a.display&&"hidden"!==a.visibility,r&&(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))},r.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)},r.prototype.setLocale=function(e){e&&(this.locale=Xt(e),this.updateWidget())},r.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})},r.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})}},r.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})},r.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=""},r.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)},r.prototype.onCloseEvent=function(t){(this.inFullscreenMode||t===e.CloseSource.Button)&&this.close()},r.prototype.onOpenGoogleOneTapEvent=function(t){var n=this;if(!this.iframe||!this.iframe.parentNode)throw new Ht("Widget is not mounted");var o=t.appId;cn(o,function(t){Vt({message:{type:e.PostMessageEvents.GoogleOneTapSuccess,credential:t.credential},targetOrigin:n.config.url||window.location.origin,target:n.iframe.contentWindow})})},r.prototype.updateWidget=function(){var e=this;if(this.iframe){var t="";Mn.forEach(function(n){var o=e.config[n];if(o)switch(n){case"preferredLocale":t+="&locale="+o;break;case"clientId":t+="&client_id="+o;break;case"redirectUri":t+="&redirect_uri="+o;break;case"responseType":t+="&response_type="+o;break;case"theme":t+="&theme="+JSON.stringify(o);break;case"authData":t+="&auth_data="+JSON.stringify(o);break;case"siteHaveGDPRBanner":default:t+="&"+n+"="+o}}),this.iframe.src=""+this.config.url+this.page+"?projectId="+this.config.projectId,this.iframe.src+=t}},r.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}},r}(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,r=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};r&&(c.productName=r);var l={extraValues:c,sendLoadMetrics:i,server:"https://datagather.xsolla.com/hit",externalId:Yt};return window.XA=new window.XsollaAnalytics(o({},l,{id:2222,siteDomains:a})),window.XA_BabkaLogin=new window.XsollaAnalytics(o({},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=rn,e}({});
//# sourceMappingURL=sdk.js.map
