From 4d17bf87f6adbd3a39616ff2541465ecb2197bc6 Mon Sep 17 00:00:00 2001
From: "james.z" <james.zheng@sjfood.com>
Date: Wed, 19 Feb 2025 08:47:30 +0000
Subject: [PATCH] enhance orderbook marketsize calc

---
 src/main/resources/static/assets/script/app-ca958cac89.js | 2 +-
 src/main/resources/static/assets/script/app.js            | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/resources/static/assets/script/app-ca958cac89.js b/src/main/resources/static/assets/script/app-ca958cac89.js
index 3ad8164..bdb6b81 100644
--- a/src/main/resources/static/assets/script/app-ca958cac89.js
+++ b/src/main/resources/static/assets/script/app-ca958cac89.js
@@ -8,7 +8,7 @@ var Pi=Object.freeze({}),xi=Object.prototype.toString,Ci=v("slot,component",!0),
   * (c) 2015-present Evan You
   * @license MIT
   */
-Object.defineProperty(e,"__esModule",{value:!0});var f=function(t){return t&&"object"==typeof t&&"default"in t?t.default:t}(n(13)),d="undefined"!=typeof Reflect&&Reflect.defineMetadata,h={__proto__:[]},v=h instanceof Array,y=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured"];p.registerHooks=function(t){y.push.apply(y,t)},e.default=p,e.createDecorator=i,e.mixins=a},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(5),i=n(38),a=n(7),c=n(15),s=n(19),u=n(20),l=n(2),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.instance=function(){return this._instance||(this._instance=new e),this._instance},Object.defineProperty(e.prototype,"storeOptions",{get:function(){return{state:{products:[],objects:void 0,funds:{}},mutations:{setProducts:function(t,e){var n={};e.forEach(function(t){n[t.id]={orderBook:{bids:[],asks:[]},history:[],historyType:"candles_60",tradeHistory:[],product:t,openOrders:[]}}),t.products=e,t.objects||(t.objects=n)},setOrderBook:function(t,e){t.objects[e.productId].orderBook={bids:e.bids,asks:e.asks}},setHistory:function(t,e){t.objects[e.productId].history=e.items,t.objects[e.productId].historyType=e.type},setTradeHistory:function(t,e){t.objects[e.productId].tradeHistory=e.trades},setOpenOrders:function(t,e){t.objects[e.productId].openOrders=e.items},setFunds:function(t,e){t.funds=e},updateFund:function(t,e){t.funds[e.currency]=e}}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"products",{get:function(){return this.store.state.products},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"funds",{get:function(){return this.store.state.funds},enumerable:!0,configurable:!0}),e.prototype.getObject=function(t){return this.store.state.objects[t]},e.prototype.loadProducts=function(t){var e=this;l.HttpService.Trade.getProducts().then(function(n){e.store.commit("setProducts",n),t&&t()})},e.prototype.loadProductHistory=function(t,e,n){var r=this,o="candles_"+e;this.subscribe([t],[o]),l.HttpService.Trade.getProductHistory(t,e).then(function(e){r.store.commit("setHistory",{productId:t,type:o,items:e}),n&&n()})},e.prototype.loadTradeHistory=function(t){var e=this;l.HttpService.Trade.getProductTradeHistory(t).then(function(n){n.forEach(function(t){t.localTime=o.Moment(t.time).format("H:mm:ss")}),e.store.commit("setTradeHistory",{productId:t,trades:n})})},e.prototype.loadOpenOrders=function(t,e){var n=this;this.subscribe([t],["order"]);var r=this.getObject(t).product;l.HttpService.Order.getOrders(t,1,["open"]).then(function(i){i.items.forEach(function(t){t.statusFormat=t.status,t.price=Number(t.price).toFixed(r.quoteScale),t.fillFees=Number(t.fillFees).toFixed(r.quoteScale),t.filledSize=Number(t.filledSize).toFixed(r.baseScale),t.size=Number(t.size).toFixed(r.baseScale),t.funds=Number(t.funds).toFixed(2),t.executedValue=Number(t.executedValue).toFixed(2),t.timeFormat=o.Moment(t.createdAt).format("MM-DD H:mm:ss"),t.priceFormat=Number(t.price)?t.price:"MARKET"}),n.store.commit("setOpenOrders",{productId:t,items:i.items}),e&&e()})},e.prototype.loadFunds=function(t){var e=this;this.subscribeFunds(t);var n={};l.HttpService.Account.getFunds(t).then(function(t){t.forEach(function(t){n[t.currency]=t}),e.store.commit("setFunds",n)})},e.prototype.subscribeAllTicker=function(){var t=[];this.products.forEach(function(e){t.push(e.id)}),this.subscribe(t,[s.SubscribeChannel.TICKET])},e.prototype.subscribe=function(t,e){c.WebSocketService.Instance.subscribe({type:"subscribe",product_ids:t,channels:e})},e.prototype.subscribeFunds=function(t){c.WebSocketService.Instance.subscribe({type:"subscribe",currency_ids:t,channels:["funds"]})},e.prototype.unsubscribe=function(t,e){c.WebSocketService.Instance.subscribe({type:"unsubscribe",product_ids:t,channels:e})},e.prototype.setOrderBook=function(t){this.store.commit("setOrderBook",t)},e.prototype.updateOrderBook=function(t){var e={};t.forEach(function(t){e[t.productId]||(e[t.productId]=[]),e[t.productId]=e[t.productId].concat(t.changes)});var n=this;for(var r in e)!function(t){var r={},o={};n.getObject(t).orderBook.bids.forEach(function(t){t&&(r[Number(t[0])]=t)}),n.getObject(t).orderBook.asks.forEach(function(t){t&&(o[Number(t[0])]=t)}),e[t].forEach(function(t){"buy"==t[0]?0==t[2]?delete r[t[1]]:r[t[1]]=[t[1],t[2]]:0==t[2]?delete o[t[1]]:o[t[1]]=[t[1],t[2]]});var i=a.Helper.Object_values(r).sort(function(t,e){return t[0]-e[0]}),c=a.Helper.Object_values(o).sort(function(t,e){return t[0]-e[0]});n.setOrderBook({productId:t,bids:i.reverse(),asks:c})}(r)},e.prototype.updateHistory=function(t){var e=this.getObject(t.productId),n=Math.floor(o.Moment(t.time).format("X")),r=e.history[0],i=Number(t.price),a=Number(t.size),c=Number(e.historyType.replace("candles_",""));r&&(n-=n%c,e.history[0]=[r[0],r[1]>i?i:r[1],r[2]>i?r[2]:i,r[3],i,r[5]+a],r[0]!=n&&e.history.unshift([n,i,i,i,i,a]))},e.prototype.updateTradeHistory=function(t){this.updateHistory(t),t.localTime=o.Moment(t.time).format("H:mm:ss");var e=this.getObject(t.productId).tradeHistory;e.unshift(t),e.length>120&&(e=e.slice(0,120)),this.store.commit("setTradeHistory",{productId:t.productId,trades:e})},e.prototype.updatePruductPrice=function(t){var e=[];this.products.forEach(function(n){n.id==t.productId&&(n=Object.assign(n,t),n.rate24h=(100*n.price/n.open24h-100).toFixed(2),n.volume24h=Math.floor(n.volume24h)),e.push(n)}),this.store.commit("setProducts",e)},e.prototype.updateOrder=function(t){var e=o.Collect(t).groupBy("productId"),n=this;for(var r in e.items)!function(t){var r=n.getObject(t).product,i=n.getObject(t).openOrders;e.items[t].items.forEach(function(t){var e=i.filter(function(e){return e.id==t.id});t.statusFormat=t.status,t.price=Number(t.price).toFixed(r.quoteScale),t.filledSize=Number(t.filledSize).toFixed(r.baseScale),t.fillFees=Number(t.fillFees).toFixed(r.quoteScale),t.size=Number(t.size).toFixed(r.baseScale),t.funds=Number(t.funds).toFixed(2),t.executedValue=Number(t.executedValue).toFixed(2),t.timeFormat=o.Moment(t.createdAt).format("MM-DD H:mm:ss"),t.priceFormat=Number(t.price)?t.price:"MARKET",e.length?e[0]=Object.assign(e[0],t):i.unshift(t)}),n.store.commit("setOpenOrders",{productId:t,items:i})}(r)},e.prototype.updateFund=function(t){var e={};t.forEach(function(t){e[t.currencyCode]={available:t.available,currency:t.currencyCode,hold:t.hold}});for(var n in e)this.store.commit("updateFund",e[n])},e.prototype.clearUserTrades=function(){var t=this;this.products.forEach(function(e){t.store.commit("setOpenOrders",{productId:e.id,items:[]}),t.unsubscribe([e.id],["order","funds"])})},e.prototype.parseWebSocketMessage=function(t){var e=this;"snapshot"==t.type?this.setOrderBook(t):"l2update"==t.type?(this.bookBuffer||(this.bookBuffer=new i.SocketMsgBuffer(function(t){e.updateOrderBook(t)},200)),this.bookBuffer.push(t)):0===t.type.indexOf("candles")?this.updateHistory(t):"match"==t.type?this.updateTradeHistory(t):"ticker"==t.type?this.updatePruductPrice(t):"order"==t.type?(this.orderBuffer||(this.orderBuffer=new i.SocketMsgBuffer(function(t){e.updateOrder(t)},300)),this.orderBuffer.push(t)):"funds"==t.type&&(this.fundsBuffer||(this.fundsBuffer=new i.SocketMsgBuffer(function(t){e.updateFund(t)},300)),this.fundsBuffer.push(t))},e}(u.Store);e.TradeStore=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){}return t.CANDLES="candles",t.LEVEL2="level2",t.MATCH="match",t.TICKET="ticker",t.ORDER="order",t}();e.SubscribeChannel=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),o=function(){function t(){this.store=new r.BaseStoreInstance(this.storeOptions)}return Object.defineProperty(t.prototype,"storeOptions",{get:function(){return{}},enumerable:!0,configurable:!0}),t}();e.Store=o},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},function(t,e,n){"use strict";function r(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o=n(4);t.exports=function(t,e,n){if(!e)return t;var i;if(n)i=n(e);else if(o.isURLSearchParams(e))i=e.toString();else{var a=[];o.forEach(e,function(t,e){null!==t&&void 0!==t&&(o.isArray(t)?e+="[]":t=[t],o.forEach(t,function(t){o.isDate(t)?t=t.toISOString():o.isObject(t)&&(t=JSON.stringify(t)),a.push(r(e)+"="+r(t))}))}),i=a.join("&")}if(i){var c=t.indexOf("#");-1!==c&&(t=t.slice(0,c)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";(function(e){function r(t,e){!o.isUndefined(t)&&o.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var o=n(4),i=n(48),a={"Content-Type":"application/x-www-form-urlencoded"},c={adapter:function(){var t;return void 0!==e&&"[object process]"===Object.prototype.toString.call(e)?t=n(25):"undefined"!=typeof XMLHttpRequest&&(t=n(25)),t}(),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),o.isFormData(t)||o.isArrayBuffer(t)||o.isBuffer(t)||o.isStream(t)||o.isFile(t)||o.isBlob(t)?t:o.isArrayBufferView(t)?t.buffer:o.isURLSearchParams(t)?(r(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):o.isObject(t)?(r(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},o.forEach(["delete","get","head"],function(t){c.headers[t]={}}),o.forEach(["post","put","patch"],function(t){c.headers[t]=o.merge(a)}),t.exports=c}).call(e,n(14))},function(t,e,n){"use strict";var r=n(4),o=n(49),i=n(22),a=n(51),c=n(52),s=n(26);t.exports=function(t){return new Promise(function(e,u){var l=t.data,p=t.headers;r.isFormData(l)&&delete p["Content-Type"];var f=new XMLHttpRequest;if(t.auth){var d=t.auth.username||"",h=t.auth.password||"";p.Authorization="Basic "+btoa(d+":"+h)}if(f.open(t.method.toUpperCase(),i(t.url,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in f?a(f.getAllResponseHeaders()):null,r=t.responseType&&"text"!==t.responseType?f.response:f.responseText,i={data:r,status:f.status,statusText:f.statusText,headers:n,config:t,request:f};o(e,u,i),f=null}},f.onabort=function(){f&&(u(s("Request aborted",t,"ECONNABORTED",f)),f=null)},f.onerror=function(){u(s("Network Error",t,null,f)),f=null},f.ontimeout=function(){u(s("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var v=n(53),y=(t.withCredentials||c(t.url))&&t.xsrfCookieName?v.read(t.xsrfCookieName):void 0;y&&(p[t.xsrfHeaderName]=y)}if("setRequestHeader"in f&&r.forEach(p,function(t,e){void 0===l&&"content-type"===e.toLowerCase()?delete p[e]:f.setRequestHeader(e,t)}),t.withCredentials&&(f.withCredentials=!0),t.responseType)try{f.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&f.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){f&&(f.abort(),u(t),f=null)}),void 0===l&&(l=null),f.send(l)})}},function(t,e,n){"use strict";var r=n(50);t.exports=function(t,e,n,o,i){var a=new Error(t);return r(a,e,n,o,i)}},function(t,e,n){"use strict";var r=n(4);t.exports=function(t,e){e=e||{};var n={};return r.forEach(["url","method","params","data"],function(t){void 0!==e[t]&&(n[t]=e[t])}),r.forEach(["headers","auth","proxy"],function(o){r.isObject(e[o])?n[o]=r.deepMerge(t[o],e[o]):void 0!==e[o]?n[o]=e[o]:r.isObject(t[o])?n[o]=r.deepMerge(t[o]):void 0!==t[o]&&(n[o]=t[o])}),r.forEach(["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"],function(r){void 0!==e[r]?n[r]=e[r]:void 0!==t[r]&&(n[r]=t[r])}),n}},function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.i18n={default:{menu:{login:"Log In",register:"SIGN UP",logout:"Sign Out",help:"Help",api:"Api",fees:"Fees",viewExchange:"View Exchange",orders:"Orders",settings:"Settings",home:"Home",trade:"Trade",lastTradePrice:"last trade price",price24H:"24h price",volume24H:"24h volume",started:"GET STARTED"},page:{trade:{bottomMenuTrade:"TRADE",bottomMenuBook:"BOOK",bottomMenuChart:"CHARTS",bottomMenuOrder:"ORDERS",bottomMenuHistory:"HISTORY"},account:{loginPageTitle:"Sign In",loginFormTitle:"Log in to GitBitEX",login2StepTitle:"2-Step Verification",registerPageTitle:"Sign Up",registerFormTitle:"Sign up to GitBitEX",forgotPageTitle:"Forgot Passwor",forgotFormTitle:"Forgot your password?",inputEmailName:"Email",inputEmailPlaceHolder:"you@example.com",inputCodeName:"Code",inputCodePlaceHolder:"Input verification code",inputPwdName:"Password",inputPwdPlaceHolder:"Minimum 8 characters",inputArgDesc:"I agree to the",inputArgAnd:"and",inputArgDescUser:"User Agreement",inputArgDescPolicy:"Privacy Policy",inputTwoFactorName:"Two-Factor",inputGAuthPlaceHolder:"Google Authenticator",linkHaveAccount:"Already have an account?",linkNotHaveAccount:"Don't have an account?",linkForgotPassword:"Forgot password? ",linkLogin:"Login?",alertEmailError:"Please enter a valid email",alertCodeSended:"We sent verification code to your email",alertPwdRequired:"Password is required",alertPwdShort:"Password is too short (minimum is 8 characters)",alertAcceptArg:"Please accept the user agreement",btnRegister:"CREATE A ACCOUNT",btnLogin:"LOG IN",btnVerify:"VERIFY",btnResetPassword:"RESET PASSWORD",descEmail2Step:"The verification code generated by your email"},order:{pageTitle:"Orders",tableTitle:"My Orders",paginationPrev:"Prev",paginationNext:"Next"},setting:{pageTitle:"Settings",profileTitle:"My Profile",nickName:"Nick Name",nickNameDesc:"This name will be part of your public profile.",factorTitle:"2-step verification",factorDesc:"Select your 2-step verification method",options:"OPTIONS",save:"Save",success:"Success",factorEmailDesc:"Sent verification code to your email",secure:"Secure",secureVery:"Very secure",select:"Select",selected:"Selected",factorGAuthDesc:"Install an authenticator app on your phone",apiTitle:"My API",apiDesc:"API keys allow you to perform automated actions on your account with your own software",apiCreate:"New API Key",apiFieldKey:"App Key",apiFieldSecret:"App Secret",apiFieldCreatedAt:"Created At"}},component:{code:{btnTitle:"GET CODE",alertEmailError:"Please enter a valid email"},formOrder:{title:"ORDER FORM",login:"Sign in",or:"or",register:"create account",balance:"BALANCE",hold:"HOLD",deposit:"DEPOSIT",withdrawal:"WITHDRAWAL",amount:"Amount",limitPrice:"Limit Price",total:"Total",buy:"BUY",sell:"SELL",market:"MARKET",limit:"LIMIT",orderBuy:"PLACE BUY ORDER",orderSell:"PLACE SELL ORDER",orderSuccess:"SUCCESS",orderError:"ERROR",errorAmount:"Amount must be specified",errorPrice:"Price must be specified"},orderBook:{title:"ORDER BOOK",orderBook:"Order Book",tradeHistory:"Trade History",marketSize:"Market Size",price:"Price",spread:"Spread",aggregation:"Aggregation"},tradeHistory:{title:"TRADE HISTORY",orderBook:"Order Book",tradeHistory:"Trade History",tradeSize:"Trade Size",price:"Price",time:"Time"},openOrder:{title:"OPEN ORDERS",cancelAll:"cancel all"},orderTable:{side:"Side",size:"Size",filled:"Filled",funds:"Funds",executed:"Executed",price:"Price",fee:"Fee",time:"Time",status:"Status",loading:"Loading...",noOrder:"No orders to show"},tradeChart:{title:"PRICE CHART",midMarketPrice:"Mid Market Price",priceChart:"Price Chart",depthChart:"Depth Chart"},modalFactor:{GAuthTitle:"Google Authenticator",GAuthQrcodeDesc:"open Google Authenticator and scan the QR Code below",btnCancel:"Cancel",btnConfirm:"Confirm"}}}}},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),a=n(0),c=n(3);e.MODAL_TWO_VERIFICATION="modal-two-verification";var s=function(t){function s(){return null!==t&&t.apply(this,arguments)||this}return r(s,t),s.prototype.close=function(){},s.prototype.created=function(){this.i18nInit("component.modalFactor")},s.prototype.mounted=function(){var e=this;t.prototype.mounted.call(this),i.HttpService.Account.googleAuthQrcodeGet().then(function(t){new window.QRCode(e.$refs.qrcode,t.uri)})},s.prototype.confirm=function(){c.StoreService.Account.saveSecondFactor("gotp").then(function(){}),this.close()},o([a.Emit("close")],s.prototype,"close",null),s=o([a.Dom(e.MODAL_TWO_VERIFICATION,n(138)())],s)}(a.Component);e.TwoVerificationModalComponent=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),o=n(36),i=n(65),a=n(67),c=n(69),s=n(71),u=n(73),l=n(75),p=n(77),f=n(81),d=n(83),h=n(85),v=n(87),y=n(89),m=n(91),g=n(93),b=n(95),_=n(97),w=n(99),O=n(101),j=n(103),P=n(105),x=n(107),C=n(109),k=n(111),S=n(113),A=n(115),T=n(117),E=n(119),R=n(121),M=n(123),I=n(125),D=n(127),$=n(129),N=n(131),F=n(133),H=n(135),L=n(137),B=n(140),z=n(142),q=n(144),U=n(146),V=n(148),W=n(150),G=n(152),K=n(154),J=n(156),X=n(158),Q=n(160),Y=n(162),Z=n(164),tt=n(166),et=n(168),nt=n(169),rt=n(170),ot=n(172),it=n(174),at=n(176),ct=n(30),st=n(178),ut=n(180);nt.Framework.initModules([tt.HomePage,X.TradePage,z.ProxyPage,it.AccountLoginPage,at.AccountRegisterPage,L.AccountProfilePage,x.AccountWalletPage,k.AccountWalletDepositPage,C.AccountWalletWithdrawalPage,m.AccountOrderPage,p.AccountForgotPage],[Z.PageAlertComponent,Y.PageErrorComponent,Q.PageLoadingComponent,J.TradeHeaderComponent,K.TradePanelComponent,W.OrderBookPanelComponent,h.OrderPanelComponent,rt.OrderListPanelComponent,G.OrderFormComponent,i.DepthChartComponent,o.CandleChartComponent,V.TradeViewChartComponent,U.TradeHistoryPanelComponent,q.LinkProxyComponent,B.NavbarHeaderComponent,l.NavbarHomeComponent,H.DepositModalComponent,F.WithdrawalModalComponent,j.TransactionModalComponent,N.IconTransactionComponent,I.IconSuccessComponent,E.IconQrcodeComponent,T.IconSendComponent,A.IconReceivedComponent,P.IconSentComponent,_.IconArrowComponent,b.IconUpComponent,g.IconDownComponent,y.IconHamburgerComponent,u.IconCertComponent,s.IconBarDownComponent,c.IconCodeComponent,$.DepositFormComponent,D.WithdrawalFormComponent,M.PriceFormatComponent,R.NumberFormatComponent,w.WalletPanelComponent,O.WalletListPanelComponent,S.TransactionPanelComponent,ot.LogoComponent,v.SelectComponent,d.PaginationComponent,f.ChangePasswordModalComponent,a.ChartSliderComponent,ct.TwoVerificationModalComponent,st.FormCodeComponent,ut.MenuAccountComponent],[r.BaseStore]),et.App.init(function(){nt.Framework.bootstrap()})},function(t,e,n){(function(t){function r(t,e){this._id=t,this._clearFn=e}var o=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;e.setTimeout=function(){return new r(i.call(setTimeout,o,arguments),clearTimeout)},e.setInterval=function(){return new r(i.call(setInterval,o,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(o,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(33),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(e,n(9))},function(t,e,n){(function(t,e){!function(t,n){"use strict";function r(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var r={callback:t,args:e};return u[s]=r,c(s),s++}function o(t){delete u[t]}function i(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(n,r)}}function a(t){if(l)setTimeout(a,0,t);else{var e=u[t];if(e){l=!0;try{i(e)}finally{o(t),l=!1}}}}if(!t.setImmediate){var c,s=1,u={},l=!1,p=t.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(t);f=f&&f.setTimeout?f:t,"[object process]"==={}.toString.call(t.process)?function(){c=function(t){e.nextTick(function(){a(t)})}}():function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?function(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"==typeof n.data&&0===n.data.indexOf(e)&&a(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),c=function(n){t.postMessage(e+n,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){a(t.data)},c=function(e){t.port2.postMessage(e)}}():p&&"onreadystatechange"in p.createElement("script")?function(){var t=p.documentElement;c=function(e){var n=p.createElement("script");n.onreadystatechange=function(){a(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}():function(){c=function(t){setTimeout(a,0,t)}}(),f.setImmediate=r,f.clearImmediate=o}}("undefined"==typeof self?void 0===t?this:t:self)}).call(e,n(9),n(14))},function(t,e,n){"use strict";function r(t,e){}function o(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function i(t,e){return e instanceof t||e&&(e.name===t.name||e._name===t._name)}function a(t,e){for(var n in e)t[n]=e[n];return t}function c(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0}}function s(t,e,n){void 0===e&&(e={});var r,o=n||u;try{r=o(t||"")}catch(t){r={}}for(var i in e)r[i]=e[i];return r}function u(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(t){var n=t.replace(/\+/g," ").split("="),r=Ht(n.shift()),o=n.length>0?Ht(n.join("=")):null;void 0===e[r]?e[r]=o:Array.isArray(e[r])?e[r].push(o):e[r]=[e[r],o]}),e):e}function l(t){var e=t?Object.keys(t).map(function(e){var n=t[e];if(void 0===n)return"";if(null===n)return Ft(e);if(Array.isArray(n)){var r=[];return n.forEach(function(t){void 0!==t&&(null===t?r.push(Ft(e)):r.push(Ft(e)+"="+Ft(t)))}),r.join("&")}return Ft(e)+"="+Ft(n)}).filter(function(t){return t.length>0}).join("&"):null;return e?"?"+e:""}function p(t,e,n,r){var o=r&&r.options.stringifyQuery,i=e.query||{};try{i=f(i)}catch(t){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:i,params:e.params||{},fullPath:h(e,o),matched:t?d(t):[]};return n&&(a.redirectedFrom=h(n,o)),Object.freeze(a)}function f(t){if(Array.isArray(t))return t.map(f);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=f(t[n]);return e}return t}function d(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function h(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var o=t.hash;void 0===o&&(o="");var i=e||l;return(n||"/")+i(r)+o}function v(t,e){return e===Bt?t===e:!!e&&(t.path&&e.path?t.path.replace(Lt,"")===e.path.replace(Lt,"")&&t.hash===e.hash&&y(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&y(t.query,e.query)&&y(t.params,e.params)))}function y(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every(function(n){var r=t[n],o=e[n];return"object"==typeof r&&"object"==typeof o?y(r,o):String(r)===String(o)})}function m(t,e){return 0===t.path.replace(Lt,"/").indexOf(e.path.replace(Lt,"/"))&&(!e.hash||t.hash===e.hash)&&g(t.query,e.query)}function g(t,e){for(var n in e)if(!(n in t))return!1;return!0}function b(t,e,n){var r=t.charAt(0);if("/"===r)return t;if("?"===r||"#"===r)return e+t;var o=e.split("/");n&&o[o.length-1]||o.pop();for(var i=t.replace(/^\//,"").split("/"),a=0;a<i.length;a++){var c=i[a];".."===c?o.pop():"."!==c&&o.push(c)}return""!==o[0]&&o.unshift(""),o.join("/")}function _(t){var e="",n="",r=t.indexOf("#");r>=0&&(e=t.slice(r),t=t.slice(0,r));var o=t.indexOf("?");return o>=0&&(n=t.slice(o+1),t=t.slice(0,o)),{path:t,query:n,hash:e}}function w(t){return t.replace(/\/\//g,"/")}function O(t,e){for(var n,r=[],o=0,i=0,a="",c=e&&e.delimiter||"/";null!=(n=Kt.exec(t));){var s=n[0],u=n[1],l=n.index;if(a+=t.slice(i,l),i=l+s.length,u)a+=u[1];else{var p=t[i],f=n[2],d=n[3],h=n[4],v=n[5],y=n[6],m=n[7];a&&(r.push(a),a="");var g=null!=f&&null!=p&&p!==f,b="+"===y||"*"===y,_="?"===y||"*"===y,w=n[2]||c,O=h||v;r.push({name:d||o++,prefix:f||"",delimiter:w,optional:_,repeat:b,partial:g,asterisk:!!m,pattern:O?S(O):m?".*":"[^"+k(w)+"]+?"})}}return i<t.length&&(a+=t.substr(i)),a&&r.push(a),r}function j(t,e){return C(O(t,e))}function P(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function x(t){return encodeURI(t).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function C(t){for(var e=new Array(t.length),n=0;n<t.length;n++)"object"==typeof t[n]&&(e[n]=new RegExp("^(?:"+t[n].pattern+")$"));return function(n,r){for(var o="",i=n||{},a=r||{},c=a.pretty?P:encodeURIComponent,s=0;s<t.length;s++){var u=t[s];if("string"!=typeof u){var l,p=i[u.name];if(null==p){if(u.optional){u.partial&&(o+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(zt(p)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var f=0;f<p.length;f++){if(l=c(p[f]),!e[s].test(l))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(l)+"`");o+=(0===f?u.prefix:u.delimiter)+l}}else{if(l=u.asterisk?x(p):c(p),!e[s].test(l))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+l+'"');o+=u.prefix+l}}else o+=u}return o}}function k(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function S(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function A(t,e){return t.keys=e,t}function T(t){return t.sensitive?"":"i"}function E(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return A(t,e)}function R(t,e,n){for(var r=[],o=0;o<t.length;o++)r.push(D(t[o],e,n).source);return A(new RegExp("(?:"+r.join("|")+")",T(n)),e)}function M(t,e,n){return I(O(t,n),e,n)}function I(t,e,n){zt(e)||(n=e||n,e=[]),n=n||{};for(var r=n.strict,o=!1!==n.end,i="",a=0;a<t.length;a++){var c=t[a];if("string"==typeof c)i+=k(c);else{var s=k(c.prefix),u="(?:"+c.pattern+")";e.push(c),c.repeat&&(u+="(?:"+s+u+")*"),u=c.optional?c.partial?s+"("+u+")?":"(?:"+s+"("+u+"))?":s+"("+u+")",i+=u}}var l=k(n.delimiter||"/"),p=i.slice(-l.length)===l;return r||(i=(p?i.slice(0,-l.length):i)+"(?:"+l+"(?=$))?"),i+=o?"$":r&&p?"":"(?="+l+"|$)",A(new RegExp("^"+i,T(n)),e)}function D(t,e,n){return zt(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?E(t,e):zt(t)?R(t,e,n):M(t,e,n)}function $(t,e,n){e=e||{};try{var r=Xt[t]||(Xt[t]=qt.compile(t));return e.pathMatch&&(e[0]=e.pathMatch),r(e,{pretty:!0})}catch(t){return""}finally{delete e[0]}}function N(t,e,n,r){var o="string"==typeof t?{path:t}:t;if(o._normalized)return o;if(o.name)return a({},t);if(!o.path&&o.params&&e){o=a({},o),o._normalized=!0;var i=a(a({},e.params),o.params);if(e.name)o.name=e.name,o.params=i;else if(e.matched.length){var c=e.matched[e.matched.length-1].path;o.path=$(c,i,"path "+e.path)}return o}var u=_(o.path||""),l=e&&e.path||"/",p=u.path?b(u.path,l,n||o.append):l,f=s(u.query,o.query,r&&r.options.parseQuery),d=o.hash||u.hash;return d&&"#"!==d.charAt(0)&&(d="#"+d),{_normalized:!0,path:p,query:f,hash:d}}function F(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||void 0!==t.button&&0!==t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){if(/\b_blank\b/i.test(t.currentTarget.getAttribute("target")))return}return t.preventDefault&&t.preventDefault(),!0}}function H(t){if(t)for(var e,n=0;n<t.length;n++){if(e=t[n],"a"===e.tag)return e;if(e.children&&(e=H(e.children)))return e}}function L(t){if(!L.installed||Jt!==t){L.installed=!0,Jt=t;var e=function(t){return void 0!==t},n=function(t,n){var r=t.$options._parentVnode;e(r)&&e(r=r.data)&&e(r=r.registerRouteInstance)&&r(t,n)};t.mixin({beforeCreate:function(){e(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,n(this,this)},destroyed:function(){n(this)}}),Object.defineProperty(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",It),t.component("RouterLink",te);var r=t.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created}}function B(t,e,n,r){var o=e||[],i=n||Object.create(null),a=r||Object.create(null);t.forEach(function(t){z(o,i,a,t)});for(var c=0,s=o.length;c<s;c++)"*"===o[c]&&(o.push(o.splice(c,1)[0]),s--,c--);return{pathList:o,pathMap:i,nameMap:a}}function z(t,e,n,r,o,i){var a=r.path,c=r.name,s=r.pathToRegexpOptions||{},u=U(a,o,s.strict);"boolean"==typeof r.caseSensitive&&(s.sensitive=r.caseSensitive);var l={path:u,regex:q(u,s),components:r.components||{default:r.component},instances:{},name:c,parent:o,matchAs:i,redirect:r.redirect,beforeEnter:r.beforeEnter,meta:r.meta||{},props:null==r.props?{}:r.components?r.props:{default:r.props}};if(r.children&&r.children.forEach(function(r){var o=i?w(i+"/"+r.path):void 0;z(t,e,n,r,l,o)}),e[l.path]||(t.push(l.path),e[l.path]=l),void 0!==r.alias)for(var p=Array.isArray(r.alias)?r.alias:[r.alias],f=0;f<p.length;++f){var d=p[f],h={path:d,children:r.children};z(t,e,n,h,o,l.path||"/")}c&&(n[c]||(n[c]=l))}function q(t,e){var n=qt(t,[],e);return n}function U(t,e,n){return n||(t=t.replace(/\/$/,"")),"/"===t[0]?t:null==e?t:w(e.path+"/"+t)}function V(t,e){function n(t){B(t,s,u,l)}function r(t,n,r){var o=N(t,n,!1,e),i=o.name;if(i){var c=l[i];if(!c)return a(null,o);var p=c.regex.keys.filter(function(t){return!t.optional}).map(function(t){return t.name});if("object"!=typeof o.params&&(o.params={}),n&&"object"==typeof n.params)for(var f in n.params)!(f in o.params)&&p.indexOf(f)>-1&&(o.params[f]=n.params[f]);return o.path=$(c.path,o.params,'named route "'+i+'"'),a(c,o,r)}if(o.path){o.params={};for(var d=0;d<s.length;d++){var h=s[d],v=u[h];if(W(v.regex,o.path,o.params))return a(v,o,r)}}return a(null,o)}function o(t,n){var o=t.redirect,i="function"==typeof o?o(p(t,n,null,e)):o;if("string"==typeof i&&(i={path:i}),!i||"object"!=typeof i)return a(null,n);var c=i,s=c.name,u=c.path,f=n.query,d=n.hash,h=n.params;if(f=c.hasOwnProperty("query")?c.query:f,d=c.hasOwnProperty("hash")?c.hash:d,h=c.hasOwnProperty("params")?c.params:h,s){l[s];return r({_normalized:!0,name:s,query:f,hash:d,params:h},void 0,n)}if(u){var v=G(u,t);return r({_normalized:!0,path:$(v,h,'redirect route with path "'+v+'"'),query:f,hash:d},void 0,n)}return a(null,n)}function i(t,e,n){var o=$(n,e.params,'aliased route with path "'+n+'"'),i=r({_normalized:!0,path:o});if(i){var c=i.matched,s=c[c.length-1];return e.params=i.params,a(s,e)}return a(null,e)}function a(t,n,r){return t&&t.redirect?o(t,r||n):t&&t.matchAs?i(t,n,t.matchAs):p(t,n,r,e)}var c=B(t),s=c.pathList,u=c.pathMap,l=c.nameMap;return{match:r,addRoutes:n}}function W(t,e,n){var r=e.match(t);if(!r)return!1;if(!n)return!0;for(var o=1,i=r.length;o<i;++o){var a=t.keys[o-1],c="string"==typeof r[o]?decodeURIComponent(r[o]):r[o];a&&(n[a.name||"pathMatch"]=c)}return!0}function G(t,e){return b(t,e.parent?e.parent.path:"/",!0)}function K(){return ne.now().toFixed(3)}function J(){return re}function X(t){return re=t}function Q(){var t=window.location.protocol+"//"+window.location.host,e=window.location.href.replace(t,"");window.history.replaceState({key:J()},"",e),window.addEventListener("popstate",function(t){Z(),t.state&&t.state.key&&X(t.state.key)})}function Y(t,e,n,r){if(t.app){var o=t.options.scrollBehavior;o&&t.app.$nextTick(function(){var i=tt(),a=o.call(t,e,n,r?i:null);a&&("function"==typeof a.then?a.then(function(t){at(t,i)}).catch(function(t){}):at(a,i))})}}function Z(){var t=J();t&&(oe[t]={x:window.pageXOffset,y:window.pageYOffset})}function tt(){var t=J();if(t)return oe[t]}function et(t,e){var n=document.documentElement,r=n.getBoundingClientRect(),o=t.getBoundingClientRect();return{x:o.left-r.left-e.x,y:o.top-r.top-e.y}}function nt(t){return it(t.x)||it(t.y)}function rt(t){return{x:it(t.x)?t.x:window.pageXOffset,y:it(t.y)?t.y:window.pageYOffset}}function ot(t){return{x:it(t.x)?t.x:0,y:it(t.y)?t.y:0}}function it(t){return"number"==typeof t}function at(t,e){var n="object"==typeof t;if(n&&"string"==typeof t.selector){var r=ie.test(t.selector)?document.getElementById(t.selector.slice(1)):document.querySelector(t.selector);if(r){var o=t.offset&&"object"==typeof t.offset?t.offset:{};o=ot(o),e=et(r,o)}else nt(t)&&(e=rt(t))}else n&&nt(t)&&(e=rt(t));e&&window.scrollTo(e.x,e.y)}function ct(t,e){Z();var n=window.history;try{e?n.replaceState({key:J()},"",t):n.pushState({key:X(K())},"",t)}catch(n){window.location[e?"replace":"assign"](t)}}function st(t){ct(t,!0)}function ut(t,e,n){var r=function(o){o>=t.length?n():t[o]?e(t[o],function(){r(o+1)}):r(o+1)};r(0)}function lt(t){return function(e,n,r){var i=!1,a=0,c=null;pt(t,function(t,e,n,s){if("function"==typeof t&&void 0===t.cid){i=!0,a++;var u,l=ht(function(e){dt(e)&&(e=e.default),t.resolved="function"==typeof e?e:Jt.extend(e),n.components[s]=e,--a<=0&&r()}),p=ht(function(t){var e="Failed to resolve async component "+s+": "+t;c||(c=o(t)?t:new Error(e),r(c))});try{u=t(l,p)}catch(t){p(t)}if(u)if("function"==typeof u.then)u.then(l,p);else{var f=u.component;f&&"function"==typeof f.then&&f.then(l,p)}}}),i||r()}}function pt(t,e){return ft(t.map(function(t){return Object.keys(t.components).map(function(n){return e(t.components[n],t.instances[n],t,n)})}))}function ft(t){return Array.prototype.concat.apply([],t)}function dt(t){return t.__esModule||ce&&"Module"===t[Symbol.toStringTag]}function ht(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}function vt(t){if(!t)if(ee){var e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^https?:\/\/[^\/]+/,"")}else t="/";return"/"!==t.charAt(0)&&(t="/"+t),t.replace(/\/$/,"")}function yt(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n<r&&t[n]===e[n];n++);return{updated:e.slice(0,n),activated:e.slice(n),deactivated:t.slice(n)}}function mt(t,e,n,r){var o=pt(t,function(t,r,o,i){var a=gt(t,e);if(a)return Array.isArray(a)?a.map(function(t){return n(t,r,o,i)}):n(a,r,o,i)});return ft(r?o.reverse():o)}function gt(t,e){return"function"!=typeof t&&(t=Jt.extend(t)),t.options[e]}function bt(t){return mt(t,"beforeRouteLeave",wt,!0)}function _t(t){return mt(t,"beforeRouteUpdate",wt)}function wt(t,e){if(e)return function(){return t.apply(e,arguments)}}function Ot(t,e,n){return mt(t,"beforeRouteEnter",function(t,r,o,i){return jt(t,o,i,e,n)})}function jt(t,e,n,r,o){return function(i,a,c){return t(i,a,function(t){"function"==typeof t&&r.push(function(){Pt(t,e.instances,n,o)}),c(t)})}}function Pt(t,e,n,r){e[n]&&!e[n]._isBeingDestroyed?t(e[n]):r()&&setTimeout(function(){Pt(t,e,n,r)},16)}function xt(t){var e=decodeURI(window.location.pathname);return t&&0===e.indexOf(t)&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}function Ct(t){var e=xt(t);if(!/^\/#/.test(e))return window.location.replace(w(t+"/#"+e)),!0}function kt(){var t=St();return"/"===t.charAt(0)||(Et("/"+t),!1)}function St(){var t=window.location.href,e=t.indexOf("#");if(e<0)return"";t=t.slice(e+1);var n=t.indexOf("?");if(n<0){var r=t.indexOf("#");t=r>-1?decodeURI(t.slice(0,r))+t.slice(r):decodeURI(t)}else n>-1&&(t=decodeURI(t.slice(0,n))+t.slice(n));return t}function At(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function Tt(t){ae?ct(At(t)):window.location.hash=t}function Et(t){ae?st(At(t)):window.location.replace(At(t))}function Rt(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function Mt(t,e,n){var r="hash"===n?"#"+e:e;return t?w(t+"/"+r):r}Object.defineProperty(e,"__esModule",{value:!0});var It={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,r=e.children,o=e.parent,i=e.data;i.routerView=!0;for(var s=o.$createElement,u=n.name,l=o.$route,p=o._routerViewCache||(o._routerViewCache={}),f=0,d=!1;o&&o._routerRoot!==o;){var h=o.$vnode&&o.$vnode.data;h&&(h.routerView&&f++,h.keepAlive&&o._inactive&&(d=!0)),o=o.$parent}if(i.routerViewDepth=f,d)return s(p[u],i,r);var v=l.matched[f];if(!v)return p[u]=null,s();var y=p[u]=v.components[u];i.registerRouteInstance=function(t,e){var n=v.instances[u];(e&&n!==t||!e&&n===t)&&(v.instances[u]=e)},(i.hook||(i.hook={})).prepatch=function(t,e){v.instances[u]=e.componentInstance},i.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==v.instances[u]&&(v.instances[u]=t.componentInstance)};var m=i.props=c(l,v.props&&v.props[u]);if(m){m=i.props=a({},m);var g=i.attrs=i.attrs||{};for(var b in m)y.props&&b in y.props||(g[b]=m[b],delete m[b])}return s(y,i,r)}},Dt=/[!'()*]/g,$t=function(t){return"%"+t.charCodeAt(0).toString(16)},Nt=/%2C/g,Ft=function(t){return encodeURIComponent(t).replace(Dt,$t).replace(Nt,",")},Ht=decodeURIComponent,Lt=/\/?$/,Bt=p(null,{path:"/"}),zt=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},qt=D,Ut=O,Vt=j,Wt=C,Gt=I,Kt=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");qt.parse=Ut,qt.compile=Vt,qt.tokensToFunction=Wt,qt.tokensToRegExp=Gt;var Jt,Xt=Object.create(null),Qt=[String,Object],Yt=[String,Array],Zt=function(){},te={name:"RouterLink",props:{to:{type:Qt,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:Yt,default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,o=n.resolve(this.to,r,this.append),i=o.location,c=o.route,s=o.href,u={},l=n.options.linkActiveClass,f=n.options.linkExactActiveClass,d=null==l?"router-link-active":l,h=null==f?"router-link-exact-active":f,y=null==this.activeClass?d:this.activeClass,g=null==this.exactActiveClass?h:this.exactActiveClass,b=c.redirectedFrom?p(null,N(c.redirectedFrom),null,n):c;u[g]=v(r,b),u[y]=this.exact?u[g]:m(r,b);var _=function(t){F(t)&&(e.replace?n.replace(i,Zt):n.push(i,Zt))},w={click:F};Array.isArray(this.event)?this.event.forEach(function(t){w[t]=_}):w[this.event]=_;var O={class:u},j=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:s,route:c,navigate:_,isActive:u[y],isExactActive:u[g]});if(j){if(1===j.length)return j[0];if(j.length>1||!j.length)return 0===j.length?t():t("span",{},j)}if("a"===this.tag)O.on=w,O.attrs={href:s};else{var P=H(this.$slots.default);if(P){P.isStatic=!1;var x=P.data=a({},P.data);x.on=x.on||{};for(var C in x.on){var k=x.on[C];C in w&&(x.on[C]=Array.isArray(k)?k:[k])}for(var S in w)S in x.on?x.on[S].push(w[S]):x.on[S]=_;(P.data.attrs=a({},P.data.attrs)).href=s}else O.on=w}return t(this.tag,O,this.$slots.default)}},ee="undefined"!=typeof window,ne=ee&&window.performance&&window.performance.now?window.performance:Date,re=K(),oe=Object.create(null),ie=/^#\d/,ae=ee&&function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}(),ce="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,se=function(t){function e(e){t.call(this),this.name=this._name="NavigationDuplicated",this.message='Navigating to current location ("'+e.fullPath+'") is not allowed',Object.defineProperty(this,"stack",{value:(new t).stack,writable:!0,configurable:!0})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error);se._name="NavigationDuplicated";var ue=function(t,e){this.router=t,this.base=vt(e),this.current=Bt,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};ue.prototype.listen=function(t){this.cb=t},ue.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},ue.prototype.onError=function(t){this.errorCbs.push(t)},ue.prototype.transitionTo=function(t,e,n){var r=this,o=this.router.match(t,this.current);this.confirmTransition(o,function(){r.updateRoute(o),e&&e(o),r.ensureURL(),r.ready||(r.ready=!0,r.readyCbs.forEach(function(t){t(o)}))},function(t){n&&n(t),t&&!r.ready&&(r.ready=!0,r.readyErrorCbs.forEach(function(e){e(t)}))})},ue.prototype.confirmTransition=function(t,e,n){var a=this,c=this.current,s=function(t){!i(se,t)&&o(t)&&(a.errorCbs.length?a.errorCbs.forEach(function(e){e(t)}):(r(!1,"uncaught error during route navigation:"),console.error(t))),n&&n(t)};if(v(t,c)&&t.matched.length===c.matched.length)return this.ensureURL(),s(new se(t));var u=yt(this.current.matched,t.matched),l=u.updated,p=u.deactivated,f=u.activated,d=[].concat(bt(p),this.router.beforeHooks,_t(l),f.map(function(t){return t.beforeEnter}),lt(f));this.pending=t;var h=function(e,n){if(a.pending!==t)return s();try{e(t,c,function(t){!1===t||o(t)?(a.ensureURL(!0),s(t)):"string"==typeof t||"object"==typeof t&&("string"==typeof t.path||"string"==typeof t.name)?(s(),"object"==typeof t&&t.replace?a.replace(t):a.push(t)):n(t)})}catch(t){s(t)}};ut(d,h,function(){var n=[];ut(Ot(f,n,function(){return a.current===t}).concat(a.router.resolveHooks),h,function(){if(a.pending!==t)return s();a.pending=null,e(t),a.router.app&&a.router.app.$nextTick(function(){n.forEach(function(t){t()})})})})},ue.prototype.updateRoute=function(t){var e=this.current;this.current=t,this.cb&&this.cb(t),this.router.afterHooks.forEach(function(n){n&&n(t,e)})};var le=function(t){function e(e,n){var r=this;t.call(this,e,n);var o=e.options.scrollBehavior,i=ae&&o;i&&Q();var a=xt(this.base);window.addEventListener("popstate",function(t){var n=r.current,o=xt(r.base);r.current===Bt&&o===a||r.transitionTo(o,function(t){i&&Y(e,t,n,!0)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this,o=this,i=o.current;this.transitionTo(t,function(t){ct(w(r.base+t.fullPath)),Y(r.router,t,i,!1),e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this,o=this,i=o.current;this.transitionTo(t,function(t){st(w(r.base+t.fullPath)),Y(r.router,t,i,!1),e&&e(t)},n)},e.prototype.ensureURL=function(t){if(xt(this.base)!==this.current.fullPath){var e=w(this.base+this.current.fullPath);t?ct(e):st(e)}},e.prototype.getCurrentLocation=function(){return xt(this.base)},e}(ue),pe=function(t){function e(e,n,r){t.call(this,e,n),r&&Ct(this.base)||kt()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this,e=this.router,n=e.options.scrollBehavior,r=ae&&n;r&&Q(),window.addEventListener(ae?"popstate":"hashchange",function(){var e=t.current;kt()&&t.transitionTo(St(),function(n){r&&Y(t.router,n,e,!0),ae||Et(n.fullPath)})})},e.prototype.push=function(t,e,n){var r=this,o=this,i=o.current;this.transitionTo(t,function(t){Tt(t.fullPath),Y(r.router,t,i,!1),e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this,o=this,i=o.current;this.transitionTo(t,function(t){Et(t.fullPath),Y(r.router,t,i,!1),e&&e(t)},n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;St()!==e&&(t?Tt(e):Et(e))},e.prototype.getCurrentLocation=function(){return St()},e}(ue),fe=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)},n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,function(){e.index=n,e.updateRoute(r)},function(t){i(se,t)&&(e.index=n)})}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(ue),de=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=V(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!ae&&!1!==t.fallback,this.fallback&&(e="hash"),ee||(e="abstract"),this.mode=e,e){case"history":this.history=new le(this,t.base);break;case"hash":this.history=new pe(this,t.base,this.fallback);break;case"abstract":this.history=new fe(this,t.base)}},he={currentRoute:{configurable:!0}};de.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},he.currentRoute.get=function(){return this.history&&this.history.current},de.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null)}),!this.app){this.app=t;var n=this.history;if(n instanceof le)n.transitionTo(n.getCurrentLocation());else if(n instanceof pe){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen(function(t){e.apps.forEach(function(e){e._route=t})})}},de.prototype.beforeEach=function(t){return Rt(this.beforeHooks,t)},de.prototype.beforeResolve=function(t){return Rt(this.resolveHooks,t)},de.prototype.afterEach=function(t){return Rt(this.afterHooks,t)},de.prototype.onReady=function(t,e){this.history.onReady(t,e)},de.prototype.onError=function(t){this.history.onError(t)},de.prototype.push=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise(function(e,n){r.history.push(t,e,n)});this.history.push(t,e,n)},de.prototype.replace=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise(function(e,n){r.history.replace(t,e,n)});this.history.replace(t,e,n)},de.prototype.go=function(t){this.history.go(t)},de.prototype.back=function(){this.go(-1)},de.prototype.forward=function(){this.go(1)},de.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map(function(t){return Object.keys(t.components).map(function(e){return t.components[e]})})):[]},de.prototype.resolve=function(t,e,n){e=e||this.history.current;var r=N(t,e,n,this),o=this.match(r,e),i=o.redirectedFrom||o.fullPath;return{location:r,route:o,href:Mt(this.history.base,i,this.mode),normalizedTo:r,resolved:o}},de.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==Bt&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(de.prototype,he),de.install=L,de.version="3.1.3",ee&&window.Vue&&window.Vue.use(de),e.default=de},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){/**
+Object.defineProperty(e,"__esModule",{value:!0});var f=function(t){return t&&"object"==typeof t&&"default"in t?t.default:t}(n(13)),d="undefined"!=typeof Reflect&&Reflect.defineMetadata,h={__proto__:[]},v=h instanceof Array,y=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured"];p.registerHooks=function(t){y.push.apply(y,t)},e.default=p,e.createDecorator=i,e.mixins=a},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(5),i=n(38),a=n(7),c=n(15),s=n(19),u=n(20),l=n(2),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.instance=function(){return this._instance||(this._instance=new e),this._instance},Object.defineProperty(e.prototype,"storeOptions",{get:function(){return{state:{products:[],objects:void 0,funds:{}},mutations:{setProducts:function(t,e){var n={};e.forEach(function(t){n[t.id]={orderBook:{bids:[],asks:[]},history:[],historyType:"candles_60",tradeHistory:[],product:t,openOrders:[]}}),t.products=e,t.objects||(t.objects=n)},setOrderBook:function(t,e){t.objects[e.productId].orderBook={bids:e.bids,asks:e.asks}},setHistory:function(t,e){t.objects[e.productId].history=e.items,t.objects[e.productId].historyType=e.type},setTradeHistory:function(t,e){t.objects[e.productId].tradeHistory=e.trades},setOpenOrders:function(t,e){t.objects[e.productId].openOrders=e.items},setFunds:function(t,e){t.funds=e},updateFund:function(t,e){t.funds[e.currency]=e}}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"products",{get:function(){return this.store.state.products},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"funds",{get:function(){return this.store.state.funds},enumerable:!0,configurable:!0}),e.prototype.getObject=function(t){return this.store.state.objects[t]},e.prototype.loadProducts=function(t){var e=this;l.HttpService.Trade.getProducts().then(function(n){e.store.commit("setProducts",n),t&&t()})},e.prototype.loadProductHistory=function(t,e,n){var r=this,o="candles_"+e;this.subscribe([t],[o]),l.HttpService.Trade.getProductHistory(t,e).then(function(e){r.store.commit("setHistory",{productId:t,type:o,items:e}),n&&n()})},e.prototype.loadTradeHistory=function(t){var e=this;l.HttpService.Trade.getProductTradeHistory(t).then(function(n){n.forEach(function(t){t.localTime=o.Moment(t.time).format("H:mm:ss")}),e.store.commit("setTradeHistory",{productId:t,trades:n})})},e.prototype.loadOpenOrders=function(t,e){var n=this;this.subscribe([t],["order"]);var r=this.getObject(t).product;l.HttpService.Order.getOrders(t,1,["open"]).then(function(i){i.items.forEach(function(t){t.statusFormat=t.status,t.price=Number(t.price).toFixed(r.quoteScale),t.fillFees=Number(t.fillFees).toFixed(r.quoteScale),t.filledSize=Number(t.filledSize).toFixed(r.baseScale),t.size=Number(t.size).toFixed(r.baseScale),t.funds=Number(t.funds).toFixed(2),t.executedValue=Number(t.executedValue).toFixed(2),t.timeFormat=o.Moment(t.createdAt).format("MM-DD H:mm:ss"),t.priceFormat=Number(t.price)?t.price:"MARKET"}),n.store.commit("setOpenOrders",{productId:t,items:i.items}),e&&e()})},e.prototype.loadFunds=function(t){var e=this;this.subscribeFunds(t);var n={};l.HttpService.Account.getFunds(t).then(function(t){t.forEach(function(t){n[t.currency]=t}),e.store.commit("setFunds",n)})},e.prototype.subscribeAllTicker=function(){var t=[];this.products.forEach(function(e){t.push(e.id)}),this.subscribe(t,[s.SubscribeChannel.TICKET])},e.prototype.subscribe=function(t,e){c.WebSocketService.Instance.subscribe({type:"subscribe",product_ids:t,channels:e})},e.prototype.subscribeFunds=function(t){c.WebSocketService.Instance.subscribe({type:"subscribe",currency_ids:t,channels:["funds"]})},e.prototype.unsubscribe=function(t,e){c.WebSocketService.Instance.subscribe({type:"unsubscribe",product_ids:t,channels:e})},e.prototype.setOrderBook=function(t){this.store.commit("setOrderBook",t)},e.prototype.updateOrderBook=function(t){var e={};t.forEach(function(t){e[t.productId]||(e[t.productId]=[]),e[t.productId]=e[t.productId].concat(t.changes)});var n=this;for(var r in e)!function(t){var r={},o={};n.getObject(t).orderBook.bids.forEach(function(t){t&&(r[Number(t[0])]=t)}),n.getObject(t).orderBook.asks.forEach(function(t){t&&(o[Number(t[0])]=t)}),e[t].forEach(function(t){"buy"==t[0]?0==t[2]?delete r[Number(t[1])]:r[Number(t[1])]=[t[1],t[2]]:0==t[2]?delete o[Number(t[1])]:o[Number(t[1])]=[t[1],t[2]]});var i=a.Helper.Object_values(r).sort(function(t,e){return t[0]-e[0]}),c=a.Helper.Object_values(o).sort(function(t,e){return t[0]-e[0]});n.setOrderBook({productId:t,bids:i.reverse(),asks:c})}(r)},e.prototype.updateHistory=function(t){var e=this.getObject(t.productId),n=Math.floor(o.Moment(t.time).format("X")),r=e.history[0],i=Number(t.price),a=Number(t.size),c=Number(e.historyType.replace("candles_",""));r&&(n-=n%c,e.history[0]=[r[0],r[1]>i?i:r[1],r[2]>i?r[2]:i,r[3],i,r[5]+a],r[0]!=n&&e.history.unshift([n,i,i,i,i,a]))},e.prototype.updateTradeHistory=function(t){this.updateHistory(t),t.localTime=o.Moment(t.time).format("H:mm:ss");var e=this.getObject(t.productId).tradeHistory;e.unshift(t),e.length>120&&(e=e.slice(0,120)),this.store.commit("setTradeHistory",{productId:t.productId,trades:e})},e.prototype.updatePruductPrice=function(t){var e=[];this.products.forEach(function(n){n.id==t.productId&&(n=Object.assign(n,t),n.rate24h=(100*n.price/n.open24h-100).toFixed(2),n.volume24h=Math.floor(n.volume24h)),e.push(n)}),this.store.commit("setProducts",e)},e.prototype.updateOrder=function(t){var e=o.Collect(t).groupBy("productId"),n=this;for(var r in e.items)!function(t){var r=n.getObject(t).product,i=n.getObject(t).openOrders;e.items[t].items.forEach(function(t){var e=i.filter(function(e){return e.id==t.id});t.statusFormat=t.status,t.price=Number(t.price).toFixed(r.quoteScale),t.filledSize=Number(t.filledSize).toFixed(r.baseScale),t.fillFees=Number(t.fillFees).toFixed(r.quoteScale),t.size=Number(t.size).toFixed(r.baseScale),t.funds=Number(t.funds).toFixed(2),t.executedValue=Number(t.executedValue).toFixed(2),t.timeFormat=o.Moment(t.createdAt).format("MM-DD H:mm:ss"),t.priceFormat=Number(t.price)?t.price:"MARKET",e.length?e[0]=Object.assign(e[0],t):i.unshift(t)}),n.store.commit("setOpenOrders",{productId:t,items:i})}(r)},e.prototype.updateFund=function(t){var e={};t.forEach(function(t){e[t.currencyCode]={available:t.available,currency:t.currencyCode,hold:t.hold}});for(var n in e)this.store.commit("updateFund",e[n])},e.prototype.clearUserTrades=function(){var t=this;this.products.forEach(function(e){t.store.commit("setOpenOrders",{productId:e.id,items:[]}),t.unsubscribe([e.id],["order","funds"])})},e.prototype.parseWebSocketMessage=function(t){var e=this;"snapshot"==t.type?this.setOrderBook(t):"l2update"==t.type?(this.bookBuffer||(this.bookBuffer=new i.SocketMsgBuffer(function(t){e.updateOrderBook(t)},200)),this.bookBuffer.push(t)):0===t.type.indexOf("candles")?this.updateHistory(t):"match"==t.type?this.updateTradeHistory(t):"ticker"==t.type?this.updatePruductPrice(t):"order"==t.type?(this.orderBuffer||(this.orderBuffer=new i.SocketMsgBuffer(function(t){e.updateOrder(t)},300)),this.orderBuffer.push(t)):"funds"==t.type&&(this.fundsBuffer||(this.fundsBuffer=new i.SocketMsgBuffer(function(t){e.updateFund(t)},300)),this.fundsBuffer.push(t))},e}(u.Store);e.TradeStore=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){}return t.CANDLES="candles",t.LEVEL2="level2",t.MATCH="match",t.TICKET="ticker",t.ORDER="order",t}();e.SubscribeChannel=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),o=function(){function t(){this.store=new r.BaseStoreInstance(this.storeOptions)}return Object.defineProperty(t.prototype,"storeOptions",{get:function(){return{}},enumerable:!0,configurable:!0}),t}();e.Store=o},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},function(t,e,n){"use strict";function r(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o=n(4);t.exports=function(t,e,n){if(!e)return t;var i;if(n)i=n(e);else if(o.isURLSearchParams(e))i=e.toString();else{var a=[];o.forEach(e,function(t,e){null!==t&&void 0!==t&&(o.isArray(t)?e+="[]":t=[t],o.forEach(t,function(t){o.isDate(t)?t=t.toISOString():o.isObject(t)&&(t=JSON.stringify(t)),a.push(r(e)+"="+r(t))}))}),i=a.join("&")}if(i){var c=t.indexOf("#");-1!==c&&(t=t.slice(0,c)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";(function(e){function r(t,e){!o.isUndefined(t)&&o.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var o=n(4),i=n(48),a={"Content-Type":"application/x-www-form-urlencoded"},c={adapter:function(){var t;return void 0!==e&&"[object process]"===Object.prototype.toString.call(e)?t=n(25):"undefined"!=typeof XMLHttpRequest&&(t=n(25)),t}(),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),o.isFormData(t)||o.isArrayBuffer(t)||o.isBuffer(t)||o.isStream(t)||o.isFile(t)||o.isBlob(t)?t:o.isArrayBufferView(t)?t.buffer:o.isURLSearchParams(t)?(r(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):o.isObject(t)?(r(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},o.forEach(["delete","get","head"],function(t){c.headers[t]={}}),o.forEach(["post","put","patch"],function(t){c.headers[t]=o.merge(a)}),t.exports=c}).call(e,n(14))},function(t,e,n){"use strict";var r=n(4),o=n(49),i=n(22),a=n(51),c=n(52),s=n(26);t.exports=function(t){return new Promise(function(e,u){var l=t.data,p=t.headers;r.isFormData(l)&&delete p["Content-Type"];var f=new XMLHttpRequest;if(t.auth){var d=t.auth.username||"",h=t.auth.password||"";p.Authorization="Basic "+btoa(d+":"+h)}if(f.open(t.method.toUpperCase(),i(t.url,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in f?a(f.getAllResponseHeaders()):null,r=t.responseType&&"text"!==t.responseType?f.response:f.responseText,i={data:r,status:f.status,statusText:f.statusText,headers:n,config:t,request:f};o(e,u,i),f=null}},f.onabort=function(){f&&(u(s("Request aborted",t,"ECONNABORTED",f)),f=null)},f.onerror=function(){u(s("Network Error",t,null,f)),f=null},f.ontimeout=function(){u(s("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var v=n(53),y=(t.withCredentials||c(t.url))&&t.xsrfCookieName?v.read(t.xsrfCookieName):void 0;y&&(p[t.xsrfHeaderName]=y)}if("setRequestHeader"in f&&r.forEach(p,function(t,e){void 0===l&&"content-type"===e.toLowerCase()?delete p[e]:f.setRequestHeader(e,t)}),t.withCredentials&&(f.withCredentials=!0),t.responseType)try{f.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&f.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){f&&(f.abort(),u(t),f=null)}),void 0===l&&(l=null),f.send(l)})}},function(t,e,n){"use strict";var r=n(50);t.exports=function(t,e,n,o,i){var a=new Error(t);return r(a,e,n,o,i)}},function(t,e,n){"use strict";var r=n(4);t.exports=function(t,e){e=e||{};var n={};return r.forEach(["url","method","params","data"],function(t){void 0!==e[t]&&(n[t]=e[t])}),r.forEach(["headers","auth","proxy"],function(o){r.isObject(e[o])?n[o]=r.deepMerge(t[o],e[o]):void 0!==e[o]?n[o]=e[o]:r.isObject(t[o])?n[o]=r.deepMerge(t[o]):void 0!==t[o]&&(n[o]=t[o])}),r.forEach(["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"],function(r){void 0!==e[r]?n[r]=e[r]:void 0!==t[r]&&(n[r]=t[r])}),n}},function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.i18n={default:{menu:{login:"Log In",register:"SIGN UP",logout:"Sign Out",help:"Help",api:"Api",fees:"Fees",viewExchange:"View Exchange",orders:"Orders",settings:"Settings",home:"Home",trade:"Trade",lastTradePrice:"last trade price",price24H:"24h price",volume24H:"24h volume",started:"GET STARTED"},page:{trade:{bottomMenuTrade:"TRADE",bottomMenuBook:"BOOK",bottomMenuChart:"CHARTS",bottomMenuOrder:"ORDERS",bottomMenuHistory:"HISTORY"},account:{loginPageTitle:"Sign In",loginFormTitle:"Log in to GitBitEX",login2StepTitle:"2-Step Verification",registerPageTitle:"Sign Up",registerFormTitle:"Sign up to GitBitEX",forgotPageTitle:"Forgot Passwor",forgotFormTitle:"Forgot your password?",inputEmailName:"Email",inputEmailPlaceHolder:"you@example.com",inputCodeName:"Code",inputCodePlaceHolder:"Input verification code",inputPwdName:"Password",inputPwdPlaceHolder:"Minimum 8 characters",inputArgDesc:"I agree to the",inputArgAnd:"and",inputArgDescUser:"User Agreement",inputArgDescPolicy:"Privacy Policy",inputTwoFactorName:"Two-Factor",inputGAuthPlaceHolder:"Google Authenticator",linkHaveAccount:"Already have an account?",linkNotHaveAccount:"Don't have an account?",linkForgotPassword:"Forgot password? ",linkLogin:"Login?",alertEmailError:"Please enter a valid email",alertCodeSended:"We sent verification code to your email",alertPwdRequired:"Password is required",alertPwdShort:"Password is too short (minimum is 8 characters)",alertAcceptArg:"Please accept the user agreement",btnRegister:"CREATE A ACCOUNT",btnLogin:"LOG IN",btnVerify:"VERIFY",btnResetPassword:"RESET PASSWORD",descEmail2Step:"The verification code generated by your email"},order:{pageTitle:"Orders",tableTitle:"My Orders",paginationPrev:"Prev",paginationNext:"Next"},setting:{pageTitle:"Settings",profileTitle:"My Profile",nickName:"Nick Name",nickNameDesc:"This name will be part of your public profile.",factorTitle:"2-step verification",factorDesc:"Select your 2-step verification method",options:"OPTIONS",save:"Save",success:"Success",factorEmailDesc:"Sent verification code to your email",secure:"Secure",secureVery:"Very secure",select:"Select",selected:"Selected",factorGAuthDesc:"Install an authenticator app on your phone",apiTitle:"My API",apiDesc:"API keys allow you to perform automated actions on your account with your own software",apiCreate:"New API Key",apiFieldKey:"App Key",apiFieldSecret:"App Secret",apiFieldCreatedAt:"Created At"}},component:{code:{btnTitle:"GET CODE",alertEmailError:"Please enter a valid email"},formOrder:{title:"ORDER FORM",login:"Sign in",or:"or",register:"create account",balance:"BALANCE",hold:"HOLD",deposit:"DEPOSIT",withdrawal:"WITHDRAWAL",amount:"Amount",limitPrice:"Limit Price",total:"Total",buy:"BUY",sell:"SELL",market:"MARKET",limit:"LIMIT",orderBuy:"PLACE BUY ORDER",orderSell:"PLACE SELL ORDER",orderSuccess:"SUCCESS",orderError:"ERROR",errorAmount:"Amount must be specified",errorPrice:"Price must be specified"},orderBook:{title:"ORDER BOOK",orderBook:"Order Book",tradeHistory:"Trade History",marketSize:"Market Size",price:"Price",spread:"Spread",aggregation:"Aggregation"},tradeHistory:{title:"TRADE HISTORY",orderBook:"Order Book",tradeHistory:"Trade History",tradeSize:"Trade Size",price:"Price",time:"Time"},openOrder:{title:"OPEN ORDERS",cancelAll:"cancel all"},orderTable:{side:"Side",size:"Size",filled:"Filled",funds:"Funds",executed:"Executed",price:"Price",fee:"Fee",time:"Time",status:"Status",loading:"Loading...",noOrder:"No orders to show"},tradeChart:{title:"PRICE CHART",midMarketPrice:"Mid Market Price",priceChart:"Price Chart",depthChart:"Depth Chart"},modalFactor:{GAuthTitle:"Google Authenticator",GAuthQrcodeDesc:"open Google Authenticator and scan the QR Code below",btnCancel:"Cancel",btnConfirm:"Confirm"}}}}},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),a=n(0),c=n(3);e.MODAL_TWO_VERIFICATION="modal-two-verification";var s=function(t){function s(){return null!==t&&t.apply(this,arguments)||this}return r(s,t),s.prototype.close=function(){},s.prototype.created=function(){this.i18nInit("component.modalFactor")},s.prototype.mounted=function(){var e=this;t.prototype.mounted.call(this),i.HttpService.Account.googleAuthQrcodeGet().then(function(t){new window.QRCode(e.$refs.qrcode,t.uri)})},s.prototype.confirm=function(){c.StoreService.Account.saveSecondFactor("gotp").then(function(){}),this.close()},o([a.Emit("close")],s.prototype,"close",null),s=o([a.Dom(e.MODAL_TWO_VERIFICATION,n(138)())],s)}(a.Component);e.TwoVerificationModalComponent=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),o=n(36),i=n(65),a=n(67),c=n(69),s=n(71),u=n(73),l=n(75),p=n(77),f=n(81),d=n(83),h=n(85),v=n(87),y=n(89),m=n(91),g=n(93),b=n(95),_=n(97),w=n(99),O=n(101),j=n(103),P=n(105),x=n(107),C=n(109),k=n(111),S=n(113),A=n(115),T=n(117),E=n(119),R=n(121),M=n(123),I=n(125),D=n(127),$=n(129),N=n(131),F=n(133),H=n(135),L=n(137),B=n(140),z=n(142),q=n(144),U=n(146),V=n(148),W=n(150),G=n(152),K=n(154),J=n(156),X=n(158),Q=n(160),Y=n(162),Z=n(164),tt=n(166),et=n(168),nt=n(169),rt=n(170),ot=n(172),it=n(174),at=n(176),ct=n(30),st=n(178),ut=n(180);nt.Framework.initModules([tt.HomePage,X.TradePage,z.ProxyPage,it.AccountLoginPage,at.AccountRegisterPage,L.AccountProfilePage,x.AccountWalletPage,k.AccountWalletDepositPage,C.AccountWalletWithdrawalPage,m.AccountOrderPage,p.AccountForgotPage],[Z.PageAlertComponent,Y.PageErrorComponent,Q.PageLoadingComponent,J.TradeHeaderComponent,K.TradePanelComponent,W.OrderBookPanelComponent,h.OrderPanelComponent,rt.OrderListPanelComponent,G.OrderFormComponent,i.DepthChartComponent,o.CandleChartComponent,V.TradeViewChartComponent,U.TradeHistoryPanelComponent,q.LinkProxyComponent,B.NavbarHeaderComponent,l.NavbarHomeComponent,H.DepositModalComponent,F.WithdrawalModalComponent,j.TransactionModalComponent,N.IconTransactionComponent,I.IconSuccessComponent,E.IconQrcodeComponent,T.IconSendComponent,A.IconReceivedComponent,P.IconSentComponent,_.IconArrowComponent,b.IconUpComponent,g.IconDownComponent,y.IconHamburgerComponent,u.IconCertComponent,s.IconBarDownComponent,c.IconCodeComponent,$.DepositFormComponent,D.WithdrawalFormComponent,M.PriceFormatComponent,R.NumberFormatComponent,w.WalletPanelComponent,O.WalletListPanelComponent,S.TransactionPanelComponent,ot.LogoComponent,v.SelectComponent,d.PaginationComponent,f.ChangePasswordModalComponent,a.ChartSliderComponent,ct.TwoVerificationModalComponent,st.FormCodeComponent,ut.MenuAccountComponent],[r.BaseStore]),et.App.init(function(){nt.Framework.bootstrap()})},function(t,e,n){(function(t){function r(t,e){this._id=t,this._clearFn=e}var o=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;e.setTimeout=function(){return new r(i.call(setTimeout,o,arguments),clearTimeout)},e.setInterval=function(){return new r(i.call(setInterval,o,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(o,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(33),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(e,n(9))},function(t,e,n){(function(t,e){!function(t,n){"use strict";function r(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var r={callback:t,args:e};return u[s]=r,c(s),s++}function o(t){delete u[t]}function i(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(n,r)}}function a(t){if(l)setTimeout(a,0,t);else{var e=u[t];if(e){l=!0;try{i(e)}finally{o(t),l=!1}}}}if(!t.setImmediate){var c,s=1,u={},l=!1,p=t.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(t);f=f&&f.setTimeout?f:t,"[object process]"==={}.toString.call(t.process)?function(){c=function(t){e.nextTick(function(){a(t)})}}():function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?function(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"==typeof n.data&&0===n.data.indexOf(e)&&a(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),c=function(n){t.postMessage(e+n,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){a(t.data)},c=function(e){t.port2.postMessage(e)}}():p&&"onreadystatechange"in p.createElement("script")?function(){var t=p.documentElement;c=function(e){var n=p.createElement("script");n.onreadystatechange=function(){a(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}():function(){c=function(t){setTimeout(a,0,t)}}(),f.setImmediate=r,f.clearImmediate=o}}("undefined"==typeof self?void 0===t?this:t:self)}).call(e,n(9),n(14))},function(t,e,n){"use strict";function r(t,e){}function o(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function i(t,e){return e instanceof t||e&&(e.name===t.name||e._name===t._name)}function a(t,e){for(var n in e)t[n]=e[n];return t}function c(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0}}function s(t,e,n){void 0===e&&(e={});var r,o=n||u;try{r=o(t||"")}catch(t){r={}}for(var i in e)r[i]=e[i];return r}function u(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(t){var n=t.replace(/\+/g," ").split("="),r=Ht(n.shift()),o=n.length>0?Ht(n.join("=")):null;void 0===e[r]?e[r]=o:Array.isArray(e[r])?e[r].push(o):e[r]=[e[r],o]}),e):e}function l(t){var e=t?Object.keys(t).map(function(e){var n=t[e];if(void 0===n)return"";if(null===n)return Ft(e);if(Array.isArray(n)){var r=[];return n.forEach(function(t){void 0!==t&&(null===t?r.push(Ft(e)):r.push(Ft(e)+"="+Ft(t)))}),r.join("&")}return Ft(e)+"="+Ft(n)}).filter(function(t){return t.length>0}).join("&"):null;return e?"?"+e:""}function p(t,e,n,r){var o=r&&r.options.stringifyQuery,i=e.query||{};try{i=f(i)}catch(t){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:i,params:e.params||{},fullPath:h(e,o),matched:t?d(t):[]};return n&&(a.redirectedFrom=h(n,o)),Object.freeze(a)}function f(t){if(Array.isArray(t))return t.map(f);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=f(t[n]);return e}return t}function d(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function h(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var o=t.hash;void 0===o&&(o="");var i=e||l;return(n||"/")+i(r)+o}function v(t,e){return e===Bt?t===e:!!e&&(t.path&&e.path?t.path.replace(Lt,"")===e.path.replace(Lt,"")&&t.hash===e.hash&&y(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&y(t.query,e.query)&&y(t.params,e.params)))}function y(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every(function(n){var r=t[n],o=e[n];return"object"==typeof r&&"object"==typeof o?y(r,o):String(r)===String(o)})}function m(t,e){return 0===t.path.replace(Lt,"/").indexOf(e.path.replace(Lt,"/"))&&(!e.hash||t.hash===e.hash)&&g(t.query,e.query)}function g(t,e){for(var n in e)if(!(n in t))return!1;return!0}function b(t,e,n){var r=t.charAt(0);if("/"===r)return t;if("?"===r||"#"===r)return e+t;var o=e.split("/");n&&o[o.length-1]||o.pop();for(var i=t.replace(/^\//,"").split("/"),a=0;a<i.length;a++){var c=i[a];".."===c?o.pop():"."!==c&&o.push(c)}return""!==o[0]&&o.unshift(""),o.join("/")}function _(t){var e="",n="",r=t.indexOf("#");r>=0&&(e=t.slice(r),t=t.slice(0,r));var o=t.indexOf("?");return o>=0&&(n=t.slice(o+1),t=t.slice(0,o)),{path:t,query:n,hash:e}}function w(t){return t.replace(/\/\//g,"/")}function O(t,e){for(var n,r=[],o=0,i=0,a="",c=e&&e.delimiter||"/";null!=(n=Kt.exec(t));){var s=n[0],u=n[1],l=n.index;if(a+=t.slice(i,l),i=l+s.length,u)a+=u[1];else{var p=t[i],f=n[2],d=n[3],h=n[4],v=n[5],y=n[6],m=n[7];a&&(r.push(a),a="");var g=null!=f&&null!=p&&p!==f,b="+"===y||"*"===y,_="?"===y||"*"===y,w=n[2]||c,O=h||v;r.push({name:d||o++,prefix:f||"",delimiter:w,optional:_,repeat:b,partial:g,asterisk:!!m,pattern:O?S(O):m?".*":"[^"+k(w)+"]+?"})}}return i<t.length&&(a+=t.substr(i)),a&&r.push(a),r}function j(t,e){return C(O(t,e))}function P(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function x(t){return encodeURI(t).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function C(t){for(var e=new Array(t.length),n=0;n<t.length;n++)"object"==typeof t[n]&&(e[n]=new RegExp("^(?:"+t[n].pattern+")$"));return function(n,r){for(var o="",i=n||{},a=r||{},c=a.pretty?P:encodeURIComponent,s=0;s<t.length;s++){var u=t[s];if("string"!=typeof u){var l,p=i[u.name];if(null==p){if(u.optional){u.partial&&(o+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(zt(p)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var f=0;f<p.length;f++){if(l=c(p[f]),!e[s].test(l))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(l)+"`");o+=(0===f?u.prefix:u.delimiter)+l}}else{if(l=u.asterisk?x(p):c(p),!e[s].test(l))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+l+'"');o+=u.prefix+l}}else o+=u}return o}}function k(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function S(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function A(t,e){return t.keys=e,t}function T(t){return t.sensitive?"":"i"}function E(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return A(t,e)}function R(t,e,n){for(var r=[],o=0;o<t.length;o++)r.push(D(t[o],e,n).source);return A(new RegExp("(?:"+r.join("|")+")",T(n)),e)}function M(t,e,n){return I(O(t,n),e,n)}function I(t,e,n){zt(e)||(n=e||n,e=[]),n=n||{};for(var r=n.strict,o=!1!==n.end,i="",a=0;a<t.length;a++){var c=t[a];if("string"==typeof c)i+=k(c);else{var s=k(c.prefix),u="(?:"+c.pattern+")";e.push(c),c.repeat&&(u+="(?:"+s+u+")*"),u=c.optional?c.partial?s+"("+u+")?":"(?:"+s+"("+u+"))?":s+"("+u+")",i+=u}}var l=k(n.delimiter||"/"),p=i.slice(-l.length)===l;return r||(i=(p?i.slice(0,-l.length):i)+"(?:"+l+"(?=$))?"),i+=o?"$":r&&p?"":"(?="+l+"|$)",A(new RegExp("^"+i,T(n)),e)}function D(t,e,n){return zt(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?E(t,e):zt(t)?R(t,e,n):M(t,e,n)}function $(t,e,n){e=e||{};try{var r=Xt[t]||(Xt[t]=qt.compile(t));return e.pathMatch&&(e[0]=e.pathMatch),r(e,{pretty:!0})}catch(t){return""}finally{delete e[0]}}function N(t,e,n,r){var o="string"==typeof t?{path:t}:t;if(o._normalized)return o;if(o.name)return a({},t);if(!o.path&&o.params&&e){o=a({},o),o._normalized=!0;var i=a(a({},e.params),o.params);if(e.name)o.name=e.name,o.params=i;else if(e.matched.length){var c=e.matched[e.matched.length-1].path;o.path=$(c,i,"path "+e.path)}return o}var u=_(o.path||""),l=e&&e.path||"/",p=u.path?b(u.path,l,n||o.append):l,f=s(u.query,o.query,r&&r.options.parseQuery),d=o.hash||u.hash;return d&&"#"!==d.charAt(0)&&(d="#"+d),{_normalized:!0,path:p,query:f,hash:d}}function F(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||void 0!==t.button&&0!==t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){if(/\b_blank\b/i.test(t.currentTarget.getAttribute("target")))return}return t.preventDefault&&t.preventDefault(),!0}}function H(t){if(t)for(var e,n=0;n<t.length;n++){if(e=t[n],"a"===e.tag)return e;if(e.children&&(e=H(e.children)))return e}}function L(t){if(!L.installed||Jt!==t){L.installed=!0,Jt=t;var e=function(t){return void 0!==t},n=function(t,n){var r=t.$options._parentVnode;e(r)&&e(r=r.data)&&e(r=r.registerRouteInstance)&&r(t,n)};t.mixin({beforeCreate:function(){e(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,n(this,this)},destroyed:function(){n(this)}}),Object.defineProperty(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",It),t.component("RouterLink",te);var r=t.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created}}function B(t,e,n,r){var o=e||[],i=n||Object.create(null),a=r||Object.create(null);t.forEach(function(t){z(o,i,a,t)});for(var c=0,s=o.length;c<s;c++)"*"===o[c]&&(o.push(o.splice(c,1)[0]),s--,c--);return{pathList:o,pathMap:i,nameMap:a}}function z(t,e,n,r,o,i){var a=r.path,c=r.name,s=r.pathToRegexpOptions||{},u=U(a,o,s.strict);"boolean"==typeof r.caseSensitive&&(s.sensitive=r.caseSensitive);var l={path:u,regex:q(u,s),components:r.components||{default:r.component},instances:{},name:c,parent:o,matchAs:i,redirect:r.redirect,beforeEnter:r.beforeEnter,meta:r.meta||{},props:null==r.props?{}:r.components?r.props:{default:r.props}};if(r.children&&r.children.forEach(function(r){var o=i?w(i+"/"+r.path):void 0;z(t,e,n,r,l,o)}),e[l.path]||(t.push(l.path),e[l.path]=l),void 0!==r.alias)for(var p=Array.isArray(r.alias)?r.alias:[r.alias],f=0;f<p.length;++f){var d=p[f],h={path:d,children:r.children};z(t,e,n,h,o,l.path||"/")}c&&(n[c]||(n[c]=l))}function q(t,e){var n=qt(t,[],e);return n}function U(t,e,n){return n||(t=t.replace(/\/$/,"")),"/"===t[0]?t:null==e?t:w(e.path+"/"+t)}function V(t,e){function n(t){B(t,s,u,l)}function r(t,n,r){var o=N(t,n,!1,e),i=o.name;if(i){var c=l[i];if(!c)return a(null,o);var p=c.regex.keys.filter(function(t){return!t.optional}).map(function(t){return t.name});if("object"!=typeof o.params&&(o.params={}),n&&"object"==typeof n.params)for(var f in n.params)!(f in o.params)&&p.indexOf(f)>-1&&(o.params[f]=n.params[f]);return o.path=$(c.path,o.params,'named route "'+i+'"'),a(c,o,r)}if(o.path){o.params={};for(var d=0;d<s.length;d++){var h=s[d],v=u[h];if(W(v.regex,o.path,o.params))return a(v,o,r)}}return a(null,o)}function o(t,n){var o=t.redirect,i="function"==typeof o?o(p(t,n,null,e)):o;if("string"==typeof i&&(i={path:i}),!i||"object"!=typeof i)return a(null,n);var c=i,s=c.name,u=c.path,f=n.query,d=n.hash,h=n.params;if(f=c.hasOwnProperty("query")?c.query:f,d=c.hasOwnProperty("hash")?c.hash:d,h=c.hasOwnProperty("params")?c.params:h,s){l[s];return r({_normalized:!0,name:s,query:f,hash:d,params:h},void 0,n)}if(u){var v=G(u,t);return r({_normalized:!0,path:$(v,h,'redirect route with path "'+v+'"'),query:f,hash:d},void 0,n)}return a(null,n)}function i(t,e,n){var o=$(n,e.params,'aliased route with path "'+n+'"'),i=r({_normalized:!0,path:o});if(i){var c=i.matched,s=c[c.length-1];return e.params=i.params,a(s,e)}return a(null,e)}function a(t,n,r){return t&&t.redirect?o(t,r||n):t&&t.matchAs?i(t,n,t.matchAs):p(t,n,r,e)}var c=B(t),s=c.pathList,u=c.pathMap,l=c.nameMap;return{match:r,addRoutes:n}}function W(t,e,n){var r=e.match(t);if(!r)return!1;if(!n)return!0;for(var o=1,i=r.length;o<i;++o){var a=t.keys[o-1],c="string"==typeof r[o]?decodeURIComponent(r[o]):r[o];a&&(n[a.name||"pathMatch"]=c)}return!0}function G(t,e){return b(t,e.parent?e.parent.path:"/",!0)}function K(){return ne.now().toFixed(3)}function J(){return re}function X(t){return re=t}function Q(){var t=window.location.protocol+"//"+window.location.host,e=window.location.href.replace(t,"");window.history.replaceState({key:J()},"",e),window.addEventListener("popstate",function(t){Z(),t.state&&t.state.key&&X(t.state.key)})}function Y(t,e,n,r){if(t.app){var o=t.options.scrollBehavior;o&&t.app.$nextTick(function(){var i=tt(),a=o.call(t,e,n,r?i:null);a&&("function"==typeof a.then?a.then(function(t){at(t,i)}).catch(function(t){}):at(a,i))})}}function Z(){var t=J();t&&(oe[t]={x:window.pageXOffset,y:window.pageYOffset})}function tt(){var t=J();if(t)return oe[t]}function et(t,e){var n=document.documentElement,r=n.getBoundingClientRect(),o=t.getBoundingClientRect();return{x:o.left-r.left-e.x,y:o.top-r.top-e.y}}function nt(t){return it(t.x)||it(t.y)}function rt(t){return{x:it(t.x)?t.x:window.pageXOffset,y:it(t.y)?t.y:window.pageYOffset}}function ot(t){return{x:it(t.x)?t.x:0,y:it(t.y)?t.y:0}}function it(t){return"number"==typeof t}function at(t,e){var n="object"==typeof t;if(n&&"string"==typeof t.selector){var r=ie.test(t.selector)?document.getElementById(t.selector.slice(1)):document.querySelector(t.selector);if(r){var o=t.offset&&"object"==typeof t.offset?t.offset:{};o=ot(o),e=et(r,o)}else nt(t)&&(e=rt(t))}else n&&nt(t)&&(e=rt(t));e&&window.scrollTo(e.x,e.y)}function ct(t,e){Z();var n=window.history;try{e?n.replaceState({key:J()},"",t):n.pushState({key:X(K())},"",t)}catch(n){window.location[e?"replace":"assign"](t)}}function st(t){ct(t,!0)}function ut(t,e,n){var r=function(o){o>=t.length?n():t[o]?e(t[o],function(){r(o+1)}):r(o+1)};r(0)}function lt(t){return function(e,n,r){var i=!1,a=0,c=null;pt(t,function(t,e,n,s){if("function"==typeof t&&void 0===t.cid){i=!0,a++;var u,l=ht(function(e){dt(e)&&(e=e.default),t.resolved="function"==typeof e?e:Jt.extend(e),n.components[s]=e,--a<=0&&r()}),p=ht(function(t){var e="Failed to resolve async component "+s+": "+t;c||(c=o(t)?t:new Error(e),r(c))});try{u=t(l,p)}catch(t){p(t)}if(u)if("function"==typeof u.then)u.then(l,p);else{var f=u.component;f&&"function"==typeof f.then&&f.then(l,p)}}}),i||r()}}function pt(t,e){return ft(t.map(function(t){return Object.keys(t.components).map(function(n){return e(t.components[n],t.instances[n],t,n)})}))}function ft(t){return Array.prototype.concat.apply([],t)}function dt(t){return t.__esModule||ce&&"Module"===t[Symbol.toStringTag]}function ht(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}function vt(t){if(!t)if(ee){var e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^https?:\/\/[^\/]+/,"")}else t="/";return"/"!==t.charAt(0)&&(t="/"+t),t.replace(/\/$/,"")}function yt(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n<r&&t[n]===e[n];n++);return{updated:e.slice(0,n),activated:e.slice(n),deactivated:t.slice(n)}}function mt(t,e,n,r){var o=pt(t,function(t,r,o,i){var a=gt(t,e);if(a)return Array.isArray(a)?a.map(function(t){return n(t,r,o,i)}):n(a,r,o,i)});return ft(r?o.reverse():o)}function gt(t,e){return"function"!=typeof t&&(t=Jt.extend(t)),t.options[e]}function bt(t){return mt(t,"beforeRouteLeave",wt,!0)}function _t(t){return mt(t,"beforeRouteUpdate",wt)}function wt(t,e){if(e)return function(){return t.apply(e,arguments)}}function Ot(t,e,n){return mt(t,"beforeRouteEnter",function(t,r,o,i){return jt(t,o,i,e,n)})}function jt(t,e,n,r,o){return function(i,a,c){return t(i,a,function(t){"function"==typeof t&&r.push(function(){Pt(t,e.instances,n,o)}),c(t)})}}function Pt(t,e,n,r){e[n]&&!e[n]._isBeingDestroyed?t(e[n]):r()&&setTimeout(function(){Pt(t,e,n,r)},16)}function xt(t){var e=decodeURI(window.location.pathname);return t&&0===e.indexOf(t)&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}function Ct(t){var e=xt(t);if(!/^\/#/.test(e))return window.location.replace(w(t+"/#"+e)),!0}function kt(){var t=St();return"/"===t.charAt(0)||(Et("/"+t),!1)}function St(){var t=window.location.href,e=t.indexOf("#");if(e<0)return"";t=t.slice(e+1);var n=t.indexOf("?");if(n<0){var r=t.indexOf("#");t=r>-1?decodeURI(t.slice(0,r))+t.slice(r):decodeURI(t)}else n>-1&&(t=decodeURI(t.slice(0,n))+t.slice(n));return t}function At(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function Tt(t){ae?ct(At(t)):window.location.hash=t}function Et(t){ae?st(At(t)):window.location.replace(At(t))}function Rt(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function Mt(t,e,n){var r="hash"===n?"#"+e:e;return t?w(t+"/"+r):r}Object.defineProperty(e,"__esModule",{value:!0});var It={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,r=e.children,o=e.parent,i=e.data;i.routerView=!0;for(var s=o.$createElement,u=n.name,l=o.$route,p=o._routerViewCache||(o._routerViewCache={}),f=0,d=!1;o&&o._routerRoot!==o;){var h=o.$vnode&&o.$vnode.data;h&&(h.routerView&&f++,h.keepAlive&&o._inactive&&(d=!0)),o=o.$parent}if(i.routerViewDepth=f,d)return s(p[u],i,r);var v=l.matched[f];if(!v)return p[u]=null,s();var y=p[u]=v.components[u];i.registerRouteInstance=function(t,e){var n=v.instances[u];(e&&n!==t||!e&&n===t)&&(v.instances[u]=e)},(i.hook||(i.hook={})).prepatch=function(t,e){v.instances[u]=e.componentInstance},i.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==v.instances[u]&&(v.instances[u]=t.componentInstance)};var m=i.props=c(l,v.props&&v.props[u]);if(m){m=i.props=a({},m);var g=i.attrs=i.attrs||{};for(var b in m)y.props&&b in y.props||(g[b]=m[b],delete m[b])}return s(y,i,r)}},Dt=/[!'()*]/g,$t=function(t){return"%"+t.charCodeAt(0).toString(16)},Nt=/%2C/g,Ft=function(t){return encodeURIComponent(t).replace(Dt,$t).replace(Nt,",")},Ht=decodeURIComponent,Lt=/\/?$/,Bt=p(null,{path:"/"}),zt=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},qt=D,Ut=O,Vt=j,Wt=C,Gt=I,Kt=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");qt.parse=Ut,qt.compile=Vt,qt.tokensToFunction=Wt,qt.tokensToRegExp=Gt;var Jt,Xt=Object.create(null),Qt=[String,Object],Yt=[String,Array],Zt=function(){},te={name:"RouterLink",props:{to:{type:Qt,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:Yt,default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,o=n.resolve(this.to,r,this.append),i=o.location,c=o.route,s=o.href,u={},l=n.options.linkActiveClass,f=n.options.linkExactActiveClass,d=null==l?"router-link-active":l,h=null==f?"router-link-exact-active":f,y=null==this.activeClass?d:this.activeClass,g=null==this.exactActiveClass?h:this.exactActiveClass,b=c.redirectedFrom?p(null,N(c.redirectedFrom),null,n):c;u[g]=v(r,b),u[y]=this.exact?u[g]:m(r,b);var _=function(t){F(t)&&(e.replace?n.replace(i,Zt):n.push(i,Zt))},w={click:F};Array.isArray(this.event)?this.event.forEach(function(t){w[t]=_}):w[this.event]=_;var O={class:u},j=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:s,route:c,navigate:_,isActive:u[y],isExactActive:u[g]});if(j){if(1===j.length)return j[0];if(j.length>1||!j.length)return 0===j.length?t():t("span",{},j)}if("a"===this.tag)O.on=w,O.attrs={href:s};else{var P=H(this.$slots.default);if(P){P.isStatic=!1;var x=P.data=a({},P.data);x.on=x.on||{};for(var C in x.on){var k=x.on[C];C in w&&(x.on[C]=Array.isArray(k)?k:[k])}for(var S in w)S in x.on?x.on[S].push(w[S]):x.on[S]=_;(P.data.attrs=a({},P.data.attrs)).href=s}else O.on=w}return t(this.tag,O,this.$slots.default)}},ee="undefined"!=typeof window,ne=ee&&window.performance&&window.performance.now?window.performance:Date,re=K(),oe=Object.create(null),ie=/^#\d/,ae=ee&&function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}(),ce="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,se=function(t){function e(e){t.call(this),this.name=this._name="NavigationDuplicated",this.message='Navigating to current location ("'+e.fullPath+'") is not allowed',Object.defineProperty(this,"stack",{value:(new t).stack,writable:!0,configurable:!0})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error);se._name="NavigationDuplicated";var ue=function(t,e){this.router=t,this.base=vt(e),this.current=Bt,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};ue.prototype.listen=function(t){this.cb=t},ue.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},ue.prototype.onError=function(t){this.errorCbs.push(t)},ue.prototype.transitionTo=function(t,e,n){var r=this,o=this.router.match(t,this.current);this.confirmTransition(o,function(){r.updateRoute(o),e&&e(o),r.ensureURL(),r.ready||(r.ready=!0,r.readyCbs.forEach(function(t){t(o)}))},function(t){n&&n(t),t&&!r.ready&&(r.ready=!0,r.readyErrorCbs.forEach(function(e){e(t)}))})},ue.prototype.confirmTransition=function(t,e,n){var a=this,c=this.current,s=function(t){!i(se,t)&&o(t)&&(a.errorCbs.length?a.errorCbs.forEach(function(e){e(t)}):(r(!1,"uncaught error during route navigation:"),console.error(t))),n&&n(t)};if(v(t,c)&&t.matched.length===c.matched.length)return this.ensureURL(),s(new se(t));var u=yt(this.current.matched,t.matched),l=u.updated,p=u.deactivated,f=u.activated,d=[].concat(bt(p),this.router.beforeHooks,_t(l),f.map(function(t){return t.beforeEnter}),lt(f));this.pending=t;var h=function(e,n){if(a.pending!==t)return s();try{e(t,c,function(t){!1===t||o(t)?(a.ensureURL(!0),s(t)):"string"==typeof t||"object"==typeof t&&("string"==typeof t.path||"string"==typeof t.name)?(s(),"object"==typeof t&&t.replace?a.replace(t):a.push(t)):n(t)})}catch(t){s(t)}};ut(d,h,function(){var n=[];ut(Ot(f,n,function(){return a.current===t}).concat(a.router.resolveHooks),h,function(){if(a.pending!==t)return s();a.pending=null,e(t),a.router.app&&a.router.app.$nextTick(function(){n.forEach(function(t){t()})})})})},ue.prototype.updateRoute=function(t){var e=this.current;this.current=t,this.cb&&this.cb(t),this.router.afterHooks.forEach(function(n){n&&n(t,e)})};var le=function(t){function e(e,n){var r=this;t.call(this,e,n);var o=e.options.scrollBehavior,i=ae&&o;i&&Q();var a=xt(this.base);window.addEventListener("popstate",function(t){var n=r.current,o=xt(r.base);r.current===Bt&&o===a||r.transitionTo(o,function(t){i&&Y(e,t,n,!0)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this,o=this,i=o.current;this.transitionTo(t,function(t){ct(w(r.base+t.fullPath)),Y(r.router,t,i,!1),e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this,o=this,i=o.current;this.transitionTo(t,function(t){st(w(r.base+t.fullPath)),Y(r.router,t,i,!1),e&&e(t)},n)},e.prototype.ensureURL=function(t){if(xt(this.base)!==this.current.fullPath){var e=w(this.base+this.current.fullPath);t?ct(e):st(e)}},e.prototype.getCurrentLocation=function(){return xt(this.base)},e}(ue),pe=function(t){function e(e,n,r){t.call(this,e,n),r&&Ct(this.base)||kt()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this,e=this.router,n=e.options.scrollBehavior,r=ae&&n;r&&Q(),window.addEventListener(ae?"popstate":"hashchange",function(){var e=t.current;kt()&&t.transitionTo(St(),function(n){r&&Y(t.router,n,e,!0),ae||Et(n.fullPath)})})},e.prototype.push=function(t,e,n){var r=this,o=this,i=o.current;this.transitionTo(t,function(t){Tt(t.fullPath),Y(r.router,t,i,!1),e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this,o=this,i=o.current;this.transitionTo(t,function(t){Et(t.fullPath),Y(r.router,t,i,!1),e&&e(t)},n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;St()!==e&&(t?Tt(e):Et(e))},e.prototype.getCurrentLocation=function(){return St()},e}(ue),fe=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)},n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,function(){e.index=n,e.updateRoute(r)},function(t){i(se,t)&&(e.index=n)})}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(ue),de=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=V(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!ae&&!1!==t.fallback,this.fallback&&(e="hash"),ee||(e="abstract"),this.mode=e,e){case"history":this.history=new le(this,t.base);break;case"hash":this.history=new pe(this,t.base,this.fallback);break;case"abstract":this.history=new fe(this,t.base)}},he={currentRoute:{configurable:!0}};de.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},he.currentRoute.get=function(){return this.history&&this.history.current},de.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null)}),!this.app){this.app=t;var n=this.history;if(n instanceof le)n.transitionTo(n.getCurrentLocation());else if(n instanceof pe){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen(function(t){e.apps.forEach(function(e){e._route=t})})}},de.prototype.beforeEach=function(t){return Rt(this.beforeHooks,t)},de.prototype.beforeResolve=function(t){return Rt(this.resolveHooks,t)},de.prototype.afterEach=function(t){return Rt(this.afterHooks,t)},de.prototype.onReady=function(t,e){this.history.onReady(t,e)},de.prototype.onError=function(t){this.history.onError(t)},de.prototype.push=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise(function(e,n){r.history.push(t,e,n)});this.history.push(t,e,n)},de.prototype.replace=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise(function(e,n){r.history.replace(t,e,n)});this.history.replace(t,e,n)},de.prototype.go=function(t){this.history.go(t)},de.prototype.back=function(){this.go(-1)},de.prototype.forward=function(){this.go(1)},de.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map(function(t){return Object.keys(t.components).map(function(e){return t.components[e]})})):[]},de.prototype.resolve=function(t,e,n){e=e||this.history.current;var r=N(t,e,n,this),o=this.match(r,e),i=o.redirectedFrom||o.fullPath;return{location:r,route:o,href:Mt(this.history.base,i,this.mode),normalizedTo:r,resolved:o}},de.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==Bt&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(de.prototype,he),de.install=L,de.version="3.1.3",ee&&window.Vue&&window.Vue.use(de),e.default=de},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){/**
  * vuex v3.1.2
  * (c) 2019 Evan You
  * @license MIT
diff --git a/src/main/resources/static/assets/script/app.js b/src/main/resources/static/assets/script/app.js
index 595c6b3..b8b64a7 100644
--- a/src/main/resources/static/assets/script/app.js
+++ b/src/main/resources/static/assets/script/app.js
@@ -14078,10 +14078,10 @@ var TradeStore = /** @class */ (function (_super) {
             });
             changes[productId].forEach(function (change) {
                 if (change[0] == 'buy') {
-                    change[2] == 0 ? delete bids[change[1]] : bids[change[1]] = [change[1], change[2]];
+                    change[2] == 0 ? delete bids[Number(change[1])] : bids[Number(change[1])] = [change[1], change[2]];
                 }
                 else {
-                    change[2] == 0 ? delete asks[change[1]] : asks[change[1]] = [change[1], change[2]];
+                    change[2] == 0 ? delete asks[Number(change[1])] : asks[Number(change[1])] = [change[1], change[2]];
                 }
             });
             var bidsArr = helper_1.Helper.Object_values(bids).sort(function (a, b) {