(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1465],{60329:function(e,t,n){"use strict";n.d(t,{Z:function(){return er}});var r,o,a,i,s=n(80965);function u(){u=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function m(t,n,r,a){var i,s,u=Object.create((n&&n.prototype instanceof h?n:h).prototype);return o(u,"_invoke",{value:(i=new L(a||[]),s=y,function(n,o){if(s===p)throw Error("Generator is already running");if(s===T){if("throw"===n)throw o;return{value:e,done:!0}}for(i.method=n,i.arg=o;;){var a=i.delegate;if(a){var u=function t(n,r){var o=r.method,a=n.iterator[o];if(a===e)return r.delegate=null,"throw"===o&&n.iterator.return&&(r.method="return",r.arg=e,t(n,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+o+"' method")),v;var i=f(a,n.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var s=i.arg;return s?s.done?(r[n.resultName]=s.value,r.next=n.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):s:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,v)}(a,i);if(u){if(u===v)continue;return u}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(s===y)throw s=T,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);s=p;var l=f(t,r,i);if("normal"===l.type){if(s=i.done?T:"suspendedYield",l.arg===v)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(s=T,i.method="throw",i.arg=l.arg)}})}),u}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=m;var y="suspendedStart",p="executing",T="completed",v={};function h(){}function E(){}function b(){}var g={};d(g,i,function(){return this});var _=Object.getPrototypeOf,R=_&&_(_(A([])));R&&R!==n&&r.call(R,i)&&(g=R);var S=b.prototype=h.prototype=Object.create(g);function O(e){["next","throw","return"].forEach(function(t){d(e,t,function(e){return this._invoke(t,e)})})}function k(e,t){var n;o(this,"_invoke",{value:function(o,a){function i(){return new t(function(n,i){!function n(o,a,i,u){var l=f(e[o],e,a);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==(0,s.Z)(d)&&r.call(d,"__await")?t.resolve(d.__await).then(function(e){n("next",e,i,u)},function(e){n("throw",e,i,u)}):t.resolve(d).then(function(e){c.value=e,i(c)},function(e){return n("throw",e,i,u)})}u(l.arg)}(o,a,n,i)})}return n=n?n.then(i,i):i()}})}function N(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 C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(u&&l){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),v}},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;C(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:A(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}var l=n(15191);function c(e,t,n,r,o,a,i){try{var s=e[a](i),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function d(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){c(a,r,o,i,s,"next",e)}function s(e){c(a,r,o,i,s,"throw",e)}i(void 0)})}}var m=n(26364),f="prod";m.BB?f="prod":m.Jg?f="testnet":m.Y8&&(f="test");var y=f,p="SPOT_SYMBOLS_DATA_COMMON",T="SPOT_SYMBOLS_DATA",v={ALL:"/spot/api/basic/symbol_list_all",V2:"/spot/api/basic/symbol_list_v2",V3:"/spot/api/basic/symbol_list_v3",CDN_NEW:"/common-static/fhs/global-search/algolia/downgrade/algolia-downgrade-".concat(y,".json")},h={si:"symbolId",sn:"symbolName",bti:"baseTokenId",btn:"baseTokenName",qti:"quoteTokenId",qtn:"quoteTokenName",bp:"basePrecision",qp:"quotePrecision",miq:"minTradeQuantity",mia:"minTradeAmount",mip:"minPricePrecision",dm:"digitMerge",ss:"showStatus",l:"label",ap:"allowPlan",maq:"maxTradeQuantity",maa:"maxTradeAmount",nv:"noticeVisible",st:"symbolType",lul:"ltUnderlying",ld:"ltDirection",t:"tags",tfn:"tokenFullName",iu:"iconUrl",ot:"onlineTime",m:"mark",qtr:"quoteTokenLeverageRatio",btr:"baseTokenLeverageRatio",le:"loanEnabled",bb:"isBanBuy",bs:"isBanSell",idu:"iconDayUrl",ts:"tradeStatus",zft:"zeroFeeType",lpp:"limitOrderPriceLimitPercentage",mpp:"marketOrderPriceLimitPercentage",v:"volume"},E=n(98992),b=n(9816),g=n(14453),_=n(95533),R="undefined"!=typeof window,S=function(e,t){var n,r;return R?null===(n=window.Monitor)||void 0===n?void 0:null===(r=n.log)||void 0===r?void 0:r.call(n,(0,l.Z)({t:e},t)):null},O=function(e,t){if("object"!==(0,s.Z)(e)||null===e)return e;var n=new Set(t);return function e(t){if("object"!==(0,s.Z)(t)||null===t)return t;if(Array.isArray(t))return t.map(e);var r={};return Object.keys(t).forEach(function(o){n.has(o)||(r[o]=e(t[o]))}),r}(e)},k=function(e){if(!(null==e?void 0:e.length))return[];var t=Object.entries(h);return e.map(function(e){return t.reduce(function(t,n){var r=function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],u=!0,l=!1;try{for(a=(n=n.call(e)).next;!(u=(r=a.call(n)).done)&&(s.push(r.value),2!==s.length);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}(n,2)||(0,b.Z)(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=r[0],a=r[1];return o&&(t[a]=e[o]),t},{})})},N=function(e,t){return(null==e?void 0:e.length)?t?k(e):e.map(function(e){return e.quoteTokenSymbols&&(e.quoteTokenSymbols=k(e.quoteTokenSymbols)),e}):[]},C=function(e){return e.reduce(function(e,t){var n;if(null==t?void 0:null===(n=t.quoteTokenSymbols)||void 0===n?void 0:n.length){var r=t.quoteTokenSymbols.map(function(e){return(0,l.Z)((0,l.Z)({},e),{},{tokenType:t.tokenType})});e.push.apply(e,(0,E.Z)(r))}return e},[])},L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e.reduce(function(e,n){var r;return e[null!==(r=n[t])&&void 0!==r?r:n.symbolId]=n,e},{})},A=function(e,t,n){!0===e?Object.assign(t,n):Object.keys(n).forEach(function(e){e in t||(t[e]=n[e])})},q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.key,o=void 0===r?"si":r,a=n.tokenId,i=n.isFromCdn;if(!(null==t?void 0:t.length))return e;var s=L(e,o);return t.forEach(function(t){if(i&&!t.isFromCdn&&(t.isFromCdn=!0),!a||t.quoteTokenId===a){var n,r=s[null!==(n=t[o])&&void 0!==n?n:t.symbolId];r?Object.assign(r,t):e.push(t)}}),e},w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.key,a=void 0===o?"si":o,i=r.isNeedReplace,s=r.isFromCdn,u=r.tokenId;if(!0===s)q(e,t,{key:a,tokenId:u,isFromCdn:s});else for(var l=L(t,a),c=0;c1&&void 0!==arguments[1]?arguments[1]:null;try{return JSON.parse(e)}catch(e){return t}};function M(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.ignoreNull;return void 0!==n&&n&&null==e?[]:Array.isArray(e)?e:[e]}function F(e){if("string"!=typeof e||-1===e.indexOf("."))return 0;var t=e.split(".");return t[1]?t[1].length:0}var j=function(e){var t=[],n=[],r=[],o={},a=[],i=[],s={},u=function(){return{symbols:r,symbolMap:L(r),quoteTags:o,totalCurrencys:t,quoteCurrencys:n,allFiatCurrency:a,fiatCurrency:i,qouteTokenInfo:s}};try{return M(e,{ignoreNull:!0}).forEach(function(e){e.quoteTokenSymbols=M(e.quoteTokenSymbols,{ignoreNull:!0}),e.quoteTags=M(e.quoteTags,{ignoreNull:!0}),s[e.tokenId]=O(e,["quoteTokenSymbols","quoteTags"]),"REAL_MONEY"!==e.tokenType||a.includes(e.tokenName)||a.push(e.tokenName),e.quoteTokenSymbols.forEach(function(o){o.tags=M(o.tags,{ignoreNull:!0}),o.baseTokenName=o.baseTokenName.toUpperCase(),o.quoteTokenName=o.quoteTokenName.toUpperCase(),t.find(function(t){return t.value===e.tokenName})||t.push({value:e.tokenName,iconType:e.zeroFeeType||0}),"REAL_MONEY"===e.tokenType||n.find(function(t){return t.value===e.tokenName})||n.push({value:e.tokenName,iconType:e.zeroFeeType||0}),"REAL_MONEY"===e.tokenType&&(i.find(function(t){return t.value===e.tokenName})||i.push({value:e.tokenName,iconType:o.zeroFeeType||0}),o.isFiat=!0),r.push((0,l.Z)((0,l.Z)({},o),{},{quantityPrecision:F(o.basePrecision),pricePrecision:F(o.minPricePrecision),amountPrecision:F(o.quotePrecision)}))}),e.quoteTags.forEach(function(t){e.quoteTokenSymbols.some(function(e){var n;return!(!e.tags.includes(t)||(null===(n=o[e.quoteTokenName])||void 0===n?void 0:n.includes(t)))&&(o[e.quoteTokenName]?o[e.quoteTokenName].push(t):o[e.quoteTokenName]=[t],!0)})})}),u()}catch(e){return u()}},B=function(e){return{all:e,symbols:C(e),symbolsMap:L(C(e)),handleSymbols:j}},U={COMMON_ERROR:"symbol_list_error",STORAGE_ERROR:"symbol_list_storage_error",EXECUTION_ERROR:"symbol_list_execution_error"},H={RETRY_REQUEST_ERROR:11511501,RETRY_REQUEST_MAX_ERROR:11511502,USE_LOCAL_CODE_DATA:11511503,USE_HARD_CODE_DATA:11511504,CODE_EXECUTION_ERROR:11511505,API_SPLIT_REQUEST_ERROR:11511506,MERGE_SYMBOLS_ERROR:11511507,CDN_REQUEST_CODE_ERROR:11511508,V3_REQUEST_CODE_ERROR:11511509,FALLBACK_TO_V2:11511510,FALLBACK_TO_V2_REQUEST_ERROR:11511511,USE_CDN_JSON_SYMBOLS_DATA:11511512,REQUEST_CDN_JSON_SYMBOLS_ERROR:11511513,SET_LOCAL_STORAGE_ERROR:11511514,DELETE_LOCAL_STORAGE_ERROR:11511515,USE_CDN_JSON_LOCAL_SYMBOLS_DATA:11511516,USE_CDN_JSON_HARD_SYMBOLS_DATA:11511517},Y=new(n(65796)).c({credentials:"include",headers:{Accept:"application/json","Content-Type":"application/json",platform:"pc"},timeout:8e3});Y.freezeCacheDeletion({"/symbol_list_all":"manual","/symbol_list_v2":"manual","/symbol_list_v3":"manual"}),Y.addInstanceRequestInterceptors([function(e,t){return t.requestTime=Date.now(),{url:e,options:t}}]),Y.addInstanceResponseInterceptors([(r=d(u().mark(function e(t,n,r){var o;return u().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,o=t.clone(),e.next=4,o.json();case 4:if(e.sent){e.next=7;break}return e.abrupt("return",Promise.reject(r.createResponseError("Non Response!",void 0)));case 7:return e.abrupt("return",t);case 10:return e.prev=10,e.t0=e.catch(0),e.abrupt("return",Promise.reject(e.t0));case 13:case"end":return e.stop()}},e,null,[[0,10]])})),function(e,t,n){return r.apply(this,arguments)})]);var G=(o=d(u().mark(function e(t){var n;return u().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:S(U.COMMON_ERROR,{c:H.FALLBACK_TO_V2,m:"fallback to v2"});try{localStorage.removeItem(p)}catch(e){S(U.STORAGE_ERROR,{c:H.DELETE_LOCAL_STORAGE_ERROR,m:"delete localStorage error"})}return n={},e.prev=3,e.next=6,Y.get("".concat(I()).concat(v.V2),t);case 6:n=x(n=e.sent),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(3),S(U.COMMON_ERROR,{c:H.FALLBACK_TO_V2_REQUEST_ERROR,m:e.t0.message||"fallback to v2 request error"}),n=x(e.t0);case 14:return e.abrupt("return",Promise.resolve(n));case 15:case"end":return e.stop()}},e,null,[[3,10]])})),function(e){return o.apply(this,arguments)}),z=(a=d(u().mark(function e(){var t,n,r,o,a,i;return u().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t={},e.prev=1,e.next=4,Y.get("".concat(function(){if("undefined"!=typeof window&&void 0!==window.location)return window.location.origin;if(void 0!==_&&_.env){var e=_.env.HOST||_.env.HOSTNAME,t=_.env.PROTOCOL||"http",n=_.env.PORT||80;if(e)return"".concat(t,"://").concat(e,":").concat(n)}return null}()).concat(v.CDN_NEW));case 4:t=x({result:(i=(null===(n=t=e.sent)||void 0===n?void 0:null===(r=n.data)||void 0===r?void 0:null===(o=r.defaultTradeRecommended)||void 0===o?void 0:null===(a=o.spots)||void 0===a?void 0:a.length)>0)?t.data:null,ret_code:i?0:500,ret_msg:i?"success":"error"}),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(1),S(U.COMMON_ERROR,{c:H.REQUEST_CDN_JSON_SYMBOLS_ERROR,m:e.t0.message||"request cdn json symbols error"}),t=x(e.t0);case 13:return e.abrupt("return",Promise.resolve(t));case 14:case"end":return e.stop()}},e,null,[[1,9]])})),function(){return a.apply(this,arguments)}),K=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.setIsMergeError,o=n.isNeedReplace,a=n.isFromCdn,i=n.key;if(!Array.isArray(e)||!Array.isArray(t))return[];for(var s=!1,u=function(){s=!0},l=0;l1&&void 0!==arguments[1]?arguments[1]:{};if(X[e])return X[e];var n=t.maxCount||0,r="function"==typeof t.callback?t.callback:function(){};return delete t.maxCount,delete t.callback,X[e]=new($())(t),X[e].$maxCount=n,X[e].$callback=r,ee(e),X[e]},en=function(e){X[e]&&(clearTimeout(X[e].$timer),delete X[e])},er=(i=d(u().mark(function e(){var t,n,r,o,a,i,s=arguments;return u().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=s.length>0&&void 0!==s[0]?s[0]:localStorage.getItem("BYBIT_LANG_KEY")||"en",o=void 0===(r=(n=s.length>1&&void 0!==s[1]?s[1]:{}).useCache)||r,i=void 0!==(a=n.isRequestCdn)&&a,R){e.next=4;break}return e.abrupt("return",Promise.resolve(B([])));case 4:if(!V.symbolsPromise){e.next=6;break}return e.abrupt("return",V.symbolsPromise);case 6:return V.symbolsPromise=new Promise(function(e){var n=function(){var r=d(u().mark(function r(a){var s,c,d,m,f,y,h,E,b,g,_,R,O,k,C,L,A,w,P,M,F,j,Z,Q,W,$,ee,er;return u().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:r.prev=0;try{localStorage.removeItem("spotSymbolData")}catch(e){S(U.STORAGE_ERROR,{c:H.DELETE_LOCAL_STORAGE_ERROR,m:"delete localStorage error"})}if(V.cacheSymbolsData=D(localStorage.getItem(T)),V.cacheSymbolsDataCdn=D(localStorage.getItem(p)),!a){r.next=19;break}if(en(V.BACKOFF_ID),c=!1,d=[],!0!==i){r.next=16;break}return r.next=12,z();case 12:f=(m=r.sent).success,y=m.result,f&&(c=!!(null==y?void 0:y.switch),d=null!==(h=null==y?void 0:null===(E=y.defaultTradeRecommended)||void 0===E?void 0:E.spots)&&void 0!==h?h:[]),S(U.COMMON_ERROR,{c:H.USE_CDN_JSON_SYMBOLS_DATA,m:"use cdn json symbols data",s:c});case 16:if(null===(s=V.cacheSymbolsData)||void 0===s?void 0:s.quoteTokenResult){if(c){S(U.COMMON_ERROR,{c:H.USE_CDN_JSON_LOCAL_SYMBOLS_DATA,m:"use cdn json symbols and localStorage data",s:c}),K(V.cacheSymbolsData.quoteTokenResult,N(d,!0),{isFromCdn:!0});try{localStorage.setItem(T,JSON.stringify(V.cacheSymbolsData))}catch(e){S(U.STORAGE_ERROR,{c:H.SET_LOCAL_STORAGE_ERROR,m:e.message||"set localStorage error"})}}else S(U.COMMON_ERROR,{c:H.USE_LOCAL_CODE_DATA,m:"use localStorage data"});e(B(V.cacheSymbolsData.quoteTokenResult))}else c?(S(U.COMMON_ERROR,{c:H.USE_CDN_JSON_HARD_SYMBOLS_DATA,m:"use cdn json symbols and hard code data",s:c}),K(J.quoteTokenResult,N(d,!0),{isFromCdn:!0})):S(U.COMMON_ERROR,{c:H.USE_HARD_CODE_DATA,m:"use hard code data"}),e(B(J.quoteTokenResult));r.next=63;break;case 19:return C="",L="",A={},(null===(b=V.cacheSymbolsData)||void 0===b?void 0:null===(g=b.quoteTokenResult)||void 0===g?void 0:g.length)&&(null===(_=V.cacheSymbolsData)||void 0===_?void 0:_.version)&&(L=V.cacheSymbolsData.version),(null===(R=V.cacheSymbolsDataCdn)||void 0===R?void 0:null===(O=R.quoteTokenSymbols)||void 0===O?void 0:O.length)&&(null===(k=V.cacheSymbolsDataCdn)||void 0===k?void 0:k.lastModifiedTime)&&(C=V.cacheSymbolsDataCdn.lastModifiedTime),w={headers:{lang:t,"Accept-Language":t},useCache:o,rewriteCacheKey:function(e){return"".concat(e,"&").concat(t)}},P=(0,l.Z)({},w),C&&(P=(0,l.Z)((0,l.Z)({},P),{},{params:{last_modified_at:C}})),L&&(w=(0,l.Z)((0,l.Z)({},w),{},{params:{version:L}})),r.prev=28,M=!1,F=function(){M=!0},r.next=33,Promise.all([Y.get("".concat(I()).concat(v.ALL),P),Y.get("".concat(I()).concat(v.V3),w)]);case 33:if(Z=x((j=r.sent)[0]),Q=x(j[1]),Z.success){(null===(W=V.cacheSymbolsDataCdn)||void 0===W?void 0:W.quoteTokenSymbols)&&(Z.result.quoteTokenSymbols=q(V.cacheSymbolsDataCdn.quoteTokenSymbols,Z.result.quoteTokenSymbols));try{localStorage.setItem(p,JSON.stringify(Z.result))}catch(e){S(U.STORAGE_ERROR,{c:H.SET_LOCAL_STORAGE_ERROR,m:e.message||"set localStorage error"})}}if(Z.success&&Q.success&&(K(Q.result.quoteTokenResult,Z.result.quoteTokenSymbols,{setIsMergeError:F}),M||(A=Q)),!(M||!Z.success||!Q.success)){r.next=43;break}return M?S(U.COMMON_ERROR,{c:H.MERGE_SYMBOLS_ERROR,m:"merge symbols error"}):Z.success?Q.success||S(U.COMMON_ERROR,{c:H.V3_REQUEST_CODE_ERROR,m:"symbol_v3 request error"}):S(U.COMMON_ERROR,{c:H.CDN_REQUEST_CODE_ERROR,m:"symbol_all request error"}),r.next=42,G(w);case 42:A=r.sent;case 43:r.next=51;break;case 45:return r.prev=45,r.t0=r.catch(28),S(U.COMMON_ERROR,{c:H.API_SPLIT_REQUEST_ERROR,m:r.t0.message||"all/v3 request error"}),r.next=50,G(w);case 50:A=r.sent;case 51:if(ee=($=A).success,er=$.result,!(ee&&er)){r.next=59;break}er.quoteTokenResult?er.quoteTokenResult=N(er.quoteTokenResult):er.quoteTokenResult=V.cacheSymbolsData.quoteTokenResult,en(V.BACKOFF_ID);try{localStorage.setItem(T,JSON.stringify(er))}catch(e){S(U.STORAGE_ERROR,{c:H.SET_LOCAL_STORAGE_ERROR,m:e.message||"set localStorage error"})}e(B(er.quoteTokenResult)),r.next=63;break;case 59:return n(!0),r.abrupt("return");case 62:X[V.BACKOFF_ID]||V.retryInProgress||(V.retryInProgress=!0,et(V.BACKOFF_ID,{min:2e3,max:4e3,maxCount:0,callback:function(){return V.getSymbolsRetryTimes>=0?(V.retryInProgress=!1,S(U.COMMON_ERROR,{c:H.RETRY_REQUEST_MAX_ERROR,m:"retry request max times ".concat(0)}),n(!0)):(S(U.COMMON_ERROR,{c:H.RETRY_REQUEST_ERROR,m:"retry request error, retry times ".concat(V.getSymbolsRetryTimes)}),V.getSymbolsRetryTimes+=1,n())}}));case 63:r.next=70;break;case 65:r.prev=65,r.t1=r.catch(0),S(U.EXECUTION_ERROR,{c:H.CODE_EXECUTION_ERROR,m:r.t1.message||"code execution error"}),V.retryInProgress=!1,n(!0);case 70:case"end":return r.stop()}},r,null,[[0,65],[28,45]])}));return function(e){return r.apply(this,arguments)}}();n()}).finally(function(){V.retryInProgress=!1,V.symbolsPromise=null}),e.abrupt("return",V.symbolsPromise);case 8:case"end":return e.stop()}},e)})),function(){return i.apply(this,arguments)})},3251:function(e){function t(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=t,t.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(1&Math.floor(10*t))==0?e-n:e+n}return 0|Math.min(e,this.max)},t.prototype.reset=function(){this.attempts=0},t.prototype.setMin=function(e){this.ms=e},t.prototype.setMax=function(e){this.max=e},t.prototype.setJitter=function(e){this.jitter=e}},28542:function(e,t,n){"use strict";n.d(t,{default:function(){return o.a}});var r=n(75951),o=n.n(r)},75951:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(79932);n(26657),n(15312);let o=r._(n(82303));function a(e,t){var n;let r={loading:e=>{let{error:t,isLoading:n,pastDelay:r}=e;return null}};"function"==typeof e&&(r.loader=e);let a={...r,...t};return(0,o.default)({...a,modules:null==(n=a.loadableGenerated)?void 0:n.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},53168:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return o}});let r=n(96090);function o(e){let{reason:t,children:n}=e;if("undefined"==typeof window)throw new r.BailoutToCSRError(t);return n}},82303:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=n(26657),o=n(15312),a=n(53168),i=n(21144);function s(e){return{default:e&&"default"in e?e.default:e}}let u={loader:()=>Promise.resolve(s(()=>null)),loading:null,ssr:!0},l=function(e){let t={...u,...e},n=(0,o.lazy)(()=>t.loader().then(s)),l=t.loading;function c(e){let s=l?(0,r.jsx)(l,{isLoading:!0,pastDelay:!0,error:null}):null,u=t.ssr?(0,r.jsxs)(r.Fragment,{children:["undefined"==typeof window?(0,r.jsx)(i.PreloadCss,{moduleIds:t.modules}):null,(0,r.jsx)(n,{...e})]}):(0,r.jsx)(a.BailoutToCSR,{reason:"next/dynamic",children:(0,r.jsx)(n,{...e})});return(0,r.jsx)(o.Suspense,{fallback:s,children:u})}return c.displayName="LoadableComponent",c}},21144:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadCss",{enumerable:!0,get:function(){return a}});let r=n(26657),o=n(87561);function a(e){let{moduleIds:t}=e;if("undefined"!=typeof window)return null;let n=(0,o.getExpectedRequestStore)("next/dynamic css"),a=[];if(n.reactLoadableManifest&&t){let e=n.reactLoadableManifest;for(let n of t){if(!e[n])continue;let t=e[n].files.filter(e=>e.endsWith(".css"));a.push(...t)}}return 0===a.length?null:(0,r.jsx)(r.Fragment,{children:a.map(e=>(0,r.jsx)("link",{precedence:"dynamic",rel:"stylesheet",href:n.assetPrefix+"/_next/"+encodeURI(e),as:"style"},e))})}},63864:function(e,t,n){"use strict";var r=n(15312),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,i=r.useEffect,s=r.useLayoutEffect,u=r.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),o=r[0].inst,c=r[1];return s(function(){o.value=n,o.getSnapshot=t,l(o)&&c({inst:o})},[e,n,t]),i(function(){return l(o)&&c({inst:o}),e(function(){l(o)&&c({inst:o})})},[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},97001:function(e,t,n){"use strict";var r=n(15312),o=n(48340),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useSyncExternalStore,s=r.useRef,u=r.useEffect,l=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=s(null);if(null===d.current){var m={hasValue:!1,value:null};d.current=m}else m=d.current;var f=i(e,(d=l(function(){function e(e){if(!u){if(u=!0,i=e,e=r(e),void 0!==o&&m.hasValue){var t=m.value;if(o(t,e))return s=t}return s=e}if(t=s,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,s=n)}var i,s,u=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,n,r,o]))[0],d[1]);return u(function(){m.hasValue=!0,m.value=f},[f]),c(f),f}},48340:function(e,t,n){"use strict";e.exports=n(63864)},42343:function(e,t,n){"use strict";e.exports=n(97001)},49141:function(e,t,n){"use strict";n.d(t,{T_:function(){return a}});var r=n(12856);function o(e,t){return(...e)=>{try{return t(...e)}catch{throw Error(void 0)}}}let a=o(0,r.T_);o(0,r.Gb)},77203:function(e,t,n){"use strict";function r(e){return e}n.d(t,{Z:function(){return r}})},16123:function(e,t,n){"use strict";n.d(t,{ZP:function(){return u}});let r=e=>{let t;let n=new Set,r=(e,r)=>{let o="function"==typeof e?e(t):e;if(!Object.is(o,t)){let e=t;t=(null!=r?r:"object"!=typeof o)?o:Object.assign({},t,o),n.forEach(n=>n(t,e))}},o=()=>t,a={setState:r,getState:o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,o,a),a},o=e=>e?r(e):r;var a=n(15312);let{useSyncExternalStoreWithSelector:i}=n(42343),s=e=>{let t="function"==typeof e?o(e):e,n=(e,n)=>(function(e,t=e.getState,n){let r=i(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,a.useDebugValue)(r),r})(t,e,n);return Object.assign(n,t),n},u=e=>e?s(e):s}}]); //# sourceMappingURL=1465-fa37994b18b697c9.js.map