(window.webpackJsonp=window.webpackJsonp||[]).push([[62],{192:function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return P})),n.d(e,"a",(function(){return Y}));var o=n(339),c=n(348),r=window.location.protocol,l=t.env.BYBIT_COOKIE_DOMAIN,f=t.env.BYBIT_API2_HOST,d=t.env.BYBIT_WS2_HOST,v="https:"===r?"wss:":"ws:",h=!0,_="public-test-1",m="bybit",T="com";h=!1;var A=c.d.split(".");if(3===A.length){var O=Object(o.a)(A,3);_=O[0],m=O[1],T=O[2]}if(4===A.length){var w=Object(o.a)(A,4);_=w[1],m=w[2],T=w[3]}/^(testnet-newblog|testnet-learn|testnet-announcement)$/.test(_)&&(_="testnet"),/^(blog|learn|announcement)$/.test(_)&&(_="www");var S=h&&("dev-3"===_||"test-3"===_),y=/^(www|m)$/,E="testnet"===_||"m-testnet"===_,B=E?"t1.bycsi.com":"s1.bycsi.com",I=/^(www|m|testnet|m-testnet)$/.test(_),R=("".concat(m,".").concat(T),"api2.".concat(y.test(_)?"":"".concat(_,"."))),N="ws2.".concat(y.test(_)?"":"".concat(_,".")),L="chat.".concat(y.test(_)?"":"".concat(_,"."));E&&(R="api2-testnet.",L="chat-testnet.",N="ws2-testnet.");var U="";I||(U="https://tms.ffe390afd658c19dcbf707e0597b846d.de");var M="affiliates.";!E&&I||(M="affiliates-testnet.");"https://".concat(M).concat(m,".").concat(T);var j=R,D=N,P=m,Y=(l||"b_t_c_k".concat(y.test(_)?"":"_".concat(_)),"https://".concat("s1.bycsi.com")),C=("https://".concat(B),"".concat(r,"//").concat(L).concat(m,".").concat(T,"/chat/by-chat-widget.js"),S?"wss:":v),k=(f||c.a||"".concat(r,"//").concat(j).concat(m,".").concat(T),d||c.b||"".concat(C,"//").concat(D).concat(m,".").concat(T),"".concat(r,"//infra-gateway.").concat(_,".").concat(m,".").concat(T),"".concat(C,"//www.").concat(_,".").concat(m,".").concat(T),y.test(_)||"_".concat(_),t.env.BYBIT_TMS_HOST,"https://help.".concat(m,".com"));"https://blog.".concat(m,".com"),"".concat(k,"/hc"),I||t.env.BYBIT_EXPORT_URL}).call(this,n(34))},194:function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return P})),n.d(e,"a",(function(){return Y}));var o=n(337),c=n(349),r=window.location.protocol,l=t.env.BYBIT_COOKIE_DOMAIN,f=t.env.BYBIT_API2_HOST,d=t.env.BYBIT_WS2_HOST,v="https:"===r?"wss:":"ws:",h=!0,_="public-test-1",m="bybit",T="com";h=!1;var A=c.c.split(".");if(3===A.length){var O=Object(o.a)(A,3);_=O[0],m=O[1],T=O[2]}if(4===A.length){var w=Object(o.a)(A,4);_=w[1],m=w[2],T=w[3]}/^(testnet-newblog|testnet-learn|testnet-announcement)$/.test(_)&&(_="testnet"),/^(blog|learn|announcement)$/.test(_)&&(_="www");var S=h&&("dev-3"===_||"test-3"===_),y=/^(www|m)$/,E="testnet"===_||"m-testnet"===_,B=E?"t1.bycsi.com":"s1.bycsi.com",I=/^(www|m|testnet|m-testnet)$/.test(_),R=("".concat(m,".").concat(T),"api2.".concat(y.test(_)?"":"".concat(_,"."))),N="ws2.".concat(y.test(_)?"":"".concat(_,".")),L="chat.".concat(y.test(_)?"":"".concat(_,"."));E&&(R="api2-testnet.",L="chat-testnet.",N="ws2-testnet.");var U="";I||(U="https://tms.ffe390afd658c19dcbf707e0597b846d.de");var M="affiliates.";!E&&I||(M="affiliates-testnet.");"https://".concat(M).concat(m,".").concat(T);var j=R,D=N,P=m,Y=(l||"b_t_c_k".concat(y.test(_)?"":"_".concat(_)),"https://".concat("s1.bycsi.com")),C=("https://".concat(B),"".concat(r,"//").concat(L).concat(m,".").concat(T,"/chat/by-chat-widget.js"),S?"wss:":v),k=(f||c.a||"".concat(r,"//").concat(j).concat(m,".").concat(T),d||c.b||"".concat(C,"//").concat(D).concat(m,".").concat(T),"".concat(r,"//infra-gateway.").concat(_,".").concat(m,".").concat(T),"".concat(C,"//www.").concat(_,".").concat(m,".").concat(T),y.test(_)||"_".concat(_),t.env.BYBIT_TMS_HOST,"https://help.".concat(m,".com"));"https://blog.".concat(m,".com"),"".concat(k,"/hc"),I||t.env.BYBIT_EXPORT_URL}).call(this,n(34))},303:function(t,e,n){"use strict";var o=n(464);e.a=o.a},304:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var o=n(194),c=("".concat(o.a,"/asset/image/logo-white.svg"),"".concat(o.a,"/asset/image/logo-dark.svg"),"".concat(o.a,"/assets/image/d-").concat(o.b,".png"),[{label:"English",lang:"EN",value:"en-US"},{label:"Bahasa Indonesia",lang:"ID",value:"id-ID"},{label:"Español (España)",lang:"ES",value:"es-ES"},{label:"Español (Internacional)",lang:"ES",value:"es-419"},{label:"Español (México)",lang:"ES",value:"es-MX"},{label:"Español (Argentina)",lang:"ES",value:"es-AR"},{label:"Filipino",lang:"FIL",value:"fil-PH"},{label:"Français",lang:"FR",value:"fr-FR"},{label:"қазақша",lang:"KK",value:"kk-KZ"},{label:"Português (Brasil)",lang:"BR",value:"pt-BR"},{label:"Português (Portugal)",lang:"PT",value:"pt-PT"},{label:"Русский",lang:"RU",value:"ru-RU"},{label:"Tiếng Việt",lang:"VI",value:"vi-VN"},{label:"Türkçe",lang:"TR",value:"tr-TR"},{label:"ไทย",lang:"TH",value:"th-TH"},{label:"Українська",lang:"UK",value:"uk-UA"},{label:"العربيه",lang:"AR",value:"ar-SA"},{label:"हिंदी",lang:"HI",value:"hi-IN"},{label:"日本語",lang:"JA",value:"ja-JP"},{label:"中文(马来西亚)",lang:"ZH",value:"zh-MY"},{label:"中文繁體",lang:"ZH",value:"zh-TW"}])},337:function(t,e,n){"use strict";function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);it.length)&&(e=t.length);for(var i=0,n=new Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;Object(l.a)(this,t),this.send=e,this.opts=Object(r.a)({firstTimeLimit:12e4},n),this.esLogger=o}return Object(f.a)(t,[{key:"start",value:function(){var t=this;window.addEventListener("load",(function(){if(window.performance){var e=t.opts.firstTimeLimit;if(!(performance.now()>e)){var n=performance.getEntriesByType("navigation");if(n&&Array.isArray(n)&&!(n.length<1)){var o=Object(v.a)(n,1)[0],c=o.domainLookupStart,r=o.domainLookupEnd,l=o.connectStart,f=o.connectEnd,d=o.requestStart,_=o.responseStart,m=o.responseEnd,T=o.fetchStart,A=o.workerStart,O=o.transferSize,w=o.encodedBodySize,S={PREDNS:c,DNS:r-c,TCP:f-l,REQ:_-d,RESP:m-_,fetchTime:m-T,timeToFirstByte:_-d,serviceWorkerTime:A>0?m-A:0,headerSize:Math.abs(O-w)||0},y=Object(h.c)(S,(function(t,e){return{name:"web",observe:"".concat(t),parms:["path","Navigation-".concat(e)]}}));t.send(y),y.forEach((function(e){t.esLogger({c:90100,t:"metric",m:e.parms[1],d:e.observe})}))}}}}))}}]),t}(),m=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return new _(t,e,n)},T={FCP:0,LCP:0,CLS:0},A=0,O=function(t,e){try{new PerformanceObserver((function(t){e(t.getEntries())})).observe({type:t,buffered:!0})}catch(t){}return null},w=function(t){var e,n=t.find((function(t){return"first-contentful-paint"===t.name}));n&&(T.FCP=(e=n.startTime,parseFloat(e.toFixed(4))))},S=function(t){var e=t.pop();e&&(T.LCP=e.renderTime||e.loadTime)},y=function(t){var e=0,n=0,o=[];t.forEach((function(t){if(!t.hadRecentInput){var c=o[0],r=o[o.length-1];n&&t.startTime-r.startTime<1e3&&t.startTime-c.startTime<5e3?(n+=t.value,o.push(t)):(n=t.value,o=[t]),n>e&&(e=n)}})),T.CLS=e},E=function(t){var e=t.pop();e&&(A=e.processingStart-e.startTime)},B=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;Object(l.a)(this,t),this.send=e,this.opts=Object(r.a)({},n),this.esLogger=o}return Object(f.a)(t,[{key:"start",value:function(){var t=this;window.PerformanceObserver&&"function"==typeof window.PerformanceObserver&&(O("paint",w),O("largest-contentful-paint",S),O("layout-shift",y),O("first-input",E),window.addEventListener("load",(function(){var e=Object(h.c)(T,(function(t,e){return{name:"web",observe:"".concat(t),parms:["path","Performance-".concat(e)]}}));t.send(e),e.forEach((function(e){t.esLogger({c:90101,t:"metric",m:e.parms[1],d:e.observe})}));var n=setInterval((function(){0!==A&&(t.send([{name:"web",observe:"".concat(A),parms:["path","Performance-FID"]}]),t.esLogger({c:90101,t:"metric",m:"Performance-FID",d:"".concat(A)}),clearInterval(n))}),500)})))}}]),t}(),I=[m,function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return new B(t,e,n)}];function R(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function N(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function L(t){for(var i=1;i=200&&t<300},C=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};U(this,t),this.defaultOpts=L(L({},D),e),this.timeout=n.timeout||3e4,this.validateStatus=n.validateStatus||Y,this.defaultRespType=n.defaultRespType||"json",this.interceptors={response:[],request:[],errorHandler:[],finally:[]}}var e,n,o;return e=t,(n=[{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,o=t;if(e.body){var c=e.body,r=Object.keys(c);r.forEach((function(t){var param="".concat(t,"=").concat(c[t]);o=o.indexOf("?")>-1?"".concat(o,"&").concat(param):"".concat(o,"?").concat(param)})),delete e.body}return this.fetch(o,L(L({},e),{},{method:"get"}),n)}},{key:"post",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return this.fetch(t,L(L({},e),{},{method:"post"}),n)}},{key:"delete",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return this.fetch(t,L(L({},e),{},{method:"delete"}),n)}},{key:"put",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return this.fetch(t,L(L({},e),{},{method:"put"}),n)}},{key:"fetch",value:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){var e,n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=arguments.length>2?arguments[2]:void 0,r=c||this.defaultRespType,l=L(L(L({},this.defaultOpts),o),{},{headers:L(L({},this.defaultOpts.headers),o.headers)}),f=this.interceptors.request.reduce((function(e,n){return n(e,t)}),l),d=j?new AbortController:{};f.signal=d.signal;var v=new Promise((function(t,o){e=setTimeout((function(){o({ret_code:9000001,ret_msg:"Request timeout, please re-try!"}),j&&d.abort()}),n.timeout)})),h=fetch(t,f);return Promise.race([h,v]).then((function(t){return clearTimeout(e),t})).then((function(t){return n.validateStatus(t.status)?t.ok&&t[P(r)]():Promise.reject({status:t.status,statusText:t.statusText})})).then((function(data){return n.interceptors.response.reduce((function(t,e){return t.then(e)}),Promise.resolve({data:data,config:f,url:t}))})).catch((function(o){return clearTimeout(e),n.interceptors.errorHandler.forEach((function(e){return e(o,f,t)})),Promise.reject(o)})).finally((function(){n.interceptors.finally.forEach((function(e){return e(f,t)}))}))}))}])&&M(e.prototype,n),o&&M(e,o),t}(),k=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!("fetch"in window))return console.error("fetch function doesn't detected in you environment"),null;var n=new C(t,e),o=n.fetch.bind(n);return o.get=n.get.bind(n),o.post=n.post.bind(n),o.put=n.put.bind(n),o.delete=n.delete.bind(n),o.interceptors=n.interceptors,o}({headers:{"Content-Type":"application/json"}}),H=n(303),x=n(765),G=n(736),F=n(192),$=("".concat(F.a,"/asset/image/logo-white.svg"),"".concat(F.a,"/asset/image/logo-dark.svg"),"".concat(F.a,"/assets/image/d-").concat(F.b,".png"),function(){var t,e=Object(G.b)("_by_l_g_d");return e&&36===e.length||(e=Object(x.a)()),Object(G.a)("_by_l_g_d",e,-1!==(t=window.location.host).indexOf("localhost")?"localhost":t.replace(/^(www|m|testnet|blog-test|blog|learn|announcement)/,""),"/",172800),e}),z=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(l.a)(this,t),"undefined"!=typeof window&&(this.opts=Object(r.a)({platform:"global"},e),this.tasks=[],this.initialized=!1,this.esLogger=null)}return Object(f.a)(t,[{key:"init",value:function(){var t=this;this.esLogger=new H.a({debugger:!1,reportUrl:d.c,noBackgroundTasks:!0,keepAliveInBackground:!0,reportInterval:-1,reportDelay:2e3,getGuid:function(){return($()||"").slice(0,8)},getUid:function(){return window.GA_UID||0}},{p:this.opts.platform}),this.esLogger.init(),this.initialized=!0,this.tasks=I.map((function(e){return e(t.send.bind(t),t.opts,t.esLogger.log.bind(t.esLogger))})),this.tasks.forEach((function(t){return t.start()}))}},{key:"send",value:function(){var t=this,data=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(this.initialized){var e=[].concat(data).reduce((function(e,n){if(Array.isArray(n.parms)){var l=Object(c.a)(n.parms),path=l[0],main=l[1],f=l.slice(2);return[].concat(Object(o.a)(e),[Object(r.a)(Object(r.a)({},n),{},{parms:[path,"".concat(t.opts.platform,"-").concat(main)].concat(Object(o.a)(f))})])}return e}),[]),n=this.opts,l=n.reportUrl,f=n.useBeacon;f&&navigator.sendBeacon?navigator.sendBeacon(l,JSON.stringify({items:e})):k(l,{method:"post",body:JSON.stringify({items:e})}).catch(console.error)}}}]),t}()},52:function(t,e,n){t.exports=function(){"use strict";function t(t){for(var i=1;i