diff --git a/ont.js.download b/ont.js.download index 5046cc2..6937011 100644 --- a/ont.js.download +++ b/ont.js.download @@ -1,2 +1 @@ -/*! For license information please see ont.js.LICENSE.txt */ -(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})}};e.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(I){if("object"===typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var t={};function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(){r=function(){return t};var e,t={},o=Object.prototype,i=o.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",s=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,i=Object.create(o.prototype),c=new P(r||[]);return a(i,"_invoke",{value:I(e,n,c)}),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var v="suspendedStart",h="suspendedYield",g="executing",y="completed",m={};function b(){}function w(){}function x(){}var k={};f(k,u,(function(){return this}));var E=Object.getPrototypeOf,S=E&&E(E(L([])));S&&S!==o&&i.call(S,u)&&(k=S);var _=x.prototype=b.prototype=Object.create(k);function j(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,a,c,u){var s=p(e[o],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&i.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,c,u)}),(function(e){r("throw",e,c,u)})):t.resolve(f).then((function(e){l.value=e,c(l)}),(function(e){return r("throw",e,c,u)}))}u(s.arg)}var o;a(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function I(t,n,r){var o=v;return function(i,a){if(o===g)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var u=T(c,r);if(u){if(u===m)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===v)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=g;var s=p(t,n,r);if("normal"===s.type){if(o=r.done?y:h,s.arg===m)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=y,r.method="throw",r.arg=s.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=p(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function L(t){if(t||""===t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),s=i.call(a,"finallyLoc");if(u&&s){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),N(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;N(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:L(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function o(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void n(s)}c.done?t(u):Promise.resolve(u).then(r,o)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function c(e){o(a,r,i,c,u,"next",e)}function u(e){o(a,r,i,c,u,"throw",e)}c(void 0)}))}}function a(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===n(t)?t:String(t)}function c(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;tgt});const f={read:function(e){var t=e;return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};var d=function(){return Boolean("undefined"===typeof window||void 0)},p={"<":"<",">":">"};function v(e){return e.replace(/(javascript:|vbscript:|view-source:)*/gi,"").replace(/(expression|eval|alert|function|setTimeout|setInterval)/gi,"").replace(/(window\.location|window\.|\.location|document\.cookie|window\.cookie|cookie|document\.|alert\(.*?\)|window\.open\(.*?\)|document\.write\(.*?\))/gi,"").replace(/]/g,(function(e){return p[e]}))}(v(e)):e}var g=d(),y=j();const m=function e(t,n){function r(e,r,o){if(!g){var i,a=s({},o);"number"===typeof(a=l({},n,a)).expires&&(a.expires=new Date(Date.now()+864e5*a.expires)),a.expires&&(a.expires=a.expires.toUTCString()),i=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";return Object.keys(a).forEach((function(e){a[e]&&(c+="; ".concat(e),!0!==a[e]&&(c+="=".concat(a[e].split(";")[0])))})),document.cookie="".concat(i,"=").concat(t.write(r,i)).concat(c)}}return Object.create({set:r,get:function(e){if(!arguments.length||e){var n,r;if(g)return null===y||void 0===y||null===(n=y.ssrUtils)||void 0===n||null===(r=n.cookies)||void 0===r?void 0:r.get(e);for(var o=document.cookie?document.cookie.split("; "):[],i={},a=0;a0&&void 0!==arguments[0])||arguments[0],t=m.get(b);if(!t)return e?{}:"";try{return e?JSON.parse(function(e){var t=k(e);return x?Buffer.from(t,"base64").toString("utf-8"):window.atob(t)}(t)):t}catch(I){}return{}},S=function(e){var t=E();Object.keys(e).forEach((function(n){t[n]=e[n]}));var n,r,o,i=(n=JSON.stringify(t),k(x?Buffer.from(n).toString("base64"):window.btoa(n)));x?null===w||void 0===w||null===(r=w.ssrUtils)||void 0===r||null===(o=r.cookies)||void 0===o||o.set(b,i):m.set(b,i)},_={};function j(){var t;if("undefined"!==typeof globalThis)t=globalThis;else if("undefined"!==typeof window)t=window;else{if("undefined"===typeof e.g)throw new Error("unable to locate global object");t=e.g}return t.addEventListener=t.addEventListener||function(){},t}const O=new Proxy({_global_subscribe_list:{},_global_message_list:{},locale:"en_US"},{get:function(e,t,n){if("toJSON"===t)return function(){return s(s(s({},j().okGlobal),j()._okGlobal),_)};if("toString"===t)return function(){return JSON.stringify(n.toJSON())};var r=[_,j()._okGlobal,j().okGlobal,{getSiteInfo:E,setSiteInfo:S}].find((function(e){return e&&Object.prototype.hasOwnProperty.call(e,t)}));return null===r||void 0===r?void 0:r[t]},set:function(e,t,n){return _[t]=n,!0}});function I(e){this.message=e}I.prototype=new Error,I.prototype.name="InvalidCharacterError";var T="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new I("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,o=0,i=0,a="";r=t.charAt(i++);~r&&(n=o%4?64*n+r:r,o++%4)?a+=String.fromCharCode(255&n>>(-2*o&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return a};function C(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(T(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return T(t)}}function N(e){this.message=e}N.prototype=new Error,N.prototype.name="InvalidTokenError";const P=function(e,t){if("string"!=typeof e)throw new N("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(C(e.split(".")[n]))}catch(e){throw new N("Invalid token specified: "+e.message)}};var L=["/support/","/docs/","/docs-v5/","/academy/"],R=["http","//","\\/","/\\","\\"];function A(e){return!(e&&"string"===typeof e&&(t=e,!R.some((function(e){return t.startsWith(e)})))&&e.startsWith("/")&&!e.startsWith("/\\"));var t}function D(e){return"/"===e?e:e.endsWith("/")?e.slice(0,-1):e}function U(e){if(!e||"string"!==typeof e)return e;try{var t,n=O.langPath,r=void 0===n?"":n,o=O.localeMap,i=void 0===o?{}:o,a=O.locale,c=void 0===a?"":a,u=O.pathCorrection,s=void 0===u?{}:u,l=null===c||void 0===c||null===(t=c.toLowerCase())||void 0===t?void 0:t.replace("-","_"),f=e,d=function(e){var t="";return Object.keys(e).forEach((function(n){e[n]||(t=n)})),t}(i),p={localeMap:i,langPath:r,path:e,locale:l,pathCorrection:s,defaultLocale:d},v=!A(e)&&function(e){var t=e.localeMap,n=e.langPath,r=e.path,o=e.pathCorrection,i=e.defaultLocale,a="";return Object.keys(t).forEach((function(e){if(e!==i){var c="/".concat(t[e]);r.startsWith("".concat(c,"/"))&&n!==c?a="".concat(c,"/"):r===c&&(a="".concat(c))}e===i&&Object.keys(o).forEach((function(e){var t=e.replace(/\//g,"");r.startsWith("/".concat(t,"/"))?a="/".concat(t,"/"):r==="/".concat(t)&&(a="/".concat(t))}))})),a}(p);return v&&(f=f.replace(v,"/")),function(e){var t=O.okUtilsConfig,n=(void 0===t?{}:t).prefixLangPathFilter;return!!A(e)||(n||L).some((function(t){return e.startsWith(t)}))}(f)||!r&&l!==d?D(e):D(f.startsWith("".concat(r,"/"))?f:"".concat(r).concat(f))}catch(h){return e}}var K=864e5,z="token",F="devId",J="token",W="_eid",G={project:{id:206,token:"77d51bf92a0501485bb541a2ec96517e"}},B={ERR_CANCELED:"ERR_CANCELED",ERR_NETWORK:"ERR_NETWORK",ERR_TIMEOUT:"ERR_TIMEOUT"},M={useNativeTokenInApp:!0,dexEnv:0,isBlocked:!1};function H(e){Object.keys(e).forEach((function(t){void 0!==M[t]&&(M[t]=e[t])}))}const V=M;var Y="isLogin",X=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{fromInner:!1};return"prod"!==O.envSign&&null!==(e=window)&&void 0!==e&&e.jsbridge&&!t.fromInner&&console.warn("ont: please use 'ont.checkIsLogin()' to replace 'ont.isLogin()'"),Boolean(m.get(z)&&m.get(Y))},q=function(){return localStorage.getItem(J)},Z=function(){var e=i(r().mark((function e(){var t,n,o;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=window,!(n=t.jsbridge)||!n.getToken){e.next=12;break}return e.prev=2,e.next=5,n.getToken();case 5:return o=e.sent,e.abrupt("return",o);case 9:return e.prev=9,e.t0=e.catch(2),e.abrupt("return",void 0);case 12:return e.abrupt("return",void 0);case 13:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(){return e.apply(this,arguments)}}(),$=function(){var e=i(r().mark((function e(){var t,n,o=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=o.length>0&&void 0!==o[0]?o[0]:V,!O.isApp||!t.useNativeTokenInApp){e.next=6;break}return e.next=4,Z();case 4:return n=e.sent,e.abrupt("return",n);case 6:return e.abrupt("return",q());case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Q=function(e){var t=e?function(e){try{return P(e).eid}catch(t){return""}}(e):void 0;t&&t!==O.getSiteInfo().entity&&(O.setSiteInfo({entity:t}),localStorage.setItem(W,t))},ee=function(){var e=q();Q(e)},te=function(){var e=i(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Z();case 2:t=e.sent,Q(t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ne=function(e){var t="object"===typeof e?e:{token:e},n=t.token,r=t.expireTime,o=void 0===r?0:r;n&&(!function(e){m.set(z,e,{expires:7}),localStorage.setItem(J,e)}(n),ee());var i={duration:6048e5},a=Date.now();o>a&&(localStorage.setItem("token_expire_time",o),i.duration=o-a),m.set(Y,"1",{expires:i.duration/K})},re=function(){localStorage.removeItem(J),localStorage.removeItem(W),m.remove(z),localStorage.removeItem("token_expire_time"),m.remove(Y)},oe=function(){var e,t;if(re(),null!==O&&void 0!==O&&null!==(e=O.site)&&void 0!==e&&null!==(t=e.is)&&void 0!==t&&t.oklink||!O.isApp){var n=window.location,r=n.pathname,o=n.search,i=n.hash,a=encodeURIComponent("".concat(r).concat(o).concat(i));n.href=U("/account/login?logout=true&forward=".concat(a))}},ie=function(e){m.set(F,e,{expires:730})};const ae={getDeviceId:function(){var e=m.get(F);return e||(e=function(){var e=Date.now();if(!d()){var t=window.performance;"undefined"!==typeof t&&"function"===typeof t.now&&(e+=t.now())}return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return("x"===t?n:3&n|8).toString(16)}))}(),ie(e)),e},setDeviceId:ie};var ce=0,ue=function(e,t){delete window[t],document.head.removeChild(e)};const se={zh_CN:"\u7f51\u7edc\u5f02\u5e38\uff0c\u8bf7\u68c0\u67e5\u540e\u91cd\u8bd5",zh_HK:"\u7db2\u7d61\u5f02\u5e38\uff0c\u8acb\u6aa2\u67e5\u5f8c\u91cd\u8a66",zh_TW:"\u7db2\u8def\u7570\u5e38\uff0c\u8acb\u6aa2\u67e5\u5f8c\u91cd\u8a66",en_US:"Network exception, please check and try again",de_DE:"Netzwerkausnahme, \xfcberpr\xfcfen Sie bitte und versuchen Sie es erneut",es_ES:"Excepci\xf3n de red, compruebe e int\xe9ntelo de nuevo",fr_FR:"Le r\xe9seau est anormal, veuillez v\xe9rifier et r\xe9essayer",in_ID:"Kecualian jaringan, tolong periksa dan coba lagi",ja_JP:"\u30cd\u30c3\u30c8\u306e\u7570\u5e38\u3092\u78ba\u8a8d\u3057\u3066\u304b\u3089\u3084\u308a\u76f4\u3057\u3066\u304f\u3060\u3055\u3044",ko_KR:"\ub124\ud2b8\uc6cc\ud06c \uc774\uc0c1,\uac80\uc0ac \ud6c4 \ub2e4\uc2dc \uc2dc\ub3c4 \ud558 \uc2ed\uc2dc\uc624",nl_NL:"Netwerk uitzondering, controleer en probeer opnieuw",ru_RU:"\u0430\u043d\u043e\u043c\u0430\u043b\u0438\u044f \u0432 \u0441\u0435\u0442\u0438, \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0435\u0449\u0435 \u0440\u0430\u0437",th_TH:"\u0e02\u0e49\u0e2d\u0e22\u0e01\u0e40\u0e27\u0e49\u0e19\u0e40\u0e04\u0e23\u0e37\u0e2d\u0e02\u0e48\u0e32\u0e22\u0e42\u0e1b\u0e23\u0e14\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e41\u0e25\u0e30\u0e25\u0e2d\u0e07\u0e43\u0e2b\u0e21\u0e48\u0e2d\u0e35\u0e01\u0e04\u0e23\u0e31\u0e49\u0e07",tr_TR:"A\u011f istisnas\u0131, l\xfctfen kontrol et ve tekrar dene",vi_VN:"ngo\u1ea1i l\u1ec7 m\u1ea1ng, xin ki\u1ec3m tra v\xe0 th\u1eed l\u1ea1i"};const le={zh_CN:"\u670d\u52a1\u5668\u7e41\u5fd9\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5",zh_HK:"\u4f3a\u670d\u5668\u7e41\u5fd9\uff0c\u8acb\u7a0d\u5f8c\u518d\u8a66",zh_TW:"\u4f3a\u670d\u5668\u7e41\u5fd9\uff0c\u8acb\u7a0d\u5f8c\u518d\u8a66",en_US:"Server busy. Please try again later",de_DE:"Der Server ist besch\xe4ftigt. Bitte versuchen Sie es sp\xe4ter noch einmal",es_ES:"El servidor est\xe1 ocupado, por favor int\xe9ntelo de nuevo m\xe1s tarde",fr_FR:"Le serveur est occup\xe9, Veuillez r\xe9essayer plus tard",in_ID:"Server sibuk. Silahkan mencoba lagi nanti",ja_JP:"\u30b5\u30fc\u30d0\u30fc\u304c\u5fd9\u3057\u3044\u306e\u3067\u3001\u5f8c\u3067\u30c6\u30b9\u30c8\u3057\u3066\u304f\u3060\u3055\u3044",ko_KR:"\uc11c\ubc84 \uac00 \ubc14 \uc058 \ub2c8 \uc7a0\uc2dc \ud6c4\uc5d0 \ub2e4\uc2dc \uc2dc\ub3c4 \ud574 \uc8fc\uc138\uc694",nl_NL:"De server is bezet. Probeer het later nog eens",ru_RU:"\u0421\u0435\u0440\u0432\u0435\u0440 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d, \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u043f\u043e\u0437\u0436\u0435",th_TH:"\u0e2a\u0e31\u0e0d\u0e0d\u0e32\u0e13\u0e02\u0e31\u0e14\u0e02\u0e49\u0e2d\u0e07. \u0e42\u0e1b\u0e23\u0e14\u0e25\u0e2d\u0e07\u0e43\u0e2b\u0e21\u0e48\u0e2d\u0e35\u0e01\u0e04\u0e23\u0e31\u0e49\u0e07",tr_TR:"Sunucu me\u015fgul. L\xfctfen daha sonra tekrar deneyin",vi_VN:"M\xe1y ch\u1ee7 \u0111ang b\u1eadn. Vui l\xf2ng th\u1eed l\u1ea1i sau"};const fe=function(e){var t=e/1e3;return{zh_CN:"\u7f51\u7edc\u8fde\u63a5\u8d85\u65f6\uff0c\u7b49\u5f85\u65f6\u957f\u5df2\u8d85\u8fc7".concat(t,"\u79d2"),zh_HK:"\u7db2\u7d61\u9023\u63a5\u8d85\u6642\uff0c\u7b49\u5f85\u6642\u9577\u5df2\u8d85\u904e".concat(t,"\u79d2"),zh_TW:"\u7db2\u8def\u9023\u7dda\u903e\u6642\uff0c\u7b49\u5f85\u6642\u9593\u8d85\u904e".concat(t,"\u79d2"),en_US:"Network connection timed out as the response time exceeded ".concat(t,"s"),de_DE:"Netzwerkverbindung abgelaufen, Wartezeit von ".concat(t," Sekunden \xfcberschritten"),es_ES:"Tiempo de espera agotado para la conexi\xf3n de red, han transcurrido ".concat(t," segundos"),fr_FR:"Temps d'attente d\xe9pass\xe9 pour la connexion r\xe9seau, dur\xe9e d'attente de ".concat(t," secondes"),in_ID:"Koneksi jaringan habis waktu, waktu tunggu telah melebihi ".concat(t," detik"),ja_JP:"\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u63a5\u7d9a\u306e\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u3001\u5f85\u6a5f\u6642\u9593\u304c".concat(t,"\u79d2\u3092\u8d85\u904e\u3057\u307e\u3057\u305f"),ko_KR:"\ub124\ud2b8\uc6cc\ud06c \uc5f0\uacb0 \uc2dc\uac04 \ucd08\uacfc, \ub300\uae30 \uc2dc\uac04\uc774 ".concat(t,"\ucd08\ub97c \ucd08\uacfc\ud588\uc2b5\ub2c8\ub2e4"),nl_NL:"Netwerkverbinding verlopen, wachttijd van ".concat(t," seconden overschreden"),ru_RU:"\u0418\u0441\u0442\u0435\u043a\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u0441\u0435\u0442\u0435\u0432\u043e\u0433\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f, \u0432\u0440\u0435\u043c\u044f \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u0435\u0432\u044b\u0441\u0438\u043b\u043e ".concat(t," \u0441\u0435\u043a\u0443\u043d\u0434"),th_TH:"\u0e01\u0e32\u0e23\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d\u0e40\u0e04\u0e23\u0e37\u0e2d\u0e02\u0e48\u0e32\u0e22\u0e2b\u0e21\u0e14\u0e40\u0e27\u0e25\u0e32 \u0e23\u0e2d\u0e40\u0e27\u0e25\u0e32\u0e40\u0e01\u0e34\u0e19 ".concat(t," \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35\u0e41\u0e25\u0e49\u0e27"),tr_TR:"A\u011f ba\u011flant\u0131s\u0131 zaman a\u015f\u0131m\u0131na u\u011frad\u0131, ".concat(t," saniyeden fazla bekleniyor"),vi_VN:"K\u1ebft n\u1ed1i m\u1ea1ng \u0111\xe3 h\u1ebft th\u1eddi gian ch\u1edd, \u0111\xe3 v\u01b0\u1ee3t qu\xe1 ".concat(t," gi\xe2y")}};function de(){return le[O.locale]||le.en_US}function pe(){var e=fe(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e4);return e[O.locale]||e.en_US}var ve=function(){var e=i(r().mark((function e(t){var n,o,i,a,c;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=0-(new Date).getTimezoneOffset()/60,o={"App-Type":"web",Accept:"application/json","x-utc":n,"x-locale":O.locale,"X-Zkdex-Env":t.dexEnv},["pre","prod"].includes(O.envSign)&&(o["x-cdn"]=O.cdnBaseUrl),window.inOKXExtension){e.next=14;break}return"1"===localStorage.simulatedTrading&&(o["x-simulated-trading"]=1),i=ae.getDeviceId(),o.Devid=i,e.next=10,$(t);case 10:(a=e.sent)&&(o.Authorization=a),(c=O.getSiteInfo?O.getSiteInfo(!1):void 0)&&(o["x-site-info"]=c);case 14:return e.abrupt("return",s(s({},o),t.headers));case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),he=function(e,t){var n={};Object.keys(t).forEach((function(e){null!==t[e]&&void 0!==t[e]&&(n[e]=t[e])}));var r=new URLSearchParams(n).toString();return"".concat(e,"?").concat(r)},ge=function(e){var t=Date.now(),n=e.indexOf("?")>-1?"&":"?";return"".concat(e).concat(n,"t=").concat(t)},ye=function(){var e=i(r().mark((function e(t,n){var o,i,a,c,u,s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((null===t||void 0===t||null===(o=t.headers)||void 0===o?void 0:o.get("Content-Type"))||"").includes("json")){e.next=26;break}return e.next=4,t.json();case 4:if(i=e.sent,a=t.status,c=n.customToLogin||oe,u={data:i,status:a},!(a>=200&&a<300)){e.next=12;break}return s=t.headers.get("x-ok-token"),d()||window.inOKXExtension||!s||(ne(s),n.onUpdateTokenDone&&n.onUpdateTokenDone(u)),e.abrupt("return",Promise.resolve(u));case 12:if(!(a>=500)){e.next=15;break}return i.msg="".concat(de(),"."),e.abrupt("return",Promise.reject(u));case 15:e.t0=a,e.next=401===e.t0||403===e.t0?18:404===e.t0?20:429===e.t0?22:24;break;case 18:return c(u),e.abrupt("break",25);case 20:return i.msg=t.statusText,e.abrupt("break",25);case 22:return i.msg=de(),e.abrupt("break",25);case 24:return e.abrupt("break",25);case 25:return e.abrupt("return",Promise.reject(u));case 26:return e.abrupt("return",t);case 27:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),me=function(){var e=i(r().mark((function e(t){var n,o,i,a,c,u,l,f,d,p,v,h,g,y;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.url,o=t.fetchConfig,i=t.ontConfig,a=t.callbackWhenFinished,!i.isBlocked){e.next=3;break}return e.abrupt("return",Promise.reject(new Error("switching to demo trading")));case 3:return i.switchingDemoTrading&&H({isBlocked:!0}),c=n,i.withoutTimestamp||(c=ge(n)),e.next=8,ve(i);case 8:return u=e.sent,l=i.signal,f={controller:null,timeoutId:null,isTriggered:!1},l||(f.controller=new AbortController,1e4,d=i.timeout||1e4,f.timeoutId=setTimeout((function(){f.isTriggered=!0,f.controller.abort()}),d)),e.prev=12,e.next=15,fetch(c,{method:o.method,headers:s(s({},u),o.headers),body:o.body,signal:l||f.controller.signal});case 15:v=e.sent,p=ye(v,i),e.next=22;break;case 19:e.prev=19,e.t0=e.catch(12),f.isTriggered?(h={data:{code:B.ERR_TIMEOUT,msg:pe(i.timeout)},status:B.ERR_TIMEOUT},p=Promise.reject(h)):"AbortError"===e.t0.name?(g={data:{code:B.ERR_CANCELED},status:B.ERR_CANCELED},p=Promise.reject(g)):(y={data:{code:B.ERR_NETWORK,msg:se[O.locale]||se.en_US},status:B.ERR_NETWORK},p=Promise.reject(y));case 22:return f.timeoutId&&(clearTimeout(f.timeoutId),f={}),a&&"function"===typeof a&&a(p),e.abrupt("return",p);case 25:case"end":return e.stop()}}),e,null,[[12,19]])})));return function(t){return e.apply(this,arguments)}}(),be={},we=function(){var e=i(r().mark((function e(t){var n,o,i,a,c,u,l,f,d;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.url,o=t.options,i=void 0===o?{}:o,a=t.method,c={method:a},u=n,(l=i).params&&(u=he(n,i.params),delete l.params),!(f=s(s({},V),l)).isolate){e.next=8;break}return e.abrupt("return",me({url:u,fetchConfig:c,ontConfig:f}));case 8:if(!be[u]){e.next=10;break}return e.abrupt("return",be[u]);case 10:return d=me({url:u,fetchConfig:c,ontConfig:f,callbackWhenFinished:function(){delete be[u]}}),be[u]=d,e.abrupt("return",d);case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),xe=function(){var e=i(r().mark((function e(t){var n,o=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:{},e.abrupt("return",we({url:t,options:n,method:"get"}));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ke=function(e){var t=e.url,n=e.data,r=e.ontConfig,o={method:e.method,body:n};n instanceof FormData||(n instanceof Blob?o.headers={"Content-Type":n.type}:"object"===typeof n&&(o.body=JSON.stringify(n),o.headers={"Content-Type":"application/json"}));var i=s(s({},V),r);return me({url:t,fetchConfig:o,ontConfig:i})},Ee=function(){var e=i(r().mark((function e(t){var n,o,i,a=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(o=n=a.length>1&&void 0!==a[1]?a[1]:{}).data){e.next=6;break}return i=o.data,delete o.data,e.abrupt("return",ke({url:t,data:i,ontConfig:o,method:"delete"}));case 6:return e.abrupt("return",we({url:t,options:n,method:"delete"}));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function Se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _e(e,t){for(var n=0;n(new Date).getTime()}},{key:"isCorrectExpireSeconds",value:function(e){return"undefined"!==typeof e&&Number.isInteger(e)&&Number.isSafeInteger(e)&&e>0}},{key:"getExpire",value:function(e){return(new Date).getTime()+1e3*e}},{key:"getProjectData",value:function(e){var t=this;if(d())return{};var n=window[this.storageKey].getItem(this.projectKey),r={};try{r=JSON.parse(n||"{}")}catch(I){r={}}var o=c({},Pe,{}),i=r[Pe]||{};return Object.keys(r).forEach((function(e){e!==Pe&&(void 0===i[e]||t.isCorrectExpire(i[e]))&&(o[e]=r[e],o[Pe][e]=i[e])})),e&&delete o[Pe],o}},{key:"get",value:function(e){if(!(null===e||void 0===e||e instanceof Function||e instanceof Array||e instanceof Object))return this.getProjectData()[e]}},{key:"set",value:function(e,t,n){if(d())return!1;if(null===e||void 0===e||e instanceof Function||e instanceof Array)return!1;if(e===Pe)return!1;var r=this.getProjectData();return e instanceof Object?this.setAll(e,t):(r[e]=t,"undefined"!==typeof n&&this.isCorrectExpireSeconds(n)?r[Pe][e]=this.getExpire(n):delete r[Pe][e],window[this.storageKey].setItem(this.projectKey,JSON.stringify(r)),!0)}},{key:"setAll",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(d())return!1;var r=this.getProjectData();return Object.entries(t).forEach((function(t){var o=t[0];if(o!==Pe){var i=n[o];r[o]=t[1],e.isCorrectExpireSeconds(i)?r[Pe][o]=e.getExpire(i):delete r[Pe][o]}})),window[this.storageKey].setItem(this.projectKey,JSON.stringify(r)),!0}},{key:"remove",value:function(e){if(d())return!1;if(null===e||void 0===e||e instanceof Function)return!1;if(e.constructor&&e.constructor===Object)return!1;var t=[];e instanceof Array?t=e:t.push(e);var n=this.getProjectData();return t.forEach((function(e){delete n[e],delete n[Pe][e]})),window[this.storageKey].setItem(this.projectKey,JSON.stringify(n)),!0}},{key:"getAll",value:function(){return this.getProjectData(!0)}},{key:"cleanAll",value:function(){d()||window[this.storageKey].setItem(this.projectKey,JSON.stringify({}))}}]),e}();var Re="".concat("ok_","global"),Ae="localStorage";const De=function(e){Ie(n,e);var t=Ne(n);function n(e){var r;return Se(this,n),(r=t.call(this,Ae,"ok_"+e)).global=new Le(Ae,Re),r.g=new Le(Ae,Re),r}return je(n)}(Le);var Ue="sessionStorage",Ke="".concat("ok_","global");const ze=function(e){Ie(n,e);var t=Ne(n);function n(e){var r;return Se(this,n),(r=t.call(this,Ue,"ok_"+e)).global=new Le(Ue,Ke),r.g=new Le(Ue,Ke),r}return je(n)}(Le);const Fe=new(function(){function e(){Se(this,e),this.local={},this.session={}}return je(e,[{key:"localProject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.local[e]){if(t)return null;this.local[e]=new De(e)}return this.local[e]}},{key:"sessionProject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.session[e]){if(t)return null;this.session[e]=new ze(e)}return this.session[e]}}]),e}());var Je="ok_",We="default",Ge="global",Be="localStorage",Me="sessionStorage",He=Je+We,Ve=Je+Ge,Ye="_expire";function Xe(e){return"undefined"!==typeof e&&Number.isInteger(e)&&Number.isSafeInteger(e)&&e>0}function qe(e){return(new Date).getTime()+1e3*e}function Ze(e,t,n){if(d())return{};var r=window[e].getItem(t),o={};try{o=JSON.parse(r||"{}")}catch(I){o={}}var i=c({},Ye,{}),a=o[Ye]||{};return Object.keys(o).forEach((function(e){var t;e!==Ye&&((void 0===a[e]||"undefined"!==typeof(t=a[e])&&Number.isInteger(Number(t))&&Number.isSafeInteger(t)&&t>(new Date).getTime())&&(i[e]=o[e],i[Ye][e]=a[e]))})),n&&delete i[Ye],i}function $e(e,t){d()||window[e].setItem(t,JSON.stringify(Ze(e,t)))}var Qe={get:function(e,t,n){if(!(null===n||void 0===n||n instanceof Function||n instanceof Array||n instanceof Object))return Ze(e,t)[n]},set:function(e,t,n,r,o){if(d())return!1;if(null===n||void 0===n||n instanceof Function||n instanceof Array)return!1;if(n===Ye)return!1;var i=Ze(e,t);return n instanceof Object?Qe.setAll(e,t,n,r):(i[n]=r,"undefined"!==typeof o&&Xe(o)?i[Ye][n]=qe(o):delete i[Ye][n],window[e].setItem(t,JSON.stringify(i)),!0)},setAll:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(d())return!1;var o=Ze(e,t);return Object.entries(n).forEach((function(e){var t=e[0];if(t!==Ye){var n=r[t];o[t]=e[1],Xe(n)?o[Ye][t]=qe(n):delete o[Ye][t]}})),window[e].setItem(t,JSON.stringify(o)),!0},remove:function(e,t,n){if(d())return!1;if(null===n||void 0===n||n instanceof Function)return!1;if(n.constructor&&n.constructor===Object)return!1;var r=[];n instanceof Array?r=n:r.push(n);var o=Ze(e,t);return r.forEach((function(e){delete o[e],delete o[Ye][e]})),window[e].setItem(t,JSON.stringify(o)),!0},getAll:function(e,t){return Ze(e,t,!0)},cleanAll:function(e,t){d()||window[e].setItem(t,JSON.stringify({}))}};function et(e){var t=e.isLocal,n=e.isGlobal;function r(){return t?Be:Me}function o(){return n?Ve:He}return{set:function(e,t,n){return Qe.set(r(),o(),e,t,n)},get:function(e){return Qe.get(r(),o(),e)},remove:function(e){return Qe.remove(r(),o(),e)},getAll:function(){return Qe.getAll(r(),o())},cleanAll:function(){return Qe.cleanAll(r(),o())}}}var tt=function(){var e=s({},et({isLocal:!0,isGlobal:!0}));return s(s({},et({isLocal:!0,isGlobal:!1})),{},{getProjectStorage:function(e){return Ze(Be,Je+e,!0)},global:e,g:e})}();function nt(e){var t=e.project,n=t===Ge?We:t;return $e(Me,He=Je+n),$e(Me,Ve),n!==We&&$e(Me,Je+We),Fe.sessionProject(n)}function rt(e){var t=e===Ge?We:e;return Fe.sessionProject(t,!0)}var ot=function(){var e=s({},et({isLocal:!1,isGlobal:!0}));return s(s({},et({isLocal:!1,isGlobal:!1})),{},{getProjectStorage:function(e){return Ze(Me,Je+e,!0)},global:e,g:e,init:nt,getInstance:rt})}();const it=s(s({getInstance:function(e){var t=e===Ge?We:e;return Fe.localProject(t,!0)},init:function(e){var t=e.project,n=t===Ge?We:t;return $e(Be,He=Je+n),$e(Be,Ve),n!==We&&$e(Be,Je+We),Fe.localProject(n)},session:ot},tt),{},{local:tt});var at={method:"get"},ct="reqCaches",ut=function(){var e=i(r().mark((function e(t){var n,o,a,u,l,f,d=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t,(o=d.length>1&&void 0!==d[1]?d[1]:{}).cacheSeconds||(o.cacheSeconds=60),null!==o&&void 0!==o&&o.params&&(n=he(t,o.params),delete o.params),a=s(s({},V),o),!(u=it.session.get(ct)||{})[n]){e.next=9;break}return e.abrupt("return",u[n]);case 9:return l=function(){var e=i(r().mark((function e(t){var i,a,u;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t;case 3:i=e.sent,a=it.session.get(ct)||{},u=s(s({},a),{},c({},n,i)),it.session.set(ct,u,o.cacheSeconds),e.next=11;break;case 9:e.prev=9,e.t0=e.catch(0);case 11:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t){return e.apply(this,arguments)}}(),f=me({url:n,fetchConfig:at,ontConfig:a,callbackWhenFinished:l}),e.abrupt("return",f);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),st=d(),lt=j(),ft={debug:function(){},info:function(){},warn:function(){},error:function(){},timeStart:function(){},timeEnd:function(){},init:function(){}},dt=function(){var e=i(r().mark((function e(t){var n,o,i,a,c,u,l,f,d,p;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=t.message,i=t.level,a=t.data,"prod"!==O.envSign&&(null===(c=(u=console)[i])||void 0===c||c.call(u,o,a)),l={},l=a instanceof Error?{error:a}:s({message:o},a),f=Object.keys(l).find((function(e){return l[e]instanceof Error})),!(d=l[f])){e.next=11;break}return delete l[f],d.message="".concat(o," - ").concat(d.message),null===(p=window.Sentry)||void 0===p||p.captureException(d,s(s({},l),{},{message:o,contexts:{report:{info:JSON.stringify(l)}}})),e.abrupt("return");case 11:null===(n=window.Sentry)||void 0===n||n.captureEvent(s(s({},l),{},{message:o,level:i,contexts:{report:{info:JSON.stringify(l)}}}));case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();ft.init=st?function(){if(lt.ssrUtils&<.ssrUtils.logger){var e=lt.ssrUtils.logger;ft.debug=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:"",level:"debug",data:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}})},ft.info=function(){return dt({message:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",level:"info",data:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}})},ft.warn=function(){return dt({message:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",level:"warn",data:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}})},ft.error=function(){return dt({message:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",level:"error",data:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}})},ft.timeStart=console.time,ft.timeEnd=console.timeEnd)},ft.init();var pt=function(){var e=localStorage.getItem(J);e&&e!==m.get(z)&&m.set(z,e,{expires:7})};const vt={get:xe,getWithCache:ut,delete:Ee,post:function(e,t){return ke({url:e,data:t,ontConfig:arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},method:"post"})},put:function(e,t){return ke({url:e,data:t,options:arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},method:"put"})},jsonp:function(e){var t=e.url,n=e.func;return new Promise((function(e,r){var o=document.createElement("script"),i="";i=n||"ont_jsonp_".concat(++ce),window[i]=function(t){e(t),ue(o,i)};var a=t.indexOf("?")>-1?"&":"?",c="".concat(t).concat(a,"callback=").concat(i,"&t=").concat(Date.now());o.setAttribute("type","text/javascript"),o.setAttribute("src",c),o.addEventListener("error",(function(){r(new Error("Fail to load: ".concat(c))),ue(o,i)})),document.head.appendChild(o)}))},isLogin:X,checkIsLogin:function(){return O.isApp?window.jsbridge.isLogin():Promise.resolve(X({fromInner:!0}))},toLogin:oe,saveLoginState:ne,clearLoginState:re,getLoginRemainingTime:function(){var e=Date.now(),t=Number(localStorage.token_expire_time);return!t||t=97?r-=32:r+=32,String.fromCharCode(r)}return e})).join(""));m.set("u_pid",n)}};(function(){var e=i(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(ht(),ae.getDeviceId(),pt(),!O.isApp){e.next=8;break}return e.next=6,te();case 6:e.next=9;break;case 8:ee();case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()();const gt=vt;(window.utils=window.utils||{}).ont=t.default})(); \ No newline at end of file +(()=>{var e={580:(e,t,n)=>{e.exports=n(706)},418:(e,t,n)=>{"use strict";var r=n(120),o=n(116),i=n(161),a=n(466),s=n(960),c=n(984),u=n(582),f=n(458),l=n(757),d=n(538),p=n(921);e.exports=function(e){return new Promise((function(t,n){var h,v=e.data,m=e.headers,g=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}r.isFormData(v)&&r.isStandardBrowserEnv()&&delete m["Content-Type"];var w=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",E=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(b+":"+E)}var x=s(e.baseURL,e.url);function O(){if(w){var r="getAllResponseHeaders"in w?c(w.getAllResponseHeaders()):null,i={data:g&&"text"!==g&&"json"!==g?w.response:w.responseText,status:w.status,statusText:w.statusText,headers:r,config:e,request:w};o((function(e){t(e),y()}),(function(e){n(e),y()}),i),w=null}}if(w.open(e.method.toUpperCase(),a(x,e.params,e.paramsSerializer),!0),w.timeout=e.timeout,"onloadend"in w?w.onloadend=O:w.onreadystatechange=function(){w&&4===w.readyState&&(0!==w.status||w.responseURL&&0===w.responseURL.indexOf("file:"))&&setTimeout(O)},w.onabort=function(){w&&(n(new l("Request aborted",l.ECONNABORTED,e,w)),w=null)},w.onerror=function(){n(new l("Network Error",l.ERR_NETWORK,e,w,w)),w=null},w.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||f;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new l(t,r.clarifyTimeoutError?l.ETIMEDOUT:l.ECONNABORTED,e,w)),w=null},r.isStandardBrowserEnv()){var S=(e.withCredentials||u(x))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;S&&(m[e.xsrfHeaderName]=S)}"setRequestHeader"in w&&r.forEach(m,(function(e,t){"undefined"===typeof v&&"content-type"===t.toLowerCase()?delete m[t]:w.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(w.withCredentials=!!e.withCredentials),g&&"json"!==g&&(w.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&w.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&w.upload&&w.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){w&&(n(!e||e&&e.type?new d:e),w.abort(),w=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),v||(v=null);var R=p(x);R&&-1===["http","https","file"].indexOf(R)?n(new l("Unsupported protocol "+R+":",l.ERR_BAD_REQUEST,e)):w.send(v)}))}},706:(e,t,n)=>{"use strict";var r=n(120),o=n(136),i=n(367),a=n(939);var s=function e(t){var n=new i(t),s=o(i.prototype.request,n);return r.extend(s,i.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(491));s.Axios=i,s.CanceledError=n(538),s.CancelToken=n(130),s.isCancel=n(683),s.VERSION=n(546).version,s.toFormData=n(791),s.AxiosError=n(757),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=n(295),s.isAxiosError=n(765),e.exports=s,e.exports.default=s},130:(e,t,n)=>{"use strict";var r=n(538);function o(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t{"use strict";var r=n(757);function o(e){r.call(this,null==e?"canceled":e,r.ERR_CANCELED),this.name="CanceledError"}n(120).inherits(o,r,{__CANCEL__:!0}),e.exports=o},683:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},367:(e,t,n)=>{"use strict";var r=n(120),o=n(466),i=n(177),a=n(954),s=n(939),c=n(960),u=n(299),f=u.validators;function l(e){this.defaults=e,this.interceptors={request:new i,response:new i}}l.prototype.request=function(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&u.assertOptions(n,{silentJSONParsing:f.transitional(f.boolean),forcedJSONParsing:f.transitional(f.boolean),clarifyTimeoutError:f.transitional(f.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,c=[];if(this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)})),!o){var l=[a,void 0];for(Array.prototype.unshift.apply(l,r),l=l.concat(c),i=Promise.resolve(t);l.length;)i=i.then(l.shift(),l.shift());return i}for(var d=t;r.length;){var p=r.shift(),h=r.shift();try{d=p(d)}catch(v){h(v);break}}try{i=a(d)}catch(v){return Promise.reject(v)}for(;c.length;)i=i.then(c.shift(),c.shift());return i},l.prototype.getUri=function(e){e=s(this.defaults,e);var t=c(e.baseURL,e.url);return o(t,e.params,e.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(s(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}l.prototype[e]=t(),l.prototype[e+"Form"]=t(!0)})),e.exports=l},757:(e,t,n)=>{"use strict";var r=n(120);function o(e,t,n,r,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}r.inherits(o,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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var i=o.prototype,a={};["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"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(o,a),Object.defineProperty(i,"isAxiosError",{value:!0}),o.from=function(e,t,n,a,s,c){var u=Object.create(i);return r.toFlatObject(e,u,(function(e){return e!==Error.prototype})),o.call(u,e.message,t,n,a,s),u.name=e.name,c&&Object.assign(u,c),u},e.exports=o},177:(e,t,n)=>{"use strict";var r=n(120);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},960:(e,t,n)=>{"use strict";var r=n(430),o=n(404);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},954:(e,t,n)=>{"use strict";var r=n(120),o=n(212),i=n(683),a=n(491),s=n(538);function c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return c(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return c(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(c(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},939:(e,t,n)=>{"use strict";var r=n(120);e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function i(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function c(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||i,o=t(e);r.isUndefined(o)&&t!==c||(n[e]=o)})),n}},116:(e,t,n)=>{"use strict";var r=n(757);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new r("Request failed with status code "+n.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},212:(e,t,n)=>{"use strict";var r=n(120),o=n(491);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},491:(e,t,n)=>{"use strict";var r=n(906),o=n(120),i=n(327),a=n(757),s=n(458),c=n(791),u={"Content-Type":"application/x-www-form-urlencoded"};function f(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l={transitional:s,adapter:function(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof r&&"[object process]"===Object.prototype.toString.call(r))&&(e=n(418)),e}(),transformRequest:[function(e,t){if(i(t,"Accept"),i(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e))return e;if(o.isArrayBufferView(e))return e.buffer;if(o.isURLSearchParams(e))return f(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,r=o.isObject(e),a=t&&t["Content-Type"];if((n=o.isFileList(e))||r&&"multipart/form-data"===a){var s=this.env&&this.env.FormData;return c(n?{"files[]":e}:e,s&&new s)}return r||"application/json"===a?(f(t,"application/json"),function(e,t,n){if(o.isString(e))try{return(t||JSON.parse)(e),o.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||l.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||r&&o.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(i){if("SyntaxError"===s.name)throw a.from(s,a.ERR_BAD_RESPONSE,this,null,this.response);throw s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(250)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){l.headers[e]=o.merge(u)})),e.exports=l},458:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},546:e=>{e.exports={version:"0.27.2"}},136:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r{"use strict";var r=n(120);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},404:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},161:(e,t,n)=>{"use strict";var r=n(120);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},430:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},765:(e,t,n)=>{"use strict";var r=n(120);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},582:(e,t,n)=>{"use strict";var r=n(120);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},327:(e,t,n)=>{"use strict";var r=n(120);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},250:e=>{e.exports=null},984:(e,t,n)=>{"use strict";var r=n(120),o=["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"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},921:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},295:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},791:(e,t,n)=>{"use strict";var r=n(120);e.exports=function(e,t){t=t||new FormData;var n=[];function o(e){return null===e?"":r.isDate(e)?e.toISOString():r.isArrayBuffer(e)||r.isTypedArray(e)?"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(i,a){if(r.isPlainObject(i)||r.isArray(i)){if(-1!==n.indexOf(i))throw Error("Circular reference detected in "+a);n.push(i),r.forEach(i,(function(n,i){if(!r.isUndefined(n)){var s,c=a?a+"."+i:i;if(n&&!a&&"object"===typeof n)if(r.endsWith(i,"{}"))n=JSON.stringify(n);else if(r.endsWith(i,"[]")&&(s=r.toArray(n)))return void s.forEach((function(e){!r.isUndefined(e)&&t.append(c,o(e))}));e(n,c)}})),n.pop()}else t.append(a,o(i))}(e),t}},299:(e,t,n)=>{"use strict";var r=n(546).version,o=n(757),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new o(i(r," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);return t&&!a[r]&&(a[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!==typeof e)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var a=r[i],s=t[a];if(s){var c=e[a],u=void 0===c||s(c,a,e);if(!0!==u)throw new o("option "+a+" must be "+u,o.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new o("Unknown option "+a,o.ERR_BAD_OPTION)}},validators:i}},120:(e,t,n)=>{"use strict";var r,o=n(136),i=Object.prototype.toString,a=(r=Object.create(null),function(e){var t=i.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function c(e){return Array.isArray(e)}function u(e){return"undefined"===typeof e}var f=s("ArrayBuffer");function l(e){return null!==e&&"object"===typeof e}function d(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=s("Date"),h=s("File"),v=s("Blob"),m=s("FileList");function g(e){return"[object Function]"===i.call(e)}var y=s("URLSearchParams");function w(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),c(e))for(var n=0,r=e.length;n0;)a[i=r[o]]||(t[i]=e[i],a[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:s,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(u(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:E,isFileList:m}},906:e=>{var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"===typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"===typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var s,c=[],u=!1,f=-1;function l(){u&&s&&(u=!1,s.length?c=s.concat(c):f=-1,c.length&&d())}function d(){if(!u){var e=a(l);u=!0;for(var t=c.length;t;){for(s=c,c=[];++f1)for(var n=1;n{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};(()=>{"use strict";n.d(r,{default:()=>Se});var e=n(580),t=n.n(e);const o={ERR_CANCELED:"ERR_CANCELED",ERR_NETWORK:"ERR_NETWORK",ERR_TIMEOUT:"ERR_TIMEOUT"};function i(e){this.message=e}i.prototype=new Error,i.prototype.name="InvalidCharacterError";var a="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new i("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,o=0,a=0,s="";r=t.charAt(a++);~r&&(n=o%4?64*n+r:r,o++%4)?s+=String.fromCharCode(255&n>>(-2*o&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return s};function s(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(a(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return a(t)}}function c(e){this.message=e}c.prototype=new Error,c.prototype.name="InvalidTokenError";const u=function(e,t){if("string"!=typeof e)throw new c("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(s(e.split(".")[n]))}catch(e){throw new c("Invalid token specified: "+e.message)}};function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function l(e){var t=function(e,t){if("object"!==f(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===f(t)?t:String(t)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t0&&void 0!==arguments[0])||arguments[0],t=N.get(g);if(!t)return{};try{return e?JSON.parse(function(e){var t=b(e);return w?Buffer.from(t,"base64").toString("utf-8"):window.atob(t)}(t)):t}catch(i){}return{}},x=function(e){var t=E();Object.keys(e).forEach((function(n){t[n]=e[n]}));var n,r,o,i=(n=JSON.stringify(t),b(w?Buffer.from(n).toString("base64"):window.btoa(n)));w?null===y||void 0===y||null===(r=y.ssrUtils)||void 0===r||null===(o=r.cookies)||void 0===o||o.set(g,i):N.set(g,i)},O={};function S(){var e;if("undefined"!==typeof globalThis)e=globalThis;else if("undefined"!==typeof window)e=window;else{if("undefined"===typeof n.g)throw new Error("unable to locate global object");e=n.g}return e.addEventListener=e.addEventListener||function(){},e}const R=new Proxy({_global_subscribe_list:{},_global_message_list:{},locale:"en_US"},{get:function(e,t,n){if("toJSON"===t)return function(){return p(p(p({},S().okGlobal),S()._okGlobal),O)};if("toString"===t)return function(){return JSON.stringify(n.toJSON())};var r=[O,S()._okGlobal,S().okGlobal,{getSiteInfo:E,setSiteInfo:x}].find((function(e){return e&&Object.prototype.hasOwnProperty.call(e,t)}));return null===r||void 0===r?void 0:r[t]},set:function(e,t,n){return O[t]=n,!0}});var _={"<":"<",">":">"};function T(e){return e.replace(/(javascript:|vbscript:|view-source:)*/gi,"").replace(/(expression|eval|alert|function|setTimeout|setInterval)/gi,"").replace(/(window\.location|window\.|\.location|document\.cookie|window\.cookie|cookie|document\.|alert\(.*?\)|window\.open\(.*?\)|document\.write\(.*?\))/gi,"").replace(/]/g,(function(e){return _[e]}))}(T(e)):e}var j=m(),A=S();const N=function e(t,n){function r(e,r,o){if(!j){var i,a=p({},o);"number"===typeof(a=h({},n,a)).expires&&(a.expires=new Date(Date.now()+864e5*a.expires)),a.expires&&(a.expires=a.expires.toUTCString()),i=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";return Object.keys(a).forEach((function(e){a[e]&&(s+="; ".concat(e),!0!==a[e]&&(s+="=".concat(a[e].split(";")[0])))})),document.cookie="".concat(i,"=").concat(t.write(r,i)).concat(s)}}return Object.create({set:r,get:function(e){if(!arguments.length||e){var n,r;if(j)return null===A||void 0===A||null===(n=A.ssrUtils)||void 0===n||null===(r=n.cookies)||void 0===r?void 0:r.get(e);for(var o=document.cookie?document.cookie.split("; "):[],a={},s=0;s2&&void 0!==arguments[2]?arguments[2]:{duration:0};W[e]=t,W[q][e]=Date.now()+n.duration,H(W)},V=function(e){return Date.now()a&&(localStorage.setItem("token_expire_time",o),i.duration=o-a),N.set(Q,"1",{expires:i.duration/I}),P.cookieIsAvailable||G(Q,"1",i)},te=function(){localStorage.removeItem(z),localStorage.removeItem(J),N.remove(L),localStorage.removeItem("token_expire_time"),N.remove(Q),P.cookieIsAvailable||$(Q)},ne=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{fromInner:!1};return X.isBeforeRelease&&window.jsbridge&&!e.fromInner&&!Y&&(console.warn("ont: please use 'ont.checkIsLogin()' to replace 'ont.isLogin()'"),Y=!0),!!localStorage.token&&"1"===(N.get(Q)||V(Q))},re=function(){if(te(),!U||"www.oklink.com"===window.location.host){var e,t=window.location,n=t.pathname,r=t.search,o=t.hash,i=null===(e=X.okGlobalData)||void 0===e?void 0:e.langPath,a=encodeURIComponent("".concat(n).concat(r).concat(o));t.href="".concat(i,"/account/login?logout=true&forward=").concat(a)}},oe=function(e){var t=sessionStorage.getItem(e);return t?JSON.parse(t):{}}("reqCaches");var ie=function(e){N.set(B,e,{expires:730}),localStorage.setItem(F,e)};const ae=function(){var e=N.get(B)||localStorage.getItem(F)||localStorage.getItem("devid")||"";return e?N.get(B)||N.set(B,e,{expires:730}):(e=function(){var e=Date.now(),t=window.performance;return"undefined"!==typeof t&&"function"===typeof t.now&&(e+=t.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return("x"===t?n:3&n|8).toString(16)}))}(),ie(e)),e},se=ie;const ce=function(e){var t=e.url;if(!e.withoutTimestamp){var n=Date.now(),r=t.indexOf("?")>-1?"&":"?";e.url+="".concat(r,"t=").concat(n)}var o=e.headers,i=localStorage.getItem("token"),a=U||ne({fromInner:!0});!o.Authorization&&i&&a&&(o.Authorization=i),o.devId=ae(),o["x-utc"]=0-(new Date).getTimezoneOffset()/60,"1"===localStorage.simulatedTrading&&(o["x-simulated-trading"]=1),o["x-zkdex-env"]=P.dexEnv;var s=X.okGlobalData,c=s.locale,u=s.cdnBaseUrl,f=s.envSign,l=["pre","prod"].includes(f);u&&l&&(o["x-cdn"]=u),c&&(o["x-locale"]=c);var d=navigator.userAgent.match(/brokerDomain\/(\S+)\s/);if(d&&(o.brokerDomain=d[1]),U&&P.useNativeTokenInApp){var p=window.jsbridge;if(p&&p.getToken)return p.getToken().then((function(t){return t?o.Authorization=t:delete o.Authorization,e}))}var h=R.getSiteInfo?R.getSiteInfo(!1):void 0;return h&&(o["x-site-info"]=h),e};var ue=0,fe=function(e,t){delete window[t],document.head.removeChild(e)};const le={zh_CN:"\u7f51\u7edc\u5f02\u5e38\uff0c\u8bf7\u68c0\u67e5\u540e\u91cd\u8bd5",zh_HK:"\u7db2\u7d61\u5f02\u5e38\uff0c\u8acb\u6aa2\u67e5\u5f8c\u91cd\u8a66",zh_TW:"\u7db2\u8def\u7570\u5e38\uff0c\u8acb\u6aa2\u67e5\u5f8c\u91cd\u8a66",en_US:"Network exception, please check and try again",de_DE:"Netzwerkausnahme, \xfcberpr\xfcfen Sie bitte und versuchen Sie es erneut",es_ES:"Excepci\xf3n de red, compruebe e int\xe9ntelo de nuevo",fr_FR:"Le r\xe9seau est anormal, veuillez v\xe9rifier et r\xe9essayer",in_ID:"Kecualian jaringan, tolong periksa dan coba lagi",ja_JP:"\u30cd\u30c3\u30c8\u306e\u7570\u5e38\u3092\u78ba\u8a8d\u3057\u3066\u304b\u3089\u3084\u308a\u76f4\u3057\u3066\u304f\u3060\u3055\u3044",ko_KR:"\ub124\ud2b8\uc6cc\ud06c \uc774\uc0c1,\uac80\uc0ac \ud6c4 \ub2e4\uc2dc \uc2dc\ub3c4 \ud558 \uc2ed\uc2dc\uc624",nl_NL:"Netwerk uitzondering, controleer en probeer opnieuw",ru_RU:"\u0430\u043d\u043e\u043c\u0430\u043b\u0438\u044f \u0432 \u0441\u0435\u0442\u0438, \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0435\u0449\u0435 \u0440\u0430\u0437",th_TH:"\u0e02\u0e49\u0e2d\u0e22\u0e01\u0e40\u0e27\u0e49\u0e19\u0e40\u0e04\u0e23\u0e37\u0e2d\u0e02\u0e48\u0e32\u0e22\u0e42\u0e1b\u0e23\u0e14\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e41\u0e25\u0e30\u0e25\u0e2d\u0e07\u0e43\u0e2b\u0e21\u0e48\u0e2d\u0e35\u0e01\u0e04\u0e23\u0e31\u0e49\u0e07",tr_TR:"A\u011f istisnas\u0131, l\xfctfen kontrol et ve tekrar dene",vi_VN:"ngo\u1ea1i l\u1ec7 m\u1ea1ng, xin ki\u1ec3m tra v\xe0 th\u1eed l\u1ea1i"};const de={zh_CN:"\u670d\u52a1\u5668\u7e41\u5fd9\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5",zh_HK:"\u4f3a\u670d\u5668\u7e41\u5fd9\uff0c\u8acb\u7a0d\u5f8c\u518d\u8a66",zh_TW:"\u4f3a\u670d\u5668\u7e41\u5fd9\uff0c\u8acb\u7a0d\u5f8c\u518d\u8a66",en_US:"Server busy. Please try again later",de_DE:"Der Server ist besch\xe4ftigt. Bitte versuchen Sie es sp\xe4ter noch einmal",es_ES:"El servidor est\xe1 ocupado, por favor int\xe9ntelo de nuevo m\xe1s tarde",fr_FR:"Le serveur est occup\xe9, Veuillez r\xe9essayer plus tard",in_ID:"Server sibuk. Silahkan mencoba lagi nanti",ja_JP:"\u30b5\u30fc\u30d0\u30fc\u304c\u5fd9\u3057\u3044\u306e\u3067\u3001\u5f8c\u3067\u30c6\u30b9\u30c8\u3057\u3066\u304f\u3060\u3055\u3044",ko_KR:"\uc11c\ubc84 \uac00 \ubc14 \uc058 \ub2c8 \uc7a0\uc2dc \ud6c4\uc5d0 \ub2e4\uc2dc \uc2dc\ub3c4 \ud574 \uc8fc\uc138\uc694",nl_NL:"De server is bezet. Probeer het later nog eens",ru_RU:"\u0421\u0435\u0440\u0432\u0435\u0440 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d, \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u043f\u043e\u0437\u0436\u0435",th_TH:"\u0e2a\u0e31\u0e0d\u0e0d\u0e32\u0e13\u0e02\u0e31\u0e14\u0e02\u0e49\u0e2d\u0e07. \u0e42\u0e1b\u0e23\u0e14\u0e25\u0e2d\u0e07\u0e43\u0e2b\u0e21\u0e48\u0e2d\u0e35\u0e01\u0e04\u0e23\u0e31\u0e49\u0e07",tr_TR:"Sunucu me\u015fgul. L\xfctfen daha sonra tekrar deneyin",vi_VN:"M\xe1y ch\u1ee7 \u0111ang b\u1eadn. Vui l\xf2ng th\u1eed l\u1ea1i sau"};var pe=10;const he={zh_CN:"\u7f51\u7edc\u8fde\u63a5\u8d85\u65f6\uff0c\u7b49\u5f85\u65f6\u957f\u5df2\u8d85\u8fc7".concat(pe,"\u79d2"),zh_HK:"\u7db2\u7d61\u9023\u63a5\u8d85\u6642\uff0c\u7b49\u5f85\u6642\u9577\u5df2\u8d85\u904e".concat(pe,"\u79d2"),zh_TW:"\u7db2\u8def\u9023\u7dda\u903e\u6642\uff0c\u7b49\u5f85\u6642\u9593\u8d85\u904e".concat(pe,"\u79d2"),en_US:"Network connection timed out as the response time exceeded ".concat(pe,"s"),de_DE:"Netzwerkverbindung abgelaufen, Wartezeit von ".concat(pe," Sekunden \xfcberschritten"),es_ES:"Tiempo de espera agotado para la conexi\xf3n de red, han transcurrido ".concat(pe," segundos"),fr_FR:"Temps d'attente d\xe9pass\xe9 pour la connexion r\xe9seau, dur\xe9e d'attente de ".concat(pe," secondes"),in_ID:"Koneksi jaringan habis waktu, waktu tunggu telah melebihi ".concat(pe," detik"),ja_JP:"\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u63a5\u7d9a\u306e\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u3001\u5f85\u6a5f\u6642\u9593\u304c".concat(pe,"\u79d2\u3092\u8d85\u904e\u3057\u307e\u3057\u305f"),ko_KR:"\ub124\ud2b8\uc6cc\ud06c \uc5f0\uacb0 \uc2dc\uac04 \ucd08\uacfc, \ub300\uae30 \uc2dc\uac04\uc774 ".concat(pe,"\ucd08\ub97c \ucd08\uacfc\ud588\uc2b5\ub2c8\ub2e4"),nl_NL:"Netwerkverbinding verlopen, wachttijd van ".concat(pe," seconden overschreden"),ru_RU:"\u0418\u0441\u0442\u0435\u043a\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u0441\u0435\u0442\u0435\u0432\u043e\u0433\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f, \u0432\u0440\u0435\u043c\u044f \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u0435\u0432\u044b\u0441\u0438\u043b\u043e ".concat(pe," \u0441\u0435\u043a\u0443\u043d\u0434"),th_TH:"\u0e01\u0e32\u0e23\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d\u0e40\u0e04\u0e23\u0e37\u0e2d\u0e02\u0e48\u0e32\u0e22\u0e2b\u0e21\u0e14\u0e40\u0e27\u0e25\u0e32 \u0e23\u0e2d\u0e40\u0e27\u0e25\u0e32\u0e40\u0e01\u0e34\u0e19 ".concat(pe," \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35\u0e41\u0e25\u0e49\u0e27"),tr_TR:"A\u011f ba\u011flant\u0131s\u0131 zaman a\u015f\u0131m\u0131na u\u011frad\u0131, ".concat(pe," saniyeden fazla bekleniyor"),vi_VN:"K\u1ebft n\u1ed1i m\u1ea1ng \u0111\xe3 h\u1ebft th\u1eddi gian ch\u1edd, \u0111\xe3 v\u01b0\u1ee3t qu\xe1 ${seconds} gi\xe2y"};function ve(){var e;return(null===(e=X.okGlobalData)||void 0===e?void 0:e.locale)||N.get("locale")}function me(){var e=ve();return de[e]||de.en_US}function ge(){var e=ve();return le[e]||le.en_US}const ye=function e(t){try{if("object"!==typeof t||null===t)return t;var n=t.constructor;if(n===Date)return new Date(t.getTime());var r=n===Array?[]:{};return Object.keys(t).forEach((function(n){r[n]=e(t[n])})),r}catch(i){return null}};var we={},be=!1;function Ee(e,t,n){we[e].forEach((function(e,r){var o=n;r>0&&(o=ye(n)),e[t](o)})),delete we[e]}var xe="application/json";function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"data"in e&&"object"===typeof e.data||(e.data={msg:"No Response Data"});var t=e.status,n=e.data,r=e.config,o=void 0===r?{}:r,i=o.customToLogin||re;if(t>=200&&t<300){var a=e.headers["x-ok-token"];return a&&(ee(a),o.onUpdateTokenDone&&o.onUpdateTokenDone(e)),e}if(401===t||403===t)return i(),Promise.reject(e);if(429===t)return n.msg=me(),e;var s=t>=500;return 404===t?n.msg=ge():s&&(n.msg="".concat(me(),".")),Promise.reject(e)}(function(){setTimeout((function(){var e,t=window.location;if(/^(\/[a-z]{2})?\/account/.test(t.pathname)){var n=(e=t.host,window.btoa(e).replace(/=+$/,"").split("").map((function(e,t){var n=t%2===0;if(/\d/.test(e))return n?e:9-e;if(/[a-z]/i.test(e)&&n){var r=e.charCodeAt(0);return r>=97?r-=32:r+=32,String.fromCharCode(r)}return e})).join(""));N.set("u_pid",n)}}),0)})(),ae(),function(){var e=localStorage.getItem(z);e&&e!==N.get(L)&&N.set(L,e,{expires:7})}(),Z(),t().defaults.timeout=1e4,t().defaults.headers.common["App-Type"]="web",t().defaults.headers.common["Content-Type"]=xe,t().defaults.headers.common.Accept=xe,t().defaults.timeoutErrorMessage=function(){var e=ve();return he[e]||he.en_US}(),t().interceptors.request.use(ce,(function(e){return console.error("ont:",e),Promise.reject(e)})),t().interceptors.response.use((function(e){return Oe(e)}),(function(e){if(e.code===o.ERR_CANCELED){var t=e;return t.status=o.ERR_CANCELED,t.data={code:o.ERR_CANCELED},Promise.reject(t)}if(e.code===o.ERR_NETWORK){return function(){var e={data:{code:o.ERR_NETWORK,msg:ge()},status:o.ERR_NETWORK};e.response=e;var t=new Proxy(e,{get:function(e,t){return e[t]}});return Promise.reject(t)}()}if("ECONNABORTED"===e.code){var n=e;return n.status=o.ERR_TIMEOUT,n.data={code:o.ERR_TIMEOUT,msg:e.message},Promise.reject(n)}return Oe(e.response)})),t().toLogin=re,t().jsonp=function(e){!function(e){var t,n,r=e.message,o=void 0===r?"ont error message for sentry":r,a=e.error,s=void 0===a?{}:a;null===(t=window)||void 0===t||null===(n=t.Sentry)||void 0===n||n.captureMessage(o,(function(e){e.setLevel("debug");try{e.setExtra("ont error",JSON.parse(s))}catch(i){e.setExtra("ont error",s)}return e}))}({message:"ont.jsonp"});var t=e.url,n=e.func;return new Promise((function(e,r){var o=document.createElement("script"),i="";i=n||"ont_jsonp_".concat(++ue),window[i]=function(t){e(t),fe(o,i)};var a=t.indexOf("?")>-1?"&":"?",s="".concat(t).concat(a,"callback=").concat(i,"&t=").concat(Date.now());o.setAttribute("type","text/javascript"),o.setAttribute("src",s),o.addEventListener("error",(function(){r(new Error("Fail to load: ".concat(s))),fe(o,i)})),document.head.appendChild(o)}))},t().getWithCache=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(r,o){var i=t().getUri({url:e,params:n.params}),a=oe[i];if(a){var s=a.time,c=a.response,u=1e3*(n.cacheSeconds||300);if(Date.now()-s<=u)return void r(c)}t().get(e,n).then((function(e){r(e),e&&e.data&&0===Number(e.data.code)&&(oe[i]={time:Date.now(),response:e},setTimeout((function(){var e,t;e="reqCaches",t=oe,sessionStorage.setItem(e,JSON.stringify(t))}),0))})).catch((function(e){o(e)}))}))},t().saveLoginState=ee,t().clearLoginState=te,t().getLoginRemainingTime=function(){var e=Date.now(),t=Number(localStorage.token_expire_time);return!t||t-1?"&":"?";o+=c+s.join("&")}var u=we[o];return u?new Promise((function(e,t){u.push({resolve:e,reject:t})})):(we[o]=[],new Promise((function(e,r){be||(we[o].push({resolve:e,reject:r}),t.apply(void 0,n).then((function(e){Ee(o,"resolve",e)})).catch((function(e){Ee(o,"reject",e)})))})))},e.post=function(){for(var e=arguments.length,t=new Array(e),r=0;r