(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[85],{2312:function(t,e,r){"use strict";r.d(e,{$P:function(){return z},$X:function(){return tc},$w:function(){return th},Ao:function(){return to},BB:function(){return p},BT:function(){return V},BZ:function(){return v},Bk:function(){return te},DO:function(){return W},FR:function(){return w},Fz:function(){return q},HW:function(){return C},IR:function(){return tf},Jg:function(){return h},K:function(){return j},Lp:function(){return k},MO:function(){return S},P0:function(){return U},Q3:function(){return O},Qm:function(){return m},Rg:function(){return R},SM:function(){return N},T9:function(){return ti},TF:function(){return b},TQ:function(){return tr},U8:function(){return tt},Ws:function(){return M},Y4:function(){return _},Y8:function(){return d},ZA:function(){return E},aH:function(){return A},eg:function(){return $},hM:function(){return P},hl:function(){return K},j5:function(){return Q},jU:function(){return tl},k0:function(){return Y},lb:function(){return f},n$:function(){return tp},oj:function(){return G},pe:function(){return I},r8:function(){return y},sT:function(){return T},v1:function(){return L},zM:function(){return x},zU:function(){return B}});var n,o,i,s,a,u=r(4155),c="",l={};"undefined"!=typeof window&&(a=window.location.hostname,c=window.location.protocol,l=window.__BYBIT_GLOBAL_CONFIG__||{});var f=/^[^.]+\.[^.]+\.[^.]+$/.test(a)||/^[^.]+\.[^.]+\.[^.]+\.(hk|uae|us|uk|jp|fr|de|au|ca|br|in|ru)$/.test(a),h=f&&/^[^.]*testnet[^.]*\./.test(a),p=f&&!h,d=!h&&!p,y=d,v="https:"===c,b=c,g=l.enableAutoman&&l.automan||{},_=g.AUTOMAN_RUNTIME_ENV,m=g.AUTOMAN_API2_HOST,w=g.AUTOMAN_WS2_HOST,O=g.AUTOMAN_TMS_HOST,S=g.AUTOMAN_TMS_PATH,E=g.AUTOMAN_TMS_FULL_PATH,T=g.AUTOMAN_SERVICE_DOMAINS,x=g.AUTOMAN_APM_ENABLED,k=g.AUTOMAN_APM_URL,j=g.AUTOMAN_SENTRY_ENABLED,I=g.AUTOMAN_SENTRY_DSN,A=g.AUTOMAN_LOGGER_ENABLED,P=g.AUTOMAN_LOGGER_URL,C=g.AUTOMAN_METRIC_URL,R=g.AUTOMAN_METRIC_ENABLED,N=g.AUTOMAN_SENSORS_URL,M=g.AUTOMAN_SENSORS_ENABLED,D="local";h?D="testnet":p?D="prod":d&&(D="test");var L=_||D,q=u.env.BYBIT_TMS_HOST||O||(d?"https://tms.ffe390afd658c19dcbf707e0597b846d.de":""),B=u.env.BYBIT_I18N_SOURCE_URL||S||(d?"/download/{{projectId}}/{{ns}}/{{lng}}/":"/translations/{{projectId}}/{{lng}}/{{ns}}.json"),U=E||"".concat(q).concat(B),H="";h?H="bybitglobal.com":p?H="bycbe.com, byapis.com":d&&(H="bybit-cn.com");var $=u.env.BYBIT_SERVICE_DOMAINS||T||H,z=u.env.BYBIT_APM_URL||k||p&&"https://apm.ffbbbdc6d3c353211fe2ba39c9f744cd.com"||h&&"https://apm-testnet.ffbbbdc6d3c353211fe2ba39c9f744cd.com"||d&&"http://10.110.185.208:30859"||"http://10.120.140.129:30859",F="true"===u.env.BYBIT_APM_DISABLED,Y=u.env.BYBIT_APM_DISABLED||!F,G=u.env.BYBIT_SENTRY_DSN||I,Z="true"===u.env.BYBIT_SENTRY_DISABLED,W=j||!Z,V=u.env.BYBIT_LOGGER_URL||P||(p?"https://api.ffbbbdc6d3c353211fe2ba39c9f744cd.com/p/front":"https://api.ffbbbdc6d3c353211fe2ba39c9f744cd.com/p/front-testnet"),J="true"===u.env.BYBIT_LOGGER_DISABLED,K=A||!J,Q=u.env.BYBIT_METRIC_URL||C||"/v2/public/metrics",X="true"===u.env.BYBIT_METRIC_DISABLED,tt=R||!X,te=p?"https://sc-datasink.ffe390afd658c19dcbf707e0597b846d.de/sa?project=production":"https://sc-datasink.ffe390afd658c19dcbf707e0597b846d.de/sa?project=default",tr=u.env.BYBIT_SENSORS_URL||N||te,tn="true"===u.env.BYBIT_SENSORS_DISABLED,to=M||!tn,ti=a,ts=["cloud","announcements","sandbox","blog","newblog","learn"];if(a&&ts.some(function(t){return a.includes(t)})){var ta=RegExp("(?:(?:".concat(ts.join("|"),")-testnet|testnet-(?:").concat(ts.join("|"),"))"),"g"),tu=RegExp("^(?:".concat(ts.join("|"),")(?=.)"),"g");ti=a.replace(ta,"testnet").replace(tu,"www")}var tc=(null===(n=a)||void 0===n?void 0:n.includes("bybit.eu"))?"EU":(null===(o=a)||void 0===o?void 0:o.includes("bybit.kz"))?"KAZ":(null===(i=a)||void 0===i?void 0:i.includes("bybit-tr.com"))?"TUR":/^[^.]+\.[^.]+\.[^.]+\.hk$/.test(a)||/^[^.]+\.[^.]+\.[^.]+\.[^.]+\.hk$/.test(a)||(null===(s=a)||void 0===s?void 0:s.includes("byhkbit.com"))?"HKG":/^[^.]+\.[^.]+\.ae$/.test(a)||/^[^.]+\.[^.]+\.[^.]+\.ae$/.test(a)?"ARE":/^[^.]+\.[^.]+\.nl$/.test(a)||/^[^.]+\.[^.]+\.[^.]+\.nl$/.test(a)?"NLD":"BYBIT",tl="undefined"!=typeof window,tf=function(){return!!tl&&/bybit_app/.test(navigator.userAgent.toLowerCase())},th=function(){return!!tl&&/bybit_app_tr/.test(navigator.userAgent.toLowerCase())},tp=function(){return!!tl&&/bybit_app_eu/.test(navigator.userAgent.toLowerCase())}},6288:function(t,e,r){"use strict";r.d(e,{Su:function(){return o},fS:function(){return i}}),r(482);var n=r(4741),o=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8,r=Number(t);((0,n.i2)(r)||!(0,n.xV)(r))&&(r=0);var o=Number(e);(0,n.i2)(o)&&(o=8);var i="";if((0,n.U)(r)){if(o>0){i="".concat(r,".");for(var s=0;s<o;s+=1)i="".concat(i,"0")}else i="".concat(r)}else{((i=String(r)).indexOf("e-")>=0||i.indexOf("E-")>=0)&&(i=r.toFixed(o+1));var a=(i=i.split("."))[0];if(0===o)return"".concat(a);var u=i[1];if(u.length<o){i="".concat(a,".").concat(u);for(var c=0;c<o-u.length;c+=1)i="".concat(i,"0")}else i="".concat(a,".").concat(u.substr(0,o))}return i},i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=o(t,e),n="(\\d)(?=(\\d{3})+\\.)";return -1===r.indexOf(".")&&(n="(\\d)(?=(\\d{3})+$)"),r.replace(RegExp(n,"g"),"$1,")}},4741:function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}r.d(e,{xV:function(){return x},mf:function(){return j},U:function(){return k},i2:function(){return T},o8:function(){return m}});var o,i=Object.prototype,s=(void 0===r.g?"undefined":n(r.g))=="object"&&r.g&&r.g.Object===Object&&r.g,a=("undefined"==typeof self?"undefined":n(self))=="object"&&self&&self.Object===Object&&self,u=(s||a||Function("return this")()).isFinite,c=0/0,l=1/0,f=Symbol?Symbol.toStringTag:void 0,h=i.toString,p=(i.propertyIsEnumerable,i.hasOwnProperty),d=/^\s+|\s+$/g,y=/^[-+]0x[0-9a-f]+$/i,v=/^0b[01]+$/i,b=/^0o[0-7]+$/i,g=parseInt,_=i.toString,m=function(t){return void 0===t},w=function(t){return!!t&&"object"==n(t)},O=function(t){var e=n(t);return!!t&&("object"==e||"function"==e)},S=function(t){if("number"==typeof t)return t;if("symbol"==n(e=t)||w(e)&&"[object Symbol]"==_.call(e))return c;if(O(t)){var e,r="function"==typeof t.valueOf?t.valueOf():t;t=O(r)?r+"":r}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(d,"");var o=v.test(t);return o||b.test(t)?g(t.slice(2),o?2:8):y.test(t)?c:+t},E=function(t){var e,r=(e=t)?(e=S(e))===l||e===-l?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0,n=r%1;return r==r?n?r-n:r:0},T=function(t){return("number"==typeof t||w(t)&&"[object Number]"==_.call(t))&&t!=+t},x=function(t){return"number"==typeof t&&u(t)},k=function(t){return"number"==typeof t&&t==E(t)},j=function(t){var e=O(t)?_.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e};w(o=function(){return arguments}())&&(null==o||(f&&f in Object(o)?function(t){var e=p.call(t,f),r=t[f];try{t[f]=void 0;var n=!0}catch(t){}var o=h.call(t);return n&&(e?t[f]=r:delete t[f]),o}(o):_(o)))},952:function(t,e,r){"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function o(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(t,e)}}function i(t){return function(t){if(Array.isArray(t))return n(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||o(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,s,a=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(t,e)||o(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}r.d(e,{E0:function(){return tb}});var a=r(2312),u=r(4155),c=u.env.BYBIT_COOKIE_DOMAIN,l=u.env.BYBIT_API2_HOST,f=u.env.BYBIT_WS2_HOST,h="https:"===a.TF,p=!0,d="public-test-1",y="bybit",v="com",b="";p=!1;var g=a.T9?a.T9.split("."):[];if(3===g.length){var _=s(g,3);d=_[0],y=_[1],v=_[2]}if(4===g.length){if(a.lb){var m=s(g,4);d=m[0],y=m[1],v=m[2],b=m[3],v="".concat(v,".").concat(b)}else{var w=s(g,4);d=w[1],y=w[2],v=w[3]}}if(5===g.length){var O=s(g,5);d=O[1],y=O[2],v=O[3],b=O[4],v="".concat(v,".").concat(b)}var S=p&&("dev-3"===d||"test-3"===d),E=/^(www|m)$/,T="testnet"===d||"m-testnet"===d,x=/^(www|m|testnet|m-testnet)$/.test(d),k="".concat(y,".").concat(v),j="api2.".concat(E.test(d)?"":"".concat(d,".")),I="ws2.".concat(E.test(d)?"":"".concat(d,".")),A="chat.".concat(E.test(d)?"":"".concat(d,".")),P="affiliates.";T&&(j="api2-testnet.",A="chat-testnet.",I="ws2-testnet.",P="affiliates-testnet."),x||(P="affiliates.".concat(d,".")),"https://".concat(P).concat(y,".").concat(v);var C=j,R=I;c||E.test(d),"".concat(a.TF,"//").concat(A).concat(y,".").concat(v,"/chat/by-chat-widget.js");var N=S?"https:":a.TF,M=S?"wss:":h?"wss:":"ws:",D=l||a.Qm||"".concat(a.TF,"//").concat(C).concat(y,".").concat(v),L=f||a.FR||"".concat(M,"//").concat(R).concat(y,".").concat(v);"".concat(a.TF,"//infra-gateway.").concat(d,".").concat(y,".").concat(v),"".concat(M,"//www.").concat(d,".").concat(y,".").concat(v),E.test(d),u.env.BYBIT_TMS_HOST,x||u.env.BYBIT_EXPORT_URL;var q={set:function(t,e){return"undefined"!=typeof window&&window.localStorage?void 0===e?localStorage.removeItem(t):localStorage.setItem(t,e):null},setObject:function(t,e){return this.set(t,JSON.stringify(e))},get:function(t){if("undefined"!=typeof window&&window.localStorage)try{return localStorage.getItem(t)}catch(t){return null}return""},getObject:function(t){try{return JSON.parse(this.get(t))}catch(t){return{}}},remove:function(t){"undefined"!=typeof window&&window.localStorage&&localStorage.removeItem(t)}};function B(t){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function U(t){var e=function(t,e){if("object"!==B(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==B(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===B(e)?e:String(e)}function H(t,e,r){return(e=U(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function z(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?$(Object(r),!0).forEach(function(e){H(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function F(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,U(n.key),n)}}var Y=null;try{Y="AbortController"in window}catch(t){Y=null}var G="json",Z={},W=function(t){var e=String(t).toLowerCase();return({json:!0,text:!0,formData:!0,blob:!0,arrayBuffer:!0})[e]?e:G},V=function(t){return t>=200&&t<300},J=function(){var t,e;function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,r),this.defaultOpts=z(z({},Z),t),this.timeout=e.timeout||3e4,this.validateStatus=e.validateStatus||V,this.defaultRespType=e.defaultRespType||G,this.interceptors={response:[],request:[],errorHandler:[],finally:[]}}return t=[{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=t;if(e.body){var o=e.body;Object.keys(o).forEach(function(t){var e="".concat(t,"=").concat(o[t]);n=n.indexOf("?")>-1?"".concat(n,"&").concat(e):"".concat(n,"?").concat(e)}),delete e.body}return this.fetch(n,z(z({},e),{},{method:"get"}),r)}},{key:"post",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return this.fetch(t,z(z({},e),{},{method:"post"}),r)}},{key:"delete",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return this.fetch(t,z(z({},e),{},{method:"delete"}),r)}},{key:"put",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return this.fetch(t,z(z({},e),{},{method:"put"}),r)}},{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,r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,i=o||this.defaultRespType,s=z(z(z({url:t},this.defaultOpts),n),{},{headers:z(z({},this.defaultOpts.headers),n.headers)}),a=this.interceptors.request.reduce(function(e,r){return r(e,t)},s),u=Y?new AbortController:{};a.signal=u.signal;var c=new Promise(function(t,n){e=setTimeout(function(){n({ret_code:9000001,ret_msg:"Request timeout, please re-try!"}),Y&&u.abort()},r.timeout)});return Promise.race([fetch(t,a),c]).then(function(t){return clearTimeout(e),t}).then(function(t){return r.validateStatus(t.status)?t.ok?new Promise(function(e){t[W(i)]().then(function(r){e({headers:t.headers,data:r})})}):{headers:{},data:{}}:Promise.reject({status:t.status,statusText:t.statusText})}).then(function(e){var n=e.data,o=e.headers;return r.interceptors.response.reduce(function(t,e){return t.then(e)},Promise.resolve({headers:o,data:n,config:a,url:t}))}).catch(function(n){return clearTimeout(e),r.interceptors.errorHandler.forEach(function(e){return e(n,a,t)}),Promise.reject(n)}).finally(function(){r.interceptors.finally.forEach(function(e){return e(a,t)})})})}],F(r.prototype,t),e&&F(r,e),Object.defineProperty(r,"prototype",{writable:!1}),r}(),K={set:function(t,e){return"undefined"!=typeof window&&window.sessionStorage?void 0===e?sessionStorage.removeItem(t):sessionStorage.setItem(t,e):null},setObject:function(t,e){return this.set(t,JSON.stringify(e))},get:function(t){if("undefined"!=typeof window&&window.sessionStorage)try{return sessionStorage.getItem(t)}catch(t){return null}return""},getObject:function(t){try{return JSON.parse(this.get(t))}catch(t){return{}}},remove:function(t){window.sessionStorage&&sessionStorage.removeItem(t)}},Q={domain:"",weight:0};function X(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Object.keys(t).reduce(function(e,r){return z(z({},e),{},H({},r,t[r].reduce(function(t,e){return{factor:t.factor-.03,weight:t.weight+e*t.factor}},{factor:.1,weight:0}).weight))},{}),r=Object.keys(e).reduce(function(t,r){return!t.domain||t.weight>e[r]?{domain:r,weight:e[r]}:t},{});if("undefined"!=typeof window&&window&&window.$_router_info&&(console.log("rttMap = ",t),console.log("weightMap = ",e),console.log("bestDomainConfig = ",r.domain)),!Q.domain)return Q=r,r;if(Q.domain&&Q.domain!==r.domain){if(Q.weight-r.weight>5)return Q=r,r;var n=e[Q.domain];return n-r.weight>25||n-Q.weight>30?(Q=r,r):Q}return Q.weight>r.weight&&(Q=r),Q}var tt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("undefined"==typeof window||!("fetch"in window))return console.error("fetch function doesn't detected in you environment"),null;var r=new J(t,e),n=r.fetch.bind(r);return n.get=r.get.bind(r),n.post=r.post.bind(r),n.put=r.put.bind(r),n.delete=r.delete.bind(r),n.interceptors=r.interceptors,n}(),te=function(t,e){var r=performance.now();return tt.get("".concat(t,"/t1")).then(function(){return{domain:e,span:performance.now()-r}}).catch(function(){return{domain:e,span:15e3}})},tr="by_route_record",tn=K.getObject(tr)||{},to=function(t){return["".concat(N,"//").concat(a.Jg?C.replace("-","-1-"):C.replace(".","-1.")).concat(t.trim()),"".concat(N,"//").concat(a.Jg?C.replace("-","-2-"):C.replace(".","-2.")).concat(t.trim())]},ti=function(t){return["".concat(M,"//").concat(a.Jg?R.replace("-","-1-"):R.replace(".","-1.")).concat(t.trim()),"".concat(M,"//").concat(a.Jg?R.replace("-","-2-"):R.replace(".","-2.")).concat(t.trim())]},ts=[{domain:k,api2:D,ws2:L},{domain:"".concat(k,"@1"),api2:to(k)[0],ws2:ti(k)[0]},{domain:"".concat(k,"@2"),api2:to(k)[1],ws2:ti(k)[1]},{domain:"auto"}],ta=function(t){return"".concat(M,"//").concat(R).concat(t.trim())};[ta(k)].concat(i(a.eg.split(",").filter(Boolean).map(function(t){return ta(t)})));var tu=D,tc=L,tl=function(t){var e=ts.findIndex(function(e){return e.domain===t}),r=e>-1,n=ts[0];return{idx:r?e:0,item:r?ts[e]:n}},tf=[],th="",tp=function(t){if(!th||th!==t){th=t;var e=tl(t).item;tu=e.api2,tc=e.ws2,tf.forEach(function(t){return t(e)})}},td=!1,ty="route_chosen_v2",tv=q.get(ty);"auto"===tv?(tp(0===Object.keys(tn).length?k:X(tn).domain),setInterval(function(){td||document&&document.hidden||(td=!0,Promise.all(ts.filter(function(t){return"auto"!==t.domain}).map(function(t){return te(t.api2,t.domain)})).then(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.every(function(t){return -1===t.span})?"":(t.forEach(function(t){var e=t.domain,r=t.span,n=tn[e];n?tn[e]=[].concat(r,n).slice(0,3):tn[e]=[r].concat(i([,,].fill(100)))}),K.setObject(tr,tn),X(tn).domain)}).then(tp).finally(function(){td=!1}))},3e4)):tv&&!tv.includes(k)?(q.remove(ty),tp(null)):tp(tv),Object.defineProperties({API2_HOST:D,WS2_HOST:L},{API2_HOST:{get:function(){return tu}},WS2_HOST:{get:function(){return tc}}});var tb=function(){return{API2_HOST:tu,WS2_HOST:tc}};tv?tl(tv):ts[3]},8136:function(t,e,r){"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function o(t,e){if(t){if("string"==typeof t)return n(t,e);var r=({}).toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}function i(t){return function(t){if(Array.isArray(t))return n(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||o(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach(function(e){!function(t,e,r){var n;(n=function(t,e){if("object"!=s(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=s(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==s(n)?n:n+"")in t)?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function c(){c=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function h(e,r,n,i){var s,a,u=Object.create((r&&r.prototype instanceof g?r:g).prototype);return o(u,"_invoke",{value:(s=new I(i||[]),a=d,function(r,o){if(a===y)throw Error("Generator is already running");if(a===v){if("throw"===r)throw o;return{value:t,done:!0}}for(s.method=r,s.arg=o;;){var i=s.delegate;if(i){var u=function e(r,n){var o=n.method,i=r.iterator[o];if(i===t)return n.delegate=null,"throw"===o&&r.iterator.return&&(n.method="return",n.arg=t,e(r,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+o+"' method")),b;var s=p(i,r.iterator,n.arg);if("throw"===s.type)return n.method="throw",n.arg=s.arg,n.delegate=null,b;var a=s.arg;return a?a.done?(n[r.resultName]=a.value,n.next=r.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,b):a:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,b)}(i,s);if(u){if(u===b)continue;return u}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(a===d)throw a=v,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);a=y;var c=p(e,n,s);if("normal"===c.type){if(a=s.done?v:"suspendedYield",c.arg===b)continue;return{value:c.arg,done:s.done}}"throw"===c.type&&(a=v,s.method="throw",s.arg=c.arg)}})}),u}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="executing",v="completed",b={};function g(){}function _(){}function m(){}var w={};f(w,a,function(){return this});var O=Object.getPrototypeOf,S=O&&O(O(A([])));S&&S!==r&&n.call(S,a)&&(w=S);var E=m.prototype=g.prototype=Object.create(w);function T(t){["next","throw","return"].forEach(function(e){f(t,e,function(t){return this._invoke(e,t)})})}function x(t,e){var r;o(this,"_invoke",{value:function(o,i){function a(){return new e(function(r,a){!function r(o,i,a,u){var c=p(t[o],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==s(f)&&n.call(f,"__await")?e.resolve(f.__await).then(function(t){r("next",t,a,u)},function(t){r("throw",t,a,u)}):e.resolve(f).then(function(t){l.value=t,a(l)},function(t){return r("throw",t,a,u)})}u(c.arg)}(o,i,r,a)})}return r=r?r.then(a,a):a()}})}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function A(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw TypeError(s(e)+" is not iterable")}return _.prototype=m,o(E,"constructor",{value:m,configurable:!0}),o(m,"constructor",{value:_,configurable:!0}),_.displayName=f(m,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,f(t,l,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},T(x.prototype),f(x.prototype,u,function(){return this}),e.AsyncIterator=x,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var s=new x(h(t,r,n,o),i);return e.isGeneratorFunction(r)?s:s.next().then(function(t){return t.done?t.value:s.next()})},T(E),f(E,l,"Generator"),f(E,a,function(){return this}),f(E,"toString",function(){return"[object Generator]"}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=A,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var s=this.tryEntries[i],a=s.completion;if("root"===s.tryLoc)return o("end");if(s.tryLoc<=this.prev){var u=n.call(s,"catchLoc"),c=n.call(s,"finallyLoc");if(u&&c){if(this.prev<s.catchLoc)return o(s.catchLoc,!0);if(this.prev<s.finallyLoc)return o(s.finallyLoc)}else if(u){if(this.prev<s.catchLoc)return o(s.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return o(s.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=t,s.arg=e,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:A(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function l(t,e,r,n,o,i,s){try{var a=t[i](s),u=a.value}catch(t){return void r(t)}a.done?e(u):Promise.resolve(u).then(n,o)}function f(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function s(t){l(i,n,o,s,a,"next",t)}function a(t){l(i,n,o,s,a,"throw",t)}s(void 0)})}}r.d(e,{Z:function(){return V}});var h,p,d,y=r(3010),v=r.n(y),b={},g=function t(e){b[e]&&(b[e].$timer=setTimeout(f(c().mark(function r(){return c().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(b[e]){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,b[e].$callback();case 4:if(b[e]){r.next=6;break}return r.abrupt("return");case 6:(0===b[e].$maxCount||b[e].attempts<=b[e].$maxCount)&&t(e);case 7:case"end":return r.stop()}},r)})),b[e].duration()))},_=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(b[t])return b[t];var r=e.maxCount||0,n="function"==typeof e.callback?e.callback:function(){};return delete e.maxCount,delete e.callback,b[t]=new(v())(e),b[t].$maxCount=r,b[t].$callback=n,g(t),b[t]},m=function(t){b[t]&&(clearTimeout(b[t].$timer),delete b[t])},w=r(952),O="SPOT_SYMBOLS_DATA_COMMON",S="SPOT_SYMBOLS_DATA",E={ALL:"/spot/api/basic/symbol_list_all",V2:"/spot/api/basic/symbol_list_v2",V3:"/spot/api/basic/symbol_list_v3"},T={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",it:"isTest",bb:"isBanBuy",bs:"isBanSell",idu:"iconDayUrl",ts:"tradeStatus",zft:"zeroFeeType",lpp:"limitOrderPriceLimitPercentage",mpp:"marketOrderPriceLimitPercentage",v:"volume"},x=r(4155),k="undefined"!=typeof window,j=function(){for(var t,e,r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];return k?null===(t=window.Monitor)||void 0===t?void 0:null===(e=t.counter)||void 0===e?void 0:e.call.apply(e,[t].concat(n)):null},I=function(t,e){if("object"!==s(t)||null===t)return t;var r=new Set(e);return function t(e){if("object"!==s(e)||null===e)return e;if(Array.isArray(e))return e.map(t);var n={};return Object.keys(e).forEach(function(o){r.has(o)||(n[o]=t(e[o]))}),n}(t)},A=function(t){if(!(null==t?void 0:t.length))return[];var e=Object.entries(T);return t.map(function(t){return u(u({},t),{},{quoteTokenSymbols:t.quoteTokenSymbols.map(function(t){return e.reduce(function(e,r){var n=function(t){if(Array.isArray(t))return t}(r)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,s,a=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}(r,2)||o(r,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.")}(),i=n[0],s=n[1];return i&&(e[s]=t[i]),e},{})})})})},P=function(t){return t.reduce(function(t,e){var r;if(null==e?void 0:null===(r=e.quoteTokenSymbols)||void 0===r?void 0:r.length){var n=e.quoteTokenSymbols.map(function(t){return u(u({},t),{},{tokenType:e.tokenType})});t.push.apply(t,i(n))}return t},[])},C=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;return t.reduce(function(t,r){return t[r[e]||r.symbolId]=r,t},{})},R=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"si";if(!Array.isArray(t)||!Array.isArray(e))return[];for(var o=C(e,n),i=0;i<t.length;i+=1){var s=t[i],a=o[s[n]];if(a)a.tfn=s.tfn,Object.assign(s,a);else{r&&r(s);break}}return t},N=function(){return x.env.BYBIT_API2_HOST||(0,w.E0)().API2_HOST},M=function(t){var e=500,r="Request failed. Please try again later.";try{if(null==t?void 0:t.response){var n,o=t.response,i=o.data||{};e=i.ext_code||(null==o?void 0:null===(n=o.request)||void 0===n?void 0:n.status)||(null==o?void 0:o.status)||e,r=i.ret_msg||i.error||r}}catch(t){}return{success:!1,code:e,message:r,result:null}},D=function(t){var e=(null==t?void 0:t.data)||t;return(!function(t){if(t&&(void 0===t.ret_code&&(t.ret_code=t.retCode),void 0===t.ret_msg))try{t.ret_msg=decodeURIComponent(t.retMsg)}catch(e){t.ret_msg=t.retMsg}}(e),"[object Object]"!==Object.prototype.toString.call(e))?M("Invalid response data"):(e.success=0===e.ret_code,e.code=e.ret_code,e.message=e.ret_msg||0===e.ret_code?e.ret_msg:"Access error, please try again later",e.result=Object.prototype.hasOwnProperty.call(e,"result")?e.result:null,e)},L=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{return JSON.parse(t)}catch(t){return e}};function q(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.ignoreNull;return void 0!==r&&r&&null==t?[]:Array.isArray(t)?t:[t]}function B(t){if("string"!=typeof t||-1===t.indexOf("."))return 0;var e=t.split(".");return e[1]?e[1].length:0}var U=function(t){var e=[],r=[],n=[],o={},i=[],s=[],a={},c=function(){return{symbols:n,symbolMap:C(n),quoteTags:o,totalCurrencys:e,quoteCurrencys:r,allFiatCurrency:i,fiatCurrency:s,qouteTokenInfo:a}};try{return q(t,{ignoreNull:!0}).forEach(function(t){t.quoteTokenSymbols=q(t.quoteTokenSymbols,{ignoreNull:!0}),t.quoteTags=q(t.quoteTags,{ignoreNull:!0}),a[t.tokenId]=I(t,["quoteTokenSymbols","quoteTags"]),"REAL_MONEY"!==t.tokenType||i.includes(t.tokenName)||i.push(t.tokenName),t.quoteTokenSymbols.forEach(function(o){o.tags=q(o.tags,{ignoreNull:!0}),o.baseTokenName=o.baseTokenName.toUpperCase(),o.quoteTokenName=o.quoteTokenName.toUpperCase(),e.find(function(e){return e.value===t.tokenName})||e.push({value:t.tokenName,iconType:t.zeroFeeType||0}),"REAL_MONEY"===t.tokenType||r.find(function(e){return e.value===t.tokenName})||r.push({value:t.tokenName,iconType:t.zeroFeeType||0}),"REAL_MONEY"===t.tokenType&&(s.find(function(e){return e.value===t.tokenName})||s.push({value:t.tokenName,iconType:o.zeroFeeType||0}),o.isFiat=!0),n.push(u(u({},o),{},{quantityPrecision:B(o.basePrecision),pricePrecision:B(o.minPricePrecision),amountPrecision:B(o.quotePrecision)}))}),t.quoteTags.forEach(function(e){t.quoteTokenSymbols.some(function(t){var r;return!(!t.tags.includes(e)||(null===(r=o[t.quoteTokenName])||void 0===r?void 0:r.includes(e)))&&(o[t.quoteTokenName]?o[t.quoteTokenName].push(e):o[t.quoteTokenName]=[e],!0)})})}),c()}catch(t){return c()}},H=function(t){return{all:t,symbols:P(t),symbolsMap:C(P(t)),handleSymbols:U}},$=new(r(6077)).c({credentials:"include",headers:{Accept:"application/json","Content-Type":"application/json",platform:"pc"},timeout:8e3});$.freezeCacheDeletion({"/symbol_list_all":"manual","/symbol_list_v2":"manual","/symbol_list_v3":"manual"}),$.addInstanceRequestInterceptors([function(t,e){return e.requestTime=Date.now(),{url:t,options:e}}]),$.addInstanceResponseInterceptors([(h=f(c().mark(function t(e,r,n){var o;return c().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,o=e.clone(),t.next=4,o.json();case 4:if(t.sent){t.next=7;break}return t.abrupt("return",Promise.reject(n.createResponseError("Non Response!",void 0)));case 7:return t.abrupt("return",e);case 10:return t.prev=10,t.t0=t.catch(0),t.abrupt("return",Promise.reject(t.t0));case 13:case"end":return t.stop()}},t,null,[[0,10]])})),function(t,e,r){return h.apply(this,arguments)})]);var z=Symbol.for("sharedSpotSymbolsData"),F=k?window.top||window:{};k&&!F[z]&&(F[z]={symbolsPromise:null,retryInProgress:!1,cacheSymbolsData:null,cacheSymbolsDataCdn:null,getSymbolsRetryTimes:0,BACKOFF_ID:"GET_SYMBOLS"});var Y=F[z]||{},G={RETRY_REQUEST_ERROR:11511501,RETRY_REQUEST_MAX_ERROR:11511502,USE_CACHE_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},Z={quoteTokenResult:[{tokenId:"USDT",tokenName:"USDT",tokenFullName:null,quoteTokenSymbols:[{symbolId:"BTCUSDT",symbolName:"BTCUSDT",baseTokenId:"BTC",baseTokenName:"BTC",quoteTokenId:"USDT",quoteTokenName:"USDT",basePrecision:"0.000001",quotePrecision:"0.00000001",minTradeQuantity:"0.000048",minTradeAmount:"1",minPricePrecision:"0.01",digitMerge:"100,10,1,0.1,0.01",showStatus:!0,label:null,allowPlan:!0,maxTradeQuantity:"71.73956243",maxTradeAmount:"4000000",noticeVisible:!1,symbolType:"CHAIN_TOKEN",ltUnderlying:"",ltDirection:"",tags:["BTC Ecosystem","PoW","Margin Trading"],tokenFullName:"Bitcoin",iconUrl:"https://s1.bycsi.com/app/assets/token/62942131f968981af06a885a79f864ba.svg",onlineTime:0,mark:[],quoteTokenLeverageRatio:"5",baseTokenLeverageRatio:"5",loanEnabled:!0,isBanBuy:!1,isBanSell:!1,iconDayUrl:"https://s1.bycsi.com/app/assets/token/d9c8c35b4223b50d9773d7d5294d019f.svg",tradeStatus:3,zeroFeeType:0,limitOrderPriceLimitPercentage:3,marketOrderPriceLimitPercentage:3,volume:"45176669677.585138660000000000"},{symbolId:"ETHUSDT",symbolName:"ETHUSDT",baseTokenId:"ETH",baseTokenName:"ETH",quoteTokenId:"USDT",quoteTokenName:"USDT",basePrecision:"0.00001",quotePrecision:"0.0000001",minTradeQuantity:"0.00062",minTradeAmount:"1",minPricePrecision:"0.01",digitMerge:"100,10,1,0.1,0.01",showStatus:!0,label:null,allowPlan:!0,maxTradeQuantity:"1229.2336343",maxTradeAmount:"4000000",noticeVisible:!1,symbolType:"CHAIN_TOKEN",ltUnderlying:"",ltDirection:"",tags:["ETH Ecosystem","Margin Trading"],tokenFullName:"Ethereum",iconUrl:"https://s1.bycsi.com/app/assets/token/35a48e2a91411dcdb00c7fdd443676a9.svg",onlineTime:0,mark:[],quoteTokenLeverageRatio:"5",baseTokenLeverageRatio:"5",loanEnabled:!0,isBanBuy:!1,isBanSell:!1,iconDayUrl:"https://s1.bycsi.com/app/assets/token/8f413d7ed51fa4bc3d206d6abf41f4dc.svg",tradeStatus:3,zeroFeeType:0,limitOrderPriceLimitPercentage:3,marketOrderPriceLimitPercentage:3,volume:"24752207274.164747600000000000"}],quoteTags:["0 Fees","Adventure Zone","SOL Ecosystem","ETH Ecosystem","BTC Ecosystem","AI","Modular-BCs","DePIN","LSD","DeFi","GameFi","Inscriptions","Meme","PoW","Stablecoin","Innovation Zone","ETP (Leveraged Tokens)","Margin Trading","Launchpool","Launchpad"],tokenType:"CHAIN_TOKEN",zeroFeeType:0}],version:""},W=(p=f(c().mark(function t(e){var r;return c().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return j("symbol_list_error",{c:G.FALLBACK_TO_V2,m:"fallback to v2"}),localStorage.removeItem(O),r={},t.prev=3,t.next=6,$.get("".concat(N()).concat(E.V2),e);case 6:r=D(r=t.sent),t.next=14;break;case 10:t.prev=10,t.t0=t.catch(3),j("symbol_list_error",{c:G.FALLBACK_TO_V2_REQUEST_ERROR,m:t.t0.message||"fallback to v2 request error"}),r=D(t.t0);case 14:return t.abrupt("return",Promise.resolve(r));case 15:case"end":return t.stop()}},t,null,[[3,10]])})),function(t){return p.apply(this,arguments)}),V=(d=f(c().mark(function t(){var e,r,n,o=arguments;return c().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e=o.length>0&&void 0!==o[0]?o[0]:localStorage.getItem("BYBIT_LANG_KEY")||"en",n=void 0===(r=(o.length>1&&void 0!==o[1]?o[1]:{}).useCache)||r,k){t.next=4;break}return t.abrupt("return",Promise.resolve(H([])));case 4:if(!Y.symbolsPromise){t.next=6;break}return t.abrupt("return",Y.symbolsPromise);case 6:return Y.symbolsPromise=new Promise(function(t){var r=function(){var o=f(c().mark(function o(s){var a,l,f,h,p,d,y,v,g,w,T,x,k,I,P,C,M,q,B,U,z,F;return c().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(o.prev=0,Y.cacheSymbolsData||(localStorage.removeItem("spotSymbolData"),Y.cacheSymbolsData=L(localStorage.getItem(S))),Y.cacheSymbolsDataCdn||(Y.cacheSymbolsDataCdn=L(localStorage.getItem(O))),!s){o.next=8;break}m(Y.BACKOFF_ID),(null===(a=Y.cacheSymbolsData)||void 0===a?void 0:a.quoteTokenResult)?(j("symbol_list_error",{c:G.USE_CACHE_CODE_DATA,m:"use cache data"}),t(H(Y.cacheSymbolsData.quoteTokenResult))):(j("symbol_list_error",{c:G.USE_HARD_CODE_DATA,m:"use hard code data"}),t(H(Z.quoteTokenResult))),o.next=62;break;case 8:return v="",g="",w={},(null===(l=Y.cacheSymbolsData)||void 0===l?void 0:null===(f=l.quoteTokenResult)||void 0===f?void 0:f.length)&&(null===(h=Y.cacheSymbolsData)||void 0===h?void 0:h.version)&&(g=Y.cacheSymbolsData.version),(null===(p=Y.cacheSymbolsDataCdn)||void 0===p?void 0:null===(d=p.quoteTokenSymbols)||void 0===d?void 0:d.length)&&(null===(y=Y.cacheSymbolsDataCdn)||void 0===y?void 0:y.lastModifiedTime)&&(v=Y.cacheSymbolsDataCdn.lastModifiedTime),x=u({},T={headers:{lang:e,"Accept-Language":e},useCache:n,rewriteCacheKey:function(t){return"".concat(t,"&").concat(e)}}),v&&(x=u(u({},x),{},{params:{last_modified_at:v}})),g&&(T=u(u({},T),{},{params:{version:g}})),o.prev=17,k=!1,I=function(){k=!0},o.next=22,Promise.all([$.get("".concat(N()).concat(E.ALL),x),$.get("".concat(N()).concat(E.V3),T)]);case 22:if(C=D((P=o.sent)[0]),M=D(P[1]),C.success&&((null===(q=Y.cacheSymbolsDataCdn)||void 0===q?void 0:q.quoteTokenSymbols)&&(C.result.quoteTokenSymbols=[].concat(i(Y.cacheSymbolsDataCdn.quoteTokenSymbols),i(C.result.quoteTokenSymbols))),localStorage.setItem(O,JSON.stringify(C.result))),!(C.success&&M.success)){o.next=37;break}B=0;case 28:if(!(B<M.result.quoteTokenResult.length)){o.next=36;break}if(R(M.result.quoteTokenResult[B].quoteTokenSymbols,C.result.quoteTokenSymbols,function(){I()}),!k){o.next=33;break}return o.abrupt("break",36);case 33:B+=1,o.next=28;break;case 36:k||(w=M);case 37:if(!(k||!C.success||!M.success)){o.next=42;break}return k?j("symbol_list_error",{c:G.MERGE_SYMBOLS_ERROR,m:"merge symbols error"}):C.success?M.success||j("symbol_list_error",{c:G.V3_REQUEST_CODE_ERROR,m:"v3 request error"}):j("symbol_list_error",{c:G.CDN_REQUEST_CODE_ERROR,m:"cdn request error"}),o.next=41,W(T);case 41:w=o.sent;case 42:o.next=50;break;case 44:return o.prev=44,o.t0=o.catch(17),j("symbol_list_error",{c:G.API_SPLIT_REQUEST_ERROR,m:o.t0.message||"all/v3 request error"}),o.next=49,W(T);case 49:w=o.sent;case 50:if(z=(U=w).success,F=U.result,!(z&&F)){o.next=58;break}F.quoteTokenResult?F.quoteTokenResult=A(F.quoteTokenResult):F.quoteTokenResult=Y.cacheSymbolsData.quoteTokenResult,m(Y.BACKOFF_ID),localStorage.setItem(S,JSON.stringify(F)),t(H(F.quoteTokenResult)),o.next=62;break;case 58:return r(!0),o.abrupt("return");case 61:b[Y.BACKOFF_ID]||Y.retryInProgress||(Y.retryInProgress=!0,_(Y.BACKOFF_ID,{min:2e3,max:4e3,maxCount:0,callback:function(){return Y.getSymbolsRetryTimes>=0?(Y.retryInProgress=!1,j("symbol_list_error",{c:G.RETRY_REQUEST_MAX_ERROR,m:"retry request max times ".concat(0)}),r(!0)):(j("symbol_list_error",{c:G.RETRY_REQUEST_ERROR,m:"retry request error, retry times ".concat(Y.getSymbolsRetryTimes)}),Y.getSymbolsRetryTimes+=1,r())}}));case 62:o.next=69;break;case 64:o.prev=64,o.t1=o.catch(0),j("symbol_list_error",{c:G.CODE_EXECUTION_ERROR,m:o.t1.message||"code execution error"}),Y.retryInProgress=!1,r(!0);case 69:case"end":return o.stop()}},o,null,[[0,64],[17,44]])}));return function(t){return o.apply(this,arguments)}}();r()}).finally(function(){Y.retryInProgress=!1,Y.symbolsPromise=null}),t.abrupt("return",Y.symbolsPromise);case 8:case"end":return t.stop()}},t)})),function(){return d.apply(this,arguments)})},6834:function(t,e,r){"use strict";/**
 * @license
 * @fe/monitor v0.0.18
 * Released under the MIT license.
*/function n(){return(n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function o(t,e){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}r.d(e,{Z:function(){return y}});var i,s=function(t){function e(){return t.apply(this,arguments)||this}(r=e).prototype=Object.create(t.prototype),r.prototype.constructor=r,o(r,t);var r,n=e.prototype;return n.once=function(t,e){var r=this.on(t,function(){e.apply(void 0,arguments),r()});return r},n.emit=function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var o=this.eventPool.get(t);void 0!==o&&o.forEach(function(t){return t.apply(void 0,r)})},e}(function(){function t(){this.eventPool=new Map}var e=t.prototype;return e.on=function(t,e){var r=this,n=this.eventPool.get(t);if(void 0!==n)n.add(e);else{var o=new Set;this.eventPool.set(t,o),o.add(e)}return function(){return r.off(t,e)}},e.off=function(t,e){var r=this.eventPool.get(t);void 0!==r&&(void 0!==e?r.has(e)&&(r.delete(e),0===r.size&&this.eventPool.delete(t)):this.eventPool.delete(t))},t}()),a="undefined"==typeof window,u=a?{}:window,c=u.GLOBAL_MONITOR_NOTICE||(u.GLOBAL_MONITOR_NOTICE=new s);(i||(i={})).MONITOR_READY="onMonitorReady";var l=u.LISTEN_MONITOR_READY||(u.LISTEN_MONITOR_READY=function(t){null!=u&&u.Monitor?t():c.once(i.MONITOR_READY,t)}),f=function(){},h=[],p=["log","logOnce","logBucket","upload","uploadOnce","bucketUpload","beaconUpload"],d=function(t,e){var r;return r={url:"https://monitor-frontend-collector.a.bybit-aws.com/api/15/batch/?sentry_key=0x",method:"POST",data:[{event_id:"077b1643609b4f07a249536b6bbe35ed",timestamp:Date.now()/1e3,platform:"javascript",environment:"mainnet",sdk:{name:"@fe/monitor",version:"0.0.18"},request:{ua:navigator.userAgent},type:"custom",user:{id:"",deviceId:"",sessionId:"",sensorsId:""},extra:n({},e,{url:location.href,t:t})}]},new Promise(function(t,e){var n=new XMLHttpRequest;n.open(r.method.toUpperCase(),r.url),n.setRequestHeader("Content-Type","text/plain;charset=UTF-8"),n.onreadystatechange=function(){n.readyState===XMLHttpRequest.DONE&&200===n.status&&t(n.responseText)},n.onabort=function(){n&&e(Error("Ajax Cancel"))},n.onerror=function(){e(Error("Network Error"))},n.ontimeout=function(){e(Error("Ajax Timeout"))},n.send(JSON.stringify(r.data))})},y=function(t){var e=this;return void 0===t&&(t={}),this.opts=t,this.isReady=!1,l(function(){e.isReady=!0,h.forEach(function(t){var e,r,n=t.apiName,o=t.args;null==(e=(r=window.Monitor)[n])||e.call.apply(e,[r].concat(o))}),h.length=0}),a||window.Monitor||d("MonitorNo",this.opts),new Proxy(this,{get:function(t,r){return a?function(){}:("init"!==r||window.Monitor||(d("ScriptNo",e.opts),console.error("监控 script 标签 必须放入业务代码顶部!")),"init"===r&&Object.keys(e.opts).length&&console.error("非主站,不允许调用 init 方法!"),void 0===window.Monitor?f:e.isReady||!p.includes(r)?function(){for(var t,o,i=arguments.length,s=Array(i),a=0;a<i;a++)s[a]=arguments[a];p.includes(r)&&(s[s.length-1]=n({},s[s.length-1],e.opts)),null==(t=(o=window.Monitor)[r])||t.call.apply(t,[o].concat(s))}:function(){for(var t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];o[o.length-1]=n({},o[o.length-1],{dt:(new Date).toISOString()},e.opts),h.push({apiName:r,args:o})})}})}},3010:function(t){function e(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}t.exports=e,e.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),r=Math.floor(e*this.jitter*t);t=(1&Math.floor(10*e))==0?t-r:t+r}return 0|Math.min(t,this.max)},e.prototype.reset=function(){this.attempts=0},e.prototype.setMin=function(t){this.ms=t},e.prototype.setMax=function(t){this.max=t},e.prototype.setJitter=function(t){this.jitter=t}},258:function(t,e){"use strict";e.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return(r+n)*3/4-n},e.toByteArray=function(t){var e,r,i=u(t),s=i[0],a=i[1],c=new o((s+a)*3/4-a),l=0,f=a>0?s-4:s;for(r=0;r<f;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],c[l++]=e>>16&255,c[l++]=e>>8&255,c[l++]=255&e;return 2===a&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,c[l++]=255&e),1===a&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,c[l++]=e>>8&255,c[l++]=255&e),c},e.fromByteArray=function(t){for(var e,n=t.length,o=n%3,i=[],s=0,a=n-o;s<a;s+=16383)i.push(function(t,e,n){for(var o,i=[],s=e;s<n;s+=3)i.push(r[(o=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]))>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return i.join("")}(t,s,s+16383>a?a:s+16383));return 1===o?i.push(r[(e=t[n-1])>>2]+r[e<<4&63]+"=="):2===o&&i.push(r[(e=(t[n-2]<<8)+t[n-1])>>10]+r[e>>4&63]+r[e<<2&63]+"="),i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=i.length;s<a;++s)r[s]=i[s],n[i.charCodeAt(s)]=s;function u(t){var e=t.length;if(e%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},8764:function(t,e,r){"use strict";/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */var n=r(258),o=r(645),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(t){if(t>2147483647)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,a.prototype),e}function a(t,e,r){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return l(t)}return u(t,e,r)}function u(t,e,r){if("string"==typeof t)return function(t,e){if(("string"!=typeof e||""===e)&&(e="utf8"),!a.isEncoding(e))throw TypeError("Unknown encoding: "+e);var r=0|p(t,e),n=s(r),o=n.write(t,e);return o!==r&&(n=n.slice(0,o)),n}(t,e);if(ArrayBuffer.isView(t))return f(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(I(t,ArrayBuffer)||t&&I(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(I(t,SharedArrayBuffer)||t&&I(t.buffer,SharedArrayBuffer)))return function(t,e,r){var n;if(e<0||t.byteLength<e)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),a.prototype),n}(t,e,r);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return a.from(n,e,r);var o=function(t){if(a.isBuffer(t)){var e,r=0|h(t.length),n=s(r);return 0===n.length||t.copy(n,0,0,r),n}return void 0!==t.length?"number"!=typeof t.length||(e=t.length)!=e?s(0):f(t):"Buffer"===t.type&&Array.isArray(t.data)?f(t.data):void 0}(t);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return a.from(t[Symbol.toPrimitive]("string"),e,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function c(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return c(t),s(t<0?0:0|h(t))}function f(t){for(var e=t.length<0?0:0|h(t.length),r=s(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}function h(t){if(t>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function p(t,e){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||I(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return T(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return k(t).length;default:if(o)return n?-1:T(t).length;e=(""+e).toLowerCase(),o=!0}}function d(t,e,r){var o,i,s=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i<r;++i)o+=A[t[i]];return o}(this,e,r);case"utf8":case"utf-8":return g(this,e,r);case"ascii":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(127&t[o]);return n}(this,e,r);case"latin1":case"binary":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}(this,e,r);case"base64":return o=e,i=r,0===o&&i===this.length?n.fromByteArray(this):n.fromByteArray(this.slice(o,i));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}(this,e,r);default:if(s)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),s=!0}}function y(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function v(t,e,r,n,o){var i;if(0===t.length)return -1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(i=r=+r)!=i&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return -1;r=t.length-1}else if(r<0){if(!o)return -1;r=0}if("string"==typeof e&&(e=a.from(e,n)),a.isBuffer(e))return 0===e.length?-1:b(t,e,r,n,o);if("number"==typeof e)return(e&=255,"function"==typeof Uint8Array.prototype.indexOf)?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):b(t,[e],r,n,o);throw TypeError("val must be string, number or Buffer")}function b(t,e,r,n,o){var i,s=1,a=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return -1;s=2,a/=2,u/=2,r/=2}function c(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(o){var l=-1;for(i=r;i<a;i++)if(c(t,i)===c(e,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*s}else -1!==l&&(i-=i-l),l=-1}else for(r+u>a&&(r=a-u),i=r;i>=0;i--){for(var f=!0,h=0;h<u;h++)if(c(t,i+h)!==c(e,h)){f=!1;break}if(f)return i}return -1}function g(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i,s,a,u,c=t[o],l=null,f=c>239?4:c>223?3:c>191?2:1;if(o+f<=r)switch(f){case 1:c<128&&(l=c);break;case 2:(192&(i=t[o+1]))==128&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=t[o+1],s=t[o+2],(192&i)==128&&(192&s)==128&&(u=(15&c)<<12|(63&i)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=t[o+1],s=t[o+2],a=t[o+3],(192&i)==128&&(192&s)==128&&(192&a)==128&&(u=(15&c)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=f}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=4096));return r}(n)}function _(t,e,r){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+e>r)throw RangeError("Trying to access beyond buffer length")}function m(t,e,r,n,o,i){if(!a.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw RangeError('"value" argument is out of bounds');if(r+n>t.length)throw RangeError("Index out of range")}function w(t,e,r,n,o,i){if(r+n>t.length||r<0)throw RangeError("Index out of range")}function O(t,e,r,n,i){return e=+e,r>>>=0,i||w(t,e,r,4,34028234663852886e22,-34028234663852886e22),o.write(t,e,r,n,23,4),r+4}function S(t,e,r,n,i){return e=+e,r>>>=0,i||w(t,e,r,8,17976931348623157e292,-17976931348623157e292),o.write(t,e,r,n,52,8),r+8}e.lW=a,e.h2=50,a.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(t,e,r){return u(t,e,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(t,e,r){return(c(t),t<=0)?s(t):void 0!==e?"string"==typeof r?s(t).fill(e,r):s(t).fill(e):s(t)},a.allocUnsafe=function(t){return l(t)},a.allocUnsafeSlow=function(t){return l(t)},a.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==a.prototype},a.compare=function(t,e){if(I(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),I(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(t)||!a.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,o=0,i=Math.min(r,n);o<i;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0},a.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(t,e){if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return a.alloc(0);if(void 0===e)for(r=0,e=0;r<t.length;++r)e+=t[r].length;var r,n=a.allocUnsafe(e),o=0;for(r=0;r<t.length;++r){var i=t[r];if(I(i,Uint8Array)&&(i=a.from(i)),!a.isBuffer(i))throw TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},a.byteLength=p,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)y(this,e,e+1);return this},a.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},a.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},a.prototype.toString=function(){var t=this.length;return 0===t?"":0==arguments.length?g(this,0,t):d.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(t){if(!a.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===a.compare(this,t)},a.prototype.inspect=function(){var t="",r=e.h2;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},i&&(a.prototype[i]=a.prototype.inspect),a.prototype.compare=function(t,e,r,n,o){if(I(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return -1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,o>>>=0,this===t)return 0;for(var i=o-n,s=r-e,u=Math.min(i,s),c=this.slice(n,o),l=t.slice(e,r),f=0;f<u;++f)if(c[f]!==l[f]){i=c[f],s=l[f];break}return i<s?-1:s<i?1:0},a.prototype.includes=function(t,e,r){return -1!==this.indexOf(t,e,r)},a.prototype.indexOf=function(t,e,r){return v(this,t,e,r,!0)},a.prototype.lastIndexOf=function(t,e,r){return v(this,t,e,r,!1)},a.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else if(isFinite(e))e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o,i,s,a,u,c,l,f,h,p,d,y,v=this.length-e;if((void 0===r||r>v)&&(r=v),t.length>0&&(r<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var b=!1;;)switch(n){case"hex":return function(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=e.length;n>i/2&&(n=i/2);for(var s=0;s<n;++s){var a=parseInt(e.substr(2*s,2),16);if(a!=a)break;t[r+s]=a}return s}(this,t,e,r);case"utf8":case"utf-8":return u=e,c=r,j(T(t,this.length-u),this,u,c);case"ascii":return l=e,f=r,j(x(t),this,l,f);case"latin1":case"binary":return o=this,i=t,s=e,a=r,j(x(i),o,s,a);case"base64":return h=e,p=r,j(k(t),this,h,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d=e,y=r,j(function(t,e){for(var r,n,o=[],i=0;i<t.length&&!((e-=2)<0);++i)n=(r=t.charCodeAt(i))>>8,o.push(r%256),o.push(n);return o}(t,this.length-d),this,d,y);default:if(b)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),b=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return Object.setPrototypeOf(n,a.prototype),n},a.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||_(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},a.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||_(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},a.prototype.readUInt8=function(t,e){return t>>>=0,e||_(t,1,this.length),this[t]},a.prototype.readUInt16LE=function(t,e){return t>>>=0,e||_(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUInt16BE=function(t,e){return t>>>=0,e||_(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUInt32LE=function(t,e){return t>>>=0,e||_(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},a.prototype.readUInt32BE=function(t,e){return t>>>=0,e||_(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},a.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||_(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*e)),n},a.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||_(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},a.prototype.readInt8=function(t,e){return(t>>>=0,e||_(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},a.prototype.readInt16LE=function(t,e){t>>>=0,e||_(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt16BE=function(t,e){t>>>=0,e||_(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt32LE=function(t,e){return t>>>=0,e||_(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},a.prototype.readInt32BE=function(t,e){return t>>>=0,e||_(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},a.prototype.readFloatLE=function(t,e){return t>>>=0,e||_(t,4,this.length),o.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return t>>>=0,e||_(t,4,this.length),o.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return t>>>=0,e||_(t,8,this.length),o.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return t>>>=0,e||_(t,8,this.length),o.read(this,t,!1,52,8)},a.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;m(this,t,e,r,o,0)}var i=1,s=0;for(this[e]=255&t;++s<r&&(i*=256);)this[e+s]=t/i&255;return e+r},a.prototype.writeUIntBE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;m(this,t,e,r,o,0)}var i=r-1,s=1;for(this[e+i]=255&t;--i>=0&&(s*=256);)this[e+i]=t/s&255;return e+r},a.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||m(this,t,e,1,255,0),this[e]=255&t,e+1},a.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||m(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||m(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||m(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},a.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||m(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var o=Math.pow(2,8*r-1);m(this,t,e,r,o-1,-o)}var i=0,s=1,a=0;for(this[e]=255&t;++i<r&&(s*=256);)t<0&&0===a&&0!==this[e+i-1]&&(a=1),this[e+i]=(t/s>>0)-a&255;return e+r},a.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var o=Math.pow(2,8*r-1);m(this,t,e,r,o-1,-o)}var i=r-1,s=1,a=0;for(this[e+i]=255&t;--i>=0&&(s*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/s>>0)-a&255;return e+r},a.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||m(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},a.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||m(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||m(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||m(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},a.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||m(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeFloatLE=function(t,e,r){return O(this,t,e,!0,r)},a.prototype.writeFloatBE=function(t,e,r){return O(this,t,e,!1,r)},a.prototype.writeDoubleLE=function(t,e,r){return S(this,t,e,!0,r)},a.prototype.writeDoubleBE=function(t,e,r){return S(this,t,e,!1,r)},a.prototype.copy=function(t,e,r,n){if(!a.isBuffer(t))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r||0===t.length||0===this.length)return 0;if(e<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var o=n-r;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,n);else if(this===t&&r<e&&e<n)for(var i=o-1;i>=0;--i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return o},a.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){var o,i=t.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(t=i)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw RangeError("Out of range index");if(r<=e)return this;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o<r;++o)this[o]=t;else{var s=a.isBuffer(t)?t:a.from(t,n),u=s.length;if(0===u)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<r-e;++o)this[o+e]=s[o%u]}return this};var E=/[^+/0-9A-Za-z-_]/g;function T(t,e){e=e||1/0;for(var r,n=t.length,o=null,i=[],s=0;s<n;++s){if((r=t.charCodeAt(s))>55295&&r<57344){if(!o){if(r>56319||s+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function x(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}function k(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(E,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function j(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length)&&!(o>=t.length);++o)e[o+r]=t[o];return o}function I(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var A=function(){for(var t="0123456789abcdef",e=Array(256),r=0;r<16;++r)for(var n=16*r,o=0;o<16;++o)e[n+o]=t[r]+t[o];return e}()},1083:function(t,e,r){"use strict";var n,o,i,s,a,u,c,l;r.d(e,{DI:function(){return o},iX:function(){return i},jH:function(){return s},lB:function(){return n}}),(a=n||(n={})).MARKET_CANDLE="mktc",a.MARK_CANDLE="mrkc",(u=o||(o={})).IndexQuote20_H="index_quote_20.H.",u.IndexQuote200_H="index_quote_200.H.",u.InstrumentInfo_H="instrument_info.H.",u.InstrumentInfo_M="instrument_info.M.",u.InstrumentInfoAll="instrument_info_v3.all",u.PublicNotice="public.notice",(c=i||(i={})).BUY="Buy",c.SELL="Sell",(l=s||(s={})).CONNECT="connect",l.CONNECTED="connected",l.RECONNECT="reconnect",l.CLOSE="close",l.WSOT="WSOT",l.WSFCT="WSFCT",l.CLOSE_BY_OTHER="close_by_other",l.OPEN_ERROR="open_error",l.HEART_ERROR="heart_error",l.HEART_BACK="heart_back"},5667:function(t,e,r){"use strict";r.d(e,{Z:function(){return t6}});var n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function o(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function i(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function a(t,e,r){if(r||2==arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}function u(t){return"function"==typeof t}function c(t){var e=t(function(t){Error.call(t),t.stack=Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var l=c(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n  "):"",this.name="UnsubscriptionError",this.errors=e}});function f(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var h=function(){var t;function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t,e,r,n,o,c=this._parentage;if(c){if(this._parentage=null,Array.isArray(c))try{for(var f=i(c),h=f.next();!h.done;h=f.next())h.value.remove(this)}catch(e){t={error:e}}finally{try{h&&!h.done&&(e=f.return)&&e.call(f)}finally{if(t)throw t.error}}else c.remove(this)}var p=this.initialTeardown;if(u(p))try{p()}catch(t){o=t instanceof l?t.errors:[t]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var v=i(d),b=v.next();!b.done;b=v.next()){var g=b.value;try{y(g)}catch(t){o=null!=o?o:[],t instanceof l?o=a(a([],s(o)),s(t.errors)):o.push(t)}}}catch(t){r={error:t}}finally{try{b&&!b.done&&(n=v.return)&&n.call(v)}finally{if(r)throw r.error}}}if(o)throw new l(o)}},e.prototype.add=function(t){var r;if(t&&t!==this){if(this.closed)y(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}}},e.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},e.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},e.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&f(e,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&f(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),p=h.EMPTY;function d(t){return t instanceof h||t&&"closed"in t&&u(t.remove)&&u(t.add)&&u(t.unsubscribe)}function y(t){u(t)?t():t.unsubscribe()}var v={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},b={setTimeout:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=b.delegate;return(null==o?void 0:o.setTimeout)?o.setTimeout.apply(o,a([t,e],s(r))):setTimeout.apply(void 0,a([t,e],s(r)))},clearTimeout:function(t){var e=b.delegate;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function g(){}var _=m("C",void 0,void 0);function m(t,e,r){return{kind:t,value:e,error:r}}var w=null;function O(t){if(v.useDeprecatedSynchronousErrorHandling){var e=!w;if(e&&(w={errorThrown:!1,error:null}),t(),e){var r=w,n=r.errorThrown,o=r.error;if(w=null,n)throw o}}else t()}var S=function(t){function e(e){var r=t.call(this)||this;return r.isStopped=!1,e?(r.destination=e,d(e)&&e.add(r)):r.destination=A,r}return o(e,t),e.create=function(t,e,r){return new k(t,e,r)},e.prototype.next=function(t){this.isStopped?I(m("N",t,void 0),this):this._next(t)},e.prototype.error=function(t){this.isStopped?I(m("E",void 0,t),this):(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped?I(_,this):(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(h),E=Function.prototype.bind;function T(t,e){return E.call(t,e)}var x=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(t){j(t)}},t.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){j(t)}else j(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){j(t)}},t}(),k=function(t){function e(e,r,n){var o,i,s=t.call(this)||this;return u(e)||!e?o={next:null!=e?e:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:s&&v.useDeprecatedNextContext?((i=Object.create(e)).unsubscribe=function(){return s.unsubscribe()},o={next:e.next&&T(e.next,i),error:e.error&&T(e.error,i),complete:e.complete&&T(e.complete,i)}):o=e,s.destination=new x(o),s}return o(e,t),e}(S);function j(t){v.useDeprecatedSynchronousErrorHandling?v.useDeprecatedSynchronousErrorHandling&&w&&(w.errorThrown=!0,w.error=t):b.setTimeout(function(){var e=v.onUnhandledError;if(e)e(t);else throw t})}function I(t,e){var r=v.onStoppedNotification;r&&b.setTimeout(function(){return r(t,e)})}var A={closed:!0,next:g,error:function(t){throw t},complete:g},P="function"==typeof Symbol&&Symbol.observable||"@@observable";function C(t){return t}var R=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n,o=this,i=(n=t)&&n instanceof S||n&&u(n.next)&&u(n.error)&&u(n.complete)&&d(n)?t:new k(t,e,r);return O(function(){var t=o.operator,e=o.source;i.add(t?t.call(i,e):e?o._subscribe(i):o._trySubscribe(i))}),i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=N(e))(function(e,n){var o=new k({next:function(e){try{t(e)}catch(t){n(t),o.unsubscribe()}},error:n,complete:e});r.subscribe(o)})},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[P]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0===t.length?C:1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)})(this)},t.prototype.toPromise=function(t){var e=this;return new(t=N(t))(function(t,r){var n;e.subscribe(function(t){return n=t},function(t){return r(t)},function(){return t(n)})})},t.create=function(e){return new t(e)},t}();function N(t){var e;return null!==(e=null!=t?t:v.Promise)&&void 0!==e?e:Promise}var M=c(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),D=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return o(e,t),e.prototype.lift=function(t){var e=new L(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new M},e.prototype.next=function(t){var e=this;O(function(){var r,n;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var o=i(e.currentObservers),s=o.next();!s.done;s=o.next())s.value.next(t)}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}})},e.prototype.error=function(t){var e=this;O(function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var r=e.observers;r.length;)r.shift().error(t)}})},e.prototype.complete=function(){var t=this;O(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var e=this,r=this.hasError,n=this.isStopped,o=this.observers;return r||n?p:(this.currentObservers=null,o.push(t),new h(function(){e.currentObservers=null,f(o,t)}))},e.prototype._checkFinalizedStatuses=function(t){var e=this.hasError,r=this.thrownError,n=this.isStopped;e?t.error(r):n&&t.complete()},e.prototype.asObservable=function(){var t=new R;return t.source=this,t},e.create=function(t,e){return new L(t,e)},e}(R),L=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return o(e,t),e.prototype.next=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,t)},e.prototype.error=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.call(e,t)},e.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},e.prototype._subscribe=function(t){var e,r;return null!==(r=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==r?r:p},e}(D),q=function(t){function e(e){var r=t.call(this)||this;return r._value=e,r}return o(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(e){var r=t.prototype._subscribe.call(this,e);return r.closed||e.next(this._value),r},e.prototype.getValue=function(){var t=this.hasError,e=this.thrownError,r=this._value;if(t)throw e;return this._throwIfClosed(),r},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(D);function B(t){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function U(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,function(t){var e=function(t,e){if("object"!==B(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==B(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===B(e)?e:String(e)}(n.key),n)}}function H(t,e){return(H=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function $(t){return($=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function z(t){return(z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function F(t){var e=function(t,e){if("object"!==z(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==z(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===z(e)?e:String(e)}function Y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function G(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,F(n.key),n)}}var Z=r(8767),W=r.n(Z),V=r(3010),J=r.n(V),K=r(7885);function Q(t){return(Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var X=Object.prototype,tt=(void 0===r.g?"undefined":Q(r.g))=="object"&&r.g&&r.g.Object===Object&&r.g,te=("undefined"==typeof self?"undefined":Q(self))=="object"&&self&&self.Object===Object&&self;(tt||te||Function("return this")()).isFinite;var tr=Symbol?Symbol.toStringTag:void 0,tn=X.toString,to=(X.propertyIsEnumerable,X.hasOwnProperty),ti=X.toString,ts=function(t){var e=Q(t);return!!t&&("object"==e||"function"==e)},ta=function(t){var e=ts(t)?ti.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e};!function(t){t&&"object"==Q(t)&&(null==t||(tr&&tr in Object(t)?function(t){var e=to.call(t,tr),r=t[tr];try{t[tr]=void 0;var n=!0}catch(t){}var o=tn.call(t);return n&&(e?t[tr]=r:delete t[tr]),o}(t):ti(t)))}(function(){return arguments}());var tu=["op"];W()(WebSocket.prototype);var tc=function(){var t,e;function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,r);var n=e.debug,o=e.closeCode,i=e.autoConnect,s=e.reconnectionAttempts,a=e.reconnectionDelay,u=e.reconnectionDelayMax,c=e.reconnectionReportThreshold,l=e.reconnectionReportInterval,f=e.reconnectionReportMax,h=e.randomizationFactor,p=e.timeout,d=e.reconnection,y=e.protocols;this.closeCode=void 0===o?[1e3]:Array.isArray(o)?o:[o],this.uri=t,this.protocols=y,this.debug=n||!1,this.autoConnect=void 0===i||i,this.reconnection=!1!==d,this.reconnectionReportThreshold=c||3,this.reconnectionReportInterval=l||3,this.reconnectionReportMax=f||22,this.reconnectionAttempts(s||1/0),this.reconnectionDelay(a||1e3),this.reconnectionDelayMax(u||5e3),this.randomizationFactor(h||.5),this.backoff=new(J())({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(p||1e4),this.engine=null,this.connected=!1,this.readyState="closed",this.reconnecting=!1,this.skipReconect=!1,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.heartError=!1,this.pingInterval=15e3,this.pingTimeout=3e3,this.ev=[],this.connectStart=new Date().getTime(),this.openStart=null,this.autoConnect&&this.open(),this.debug&&console.log("%c[socket]","color: #49c9c9;","创建 socket 实例")}return t=[{key:"changeUrl",value:function(t){this.uri=t}},{key:"getUrl",value:function(){var t=this.uri;return ta(t)?t():t}},{key:"open",value:function(){var t=this;if(this.openStart=new Date().getTime(),this.debug&&console.log("%c[socket]","color: #49c9c9;","open 开始状态:",this.readyState,"连接地址：",this.getUrl()),!~this.readyState.indexOf("open")){try{var e=navigator.userAgent.toLowerCase().match(/version\/([\d.]+).*safari/),r=e&&Number(e[1])>=15.1?"&c=0":"",n=/\?/.test(this.getUrl())?"".concat(this.getUrl(),"&timestamp=").concat(new Date().getTime()).concat(r):"".concat(this.getUrl(),"?timestamp=").concat(new Date().getTime()).concat(r);this.engine=new WebSocket(n,this.protocols)}catch(t){this.debug&&console.error("[socket]创建实例发生错误",t),this.emit("open_error",{code:4998,reason:t.message||t})}if(this.readyState="opening",this.skipReconect=!1,this.addEventListeners(),this._timeout){var o=this._timeout;this.debug&&console.log("%c[socket]","color: #49c9c9;","超时将在开始重连",o);var i=setTimeout(function(){t.engine&&t.engine.emit("open_timeout",{code:4997,reason:"open_timeout"}),t.emit("connect_timeout",o)},o);this.ev.push({destroy:function(){clearTimeout(i)}})}}}},{key:"send",value:function(t){this.connected&&this.engine.send(JSON.stringify(t))}},{key:"close",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1005;this.onClose({code:t,reason:"close_by_user"})}},{key:"onOpen",value:function(){if(this.debug&&console.log("%c[socket]","color: #49c9c9;","WS prototype onOpen 执行"),this.readyState="open",this.clearEV(),this.setPing(),this.connected=!0,this.reconnecting){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.emit("reconnect",t)}else this.emit("connect")}},{key:"onData",value:function(t){var e=t.ret_msg,r=t.topic,n=t.request,o=t.success,i=t.type,s=t.conn_id,a=t.ping,u=t.op,c=t.timestampE6,l=t.timestamp_e6;if(a){this.send({pong:a});return}if("ping"===u){t.op;var f=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,tu);this.send(function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Y(Object(r),!0).forEach(function(e){var n,o,i;n=t,o=e,i=r[e],(o=F(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Y(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({op:"pong"},f));return}if("pong"===e){clearTimeout(this.pingTimeoutTimer);var h=new Date().getTime();n.op;var p=n.args[0];p&&h-p<3e3&&this.heartError&&(this.emit("heart_back",{code:4995,reason:"heart_back"}),this.heartError=!1),this.setPing()}else if(r)this.emit(r,{type:i,data:t.data,timestampE6:l||c});else if(n){var d=n.op;o?this.emit("".concat(d,"_success"),s):this.emit("".concat(d,"_fail"),s)}else this.emit("data",t),this.emit("message",t)}},{key:"onClose",value:function(t){var e=t.code,r=t.reason;this.debug&&console.log("%c[socket]","color: #49c9c9;","WS prototype onClose 执行:",r),this.reconnecting=!1,this.connected=!1,clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer);var n=e;1006===n?n=4006:1005===n&&(n=4005),1001!==e&&this.engine.close(n),this.clearUp(),this.readyState="closed",this.emit("close",{code:e,reason:r}),this.closeCode.includes(e)?(this.skipReconect=!0,this.reconnecting=!1,this.readyState="closed_user",this.backoff.reset(),this.debug&&console.log("%c[socket]","color: #49c9c9;","用户主动关闭",r)):this.reconnection&&!this.skipReconect&&this.reconnect()}},{key:"onError",value:function(t){this.debug&&console.log("%c[socket]","color: #49c9c9;","onError 执行:",t),this.clearUp(),this.readyState="closed",this.emit("error",t),this.onClose(t)}},{key:"reconnect",value:function(){var t=this;if(this.debug&&console.log("%c[socket]","color: #49c9c9;","WS prototype reconnect 执行:"),!this.reconnecting&&!this.skipReconect){if(this.backoff.attempts>this._reconnectionAttempts)this.debug&&console.error("[socket]超过最大重连次数, 重连彻底失败"),clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.engine.close(),this.clearUp(),this.backoff.reset(),this.emit("reconnect_failed"),this.reconnecting=!1;else{var e=this.backoff.duration();this.debug&&console.log("%c[socket]","color: #49c9c9;","第几次重连：",this.backoff.attempts,"等待 %dms 开始发起重连：",e),this.reconnecting=!0;var r=setTimeout(function(){t.skipReconect||(t.emit("reconnect_attempt",t.backoff.attempts),t.emit("reconnecting",t.backoff.attempts),t.backoff.attempts>t.reconnectionReportThreshold&&t.backoff.attempts%t.reconnectionReportInterval==0&&t.backoff.attempts<t.reconnectionReportMax&&t.emit("reconnect_report",t.backoff.attempts),t.open())},e);this.ev.push({destroy:function(){clearTimeout(r)}})}}}},{key:"ping",value:function(){this.send({op:"ping",args:[new Date().getTime()]})}},{key:"onHeartbeat",value:function(t){var e=this;clearTimeout(this.pingTimeoutTimer),this.pingTimeoutTimer=setTimeout(function(){"closed"!==e.readyState&&(e.emit("heart_error",{code:4996,reason:"ping timeout"}),e.heartError=!0)},t)}},{key:"setPing",value:function(){var t=this;clearTimeout(this.pingIntervalTimer),this.pingIntervalTimer=setTimeout(function(){t.debug&&console.log("%c[socket]","color: #49c9c9;","WS send ping"),t.ping(),t.onHeartbeat(t.pingTimeout)},this.pingInterval)}},{key:"addEventListeners",value:function(){var t=this,e=this.engine,r=this;e&&(e.onopen=function(){t.onOpen()},e.onclose=function(e){var r=e.code,n=e.reason;t.onClose({code:r,reason:n})},e.onmessage=function(e){if(e.data instanceof Blob){var n=e.data,o="",i=new FileReader;i.readAsArrayBuffer(n),i.onload=function(){(o=JSON.parse(K.ZP.inflate(i.result,{to:"string"}))).timestampE6=o.ts,r.onData(o)}}else!function(){var r=JSON.parse(e.data);if(Array.isArray(r))for(var n=function(e,n){setTimeout(function(){t.onData(r[e])},0)},o=0,i=r.length;o<i;o+=1)n(o,i);else t.onData(r)}()},e.onerror=function(){t.onError({code:4999,reason:"onerror"})},e.once("open_timeout",function(e){t.onError(e)}))}},{key:"clearUp",value:function(){this.debug&&console.log("ws-->clearUp");var t=this.engine;t.onopen=function(){},t.onclose=function(){},t.onmessage=function(){},t.onerror=function(){},this.clearEV()}},{key:"clearEV",value:function(){for(var t=this.ev.length,e=0;e<t;e+=1)this.ev.shift().destroy()}},{key:"reconnectionAttempts",value:function(t){return arguments.length?(this._reconnectionAttempts=t,this):this._reconnectionAttempts}},{key:"reconnectionDelay",value:function(t){return arguments.length?(this._reconnectionDelay=t,this.backoff&&this.backoff.setMin(t),this):this._reconnectionDelay}},{key:"reconnectionDelayMax",value:function(t){return arguments.length?(this._reconnectionDelayMax=t,this.backoff&&this.backoff.setMax(t),this):this._reconnectionDelayMax}},{key:"randomizationFactor",value:function(t){return arguments.length?(this._randomizationFactor=t,this.backoff&&this.backoff.setJitter(t),this):this._randomizationFactor}},{key:"timeout",value:function(t){return arguments.length?(this._timeout=t,this):this._timeout}}],G(r.prototype,t),e&&G(r,e),Object.defineProperty(r,"prototype",{writable:!1}),r}();W()(tc.prototype);var tl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&H(t,e)}(i,t);var e,r,n,o=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,r=$(i);if(e){var n=$(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return function(t,e){if(e&&("object"===B(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function i(t,e){var r;return!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,i),(r=o.call(this,t,e)).channels={},r._toChannels={},r.socketId="",r.configListeners(),r}return r=[{key:"configListeners",value:function(){var t=this;this.on("connect",function(){var e=Object.keys(t._toChannels);e.length>0&&(t.subscribe(e),t._toChannels={})}),this.on("reconnect",function(){var e=Object.keys(t.channels);e.length>0&&t.subscribe(e)}),this.on("close",function(e){var r=e.code;e.reason,1e3===r&&(t.channels={},t._toChannels={})}),this.on("subscribe_success",function(e){t.socketId=e}),this.on("subscribe_fail",function(e){t.socketId=e})}},{key:"subscribe",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.send({op:"subscribe",args:t})}},{key:"unsubscribe",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.send({op:"unsubscribe",args:t})}},{key:"channel",value:function(t,e,r){if("closed_user"===this.readyState)return null;var n=this.channels[t];(!n||r)&&(this.channels[t]=e,this.on(t,e),this.connected?(n&&r&&this.unsubscribe([t]),this.subscribe([t])):this._toChannels[t]=e)}},{key:"leave",value:function(t){this.channels[t]&&(this.off(t,this.channels[t]),delete this.channels[t],this.connected?this.unsubscribe([t]):delete this._toChannels[t])}}],U(i.prototype,r),n&&U(i,n),Object.defineProperty(i,"prototype",{writable:!1}),i}(tc),tf=r(482),th=r(1083),tp=function(){return(tp=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},td=function(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t},ty=function(t,e,r,n){if(void 0===t&&(t=[]),r||!e)return t;var o=new tf.Z(e).mul(n);return Object.values(t.reduce(function(t,e){var r,i=new tf.Z(e.Id),s=i.mod(o),a=i;if(!s.equals(0)){var u=i.minus(s);a=e.side===th.iX.SELL?u.add(o):u}var c=a.toNumber();if(!t[c])return tp(tp({},t),((r={})[c]={Id:c,idGroup:[e.Id],price:a.div(n).toNumber(),size:e.size,total:e.total},r));var l=new tf.Z(t[c].size);return t[c].idGroup.push(e.Id),t[c].size=l.add(e.size).toNumber(),t[c].total=Math.max(e.total,t[c].total),t},{})).reverse()},tv=function(t,e){for(void 0===e&&(e=0);t&&0!==e&&t.length>0&&t[0].Id>e;)t.shift();return t},tb=function(t,e){for(void 0===e&&(e=0);t&&0!==e&&t.length>0&&t[t.length-1].Id<e;)t.pop();return t},tg=function(t,e){return e.Id-t.Id},t_=function(t,e){return td(td([],t),[tp(tp({},e),{total:(1e3*e.size+1e3*(t.length&&t[t.length-1].total||0))/1e3})])},tm=function(t,e,r){void 0===t&&(t={b:[],a:[]});var n=t.b,o=t.a;return[(void 0===n?[]:n).map(function(t){return tw(t,e,th.iX.BUY,r)}),(void 0===o?[]:o).map(function(t){return tw(t,e,th.iX.SELL,r)})]},tw=function(t,e,r,n){var o=t[0],i=t[1],s=new tf.Z(o);return{Id:s.mul(e).toNumber(),price:s.toNumber(),side:r,size:new tf.Z(i).toNumber(),symbol:n,total:0}},tO={loaded:!1,Sell:[],ask1Id:0,Buy:[],bid1Id:0,ask1Price:0,bid1Price:0,depthGroupedBuyList:[],depthGroupedSellList:[]},tS=function(t){return void 0===t&&(t={}),(null==t?void 0:t.priceScale)?"1e"+(null==t?void 0:t.priceScale):1e4},tE=function(t,e){void 0===t&&(t={b:[],a:[]});var r=t.a1,n=void 0===r?"0":r,o=t.b1,i=void 0===o?"0":o;tO.ask1Price=Number(n);var s=new tf.Z(n).mul(e).toNumber();tO.ask1Id=s,tO.bid1Price=Number(i);var a=new tf.Z(i).mul(e).toNumber();tO.bid1Id=a},tT=function(t,e,r,n){void 0===r&&(r=0),void 0===n&&(n=0);var o=tv(t.sort(tg),r),i=tb(e.sort(tg),n);return[o=o.reduce(t_,[]),i=i.reduceRight(t_,[]).reverse()]},tx=function(t){var e=t.depth,r=t.symbolMeta,n=!!(null==r?void 0:r.isDefault),o=tS(r);return n?(tO.depthGroupedBuyList=[],tO.depthGroupedSellList=[]):(tO.Buy.length>0&&(tO.depthGroupedBuyList=ty(tO.Buy,e,n,o)),tO.Sell.length>0&&(tO.depthGroupedSellList=ty(tO.Sell,e,n,o))),tO},tk=function(t,e,r,n){void 0===t&&(t={b:[],a:[]}),void 0===e&&(e={});var o,i=tS(e.symbolMeta),s=tm(t,i,r),a=s[0],u=s[1];return a=(o=tT(a,u))[0],tO={loaded:!0,Sell:u=o[1],ask1Id:0,ask1Price:0,Buy:a,bid1Id:0,bid1Price:0,depthGroupedBuyList:[],depthGroupedSellList:[]},tx(e),n&&tE(t,i),tO},tj=function(t,e,r){void 0===t&&(t={b:[],a:[]}),void 0===e&&(e={});var n,o=tS(e.symbolMeta);tE(t,o);var i=tm(t,o,r),s=i[0],a=i[1],u=tO.Buy,c=tO.Sell;return s.forEach(function(t){var e=u.findIndex(function(e){return t.Id===e.Id});-1===e?0!==t.size&&u.push(t):0===t.size?u.splice(e,1):u.splice(e,1,t)}),a.forEach(function(t){var e=c.findIndex(function(e){return t.Id===e.Id});-1===e?0!==t.size&&c.push(t):0===t.size?c.splice(e,1):c.splice(e,1,t)}),n=tT(tO.Buy,tO.Sell,tO.bid1Id,tO.ask1Id),tO.Buy=n[0],tO.Sell=n[1],tx(e),tO},tI="/realtime_w",tA={PLUS:"PlusTick",MINUS:"MinusTick",ZERO_PLUS:"ZeroPlusTick",ZERO_MINUS:"ZeroMinusTick"},tP={"+":tA.PLUS,"-":tA.MINUS,"0+":tA.ZERO_PLUS,"0-":tA.ZERO_MINUS},tC={s:"symbol",p:"lastPrice",b1:"bid1Price",a1:"ask1Price",p2:"prevPrice24h",p1:"prevPrice1h",pr:"price24hPcntE6",h:"highPrice24h",l:"lowPrice24h",td:"lastTickDirection",mp:"markPrice",xp:"indexPrice",o:"openInterest",to:"turnover24h",v:"volume24h",fr:"fundingRateE6",ft:"nextFundingTime",pf:"predictedFundingRateE6",nh:"fundingRateInterval",ts:"timestampE6",ds:"delistingStatus",rt:"timeToSettle",st:"settleTimeE9",fb:"fairBasisE8",br:"fairBasisRateE8",yr:"basisInYearE8",ep:"expectPrice",frgs:"fundingRateGraySymbol",ro:"reduceOnly"},tR={p:"lastPrice",b1:"bid1Price",a1:"ask1Price",p2:"prevPrice24h",p1:"prevPrice1h",pr:"price24hPcntE6",h:"highPrice24h",l:"lowPrice24h",mp:"markPrice",xp:"indexPrice",o:"openInterest",to:"turnover24h",v:"volume24h",fr:"fundingRateE6",pf:"predictedFundingRateE6",nh:"fundingRateInterval",rt:"timeToSettle",st:"settleTimeE9",fb:"fairBasisE8",br:"fairBasisRateE8",yr:"basisInYearE8",ep:"expectPrice"},tN={list:[],loaded:!1},tM=function(t,e){return t.map(function(t){var r=t[0],n=t[1],o=t[2],i=t[3],s=t[4],a=t[5],u=t[6];return{execId:a,execPrice:n,execQty:o,execTime:i,side:"b"===s?th.iX.BUY:th.iX.SELL,symbol:e,tickDirection:tP[r],tradeType:u}})},tD=function(t,e){var r=tM(t,e),n=tN.list.length,o=r.length;return(0===n||n>0&&Date.parse(r[o-1].execTime)>=Date.parse(tN.list[0].execTime))&&(tN.list=r.reverse().concat(tN.list)),tN.list.length>100&&(tN.list=tN.list.slice(0,100)),tN.loaded=!0,tN},tL={},tq=function(t){var e={symbol:""};return Object.entries(t).forEach(function(t){var r,n=t[0],o=t[1];tC[n]?(e[tC[n]]=tR[n]?"number"==typeof(r=o)?r:"string"==typeof r?+r:NaN:o,"td"===n&&(e.lastTickDirection=o?tP[o]:void 0)):e[n]=o}),e},tB=function(t,e){return tL[t]=tq(e),tL[t]},tU=function(t,e){return Object.assign(tL[t],tq(e)),tL[t]},tH=function(){return(tH=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},t$=function(t,e,r,n,o){void 0===o&&(o=!1);var i=e.index,s=e.order,a=e.trade,u=e.s,c={};return i?c.instrument=tB(t,tH(tH({},i),{ts:n,s:u})):c.instrument=tL[t],(s?c.orderBook=tk(s,r,u,o):c.orderBook=tO,a&&a.length>0)?c.recentTrade=tN={list:tM(a,u),loaded:!0}:c.recentTrade=tN,c},tz=function(t,e,r,n){var o=e.index,i=e.order,s=e.trade,a=e.s,u={};return o&&(u.instrument=tU(t,tH(tH({},o),{ts:n,s:a}))),i&&(u.orderBook=tj(i,r,a)),s&&s.length>0&&(u.recentTrade=tD(s,a)),u},tF=function(t,e,r){var n=e.type,o=e.data,i=e.ts,s=e.timestampE6,a=i||s;return"snapshot"===n||"reset"===n?t$(t,o,r,a,"reset"===n):tz(t,o,r,a)},tY=function(){return(tY=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},tG=[],tZ=function(t){var e=[];return t.forEach(function(t){e.push(tq(t))}),tG=e},tW=function(){return(tW=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},tV=function(t){var e=t.data,r=t.type;return"snapshot"===r||"reset"===r?t.data=tZ(e):t.data=(e.forEach(function(t){var e=tq(t),r=tG.findIndex(function(t){return t.symbol===e.symbol});if(r>-1){var n=tG[r];tG[r]=tY(tY({},n),e)}else tG.push(e)}),tG),t},tJ=function(t,e){var r=e.type,n=e.data,o=e.ts,i=e.timestampE6,s=tW(tW({},n),{ts:o||i});return"snapshot"===r||"reset"===r?tB(t,s):tU(t,s)},tK=function(){return(tK=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},tQ=function(t){var e={close:0,confirm:!1,cross_seq:0,end:0,high:0,low:0,open:0,period:"1",start:0,timestamp:0,turnover:0,volume:0};return Object.entries(t).map(function(t){var r=t[0],n=t[1];"string"!=typeof n||"period"===r||isNaN(+n)?e[r]=n:e[r]=+n}),e},tX=function(t,e){var r=[],n=e.data;return Array.isArray(n)&&(r=n.map(function(t){return tQ(t)})),e.data=r,tK(tK({},e),{topic:t})},t0=function(){return(t0=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},t1=function(t){var e={close:0,confirm:0,high:0,low:0,open:0,start:0,volume:0};return Object.entries(t).map(function(t){var r=t[0],n=t[1];"string"!=typeof n||isNaN(+n)?e[r]=n:e[r]=+n}),e},t2=function(t,e){var r=[],n=e.data;return Array.isArray(n)&&(r=n.map(function(t){return t1(t)})),e.data=r,t0(t0({},e),{topic:t})},t4=function(t){void 0===t&&(t="default");var e="";switch(t){case"primary":case"success":e="#19be6b";break;case"info":e="#909399";break;case"warning":e="#ff9900";break;case"danger":e="#f03f14";break;case"default":e="#35495E";break;default:e=t}return e},t3=function t(e,r,n,o){if(void 0===r&&(r={}),void 0===n&&(n="success"),void 0===o&&(o=!0),"object"===B(e)){console.dir(e);return}o?(console.groupCollapsed("%c "+e+" ","background:"+t4(n)+"; padding: 2px; border-radius: 4px;color: #fff;"),t(r),console.groupEnd()):console.log("%c "+e+" ","color: "+t4(n)+";")},t5=function(t){if(document.cookie.length>0){var e=document.cookie.indexOf(t+"=");if(-1!=e){e=e+t.length+1;var r=document.cookie.indexOf(";",e);return -1==r&&(r=document.cookie.length),decodeURIComponent(document.cookie.substring(e,r))}}return""},t6=function(t){var e=this,r=t.host,n=t.autoConnect,o=t.useOriginalData,i=t.showLog,s=void 0!==i&&i;if(this.allSymbolQuoteSubject=new q({}),this.instrumentSubject=new q({}),this.marketCandleSubject=new q({}),this.markCandleAllSubject=new q({}),this.indexQuoteSubject=new q({}),this.orderBookSubject=new q({}),this.recentTradeSubject=new q({}),this.publicNoticeSubject=new q({}),this.websocketEventSubject=new q({}),this.connect=function(){e.wsInstance=new tl(e.wsUrl,{autoConnect:!0}),e.wsEventCb()},this.changeUrl=function(t){e.wsUrl=""+t+tI,e.wsInstance.changeUrl(e.wsUrl)},this.wsEventCb=function(){e.wsInstance.on(th.jH.CONNECT,function(){var t=new Date().getTime()-e.wsInstance.openStart;e.websocketEventSubject.next({type:th.jH.CONNECTED,data:{WSFCT:t,socketId:e.wsInstance.socketId}})}),e.wsInstance.on(th.jH.RECONNECT,function(){var t=new Date().getTime()-e.wsInstance.connectStart;e.websocketEventSubject.next({type:th.jH.RECONNECT,data:{WSOT:t,socketId:e.wsInstance.socketId}})}),e.wsInstance.on(th.jH.CLOSE,function(t){var r=t.code,n=t.reason,o=null;1e3===r&&(o={code:r,reason:n,socketId:e.wsInstance.socketId}),e.websocketEventSubject.next({type:th.jH.CLOSE,data:o})}),e.wsInstance.on(th.jH.OPEN_ERROR,function(t){var r=t.code,n=t.reason;e.websocketEventSubject.next({type:th.jH.OPEN_ERROR,data:{code:r,reason:n,socketId:e.wsInstance.socketId}})}),e.wsInstance.on(th.jH.HEART_ERROR,function(t){var r=t.code,n=t.reason;e.websocketEventSubject.next({type:th.jH.HEART_ERROR,data:{code:r,reason:n,socketId:e.wsInstance.socketId}})}),e.wsInstance.on(th.jH.HEART_BACK,function(t){var r=t.code,n=t.reason;e.websocketEventSubject.next({type:th.jH.HEART_BACK,data:{code:r,reason:n,socketId:e.wsInstance.socketId}})})},this.subscribeTopic=function(t){var r=t.topic,n=t.symbol;e.wsInstance.channel(n?""+r+n:r,function(t){e.parseWsData({topic:r,nameSpace:n||"",result:t})})},this.unsubscribeTopic=function(t){var r=t.topic,n=t.symbol;e.wsInstance.leave(n?""+r+n:r)},this.subscribeTopicDirect=function(t,r){e.wsInstance.channel(t,function(n){e.parseWsData({topic:r,nameSpace:t,result:n})})},this.unsubscribeTopicDirect=function(t,r){void 0===r&&(r=!0),r&&(t.startsWith("candle")?e.marketCandleSubject.next({}):e.markCandleAllSubject.next({})),e.wsInstance.leave(t)},this.printLogger=function(t,e,r,n){void 0===n&&(n=!1),t===th.lB.MARKET_CANDLE||t===th.lB.MARK_CANDLE?t3("【"+e+"】"+(n?"Origin Data":"Parsed Data")+" Received",r):t3("【"+t+e+"】"+(n?"Origin Data":"Parsed Data")+" Received",r)},this.changeDepth=function(t){if(e.symbolDepth=t,!e.useOriginalData){var r=tx(t);e.orderBookSubject.next(r)}},this.parseWsData=function(t){var r=t.topic,n=t.nameSpace,o=t.result;switch(e.showLog&&"origin"===e.showLog&&e.printLogger(r,n,JSON.parse(JSON.stringify(o)),!0),r){case th.DI.IndexQuote20_H:case th.DI.IndexQuote200_H:if(e.useOriginalData){var i=o.type,s=o.data,a=s.index,u=s.order,c=s.trade,l=s.s,f=o.ts,h=o.timestampE6,p={type:i,ts:f||h,data:{}};a&&(p.data={index:a,s:l},e.instrumentSubject.next(p)),u&&(p.data={order:u,s:l},e.orderBookSubject.next(p)),c&&(p.data={trade:c,s:l},e.recentTradeSubject.next(p))}else{var d=tF(n,o,e.symbolDepth),y=d.instrument,v=d.orderBook,b=d.recentTrade;y&&e.instrumentSubject.next(y),v&&e.orderBookSubject.next(v),b&&e.recentTradeSubject.next(b),e.showLog&&"parsed"===e.showLog&&e.printLogger(r,n,{instrument:y,orderBook:v,recentTrade:b})}break;case th.DI.InstrumentInfo_H:case th.DI.InstrumentInfo_M:var y=o;e.useOriginalData||(y=tJ(n,o)),e.showLog&&"parsed"===e.showLog&&e.printLogger(r,n,y),e.instrumentSubject.next(y);break;case th.DI.InstrumentInfoAll:var g=o;e.useOriginalData||(g=tV(o)),e.showLog&&"parsed"===e.showLog&&e.printLogger(r,n,g),e.allSymbolQuoteSubject.next(g);break;case th.DI.PublicNotice:e.publicNoticeSubject.next(o);break;case th.lB.MARKET_CANDLE:e.marketCandleSubject.next(tX(n,o));break;case th.lB.MARK_CANDLE:e.markCandleAllSubject.next(t2(n,o));break;default:console.warn("ByFbuPublicWs: topic type not support =>",r)}},this.autoConnect=void 0===n||n,this.useOriginalData=void 0!==o&&o,this.symbolDepth={},"undefined"!=typeof window||r)this.wsUrl=""+r+tI||""+window.origin+tI;else throw Error("need to host param");if("DedicatedWorkerGlobalScope"===globalThis.constructor.name)this.showLog=s;else{var a=t5("fbu.public.ws.log");this.showLog=a||s}this.autoConnect&&this.connect()}},4184:function(t,e){var r;/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var i=typeof r;if("string"===i||"number"===i)t.push(r);else if(Array.isArray(r)){if(r.length){var s=o.apply(null,r);s&&t.push(s)}}else if("object"===i){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){t.push(r.toString());continue}for(var a in r)n.call(r,a)&&r[a]&&t.push(a)}}}return t.join(" ")}t.exports?(o.default=o,t.exports=o):void 0!==(r=(function(){return o}).apply(e,[]))&&(t.exports=r)}()},8767:function(t){function e(t){if(t)return function(t){for(var r in e.prototype)t[r]=e.prototype[r];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o=0;o<n.length;o++)if((r=n[o])===e||r.fn===e){n.splice(o,1);break}return 0===n.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=Array(arguments.length-1),r=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,o=r.length;n<o;++n)r[n].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length}},7484:function(t){var e,r,n,o,i,s,a,u,c,l,f,h,p,d,y,v,b,g,_,m,w,O;t.exports=(e="millisecond",r="second",n="minute",o="hour",i="week",s="month",a="quarter",u="year",c="date",l="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},(y={})[d="en"]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||"th")+"]"}},v="$isDayjsObject",b=function(t){return t instanceof w||!(!t||!t[v])},g=function t(e,r,n){var o;if(!e)return d;if("string"==typeof e){var i=e.toLowerCase();y[i]&&(o=i),r&&(y[i]=r,o=i);var s=e.split("-");if(!o&&s.length>1)return t(s[0])}else{var a=e.name;y[a]=e,o=a}return!n&&o&&(d=o),o||!n&&d},_=function(t,e){if(b(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new w(r)},(m={s:p,z:function(t){var e=-t.utcOffset(),r=Math.abs(e);return(e<=0?"+":"-")+p(Math.floor(r/60),2,"0")+":"+p(r%60,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),o=e.clone().add(n,s),i=r-o<0,a=e.clone().add(n+(i?-1:1),s);return+(-(n+(r-o)/(i?o-a:a-o))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return({M:s,y:u,w:i,d:"day",D:c,h:o,m:n,s:r,ms:e,Q:a})[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}}).l=g,m.i=b,m.w=function(t,e){return _(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})},O=(w=function(){function t(t){this.$L=g(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[v]=!0}var p=t.prototype;return p.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(m.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(f);if(n){var o=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(e)}(t),this.init()},p.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},p.$utils=function(){return m},p.isValid=function(){return this.$d.toString()!==l},p.isSame=function(t,e){var r=_(t);return this.startOf(e)<=r&&r<=this.endOf(e)},p.isAfter=function(t,e){return _(t)<this.startOf(e)},p.isBefore=function(t,e){return this.endOf(e)<_(t)},p.$g=function(t,e,r){return m.u(t)?this[e]:this.set(r,t)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(t,e){var a=this,l=!!m.u(e)||e,f=m.p(t),h=function(t,e){var r=m.w(a.$u?Date.UTC(a.$y,e,t):new Date(a.$y,e,t),a);return l?r:r.endOf("day")},p=function(t,e){return m.w(a.toDate()[t].apply(a.toDate("s"),(l?[0,0,0,0]:[23,59,59,999]).slice(e)),a)},d=this.$W,y=this.$M,v=this.$D,b="set"+(this.$u?"UTC":"");switch(f){case u:return l?h(1,0):h(31,11);case s:return l?h(1,y):h(0,y+1);case i:var g=this.$locale().weekStart||0,_=(d<g?d+7:d)-g;return h(l?v-_:v+(6-_),y);case"day":case c:return p(b+"Hours",0);case o:return p(b+"Minutes",1);case n:return p(b+"Seconds",2);case r:return p(b+"Milliseconds",3);default:return this.clone()}},p.endOf=function(t){return this.startOf(t,!1)},p.$set=function(t,i){var a,l=m.p(t),f="set"+(this.$u?"UTC":""),h=((a={}).day=f+"Date",a[c]=f+"Date",a[s]=f+"Month",a[u]=f+"FullYear",a[o]=f+"Hours",a[n]=f+"Minutes",a[r]=f+"Seconds",a[e]=f+"Milliseconds",a)[l],p="day"===l?this.$D+(i-this.$W):i;if(l===s||l===u){var d=this.clone().set(c,1);d.$d[h](p),d.init(),this.$d=d.set(c,Math.min(this.$D,d.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},p.set=function(t,e){return this.clone().$set(t,e)},p.get=function(t){return this[m.p(t)]()},p.add=function(t,e){var a,c=this;t=Number(t);var l=m.p(e),f=function(e){var r=_(c);return m.w(r.date(r.date()+Math.round(e*t)),c)};if(l===s)return this.set(s,this.$M+t);if(l===u)return this.set(u,this.$y+t);if("day"===l)return f(1);if(l===i)return f(7);var h=((a={})[n]=6e4,a[o]=36e5,a[r]=1e3,a)[l]||1,p=this.$d.getTime()+t*h;return m.w(p,this)},p.subtract=function(t,e){return this.add(-1*t,e)},p.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||l;var n=t||"YYYY-MM-DDTHH:mm:ssZ",o=m.z(this),i=this.$H,s=this.$m,a=this.$M,u=r.weekdays,c=r.months,f=r.meridiem,p=function(t,r,o,i){return t&&(t[r]||t(e,n))||o[r].slice(0,i)},d=function(t){return m.s(i%12||12,t,"0")},y=f||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(h,function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return m.s(e.$y,4,"0");case"M":return a+1;case"MM":return m.s(a+1,2,"0");case"MMM":return p(r.monthsShort,a,c,3);case"MMMM":return p(c,a);case"D":return e.$D;case"DD":return m.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return p(r.weekdaysMin,e.$W,u,2);case"ddd":return p(r.weekdaysShort,e.$W,u,3);case"dddd":return u[e.$W];case"H":return String(i);case"HH":return m.s(i,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return y(i,s,!0);case"A":return y(i,s,!1);case"m":return String(s);case"mm":return m.s(s,2,"0");case"s":return String(e.$s);case"ss":return m.s(e.$s,2,"0");case"SSS":return m.s(e.$ms,3,"0");case"Z":return o}return null}(t)||o.replace(":","")})},p.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},p.diff=function(t,e,c){var l,f=this,h=m.p(e),p=_(t),d=(p.utcOffset()-this.utcOffset())*6e4,y=this-p,v=function(){return m.m(f,p)};switch(h){case u:l=v()/12;break;case s:l=v();break;case a:l=v()/3;break;case i:l=(y-d)/6048e5;break;case"day":l=(y-d)/864e5;break;case o:l=y/36e5;break;case n:l=y/6e4;break;case r:l=y/1e3;break;default:l=y}return c?l:m.a(l)},p.daysInMonth=function(){return this.endOf(s).$D},p.$locale=function(){return y[this.$L]},p.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=g(t,e,!0);return n&&(r.$L=n),r},p.clone=function(){return m.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},t}()).prototype,_.prototype=O,[["$ms",e],["$s",r],["$m",n],["$H",o],["$W","day"],["$M",s],["$y",u],["$D",c]].forEach(function(t){O[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),_.extend=function(t,e){return t.$i||(t(e,w,_),t.$i=!0),_},_.locale=g,_.isDayjs=b,_.unix=function(t){return _(1e3*t)},_.en=y[d],_.Ls=y,_.p={},_)},6607:function(t){t.exports=function(t,e,r){e.prototype.isBetween=function(t,e,n,o){var i=r(t),s=r(e),a="("===(o=o||"()")[0],u=")"===o[1];return(a?this.isAfter(i,n):!this.isBefore(i,n))&&(u?this.isBefore(s,n):!this.isAfter(s,n))||(a?this.isBefore(i,n):!this.isAfter(i,n))&&(u?this.isAfter(s,n):!this.isBefore(s,n))}}},178:function(t){var e,r,n;t.exports=(e="minute",r=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g,function(t,o,i){var s=o.prototype;i.utc=function(t){var e={date:t,utc:!0,args:arguments};return new o(e)},s.utc=function(t){var r=i(this.toDate(),{locale:this.$L,utc:!0});return t?r.add(this.utcOffset(),e):r},s.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var a=s.parse;s.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),a.call(this,t)};var u=s.init;s.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else u.call(this)};var c=s.utcOffset;s.utcOffset=function(t,o){var i=this.$utils().u;if(i(t))return this.$u?0:i(this.$offset)?c.call(this):this.$offset;if("string"==typeof t&&null===(t=function(t){void 0===t&&(t="");var e=t.match(r);if(!e)return null;var o=(""+e[0]).match(n)||["-",0,0],i=o[0],s=60*+o[1]+ +o[2];return 0===s?0:"+"===i?s:-s}(t)))return this;var s=16>=Math.abs(t)?60*t:t,a=this;if(o)return a.$offset=s,a.$u=0===t,a;if(0!==t){var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(a=this.local().add(s+u,e)).$offset=s,a.$x.$localOffset=u}else a=this.utc();return a};var l=s.format;s.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,e)},s.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var f=s.toDate;s.toDate=function(t){return"s"===t&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var h=s.diff;s.diff=function(t,e,r){if(t&&this.$u===t.$u)return h.call(this,t,e,r);var n=this.local(),o=i(t).local();return h.call(n,o,e,r)}})},284:function(t){var e=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw Error("Unable to resolve global `this`")};t.exports=function(){if(this)return this;if("object"==typeof globalThis&&globalThis)return globalThis;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(t){return e()}try{if(!__global__)return e();return __global__}finally{delete Object.prototype.__global__}}()},645:function(t,e){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */e.read=function(t,e,r,n,o){var i,s,a=8*o-n-1,u=(1<<a)-1,c=u>>1,l=-7,f=r?o-1:0,h=r?-1:1,p=t[e+f];for(f+=h,i=p&(1<<-l)-1,p>>=-l,l+=a;l>0;i=256*i+t[e+f],f+=h,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=256*s+t[e+f],f+=h,l-=8);if(0===i)i=1-c;else{if(i===u)return s?NaN:(p?-1:1)*(1/0);s+=Math.pow(2,n),i-=c}return(p?-1:1)*s*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var s,a,u,c=8*i-o-1,l=(1<<c)-1,f=l>>1,h=23===o?5960464477539062e-23:0,p=n?0:i-1,d=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(isNaN(e=Math.abs(e))||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+f>=1?e+=h/u:e+=h*Math.pow(2,1-f),e*u>=2&&(s++,u/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(e*u-1)*Math.pow(2,o),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;t[r+p]=255&a,p+=d,a/=256,o-=8);for(s=s<<o|a,c+=o;c>0;t[r+p]=255&s,p+=d,s/=256,c-=8);t[r+p-d]|=128*y}},9938:function(t,e,r){"use strict";var n=r(5696),o=r(7980);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(6495).Z,s=r(2648).Z,a=r(1598).Z,u=r(7273).Z,c=a(r(7294)),l=s(r(6505)),f=r(7675),h=r(5980),p=r(1059);r(2783);var d=s(r(1923)),y={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function v(t){return void 0!==t.default}function b(t){return"number"==typeof t||void 0===t?t:"string"==typeof t&&/^[0-9]+$/.test(t)?parseInt(t,10):NaN}function g(t,e,r,n,o,s,a){t&&t["data-loaded-src"]!==e&&(t["data-loaded-src"]=e,("decode"in t?t.decode():Promise.resolve()).catch(function(){}).then(function(){if(t.parentNode){if("blur"===r&&s(!0),null==n?void 0:n.current){var e=new Event("load");Object.defineProperty(e,"target",{writable:!1,value:t});var a=!1,u=!1;n.current(i({},e,{nativeEvent:e,currentTarget:t,target:t,isDefaultPrevented:function(){return a},isPropagationStopped:function(){return u},persist:function(){},preventDefault:function(){a=!0,e.preventDefault()},stopPropagation:function(){u=!0,e.stopPropagation()}}))}(null==o?void 0:o.current)&&o.current(t)}}))}var _=c.forwardRef(function(t,e){var r=t.imgAttributes,n=t.heightInt,o=t.widthInt,s=(t.qualityInt,t.className),a=t.imgStyle,l=t.blurStyle,f=t.isLazy,h=t.fill,p=t.placeholder,d=t.loading,y=t.srcString,v=(t.config,t.unoptimized),b=(t.loader,t.onLoadRef),_=t.onLoadingCompleteRef,m=t.setBlurComplete,w=t.setShowAltText,O=(t.onLoad,t.onError),S=u(t,["imgAttributes","heightInt","widthInt","qualityInt","className","imgStyle","blurStyle","isLazy","fill","placeholder","loading","srcString","config","unoptimized","loader","onLoadRef","onLoadingCompleteRef","setBlurComplete","setShowAltText","onLoad","onError"]);return d=f?"lazy":d,c.default.createElement(c.default.Fragment,null,c.default.createElement("img",Object.assign({},S,r,{width:o,height:n,decoding:"async","data-nimg":h?"fill":"1",className:s,loading:d,style:i({},a,l),ref:c.useCallback(function(t){e&&("function"==typeof e?e(t):"object"==typeof e&&(e.current=t)),t&&(O&&(t.src=t.src),t.complete&&g(t,y,p,b,_,m,v))},[y,p,b,_,m,O,v,e]),onLoad:function(t){g(t.currentTarget,y,p,b,_,m,v)},onError:function(t){w(!0),"blur"===p&&m(!0),O&&O(t)}})))}),m=c.forwardRef(function(t,e){var r,s,a,g=t.src,m=t.sizes,w=t.unoptimized,O=void 0!==w&&w,S=t.priority,E=void 0!==S&&S,T=t.loading,x=t.className,k=t.quality,j=t.width,I=t.height,A=t.fill,P=t.style,C=t.onLoad,R=t.onLoadingComplete,N=t.placeholder,M=void 0===N?"empty":N,D=t.blurDataURL,L=t.layout,q=t.objectFit,B=t.objectPosition,U=(t.lazyBoundary,t.lazyRoot,u(t,["src","sizes","unoptimized","priority","loading","className","quality","width","height","fill","style","onLoad","onLoadingComplete","placeholder","blurDataURL","layout","objectFit","objectPosition","lazyBoundary","lazyRoot"])),H=c.useContext(p.ImageConfigContext),$=c.useMemo(function(){var t=y||H||h.imageConfigDefault,e=[].concat(o(t.deviceSizes),o(t.imageSizes)).sort(function(t,e){return t-e}),r=t.deviceSizes.sort(function(t,e){return t-e});return i({},t,{allSizes:e,deviceSizes:r})},[H]),z=U,F=z.loader||d.default;delete z.loader;var Y="__next_img_default"in F;if(Y){if("custom"===$.loader)throw Error('Image with src "'.concat(g,'" is missing "loader" prop.')+"\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader")}else{var G=F;F=function(t){return t.config,G(u(t,["config"]))}}if(L){"fill"===L&&(A=!0);var Z={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[L];Z&&(P=i({},P,Z));var W={responsive:"100vw",fill:"100vw"}[L];W&&!m&&(m=W)}var V="",J=b(j),K=b(I);if("object"==typeof(r=g)&&(v(r)||void 0!==r.src)){var Q=v(g)?g.default:g;if(!Q.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ".concat(JSON.stringify(Q)));if(!Q.height||!Q.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ".concat(JSON.stringify(Q)));if(s=Q.blurWidth,a=Q.blurHeight,D=D||Q.blurDataURL,V=Q.src,!A){if(J||K){if(J&&!K){var X=J/Q.width;K=Math.round(Q.height*X)}else if(!J&&K){var tt=K/Q.height;J=Math.round(Q.width*tt)}}else J=Q.width,K=Q.height}}var te=!E&&("lazy"===T||void 0===T);((g="string"==typeof g?g:V).startsWith("data:")||g.startsWith("blob:"))&&(O=!0,te=!1),$.unoptimized&&(O=!0),Y&&g.endsWith(".svg")&&!$.dangerouslyAllowSVG&&(O=!0);var tr=n(c.useState(!1),2),tn=tr[0],to=tr[1],ti=n(c.useState(!1),2),ts=ti[0],ta=ti[1],tu=b(k),tc=Object.assign(A?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:q,objectPosition:B}:{},ts?{}:{color:"transparent"},P),tl="blur"===M&&D&&!tn?{backgroundSize:tc.objectFit||"cover",backgroundPosition:tc.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:'url("data:image/svg+xml;charset=utf-8,'.concat(f.getImageBlurSvg({widthInt:J,heightInt:K,blurWidth:s,blurHeight:a,blurDataURL:D}),'")')}:{},tf=function(t){var e=t.config,r=t.src,n=t.unoptimized,i=t.width,s=t.quality,a=t.sizes,u=t.loader;if(n)return{src:r,srcSet:void 0,sizes:void 0};var c=function(t,e,r){var n=t.deviceSizes,i=t.allSizes;if(r){for(var s,a=/(^|\s)(1?\d?\d)vw/g,u=[];s=a.exec(r);s)u.push(parseInt(s[2]));if(u.length){var c=.01*Math.min.apply(Math,u);return{widths:i.filter(function(t){return t>=n[0]*c}),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof e?{widths:n,kind:"w"}:{widths:o(new Set([e,2*e].map(function(t){return i.find(function(e){return e>=t})||i[i.length-1]}))),kind:"x"}}(e,i,a),l=c.widths,f=c.kind,h=l.length-1;return{sizes:a||"w"!==f?a:"100vw",srcSet:l.map(function(t,n){return"".concat(u({config:e,src:r,quality:s,width:t})," ").concat("w"===f?t:n+1).concat(f)}).join(", "),src:u({config:e,src:r,quality:s,width:l[h]})}}({config:$,src:g,unoptimized:O,width:J,quality:tu,sizes:m,loader:F}),th=g,tp={imageSrcSet:tf.srcSet,imageSizes:tf.sizes,crossOrigin:z.crossOrigin},td=c.useRef(C);c.useEffect(function(){td.current=C},[C]);var ty=c.useRef(R);c.useEffect(function(){ty.current=R},[R]);var tv=i({isLazy:te,imgAttributes:tf,heightInt:K,widthInt:J,qualityInt:tu,className:x,imgStyle:tc,blurStyle:tl,loading:T,config:$,fill:A,unoptimized:O,placeholder:M,loader:F,srcString:th,onLoadRef:td,onLoadingCompleteRef:ty,setBlurComplete:to,setShowAltText:ta},z);return c.default.createElement(c.default.Fragment,null,c.default.createElement(_,Object.assign({},tv,{ref:e})),E?c.default.createElement(l.default,null,c.default.createElement("link",Object.assign({key:"__nimg-"+tf.src+tf.srcSet+tf.sizes,rel:"preload",as:"image",href:tf.srcSet?void 0:tf.src},tp))):null)});e.default=m,("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},7285:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AmpStateContext=void 0;var n=(0,r(2648).Z)(r(7294)).default.createContext({});e.AmpStateContext=n},354:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isInAmpMode=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.ampFirst,r=t.hybrid,n=t.hasQuery;return void 0!==e&&e||void 0!==r&&r&&void 0!==n&&n}},2122:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.suspense=function(){var t=Error(n.NEXT_DYNAMIC_NO_SSR_CODE);throw t.digest=n.NEXT_DYNAMIC_NO_SSR_CODE,t},e.NoSSR=function(t){return t.children},(0,r(2648).Z)(r(7294));var n=r(3540)},2323:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var r=i.default,o={loading:function(t){return t.error,t.isLoading,t.pastDelay,null}};t instanceof Promise?o.loader=function(){return t}:"function"==typeof t?o.loader=t:"object"==typeof t&&(o=n({},o,t));var a=(o=n({},o,e)).loader;return o.loadableGenerated&&delete(o=n({},o,o.loadableGenerated)).loadableGenerated,"boolean"!=typeof o.ssr||o.ssr||(delete o.webpack,delete o.modules),r(n({},o,{loader:function(){return null!=a?a().then(s):Promise.resolve(s(function(){return null}))}}))};var n=r(6495).Z,o=r(2648).Z;o(r(7294));var i=o(r(2271));function s(t){return{default:(null==t?void 0:t.default)||t}}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},6505:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultHead=l,e.default=void 0;var n=r(6495).Z,o=r(2648).Z,i=(0,r(1598).Z)(r(7294)),s=o(r(148)),a=r(7285),u=r(523),c=r(354);function l(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=[i.default.createElement("meta",{charSet:"utf-8"})];return t||e.push(i.default.createElement("meta",{name:"viewport",content:"width=device-width"})),e}function f(t,e){return"string"==typeof e||"number"==typeof e?t:e.type===i.default.Fragment?t.concat(i.default.Children.toArray(e.props.children).reduce(function(t,e){return"string"==typeof e||"number"==typeof e?t:t.concat(e)},[])):t.concat(e)}r(2783);var h=["name","httpEquiv","charSet","itemProp"];function p(t,e){var r,o,s,a,u=e.inAmpMode;return t.reduce(f,[]).reverse().concat(l(u).reverse()).filter((r=new Set,o=new Set,s=new Set,a={},function(t){var e=!0,n=!1;if(t.key&&"number"!=typeof t.key&&t.key.indexOf("$")>0){n=!0;var i=t.key.slice(t.key.indexOf("$")+1);r.has(i)?e=!1:r.add(i)}switch(t.type){case"title":case"base":o.has(t.type)?e=!1:o.add(t.type);break;case"meta":for(var u=0,c=h.length;u<c;u++){var l=h[u];if(t.props.hasOwnProperty(l)){if("charSet"===l)s.has(l)?e=!1:s.add(l);else{var f=t.props[l],p=a[l]||new Set;("name"!==l||!n)&&p.has(f)?e=!1:(p.add(f),a[l]=p)}}}}return e})).reverse().map(function(t,e){var r=t.key||e;if(!u&&"link"===t.type&&t.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(function(e){return t.props.href.startsWith(e)})){var o=n({},t.props||{});return o["data-href"]=o.href,o.href=void 0,o["data-optimized-fonts"]=!0,i.default.cloneElement(t,o)}return i.default.cloneElement(t,{key:r})})}e.default=function(t){var e=t.children,r=i.useContext(a.AmpStateContext),n=i.useContext(u.HeadManagerContext);return i.default.createElement(s.default,{reduceComponentsToState:p,headManager:n,inAmpMode:c.isInAmpMode(r)},e)},("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},7675:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getImageBlurSvg=function(t){var e=t.widthInt,r=t.heightInt,n=t.blurWidth,o=t.blurHeight,i=t.blurDataURL,s=n||e,a=o||r,u=i.startsWith("data:image/jpeg")?"%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='1 1'/%3E%3C/feComponentTransfer%3E%":"";return s&&a?"%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 ".concat(s," ").concat(a,"'%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='").concat(n&&o?"1":"20","'/%3E").concat(u,"%3C/filter%3E%3Cimage preserveAspectRatio='none' filter='url(%23b)' x='0' y='0' height='100%25' width='100%25' href='").concat(i,"'/%3E%3C/svg%3E"):"%3Csvg xmlns='http%3A//www.w3.org/2000/svg'%3E%3Cimage style='filter:blur(20px)' x='0' y='0' height='100%25' width='100%25' href='".concat(i,"'/%3E%3C/svg%3E")}},1923:function(t,e){"use strict";function r(t){var e=t.config,r=t.src,n=t.width,o=t.quality;return"".concat(e.path,"?url=").concat(encodeURIComponent(r),"&w=").concat(n,"&q=").concat(o||75)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,r.__next_img_default=!0,e.default=r},5066:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LoadableContext=void 0;var n=(0,r(2648).Z)(r(7294)).default.createContext(null);e.LoadableContext=n},2271:function(t,e,r){"use strict";var n=r(3227),o=r(8361),i=r(7794);function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(932).Z,u=r(6495).Z,c=(0,r(2648).Z)(r(7294)),l=r(2122),f=r(5066),h=[],p=[],d=!1;function y(t){var e=t(),r={loading:!0,loaded:null,error:null};return r.promise=e.then(function(t){return r.loading=!1,r.loaded=t,t}).catch(function(t){throw r.loading=!1,r.error=t,t}),r}var v=function(){function t(e,r){n(this,t),this._loadFn=e,this._opts=r,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return o(t,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var t=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var e=this._res,r=this._opts;e.loading&&("number"==typeof r.delay&&(0===r.delay?this._state.pastDelay=!0:this._delay=setTimeout(function(){t._update({pastDelay:!0})},r.delay)),"number"==typeof r.timeout&&(this._timeout=setTimeout(function(){t._update({timedOut:!0})},r.timeout))),this._res.promise.then(function(){t._update({}),t._clearTimeouts()}).catch(function(e){t._update({}),t._clearTimeouts()}),this._update({})}},{key:"_update",value:function(t){this._state=u({},this._state,{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},t),this._callbacks.forEach(function(t){return t()})}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return this._state}},{key:"subscribe",value:function(t){var e=this;return this._callbacks.add(t),function(){e._callbacks.delete(t)}}}]),t}();function b(t){return function(t,e){var r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null,ssr:!0},e),n=null;function o(){if(!n){var e=new v(t,r);n={getCurrentValue:e.getCurrentValue.bind(e),subscribe:e.subscribe.bind(e),retry:e.retry.bind(e),promise:e.promise.bind(e)}}return n.promise()}if(r.lazy=c.default.lazy(a(i.mark(function t(){var e,o;return i.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r.ssr&&n)){t.next=7;break}return e=n.getCurrentValue(),t.next=4,e.loaded;case 4:if(!(o=t.sent)){t.next=7;break}return t.abrupt("return",o);case 7:return t.next=9,r.loader();case 9:return t.abrupt("return",t.sent);case 10:case"end":return t.stop()}},t)}))),!d){var u=r.webpack?r.webpack():r.modules;u&&p.push(function(t){var e,r=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(t,e)}}(t))){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}(u);try{for(r.s();!(e=r.n()).done;){var n=e.value;if(-1!==t.indexOf(n))return o()}}catch(t){r.e(t)}finally{r.f()}})}function h(t){o(),(e=c.default.useContext(f.LoadableContext))&&Array.isArray(r.modules)&&r.modules.forEach(function(t){e(t)});var e,n=r.loading,i=c.default.createElement(n,{isLoading:!0,pastDelay:!0,error:null}),s=r.ssr?c.default.Fragment:l.NoSSR,a=r.lazy;return c.default.createElement(c.default.Suspense,{fallback:i},c.default.createElement(s,null,c.default.createElement(a,Object.assign({},t))))}return h.preload=function(){return o()},h.displayName="LoadableComponent",h}(y,t)}function g(t,e){for(var r=[];t.length;){var n=t.pop();r.push(n(e))}return Promise.all(r).then(function(){if(t.length)return g(t,e)})}b.preloadAll=function(){return new Promise(function(t,e){g(h).then(t,e)})},b.preloadReady=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise(function(e){var r=function(){return d=!0,e()};g(p,t).then(r,r)})},window.__NEXT_PRELOADREADY=b.preloadReady,e.default=b},148:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e,r=t.headManager,a=t.reduceComponentsToState;function u(){if(r&&r.mountedInstances){var e=n.Children.toArray(Array.from(r.mountedInstances).filter(Boolean));r.updateHead(a(e,t))}}return o&&(null==r||null==(e=r.mountedInstances)||e.add(t.children),u()),i(function(){var e;return null==r||null==(e=r.mountedInstances)||e.add(t.children),function(){var e;null==r||null==(e=r.mountedInstances)||e.delete(t.children)}}),i(function(){return r&&(r._pendingUpdate=u),function(){r&&(r._pendingUpdate=u)}}),s(function(){return r&&r._pendingUpdate&&(r._pendingUpdate(),r._pendingUpdate=null),function(){r&&r._pendingUpdate&&(r._pendingUpdate(),r._pendingUpdate=null)}}),null};var n=(0,r(1598).Z)(r(7294)),o=!1,i=n.useLayoutEffect,s=o?function(){}:n.useEffect},2783:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.warnOnce=void 0,e.warnOnce=function(t){}},5796:function(){},5152:function(t,e,r){t.exports=r(2323)},5675:function(t,e,r){t.exports=r(9938)},4511:function(t,e,r){"use strict";r.d(e,{SV:function(){return s}});var n=r(7294);let o=(0,n.createContext)(null),i={didCatch:!1,error:null};class s extends n.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=i}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){let{error:t}=this.state;if(null!==t){for(var e,r,n=arguments.length,o=Array(n),s=0;s<n;s++)o[s]=arguments[s];null===(e=(r=this.props).onReset)||void 0===e||e.call(r,{args:o,reason:"imperative-api"}),this.setState(i)}}componentDidCatch(t,e){var r,n;null===(r=(n=this.props).onError)||void 0===r||r.call(n,t,e)}componentDidUpdate(t,e){let{didCatch:r}=this.state,{resetKeys:n}=this.props;if(r&&null!==e.error&&function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.length!==e.length||t.some((t,r)=>!Object.is(t,e[r]))}(t.resetKeys,n)){var o,s;null===(o=(s=this.props).onReset)||void 0===o||o.call(s,{next:n,prev:t.resetKeys,reason:"keys"}),this.setState(i)}}render(){let{children:t,fallbackRender:e,FallbackComponent:r,fallback:i}=this.props,{didCatch:s,error:a}=this.state,u=t;if(s){let t={error:a,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof e)u=e(t);else if(r)u=(0,n.createElement)(r,t);else if(null===i||(0,n.isValidElement)(i))u=i;else throw a}return(0,n.createElement)(o.Provider,{value:{didCatch:s,error:a,resetErrorBoundary:this.resetErrorBoundary}},u)}}},504:function(t,e,r){"use strict";r.d(e,{X:function(){return x}});/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};function o(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function i(t){return"function"==typeof t}var s=!1,a={Promise:void 0,set useDeprecatedSynchronousErrorHandling(value){value&&Error().stack,s=value},get useDeprecatedSynchronousErrorHandling(){return s}};function u(t){setTimeout(function(){throw t},0)}var c={closed:!0,next:function(t){},error:function(t){if(a.useDeprecatedSynchronousErrorHandling)throw t;u(t)},complete:function(){}},l=Array.isArray||function(t){return t&&"number"==typeof t.length},f=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n  "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),h=function(){var t;function e(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return e.prototype.unsubscribe=function(){if(!this.closed){var t,r=this._parentOrParents,n=this._unsubscribe,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r instanceof e)r.remove(this);else if(null!==r)for(var s=0;s<r.length;++s)r[s].remove(this);if(i(n))try{n.call(this)}catch(e){t=e instanceof f?p(e.errors):[e]}if(l(o))for(var s=-1,a=o.length;++s<a;){var u=o[s];if(null!==u&&"object"==typeof u)try{u.unsubscribe()}catch(e){t=t||[],e instanceof f?t=t.concat(p(e.errors)):t.push(e)}}if(t)throw new f(t)}},e.prototype.add=function(t){var r=t;if(!t)return e.EMPTY;switch(typeof t){case"function":r=new e(t);case"object":if(r===this||r.closed||"function"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if(!(r instanceof e)){var n=r;(r=new e)._subscriptions=[n]}break;default:throw Error("unrecognized teardown "+t+" added to Subscription.")}var o=r._parentOrParents;if(null===o)r._parentOrParents=this;else if(o instanceof e){if(o===this)return r;r._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return r;o.push(this)}var i=this._subscriptions;return null===i?this._subscriptions=[r]:i.push(r),r},e.prototype.remove=function(t){var e=this._subscriptions;if(e){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}},e.EMPTY=((t=new e).closed=!0,t),e}();function p(t){return t.reduce(function(t,e){return t.concat(e instanceof f?e.errors:e)},[])}var d="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),y=function(t){function e(r,n,o){var i=t.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=c;break;case 1:if(!r){i.destination=c;break}if("object"==typeof r){r instanceof e?(i.syncErrorThrowable=r.syncErrorThrowable,i.destination=r,r.add(i)):(i.syncErrorThrowable=!0,i.destination=new v(i,r));break}default:i.syncErrorThrowable=!0,i.destination=new v(i,r,n,o)}return i}return o(e,t),e.prototype[d]=function(){return this},e.create=function(t,r,n){var o=new e(t,r,n);return o.syncErrorThrowable=!1,o},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(h),v=function(t){function e(e,r,n,o){var s,a=t.call(this)||this;a._parentSubscriber=e;var u=a;return i(r)?s=r:r&&(s=r.next,n=r.error,o=r.complete,r!==c&&(i((u=Object.create(r)).unsubscribe)&&a.add(u.unsubscribe.bind(u)),u.unsubscribe=a.unsubscribe.bind(a))),a._context=u,a._next=s,a._error=n,a._complete=o,a}return o(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,r=a.useDeprecatedSynchronousErrorHandling;if(this._error)r&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)r?(e.syncErrorValue=t,e.syncErrorThrown=!0):u(t),this.unsubscribe();else{if(this.unsubscribe(),r)throw t;u(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var r=function(){return t._complete.call(t._context)};a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,r),this.unsubscribe()):(this.__tryOrUnsub(r),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),a.useDeprecatedSynchronousErrorHandling)throw t;u(t)}},e.prototype.__tryOrSetError=function(t,e,r){if(!a.useDeprecatedSynchronousErrorHandling)throw Error("bad call");try{e.call(this._context,r)}catch(e){if(a.useDeprecatedSynchronousErrorHandling)return t.syncErrorValue=e,t.syncErrorThrown=!0,!0;return u(e),!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(y),b="function"==typeof Symbol&&Symbol.observable||"@@observable";function g(t){return t}var _=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n=this.operator,o=function(t,e,r){if(t){if(t instanceof y)return t;if(t[d])return t[d]()}return t||e||r?new y(t,e,r):new y(c)}(t,e,r);if(n?o.add(n.call(o,this.source)):o.add(this.source||a.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),a.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){var e=t,r=e.closed,n=e.destination,o=e.isStopped;if(r||o)return!1;t=n&&n instanceof y?n:null}return!0}(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=m(e))(function(e,n){var o;o=r.subscribe(function(e){try{t(e)}catch(t){n(t),o&&o.unsubscribe()}},n,e)})},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[b]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:(0===t.length?g:1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)})(this)},t.prototype.toPromise=function(t){var e=this;return new(t=m(t))(function(t,r){var n;e.subscribe(function(t){return n=t},function(t){return r(t)},function(){return t(n)})})},t.create=function(e){return new t(e)},t}();function m(t){if(t||(t=a.Promise||Promise),!t)throw Error("no Promise impl found");return t}var w=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}(),O=function(t){function e(e,r){var n=t.call(this)||this;return n.subject=e,n.subscriber=r,n.closed=!1,n}return o(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var r=e.indexOf(this.subscriber);-1!==r&&e.splice(r,1)}}},e}(h),S=function(t){function e(e){var r=t.call(this,e)||this;return r.destination=e,r}return o(e,t),e}(y),E=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return o(e,t),e.prototype[d]=function(){return new S(this)},e.prototype.lift=function(t){var e=new T(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new w;if(!this.isStopped)for(var e=this.observers,r=e.length,n=e.slice(),o=0;o<r;o++)n[o].next(t)},e.prototype.error=function(t){if(this.closed)throw new w;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,r=e.length,n=e.slice(),o=0;o<r;o++)n[o].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new w;this.isStopped=!0;for(var t=this.observers,e=t.length,r=t.slice(),n=0;n<e;n++)r[n].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(!this.closed)return t.prototype._trySubscribe.call(this,e);throw new w},e.prototype._subscribe=function(t){if(this.closed)throw new w;return this.hasError?(t.error(this.thrownError),h.EMPTY):this.isStopped?(t.complete(),h.EMPTY):(this.observers.push(t),new O(this,t))},e.prototype.asObservable=function(){var t=new _;return t.source=this,t},e.create=function(t,e){return new T(t,e)},e}(_),T=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return o(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):h.EMPTY},e}(E),x=function(t){function e(e){var r=t.call(this)||this;return r._value=e,r}return o(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var r=t.prototype._subscribe.call(this,e);return r&&!r.closed&&e.next(this._value),r},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(!this.closed)return this._value;throw new w},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(E)},2278:function(t,e,r){"use strict";var n=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.Container=void 0;var o=r(7428),i=function(){function t(){}return t.prototype.empty=function(){return 0===this.size()},t.prototype.rbegin=function(){return this.end().reverse()},t.prototype.rend=function(){return this.begin().reverse()},t.prototype[Symbol.iterator]=function(){return new o.ForOfAdaptor(this.begin(),this.end())},t.prototype.toJSON=function(){var t,e,r=[];try{for(var o=n(this),i=o.next();!i.done;i=o.next()){var s=i.value;r.push(s)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}return r},t}();e.Container=i},9683:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.MapContainer=void 0;var i=r(2278),s=r(9932),a=function(t){function e(e){var r=t.call(this)||this;return r.data_=e(r),r}return o(e,t),e.prototype.assign=function(t,e){this.clear(),this.insert(t,e)},e.prototype.clear=function(){this.data_.clear()},e.prototype.begin=function(){return this.data_.begin()},e.prototype.end=function(){return this.data_.end()},e.prototype.has=function(t){return!this.find(t).equals(this.end())},e.prototype.size=function(){return this.data_.size()},e.prototype.push=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=new s.NativeArrayIterator(t,0),n=new s.NativeArrayIterator(t,t.length);return this.insert(r,n),this.size()},e.prototype.insert=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length?this.emplace(t[0].first,t[0].second):t[0].next instanceof Function&&t[1].next instanceof Function?this._Insert_by_range(t[0],t[1]):this.emplace_hint(t[0],t[1].first,t[1].second)},e.prototype.erase=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length&&(t[0]instanceof this.end().constructor==!1||t[0].source()!==this)?this._Erase_by_key(t[0]):1===t.length?this._Erase_by_range(t[0]):this._Erase_by_range(t[0],t[1])},e.prototype._Erase_by_range=function(t,e){void 0===e&&(e=t.next());var r=this.data_.erase(t,e);return this._Handle_erase(t,e),r},e}(i.Container);e.MapContainer=a},6639:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.SetContainer=void 0;var i=r(2278),s=r(9932),a=function(t){function e(e){var r=t.call(this)||this;return r.data_=e(r),r}return o(e,t),e.prototype.assign=function(t,e){this.clear(),this.insert(t,e)},e.prototype.clear=function(){this.data_.clear()},e.prototype.begin=function(){return this.data_.begin()},e.prototype.end=function(){return this.data_.end()},e.prototype.has=function(t){return!this.find(t).equals(this.end())},e.prototype.size=function(){return this.data_.size()},e.prototype.push=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(0===t.length)return this.size();var r=new s.NativeArrayIterator(t,0),n=new s.NativeArrayIterator(t,t.length);return this._Insert_by_range(r,n),this.size()},e.prototype.insert=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length?this._Insert_by_key(t[0]):t[0].next instanceof Function&&t[1].next instanceof Function?this._Insert_by_range(t[0],t[1]):this._Insert_by_hint(t[0],t[1])},e.prototype.erase=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1!==t.length||t[0]instanceof this.end().constructor&&t[0].source()===this?1===t.length?this._Erase_by_range(t[0]):this._Erase_by_range(t[0],t[1]):this._Erase_by_val(t[0])},e.prototype._Erase_by_range=function(t,e){void 0===e&&(e=t.next());var r=this.data_.erase(t,e);return this._Handle_erase(t,e),r},e}(i.Container);e.SetContainer=a},1571:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s},s=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.UniqueMap=void 0;var a=r(9683),u=r(1566),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.count=function(t){return this.find(t).equals(this.end())?0:1},e.prototype.get=function(t){var e=this.find(t);if(!0===e.equals(this.end()))throw u.ErrorGenerator.key_nout_found(this,"get",t);return e.second},e.prototype.take=function(t,e){var r=this.find(t);return r.equals(this.end())?this.emplace(t,e()).first.second:r.second},e.prototype.set=function(t,e){this.insert_or_assign(t,e)},e.prototype.insert=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return t.prototype.insert.apply(this,s([],i(e),!1))},e.prototype._Insert_by_range=function(t,e){for(var r=t;!r.equals(e);r=r.next())this.emplace(r.value.first,r.value.second)},e.prototype.insert_or_assign=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 2===t.length?this._Insert_or_assign_with_key_value(t[0],t[1]):3===t.length?this._Insert_or_assign_with_hint(t[0],t[1],t[2]):void 0},e.prototype._Insert_or_assign_with_key_value=function(t,e){var r=this.emplace(t,e);return!1===r.second&&(r.first.second=e),r},e.prototype._Insert_or_assign_with_hint=function(t,e,r){var n=this.emplace_hint(t,e,r);return n.second!==r&&(n.second=r),n},e.prototype.extract=function(t){return t instanceof this.end().constructor?this._Extract_by_iterator(t):this._Extract_by_key(t)},e.prototype._Extract_by_key=function(t){var e=this.find(t);if(!0===e.equals(this.end()))throw u.ErrorGenerator.key_nout_found(this,"extract",t);var r=e.value;return this._Erase_by_range(e),r},e.prototype._Extract_by_iterator=function(t){return!0===t.equals(this.end())?this.end():(this._Erase_by_range(t),t)},e.prototype._Erase_by_key=function(t){var e=this.find(t);return!0===e.equals(this.end())?0:(this._Erase_by_range(e),1)},e.prototype.merge=function(t){for(var e=t.begin();!e.equals(t.end());)!1===this.has(e.first)?(this.insert(e.value),e=t.erase(e)):e=e.next()},e}(a.MapContainer);e.UniqueMap=c},2570:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s},s=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.UniqueSet=void 0;var a=r(6639),u=r(1566),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.count=function(t){return this.find(t).equals(this.end())?0:1},e.prototype.insert=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return t.prototype.insert.apply(this,s([],i(e),!1))},e.prototype._Insert_by_range=function(t,e){for(;!t.equals(e);t=t.next())this._Insert_by_key(t.value)},e.prototype.extract=function(t){return t instanceof this.end().constructor?this._Extract_by_iterator(t):this._Extract_by_val(t)},e.prototype._Extract_by_val=function(t){var e=this.find(t);if(!0===e.equals(this.end()))throw u.ErrorGenerator.key_nout_found(this,"extract",t);return this._Erase_by_range(e),t},e.prototype._Extract_by_iterator=function(t){return!0===t.equals(this.end())||!1===this.has(t.value)?this.end():(this._Erase_by_range(t),t)},e.prototype._Erase_by_val=function(t){var e=this.find(t);return!0===e.equals(this.end())?0:(this._Erase_by_range(e),1)},e.prototype.merge=function(t){for(var e=t.begin();!e.equals(t.end());)!1===this.has(e.value)?(this.insert(e.value),e=t.erase(e)):e=e.next()},e}(a.SetContainer);e.UniqueSet=c},1266:function(t,e,r){"use strict";var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s},a=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.HashMap=void 0;var u=r(1571),c=r(4970),l=r(9753),f=r(1337),h=r(9430),p=r(5351),d=function(t){function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=t.call(this,function(t){return new l.MapElementList(t)})||this;return c.IHashContainer.construct.apply(c.IHashContainer,a([o,e,function(t,e){o.buckets_=new f.MapHashBuckets(o,t,e)}],s(r),!1)),o}return i(e,t),e.prototype.clear=function(){this.buckets_.clear(),t.prototype.clear.call(this)},e.prototype.swap=function(t){var e,r;e=s([t.data_,this.data_],2),this.data_=e[0],t.data_=e[1],l.MapElementList._Swap_associative(this.data_,t.data_),f.MapHashBuckets._Swap_source(this.buckets_,t.buckets_),r=s([t.buckets_,this.buckets_],2),this.buckets_=r[0],t.buckets_=r[1]},e.prototype.find=function(t){return this.buckets_.find(t)},e.prototype.begin=function(e){return(void 0===e&&(e=null),null===e)?t.prototype.begin.call(this):this.buckets_.at(e)[0]},e.prototype.end=function(e){if(void 0===e&&(e=null),null===e)return t.prototype.end.call(this);var r=this.buckets_.at(e);return r[r.length-1].next()},e.prototype.rbegin=function(t){return void 0===t&&(t=null),this.end(t).reverse()},e.prototype.rend=function(t){return void 0===t&&(t=null),this.begin(t).reverse()},e.prototype.bucket_count=function(){return this.buckets_.length()},e.prototype.bucket_size=function(t){return this.buckets_.at(t).length},e.prototype.load_factor=function(){return this.buckets_.load_factor()},e.prototype.hash_function=function(){return this.buckets_.hash_function()},e.prototype.key_eq=function(){return this.buckets_.key_eq()},e.prototype.bucket=function(t){return this.hash_function()(t)%this.buckets_.length()},e.prototype.max_load_factor=function(t){return void 0===t&&(t=null),this.buckets_.max_load_factor(t)},e.prototype.reserve=function(t){this.buckets_.reserve(t)},e.prototype.rehash=function(t){this.buckets_.rehash(t)},e.prototype.emplace=function(t,e){var r=this.find(t);return!1===r.equals(this.end())?new p.Pair(r,!1):(this.data_.push(new h.Entry(t,e)),r=r.prev(),this._Handle_insert(r,r.next()),new p.Pair(r,!0))},e.prototype.emplace_hint=function(t,e,r){var n=this.find(e);return!0===n.equals(this.end())&&(n=this.data_.insert(t,new h.Entry(e,r)),this._Handle_insert(n,n.next())),n},e.prototype._Handle_insert=function(t,e){for(;!t.equals(e);t=t.next())this.buckets_.insert(t)},e.prototype._Handle_erase=function(t,e){for(;!t.equals(e);t=t.next())this.buckets_.erase(t)},e}(u.UniqueMap);e.HashMap=d,(o=d=e.HashMap||(e.HashMap={})).Iterator=l.MapElementList.Iterator,o.ReverseIterator=l.MapElementList.ReverseIterator,e.HashMap=d},5017:function(t,e,r){"use strict";var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s},a=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.HashSet=void 0;var u=r(2570),c=r(4970),l=r(7976),f=r(6449),h=r(5351),p=function(t){function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=t.call(this,function(t){return new l.SetElementList(t)})||this;return c.IHashContainer.construct.apply(c.IHashContainer,a([o,e,function(t,e){o.buckets_=new f.SetHashBuckets(o,t,e)}],s(r),!1)),o}return i(e,t),e.prototype.clear=function(){this.buckets_.clear(),t.prototype.clear.call(this)},e.prototype.swap=function(t){var e,r;e=s([t.data_,this.data_],2),this.data_=e[0],t.data_=e[1],l.SetElementList._Swap_associative(this.data_,t.data_),f.SetHashBuckets._Swap_source(this.buckets_,t.buckets_),r=s([t.buckets_,this.buckets_],2),this.buckets_=r[0],t.buckets_=r[1]},e.prototype.find=function(t){return this.buckets_.find(t)},e.prototype.begin=function(e){return(void 0===e&&(e=null),null===e)?t.prototype.begin.call(this):this.buckets_.at(e)[0]},e.prototype.end=function(e){if(void 0===e&&(e=null),null===e)return t.prototype.end.call(this);var r=this.buckets_.at(e);return r[r.length-1].next()},e.prototype.rbegin=function(t){return void 0===t&&(t=null),this.end(t).reverse()},e.prototype.rend=function(t){return void 0===t&&(t=null),this.begin(t).reverse()},e.prototype.bucket_count=function(){return this.buckets_.length()},e.prototype.bucket_size=function(t){return this.buckets_.at(t).length},e.prototype.load_factor=function(){return this.buckets_.load_factor()},e.prototype.hash_function=function(){return this.buckets_.hash_function()},e.prototype.key_eq=function(){return this.buckets_.key_eq()},e.prototype.bucket=function(t){return this.hash_function()(t)%this.buckets_.length()},e.prototype.max_load_factor=function(t){return void 0===t&&(t=null),this.buckets_.max_load_factor(t)},e.prototype.reserve=function(t){this.buckets_.reserve(t)},e.prototype.rehash=function(t){this.buckets_.rehash(t)},e.prototype._Insert_by_key=function(t){var e=this.find(t);return!1===e.equals(this.end())?new h.Pair(e,!1):(this.data_.push(t),e=e.prev(),this._Handle_insert(e,e.next()),new h.Pair(e,!0))},e.prototype._Insert_by_hint=function(t,e){var r=this.find(e);return!0===r.equals(this.end())&&(r=this.data_.insert(t,e),this._Handle_insert(r,r.next())),r},e.prototype._Handle_insert=function(t,e){for(;!t.equals(e);t=t.next())this.buckets_.insert(t)},e.prototype._Handle_erase=function(t,e){for(;!t.equals(e);t=t.next())this.buckets_.erase(t)},e}(u.UniqueSet);e.HashSet=p,(o=p=e.HashSet||(e.HashSet={})).Iterator=l.SetElementList.Iterator,o.ReverseIterator=l.SetElementList.ReverseIterator,e.HashSet=p},269:function(t,e){"use strict";var r,n=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.Exception=void 0;var o=function(t){function e(e){var r=this.constructor,n=t.call(this,e)||this,o=r.prototype;return Object.setPrototypeOf?Object.setPrototypeOf(n,o):n.__proto__=o,n}return n(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return this.constructor.name},enumerable:!1,configurable:!0}),e.prototype.what=function(){return this.message},e.prototype.toJSON=function(){return{name:this.name,message:this.message,stack:this.stack}},e}(Error);e.Exception=o},9014:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.InvalidArgument=void 0;var i=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e}(r(5501).LogicError);e.InvalidArgument=i},5501:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.LogicError=void 0;var i=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e}(r(269).Exception);e.LogicError=i},7632:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.OutOfRange=void 0;var i=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e}(r(5501).LogicError);e.OutOfRange=i},8925:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.greater_equal=e.greater=e.less_equal=e.less=e.not_equal_to=e.equal_to=void 0;var n=r(4682);function o(t,e){return(t=t?t.valueOf():t,e=e?e.valueOf():e,t instanceof Object&&t.equals instanceof Function)?t.equals(e):t===e}function i(t,e){return(t=t.valueOf(),e=e.valueOf(),t instanceof Object)?t.less instanceof Function?t.less(e):(0,n.get_uid)(t)<(0,n.get_uid)(e):t<e}function s(t,e){return i(t,e)||o(t,e)}e.equal_to=o,e.not_equal_to=function(t,e){return!o(t,e)},e.less=i,e.less_equal=s,e.greater=function(t,e){return!s(t,e)},e.greater_equal=function(t,e){return!i(t,e)}},9029:function(t,e,r){"use strict";var n=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.hash=void 0;var o=r(4682);function i(t,e){return s(t.toString(),e)}function s(t,e){for(var r=0;r<t.length;++r)e^=t.charCodeAt(r),e*=u;return Math.abs(e)}e.hash=function(){for(var t,e,r=[],c=0;c<arguments.length;c++)r[c]=arguments[c];var l=a;try{for(var f=n(r),h=f.next();!h.done;h=f.next()){var p,d,y=h.value,v=typeof(y=y?y.valueOf():y);if("boolean"===v)p=y,l=(l^(p?1:0))*u;else if("number"===v||"bigint"===v)l=i(y,l);else if("string"===v)l=s(y,l);else if(y instanceof Object&&y.hashCode instanceof Function){var b=y.hashCode();if(1===r.length)return b;l^=b,l*=u}else l=i((0,o.get_uid)(y),l)}}catch(e){t={error:e}}finally{try{h&&!h.done&&(e=f.return)&&e.call(f)}finally{if(t)throw t.error}}return Math.abs(l)};var a=2166136261,u=16777619},4682:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.get_uid=void 0;var n=r(4931);e.get_uid=function(t){if(t instanceof Object){if(!1===t.hasOwnProperty("__get_m_iUID")){var e=++(0,n._Get_root)().__s_iUID;Object.defineProperty(t,"__get_m_iUID",{value:function(){return e}})}return t.__get_m_iUID()}return void 0===t?-1:0}},4931:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._Get_root=void 0;var n=r(4922);e._Get_root=function(){return null===o&&void 0===(o=(0,n.is_node)()?r.g:self).__s_iUID&&(o.__s_iUID=0),o};var o=null},2644:function(t,e){"use strict";var r=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s},n=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.IAssociativeContainer=void 0,(e.IAssociativeContainer||(e.IAssociativeContainer={})).construct=function(t){for(var e,o,i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];return i.length>=1&&i[0]instanceof Array?(e=function(){var e=i[0];t.push.apply(t,n([],r(e),!1))},o=i.slice(1)):i.length>=2&&i[0].next instanceof Function&&i[1].next instanceof Function?(e=function(){var e=i[0],r=i[1];t.assign(e,r)},o=i.slice(2)):(e=null,o=i),{ramda:e,tail:o}}},4970:function(t,e,r){"use strict";var n=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s},o=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.IHashContainer=void 0;var i=r(2644),s=r(9029),a=r(8925);(e.IHashContainer||(e.IHashContainer={})).construct=function(t,e,r){for(var u=[],c=3;c<arguments.length;c++)u[c-3]=arguments[c];var l=null,f=s.hash,h=a.equal_to;if(1===u.length&&u[0]instanceof e){var p=u[0];f=p.hash_function(),h=p.key_eq(),l=function(){var e=p.begin(),r=p.end();t.assign(e,r)}}else{var d=i.IAssociativeContainer.construct.apply(i.IAssociativeContainer,o([t],n(u),!1));l=d.ramda,d.tail.length>=1&&(f=d.tail[0]),d.tail.length>=2&&(h=d.tail[1])}r(f,h),null!==l&&l()}},9753:function(t,e,r){"use strict";var n,o,i,s,a=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),u=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.MapElementList=void 0;var c=r(7647),l=r(2918),f=r(5709),h=function(t){function e(e){var r=t.call(this)||this;return r.associative_=e,r}return a(e,t),e.prototype._Create_iterator=function(t,r,n){return e.Iterator.create(this,t,r,n)},e._Swap_associative=function(t,e){var r;r=u([e.associative_,t.associative_],2),t.associative_=r[0],e.associative_=r[1]},e.prototype.associative=function(){return this.associative_},e}(c.ListContainer);e.MapElementList=h,o=h=e.MapElementList||(e.MapElementList={}),i=function(t){function e(e,r,n,o){var i=t.call(this,r,n,o)||this;return i.list_=e,i}return a(e,t),e.create=function(t,r,n,o){return new e(t,r,n,o)},e.prototype.reverse=function(){return new s(this)},e.prototype.source=function(){return this.list_.associative()},Object.defineProperty(e.prototype,"first",{get:function(){return this.value.first},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"second",{get:function(){return this.value.second},set:function(t){this.value.second=t},enumerable:!1,configurable:!0}),e}(l.ListIterator),o.Iterator=i,s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype._Create_neighbor=function(t){return new e(t)},Object.defineProperty(e.prototype,"first",{get:function(){return this.base_.first},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"second",{get:function(){return this.base_.second},set:function(t){this.base_.second=t},enumerable:!1,configurable:!0}),e}(f.ReverseIterator),o.ReverseIterator=s,e.MapElementList=h},7976:function(t,e,r){"use strict";var n,o,i,s,a=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),u=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.SetElementList=void 0;var c=r(7647),l=r(2918),f=r(5709),h=function(t){function e(e){var r=t.call(this)||this;return r.associative_=e,r}return a(e,t),e.prototype._Create_iterator=function(t,r,n){return e.Iterator.create(this,t,r,n)},e._Swap_associative=function(t,e){var r;r=u([e.associative_,t.associative_],2),t.associative_=r[0],e.associative_=r[1]},e.prototype.associative=function(){return this.associative_},e}(c.ListContainer);e.SetElementList=h,o=h=e.SetElementList||(e.SetElementList={}),i=function(t){function e(e,r,n,o){var i=t.call(this,r,n,o)||this;return i.source_=e,i}return a(e,t),e.create=function(t,r,n,o){return new e(t,r,n,o)},e.prototype.reverse=function(){return new s(this)},e.prototype.source=function(){return this.source_.associative()},e}(l.ListIterator),o.Iterator=i,s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype._Create_neighbor=function(t){return new e(t)},e}(f.ReverseIterator),o.ReverseIterator=s,e.SetElementList=h},7647:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.ListContainer=void 0;var s=r(2278),a=r(2918),u=r(7489),c=r(9932),l=r(6937),f=r(1566),h=function(t){function e(){var e=t.call(this)||this;return e.end_=e._Create_iterator(null,null),e.clear(),e}return o(e,t),e.prototype.assign=function(t,e){this.clear(),this.insert(this.end(),t,e)},e.prototype.clear=function(){a.ListIterator._Set_prev(this.end_,this.end_),a.ListIterator._Set_next(this.end_,this.end_),this.begin_=this.end_,this.size_=0},e.prototype.resize=function(t){var e=t-this.size();e>0?this.insert(this.end(),e,void 0):e<0&&this.erase((0,l.advance)(this.end(),-e),this.end())},e.prototype.begin=function(){return this.begin_},e.prototype.end=function(){return this.end_},e.prototype.size=function(){return this.size_},e.prototype.push_front=function(t){this.insert(this.begin_,t)},e.prototype.push_back=function(t){this.insert(this.end_,t)},e.prototype.pop_front=function(){if(!0===this.empty())throw f.ErrorGenerator.empty(this.end_.source().constructor.name,"pop_front");this.erase(this.begin_)},e.prototype.pop_back=function(){if(!0===this.empty())throw f.ErrorGenerator.empty(this.end_.source().constructor.name,"pop_back");this.erase(this.end_.prev())},e.prototype.push=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(0===t.length)return this.size();var r=new c.NativeArrayIterator(t,0),n=new c.NativeArrayIterator(t,t.length);return this._Insert_by_range(this.end(),r,n),this.size()},e.prototype.insert=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(t.source()!==this.end_.source())throw f.ErrorGenerator.not_my_iterator(this.end_.source(),"insert");if(!0===t.erased_)throw f.ErrorGenerator.erased_iterator(this.end_.source(),"insert");return 1===e.length?this._Insert_by_repeating_val(t,1,e[0]):2===e.length&&"number"==typeof e[0]?this._Insert_by_repeating_val(t,e[0],e[1]):this._Insert_by_range(t,e[0],e[1])},e.prototype._Insert_by_repeating_val=function(t,e,r){var n=new u.Repeater(0,r),o=new u.Repeater(e);return this._Insert_by_range(t,n,o)},e.prototype._Insert_by_range=function(t,e,r){for(var n=t.prev(),o=null,i=0,s=e;!1===s.equals(r);s=s.next()){var u=this._Create_iterator(n,null,s.value);0===i&&(o=u),a.ListIterator._Set_next(n,u),n=u,++i}return!0===t.equals(this.begin())&&(this.begin_=o),a.ListIterator._Set_next(n,t),a.ListIterator._Set_prev(t,n),this.size_+=i,o},e.prototype.erase=function(t,e){return void 0===e&&(e=t.next()),this._Erase_by_range(t,e)},e.prototype._Erase_by_range=function(t,e){if(t.source()!==this.end_.source())throw f.ErrorGenerator.not_my_iterator(this.end_.source(),"insert");if(!0===t.erased_)throw f.ErrorGenerator.erased_iterator(this.end_.source(),"insert");if(t.equals(this.end_))return this.end_;var r=t.prev();a.ListIterator._Set_next(r,e),a.ListIterator._Set_prev(e,r);for(var n=t;!n.equals(e);n=n.next())n.erased_=!0,--this.size_;return t.equals(this.begin_)&&(this.begin_=e),e},e.prototype.swap=function(t){var e,r,n;e=i([t.begin_,this.begin_],2),this.begin_=e[0],t.begin_=e[1],r=i([t.end_,this.end_],2),this.end_=r[0],t.end_=r[1],n=i([t.size_,this.size_],2),this.size_=n[0],t.size_=n[1]},e}(s.Container);e.ListContainer=h},1566:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorGenerator=void 0;var n=r(9014),o=r(7632);!function(t){function e(t){if("string"==typeof t)return t;var e=t.constructor.name;return t.constructor.__MODULE&&(e="".concat(t.constructor.__MODULE,".").concat(e)),"std.".concat(e)}t.get_class_name=e,t.empty=function(t,r){return new o.OutOfRange("Error on ".concat(e(t),".").concat(r,"(): it's empty container."))},t.negative_index=function(t,r,n){return new o.OutOfRange("Error on ".concat(e(t),".").concat(r,"(): parametric index is negative -> (index = ").concat(n,")."))},t.excessive_index=function(t,r,n,i){return new o.OutOfRange("Error on ".concat(e(t),".").concat(r,"(): parametric index is equal or greater than size -> (index = ").concat(n,", size: ").concat(i,")."))},t.not_my_iterator=function(t,r){return new n.InvalidArgument("Error on ".concat(e(t),".").concat(r,"(): parametric iterator is not this container's own."))},t.erased_iterator=function(t,r){return new n.InvalidArgument("Error on ".concat(e(t),".").concat(r,"(): parametric iterator, it already has been erased."))},t.negative_iterator=function(t,r,n){return new o.OutOfRange("Error on ".concat(e(t),".").concat(r,"(): parametric iterator is directing negative position -> (index = ").concat(n,")."))},t.iterator_end_value=function(t,r){void 0===r&&(r="end");var n=e(t);return new o.OutOfRange("Error on ".concat(n,".Iterator.value: cannot access to the ").concat(n,".").concat(r,"().value."))},t.key_nout_found=function(t,r,n){throw new o.OutOfRange("Error on ".concat(e(t),".").concat(r,"(): unable to find the matched key -> ").concat(n))}}(e.ErrorGenerator||(e.ErrorGenerator={}))},1663:function(t,e){"use strict";var r=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.HashBuckets=void 0;var n=function(){function t(t,e){this.fetcher_=t,this.hasher_=e,this.max_load_factor_=i,this.data_=[],this.size_=0,this.initialize()}return t.prototype.clear=function(){this.data_=[],this.size_=0,this.initialize()},t.prototype.rehash=function(t){t=Math.max(t,o);for(var e,n,i,s,a=[],u=0;u<t;++u)a.push([]);try{for(var c=r(this.data_),l=c.next();!l.done;l=c.next()){var f=l.value;try{for(var h=(i=void 0,r(f)),p=h.next();!p.done;p=h.next()){var d=p.value,y=this.hasher_(this.fetcher_(d))%a.length;a[y].push(d)}}catch(t){i={error:t}}finally{try{p&&!p.done&&(s=h.return)&&s.call(h)}finally{if(i)throw i.error}}}}catch(t){e={error:t}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(e)throw e.error}}this.data_=a},t.prototype.reserve=function(t){t>this.capacity()&&(t=Math.floor(t/this.max_load_factor_),this.rehash(t))},t.prototype.initialize=function(){for(var t=0;t<o;++t)this.data_.push([])},t.prototype.length=function(){return this.data_.length},t.prototype.capacity=function(){return this.data_.length*this.max_load_factor_},t.prototype.at=function(t){return this.data_[t]},t.prototype.load_factor=function(){return this.size_/this.length()},t.prototype.max_load_factor=function(t){if(void 0===t&&(t=null),null===t)return this.max_load_factor_;this.max_load_factor_=t},t.prototype.hash_function=function(){return this.hasher_},t.prototype.index=function(t){return this.hasher_(this.fetcher_(t))%this.length()},t.prototype.insert=function(t){var e=this.capacity();++this.size_>e&&this.reserve(2*e);var r=this.index(t);this.data_[r].push(t)},t.prototype.erase=function(t){for(var e=this.index(t),r=this.data_[e],n=0;n<r.length;++n)if(r[n]===t){r.splice(n,1),--this.size_;break}},t}();e.HashBuckets=n;var o=10,i=1},1337:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MapHashBuckets=void 0;var a=function(t){function e(e,r,n){var o=t.call(this,u,r)||this;return o.source_=e,o.key_eq_=n,o}return o(e,t),e._Swap_source=function(t,e){var r;r=i([e.source_,t.source_],2),t.source_=r[0],e.source_=r[1]},e.prototype.key_eq=function(){return this.key_eq_},e.prototype.find=function(t){var e,r,n=this.hash_function()(t)%this.length(),o=this.at(n);try{for(var i=s(o),a=i.next();!a.done;a=i.next()){var u=a.value;if(this.key_eq_(u.first,t))return u}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return this.source_.end()},e}(r(1663).HashBuckets);function u(t){return t.first}e.MapHashBuckets=a},6449:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.SetHashBuckets=void 0;var a=function(t){function e(e,r,n){var o=t.call(this,u,r)||this;return o.source_=e,o.key_eq_=n,o}return o(e,t),e._Swap_source=function(t,e){var r;r=i([e.source_,t.source_],2),t.source_=r[0],e.source_=r[1]},e.prototype.key_eq=function(){return this.key_eq_},e.prototype.find=function(t){var e,r,n=this.hash_function()(t)%this.length(),o=this.at(n);try{for(var i=s(o),a=i.next();!a.done;a=i.next()){var u=a.value;if(this.key_eq_(u.value,t))return u}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return this.source_.end()},e}(r(1663).HashBuckets);function u(t){return t.value}e.SetHashBuckets=a},2918:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ListIterator=void 0;var n=r(1566),o=function(){function t(t,e,r){this.prev_=t,this.next_=e,this.value_=r}return t._Set_prev=function(t,e){t.prev_=e},t._Set_next=function(t,e){t.next_=e},t.prototype.prev=function(){return this.prev_},t.prototype.next=function(){return this.next_},Object.defineProperty(t.prototype,"value",{get:function(){return this._Try_value(),this.value_},enumerable:!1,configurable:!0}),t.prototype._Try_value=function(){if(void 0===this.value_&&!0===this.equals(this.source().end()))throw n.ErrorGenerator.iterator_end_value(this.source())},t.prototype.equals=function(t){return this===t},t}();e.ListIterator=o},5709:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ReverseIterator=void 0;var r=function(){function t(t){this.base_=t.prev()}return t.prototype.source=function(){return this.base_.source()},t.prototype.base=function(){return this.base_.next()},Object.defineProperty(t.prototype,"value",{get:function(){return this.base_.value},enumerable:!1,configurable:!0}),t.prototype.prev=function(){return this._Create_neighbor(this.base().next())},t.prototype.next=function(){return this._Create_neighbor(this.base_)},t.prototype.equals=function(t){return this.base_.equals(t.base_)},t}();e.ReverseIterator=r},7428:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ForOfAdaptor=void 0;var r=function(){function t(t,e){this.it_=t,this.last_=e}return t.prototype.next=function(){if(this.it_.equals(this.last_))return{done:!0,value:void 0};var t=this.it_;return this.it_=this.it_.next(),{done:!1,value:t.value}},t.prototype[Symbol.iterator]=function(){return this},t}();e.ForOfAdaptor=r},9932:function(t,e){"use strict";var r=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s};Object.defineProperty(e,"__esModule",{value:!0}),e.NativeArrayIterator=void 0;var n=function(){function t(t,e){this.data_=t,this.index_=e}return t.prototype.index=function(){return this.index_},Object.defineProperty(t.prototype,"value",{get:function(){return this.data_[this.index_]},enumerable:!1,configurable:!0}),t.prototype.prev=function(){return--this.index_,this},t.prototype.next=function(){return++this.index_,this},t.prototype.advance=function(t){return this.index_+=t,this},t.prototype.equals=function(t){return this.data_===t.data_&&this.index_===t.index_},t.prototype.swap=function(t){var e,n;e=r([t.data_,this.data_],2),this.data_=e[0],t.data_=e[1],n=r([t.index_,this.index_],2),this.index_=n[0],t.index_=n[1]},t}();e.NativeArrayIterator=n},7489:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Repeater=void 0;var r=function(){function t(t,e){this.index_=t,this.value_=e}return t.prototype.index=function(){return this.index_},Object.defineProperty(t.prototype,"value",{get:function(){return this.value_},enumerable:!1,configurable:!0}),t.prototype.next=function(){return++this.index_,this},t.prototype.equals=function(t){return this.index_===t.index_},t}();e.Repeater=r},6937:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.next=e.prev=e.advance=e.distance=e.size=e.empty=void 0;var n=r(9014);function o(t,e){var r;if(0===e)return t;if(t.advance instanceof Function)return t.advance(e);if(e<0){if(!(t.prev instanceof Function))throw new n.InvalidArgument("Error on std.advance(): parametric iterator is not a bi-directional iterator, thus advancing to negative direction is not possible.");r=function(t){return t.prev()},e=-e}else r=function(t){return t.next()};for(;e-- >0;)t=r(t);return t}e.empty=function(t){return t instanceof Array?0!==t.length:t.empty()},e.size=function(t){return t instanceof Array?t.length:t.size()},e.distance=function(t,e){if(t.index instanceof Function){var r,n,o;return n=(r=t).index(),o=e.index(),r.base instanceof Function?n-o:o-n}for(var i=0;!t.equals(e);t=t.next())++i;return i},e.advance=o,e.prev=function(t,e){return(void 0===e&&(e=1),1===e)?t.prev():o(t,-e)},e.next=function(t,e){return(void 0===e&&(e=1),1===e)?t.next():o(t,e)}},9430:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Entry=void 0;var n=r(9029),o=r(8925),i=function(){function t(t,e){this.first=t,this.second=e}return t.prototype.equals=function(t){return(0,o.equal_to)(this.first,t.first)},t.prototype.less=function(t){return(0,o.less)(this.first,t.first)},t.prototype.hashCode=function(){return(0,n.hash)(this.first)},t}();e.Entry=i},5351:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.make_pair=e.Pair=void 0;var n=r(9029),o=r(8925),i=function(){function t(t,e){this.first=t,this.second=e}return t.prototype.equals=function(t){return(0,o.equal_to)(this.first,t.first)&&(0,o.equal_to)(this.second,t.second)},t.prototype.less=function(t){return!1===(0,o.equal_to)(this.first,t.first)?(0,o.less)(this.first,t.first):(0,o.less)(this.second,t.second)},t.prototype.hashCode=function(){return(0,n.hash)(this.first,this.second)},t}();e.Pair=i,e.make_pair=function(t,e){return new i(t,e)}},4922:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.is_node=void 0;var n=null;e.is_node=function(){return null===n&&(n="object"==typeof r.g&&"object"==typeof r.g.process&&"object"==typeof r.g.process.versions&&void 0!==r.g.process.versions.node),n}},5995:function(t,e,r){"use strict";var n,o,i=r(8764).lW,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var u=r(5840),c=r(1112),l=r(9653),f=r(4164),h=r(4584),p=r(5025),d=function(t){function e(r,n){var o=t.call(this)||this;return o.on_={},o.state_=e.CONNECTING,o.client_=new u.client,o.client_.on("connect",o._Handle_connect.bind(o)),o.client_.on("connectFailed",o._Handle_error.bind(o)),"string"==typeof n&&(n=[n]),o.client_.connect(r,n),o}return s(e,t),e.prototype.close=function(t,r){this.state_=e.CLOSING,void 0===t?this.connection_.sendCloseFrame():this.connection_.sendCloseFrame(t,r,!0)},e.prototype.send=function(t){if("string"==typeof t.valueOf())this.connection_.sendUTF(t);else{var e=void 0;e=t instanceof i?t:t instanceof Blob?new i(t,"blob"):new i(t.buffer?t.buffer:t),this.connection_.sendBytes(e)}},Object.defineProperty(e.prototype,"url",{get:function(){return this.client_.url.href},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"protocol",{get:function(){return this.client_.protocols?this.client_.protocols[0]:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extensions",{get:function(){return this.connection_&&this.connection_.extensions?this.connection_.extensions[0].name:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readyState",{get:function(){return this.state_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bufferedAmount",{get:function(){return this.connection_.bytesWaitingToFlush},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"binaryType",{get:function(){return"arraybuffer"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onopen",{get:function(){return this.on_.open},set:function(t){this._Set_on("open",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onclose",{get:function(){return this.on_.close},set:function(t){this._Set_on("close",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onmessage",{get:function(){return this.on_.message},set:function(t){this._Set_on("message",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onerror",{get:function(){return this.on_.error},set:function(t){this._Set_on("error",t)},enumerable:!0,configurable:!0}),e.prototype._Set_on=function(t,e){this.on_[t]&&this.removeEventListener(t,this.on_[t]),this.addEventListener(t,e),this.on_[t]=e},e.prototype._Handle_connect=function(t){this.connection_=t,this.state_=e.OPEN,this.connection_.on("message",this._Handle_message.bind(this)),this.connection_.on("error",this._Handle_error.bind(this)),this.connection_.on("close",this._Handle_close.bind(this));var r=new l.Event("open",y);this.dispatchEvent(r)},e.prototype._Handle_close=function(t,r){var n=new f.CloseEvent("close",a({},y,{code:t,reason:r}));this.state_=e.CLOSED,this.dispatchEvent(n)},e.prototype._Handle_message=function(t){var e=new h.MessageEvent("message",a({},y,{data:t.binaryData?t.binaryData:t.utf8Data}));this.dispatchEvent(e)},e.prototype._Handle_error=function(t){var r=new p.ErrorEvent("error",a({},y,{error:t,message:t.message}));this.state_===e.CONNECTING&&(this.state_=e.CLOSED),this.dispatchEvent(r)},e}(c.EventTarget);e.WebSocket=d,(o=d=e.WebSocket||(e.WebSocket={})).CONNECTING=0,o.OPEN=1,o.CLOSING=2,o.CLOSED=3,e.WebSocket=d;var y={bubbles:!1,cancelable:!1}},4164:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(e,r){return t.call(this,e,r)||this}return o(e,t),e}(r(9653).Event);e.CloseEvent=i},5025:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(e,r){return t.call(this,e,r)||this}return o(e,t),e}(r(9653).Event);e.ErrorEvent=i},9653:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Event=function(t,e){this.type=t,e&&Object.assign(this,e)}},1112:function(t,e,r){"use strict";var n=this&&this.__values||function(t){var e="function"==typeof Symbol&&t[Symbol.iterator],r=0;return e?e.call(t):{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}};Object.defineProperty(e,"__esModule",{value:!0});var o=r(5017),i=r(1266),s=function(){function t(){this.listeners_=new i.HashMap,this.created_at_=new Date}return t.prototype.dispatchEvent=function(t){var e,r,o=this.listeners_.find(t.type);if(!o.equals(this.listeners_.end())){t.target=this,t.timeStamp=new Date().getTime()-this.created_at_.getTime();try{for(var i=n(o.second),s=i.next();!s.done;s=i.next())(0,s.value)(t)}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}}},t.prototype.addEventListener=function(t,e){var r=this.listeners_.find(t);r.equals(this.listeners_.end())&&(r=this.listeners_.emplace(t,new o.HashSet).first),r.second.insert(e)},t.prototype.removeEventListener=function(t,e){var r=this.listeners_.find(t);!r.equals(this.listeners_.end())&&(r.second.erase(e),r.second.empty()&&this.listeners_.erase(r))},t}();e.EventTarget=s},4584:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(e,r){return t.call(this,e,r)||this}return o(e,t),e}(r(9653).Event);e.MessageEvent=i},6445:function(t,e,r){"use strict";r(4922).is_node()&&(r.g.WebSocket=r(5995).WebSocket)},5840:function(t,e,r){if("object"==typeof globalThis)n=globalThis;else try{n=r(284)}catch(t){}finally{if(n||"undefined"==typeof window||(n=window),!n)throw Error("Could not determine global this")}var n,o=n.WebSocket||n.MozWebSocket,i=r(9387);function s(t,e){return e?new o(t,e):new o(t)}o&&["CONNECTING","OPEN","CLOSING","CLOSED"].forEach(function(t){Object.defineProperty(s,t,{get:function(){return o[t]}})}),t.exports={w3cwebsocket:o?s:null,version:i}},9387:function(t,e,r){t.exports=r(9794).version},6077:function(t,e,r){"use strict";r.d(e,{c:function(){return I}});var n,o,i=r(4155),s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function a(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var u=function(){return(u=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function c(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{u(n.next(t))}catch(t){i(t)}}function a(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(s,a)}u((n=n.apply(t,e||[])).next())})}function l(t,e){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}function f(t,e,r){if(r||2==arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError,(n=o||(o={})).ALL="all",n.MANUAL="manual",n.TTL="ttl";var h=function(){function t(){this.cache=new Map,this.maxCache=20,this.timer={},this.freezedCacheDeletion={}}return t.prototype.get=function(t){return this.cache.get(t)},t.prototype.set=function(t,e,r){var n=this;if(void 0===r&&(r=6e4),this.maxCache>0&&this.cache.size>=this.maxCache){var i=f([],this.cache.keys(),!0)[0];this.cache.delete(i),this.timer[i]&&clearTimeout(this.timer[i])}this.cache.set(t,e),r>0&&(this.timer[t]=setTimeout(function(){n.allowDeleteCacheEntry(t,o.TTL)&&(n.cache.delete(t),delete n.timer[t])},r))},t.prototype.delete=function(t){return delete this.timer[t],this.cache.delete(t)},t.prototype.clear=function(){var t=this;Object.entries(this.timer).forEach(function(e){var r=e[0];t.allowDeleteCacheEntry(r,o.MANUAL)&&delete t.timer[r]}),this.cache.forEach(function(e,r){t.allowDeleteCacheEntry(r,o.MANUAL)&&t.cache.delete(r)})},t.prototype.clearOneCache=function(t){var e=this;Object.entries(this.timer).forEach(function(r){var n=r[0];e.allowDeleteCacheEntry(n,o.MANUAL)&&t===n&&delete e.timer[n]}),this.cache.forEach(function(r,n){e.allowDeleteCacheEntry(n,o.MANUAL)&&t===n&&e.cache.delete(n)})},t.prototype.freezeCacheDeletion=function(t){void 0===t&&(t={}),this.freezedCacheDeletion=u(u({},this.freezedCacheDeletion),t)},t.prototype.allowDeleteCacheEntry=function(t,e){return!Object.entries(this.freezedCacheDeletion).some(function(r){var n=r[0],i=r[1];return t.includes(n)&&(i===o.ALL||e===i)})},t}(),p=function(){function t(){this.middlewares=[]}return t.prototype.use=function(t){if("function"!=typeof t)throw TypeError("Middleware is not a function.");this.middlewares.push(t)},t.prototype.execute=function(t){return(function(t){if(!Array.isArray(t))throw TypeError("Middlewares must be an array!");for(var e=t.length,r=0;r<e;r++)if("function"!=typeof t[r])throw TypeError("Middleware must be composed of function");return function(e,r){var n=-1;return function o(i){if(i<=n)return Promise.reject(Error("next() should not be called multiple times in one middleware!"));n=i;var s=t[i]||r;if(!s)return Promise.resolve();try{return Promise.resolve(s(e,function(){return o(i+1)}))}catch(t){return Promise.reject(t)}}(0)}})(f([],this.middlewares,!0))(t)},t}(),d=function(t){function e(e,r,n){void 0===n&&(n="RequestError");var o=t.call(this,e)||this;return o.name="RequestError",o.request=r,o.type=n,o}return a(e,t),e}(Error),y=function(t){function e(e,r,n,o,i){void 0===i&&(i="ResponseError");var s=t.call(this,r||e.statusText)||this;return s.name="ResponseError",s.data=n,s.response=e,s.request=o,s.type=i,s}return a(e,t),e}(Error);function v(){var t;return void 0!==i&&"[object process]"===toString.call(i)&&(t="NODE"),"undefined"!=typeof XMLHttpRequest&&(t="BROWSER"),t}var b=function(t){var e=this;this.resolve=function(){},this.reject=function(){};var r=new Promise(function(r,n){e.resolve=r,e.reject=n,t&&t(r,n)});return r.resolve=this.resolve,r.reject=this.reject,r},g=!1,_=["/v2/private/user/profile"];try{g="AbortController"in window}catch(t){g=!1}function m(t){return c(this,void 0,void 0,function(){return l(this,function(e){return[2,Promise.resolve(t)]})})}function w(t){var e;return c(this,void 0,void 0,function(){var r;return l(this,function(n){return(r=null===(e=null==t?void 0:t.interceptors)||void 0===e?void 0:e.instanceRequest)&&Array.isArray(r)?[2,function(t,e){return c(this,void 0,void 0,function(){var r;return l(this,function(n){return r=function(e,r){return e.then(function(e){return void 0===e&&(e={}),t.req.url=e.url||t.req.url,t.req.options=e.options||t.req.options,r(t.req.url,t.req.options,t.operations)})},[2,e.reduce(r,Promise.resolve()).then(function(e){return void 0===e&&(e={}),t.req.url=e.url||t.req.url,t.req.options=e.options||t.req.options,Promise.resolve(t)})]})})}(t,r)]:[2,Promise.resolve(t)]})})}function O(t,e){return c(this,void 0,void 0,function(){var r;return l(this,function(n){return r=Promise.resolve("function"==typeof t.clone?t.clone():t),e.interceptors.instanceResponse.forEach(function(t){r=r.then(function(r){return t("BROWSER"===v()&&"function"==typeof r.clone?r.clone():r,e.req.options,e.operations)})}),[2,r]})})}function S(t,e){var r=this,n=t.req,o=n.url,i=n.options,s=void 0===i?{}:i,a=t.cache,f=t.cacheKey;t.operations.createRequestError=function(e){return new d(e,t.req)};var h=s.useCache,p=void 0!==h&&h,S=s.timeout,E=void 0===S?3e4:S,T=s.validateStatus,x=void 0===T?function(t){return t>=200&&t<300}:T,k=s.ttl,j=a.get(f);return j&&p?m(t).then(function(t){return w(t)}).then(function(){return j}).then(function(e){return t.operations.createResponseError=function(r,n){return new y(e,r,n,t.req)},O(e,t)}).then(function(r){return t.res=r,e()}).catch(function(t){return Promise.reject(t)}):(j=new b,p&&a.set(f,j,void 0===k?6e4:k),m(t).then(function(t){return w(t)}).then(function(t){return c(r,void 0,void 0,function(){var r,n,i,s;return l(this,function(h){var b,m,w;return r=t.req.options,g&&(n=new AbortController),i=fetch(o,u(u({},r),{signal:n?n.signal:void 0})),b=t.req,m=function(){g&&n.abort()},[2,Promise.race([i,(s={promise:new Promise(function(t,e){w=setTimeout(function(){e(new d("timeout of ".concat(E,"ms exceeded"),b,"Timeout")),m()},E)}),timer:w}).promise]).then(function(t){var e="BROWSER"===v()&&"function"==typeof t.clone?t.clone():t;return x(e.status)&&p&&(e.useCache=!0,j.resolve(e)),t}).then(function(e){return t.operations.createResponseError=function(r,n){return new y(e,r,n,t.req)},function(t,e){c(this,void 0,void 0,function(){var r,n;return l(this,function(o){return(r=e.interceptors.globalResponseMap[e.req.url])&&Array.isArray(r)&&(n="BROWSER"===v()&&"function"==typeof t.clone?t.clone():t,r.forEach(function(t){return t(n,e.req.options,e.operations)})),[2]})})}(e,t),e}).then(function(e){return O(e,t)}).then(function(r){return t.res=r,e()}).catch(function(e){return(null==_?void 0:_.every(function(e){var r;return!(null===(r=null==t?void 0:t.req)||void 0===r?void 0:r.url.includes(e))}))&&a.delete(f),Promise.reject(e)}).finally(function(){s.timer&&clearTimeout(s.timer)})]})})}))}function E(t,e){var r;return e().then(function(){if(!t)return Promise.resolve();var e=t.res,n=void 0===e?{}:e,o=t.req,i=void 0===o?{}:o;(r=("BROWSER"===v()&&"function"==typeof n.clone?n.clone():n)||{}).useCache=n.useCache||!1;var s=i.options,a=(void 0===s?{}:s).responseType,u=void 0===a?"json":a;if("json"===u)return n.text().then(function(t){try{return JSON.parse(t)}catch(e){return t}});try{return n[u]()}catch(t){throw new y(r,"responseType not support",null,i,"ParseError")}}).then(function(e){var n,o=t.req,i=void 0===o?{}:o,s=i.options,a=void 0===s?{}:s,u=a.cacheType,c=a.ttl,l=a.validateStatus;if(r){if((void 0===l?function(t){return t>=200&&t<300}:l)(r.status)){if("persist"===u)try{null===(n=null==t?void 0:t.storage)||void 0===n||n.set(t.cacheKey,{data:e},c)}catch(t){}t.finalResult={data:e,response:r};return}throw new y(r,"http error",e,i,"HttpError")}}).catch(function(e){if(e instanceof d||e instanceof y)throw e;var r=t.req,n=t.res;throw e.request=e.request||r,e.response=e.response||n,e.type=e.type||e.name,e.data=e.data||void 0,e})}function T(t,e){if(!t)return e();var r=t.req,n=void 0===r?{}:r,o=n.options,i=void 0===o?{}:o,s=n.url,a=void 0===s?"":s,u=i.params;return i.method=i.method?i.method.toUpperCase():"GET",i.credentials=i.credentials||"same-origin",u&&(t.req.originUrl=a,t.req.url=Object.entries(u).reduce(function(t,e){var r=e[0],n=e[1],o="".concat(r,"=").concat(n);return t.indexOf("?")>-1?"".concat(t,"&").concat(o):"".concat(t,"?").concat(o)},a)),t.req.options=i,e()}function x(t,e){if(!t)return e();var r=t.req,n=(void 0===r?{}:r).options,o=void 0===n?{}:n,i=o.method;if(!["post","put","patch","delete"].includes((void 0===i?"get":i).toLowerCase()))return e();var s=o.requestType,a=o.data;if(a){var c=Object.prototype.toString.call(a);"[object Object]"===c||"[object Array]"===c?"json"===(void 0===s?"json":s)&&(o.headers=u({Accept:"application/json","Content-Type":"application/json;charset=UTF-8"},o.headers),o.body=JSON.stringify(a)):(o.headers=u({Accept:"application/json"},o.headers),o.body=a)}return t.req.options=o,e()}var k=function(){function t(t,e){void 0===t&&(t={}),void 0===e&&(e={}),this.defaultOpts=t,this.cache=e.cache,this.storage=e.storage,this.interceptors={globalRequestMap:e.requestInterceptors||{},globalResponseMap:e.responseInterceptors||{},instanceRequest:e.instanceRequestInterceptors||[],instanceResponse:e.instanceResponseInterceptors||[]},this.onion=new p,this.onion.use(x),this.onion.use(T),this.onion.use(E),this.onion.use(S)}return t.prototype.get=function(t,e){return void 0===e&&(e={}),this.fetch(t,u(u({},e),{method:"get"}))},t.prototype.post=function(t,e){return void 0===e&&(e={}),this.fetch(t,u(u({},e),{method:"post"}))},t.prototype.delete=function(t,e){return void 0===e&&(e={}),this.fetch(t,u(u({},e),{method:"delete"}))},t.prototype.put=function(t,e){return void 0===e&&(e={}),this.fetch(t,u(u({},e),{method:"put"}))},t.prototype.patch=function(t,e){return void 0===e&&(e={}),this.fetch(t,u(u({},e),{method:"patch"}))},t.prototype.fetch=function(t,e){var r=this;void 0===e&&(e={});var n=u(u(u({},this.defaultOpts),e),{headers:u(u({},this.defaultOpts.headers),e.headers)}),o=e.data,i=e.params,s=e.method,a=e.rewriteCacheKey,c=JSON.stringify({url:a?a(t):t,params:i,method:s,data:o}),l={req:{url:t,options:n},res:null,cache:this.cache,storage:this.storage,cacheKey:c,interceptors:this.interceptors,operations:{clearCache:function(){var t;(t=r.cache).clear&&t.clear()},clearOneCache:function(){return r.cache.clearOneCache(c)},clearStorage:function(){return r.storage.delete(c)}}};return new Promise(function(t,n){if((null==e?void 0:e.useCache)&&(null==e?void 0:e.cacheType)==="persist"&&r.storage.get(c)){t(r.storage.get(c));return}r.onion.execute(l).then(function(){return t(l.finalResult)}).catch(function(e){var r=l.req.options.errorHandler;if(r)try{var o=r(e);t(o)}catch(t){n(t)}n(e)})})},t}(),j=function(){function t(){var t=this;this.max_cache_size=4718592,this.get=function(e){if(window.localStorage)try{var r=localStorage.getItem(e)||"{}",n=JSON.parse(r),o=n.expireAt,i=n.data;if(!i)return null;if(Date.now()<=o)return i;t.delete(e)}catch(t){}return null},this.delete=function(t){window.localStorage&&localStorage.removeItem(t)}}return t.prototype.isOverflowSize=function(){var t;try{for(var e=0,r=0;r<localStorage.length;r+=1){var n=null!==(t=localStorage.key(r))&&void 0!==t?t:"";if(n){var o=localStorage.getItem(n)||"";e+=n.length+o.length}}return e>this.max_cache_size}catch(t){return!1}},t.prototype.set=function(t,e,r){void 0===r&&(r=6e4);try{if(this.isOverflowSize()||!window.localStorage)return;var n=Date.now();localStorage.setItem(t,JSON.stringify({expireAt:n+r,data:e}))}catch(t){}},t}(),I=function(){function t(e){this.instanceRequestInterceptors=[],this.instanceResponseInterceptors=[],e&&e.rewriteCacheKey&&delete e.rewriteCacheKey,this.fetch=new k(e,{cache:t.cache,storage:t.storage,requestInterceptors:t.requestInterceptors,responseInterceptors:t.responseInterceptors,instanceRequestInterceptors:this.instanceRequestInterceptors,instanceResponseInterceptors:this.instanceResponseInterceptors})}return t.addGlobalRequestInterceptors=function(e){Object.entries(e).forEach(function(e){var r=e[0],n=e[1];Array.isArray(t.requestInterceptors[r])||(t.requestInterceptors[r]=[]),n.forEach(function(e){return t.requestInterceptors[r].push(e)})})},t.addGlobalResponseInterceptors=function(e){Object.entries(e).forEach(function(e){var r=e[0],n=e[1];Array.isArray(t.responseInterceptors[r])||(t.responseInterceptors[r]=[]),n.forEach(function(e){return t.responseInterceptors[r].push(e)})})},t.prototype.addInstanceRequestInterceptors=function(t){var e=this;t.forEach(function(t){return e.instanceRequestInterceptors.push(t)})},t.prototype.addInstanceResponseInterceptors=function(t){var e=this;t.forEach(function(t){return e.instanceResponseInterceptors.push(t)})},t.prototype.request=function(t,e){return void 0===e&&(e={}),this.fetch.get(t,e)},t.prototype.get=function(t,e){return void 0===e&&(e={}),this.fetch.get(t,e)},t.prototype.post=function(t,e){return void 0===e&&(e={}),this.fetch.post(t,e)},t.prototype.patch=function(t,e){return void 0===e&&(e={}),this.fetch.patch(t,e)},t.prototype.put=function(t,e){return void 0===e&&(e={}),this.fetch.put(t,e)},t.prototype.delete=function(t,e){return void 0===e&&(e={}),this.fetch.delete(t,e)},t.prototype.freezeCacheDeletion=function(t){void 0===t&&(t={}),this.fetch.cache.freezeCacheDeletion(t)},t.storage=new j,t.cache=new h,t.version="2.0.0",t.requestInterceptors={},t.responseInterceptors={},t.getGlobalSharableEntry=function(){var e=P(t.version);return A().SharedUniRequest[e]},t}();function A(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw Error("unable to locate global object")}function P(t){return t.split(".")[0]||"0"}var C=P(I.version),R=A();R.SharedUniRequest||(R.SharedUniRequest={}),R.SharedUniRequest[C]||(R.SharedUniRequest[C]={cache:new h,requestInterceptors:{},responseInterceptors:{}}),I.cache=R.SharedUniRequest[C].cache,I.requestInterceptors=R.SharedUniRequest[C].requestInterceptors,I.responseInterceptors=R.SharedUniRequest[C].responseInterceptors},482:function(t,e,r){"use strict";/*!
 *  decimal.js v10.4.3
 *  An arbitrary-precision Decimal type for JavaScript.
 *  https://github.com/MikeMcl/decimal.js
 *  Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>
 *  MIT Licence
 */var n,o,i="0123456789abcdef",s="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",a="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",u={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-9e15,maxE:9e15,crypto:!1},c=!0,l="[DecimalError] ",f=l+"Invalid argument: ",h=l+"Precision limit exceeded",p=l+"crypto unavailable",d="[object Decimal]",y=Math.floor,v=Math.pow,b=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,g=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,_=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,m=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,w=s.length-1,O=a.length-1,S={toStringTag:d};function E(t){var e,r,n,o=t.length-1,i="",s=t[0];if(o>0){for(i+=s,e=1;e<o;e++)(r=7-(n=t[e]+"").length)&&(i+=M(r)),i+=n;(r=7-(n=(s=t[e])+"").length)&&(i+=M(r))}else if(0===s)return"0";for(;s%10==0;)s/=10;return i+s}function T(t,e,r){if(t!==~~t||t<e||t>r)throw Error(f+t)}function x(t,e,r,n){var o,i,s,a;for(i=t[0];i>=10;i/=10)--e;return--e<0?(e+=7,o=0):(o=Math.ceil((e+1)/7),e%=7),i=v(10,7-e),a=t[o]%i|0,null==n?e<3?(0==e?a=a/100|0:1==e&&(a=a/10|0),s=r<4&&99999==a||r>3&&49999==a||5e4==a||0==a):s=(r<4&&a+1==i||r>3&&a+1==i/2)&&(t[o+1]/i/100|0)==v(10,e-2)-1||(a==i/2||0==a)&&(t[o+1]/i/100|0)==0:e<4?(0==e?a=a/1e3|0:1==e?a=a/100|0:2==e&&(a=a/10|0),s=(n||r<4)&&9999==a||!n&&r>3&&4999==a):s=((n||r<4)&&a+1==i||!n&&r>3&&a+1==i/2)&&(t[o+1]/i/1e3|0)==v(10,e-3)-1,s}function k(t,e,r){for(var n,o,s=[0],a=0,u=t.length;a<u;){for(o=s.length;o--;)s[o]*=e;for(s[0]+=i.indexOf(t.charAt(a++)),n=0;n<s.length;n++)s[n]>r-1&&(void 0===s[n+1]&&(s[n+1]=0),s[n+1]+=s[n]/r|0,s[n]%=r)}return s.reverse()}S.absoluteValue=S.abs=function(){var t=new this.constructor(this);return t.s<0&&(t.s=1),I(t)},S.ceil=function(){return I(new this.constructor(this),this.e+1,2)},S.clampedTo=S.clamp=function(t,e){var r=this.constructor;if(t=new r(t),e=new r(e),!t.s||!e.s)return new r(NaN);if(t.gt(e))throw Error(f+e);return 0>this.cmp(t)?t:this.cmp(e)>0?e:new r(this)},S.comparedTo=S.cmp=function(t){var e,r,n,o,i=this.d,s=(t=new this.constructor(t)).d,a=this.s,u=t.s;if(!i||!s)return a&&u?a!==u?a:i===s?0:!i^a<0?1:-1:NaN;if(!i[0]||!s[0])return i[0]?a:s[0]?-u:0;if(a!==u)return a;if(this.e!==t.e)return this.e>t.e^a<0?1:-1;for(e=0,r=(n=i.length)<(o=s.length)?n:o;e<r;++e)if(i[e]!==s[e])return i[e]>s[e]^a<0?1:-1;return n===o?0:n>o^a<0?1:-1},S.cosine=S.cos=function(){var t,e,r=this,n=r.constructor;return r.d?r.d[0]?(t=n.precision,e=n.rounding,n.precision=t+Math.max(r.e,r.sd())+7,n.rounding=1,r=function(t,e){var r,n,o;if(e.isZero())return e;(n=e.d.length)<32?o=(1/F(4,r=Math.ceil(n/3))).toString():(r=16,o="2.3283064365386962890625e-10"),t.precision+=r,e=z(t,1,e.times(o),new t(1));for(var i=r;i--;){var s=e.times(e);e=s.times(s).minus(s).times(8).plus(1)}return t.precision-=r,e}(n,Y(n,r)),n.precision=t,n.rounding=e,I(2==o||3==o?r.neg():r,t,e,!0)):new n(1):new n(NaN)},S.cubeRoot=S.cbrt=function(){var t,e,r,n,o,i,s,a,u,l,f=this.constructor;if(!this.isFinite()||this.isZero())return new f(this);for(c=!1,(i=this.s*v(this.s*this,1/3))&&Math.abs(i)!=1/0?n=new f(i.toString()):(r=E(this.d),(i=((t=this.e)-r.length+1)%3)&&(r+=1==i||-2==i?"0":"00"),i=v(r,1/3),t=y((t+1)/3)-(t%3==(t<0?-1:2)),r=i==1/0?"5e"+t:(r=i.toExponential()).slice(0,r.indexOf("e")+1)+t,(n=new f(r)).s=this.s),s=(t=f.precision)+3;;)if(l=(u=(a=n).times(a).times(a)).plus(this),n=j(l.plus(this).times(a),l.plus(u),s+2,1),E(a.d).slice(0,s)===(r=E(n.d)).slice(0,s)){if("9999"!=(r=r.slice(s-3,s+1))&&(o||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(I(n,t+1,1),e=!n.times(n).times(n).eq(this));break}if(!o&&(I(a,t+1,0),a.times(a).times(a).eq(this))){n=a;break}s+=4,o=1}return c=!0,I(n,t,f.rounding,e)},S.decimalPlaces=S.dp=function(){var t,e=this.d,r=NaN;if(e){if(r=((t=e.length-1)-y(this.e/7))*7,t=e[t])for(;t%10==0;t/=10)r--;r<0&&(r=0)}return r},S.dividedBy=S.div=function(t){return j(this,new this.constructor(t))},S.dividedToIntegerBy=S.divToInt=function(t){var e=this.constructor;return I(j(this,new e(t),0,1,1),e.precision,e.rounding)},S.equals=S.eq=function(t){return 0===this.cmp(t)},S.floor=function(){return I(new this.constructor(this),this.e+1,3)},S.greaterThan=S.gt=function(t){return this.cmp(t)>0},S.greaterThanOrEqualTo=S.gte=function(t){var e=this.cmp(t);return 1==e||0===e},S.hyperbolicCosine=S.cosh=function(){var t,e,r,n,o,i=this,s=i.constructor,a=new s(1);if(!i.isFinite())return new s(i.s?1/0:NaN);if(i.isZero())return a;r=s.precision,n=s.rounding,s.precision=r+Math.max(i.e,i.sd())+4,s.rounding=1,(o=i.d.length)<32?e=(1/F(4,t=Math.ceil(o/3))).toString():(t=16,e="2.3283064365386962890625e-10"),i=z(s,1,i.times(e),new s(1),!0);for(var u,c=t,l=new s(8);c--;)u=i.times(i),i=a.minus(u.times(l.minus(u.times(l))));return I(i,s.precision=r,s.rounding=n,!0)},S.hyperbolicSine=S.sinh=function(){var t,e,r,n,o=this,i=o.constructor;if(!o.isFinite()||o.isZero())return new i(o);if(e=i.precision,r=i.rounding,i.precision=e+Math.max(o.e,o.sd())+4,i.rounding=1,(n=o.d.length)<3)o=z(i,2,o,o,!0);else{t=(t=1.4*Math.sqrt(n))>16?16:0|t,o=o.times(1/F(5,t)),o=z(i,2,o,o,!0);for(var s,a=new i(5),u=new i(16),c=new i(20);t--;)s=o.times(o),o=o.times(a.plus(s.times(u.times(s).plus(c))))}return i.precision=e,i.rounding=r,I(o,e,r,!0)},S.hyperbolicTangent=S.tanh=function(){var t,e,r=this.constructor;return this.isFinite()?this.isZero()?new r(this):(t=r.precision,e=r.rounding,r.precision=t+7,r.rounding=1,j(this.sinh(),this.cosh(),r.precision=t,r.rounding=e)):new r(this.s)},S.inverseCosine=S.acos=function(){var t,e=this,r=e.constructor,n=e.abs().cmp(1),o=r.precision,i=r.rounding;return -1!==n?0===n?e.isNeg()?R(r,o,i):new r(0):new r(NaN):e.isZero()?R(r,o+4,i).times(.5):(r.precision=o+6,r.rounding=1,e=e.asin(),t=R(r,o+4,i).times(.5),r.precision=o,r.rounding=i,t.minus(e))},S.inverseHyperbolicCosine=S.acosh=function(){var t,e,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(t=n.precision,e=n.rounding,n.precision=t+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,c=!1,r=r.times(r).minus(1).sqrt().plus(r),c=!0,n.precision=t,n.rounding=e,r.ln()):new n(r)},S.inverseHyperbolicSine=S.asinh=function(){var t,e,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,c=!1,r=r.times(r).plus(1).sqrt().plus(r),c=!0,n.precision=t,n.rounding=e,r.ln())},S.inverseHyperbolicTangent=S.atanh=function(){var t,e,r,n,o=this,i=o.constructor;return o.isFinite()?o.e>=0?new i(o.abs().eq(1)?o.s/0:o.isZero()?o:NaN):(t=i.precision,e=i.rounding,Math.max(n=o.sd(),t)<-(2*o.e)-1)?I(new i(o),t,e,!0):(i.precision=r=n-o.e,o=j(o.plus(1),new i(1).minus(o),r+t,1),i.precision=t+4,i.rounding=1,o=o.ln(),i.precision=t,i.rounding=e,o.times(.5)):new i(NaN)},S.inverseSine=S.asin=function(){var t,e,r,n,o=this,i=o.constructor;return o.isZero()?new i(o):(e=o.abs().cmp(1),r=i.precision,n=i.rounding,-1!==e)?0===e?((t=R(i,r+4,n).times(.5)).s=o.s,t):new i(NaN):(i.precision=r+6,i.rounding=1,o=o.div(new i(1).minus(o.times(o)).sqrt().plus(1)).atan(),i.precision=r,i.rounding=n,o.times(2))},S.inverseTangent=S.atan=function(){var t,e,r,n,o,i,s,a,u,l=this,f=l.constructor,h=f.precision,p=f.rounding;if(l.isFinite()){if(l.isZero())return new f(l);if(l.abs().eq(1)&&h+4<=O)return(s=R(f,h+4,p).times(.25)).s=l.s,s}else{if(!l.s)return new f(NaN);if(h+4<=O)return(s=R(f,h+4,p).times(.5)).s=l.s,s}for(f.precision=a=h+10,f.rounding=1,t=r=Math.min(28,a/7+2|0);t;--t)l=l.div(l.times(l).plus(1).sqrt().plus(1));for(c=!1,e=Math.ceil(a/7),n=1,u=l.times(l),s=new f(l),o=l;-1!==t;)if(o=o.times(u),i=s.minus(o.div(n+=2)),o=o.times(u),void 0!==(s=i.plus(o.div(n+=2))).d[e])for(t=e;s.d[t]===i.d[t]&&t--;);return r&&(s=s.times(2<<r-1)),c=!0,I(s,f.precision=h,f.rounding=p,!0)},S.isFinite=function(){return!!this.d},S.isInteger=S.isInt=function(){return!!this.d&&y(this.e/7)>this.d.length-2},S.isNaN=function(){return!this.s},S.isNegative=S.isNeg=function(){return this.s<0},S.isPositive=S.isPos=function(){return this.s>0},S.isZero=function(){return!!this.d&&0===this.d[0]},S.lessThan=S.lt=function(t){return 0>this.cmp(t)},S.lessThanOrEqualTo=S.lte=function(t){return 1>this.cmp(t)},S.logarithm=S.log=function(t){var e,r,n,o,i,s,a,u=this.constructor,l=u.precision,f=u.rounding;if(null==t)t=new u(10),e=!0;else{if(r=(t=new u(t)).d,t.s<0||!r||!r[0]||t.eq(1))return new u(NaN);e=t.eq(10)}if(r=this.d,this.s<0||!r||!r[0]||this.eq(1))return new u(r&&!r[0]?-1/0:1!=this.s?NaN:r?0:1/0);if(e){if(r.length>1)o=!0;else{for(n=r[0];n%10==0;)n/=10;o=1!==n}}if(c=!1,x((a=j(U(this,s=l+5),e?C(u,s+10):U(t,s),s,1)).d,n=l,f))do if(s+=10,a=j(U(this,s),e?C(u,s+10):U(t,s),s,1),!o){+E(a.d).slice(n+1,n+15)+1==1e14&&(a=I(a,l+1,0));break}while(x(a.d,n+=10,f));return c=!0,I(a,l,f)},S.minus=S.sub=function(t){var e,r,n,o,i,s,a,u,l,f,h,p,d=this.constructor;if(t=new d(t),!this.d||!t.d)return this.s&&t.s?this.d?t.s=-t.s:t=new d(t.d||this.s!==t.s?this:NaN):t=new d(NaN),t;if(this.s!=t.s)return t.s=-t.s,this.plus(t);if(l=this.d,p=t.d,a=d.precision,u=d.rounding,!l[0]||!p[0]){if(p[0])t.s=-t.s;else{if(!l[0])return new d(-0);t=new d(this)}return c?I(t,a,u):t}if(r=y(t.e/7),f=y(this.e/7),l=l.slice(),i=f-r){for((h=i<0)?(e=l,i=-i,s=p.length):(e=p,r=f,s=l.length),n=Math.max(Math.ceil(a/7),s)+2,i>n&&(i=n,e.length=1),e.reverse(),n=i;n--;)e.push(0);e.reverse()}else{for((h=(n=l.length)<(s=p.length))&&(s=n),n=0;n<s;n++)if(l[n]!=p[n]){h=l[n]<p[n];break}i=0}for(h&&(e=l,l=p,p=e,t.s=-t.s),s=l.length,n=p.length-s;n>0;--n)l[s++]=0;for(n=p.length;n>i;){if(l[--n]<p[n]){for(o=n;o&&0===l[--o];)l[o]=1e7-1;--l[o],l[n]+=1e7}l[n]-=p[n]}for(;0===l[--s];)l.pop();for(;0===l[0];l.shift())--r;return l[0]?(t.d=l,t.e=P(l,r),c?I(t,a,u):t):new d(-0)},S.modulo=S.mod=function(t){var e,r=this.constructor;return(t=new r(t),this.d&&t.s&&(!t.d||t.d[0]))?t.d&&(!this.d||this.d[0])?(c=!1,9==r.modulo?(e=j(this,t.abs(),0,3,1),e.s*=t.s):e=j(this,t,0,r.modulo,1),e=e.times(t),c=!0,this.minus(e)):I(new r(this),r.precision,r.rounding):new r(NaN)},S.naturalExponential=S.exp=function(){return B(this)},S.naturalLogarithm=S.ln=function(){return U(this)},S.negated=S.neg=function(){var t=new this.constructor(this);return t.s=-t.s,I(t)},S.plus=S.add=function(t){var e,r,n,o,i,s,a,u,l,f,h=this.constructor;if(t=new h(t),!this.d||!t.d)return this.s&&t.s?this.d||(t=new h(t.d||this.s===t.s?this:NaN)):t=new h(NaN),t;if(this.s!=t.s)return t.s=-t.s,this.minus(t);if(l=this.d,f=t.d,a=h.precision,u=h.rounding,!l[0]||!f[0])return f[0]||(t=new h(this)),c?I(t,a,u):t;if(i=y(this.e/7),n=y(t.e/7),l=l.slice(),o=i-n){for(o<0?(r=l,o=-o,s=f.length):(r=f,n=i,s=l.length),o>(s=(i=Math.ceil(a/7))>s?i+1:s+1)&&(o=s,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for((s=l.length)-(o=f.length)<0&&(o=s,r=f,f=l,l=r),e=0;o;)e=(l[--o]=l[o]+f[o]+e)/1e7|0,l[o]%=1e7;for(e&&(l.unshift(e),++n),s=l.length;0==l[--s];)l.pop();return t.d=l,t.e=P(l,n),c?I(t,a,u):t},S.precision=S.sd=function(t){var e;if(void 0!==t&&!!t!==t&&1!==t&&0!==t)throw Error(f+t);return this.d?(e=N(this.d),t&&this.e+1>e&&(e=this.e+1)):e=NaN,e},S.round=function(){var t=this.constructor;return I(new t(this),this.e+1,t.rounding)},S.sine=S.sin=function(){var t,e,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+Math.max(r.e,r.sd())+7,n.rounding=1,r=function(t,e){var r,n=e.d.length;if(n<3)return e.isZero()?e:z(t,2,e,e);r=(r=1.4*Math.sqrt(n))>16?16:0|r,e=e.times(1/F(5,r)),e=z(t,2,e,e);for(var o,i=new t(5),s=new t(16),a=new t(20);r--;)o=e.times(e),e=e.times(i.plus(o.times(s.times(o).minus(a))));return e}(n,Y(n,r)),n.precision=t,n.rounding=e,I(o>2?r.neg():r,t,e,!0)):new n(NaN)},S.squareRoot=S.sqrt=function(){var t,e,r,n,o,i,s=this.d,a=this.e,u=this.s,l=this.constructor;if(1!==u||!s||!s[0])return new l(!u||u<0&&(!s||s[0])?NaN:s?this:1/0);for(c=!1,0==(u=Math.sqrt(+this))||u==1/0?(((e=E(s)).length+a)%2==0&&(e+="0"),u=Math.sqrt(e),a=y((a+1)/2)-(a<0||a%2),e=u==1/0?"5e"+a:(e=u.toExponential()).slice(0,e.indexOf("e")+1)+a,n=new l(e)):n=new l(u.toString()),r=(a=l.precision)+3;;)if(n=(i=n).plus(j(this,i,r+2,1)).times(.5),E(i.d).slice(0,r)===(e=E(n.d)).slice(0,r)){if("9999"!=(e=e.slice(r-3,r+1))&&(o||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(I(n,a+1,1),t=!n.times(n).eq(this));break}if(!o&&(I(i,a+1,0),i.times(i).eq(this))){n=i;break}r+=4,o=1}return c=!0,I(n,a,l.rounding,t)},S.tangent=S.tan=function(){var t,e,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+10,n.rounding=1,(r=r.sin()).s=1,r=j(r,new n(1).minus(r.times(r)).sqrt(),t+10,0),n.precision=t,n.rounding=e,I(2==o||4==o?r.neg():r,t,e,!0)):new n(NaN)},S.times=S.mul=function(t){var e,r,n,o,i,s,a,u,l,f=this.constructor,h=this.d,p=(t=new f(t)).d;if(t.s*=this.s,!h||!h[0]||!p||!p[0])return new f(t.s&&(!h||h[0]||p)&&(!p||p[0]||h)?h&&p?0*t.s:t.s/0:NaN);for(r=y(this.e/7)+y(t.e/7),(u=h.length)<(l=p.length)&&(i=h,h=p,p=i,s=u,u=l,l=s),i=[],n=s=u+l;n--;)i.push(0);for(n=l;--n>=0;){for(e=0,o=u+n;o>n;)a=i[o]+p[n]*h[o-n-1]+e,i[o--]=a%1e7|0,e=a/1e7|0;i[o]=(i[o]+e)%1e7|0}for(;!i[--s];)i.pop();return e?++r:i.shift(),t.d=i,t.e=P(i,r),c?I(t,f.precision,f.rounding):t},S.toBinary=function(t,e){return G(this,2,t,e)},S.toDecimalPlaces=S.toDP=function(t,e){var r=this,n=r.constructor;return(r=new n(r),void 0===t)?r:(T(t,0,1e9),void 0===e?e=n.rounding:T(e,0,8),I(r,t+r.e+1,e))},S.toExponential=function(t,e){var r,n=this,o=n.constructor;return void 0===t?r=A(n,!0):(T(t,0,1e9),void 0===e?e=o.rounding:T(e,0,8),r=A(n=I(new o(n),t+1,e),!0,t+1)),n.isNeg()&&!n.isZero()?"-"+r:r},S.toFixed=function(t,e){var r,n,o=this.constructor;return void 0===t?r=A(this):(T(t,0,1e9),void 0===e?e=o.rounding:T(e,0,8),r=A(n=I(new o(this),t+this.e+1,e),!1,t+n.e+1)),this.isNeg()&&!this.isZero()?"-"+r:r},S.toFraction=function(t){var e,r,n,o,i,s,a,u,l,h,p,d,y=this.d,b=this.constructor;if(!y)return new b(this);if(l=r=new b(1),n=u=new b(0),s=(i=(e=new b(n)).e=N(y)-this.e-1)%7,e.d[0]=v(10,s<0?7+s:s),null==t)t=i>0?e:l;else{if(!(a=new b(t)).isInt()||a.lt(l))throw Error(f+a);t=a.gt(e)?i>0?e:l:a}for(c=!1,a=new b(E(y)),h=b.precision,b.precision=i=14*y.length;p=j(a,e,0,1,1),1!=(o=r.plus(p.times(n))).cmp(t);)r=n,n=o,o=l,l=u.plus(p.times(o)),u=o,o=e,e=a.minus(p.times(o)),a=o;return o=j(t.minus(r),n,0,1,1),u=u.plus(o.times(l)),r=r.plus(o.times(n)),u.s=l.s=this.s,d=1>j(l,n,i,1).minus(this).abs().cmp(j(u,r,i,1).minus(this).abs())?[l,n]:[u,r],b.precision=h,c=!0,d},S.toHexadecimal=S.toHex=function(t,e){return G(this,16,t,e)},S.toNearest=function(t,e){var r=this,n=r.constructor;if(r=new n(r),null==t){if(!r.d)return r;t=new n(1),e=n.rounding}else{if(t=new n(t),void 0===e?e=n.rounding:T(e,0,8),!r.d)return t.s?r:t;if(!t.d)return t.s&&(t.s=r.s),t}return t.d[0]?(c=!1,r=j(r,t,0,e,1).times(t),c=!0,I(r)):(t.s=r.s,r=t),r},S.toNumber=function(){return+this},S.toOctal=function(t,e){return G(this,8,t,e)},S.toPower=S.pow=function(t){var e,r,n,o,i,s,a=this,u=a.constructor,l=+(t=new u(t));if(!a.d||!t.d||!a.d[0]||!t.d[0])return new u(v(+a,l));if((a=new u(a)).eq(1))return a;if(n=u.precision,i=u.rounding,t.eq(1))return I(a,n,i);if((e=y(t.e/7))>=t.d.length-1&&(r=l<0?-l:l)<=9007199254740991)return o=D(u,a,r,n),t.s<0?new u(1).div(o):I(o,n,i);if((s=a.s)<0){if(e<t.d.length-1)return new u(NaN);if((1&t.d[e])==0&&(s=1),0==a.e&&1==a.d[0]&&1==a.d.length)return a.s=s,a}return(e=0!=(r=v(+a,l))&&isFinite(r)?new u(r+"").e:y(l*(Math.log("0."+E(a.d))/Math.LN10+a.e+1)))>u.maxE+1||e<u.minE-1?new u(e>0?s/0:0):(c=!1,u.rounding=a.s=1,r=Math.min(12,(e+"").length),(o=B(t.times(U(a,n+r)),n)).d&&x((o=I(o,n+5,1)).d,n,i)&&(e=n+10,+E((o=I(B(t.times(U(a,e+r)),e),e+5,1)).d).slice(n+1,n+15)+1==1e14&&(o=I(o,n+1,0))),o.s=s,c=!0,u.rounding=i,I(o,n,i))},S.toPrecision=function(t,e){var r,n=this,o=n.constructor;return void 0===t?r=A(n,n.e<=o.toExpNeg||n.e>=o.toExpPos):(T(t,1,1e9),void 0===e?e=o.rounding:T(e,0,8),r=A(n=I(new o(n),t,e),t<=n.e||n.e<=o.toExpNeg,t)),n.isNeg()&&!n.isZero()?"-"+r:r},S.toSignificantDigits=S.toSD=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(T(t,1,1e9),void 0===e?e=r.rounding:T(e,0,8)),I(new r(this),t,e)},S.toString=function(){var t=this.constructor,e=A(this,this.e<=t.toExpNeg||this.e>=t.toExpPos);return this.isNeg()&&!this.isZero()?"-"+e:e},S.truncated=S.trunc=function(){return I(new this.constructor(this),this.e+1,1)},S.valueOf=S.toJSON=function(){var t=this.constructor,e=A(this,this.e<=t.toExpNeg||this.e>=t.toExpPos);return this.isNeg()?"-"+e:e};var j=function(){function t(t,e,r){var n,o=0,i=t.length;for(t=t.slice();i--;)n=t[i]*e+o,t[i]=n%r|0,o=n/r|0;return o&&t.unshift(o),t}function e(t,e,r,n){var o,i;if(r!=n)i=r>n?1:-1;else for(o=i=0;o<r;o++)if(t[o]!=e[o]){i=t[o]>e[o]?1:-1;break}return i}function r(t,e,r,n){for(var o=0;r--;)t[r]-=o,o=t[r]<e[r]?1:0,t[r]=o*n+t[r]-e[r];for(;!t[0]&&t.length>1;)t.shift()}return function(o,i,s,a,u,c){var l,f,h,p,d,v,b,g,_,m,w,O,S,E,T,x,k,j,A,P,C=o.constructor,R=o.s==i.s?1:-1,N=o.d,M=i.d;if(!N||!N[0]||!M||!M[0])return new C(o.s&&i.s&&(N?!M||N[0]!=M[0]:M)?N&&0==N[0]||!M?0*R:R/0:NaN);for(c?(d=1,f=o.e-i.e):(c=1e7,d=7,f=y(o.e/d)-y(i.e/d)),A=M.length,k=N.length,m=(_=new C(R)).d=[],h=0;M[h]==(N[h]||0);h++);if(M[h]>(N[h]||0)&&f--,null==s?(E=s=C.precision,a=C.rounding):E=u?s+(o.e-i.e)+1:s,E<0)m.push(1),v=!0;else{if(E=E/d+2|0,h=0,1==A){for(p=0,M=M[0],E++;(h<k||p)&&E--;h++)T=p*c+(N[h]||0),m[h]=T/M|0,p=T%M|0;v=p||h<k}else{for((p=c/(M[0]+1)|0)>1&&(M=t(M,p,c),N=t(N,p,c),A=M.length,k=N.length),x=A,O=(w=N.slice(0,A)).length;O<A;)w[O++]=0;(P=M.slice()).unshift(0),j=M[0],M[1]>=c/2&&++j;do p=0,(l=e(M,w,A,O))<0?(S=w[0],A!=O&&(S=S*c+(w[1]||0)),(p=S/j|0)>1?(p>=c&&(p=c-1),g=(b=t(M,p,c)).length,O=w.length,1==(l=e(b,w,g,O))&&(p--,r(b,A<g?P:M,g,c))):(0==p&&(l=p=1),b=M.slice()),(g=b.length)<O&&b.unshift(0),r(w,b,O,c),-1==l&&(O=w.length,(l=e(M,w,A,O))<1&&(p++,r(w,A<O?P:M,O,c))),O=w.length):0===l&&(p++,w=[0]),m[h++]=p,l&&w[0]?w[O++]=N[x]||0:(w=[N[x]],O=1);while((x++<k||void 0!==w[0])&&E--);v=void 0!==w[0]}m[0]||m.shift()}if(1==d)_.e=f,n=v;else{for(h=1,p=m[0];p>=10;p/=10)h++;_.e=h+f*d-1,I(_,u?s+_.e+1:s,a,v)}return _}}();function I(t,e,r,n){var o,i,s,a,u,l,f,h,p,d=t.constructor;t:if(null!=e){if(!(h=t.d))return t;for(o=1,a=h[0];a>=10;a/=10)o++;if((i=e-o)<0)i+=7,s=e,u=(f=h[p=0])/v(10,o-s-1)%10|0;else if(p=Math.ceil((i+1)/7),a=h.length,p>=a){if(n){for(;a++<=p;)h.push(0);f=u=0,o=1,i%=7,s=i-7+1}else break t}else{for(o=1,f=a=h[p];a>=10;a/=10)o++;i%=7,u=(s=i-7+o)<0?0:f/v(10,o-s-1)%10|0}if(n=n||e<0||void 0!==h[p+1]||(s<0?f:f%v(10,o-s-1)),l=r<4?(u||n)&&(0==r||r==(t.s<0?3:2)):u>5||5==u&&(4==r||n||6==r&&(i>0?s>0?f/v(10,o-s):0:h[p-1])%10&1||r==(t.s<0?8:7)),e<1||!h[0])return h.length=0,l?(e-=t.e+1,h[0]=v(10,(7-e%7)%7),t.e=-e||0):h[0]=t.e=0,t;if(0==i?(h.length=p,a=1,p--):(h.length=p+1,a=v(10,7-i),h[p]=s>0?(f/v(10,o-s)%v(10,s)|0)*a:0),l)for(;;){if(0==p){for(i=1,s=h[0];s>=10;s/=10)i++;for(s=h[0]+=a,a=1;s>=10;s/=10)a++;i!=a&&(t.e++,1e7==h[0]&&(h[0]=1));break}if(h[p]+=a,1e7!=h[p])break;h[p--]=0,a=1}for(i=h.length;0===h[--i];)h.pop()}return c&&(t.e>d.maxE?(t.d=null,t.e=NaN):t.e<d.minE&&(t.e=0,t.d=[0])),t}function A(t,e,r){if(!t.isFinite())return H(t);var n,o=t.e,i=E(t.d),s=i.length;return e?(r&&(n=r-s)>0?i=i.charAt(0)+"."+i.slice(1)+M(n):s>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(t.e<0?"e":"e+")+t.e):o<0?(i="0."+M(-o-1)+i,r&&(n=r-s)>0&&(i+=M(n))):o>=s?(i+=M(o+1-s),r&&(n=r-o-1)>0&&(i=i+"."+M(n))):((n=o+1)<s&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-s)>0&&(o+1===s&&(i+="."),i+=M(n))),i}function P(t,e){var r=t[0];for(e*=7;r>=10;r/=10)e++;return e}function C(t,e,r){if(e>w)throw c=!0,r&&(t.precision=r),Error(h);return I(new t(s),e,1,!0)}function R(t,e,r){if(e>O)throw Error(h);return I(new t(a),e,r,!0)}function N(t){var e=t.length-1,r=7*e+1;if(e=t[e]){for(;e%10==0;e/=10)r--;for(e=t[0];e>=10;e/=10)r++}return r}function M(t){for(var e="";t--;)e+="0";return e}function D(t,e,r,n){var o,i=new t(1),s=Math.ceil(n/7+4);for(c=!1;;){if(r%2&&Z((i=i.times(e)).d,s)&&(o=!0),0===(r=y(r/2))){r=i.d.length-1,o&&0===i.d[r]&&++i.d[r];break}Z((e=e.times(e)).d,s)}return c=!0,i}function L(t){return 1&t.d[t.d.length-1]}function q(t,e,r){for(var n,o=new t(e[0]),i=0;++i<e.length;)if((n=new t(e[i])).s)o[r](n)&&(o=n);else{o=n;break}return o}function B(t,e){var r,n,o,i,s,a,u,l=0,f=0,h=0,p=t.constructor,d=p.rounding,y=p.precision;if(!t.d||!t.d[0]||t.e>17)return new p(t.d?t.d[0]?t.s<0?0:1/0:1:t.s?t.s<0?0:t:0/0);for(null==e?(c=!1,u=y):u=e,a=new p(.03125);t.e>-2;)t=t.times(a),h+=5;for(u+=n=Math.log(v(2,h))/Math.LN10*2+5|0,r=i=s=new p(1),p.precision=u;;){if(i=I(i.times(t),u,1),r=r.times(++f),E((a=s.plus(j(i,r,u,1))).d).slice(0,u)===E(s.d).slice(0,u)){for(o=h;o--;)s=I(s.times(s),u,1);if(null!=e)return p.precision=y,s;if(!(l<3&&x(s.d,u-n,d,l)))return I(s,p.precision=y,d,c=!0);p.precision=u+=10,r=i=a=new p(1),f=0,l++}s=a}}function U(t,e){var r,n,o,i,s,a,u,l,f,h,p,d=1,y=t,v=y.d,b=y.constructor,g=b.rounding,_=b.precision;if(y.s<0||!v||!v[0]||!y.e&&1==v[0]&&1==v.length)return new b(v&&!v[0]?-1/0:1!=y.s?NaN:v?0:y);if(null==e?(c=!1,f=_):f=e,b.precision=f+=10,n=(r=E(v)).charAt(0),!(15e14>Math.abs(i=y.e)))return l=C(b,f+2,_).times(i+""),y=U(new b(n+"."+r.slice(1)),f-10).plus(l),b.precision=_,null==e?I(y,_,g,c=!0):y;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=E((y=y.times(t)).d)).charAt(0),d++;for(i=y.e,n>1?(y=new b("0."+r),i++):y=new b(n+"."+r.slice(1)),h=y,u=s=y=j(y.minus(1),y.plus(1),f,1),p=I(y.times(y),f,1),o=3;;){if(s=I(s.times(p),f,1),E((l=u.plus(j(s,new b(o),f,1))).d).slice(0,f)===E(u.d).slice(0,f)){if(u=u.times(2),0!==i&&(u=u.plus(C(b,f+2,_).times(i+""))),u=j(u,new b(d),f,1),null!=e)return b.precision=_,u;if(!x(u.d,f-10,g,a))return I(u,b.precision=_,g,c=!0);b.precision=f+=10,l=s=y=j(h.minus(1),h.plus(1),f,1),p=I(y.times(y),f,1),o=a=1}u=l,o+=2}}function H(t){return String(t.s*t.s/0)}function $(t,e){var r,n,o;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;48===e.charCodeAt(n);n++);for(o=e.length;48===e.charCodeAt(o-1);--o);if(e=e.slice(n,o)){if(o-=n,t.e=r=r-n-1,t.d=[],n=(r+1)%7,r<0&&(n+=7),n<o){for(n&&t.d.push(+e.slice(0,n)),o-=7;n<o;)t.d.push(+e.slice(n,n+=7));n=7-(e=e.slice(n)).length}else n-=o;for(;n--;)e+="0";t.d.push(+e),c&&(t.e>t.constructor.maxE?(t.d=null,t.e=NaN):t.e<t.constructor.minE&&(t.e=0,t.d=[0]))}else t.e=0,t.d=[0];return t}function z(t,e,r,n,o){var i,s,a,u,l=t.precision,f=Math.ceil(l/7);for(c=!1,u=r.times(r),a=new t(n);;){if(s=j(a.times(u),new t(e++*e++),l,1),a=o?n.plus(s):n.minus(s),n=j(s.times(u),new t(e++*e++),l,1),void 0!==(s=a.plus(n)).d[f]){for(i=f;s.d[i]===a.d[i]&&i--;);if(-1==i)break}i=a,a=n,n=s,s=i}return c=!0,s.d.length=f+1,s}function F(t,e){for(var r=t;--e;)r*=t;return r}function Y(t,e){var r,n=e.s<0,i=R(t,t.precision,1),s=i.times(.5);if((e=e.abs()).lte(s))return o=n?4:1,e;if((r=e.divToInt(i)).isZero())o=n?3:2;else{if((e=e.minus(r.times(i))).lte(s))return o=L(r)?n?2:3:n?4:1,e;o=L(r)?n?1:4:n?3:2}return e.minus(i).abs()}function G(t,e,r,o){var s,a,u,c,l,f,h,p,d,y=t.constructor,v=void 0!==r;if(v?(T(r,1,1e9),void 0===o?o=y.rounding:T(o,0,8)):(r=y.precision,o=y.rounding),t.isFinite()){for(u=(h=A(t)).indexOf("."),v?(s=2,16==e?r=4*r-3:8==e&&(r=3*r-2)):s=e,u>=0&&(h=h.replace(".",""),(d=new y(1)).e=h.length-u,d.d=k(A(d),10,s),d.e=d.d.length),a=l=(p=k(h,10,s)).length;0==p[--l];)p.pop();if(p[0]){if(u<0?a--:((t=new y(t)).d=p,t.e=a,p=(t=j(t,d,r,o,0,s)).d,a=t.e,f=n),u=p[r],c=s/2,f=f||void 0!==p[r+1],f=o<4?(void 0!==u||f)&&(0===o||o===(t.s<0?3:2)):u>c||u===c&&(4===o||f||6===o&&1&p[r-1]||o===(t.s<0?8:7)),p.length=r,f)for(;++p[--r]>s-1;)p[r]=0,r||(++a,p.unshift(1));for(l=p.length;!p[l-1];--l);for(u=0,h="";u<l;u++)h+=i.charAt(p[u]);if(v){if(l>1){if(16==e||8==e){for(u=16==e?4:3,--l;l%u;l++)h+="0";for(l=(p=k(h,s,e)).length;!p[l-1];--l);for(u=1,h="1.";u<l;u++)h+=i.charAt(p[u])}else h=h.charAt(0)+"."+h.slice(1)}h=h+(a<0?"p":"p+")+a}else if(a<0){for(;++a;)h="0"+h;h="0."+h}else if(++a>l)for(a-=l;a--;)h+="0";else a<l&&(h=h.slice(0,a)+"."+h.slice(a))}else h=v?"0p+0":"0";h=(16==e?"0x":2==e?"0b":8==e?"0o":"")+h}else h=H(t);return t.s<0?"-"+h:h}function Z(t,e){if(t.length>e)return t.length=e,!0}function W(t){return new this(t).abs()}function V(t){return new this(t).acos()}function J(t){return new this(t).acosh()}function K(t,e){return new this(t).plus(e)}function Q(t){return new this(t).asin()}function X(t){return new this(t).asinh()}function tt(t){return new this(t).atan()}function te(t){return new this(t).atanh()}function tr(t,e){t=new this(t),e=new this(e);var r,n=this.precision,o=this.rounding,i=n+4;return t.s&&e.s?t.d||e.d?!e.d||t.isZero()?(r=e.s<0?R(this,n,o):new this(0)).s=t.s:!t.d||e.isZero()?(r=R(this,i,1).times(.5)).s=t.s:e.s<0?(this.precision=i,this.rounding=1,r=this.atan(j(t,e,i,1)),e=R(this,i,1),this.precision=n,this.rounding=o,r=t.s<0?r.minus(e):r.plus(e)):r=this.atan(j(t,e,i,1)):(r=R(this,i,1).times(e.s>0?.25:.75)).s=t.s:r=new this(NaN),r}function tn(t){return new this(t).cbrt()}function to(t){return I(t=new this(t),t.e+1,2)}function ti(t,e,r){return new this(t).clamp(e,r)}function ts(t){if(!t||"object"!=typeof t)throw Error(l+"Object expected");var e,r,n,o=!0===t.defaults,i=["precision",1,1e9,"rounding",0,8,"toExpNeg",-9e15,0,"toExpPos",0,9e15,"maxE",0,9e15,"minE",-9e15,0,"modulo",0,9];for(e=0;e<i.length;e+=3)if(r=i[e],o&&(this[r]=u[r]),void 0!==(n=t[r])){if(y(n)===n&&n>=i[e+1]&&n<=i[e+2])this[r]=n;else throw Error(f+r+": "+n)}if(r="crypto",o&&(this[r]=u[r]),void 0!==(n=t[r])){if(!0===n||!1===n||0===n||1===n){if(n){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[r]=!0;else throw Error(p)}else this[r]=!1}else throw Error(f+r+": "+n)}return this}function ta(t){return new this(t).cos()}function tu(t){return new this(t).cosh()}function tc(t,e){return new this(t).div(e)}function tl(t){return new this(t).exp()}function tf(t){return I(t=new this(t),t.e+1,3)}function th(){var t,e,r=new this(0);for(t=0,c=!1;t<arguments.length;)if(e=new this(arguments[t++]),e.d)r.d&&(r=r.plus(e.times(e)));else{if(e.s)return c=!0,new this(1/0);r=e}return c=!0,r.sqrt()}function tp(t){return t instanceof tN||t&&t.toStringTag===d||!1}function td(t){return new this(t).ln()}function ty(t,e){return new this(t).log(e)}function tv(t){return new this(t).log(2)}function tb(t){return new this(t).log(10)}function tg(){return q(this,arguments,"lt")}function t_(){return q(this,arguments,"gt")}function tm(t,e){return new this(t).mod(e)}function tw(t,e){return new this(t).mul(e)}function tO(t,e){return new this(t).pow(e)}function tS(t){var e,r,n,o,i=0,s=new this(1),a=[];if(void 0===t?t=this.precision:T(t,1,1e9),n=Math.ceil(t/7),this.crypto){if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(n));i<n;)(o=e[i])>=429e7?e[i]=crypto.getRandomValues(new Uint32Array(1))[0]:a[i++]=o%1e7;else if(crypto.randomBytes){for(e=crypto.randomBytes(n*=4);i<n;)(o=e[i]+(e[i+1]<<8)+(e[i+2]<<16)+((127&e[i+3])<<24))>=214e7?crypto.randomBytes(4).copy(e,i):(a.push(o%1e7),i+=4);i=n/4}else throw Error(p)}else for(;i<n;)a[i++]=1e7*Math.random()|0;for(n=a[--i],t%=7,n&&t&&(o=v(10,7-t),a[i]=(n/o|0)*o);0===a[i];i--)a.pop();if(i<0)r=0,a=[0];else{for(r=-1;0===a[0];r-=7)a.shift();for(n=1,o=a[0];o>=10;o/=10)n++;n<7&&(r-=7-n)}return s.e=r,s.d=a,s}function tE(t){return I(t=new this(t),t.e+1,this.rounding)}function tT(t){return(t=new this(t)).d?t.d[0]?t.s:0*t.s:t.s||NaN}function tx(t){return new this(t).sin()}function tk(t){return new this(t).sinh()}function tj(t){return new this(t).sqrt()}function tI(t,e){return new this(t).sub(e)}function tA(){var t=0,e=arguments,r=new this(e[t]);for(c=!1;r.s&&++t<e.length;)r=r.plus(e[t]);return c=!0,I(r,this.precision,this.rounding)}function tP(t){return new this(t).tan()}function tC(t){return new this(t).tanh()}function tR(t){return I(t=new this(t),t.e+1,1)}S[Symbol.for("nodejs.util.inspect.custom")]=S.toString,S[Symbol.toStringTag]="Decimal";var tN=S.constructor=function t(e){var r,n,o;function i(t){var e,r,n,o=this;if(!(o instanceof i))return new i(t);if(o.constructor=i,tp(t)){o.s=t.s,c?!t.d||t.e>i.maxE?(o.e=NaN,o.d=null):t.e<i.minE?(o.e=0,o.d=[0]):(o.e=t.e,o.d=t.d.slice()):(o.e=t.e,o.d=t.d?t.d.slice():t.d);return}if("number"==(n=typeof t)){if(0===t){o.s=1/t<0?-1:1,o.e=0,o.d=[0];return}if(t<0?(t=-t,o.s=-1):o.s=1,t===~~t&&t<1e7){for(e=0,r=t;r>=10;r/=10)e++;c?e>i.maxE?(o.e=NaN,o.d=null):e<i.minE?(o.e=0,o.d=[0]):(o.e=e,o.d=[t]):(o.e=e,o.d=[t]);return}if(0*t!=0){t||(o.s=NaN),o.e=NaN,o.d=null;return}return $(o,t.toString())}if("string"!==n)throw Error(f+t);return 45===(r=t.charCodeAt(0))?(t=t.slice(1),o.s=-1):(43===r&&(t=t.slice(1)),o.s=1),m.test(t)?$(o,t):function(t,e){var r,n,o,i,s,a,u,l,h;if(e.indexOf("_")>-1){if(e=e.replace(/(\d)_(?=\d)/g,"$1"),m.test(e))return $(t,e)}else if("Infinity"===e||"NaN"===e)return+e||(t.s=NaN),t.e=NaN,t.d=null,t;if(g.test(e))r=16,e=e.toLowerCase();else if(b.test(e))r=2;else if(_.test(e))r=8;else throw Error(f+e);for((i=e.search(/p/i))>0?(u=+e.slice(i+1),e=e.substring(2,i)):e=e.slice(2),s=(i=e.indexOf("."))>=0,n=t.constructor,s&&(i=(a=(e=e.replace(".","")).length)-i,o=D(n,new n(r),i,2*i)),i=h=(l=k(e,r,1e7)).length-1;0===l[i];--i)l.pop();return i<0?new n(0*t.s):(t.e=P(l,h),t.d=l,c=!1,s&&(t=j(t,o,4*a)),u&&(t=t.times(54>Math.abs(u)?v(2,u):tN.pow(2,u))),c=!0,t)}(o,t)}if(i.prototype=S,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.EUCLID=9,i.config=i.set=ts,i.clone=t,i.isDecimal=tp,i.abs=W,i.acos=V,i.acosh=J,i.add=K,i.asin=Q,i.asinh=X,i.atan=tt,i.atanh=te,i.atan2=tr,i.cbrt=tn,i.ceil=to,i.clamp=ti,i.cos=ta,i.cosh=tu,i.div=tc,i.exp=tl,i.floor=tf,i.hypot=th,i.ln=td,i.log=ty,i.log10=tb,i.log2=tv,i.max=tg,i.min=t_,i.mod=tm,i.mul=tw,i.pow=tO,i.random=tS,i.round=tE,i.sign=tT,i.sin=tx,i.sinh=tk,i.sqrt=tj,i.sub=tI,i.sum=tA,i.tan=tP,i.tanh=tC,i.trunc=tR,void 0===e&&(e={}),e&&!0!==e.defaults)for(r=0,o=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"];r<o.length;)e.hasOwnProperty(n=o[r++])||(e[n]=this[n]);return i.config(e),i}(u);s=new tN(s),a=new tN(a),e.Z=tN},29:function(t,e,r){"use strict";function n(t,e,r,n,o,i,s){try{var a=t[i](s),u=a.value}catch(t){r(t);return}a.done?e(u):Promise.resolve(u).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise(function(o,i){var s=t.apply(e,r);function a(t){n(s,o,i,a,u,"next",t)}function u(t){n(s,o,i,a,u,"throw",t)}a(void 0)})}}r.d(e,{Z:function(){return o}})},7247:function(t,e,r){"use strict";function n(t){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}r.d(e,{Z:function(){return n}})},5959:function(t,e,r){"use strict";function n(t,e){return(n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&n(t,e)}r.d(e,{Z:function(){return o}})},4730:function(t,e,r){"use strict";function n(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}r.d(e,{Z:function(){return n}})},2179:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(4027);function o(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}},7812:function(t,e,r){"use strict";r.d(e,{Z:function(){return i}});var n=r(2587),o=r(2937);function i(t){return function(t){if(Array.isArray(t))return(0,n.Z)(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||(0,o.Z)(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},9794:function(t){"use strict";t.exports={version:"1.0.34"}}}]);