(function(e){function t(t){for(var a,o,u=t[0],c=t[1],s=t[2],l=0,d=[];l<u.length;l++)o=u[l],Object.prototype.hasOwnProperty.call(r,o)&&r[o]&&d.push(r[o][0]),r[o]=0;for(a in c)Object.prototype.hasOwnProperty.call(c,a)&&(e[a]=c[a]);f&&f(t);while(d.length)d.shift()();return i.push.apply(i,s||[]),n()}function n(){for(var e,t=0;t<i.length;t++){for(var n=i[t],a=!0,o=1;o<n.length;o++){var u=n[o];0!==r[u]&&(a=!1)}a&&(i.splice(t--,1),e=c(c.s=n[0]))}return e}var a={},o={app:0},r={app:0},i=[];function u(e){return c.p+"js/"+({about:"about"}[e]||e)+"."+{about:"379af41c"}[e]+".js"}function c(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,c),n.l=!0,n.exports}c.e=function(e){var t=[],n={about:1};o[e]?t.push(o[e]):0!==o[e]&&n[e]&&t.push(o[e]=new Promise((function(t,n){for(var a="css/"+({about:"about"}[e]||e)+"."+{about:"ca233dbb"}[e]+".css",r=c.p+a,i=document.getElementsByTagName("link"),u=0;u<i.length;u++){var s=i[u],l=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(l===a||l===r))return t()}var d=document.getElementsByTagName("style");for(u=0;u<d.length;u++){s=d[u],l=s.getAttribute("data-href");if(l===a||l===r)return t()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=t,f.onerror=function(t){var a=t&&t.target&&t.target.src||r,i=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");i.code="CSS_CHUNK_LOAD_FAILED",i.request=a,delete o[e],f.parentNode.removeChild(f),n(i)},f.href=r;var p=document.getElementsByTagName("head")[0];p.appendChild(f)})).then((function(){o[e]=0})));var a=r[e];if(0!==a)if(a)t.push(a[2]);else{var i=new Promise((function(t,n){a=r[e]=[t,n]}));t.push(a[2]=i);var s,l=document.createElement("script");l.charset="utf-8",l.timeout=120,c.nc&&l.setAttribute("nonce",c.nc),l.src=u(e);var d=new Error;s=function(t){l.onerror=l.onload=null,clearTimeout(f);var n=r[e];if(0!==n){if(n){var a=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;d.message="Loading chunk "+e+" failed.\n("+a+": "+o+")",d.name="ChunkLoadError",d.type=a,d.request=o,n[1](d)}r[e]=void 0}};var f=setTimeout((function(){s({type:"timeout",target:l})}),12e4);l.onerror=l.onload=s,document.head.appendChild(l)}return Promise.all(t)},c.m=e,c.c=a,c.d=function(e,t,n){c.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},c.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,t){if(1&t&&(e=c(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(c.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)c.d(n,a,function(t){return e[t]}.bind(null,a));return n},c.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return c.d(t,"a",t),t},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.p="/",c.oe=function(e){throw console.error(e),e};var s=window["webpackJsonp"]=window["webpackJsonp"]||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var d=0;d<s.length;d++)t(s[d]);var f=l;i.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},"56d7":function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79d"),n("ac1f"),n("5319");var a=n("2b0e"),o=n("1881"),r=n.n(o),i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("div",{staticClass:"bg-under"}),n("router-view")],1)},u=[],c=n("bc3a"),s=n.n(c);window.onload=function(){var e=0;document.addEventListener("touchstart",(function(e){e.touches.length>1&&e.preventDefault()})),document.addEventListener("touchend",(function(t){var n=(new Date).getTime();n-e<=300&&t.preventDefault(),e=n}),!1),document.addEventListener("gesturestart",(function(e){e.preventDefault()}))};var l={created:function(){s.a.get("https://geoip.transit.finance/").then((function(e){200===e.status&&e.data.compliant_area&&(history.pushState({},""),window.location="https://swap.transit.finance/region/index.html")}))}},d=l,f=n("2877"),p=Object(f["a"])(d,i,u,!1,null,null,null),h=p.exports,m=(n("cd22"),n("d3b7"),n("3ca3"),n("ddb0"),n("8c4f"));a["a"].use(m["a"]);var v=navigator.language,b="/en/";v.indexOf("zh")>=0&&(b="/zh/");var g=[{path:"/",redirect:{path:b}},{path:"/zh/",name:"zh/Home",meta:{title:"Transit Swap"},component:function(){return n.e("about").then(n.bind(null,"d587"))}},{path:"/en/",name:"en/Home",meta:{title:"Transit Swap"},component:function(){return n.e("about").then(n.bind(null,"4c80"))}},{path:"/zh/donation",name:"zh/Donation",meta:{title:"Transit Swap"},component:function(){return n.e("about").then(n.bind(null,"78a0"))}},{path:"/en/donation",name:"en/Donation",meta:{title:"Transit Swap"},component:function(){return n.e("about").then(n.bind(null,"dcd5"))}},{path:"/zh/stake",name:"zh/Stake",meta:{title:"Transit Swap"},component:function(){return n.e("about").then(n.bind(null,"bae8"))}},{path:"/en/stake",name:"en/Stake",meta:{title:"Transit Swap"},component:function(){return n.e("about").then(n.bind(null,"4381"))}},{path:"/zh/fee",name:"zh/Fee",meta:{title:"Transit Swap"},component:function(){return n.e("about").then(n.bind(null,"02c5"))}},{path:"/en/fee",name:"en/Fee",meta:{title:"Transit Swap"},component:function(){return n.e("about").then(n.bind(null,"2ca4"))}}],w=new m["a"]({mode:"history",base:"/",routes:g}),y=w,S=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isShow?n("div",{staticClass:"fixed-container"},[n("div",{staticClass:"outer"},[n("div",{staticClass:"app-toast",class:{info:"info"===e.type,success:"success"===e.type,warning:"warning"===e.type,danger:"danger"===e.type,pc:this.isPC,sentence:this.isSentence}},[e._v(e._s(e.text)+" ")])])]):e._e()},x=[],E={name:"toast",data:function(){return{isShow:!1,isPC:!1,isSentence:!1}}},T=E,O=(n("f904"),Object(f["a"])(T,S,x,!1,null,"a583f43c",null)),_=O.exports,C=a["a"].extend(_);function P(e){var t=e.text,n=e.type,a=e.duration,o=void 0===a?2e3:a,r=e.isPC,i=e.isSentence,u=new C({el:document.createElement("div"),data:function(){return{isShow:!0,text:t,type:n,isPC:r,isSentence:i}}});document.body.appendChild(u.$el),setTimeout((function(){u.isShow=!1}),o)}function j(){a["a"].prototype.$toast=P}var z=j;a["a"].use(r.a),a["a"].use(z),a["a"].config.productionTip=!1,y.afterEach((function(){window.scrollTo(0,0)})),y.beforeEach((function(e,t,n){document.title=e.meta.title,n()})),a["a"].mixin({computed:{lang:function(){return-1===location.href.indexOf("/en")?"zh":"en"}},methods:{toUrl:function(e,t){"to"===e?window.location=t:"open"===e&&window.open(t)},switchLang:function(){window.location=-1===location.href.indexOf("/en")?location.href.replace("/zh","/en"):location.href.replace("/en","/zh")}}}),new a["a"]({router:y,render:function(e){return e(h)},mounted:function(){document.dispatchEvent(new Event("custom-render-trigger"))}}).$mount("#app")},"8d1c":function(e,t,n){},cd22:function(e,t,n){},f904:function(e,t,n){"use strict";n("8d1c")}}); //# sourceMappingURL=app.f564b33c.js.map