ton-evm-bridge 0.0.1-security → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ton-evm-bridge might be problematic. Click here for more details.
- package/.editorconfig +13 -0
- package/.eslintrc.js +16 -0
- package/.github/ISSUE_TEMPLATE/bug_report.yaml +108 -0
- package/.nvmrc +1 -0
- package/.prettierrc +4 -0
- package/@types/global.d.ts +1 -0
- package/@types/params.d.ts +24 -0
- package/@types/tonweb.d.ts +44 -0
- package/LICENSE +674 -0
- package/README.md +71 -5
- package/assets/WTON.json +1 -0
- package/assets/pics/arrow.svg +44 -0
- package/assets/pics/done.svg +38 -0
- package/assets/pics/link.svg +15 -0
- package/assets/pics/swap.svg +331 -0
- package/assets/styles/reboot.css +163 -0
- package/components/BridgeProcessor.vue +977 -0
- package/docs/.nojekyll +0 -0
- package/docs/200.html +9 -0
- package/docs/_nuxt/1f2ac62.js +1 -0
- package/docs/_nuxt/1f2ac62.js.br +0 -0
- package/docs/_nuxt/1f2ac62.js.gz +0 -0
- package/docs/_nuxt/5cc51a5.js +1 -0
- package/docs/_nuxt/5cc51a5.js.br +0 -0
- package/docs/_nuxt/5cc51a5.js.gz +0 -0
- package/docs/_nuxt/7767db0.js +2 -0
- package/docs/_nuxt/7767db0.js.br +0 -0
- package/docs/_nuxt/7767db0.js.gz +0 -0
- package/docs/_nuxt/9ead974.js +2 -0
- package/docs/_nuxt/9ead974.js.br +0 -0
- package/docs/_nuxt/9ead974.js.gz +0 -0
- package/docs/_nuxt/LICENSES +98 -0
- package/docs/_nuxt/a46cdc5.js +1 -0
- package/docs/_nuxt/a46cdc5.js.br +0 -0
- package/docs/_nuxt/a46cdc5.js.gz +0 -0
- package/docs/_nuxt/b3f7827.js +1 -0
- package/docs/_nuxt/b3f7827.js.br +0 -0
- package/docs/_nuxt/b3f7827.js.gz +0 -0
- package/docs/_nuxt/b5d388d.js +1 -0
- package/docs/_nuxt/b5d388d.js.br +0 -0
- package/docs/_nuxt/b5d388d.js.gz +0 -0
- package/docs/_nuxt/fe8ca79.js +2 -0
- package/docs/_nuxt/fe8ca79.js.br +0 -0
- package/docs/_nuxt/fe8ca79.js.gz +0 -0
- package/docs/_nuxt/img/arrow.69e1e70.svg +44 -0
- package/docs/_nuxt/img/arrow.69e1e70.svg.br +0 -0
- package/docs/_nuxt/img/arrow.69e1e70.svg.gz +0 -0
- package/docs/_nuxt/img/swap.b8b4b2f.svg +331 -0
- package/docs/_nuxt/img/swap.b8b4b2f.svg.br +0 -0
- package/docs/_nuxt/img/swap.b8b4b2f.svg.gz +0 -0
- package/docs/favicon.ico +0 -0
- package/docs/index.html +9 -0
- package/index.js +66 -0
- package/lang/en/bridge.json +105 -0
- package/lang/en-US.js +7 -0
- package/layouts/default.vue +53 -0
- package/modules/i18n.js +44 -0
- package/nuxt.config.js +73 -0
- package/package.json +61 -6
- package/pages/index.vue +635 -0
- package/static/favicon.ico +0 -0
- package/tsconfig.json +39 -0
- package/utils/constants.ts +65 -0
- package/utils/helpers.ts +37 -0
- package/vue-shim.d.ts +4 -0
Binary file
|
Binary file
|
@@ -0,0 +1,2 @@
|
|
1
|
+
/*! For license information please see LICENSES */
|
2
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{1:function(e,t,n){"use strict";n.d(t,"k",(function(){return _})),n.d(t,"m",(function(){return w})),n.d(t,"l",(function(){return x})),n.d(t,"e",(function(){return O})),n.d(t,"b",(function(){return k})),n.d(t,"s",(function(){return j})),n.d(t,"g",(function(){return $})),n.d(t,"h",(function(){return C})),n.d(t,"d",(function(){return S})),n.d(t,"r",(function(){return P})),n.d(t,"j",(function(){return L})),n.d(t,"t",(function(){return E})),n.d(t,"o",(function(){return D})),n.d(t,"q",(function(){return A})),n.d(t,"f",(function(){return N})),n.d(t,"c",(function(){return I})),n.d(t,"i",(function(){return F})),n.d(t,"p",(function(){return M})),n.d(t,"a",(function(){return X})),n.d(t,"v",(function(){return G})),n.d(t,"n",(function(){return K})),n.d(t,"u",(function(){return J}));n(39),n(20),n(40),n(41),n(48),n(31),n(49);var r=n(24),o=n(5),c=n(12),l=n(7),f=(n(47),n(10),n(33),n(126),n(29),n(45),n(42),n(36),n(34),n(35),n(32),n(18),n(64),n(107),n(159),n(160),n(65),n(108),n(212),n(50),n(52),n(0)),h=n(43);function d(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function m(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?d(Object(source),!0).forEach((function(t){Object(c.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):d(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}function v(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function _(e){f.a.config.errorHandler&&f.a.config.errorHandler(e)}function w(e){return e.then((function(e){return e.default||e}))}function x(e){return e.$options&&"function"==typeof e.$options.fetch&&!e.$options.fetch.length}function O(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=e.$children||[],o=v(r);try{for(o.s();!(t=o.n()).done;){var c=t.value;c.$fetch?n.push(c):c.$children&&O(c,n)}}catch(e){o.e(e)}finally{o.f()}return n}function k(e,t){if(t||!e.options.__hasNuxtData){var n=e.options._originDataFn||e.options.data||function(){return{}};e.options._originDataFn=n,e.options.data=function(){var data=n.call(this,this);return this.$ssrContext&&(t=this.$ssrContext.asyncData[e.cid]),m(m({},data),t)},e.options.__hasNuxtData=!0,e._Ctor&&e._Ctor.options&&(e._Ctor.options.data=e.options.data)}}function j(e){return e.options&&e._Ctor===e||(e.options?(e._Ctor=e,e.extendOptions=e.options):(e=f.a.extend(e))._Ctor=e,!e.options.name&&e.options.__file&&(e.options.name=e.options.__file)),e}function $(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"components";return Array.prototype.concat.apply([],e.matched.map((function(e,r){return Object.keys(e[n]).map((function(o){return t&&t.push(r),e[n][o]}))})))}function C(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return $(e,t,"instances")}function S(e,t){return Array.prototype.concat.apply([],e.matched.map((function(e,n){return Object.keys(e.components).reduce((function(r,o){return e.components[o]?r.push(t(e.components[o],e.instances[o],e,o,n)):delete e.components[o],r}),[])})))}function P(e,t){return Promise.all(S(e,function(){var e=Object(o.a)(regeneratorRuntime.mark((function e(n,r,o,c){var l,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof n||n.options){e.next=11;break}return e.prev=1,e.next=4,n();case 4:n=e.sent,e.next=11;break;case 7:throw e.prev=7,e.t0=e.catch(1),e.t0&&"ChunkLoadError"===e.t0.name&&"undefined"!=typeof window&&window.sessionStorage&&(l=Date.now(),(!(f=parseInt(window.sessionStorage.getItem("nuxt-reload")))||f+6e4<l)&&(window.sessionStorage.setItem("nuxt-reload",l),window.location.reload(!0))),e.t0;case 11:return o.components[c]=n=j(n),e.abrupt("return","function"==typeof t?t(n,r,o,c):n);case 13:case"end":return e.stop()}}),e,null,[[1,7]])})));return function(t,n,r,o){return e.apply(this,arguments)}}()))}function L(e){return R.apply(this,arguments)}function R(){return(R=Object(o.a)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,P(t);case 4:return e.abrupt("return",m(m({},t),{},{meta:$(t).map((function(e,n){return m(m({},e.options.meta),(t.matched[n]||{}).meta)}))}));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function E(e,t){return T.apply(this,arguments)}function T(){return(T=Object(o.a)(regeneratorRuntime.mark((function e(t,n){var o,c,f,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.context||(t.context={isStatic:!0,isDev:!1,isHMR:!1,app:t,payload:n.payload,error:n.error,base:t.router.options.base,env:{}},n.req&&(t.context.req=n.req),n.res&&(t.context.res=n.res),n.ssrContext&&(t.context.ssrContext=n.ssrContext),t.context.redirect=function(e,path,n){if(e){t.context._redirected=!0;var o=Object(r.a)(path);if("number"==typeof e||"undefined"!==o&&"object"!==o||(n=path||{},path=e,o=Object(r.a)(path),e=302),"object"===o&&(path=t.router.resolve(path).route.fullPath),!/(^[.]{1,2}\/)|(^\/(?!\/))/.test(path))throw path=Object(h.d)(path,n),window.location.replace(path),new Error("ERR_REDIRECT");t.context.next({path:path,query:n,status:e})}},t.context.nuxtState=window.__NUXT__),e.next=3,Promise.all([L(n.route),L(n.from)]);case 3:o=e.sent,c=Object(l.a)(o,2),f=c[0],d=c[1],n.route&&(t.context.route=f),n.from&&(t.context.from=d),t.context.next=n.next,t.context._redirected=!1,t.context._errored=!1,t.context.isHMR=!1,t.context.params=t.context.route.params||{},t.context.query=t.context.route.query||{};case 15:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function D(e,t){return!e.length||t._redirected||t._errored?Promise.resolve():A(e[0],t).then((function(){return D(e.slice(1),t)}))}function A(e,t){var n;return(n=2===e.length?new Promise((function(n){e(t,(function(e,data){e&&t.error(e),n(data=data||{})}))})):e(t))&&n instanceof Promise&&"function"==typeof n.then?n:Promise.resolve(n)}function N(base,e){if("hash"===e)return window.location.hash.replace(/^#\//,"");base=decodeURI(base).slice(0,-1);var path=decodeURI(window.location.pathname);base&&path.startsWith(base)&&(path=path.slice(base.length));var t=(path||"/")+window.location.search+window.location.hash;return Object(h.c)(t)}function I(e,t){return function(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"===Object(r.a)(e[i])&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",V(t)));return function(t,r){for(var path="",data=t||{},o=(r||{}).pretty?B:encodeURIComponent,c=0;c<e.length;c++){var l=e[c];if("string"!=typeof l){var f=data[l.name||"pathMatch"],h=void 0;if(null==f){if(l.optional){l.partial&&(path+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(Array.isArray(f)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var d=0;d<f.length;d++){if(h=o(f[d]),!n[c].test(h))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(h)+"`");path+=(0===d?l.prefix:l.delimiter)+h}}else{if(h=l.asterisk?W(f):o(f),!n[c].test(h))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+h+'"');path+=l.prefix+h}}else path+=l}return path}}(function(e,t){var n,r=[],o=0,c=0,path="",l=t&&t.delimiter||"/";for(;null!=(n=U.exec(e));){var f=n[0],h=n[1],d=n.index;if(path+=e.slice(c,d),c=d+f.length,h)path+=h[1];else{var m=e[c],v=n[2],y=n[3],_=n[4],w=n[5],x=n[6],O=n[7];path&&(r.push(path),path="");var k=null!=v&&null!=m&&m!==v,j="+"===x||"*"===x,$="?"===x||"*"===x,C=n[2]||l,pattern=_||w;r.push({name:y||o++,prefix:v||"",delimiter:C,optional:$,repeat:j,partial:k,asterisk:Boolean(O),pattern:pattern?H(pattern):O?".*":"[^"+z(C)+"]+?"})}}c<e.length&&(path+=e.substr(c));path&&r.push(path);return r}(e,t),t)}function F(e,t){var n={},r=m(m({},e),t);for(var o in r)String(e[o])!==String(t[o])&&(n[o]=!0);return n}function M(e){var t;if(e.message||"string"==typeof e)t=e.message||e;else try{t=JSON.stringify(e,null,2)}catch(n){t="[".concat(e.constructor.name,"]")}return m(m({},e),{},{message:t,statusCode:e.statusCode||e.status||e.response&&e.response.status||500})}window.onNuxtReadyCbs=[],window.onNuxtReady=function(e){window.onNuxtReadyCbs.push(e)};var U=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function B(e,t){var n=t?/[?#]/g:/[/?#]/g;return encodeURI(e).replace(n,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function W(e){return B(e,!0)}function z(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function H(e){return e.replace(/([=!:$/()])/g,"\\$1")}function V(e){return e&&e.sensitive?"":"i"}function X(e,t,n){e.$options[t]||(e.$options[t]=[]),e.$options[t].includes(n)||e.$options[t].push(n)}var G=h.b,K=(h.e,h.a);function J(e){try{window.history.scrollRestoration=e}catch(e){}}},100:function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],c=o[0],l={id:e+":"+i,css:o[1],media:o[2],sourceMap:o[3]};r[c]?r[c].parts.push(l):n.push(r[c]={id:c,parts:[l]})}return n}n.r(t),n.d(t,"default",(function(){return _}));var o="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var c={},head=o&&(document.head||document.getElementsByTagName("head")[0]),l=null,f=0,h=!1,d=function(){},m=null,v="data-vue-ssr-id",y="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function _(e,t,n,o){h=n,m=o||{};var l=r(e,t);return w(l),function(t){for(var n=[],i=0;i<l.length;i++){var o=l[i];(f=c[o.id]).refs--,n.push(f)}t?w(l=r(e,t)):l=[];for(i=0;i<n.length;i++){var f;if(0===(f=n[i]).refs){for(var h=0;h<f.parts.length;h++)f.parts[h]();delete c[f.id]}}}}function w(e){for(var i=0;i<e.length;i++){var t=e[i],n=c[t.id];if(n){n.refs++;for(var r=0;r<n.parts.length;r++)n.parts[r](t.parts[r]);for(;r<t.parts.length;r++)n.parts.push(O(t.parts[r]));n.parts.length>t.parts.length&&(n.parts.length=t.parts.length)}else{var o=[];for(r=0;r<t.parts.length;r++)o.push(O(t.parts[r]));c[t.id]={id:t.id,refs:1,parts:o}}}}function x(){var e=document.createElement("style");return e.type="text/css",head.appendChild(e),e}function O(e){var t,n,r=document.querySelector("style["+v+'~="'+e.id+'"]');if(r){if(h)return d;r.parentNode.removeChild(r)}if(y){var o=f++;r=l||(l=x()),t=$.bind(null,r,o,!1),n=$.bind(null,r,o,!0)}else r=x(),t=C.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}var k,j=(k=[],function(e,t){return k[e]=t,k.filter(Boolean).join("\n")});function $(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=j(t,o);else{var c=document.createTextNode(o),l=e.childNodes;l[t]&&e.removeChild(l[t]),l.length?e.insertBefore(c,l[t]):e.appendChild(c)}}function C(e,t){var n=t.css,r=t.media,o=t.sourceMap;if(r&&e.setAttribute("media",r),m.ssrId&&e.setAttribute(v,t.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},130:function(e,t,n){"use strict";var r={name:"ClientOnly",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(e,t){var n=t.parent,r=t.slots,o=t.props,c=r(),l=c.default;void 0===l&&(l=[]);var f=c.placeholder;return n._isMounted?l:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||f)?e(o.placeholderTag,{class:["client-only-placeholder"]},o.placeholder||f):l.length>0?l.map((function(){return e(!1)})):e(!1))}};e.exports=r},162:function(e,t,n){var content=n(219);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,n(100).default)("fb502374",content,!0,{sourceMap:!1})},174:function(e,t,n){"use strict";t.a=function(e,t){return t=t||{},new Promise((function(n,r){var s=new XMLHttpRequest,o=[],u=[],i={},a=function(){return{ok:2==(s.status/100|0),statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:a,headers:{keys:function(){return o},entries:function(){return u},get:function(e){return i[e.toLowerCase()]},has:function(e){return e.toLowerCase()in i}}}};for(var c in s.open(t.method||"get",e,!0),s.onload=function(){s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){o.push(t=t.toLowerCase()),u.push([t,n]),i[t]=i[t]?i[t]+","+n:n})),n(a())},s.onerror=r,s.withCredentials="include"==t.credentials,t.headers)s.setRequestHeader(c,t.headers[c]);s.send(t.body||null)}))}},175:function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function c(e,t){return!1!==t.clone&&t.isMergeableObject(e)?m((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function l(e,source,t){return e.concat(source).map((function(element){return c(element,t)}))}function f(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(symbol){return e.propertyIsEnumerable(symbol)})):[]}(e))}function h(object,e){try{return e in object}catch(e){return!1}}function d(e,source,t){var n={};return t.isMergeableObject(e)&&f(e).forEach((function(r){n[r]=c(e[r],t)})),f(source).forEach((function(r){(function(e,t){return h(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(h(e,r)&&t.isMergeableObject(source[r])?n[r]=function(e,t){if(!t.customMerge)return m;var n=t.customMerge(e);return"function"==typeof n?n:m}(r,t)(e[r],source[r],t):n[r]=c(source[r],t))})),n}function m(e,source,t){(t=t||{}).arrayMerge=t.arrayMerge||l,t.isMergeableObject=t.isMergeableObject||r,t.cloneUnlessOtherwiseSpecified=c;var n=Array.isArray(source);return n===Array.isArray(e)?n?t.arrayMerge(e,source,t):d(e,source,t):c(source,t)}m.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return m(e,n,t)}),{})};var v=m;e.exports=v},176:function(e,t,n){"use strict";n.d(t,"a",(function(){return x}));var r="undefined"!=typeof window?window:{screen:{},navigator:{}},o=(r.matchMedia||function(){return{matches:!1}}).bind(r),c={get passive(){return!0}},l=function(){};r.addEventListener&&r.addEventListener("p",l,c),r.removeEventListener&&r.removeEventListener("p",l,!1);var f="ontouchstart"in r,h=f||"TouchEvent"in r&&o("(any-pointer: coarse)").matches,d=(r.navigator.maxTouchPoints||0)>0||h,m=r.navigator.userAgent||"",v=o("(pointer: coarse)").matches&&/iPad|Macintosh/.test(m)&&Math.min(r.screen.width||0,r.screen.height||0)>=768,y=(o("(pointer: coarse)").matches||!o("(pointer: fine)").matches&&f)&&!/Windows.*Firefox/.test(m),_=o("(any-pointer: fine)").matches||o("(any-hover: hover)").matches||v||!f,w=!d||!_&&y?d?"touchOnly":"mouseOnly":"hybrid",x="mouseOnly"===w?"mouse":"touchOnly"===w||y?"touch":"mouse"},178:function(e,t,n){"use strict";var r=n(264);function o(e){return null!==e&&"object"===r(e)}function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",r=arguments.length>3?arguments[3]:void 0;if(!o(t))return c(e,{},n,r);var l=Object.assign({},t);for(var f in e)if("__proto__"!==f&&"constructor"!==f){var h=e[f];null!==h&&(r&&r(l,f,h,n)||(Array.isArray(h)&&Array.isArray(l[f])?l[f]=l[f].concat(h):o(h)&&o(l[f])?l[f]=c(h,l[f],(n?"".concat(n,"."):"")+f.toString(),r):l[f]=h))}return l}function l(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.reduce((function(p,t){return c(p,t,"",e)}),{})}}n(45),n(10),n(65);var f=l();f.fn=l((function(e,t,n,r){if(void 0!==e[t]&&"function"==typeof n)return e[t]=n(e[t]),!0})),f.arrayFn=l((function(e,t,n,r){if(Array.isArray(e[t])&&"function"==typeof n)return e[t]=n(e[t]),!0})),f.extend=l,e.exports=f},179:function(e,t,n){"use strict";var r=n(5),o=(n(47),n(10),n(106),n(0)),c=n(1),l=window.__NUXT__;function f(){if(!this._hydrated)return this.$fetch()}function h(){if((e=this).$vnode&&e.$vnode.elm&&e.$vnode.elm.dataset&&e.$vnode.elm.dataset.fetchKey){var e;this._hydrated=!0,this._fetchKey=this.$vnode.elm.dataset.fetchKey;var data=l.fetch[this._fetchKey];if(data&&data._error)this.$fetchState.error=data._error;else for(var t in data)o.a.set(this.$data,t,data[t])}}function d(){var e=this;return this._fetchPromise||(this._fetchPromise=m.call(this).then((function(){delete e._fetchPromise}))),this._fetchPromise}function m(){return v.apply(this,arguments)}function v(){return(v=Object(r.a)(regeneratorRuntime.mark((function e(){var t,n,r,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.$nuxt.nbFetching++,this.$fetchState.pending=!0,this.$fetchState.error=null,this._hydrated=!1,t=null,n=Date.now(),e.prev=6,e.next=9,this.$options.fetch.call(this);case 9:e.next=15;break;case 11:e.prev=11,e.t0=e.catch(6),t=Object(c.p)(e.t0);case 15:if(!((r=this._fetchDelay-(Date.now()-n))>0)){e.next=19;break}return e.next=19,new Promise((function(e){return setTimeout(e,r)}));case 19:this.$fetchState.error=t,this.$fetchState.pending=!1,this.$fetchState.timestamp=Date.now(),this.$nextTick((function(){return o.$nuxt.nbFetching--}));case 23:case"end":return e.stop()}}),e,this,[[6,11]])})))).apply(this,arguments)}t.a={beforeCreate:function(){Object(c.l)(this)&&(this._fetchDelay="number"==typeof this.$options.fetchDelay?this.$options.fetchDelay:200,o.a.util.defineReactive(this,"$fetchState",{pending:!1,error:null,timestamp:Date.now()}),this.$fetch=d.bind(this),Object(c.a)(this,"created",h),Object(c.a)(this,"beforeMount",f))}}},190:function(e,t,n){"use strict";n.r(t),function(e){n(32),n(39),n(20),n(40),n(41);var t=n(24),r=n(5),o=(n(102),n(198),n(204),n(206),n(47),n(29),n(10),n(31),n(33),n(36),n(50),n(52),n(45),n(42),n(18),n(34),n(35),n(106),n(0)),c=n(174),l=n(72),f=n(1),h=n(44),d=n(179),m=n(95);function v(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}o.a.__nuxt__fetch__mixin__||(o.a.mixin(d.a),o.a.__nuxt__fetch__mixin__=!0),o.a.component(m.a.name,m.a),o.a.component("NLink",m.a),e.fetch||(e.fetch=c.a);var _,w,x=[],O=window.__NUXT__||{},k=O.config||{};k._app&&(n.p=Object(f.v)(k._app.cdnURL,k._app.assetsPath)),Object.assign(o.a.config,{silent:!0,performance:!1});var j=o.a.config.errorHandler||console.error;function $(e,t,n){for(var r=function(component){var e=function(component,e){if(!component||!component.options||!component.options[e])return{};var option=component.options[e];if("function"==typeof option){for(var t=arguments.length,n=new Array(t>2?t-2:0),r=2;r<t;r++)n[r-2]=arguments[r];return option.apply(void 0,n)}return option}(component,"transition",t,n)||{};return"string"==typeof e?{name:e}:e},o=n?Object(f.g)(n):[],c=Math.max(e.length,o.length),l=[],h=function(i){var t=Object.assign({},r(e[i])),n=Object.assign({},r(o[i]));Object.keys(t).filter((function(e){return void 0!==t[e]&&!e.toLowerCase().includes("leave")})).forEach((function(e){n[e]=t[e]})),l.push(n)},i=0;i<c;i++)h(i);return l}function C(e,t,n){return S.apply(this,arguments)}function S(){return(S=Object(r.a)(regeneratorRuntime.mark((function e(t,n,r){var o,c,l,h,d=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._routeChanged=Boolean(_.nuxt.err)||n.name!==t.name,this._paramChanged=!this._routeChanged&&n.path!==t.path,this._queryChanged=!this._paramChanged&&n.fullPath!==t.fullPath,this._diffQuery=this._queryChanged?Object(f.i)(t.query,n.query):[],e.prev=4,!this._queryChanged){e.next=10;break}return e.next=8,Object(f.r)(t,(function(e,t){return{Component:e,instance:t}}));case 8:o=e.sent,o.some((function(e){var r=e.Component,o=e.instance,c=r.options.watchQuery;return!0===c||(Array.isArray(c)?c.some((function(e){return d._diffQuery[e]})):"function"==typeof c&&c.apply(o,[t.query,n.query]))}));case 10:r(),e.next=24;break;case 13:if(e.prev=13,e.t0=e.catch(4),c=e.t0||{},l=c.statusCode||c.status||c.response&&c.response.status||500,h=c.message||"",!/^Loading( CSS)? chunk (\d)+ failed\./.test(h)){e.next=21;break}return window.location.reload(!0),e.abrupt("return");case 21:this.error({statusCode:l,message:h}),this.$nuxt.$emit("routeChanged",t,n,c),r();case 24:case"end":return e.stop()}}),e,this,[[4,13]])})))).apply(this,arguments)}function P(e,t){return O.serverRendered&&t&&Object(f.b)(e,t),e._Ctor=e,e}function L(e){return Object(f.d)(e,function(){var e=Object(r.a)(regeneratorRuntime.mark((function e(t,n,r,o,c){var l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof t||t.options){e.next=4;break}return e.next=3,t();case 3:t=e.sent;case 4:return l=P(Object(f.s)(t),O.data?O.data[c]:null),r.components[o]=l,e.abrupt("return",l);case 7:case"end":return e.stop()}}),e)})));return function(t,n,r,o,c){return e.apply(this,arguments)}}())}function R(e,t,n){var r=this,o=["nuxti18n"],c=!1;if(void 0!==n&&(o=[],(n=Object(f.s)(n)).options.middleware&&(o=o.concat(n.options.middleware)),e.forEach((function(e){e.options.middleware&&(o=o.concat(e.options.middleware))}))),o=o.map((function(e){return"function"==typeof e?e:("function"!=typeof l.a[e]&&(c=!0,r.error({statusCode:500,message:"Unknown middleware "+e})),l.a[e])})),!c)return Object(f.o)(o,t)}function E(e,t,n){return T.apply(this,arguments)}function T(){return T=Object(r.a)(regeneratorRuntime.mark((function e(t,n,o){var c,l,d,m,y,w,O,k,j,C,S,P,L,E,T,D=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!1!==this._routeChanged||!1!==this._paramChanged||!1!==this._queryChanged){e.next=2;break}return e.abrupt("return",o());case 2:return!1,t===n?(x=[],!0):(c=[],x=Object(f.g)(n,c).map((function(e,i){return Object(f.c)(n.matched[c[i]].path)(n.params)}))),l=!1,d=function(path){l||(l=!0,o(path))},e.next=8,Object(f.t)(_,{route:t,from:n,next:d.bind(this)});case 8:if(this._dateLastError=_.nuxt.dateErr,this._hadError=Boolean(_.nuxt.err),m=[],(y=Object(f.g)(t,m)).length){e.next=27;break}return e.next=15,R.call(this,y,_.context);case 15:if(!l){e.next=17;break}return e.abrupt("return");case 17:return w=(h.a.options||h.a).layout,e.next=20,this.loadLayout("function"==typeof w?w.call(h.a,_.context):w);case 20:return O=e.sent,e.next=23,R.call(this,y,_.context,O);case 23:if(!l){e.next=25;break}return e.abrupt("return");case 25:return _.context.error({statusCode:404,message:"This page could not be found"}),e.abrupt("return",o());case 27:return y.forEach((function(e){e._Ctor&&e._Ctor.options&&(e.options.asyncData=e._Ctor.options.asyncData,e.options.fetch=e._Ctor.options.fetch)})),this.setTransitions($(y,t,n)),e.prev=29,e.next=32,R.call(this,y,_.context);case 32:if(!l){e.next=34;break}return e.abrupt("return");case 34:if(!_.context._errored){e.next=36;break}return e.abrupt("return",o());case 36:return"function"==typeof(k=y[0].options.layout)&&(k=k(_.context)),e.next=40,this.loadLayout(k);case 40:return k=e.sent,e.next=43,R.call(this,y,_.context,k);case 43:if(!l){e.next=45;break}return e.abrupt("return");case 45:if(!_.context._errored){e.next=47;break}return e.abrupt("return",o());case 47:j=!0,e.prev=48,C=v(y),e.prev=50,C.s();case 52:if((S=C.n()).done){e.next=63;break}if("function"==typeof(P=S.value).options.validate){e.next=56;break}return e.abrupt("continue",61);case 56:return e.next=58,P.options.validate(_.context);case 58:if(j=e.sent){e.next=61;break}return e.abrupt("break",63);case 61:e.next=52;break;case 63:e.next=68;break;case 65:e.prev=65,e.t0=e.catch(50),C.e(e.t0);case 68:return e.prev=68,C.f(),e.finish(68);case 71:e.next=77;break;case 73:return e.prev=73,e.t1=e.catch(48),this.error({statusCode:e.t1.statusCode||"500",message:e.t1.message}),e.abrupt("return",o());case 77:if(j){e.next=80;break}return this.error({statusCode:404,message:"This page could not be found"}),e.abrupt("return",o());case 80:return e.next=82,Promise.all(y.map(function(){var e=Object(r.a)(regeneratorRuntime.mark((function e(r,i){var o,c,l,h,d,v,y,p;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r._path=Object(f.c)(t.matched[m[i]].path)(t.params),r._dataRefresh=!1,o=r._path!==x[i],D._routeChanged&&o?r._dataRefresh=!0:D._paramChanged&&o?(c=r.options.watchParam,r._dataRefresh=!1!==c):D._queryChanged&&(!0===(l=r.options.watchQuery)?r._dataRefresh=!0:Array.isArray(l)?r._dataRefresh=l.some((function(e){return D._diffQuery[e]})):"function"==typeof l&&(L||(L=Object(f.h)(t)),r._dataRefresh=l.apply(L[i],[t.query,n.query]))),D._hadError||!D._isMounted||r._dataRefresh){e.next=6;break}return e.abrupt("return");case 6:return h=[],d=r.options.asyncData&&"function"==typeof r.options.asyncData,v=Boolean(r.options.fetch)&&r.options.fetch.length,d&&((y=Object(f.q)(r.options.asyncData,_.context)).then((function(e){Object(f.b)(r,e)})),h.push(y)),D.$loading.manual=!1===r.options.loading,v&&((p=r.options.fetch(_.context))&&(p instanceof Promise||"function"==typeof p.then)||(p=Promise.resolve(p)),p.then((function(e){})),h.push(p)),e.abrupt("return",Promise.all(h));case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()));case 82:l||o(),e.next=99;break;case 85:if(e.prev=85,e.t2=e.catch(29),"ERR_REDIRECT"!==(E=e.t2||{}).message){e.next=90;break}return e.abrupt("return",this.$nuxt.$emit("routeChanged",t,n,E));case 90:return x=[],Object(f.k)(E),"function"==typeof(T=(h.a.options||h.a).layout)&&(T=T(_.context)),e.next=96,this.loadLayout(T);case 96:this.error(E),this.$nuxt.$emit("routeChanged",t,n,E),o();case 99:case"end":return e.stop()}}),e,this,[[29,85],[48,73],[50,65,68,71]])}))),T.apply(this,arguments)}function D(e,n){Object(f.d)(e,(function(e,n,r,c){return"object"!==Object(t.a)(e)||e.options||((e=o.a.extend(e))._Ctor=e,r.components[c]=e),e}))}function A(e){var t=Boolean(this.$options.nuxt.err);this._hadError&&this._dateLastError===this.$options.nuxt.dateErr&&(t=!1);var n=t?(h.a.options||h.a).layout:e.matched[0].components.default.options.layout;"function"==typeof n&&(n=n(_.context)),this.setLayout(n)}function N(e){e._hadError&&e._dateLastError===e.$options.nuxt.dateErr&&e.error()}function I(e,t){var n=this;if(!1!==this._routeChanged||!1!==this._paramChanged||!1!==this._queryChanged){var r=Object(f.h)(e),c=Object(f.g)(e),l=!1;o.a.nextTick((function(){r.forEach((function(e,i){if(e&&!e._isDestroyed&&e.constructor._dataRefresh&&c[i]===e.constructor&&!0!==e.$vnode.data.keepAlive&&"function"==typeof e.constructor.options.data){var t=e.constructor.options.data.call(e);for(var n in t)o.a.set(e.$data,n,t[n]);l=!0}})),l&&window.$nuxt.$nextTick((function(){window.$nuxt.$emit("triggerScroll")})),N(n)}))}}function F(e){window.onNuxtReadyCbs.forEach((function(t){"function"==typeof t&&t(e)})),"function"==typeof window._onNuxtLoaded&&window._onNuxtLoaded(e),w.afterEach((function(t,n){o.a.nextTick((function(){return e.$nuxt.$emit("routeChanged",t,n)}))}))}function M(){return(M=Object(r.a)(regeneratorRuntime.mark((function e(t){var n,r,c,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _=t.app,w=t.router,n=new o.a(_),r=function(){n.$mount("#__nuxt"),w.afterEach(D),w.afterEach(A.bind(n)),w.afterEach(I.bind(n)),o.a.nextTick((function(){F(n)}))},e.next=6,Promise.all(L(_.context.route));case 6:if(c=e.sent,n.setTransitions=n.$options.nuxt.setTransitions.bind(n),c.length&&(n.setTransitions($(c,w.currentRoute)),x=w.currentRoute.matched.map((function(e){return Object(f.c)(e.path)(w.currentRoute.params)}))),n.$loading={},O.error&&n.error(O.error),w.beforeEach(C.bind(n)),w.beforeEach(E.bind(n)),!O.serverRendered||!Object(f.n)(O.routePath,n.context.route.path)){e.next=15;break}return e.abrupt("return",r());case 15:return l=function(){D(w.currentRoute,w.currentRoute),A.call(n,w.currentRoute),N(n),r()},e.next=18,new Promise((function(e){return setTimeout(e,0)}));case 18:E.call(n,w.currentRoute,w.currentRoute,(function(path){if(path){var e=w.afterEach((function(t,n){e(),l()}));w.push(path,void 0,(function(e){e&&j(e)}))}else l()}));case 19:case"end":return e.stop()}}),e)})))).apply(this,arguments)}Object(h.b)(null,O.config).then((function(e){return M.apply(this,arguments)})).catch(j)}.call(this,n(54))},218:function(e,t,n){"use strict";n(162)},219:function(e,t,n){var r=n(99)(!1);r.push([e.i,"\n.__nuxt-error-page {\n padding: 1rem;\n background: #F7F8FB;\n color: #47494E;\n text-align: center;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n font-family: sans-serif;\n font-weight: 100 !important;\n -ms-text-size-adjust: 100%;\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n}\n.__nuxt-error-page .error {\n max-width: 450px;\n}\n.__nuxt-error-page .title {\n font-size: 1.5rem;\n margin-top: 15px;\n color: #47494E;\n margin-bottom: 8px;\n}\n.__nuxt-error-page .description {\n color: #7F828B;\n line-height: 21px;\n margin-bottom: 10px;\n}\n.__nuxt-error-page a {\n color: #7F828B !important;\n text-decoration: none;\n}\n.__nuxt-error-page .logo {\n position: fixed;\n left: 12px;\n bottom: 12px;\n}\n",""]),e.exports=r},44:function(e,t,n){"use strict";n.d(t,"b",(function(){return on})),n.d(t,"a",(function(){return R}));n(36),n(20),n(33),n(48),n(31),n(49);var r=n(5),o=n(12),c=(n(47),n(29),n(42),n(10),n(18),n(64),n(0)),l=n(74),f=n(130),h=n.n(f),d=n(62),m=n.n(d),v=(n(34),n(35),n(131)),y=n(43),_=n(1);"scrollRestoration"in window.history&&(Object(_.u)("manual"),window.addEventListener("beforeunload",(function(){Object(_.u)("auto")})),window.addEventListener("load",(function(){Object(_.u)("manual")})));function w(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function x(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?w(Object(source),!0).forEach((function(t){Object(o.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):w(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var O=function(){};c.a.use(v.a);var k={mode:"history",base:"/bridge/",linkActiveClass:"nuxt-link-active",linkExactActiveClass:"nuxt-link-exact-active",scrollBehavior:function(e,t,n){var r=!1,o=e!==t;n?r=n:o&&function(e){var t=Object(_.g)(e);if(1===t.length){var n=t[0].options;return!1!==(void 0===n?{}:n).scrollToTop}return t.some((function(e){var t=e.options;return t&&t.scrollToTop}))}(e)&&(r={x:0,y:0});var c=window.$nuxt;return(!o||e.path===t.path&&e.hash!==t.hash)&&c.$nextTick((function(){return c.$emit("triggerScroll")})),new Promise((function(t){c.$once("triggerScroll",(function(){if(e.hash){var n=e.hash;void 0!==window.CSS&&void 0!==window.CSS.escape&&(n="#"+window.CSS.escape(n.substr(1)));try{document.querySelector(n)&&(r={selector:n})}catch(e){console.warn("Failed to save scroll position. Please add CSS.escape() polyfill (https://github.com/mathiasbynens/CSS.escape).")}}t(r)}))}))},routes:[{path:"/",component:function(){return Object(_.m)(Promise.all([n.e(2),n.e(6),n.e(3)]).then(n.bind(null,498)))},name:"index"}],fallback:!1};function j(e,t){var base=t._app&&t._app.basePath||k.base,n=new v.a(x(x({},k),{},{base:base})),r=n.push;n.push=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:O,n=arguments.length>2?arguments[2]:void 0;return r.call(this,e,t,n)};var o=n.resolve.bind(n);return n.resolve=function(e,t,n){return"string"==typeof e&&(e=Object(y.c)(e)),o(e,t,n)},n}var $={name:"NuxtChild",functional:!0,props:{nuxtChildKey:{type:String,default:""},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0}},render:function(e,t){var n=t.parent,data=t.data,r=t.props,o=n.$createElement;data.nuxtChild=!0;for(var c=n,l=n.$nuxt.nuxt.transitions,f=n.$nuxt.nuxt.defaultTransition,h=0;n;)n.$vnode&&n.$vnode.data.nuxtChild&&h++,n=n.$parent;data.nuxtChildDepth=h;var d=l[h]||f,m={};C.forEach((function(e){void 0!==d[e]&&(m[e]=d[e])}));var v={};S.forEach((function(e){"function"==typeof d[e]&&(v[e]=d[e].bind(c))}));var y=v.beforeEnter;if(v.beforeEnter=function(e){if(window.$nuxt.$nextTick((function(){window.$nuxt.$emit("triggerScroll")})),y)return y.call(c,e)},!1===d.css){var _=v.leave;(!_||_.length<2)&&(v.leave=function(e,t){_&&_.call(c,e),c.$nextTick(t)})}var w=o("routerView",data);return r.keepAlive&&(w=o("keep-alive",{props:r.keepAliveProps},[w])),o("transition",{props:m,on:v},[w])}},C=["name","mode","appear","css","type","duration","enterClass","leaveClass","appearClass","enterActiveClass","enterActiveClass","leaveActiveClass","appearActiveClass","enterToClass","leaveToClass","appearToClass"],S=["beforeEnter","enter","afterEnter","enterCancelled","beforeLeave","leave","afterLeave","leaveCancelled","beforeAppear","appear","afterAppear","appearCancelled"],P={name:"NuxtError",props:{error:{type:Object,default:null}},computed:{statusCode:function(){return this.error&&this.error.statusCode||500},message:function(){return this.error.message||"Error"}},head:function(){return{title:this.message,meta:[{name:"viewport",content:"width=device-width,initial-scale=1.0,minimum-scale=1.0"}]}}},L=(n(218),n(91)),R=Object(L.a)(P,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"__nuxt-error-page"},[t("div",{staticClass:"error"},[t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"90",height:"90",fill:"#DBE1EC",viewBox:"0 0 48 48"}},[t("path",{attrs:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z"}})]),e._v(" "),t("div",{staticClass:"title"},[e._v(e._s(e.message))]),e._v(" "),404===e.statusCode?t("p",{staticClass:"description"},[void 0===e.$route?t("a",{staticClass:"error-link",attrs:{href:"/"}}):t("NuxtLink",{staticClass:"error-link",attrs:{to:"/"}},[e._v("Back to the home page")])],1):e._e(),e._v(" "),e._m(0)])])}),[function(){var e=this._self._c;return e("div",{staticClass:"logo"},[e("a",{attrs:{href:"https://nuxtjs.org",target:"_blank",rel:"noopener"}},[this._v("Nuxt")])])}],!1,null,null,null).exports,E=n(7),T=(n(65),{name:"Nuxt",components:{NuxtChild:$,NuxtError:R},props:{nuxtChildKey:{type:String,default:void 0},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0},name:{type:String,default:"default"}},errorCaptured:function(e){this.displayingNuxtError&&(this.errorFromNuxtError=e,this.$forceUpdate())},computed:{routerViewKey:function(){if(void 0!==this.nuxtChildKey||this.$route.matched.length>1)return this.nuxtChildKey||Object(_.c)(this.$route.matched[0].path)(this.$route.params);var e=Object(E.a)(this.$route.matched,1)[0];if(!e)return this.$route.path;var t=e.components.default;if(t&&t.options){var n=t.options;if(n.key)return"function"==typeof n.key?n.key(this.$route):n.key}return/\/$/.test(e.path)?this.$route.path:this.$route.path.replace(/\/$/,"")}},beforeCreate:function(){c.a.util.defineReactive(this,"nuxt",this.$root.$options.nuxt)},render:function(e){var t=this;return this.nuxt.err?this.errorFromNuxtError?(this.$nextTick((function(){return t.errorFromNuxtError=!1})),e("div",{},[e("h2","An error occurred while showing the error page"),e("p","Unfortunately an error occurred and while showing the error page another error occurred"),e("p","Error details: ".concat(this.errorFromNuxtError.toString())),e("nuxt-link",{props:{to:"/"}},"Go back to home")])):(this.displayingNuxtError=!0,this.$nextTick((function(){return t.displayingNuxtError=!1})),e(R,{props:{error:this.nuxt.err}})):e("NuxtChild",{key:this.routerViewKey,props:this.$props})}}),D=(n(32),n(39),n(40),n(41),n(220),n(180));function A(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return N(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return N(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var I={_default:Object(_.s)(D.a)},F={render:function(e,t){var n=e(this.layout||"nuxt"),r=e("div",{domProps:{id:"__layout"},key:this.layoutName},[n]),o=e("transition",{props:{name:"layout",mode:"out-in"},on:{beforeEnter:function(e){window.$nuxt.$nextTick((function(){window.$nuxt.$emit("triggerScroll")}))}}},[r]);return e("div",{domProps:{id:"__nuxt"}},[o])},data:function(){return{isOnline:!0,layout:null,layoutName:"",nbFetching:0}},beforeCreate:function(){c.a.util.defineReactive(this,"nuxt",this.$options.nuxt)},created:function(){this.$root.$options.$nuxt=this,window.$nuxt=this,this.refreshOnlineStatus(),window.addEventListener("online",this.refreshOnlineStatus),window.addEventListener("offline",this.refreshOnlineStatus),this.error=this.nuxt.error,this.context=this.$options.context},watch:{"nuxt.err":"errorChanged"},computed:{isOffline:function(){return!this.isOnline},isFetching:function(){return this.nbFetching>0},isPreview:function(){return Boolean(this.$options.previewData)}},methods:{refreshOnlineStatus:function(){void 0===window.navigator.onLine?this.isOnline=!0:this.isOnline=window.navigator.onLine},refresh:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((n=Object(_.h)(e.$route)).length){t.next=3;break}return t.abrupt("return");case 3:return r=n.map((function(t){var p=[];if(t.$options.fetch&&t.$options.fetch.length&&p.push(Object(_.q)(t.$options.fetch,e.context)),t.$fetch)p.push(t.$fetch());else{var n,r=A(Object(_.e)(t.$vnode.componentInstance));try{for(r.s();!(n=r.n()).done;){var component=n.value;p.push(component.$fetch())}}catch(e){r.e(e)}finally{r.f()}}return t.$options.asyncData&&p.push(Object(_.q)(t.$options.asyncData,e.context).then((function(e){for(var n in e)c.a.set(t.$data,n,e[n])}))),Promise.all(p)})),t.prev=4,t.next=7,Promise.all(r);case 7:t.next=13;break;case 9:t.prev=9,t.t0=t.catch(4),Object(_.k)(t.t0),e.error(t.t0);case 13:case"end":return t.stop()}}),t,null,[[4,9]])})))()},errorChanged:function(){if(this.nuxt.err){var e=(R.options||R).layout;"function"==typeof e&&(e=e(this.context)),this.setLayout(e)}},setLayout:function(e){return e&&I["_"+e]||(e="default"),this.layoutName=e,this.layout=I["_"+e],this.layout},loadLayout:function(e){return e&&I["_"+e]||(e="default"),Promise.resolve(I["_"+e])}}},M=n(24),U=(n(128),n(45),n(126),n(50),n(52),n(177)),B={COMPONENT_OPTIONS_KEY:"nuxtI18n",STRATEGIES:{PREFIX:"prefix",PREFIX_EXCEPT_DEFAULT:"prefix_except_default",PREFIX_AND_DEFAULT:"prefix_and_default",NO_PREFIX:"no_prefix"}},W=!1,z=void 0,H={vueI18n:{fallbackLocale:"en",silentTranslationWarn:!0},vueI18nLoader:!1,locales:[{name:"English",code:"en",iso:"en-US",file:"en-US.js",class:"lang-en"}],defaultLocale:"en",defaultDirection:"ltr",routesNameSeparator:"---",defaultLocaleRouteNameSuffix:"default",sortRoutes:!0,strategy:"no_prefix",lazy:!0,langDir:"/Users/tolya/dev/ton/bridge/bridge/lang",rootRedirect:null,detectBrowserLanguage:!1,differentDomains:!1,seo:!1,baseUrl:"https://ton.org/bridge",vuex:{moduleName:"i18n",syncLocale:!1,syncMessages:!1,syncRouteParams:!0},parsePages:!0,pages:{},skipSettingLocaleOnNavigate:!1,beforeLanguageSwitch:function(){return null},onBeforeLanguageSwitch:function(){},onLanguageSwitched:function(){return null},normalizedLocales:[{name:"English",code:"en",iso:"en-US",file:"en-US.js",class:"lang-en"}],localeCodes:["en"]},V={"en-US.js":function(){return Promise.resolve(U.a)}},X=(n(184),n(160),n(108),n(90),n(225),n(132)),G=n.n(X);function K(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return J(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function Y(text){return"[nuxt-i18n] ".concat(text)}function Q(e,t){var n,r=[],o=[],c=K(e);try{for(c.s();!(n=c.n()).done;){var l=n.value,code=l.code,f=l.iso||code;o.push({code:code,iso:f})}}catch(e){c.e(e)}finally{c.f()}var h,d=K(t.entries());try{var m=function(){var e=Object(E.a)(h.value,2),n=e[0],c=e[1],l=o.find((function(e){return e.iso.toLowerCase()===c.toLowerCase()}));if(l)return r.push({code:l.code,score:1-n/t.length}),"break"};for(d.s();!(h=d.n()).done;){if("break"===m())break}}catch(e){d.e(e)}finally{d.f()}var v,y=K(t.entries());try{var _=function(){var e=Object(E.a)(v.value,2),n=e[0],c=e[1].split("-")[0].toLowerCase(),l=o.find((function(e){return e.iso.split("-")[0].toLowerCase()===c}));if(l)return r.push({code:l.code,score:.999-n/t.length}),"break"};for(y.s();!(v=y.n()).done;){if("break"===_())break}}catch(e){y.e(e)}finally{y.f()}return r.length>1&&r.sort((function(e,t){return e.score===t.score?t.code.length-e.code.length:t.score-e.score})),r.length?r[0].code:void 0}function Z(e,t){var n;if(n=window.location.host){var r=e.find((function(e){return e.domain===n}));if(r)return r.code}return""}function ee(e){return new RegExp("^/(".concat(e.join("|"),")(?:/|$)"),"i")}function te(e,t){var n=t.routesNameSeparator,r=t.defaultLocaleRouteNameSuffix,o="(".concat(e.join("|"),")"),c="(?:".concat(n).concat(r,")?"),l=new RegExp("".concat(n).concat(o).concat(c,"$"),"i"),f=ee(e);return function(e){if(e.name){var t=e.name.match(l);if(t&&t.length>1)return t[1]}else if(e.path){var n=e.path.match(f);if(n&&n.length>1)return n[1]}return""}}function ne(e,t){var n,r=t.useCookie,o=t.cookieKey,c=t.localeCodes;if(r&&((n=G.a.get(o))&&c.includes(n)))return n}function re(e,t,n){var r=n.useCookie,o=n.cookieDomain,c=n.cookieKey,l=n.cookieSecure,f=n.cookieCrossOrigin;if(r){var h=new Date,d={expires:new Date(h.setDate(h.getDate()+365)),path:"/",sameSite:f?"none":"lax",secure:f||l};o&&(d.domain=o),G.a.set(c,e,d)}}var oe=n(53);function ae(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function ie(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ae(Object(source),!0).forEach((function(t){Object(o.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):ae(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}function se(e,t){return ce.apply(this,arguments)}function ce(){return(ce=Object(r.a)(regeneratorRuntime.mark((function e(t,n){var r,o,c,l,f,h,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.app,(o=r.i18n).loadedLanguages||(o.loadedLanguages=[]),o.loadedLanguages.includes(n)){e.next=34;break}if(!(c=H.normalizedLocales.find((function(e){return e.code===n})))){e.next=33;break}if(!(l=c.file)){e.next=30;break}if((h=t.nuxtState)&&h.__i18n&&h.__i18n.langs[n]&&(f=h.__i18n.langs[n],t.isDev&&V[l]()),f){e.next=27;break}return e.prev=10,e.next=13,V[l]().then((function(e){return e.default||e}));case 13:if("function"!=typeof(d=e.sent)){e.next=20;break}return e.next=17,Promise.resolve(d(t,n));case 17:e.t0=e.sent,e.next=21;break;case 20:e.t0=d;case 21:f=e.t0,e.next=27;break;case 24:e.prev=24,e.t1=e.catch(10),console.error(Y("Failed loading async locale export: ".concat(e.t1.message)));case 27:f&&(o.setLocaleMessage(n,f),o.loadedLanguages.push(n)),e.next=31;break;case 30:console.warn(Y("Could not find lang file for locale ".concat(n)));case 31:e.next=34;break;case 33:console.warn(Y('Attempted to load messages for non-existant locale code "'.concat(n,'"')));case 34:case"end":return e.stop()}}),e,null,[[10,24]])})))).apply(this,arguments)}function ue(e,t,n,r){var o=r.differentDomains,c=r.normalizedLocales;if("function"==typeof e)return e(t);if(o&&n){var l=le(n,t.req,{normalizedLocales:c});if(l)return l}return e}function le(e,t,n){var r,o=n.normalizedLocales.find((function(t){return t.code===e}));if(o&&o.domain)return Object(oe.hasProtocol)(o.domain)?o.domain:(r=window.location.protocol.split(":")[0],"".concat(r,"://").concat(o.domain));console.warn(Y("Could not find domain name for locale ".concat(e)))}function fe(e,t,n){var r={namespaced:!0,state:function(){return ie(ie(ie({},t.syncLocale?{locale:""}:{}),t.syncMessages?{messages:{}}:{}),t.syncRouteParams?{routeParams:{}}:{})},actions:ie(ie(ie({},t.syncLocale?{setLocale:function(e,t){(0,e.commit)("setLocale",t)}}:{}),t.syncMessages?{setMessages:function(e,t){(0,e.commit)("setMessages",t)}}:{}),t.syncRouteParams?{setRouteParams:function(e,t){(0,e.commit)("setRouteParams",t)}}:{}),mutations:ie(ie(ie({},t.syncLocale?{setLocale:function(e,t){e.locale=t}}:{}),t.syncMessages?{setMessages:function(e,t){e.messages=t}}:{}),t.syncRouteParams?{setRouteParams:function(e,t){e.routeParams=t}}:{}),getters:ie({},t.syncRouteParams?{localeRouteParams:function(e){var t=e.routeParams;return function(e){return t&&t[e]||{}}}}:{})};e.registerModule(t.moduleName,r,{preserveState:!!e.state[t.moduleName]})}function pe(e){return he.apply(this,arguments)}function he(){return he=Object(r.a)(regeneratorRuntime.mark((function e(t){var n,r,o,c=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=c.length>1&&void 0!==c[1]?c[1]:null,r=c.length>2&&void 0!==c[2]?c[2]:null,!(o=c.length>3?c[3]:void 0)||!t){e.next=10;break}if(null===n||!o.syncLocale){e.next=7;break}return e.next=7,t.dispatch(o.moduleName+"/setLocale",n);case 7:if(null===r||!o.syncMessages){e.next=10;break}return e.next=10,t.dispatch(o.moduleName+"/setMessages",r);case 10:case"end":return e.stop()}}),e)}))),he.apply(this,arguments)}var de=n(181),me=(n(226),n(72)),ge=function(){var e=Object(r.a)(regeneratorRuntime.mark((function e(t){var n,r,o,c,l,f,h;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.app,!t.isHMR){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,n.i18n.__onNavigate(t.route);case 5:r=e.sent,o=Object(E.a)(r,3),c=o[0],l=o[1],f=o[2],c&&l&&(h=f?t.route.query:void 0,t.redirect(c,l,h));case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();me.a.nuxti18n=ge;var ve=["params"];function be(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function ye(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?be(Object(source),!0).forEach((function(t){Object(o.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):be(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}function _e(e,t){var n=Oe.call(this,e,t);return n?n.route.fullPath:""}function we(e,t){var n=Oe.call(this,e,t);return n?n.route:void 0}function xe(e,t){var n=Oe.call(this,e,t);return n?n.location:void 0}function Oe(e,t){if(e){var n=this.i18n;if(t=t||n.locale){"string"==typeof e&&(e="/"===e[0]?{path:e}:{name:e});var r=Object.assign({},e);if(r.path&&!r.name){var o=this.router.resolve(r).route,c=this.getRouteBaseName(o);if(c)r={name:$e(c,t),params:o.params,query:o.query,hash:o.hash};else!(t===H.defaultLocale&&[B.STRATEGIES.PREFIX_EXCEPT_DEFAULT,B.STRATEGIES.PREFIX_AND_DEFAULT].includes(H.strategy)||H.strategy===B.STRATEGIES.NO_PREFIX||n.differentDomains)&&(r.path="/".concat(t).concat(r.path)),r.path=z?Object(oe.withTrailingSlash)(r.path,!0):Object(oe.withoutTrailingSlash)(r.path,!0)}else{r.name||r.path||(r.name=this.getRouteBaseName()),r.name=$e(r.name,t);var l=r.params;l&&void 0===l[0]&&l.pathMatch&&(l[0]=l.pathMatch)}var f=this.router.resolve(r);return f.route.name?f:this.router.resolve(e)}}}function ke(e){var t=this.getRouteBaseName();if(!t)return"";var n=this.i18n,r=this.route,o=this.store,c=r.params,l=Object(de.a)(r,ve),f={};H.vuex&&H.vuex.syncRouteParams&&o&&(f=o.getters["".concat(H.vuex.moduleName,"/localeRouteParams")](e));var h=Object.assign({},l,{name:t,params:ye(ye(ye({},c),f),{},{0:c.pathMatch})}),path=this.localePath(h,e);if(n.differentDomains){var d={differentDomains:n.differentDomains,normalizedLocales:H.normalizedLocales},m=le(e,this.req,d);m&&(path=m+path)}return path}function je(e){var t=void 0!==e?e:this.route;if(t&&t.name)return t.name.split(H.routesNameSeparator)[0]}function $e(e,t){var n=e+(H.strategy===B.STRATEGIES.NO_PREFIX?"":H.routesNameSeparator+t);return t===H.defaultLocale&&H.strategy===B.STRATEGIES.PREFIX_AND_DEFAULT&&(n+=H.routesNameSeparator+H.defaultLocaleRouteNameSuffix),n}var Ce=function(e){return function(){var t={getRouteBaseName:this.getRouteBaseName,i18n:this.$i18n,localePath:this.localePath,localeRoute:this.localeRoute,localeLocation:this.localeLocation,req:null,route:this.$route,router:this.$router,store:this.$store};return e.call.apply(e,[t].concat(Array.prototype.slice.call(arguments)))}},Se=function(e,t){return function(){var n=e.app,r=(e.req,e.route),o=e.store,c={getRouteBaseName:n.getRouteBaseName,i18n:n.i18n,localePath:n.localePath,localeLocation:n.localeLocation,localeRoute:n.localeRoute,req:null,route:r,router:n.router,store:o};return t.call.apply(t,[c].concat(Array.prototype.slice.call(arguments)))}},Pe={install:function(e){e.mixin({methods:{localePath:Ce(_e),localeRoute:Ce(we),localeLocation:Ce(xe),switchLocalePath:Ce(ke),getRouteBaseName:Ce(je)}})}},Le=function(e){c.a.use(Pe);var t=e.app,n=e.store;t.localePath=e.localePath=Se(e,_e),t.localeRoute=e.localeRoute=Se(e,we),t.localeLocation=e.localeLocation=Se(e,xe),t.switchLocalePath=e.switchLocalePath=Se(e,ke),t.getRouteBaseName=e.getRouteBaseName=Se(e,je),n&&(n.localePath=t.localePath,n.localeRoute=t.localeRoute,n.localeLocation=t.localeLocation,n.switchLocalePath=t.switchLocalePath,n.getRouteBaseName=t.getRouteBaseName)},Re=(n(107),["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"]),Ee=["dateStyle","timeStyle","calendar","localeMatcher","hour12","hourCycle","timeZone","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function Te(e,t){"undefined"!=typeof console&&(console.warn("[vue-i18n] "+e),t&&console.warn(t.stack))}var De=Array.isArray;function Ae(e){return null!==e&&"object"==typeof e}function Ne(e){return"string"==typeof e}var Ie=Object.prototype.toString;function Fe(e){return"[object Object]"===Ie.call(e)}function Me(e){return null==e}function Ue(e){return"function"==typeof e}function Be(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=null,r=null;return 1===e.length?Ae(e[0])||De(e[0])?r=e[0]:"string"==typeof e[0]&&(n=e[0]):2===e.length&&("string"==typeof e[0]&&(n=e[0]),(Ae(e[1])||De(e[1]))&&(r=e[1])),{locale:n,params:r}}function qe(e){return JSON.parse(JSON.stringify(e))}function We(e,t){return!!~e.indexOf(t)}var ze=Object.prototype.hasOwnProperty;function He(e,t){return ze.call(e,t)}function Ve(e){for(var t=arguments,output=Object(e),i=1;i<arguments.length;i++){var source=t[i];if(null!=source){var n=void 0;for(n in source)He(source,n)&&(Ae(source[n])?output[n]=Ve(output[n],source[n]):output[n]=source[n])}}return output}function Xe(a,b){if(a===b)return!0;var e=Ae(a),t=Ae(b);if(!e||!t)return!e&&!t&&String(a)===String(b);try{var n=De(a),r=De(b);if(n&&r)return a.length===b.length&&a.every((function(e,i){return Xe(e,b[i])}));if(n||r)return!1;var o=Object.keys(a),c=Object.keys(b);return o.length===c.length&&o.every((function(e){return Xe(a[e],b[e])}))}catch(e){return!1}}function Ge(e){return null!=e&&Object.keys(e).forEach((function(t){"string"==typeof e[t]&&(e[t]=e[t].replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"))})),e}var Ke={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(e,t){var data=t.data,n=t.parent,r=t.props,o=t.slots,c=n.$i18n;if(c){var path=r.path,l=r.locale,f=r.places,h=o(),d=c.i(path,l,function(e){var t;for(t in e)if("default"!==t)return!1;return Boolean(t)}(h)||f?function(e,t){var n=t?function(e){0;return Array.isArray(e)?e.reduce(Ye,{}):Object.assign({},e)}(t):{};if(!e)return n;var r=(e=e.filter((function(e){return e.tag||""!==e.text.trim()}))).every(Qe);0;return e.reduce(r?Je:Ye,n)}(h.default,f):h),m=r.tag&&!0!==r.tag||!1===r.tag?r.tag:"span";return m?e(m,data,d):d}}};function Je(e,t){return t.data&&t.data.attrs&&t.data.attrs.place&&(e[t.data.attrs.place]=t),e}function Ye(e,t,n){return e[n]=t,e}function Qe(e){return Boolean(e.data&&e.data.attrs&&e.data.attrs.place)}var Ze,et={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(e,t){var n=t.props,r=t.parent,data=t.data,o=r.$i18n;if(!o)return null;var c=null,l=null;Ne(n.format)?c=n.format:Ae(n.format)&&(n.format.key&&(c=n.format.key),l=Object.keys(n.format).reduce((function(e,t){var r;return We(Re,t)?Object.assign({},e,((r={})[t]=n.format[t],r)):e}),null));var f=n.locale||o.locale,h=o._ntp(n.value,f,c,l),d=h.map((function(e,t){var n,slot=data.scopedSlots&&data.scopedSlots[e.type];return slot?slot(((n={})[e.type]=e.value,n.index=t,n.parts=h,n)):e.value})),m=n.tag&&!0!==n.tag||!1===n.tag?n.tag:"span";return m?e(m,{attrs:data.attrs,class:data.class,staticClass:data.staticClass},d):d}};function tt(e,t,n){at(e,n)&&it(e,t,n)}function nt(e,t,n,r){if(at(e,n)){var o=n.context.$i18n;(function(e,t){var n=t.context;return e._locale===n.$i18n.locale})(e,n)&&Xe(t.value,t.oldValue)&&Xe(e._localeMessage,o.getLocaleMessage(o.locale))||it(e,t,n)}}function ot(e,t,n,r){if(n.context){var o=n.context.$i18n||{};t.modifiers.preserve||o.preserveDirectiveContent||(e.textContent=""),e._vt=void 0,delete e._vt,e._locale=void 0,delete e._locale,e._localeMessage=void 0,delete e._localeMessage}else Te("Vue instance does not exists in VNode context")}function at(e,t){var n=t.context;return n?!!n.$i18n||(Te("VueI18n instance does not exists in Vue instance"),!1):(Te("Vue instance does not exists in VNode context"),!1)}function it(e,t,n){var r,o,c=function(e){var path,t,n,r;Ne(e)?path=e:Fe(e)&&(path=e.path,t=e.locale,n=e.args,r=e.choice);return{path:path,locale:t,args:n,choice:r}}(t.value),path=c.path,l=c.locale,f=c.args,h=c.choice;if(path||l||f)if(path){var d=n.context;e._vt=e.textContent=null!=h?(r=d.$i18n).tc.apply(r,[path,h].concat(st(l,f))):(o=d.$i18n).t.apply(o,[path].concat(st(l,f))),e._locale=d.$i18n.locale,e._localeMessage=d.$i18n.getLocaleMessage(d.$i18n.locale)}else Te("`path` is required in v-t directive");else Te("value type not supported")}function st(e,t){var n=[];return e&&n.push(e),t&&(Array.isArray(t)||Fe(t))&&n.push(t),n}function ct(e,t){void 0===t&&(t={bridge:!1}),ct.installed=!0;(Ze=e).version&&Number(Ze.version.split(".")[0]);(function(e){e.prototype.hasOwnProperty("$i18n")||Object.defineProperty(e.prototype,"$i18n",{get:function(){return this._i18n}}),e.prototype.$t=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r=this.$i18n;return r._t.apply(r,[e,r.locale,r._getMessages(),this].concat(t))},e.prototype.$tc=function(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];var o=this.$i18n;return o._tc.apply(o,[e,o.locale,o._getMessages(),this,t].concat(n))},e.prototype.$te=function(e,t){var n=this.$i18n;return n._te(e,n.locale,n._getMessages(),t)},e.prototype.$d=function(e){for(var t,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return(t=this.$i18n).d.apply(t,[e].concat(n))},e.prototype.$n=function(e){for(var t,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return(t=this.$i18n).n.apply(t,[e].concat(n))}})(Ze),Ze.mixin(function(e){function t(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)}return void 0===e&&(e=!1),e?{mounted:t}:{beforeCreate:function(){var e=this.$options;if(e.i18n=e.i18n||(e.__i18nBridge||e.__i18n?{}:null),e.i18n){if(e.i18n instanceof jt){if(e.__i18nBridge||e.__i18n)try{var t=e.i18n&&e.i18n.messages?e.i18n.messages:{};(e.__i18nBridge||e.__i18n).forEach((function(e){t=Ve(t,JSON.parse(e))})),Object.keys(t).forEach((function(n){e.i18n.mergeLocaleMessage(n,t[n])}))}catch(e){}this._i18n=e.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(Fe(e.i18n)){var n=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof jt?this.$root.$i18n:null;if(n&&(e.i18n.root=this.$root,e.i18n.formatter=n.formatter,e.i18n.fallbackLocale=n.fallbackLocale,e.i18n.formatFallbackMessages=n.formatFallbackMessages,e.i18n.silentTranslationWarn=n.silentTranslationWarn,e.i18n.silentFallbackWarn=n.silentFallbackWarn,e.i18n.pluralizationRules=n.pluralizationRules,e.i18n.preserveDirectiveContent=n.preserveDirectiveContent),e.__i18nBridge||e.__i18n)try{var r=e.i18n&&e.i18n.messages?e.i18n.messages:{};(e.__i18nBridge||e.__i18n).forEach((function(e){r=Ve(r,JSON.parse(e))})),e.i18n.messages=r}catch(e){}var o=e.i18n.sharedMessages;o&&Fe(o)&&(e.i18n.messages=Ve(e.i18n.messages,o)),this._i18n=new jt(e.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===e.i18n.sync||e.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),n&&n.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof jt?this._i18n=this.$root.$i18n:e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof jt&&(this._i18n=e.parent.$i18n)},beforeMount:function(){var e=this.$options;e.i18n=e.i18n||(e.__i18nBridge||e.__i18n?{}:null),e.i18n?(e.i18n instanceof jt||Fe(e.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof jt||e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof jt)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:t,beforeDestroy:function(){if(this._i18n){var e=this;this.$nextTick((function(){e._subscribing&&(e._i18n.unsubscribeDataChanging(e),delete e._subscribing),e._i18nWatcher&&(e._i18nWatcher(),e._i18n.destroyVM(),delete e._i18nWatcher),e._localeWatcher&&(e._localeWatcher(),delete e._localeWatcher)}))}}}}(t.bridge)),Ze.directive("t",{bind:tt,update:nt,unbind:ot}),Ze.component(Ke.name,Ke),Ze.component(et.name,et),Ze.config.optionMergeStrategies.i18n=function(e,t){return void 0===t?e:t}}var ut=function(){this._caches=Object.create(null)};ut.prototype.interpolate=function(e,t){if(!t)return[e];var n=this._caches[e];return n||(n=function(e){var t=[],n=0,text="";for(;n<e.length;){var r=e[n++];if("{"===r){text&&t.push({type:"text",value:text}),text="";var sub="";for(r=e[n++];void 0!==r&&"}"!==r;)sub+=r,r=e[n++];var o="}"===r,c=lt.test(sub)?"list":o&&ft.test(sub)?"named":"unknown";t.push({value:sub,type:c})}else"%"===r?"{"!==e[n]&&(text+=r):text+=r}return text&&t.push({type:"text",value:text}),t}(e),this._caches[e]=n),function(e,t){var n=[],r=0,o=Array.isArray(t)?"list":Ae(t)?"named":"unknown";if("unknown"===o)return n;for(;r<e.length;){var c=e[r];switch(c.type){case"text":n.push(c.value);break;case"list":n.push(t[parseInt(c.value,10)]);break;case"named":"named"===o&&n.push(t[c.value])}r++}return n}(n,t)};var lt=/^(?:\d)+/,ft=/^(?:\w)+/;var pt=[];pt[0]={ws:[0],ident:[3,0],"[":[4],eof:[7]},pt[1]={ws:[1],".":[2],"[":[4],eof:[7]},pt[2]={ws:[2],ident:[3,0],0:[3,0],number:[3,0]},pt[3]={ident:[3,0],0:[3,0],number:[3,0],ws:[1,1],".":[2,1],"[":[4,1],eof:[7,1]},pt[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],eof:8,else:[4,0]},pt[5]={"'":[4,0],eof:8,else:[5,0]},pt[6]={'"':[4,0],eof:8,else:[6,0]};var ht=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function mt(e){if(null==e)return"eof";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"ident";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return"ident"}function gt(path){var e,a,t,n=path.trim();return("0"!==path.charAt(0)||!isNaN(path))&&(t=n,ht.test(t)?(a=(e=n).charCodeAt(0))!==e.charCodeAt(e.length-1)||34!==a&&39!==a?e:e.slice(1,-1):"*"+n)}var vt=function(){this._cache=Object.create(null)};vt.prototype.parsePath=function(path){var e=this._cache[path];return e||(e=function(path){var e,t,n,r,o,c,l,f=[],h=-1,d=0,m=0,v=[];function y(){var e=path[h+1];if(5===d&&"'"===e||6===d&&'"'===e)return h++,n="\\"+e,v[0](),!0}for(v[1]=function(){void 0!==t&&(f.push(t),t=void 0)},v[0]=function(){void 0===t?t=n:t+=n},v[2]=function(){v[0](),m++},v[3]=function(){if(m>0)m--,d=4,v[0]();else{if(m=0,void 0===t)return!1;if(!1===(t=gt(t)))return!1;v[1]()}};null!==d;)if(h++,"\\"!==(e=path[h])||!y()){if(r=mt(e),8===(o=(l=pt[d])[r]||l.else||8))return;if(d=o[0],(c=v[o[1]])&&(n=void 0===(n=o[2])?e:n,!1===c()))return;if(7===d)return f}}(path),e&&(this._cache[path]=e)),e||[]},vt.prototype.getPathValue=function(e,path){if(!Ae(e))return null;var t=this.parsePath(path);if(0===t.length)return null;for(var n=t.length,r=e,i=0;i<n;){var o=r[t[i]];if(null==o)return null;r=o,i++}return r};var bt,yt=/<\/?[\w\s="/.':;#-\/]+>/,_t=/(?:@(?:\.[a-zA-Z]+)?:(?:[\w\-_|./]+|\([\w\-_:|./]+\)))/g,wt=/^@(?:\.([a-zA-Z]+))?:/,xt=/[()]/g,Ot={upper:function(e){return e.toLocaleUpperCase()},lower:function(e){return e.toLocaleLowerCase()},capitalize:function(e){return""+e.charAt(0).toLocaleUpperCase()+e.substr(1)}},kt=new ut,jt=function(e){var t=this;void 0===e&&(e={}),!Ze&&"undefined"!=typeof window&&window.Vue&&ct(window.Vue);var n=e.locale||"en-US",r=!1!==e.fallbackLocale&&(e.fallbackLocale||"en-US"),o=e.messages||{},c=e.dateTimeFormats||e.datetimeFormats||{},l=e.numberFormats||{};this._vm=null,this._formatter=e.formatter||kt,this._modifiers=e.modifiers||{},this._missing=e.missing||null,this._root=e.root||null,this._sync=void 0===e.sync||!!e.sync,this._fallbackRoot=void 0===e.fallbackRoot||!!e.fallbackRoot,this._fallbackRootWithEmptyString=void 0===e.fallbackRootWithEmptyString||!!e.fallbackRootWithEmptyString,this._formatFallbackMessages=void 0!==e.formatFallbackMessages&&!!e.formatFallbackMessages,this._silentTranslationWarn=void 0!==e.silentTranslationWarn&&e.silentTranslationWarn,this._silentFallbackWarn=void 0!==e.silentFallbackWarn&&!!e.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new vt,this._dataListeners=new Set,this._componentInstanceCreatedListener=e.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==e.preserveDirectiveContent&&!!e.preserveDirectiveContent,this.pluralizationRules=e.pluralizationRules||{},this._warnHtmlInMessage=e.warnHtmlInMessage||"off",this._postTranslation=e.postTranslation||null,this._escapeParameterHtml=e.escapeParameterHtml||!1,"__VUE_I18N_BRIDGE__"in e&&(this.__VUE_I18N_BRIDGE__=e.__VUE_I18N_BRIDGE__),this.getChoiceIndex=function(e,n){var r=Object.getPrototypeOf(t);if(r&&r.getChoiceIndex)return r.getChoiceIndex.call(t,e,n);var o,c;return t.locale in t.pluralizationRules?t.pluralizationRules[t.locale].apply(t,[e,n]):(o=e,c=n,o=Math.abs(o),2===c?o?o>1?1:0:1:o?Math.min(o,2):0)},this._exist=function(e,n){return!(!e||!n)&&(!Me(t._path.getPathValue(e,n))||!!e[n])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(o).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,o[e])})),this._initVM({locale:n,fallbackLocale:r,messages:o,dateTimeFormats:c,numberFormats:l})},$t={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0},sync:{configurable:!0}};jt.prototype._checkLocaleMessage=function(e,t,n){var r=function(e,t,n,o){if(Fe(n))Object.keys(n).forEach((function(c){var l=n[c];Fe(l)?(o.push(c),o.push("."),r(e,t,l,o),o.pop(),o.pop()):(o.push(c),r(e,t,l,o),o.pop())}));else if(De(n))n.forEach((function(n,c){Fe(n)?(o.push("["+c+"]"),o.push("."),r(e,t,n,o),o.pop(),o.pop()):(o.push("["+c+"]"),r(e,t,n,o),o.pop())}));else if(Ne(n)){if(yt.test(n)){var c="Detected HTML in message '"+n+"' of keypath '"+o.join("")+"' at '"+t+"'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===e?Te(c):"error"===e&&function(e,t){"undefined"!=typeof console&&(console.error("[vue-i18n] "+e),t&&console.error(t.stack))}(c)}}};r(t,e,n,[])},jt.prototype._initVM=function(data){var e=Ze.config.silent;Ze.config.silent=!0,this._vm=new Ze({data:data,__VUE18N__INSTANCE__:!0}),Ze.config.silent=e},jt.prototype.destroyVM=function(){this._vm.$destroy()},jt.prototype.subscribeDataChanging=function(e){this._dataListeners.add(e)},jt.prototype.unsubscribeDataChanging=function(e){!function(e,t){if(e.delete(t));}(this._dataListeners,e)},jt.prototype.watchI18nData=function(){var e=this;return this._vm.$watch("$data",(function(){for(var t,n,r=(t=e._dataListeners,n=[],t.forEach((function(a){return n.push(a)})),n),i=r.length;i--;)Ze.nextTick((function(){r[i]&&r[i].$forceUpdate()}))}),{deep:!0})},jt.prototype.watchLocale=function(e){if(e){if(!this.__VUE_I18N_BRIDGE__)return null;var t=this,n=this._vm;return this.vm.$watch("locale",(function(r){n.$set(n,"locale",r),t.__VUE_I18N_BRIDGE__&&e&&(e.locale.value=r),n.$forceUpdate()}),{immediate:!0})}if(!this._sync||!this._root)return null;var r=this._vm;return this._root.$i18n.vm.$watch("locale",(function(e){r.$set(r,"locale",e),r.$forceUpdate()}),{immediate:!0})},jt.prototype.onComponentInstanceCreated=function(e){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(e,this)},$t.vm.get=function(){return this._vm},$t.messages.get=function(){return qe(this._getMessages())},$t.dateTimeFormats.get=function(){return qe(this._getDateTimeFormats())},$t.numberFormats.get=function(){return qe(this._getNumberFormats())},$t.availableLocales.get=function(){return Object.keys(this.messages).sort()},$t.locale.get=function(){return this._vm.locale},$t.locale.set=function(e){this._vm.$set(this._vm,"locale",e)},$t.fallbackLocale.get=function(){return this._vm.fallbackLocale},$t.fallbackLocale.set=function(e){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",e)},$t.formatFallbackMessages.get=function(){return this._formatFallbackMessages},$t.formatFallbackMessages.set=function(e){this._formatFallbackMessages=e},$t.missing.get=function(){return this._missing},$t.missing.set=function(e){this._missing=e},$t.formatter.get=function(){return this._formatter},$t.formatter.set=function(e){this._formatter=e},$t.silentTranslationWarn.get=function(){return this._silentTranslationWarn},$t.silentTranslationWarn.set=function(e){this._silentTranslationWarn=e},$t.silentFallbackWarn.get=function(){return this._silentFallbackWarn},$t.silentFallbackWarn.set=function(e){this._silentFallbackWarn=e},$t.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},$t.preserveDirectiveContent.set=function(e){this._preserveDirectiveContent=e},$t.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},$t.warnHtmlInMessage.set=function(e){var t=this,n=this._warnHtmlInMessage;if(this._warnHtmlInMessage=e,n!==e&&("warn"===e||"error"===e)){var r=this._getMessages();Object.keys(r).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,r[e])}))}},$t.postTranslation.get=function(){return this._postTranslation},$t.postTranslation.set=function(e){this._postTranslation=e},$t.sync.get=function(){return this._sync},$t.sync.set=function(e){this._sync=e},jt.prototype._getMessages=function(){return this._vm.messages},jt.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},jt.prototype._getNumberFormats=function(){return this._vm.numberFormats},jt.prototype._warnDefault=function(e,t,n,r,o,c){if(!Me(n))return n;if(this._missing){var l=this._missing.apply(null,[e,t,r,o]);if(Ne(l))return l}else 0;if(this._formatFallbackMessages){var f=Be.apply(void 0,o);return this._render(t,c,f.params,t)}return t},jt.prototype._isFallbackRoot=function(e){return(this._fallbackRootWithEmptyString?!e:Me(e))&&!Me(this._root)&&this._fallbackRoot},jt.prototype._isSilentFallbackWarn=function(e){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(e):this._silentFallbackWarn},jt.prototype._isSilentFallback=function(e,t){return this._isSilentFallbackWarn(t)&&(this._isFallbackRoot()||e!==this.fallbackLocale)},jt.prototype._isSilentTranslationWarn=function(e){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(e):this._silentTranslationWarn},jt.prototype._interpolate=function(e,t,n,r,o,c,l){if(!t)return null;var f,h=this._path.getPathValue(t,n);if(De(h)||Fe(h))return h;if(Me(h)){if(!Fe(t))return null;if(!Ne(f=t[n])&&!Ue(f))return null}else{if(!Ne(h)&&!Ue(h))return null;f=h}return Ne(f)&&(f.indexOf("@:")>=0||f.indexOf("@.")>=0)&&(f=this._link(e,t,f,r,"raw",c,l)),this._render(f,o,c,n)},jt.prototype._link=function(e,t,n,r,o,c,l){var f=n,h=f.match(_t);for(var d in h)if(h.hasOwnProperty(d)){var link=h[d],m=link.match(wt),v=m[0],y=m[1],_=link.replace(v,"").replace(xt,"");if(We(l,_))return f;l.push(_);var w=this._interpolate(e,t,_,r,"raw"===o?"string":o,"raw"===o?void 0:c,l);if(this._isFallbackRoot(w)){if(!this._root)throw Error("unexpected error");var x=this._root.$i18n;w=x._translate(x._getMessages(),x.locale,x.fallbackLocale,_,r,o,c)}w=this._warnDefault(e,_,w,r,De(c)?c:[c],o),this._modifiers.hasOwnProperty(y)?w=this._modifiers[y](w):Ot.hasOwnProperty(y)&&(w=Ot[y](w)),l.pop(),f=w?f.replace(link,w):f}return f},jt.prototype._createMessageContext=function(e,t,path,n){var r=this,o=De(e)?e:[],c=Ae(e)?e:{},l=this._getMessages(),f=this.locale;return{list:function(e){return o[e]},named:function(e){return c[e]},values:e,formatter:t,path:path,messages:l,locale:f,linked:function(e){return r._interpolate(f,l[f]||{},e,null,n,void 0,[e])}}},jt.prototype._render=function(e,t,n,path){if(Ue(e))return e(this._createMessageContext(n,this._formatter||kt,path,t));var r=this._formatter.interpolate(e,n,path);return r||(r=kt.interpolate(e,n,path)),"string"!==t||Ne(r)?r:r.join("")},jt.prototype._appendItemToChain=function(e,t,n){var r=!1;return We(e,t)||(r=!0,t&&(r="!"!==t[t.length-1],t=t.replace(/!/g,""),e.push(t),n&&n[t]&&(r=n[t]))),r},jt.prototype._appendLocaleToChain=function(e,t,n){var r,o=t.split("-");do{var c=o.join("-");r=this._appendItemToChain(e,c,n),o.splice(-1,1)}while(o.length&&!0===r);return r},jt.prototype._appendBlockToChain=function(e,t,n){for(var r=!0,i=0;i<t.length&&"boolean"==typeof r;i++){var o=t[i];Ne(o)&&(r=this._appendLocaleToChain(e,o,n))}return r},jt.prototype._getLocaleChain=function(e,t){if(""===e)return[];this._localeChainCache||(this._localeChainCache={});var n=this._localeChainCache[e];if(!n){t||(t=this.fallbackLocale),n=[];for(var r,o=[e];De(o);)o=this._appendBlockToChain(n,o,t);(o=Ne(r=De(t)?t:Ae(t)?t.default?t.default:null:t)?[r]:r)&&this._appendBlockToChain(n,o,null),this._localeChainCache[e]=n}return n},jt.prototype._translate=function(e,t,n,r,o,c,l){for(var f,h=this._getLocaleChain(t,n),i=0;i<h.length;i++){var d=h[i];if(!Me(f=this._interpolate(d,e[d],r,o,c,l,[r])))return f}return null},jt.prototype._t=function(e,t,n,r){for(var o,c=[],l=arguments.length-4;l-- >0;)c[l]=arguments[l+4];if(!e)return"";var f=Be.apply(void 0,c);this._escapeParameterHtml&&(f.params=Ge(f.params));var h=f.locale||t,d=this._translate(n,h,this.fallbackLocale,e,r,"string",f.params);if(this._isFallbackRoot(d)){if(!this._root)throw Error("unexpected error");return(o=this._root).$t.apply(o,[e].concat(c))}return d=this._warnDefault(h,e,d,r,c,"string"),this._postTranslation&&null!=d&&(d=this._postTranslation(d,e)),d},jt.prototype.t=function(e){for(var t,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return(t=this)._t.apply(t,[e,this.locale,this._getMessages(),null].concat(n))},jt.prototype._i=function(e,t,n,r,o){var c=this._translate(n,t,this.fallbackLocale,e,r,"raw",o);if(this._isFallbackRoot(c)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(e,t,o)}return this._warnDefault(t,e,c,r,[o],"raw")},jt.prototype.i=function(e,t,n){return e?(Ne(t)||(t=this.locale),this._i(e,t,this._getMessages(),null,n)):""},jt.prototype._tc=function(e,t,n,r,o){for(var c,l=[],f=arguments.length-5;f-- >0;)l[f]=arguments[f+5];if(!e)return"";void 0===o&&(o=1);var h={count:o,n:o},d=Be.apply(void 0,l);return d.params=Object.assign(h,d.params),l=null===d.locale?[d.params]:[d.locale,d.params],this.fetchChoice((c=this)._t.apply(c,[e,t,n,r].concat(l)),o)},jt.prototype.fetchChoice=function(e,t){if(!e||!Ne(e))return null;var n=e.split("|");return n[t=this.getChoiceIndex(t,n.length)]?n[t].trim():e},jt.prototype.tc=function(e,t){for(var n,r=[],o=arguments.length-2;o-- >0;)r[o]=arguments[o+2];return(n=this)._tc.apply(n,[e,this.locale,this._getMessages(),null,t].concat(r))},jt.prototype._te=function(e,t,n){for(var r=[],o=arguments.length-3;o-- >0;)r[o]=arguments[o+3];var c=Be.apply(void 0,r).locale||t;return this._exist(n[c],e)},jt.prototype.te=function(e,t){return this._te(e,this.locale,this._getMessages(),t)},jt.prototype.getLocaleMessage=function(e){return qe(this._vm.messages[e]||{})},jt.prototype.setLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,t)},jt.prototype.mergeLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,Ve(void 0!==this._vm.messages[e]&&Object.keys(this._vm.messages[e]).length?Object.assign({},this._vm.messages[e]):{},t))},jt.prototype.getDateTimeFormat=function(e){return qe(this._vm.dateTimeFormats[e]||{})},jt.prototype.setDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,t),this._clearDateTimeFormat(e,t)},jt.prototype.mergeDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,Ve(this._vm.dateTimeFormats[e]||{},t)),this._clearDateTimeFormat(e,t)},jt.prototype._clearDateTimeFormat=function(e,t){for(var n in t){var r=e+"__"+n;this._dateTimeFormatters.hasOwnProperty(r)&&delete this._dateTimeFormatters[r]}},jt.prototype._localizeDateTime=function(e,t,n,r,o,c){for(var l=t,f=r[l],h=this._getLocaleChain(t,n),i=0;i<h.length;i++){var d=h[i];if(l=d,!Me(f=r[d])&&!Me(f[o]))break}if(Me(f)||Me(f[o]))return null;var m,v=f[o];if(c)m=new Intl.DateTimeFormat(l,Object.assign({},v,c));else{var y=l+"__"+o;(m=this._dateTimeFormatters[y])||(m=this._dateTimeFormatters[y]=new Intl.DateTimeFormat(l,v))}return m.format(e)},jt.prototype._d=function(e,t,n,r){if(!n)return(r?new Intl.DateTimeFormat(t,r):new Intl.DateTimeFormat(t)).format(e);var o=this._localizeDateTime(e,t,this.fallbackLocale,this._getDateTimeFormats(),n,r);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(e,n,t)}return o||""},jt.prototype.d=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r=this.locale,o=null,c=null;return 1===t.length?(Ne(t[0])?o=t[0]:Ae(t[0])&&(t[0].locale&&(r=t[0].locale),t[0].key&&(o=t[0].key)),c=Object.keys(t[0]).reduce((function(e,n){var r;return We(Ee,n)?Object.assign({},e,((r={})[n]=t[0][n],r)):e}),null)):2===t.length&&(Ne(t[0])&&(o=t[0]),Ne(t[1])&&(r=t[1])),this._d(e,r,o,c)},jt.prototype.getNumberFormat=function(e){return qe(this._vm.numberFormats[e]||{})},jt.prototype.setNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,t),this._clearNumberFormat(e,t)},jt.prototype.mergeNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,Ve(this._vm.numberFormats[e]||{},t)),this._clearNumberFormat(e,t)},jt.prototype._clearNumberFormat=function(e,t){for(var n in t){var r=e+"__"+n;this._numberFormatters.hasOwnProperty(r)&&delete this._numberFormatters[r]}},jt.prototype._getNumberFormatter=function(e,t,n,r,o,c){for(var l=t,f=r[l],h=this._getLocaleChain(t,n),i=0;i<h.length;i++){var d=h[i];if(l=d,!Me(f=r[d])&&!Me(f[o]))break}if(Me(f)||Me(f[o]))return null;var m,v=f[o];if(c)m=new Intl.NumberFormat(l,Object.assign({},v,c));else{var y=l+"__"+o;(m=this._numberFormatters[y])||(m=this._numberFormatters[y]=new Intl.NumberFormat(l,v))}return m},jt.prototype._n=function(e,t,n,r){if(!jt.availabilities.numberFormat)return"";if(!n)return(r?new Intl.NumberFormat(t,r):new Intl.NumberFormat(t)).format(e);var o=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,r),c=o&&o.format(e);if(this._isFallbackRoot(c)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(e,Object.assign({},{key:n,locale:t},r))}return c||""},jt.prototype.n=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r=this.locale,o=null,c=null;return 1===t.length?Ne(t[0])?o=t[0]:Ae(t[0])&&(t[0].locale&&(r=t[0].locale),t[0].key&&(o=t[0].key),c=Object.keys(t[0]).reduce((function(e,n){var r;return We(Re,n)?Object.assign({},e,((r={})[n]=t[0][n],r)):e}),null)):2===t.length&&(Ne(t[0])&&(o=t[0]),Ne(t[1])&&(r=t[1])),this._n(e,r,o,c)},jt.prototype._ntp=function(e,t,n,r){if(!jt.availabilities.numberFormat)return[];if(!n)return(r?new Intl.NumberFormat(t,r):new Intl.NumberFormat(t)).formatToParts(e);var o=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,r),c=o&&o.formatToParts(e);if(this._isFallbackRoot(c)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(e,t,n,r)}return c||[]},Object.defineProperties(jt.prototype,$t),Object.defineProperty(jt,"availabilities",{get:function(){if(!bt){var e="undefined"!=typeof Intl;bt={dateTimeFormat:e&&void 0!==Intl.DateTimeFormat,numberFormat:e&&void 0!==Intl.NumberFormat}}return bt}}),jt.install=ct,jt.version="8.28.2";var Ct=jt,St=n(173);n(227),n(231),n(233),n(234),n(235),n(236),n(237),n(239),n(240),n(241),n(242),n(243),n(244),n(245);function Pt(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function Lt(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Pt(Object(source),!0).forEach((function(t){Object(o.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):Pt(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}function Rt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Et(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Et(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function Et(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function Tt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.addDirAttribute,n=void 0===t||t,r=e.addSeoAttributes,o=void 0!==r&&r;if(!this.$i18n)return{};var c={htmlAttrs:{},link:[],meta:[]},f=this.$i18n.localeProperties,h=f.iso,d=f.dir||H.defaultDirection;if(n&&(c.htmlAttrs.dir=d),o&&(l.a.hasMetaInfo?l.a.hasMetaInfo(this):this._hasMetaInfo)&&this.$i18n.locale&&this.$i18n.locales&&!1!==this.$options[B.COMPONENT_OPTIONS_KEY]&&(!this.$options[B.COMPONENT_OPTIONS_KEY]||!1!==this.$options[B.COMPONENT_OPTIONS_KEY].seo)){h&&(c.htmlAttrs.lang=h);var m=this.$i18n.locales;v.bind(this)(m,this.$i18n.__baseUrl,c.link),y.bind(this)(this.$i18n.__baseUrl,c.link),_.bind(this)(f,h,c.meta),w.bind(this)(m,h,c.meta)}function v(e,t,link){if(H.strategy!==B.STRATEGIES.NO_PREFIX){var n,r=new Map,o=Rt(e);try{for(o.s();!(n=o.n()).done;){var c=n.value,l=c.iso;if(l){var f=l.split("-"),h=Object(E.a)(f,2),d=h[0],m=h[1];d&&m&&(c.isCatchallLocale||!r.has(d))&&r.set(d,c),r.set(l,c)}else console.warn(Y("Locale ISO code is required to generate alternate link"))}}catch(e){o.e(e)}finally{o.f()}var v,y=Rt(r.entries());try{for(y.s();!(v=y.n()).done;){var _=Object(E.a)(v.value,2),w=_[0],x=_[1],k=this.switchLocalePath(x.code);k&&link.push({hid:"i18n-alt-".concat(w),rel:"alternate",href:O(k,t),hreflang:w})}}catch(e){y.e(e)}finally{y.f()}if(H.defaultLocale){var j=this.switchLocalePath(H.defaultLocale);j&&link.push({hid:"i18n-xd",rel:"alternate",href:O(j,t),hreflang:"x-default"})}}}function y(e,link){var t=this.localeRoute(Lt(Lt({},this.$route),{},{name:this.getRouteBaseName()})),n=t?t.path:null;n&&link.push({hid:"i18n-can",rel:"canonical",href:O(n,e)})}function _(e,t,meta){e&&t&&meta.push({hid:"i18n-og",property:"og:locale",content:x(t)})}function w(e,t,meta){var n=e.filter((function(e){var n=e.iso;return n&&n!==t}));if(n.length){var r=n.map((function(e){return{hid:"i18n-og-alt-".concat(e.iso),property:"og:locale:alternate",content:x(e.iso)}}));meta.push.apply(meta,Object(St.a)(r))}}function x(e){return(e||"").replace(/-/g,"_")}function O(e,t){return e.match(/^https?:\/\//)?e:t+e}return c}function Dt(){return Tt.call(this,{addDirAttribute:!1,addSeoAttributes:!0})}function At(e,t,n){"object"==typeof n.value&&(n.value=Nt(n.value)),n.enumerable&&!n.get&&!n.set&&n.configurable&&n.writable&&"__proto__"!==t?e[t]=n.value:Object.defineProperty(e,t,n)}function Nt(e){if("object"!=typeof e)return e;var t,n,r,i=0,o=Object.prototype.toString.call(e);if("[object Object]"===o?r=Object.create(e.__proto__||null):"[object Array]"===o?r=Array(e.length):"[object Set]"===o?(r=new Set,e.forEach((function(e){r.add(Nt(e))}))):"[object Map]"===o?(r=new Map,e.forEach((function(e,t){r.set(Nt(t),Nt(e))}))):"[object Date]"===o?r=new Date(+e):"[object RegExp]"===o?r=new RegExp(e.source,e.flags):"[object DataView]"===o?r=new e.constructor(Nt(e.buffer)):"[object ArrayBuffer]"===o?r=e.slice(0):"Array]"===o.slice(-6)&&(r=new e.constructor(e)),r){for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)At(r,n[i],Object.getOwnPropertyDescriptor(e,n[i]));for(i=0,n=Object.getOwnPropertyNames(e);i<n.length;i++)Object.hasOwnProperty.call(r,t=n[i])&&r[t]===e[t]||At(r,t,Object.getOwnPropertyDescriptor(e,t))}return r||e}function It(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Ft(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ft(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function Ft(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}c.a.use(Ct);var Mt=function(){var e=Object(r.a)(regeneratorRuntime.mark((function e(t){var n,o,l,f,h,d,m,v,y,_,w,x,O,k,j,$,C,S,P,L,R,T,D,A,N,I,F,U,z,V,X,G,K,J,Y,ae,ie,ce;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.app,o=t.route,l=t.store,f=t.req,t.res,h=t.redirect,H.vuex&&l&&fe(l,H.vuex,H.localeCodes),d=H.lazy,d&&(!0===d||!0!==d.skipNuxtState),e.next=9;break;case 7:m=e.sent.default,t.beforeNuxtRender((function(e){var t=e.nuxtState,r={},o=n.i18n,c=o.fallbackLocale,l=o.locale;if(l&&l!==c){var f=n.i18n._getMessages()[l];if(f)try{m(f),r[l]=f}catch(e){}}t.__i18n={langs:r}}));case 9:if(v=H.detectBrowserLanguage,y=v.alwaysRedirect,_=v.fallbackLocale,w=v.onlyOnNoPrefix,x=v.onlyOnRoot,O=v.useCookie,k=v.cookieKey,j=v.cookieDomain,$=v.cookieSecure,C=v.cookieCrossOrigin,S=function(){var e=Object(r.a)(regeneratorRuntime.mark((function e(r){var o,f,d,m,v,y,_,w,x,k,j,$,C,S,P,R,T,D,A=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=A.length>1&&void 0!==A[1]?A[1]:{},f=o.initialSetup,d=void 0!==f&&f,r){e.next=3;break}return e.abrupt("return");case 3:if(d||!n.i18n.differentDomains){e.next=5;break}return e.abrupt("return");case 5:if(m=n.i18n.locale,r!==m){e.next=8;break}return e.abrupt("return");case 8:if(!(v=n.i18n.onBeforeLanguageSwitch(m,r,d,t))||!n.i18n.localeCodes.includes(v)){e.next=13;break}if(v!==m){e.next=12;break}return e.abrupt("return");case 12:r=v;case 13:if(d||n.i18n.beforeLanguageSwitch(m,r),O&&n.i18n.setLocaleCookie(r),!H.langDir){e.next=29;break}if(y=n.i18n.fallbackLocale,!H.lazy){e.next=27;break}if(!y){e.next=23;break}return _=[],Array.isArray(y)?_=y.map((function(e){return se(t,e)})):"object"===Object(M.a)(y)?(y[r]&&(_=_.concat(y[r].map((function(e){return se(t,e)})))),y.default&&(_=_.concat(y.default.map((function(e){return se(t,e)}))))):r!==y&&_.push(se(t,y)),e.next=23,Promise.all(_);case 23:return e.next=25,se(t,r);case 25:e.next=29;break;case 27:return e.next=29,Promise.all(H.localeCodes.map((function(e){return se(t,e)})));case 29:for(n.i18n.locale=r,w=H.normalizedLocales.find((function(e){return e.code===r}))||{code:r},x=0,k=Object.keys(n.i18n.localeProperties);x<k.length;x++)j=k[x],n.i18n.localeProperties[j]=void 0;for($=0,C=Object.entries(w);$<C.length;$++)S=Object(E.a)(C[$],2),P=S[0],R=S[1],c.a.set(n.i18n.localeProperties,P,Nt(R));if(!H.vuex){e.next=36;break}return e.next=36,pe(l,r,n.i18n.getLocaleMessage(r),H.vuex);case 36:T=t.route,D=L(T,r),d?n.i18n.__redirect=D:(n.i18n.onLanguageSwitched(m,r),D&&h(D));case 39:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),P=te(H.localeCodes,{routesNameSeparator:H.routesNameSeparator,defaultLocaleRouteNameSuffix:H.defaultLocaleRouteNameSuffix}),L=function(e,t){if(!t||n.i18n.differentDomains||H.strategy===B.STRATEGIES.NO_PREFIX)return"";if(P(e)===t&&(!x&&!w||t!==H.defaultLocale||H.strategy!==B.STRATEGIES.PREFIX_AND_DEFAULT))return"";var r=n.switchLocalePath(t);return r||(r=n.localePath(e.fullPath,t)),!r||r===e.fullPath||r.startsWith("//")?"":r},R=function(){var e=Object(r.a)(regeneratorRuntime.mark((function e(r){var o,path,c,l,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("/"!==r.path||!H.rootRedirect){e.next=5;break}return o=302,path=H.rootRedirect,"string"!=typeof H.rootRedirect&&(o=H.rootRedirect.statusCode,path=H.rootRedirect.path),e.abrupt("return",[o,"/".concat(path),!0]);case 5:if(!(c=n.i18n.__redirect)){e.next=9;break}return n.i18n.__redirect=null,e.abrupt("return",[302,c]);case 9:if(l={differentDomains:H.differentDomains,normalizedLocales:H.normalizedLocales},n.i18n.__baseUrl=ue(H.baseUrl,t,n.i18n.locale,l),f=H.detectBrowserLanguage&&N(r)||P(r)||n.i18n.locale||n.i18n.defaultLocale||"",!H.skipSettingLocaleOnNavigate){e.next=17;break}n.i18n.__pendingLocale=f,n.i18n.__pendingLocalePromise=new Promise((function(e){n.i18n.__resolvePendingLocalePromise=e})),e.next=19;break;case 17:return e.next=19,n.i18n.setLocale(f);case 19:return e.abrupt("return",[null,null]);case 20:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),T=function(){var e=Object(r.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.i18n.__pendingLocale){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,n.i18n.setLocale(n.i18n.__pendingLocale);case 4:n.i18n.__resolvePendingLocalePromise(""),n.i18n.__pendingLocale=null;case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),D=function(){var e=Object(r.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.i18n.__pendingLocale){e.next=3;break}return e.next=3,n.i18n.__pendingLocalePromise;case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),A=function(){return"undefined"!=typeof navigator&&navigator.languages?Q(H.normalizedLocales,navigator.languages):f&&void 0!==f.headers["accept-language"]?Q(H.normalizedLocales,f.headers["accept-language"].split(",").map((function(e){return e.split(";")[0]}))):void 0},N=function(e){if(H.strategy!==B.STRATEGIES.NO_PREFIX)if(x){if("/"!==e.path)return""}else if(w&&!y&&e.path.match(ee(H.localeCodes)))return"";var t;O&&(t=n.i18n.getLocaleCookie())||(t=A());var r=t||_;return!r||O&&!y&&n.i18n.getLocaleCookie()||r===n.i18n.locale?"":r},I=function(e){e.locales=Nt(H.locales),e.localeCodes=Nt(H.localeCodes),e.localeProperties=c.a.observable(Nt(H.normalizedLocales.find((function(t){return t.code===e.locale}))||{code:e.locale})),e.defaultLocale=H.defaultLocale,e.differentDomains=H.differentDomains,e.beforeLanguageSwitch=H.beforeLanguageSwitch,e.onBeforeLanguageSwitch=H.onBeforeLanguageSwitch,e.onLanguageSwitched=H.onLanguageSwitched,e.setLocaleCookie=function(e){return re(e,0,{useCookie:O,cookieDomain:j,cookieKey:k,cookieSecure:$,cookieCrossOrigin:C})},e.getLocaleCookie=function(){return ne(0,{useCookie:O,cookieKey:k,localeCodes:H.localeCodes})},e.setLocale=function(e){return S(e)},e.getBrowserLocale=function(){return A()},e.finalizePendingLocaleChange=T,e.waitForPendingLocaleChange=D,e.__baseUrl=n.i18n.__baseUrl,e.__pendingLocale=n.i18n.__pendingLocale,e.__pendingLocalePromise=n.i18n.__pendingLocalePromise,e.__resolvePendingLocalePromise=n.i18n.__resolvePendingLocalePromise},"function"!=typeof H.vueI18n){e.next=25;break}return e.next=22,H.vueI18n(t);case 22:e.t0=e.sent,e.next=26;break;case 25:e.t0=Nt(H.vueI18n);case 26:if((F=e.t0).componentInstanceCreatedListener=I,n.i18n=t.i18n=new Ct(F),n.i18n.locale="",n.i18n.fallbackLocale=F.fallbackLocale||"",I(n.i18n),U={differentDomains:H.differentDomains,normalizedLocales:H.normalizedLocales},n.i18n.__baseUrl=ue(H.baseUrl,t,"",U),n.i18n.__onNavigate=R,c.a.prototype.$nuxtI18nSeo=Dt,c.a.prototype.$nuxtI18nHead=Tt,!l){e.next=58;break}if(l.$i18n=n.i18n,!l.state.localeDomains){e.next=58;break}z=It(n.i18n.locales),e.prev=41,z.s();case 43:if((V=z.n()).done){e.next=50;break}if("string"!=typeof(X=V.value)){e.next=47;break}return e.abrupt("continue",48);case 47:X.domain=l.state.localeDomains[X.code];case 48:e.next=43;break;case 50:e.next=55;break;case 52:e.prev=52,e.t1=e.catch(41),z.e(e.t1);case 55:return e.prev=55,z.f(),e.finish(55);case 58:return(G=H.detectBrowserLanguage?N(o):"")||((K=H.vuex)&&K.syncLocale&&l&&""!==l.state[K.moduleName].locale?G=l.state[K.moduleName].locale:n.i18n.differentDomains?(J=Z(H.normalizedLocales),G=J):H.strategy!==B.STRATEGIES.NO_PREFIX&&(Y=P(o),G=Y)),!G&&O&&(G=n.i18n.getLocaleCookie()),G||(G=n.i18n.defaultLocale||""),e.next=64,S(G,{initialSetup:!0});case 64:if(!W){e.next=72;break}return e.next=67,R(t.route);case 67:ae=e.sent,ie=Object(E.a)(ae,2),ie[0],(ce=ie[1])&&location.assign(Object(oe.joinURL)(t.base,ce));case 72:case"end":return e.stop()}}),e,null,[[41,52,55,58]])})));return function(t){return e.apply(this,arguments)}}(),Ut=n(75),Bt=n.n(Ut),qt=n(178),Wt=n.n(qt);function zt(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function Ht(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?zt(Object(source),!0).forEach((function(t){Object(o.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):zt(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}function Vt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Xt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xt(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function Xt(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}for(var Gt={setBaseURL:function(e){this.defaults.baseURL=e},setHeader:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",o=Vt(Array.isArray(r)?r:[r]);try{for(o.s();!(n=o.n()).done;){var c=n.value;t?this.defaults.headers[c][e]=t:delete this.defaults.headers[c][e]}}catch(e){o.e(e)}finally{o.f()}},setToken:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",r=e?(t?t+" ":"")+e:null;this.setHeader("Authorization",r,n)},onRequest:function(e){this.interceptors.request.use((function(t){return e(t)||t}))},onResponse:function(e){this.interceptors.response.use((function(t){return e(t)||t}))},onRequestError:function(e){this.interceptors.request.use(void 0,(function(t){return e(t)||Promise.reject(t)}))},onResponseError:function(e){this.interceptors.response.use(void 0,(function(t){return e(t)||Promise.reject(t)}))},onError:function(e){this.onRequestError(e),this.onResponseError(e)},create:function(e){return Qt(Wt()(e,this.defaults))}},Kt=function(){var e=Yt[Jt];Gt["$"+e]=function(){return this[e].apply(this,arguments).then((function(e){return e&&e.data}))}},Jt=0,Yt=["request","delete","get","head","options","post","put","patch"];Jt<Yt.length;Jt++)Kt();var Qt=function(e){var t=Bt.a.create(e);return t.CancelToken=Bt.a.CancelToken,t.isCancel=Bt.a.isCancel,function(e){for(var t in Gt)e[t]=Gt[t].bind(e)}(t),t.onRequest((function(e){e.headers=Ht(Ht({},t.defaults.headers.common),e.headers)})),Zt(t),t},Zt=function(e){var t={finish:function(){},start:function(){},fail:function(){},set:function(){}},n=function(){var e="undefined"!=typeof window&&window.$nuxt;return e&&e.$loading&&e.$loading.set?e.$loading:t},r=0;e.onRequest((function(e){e&&!1===e.progress||r++})),e.onResponse((function(e){e&&e.config&&!1===e.config.progress||--r<=0&&(r=0,n().finish())})),e.onError((function(e){e&&e.config&&!1===e.config.progress||(r--,Bt.a.isCancel(e)?r<=0&&(r=0,n().finish()):(n().fail(),n().finish()))}));var o=function(e){if(r&&e.total){var progress=100*e.loaded/(e.total*r);n().set(Math.min(100,progress))}};e.defaults.onUploadProgress=o,e.defaults.onDownloadProgress=o},en=function(e,t){var n=e.$config&&e.$config.axios||{},r=n.browserBaseURL||n.browserBaseUrl||n.baseURL||n.baseUrl||"http://localhost:3000/";var o=Qt({baseURL:r,headers:{common:{Accept:"application/json, text/plain, */*"},delete:{},get:{},head:{},post:{},put:{},patch:{}}});e.$axios=o,t("axios",o)};function tn(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function nn(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?tn(Object(source),!0).forEach((function(t){Object(o.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):tn(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}c.a.component(h.a.name,h.a),c.a.component(m.a.name,nn(nn({},m.a),{},{render:function(e,t){return m.a._warned||(m.a._warned=!0,console.warn("<no-ssr> has been deprecated and will be removed in Nuxt 3, please use <client-only> instead")),m.a.render(e,t)}})),c.a.component($.name,$),c.a.component("NChild",$),c.a.component(T.name,T),Object.defineProperty(c.a.prototype,"$nuxt",{get:function(){var e=this.$root.$options.$nuxt;return e||"undefined"==typeof window?e:window.$nuxt},configurable:!0}),c.a.use(l.a,{keyName:"head",attribute:"data-n-head",ssrAttribute:"data-n-head-ssr",tagIDKeyName:"hid"});var rn={name:"page",mode:"out-in",appear:!0,appearClass:"appear",appearActiveClass:"appear-active",appearToClass:"appear-to"};function on(e){return an.apply(this,arguments)}function an(){return an=Object(r.a)(regeneratorRuntime.mark((function e(t){var n,o,l,f,h,path,d,m=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return d=function(e,t){if(!e)throw new Error("inject(key, value) has no key provided");if(void 0===t)throw new Error("inject('".concat(e,"', value) has no value provided"));l[e="$"+e]=t,l.context[e]||(l.context[e]=t);var n="__nuxt_"+e+"_installed__";c.a[n]||(c.a[n]=!0,c.a.use((function(){Object.prototype.hasOwnProperty.call(c.a.prototype,e)||Object.defineProperty(c.a.prototype,e,{get:function(){return this.$root.$options[e]}})})))},n=m.length>1&&void 0!==m[1]?m[1]:{},e.next=4,j(0,n);case 4:return o=e.sent,l=nn({head:{title:"TON Bridge",htmlAttrs:{lang:"en",translate:"no"},meta:[{charset:"utf-8"},{name:"viewport",content:" width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui, viewport-fit=cover"},{hid:"description",name:"description",content:"TON Bridge"},{hid:"google",name:"google",content:"notranslate"},{name:"format-detection",content:"telephone=no"}],link:[{rel:"icon",type:"image/x-icon",href:"/favicon.ico"}],style:[],script:[]},router:o,nuxt:{defaultTransition:rn,transitions:[rn],setTransitions:function(e){return Array.isArray(e)||(e=[e]),e=e.map((function(e){return e=e?"string"==typeof e?Object.assign({},rn,{name:e}):Object.assign({},rn,e):rn})),this.$options.nuxt.transitions=e,e},err:null,dateErr:null,error:function(e){e=e||null,l.context._errored=Boolean(e),e=e?Object(_.p)(e):null;var n=l.nuxt;return this&&(n=this.nuxt||this.$options.nuxt),n.dateErr=Date.now(),n.err=e,t&&(t.nuxt.error=e),e}}},F),f=t?t.next:function(e){return l.router.push(e)},t?h=o.resolve(t.url).route:(path=Object(_.f)(o.options.base,o.options.mode),h=o.resolve(path).route),e.next=10,Object(_.t)(l,{route:h,next:f,error:l.nuxt.error.bind(l),payload:t?t.payload:void 0,req:t?t.req:void 0,res:t?t.res:void 0,beforeRenderFns:t?t.beforeRenderFns:void 0,ssrContext:t});case 10:d("config",n),l.context.enablePreview=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l.previewData=Object.assign({},e),d("preview",e)},e.next=15;break;case 15:return e.next=18,Le(l.context);case 18:if("function"!=typeof Mt){e.next=21;break}return e.next=21,Mt(l.context,d);case 21:return e.next=24,en(l.context,d);case 24:return l.context.enablePreview=function(){console.warn("You cannot call enablePreview() outside a plugin.")},e.next=27,new Promise((function(e,t){var n=o.resolve(l.context.route.fullPath).route;if(!n.matched.length)return e();o.replace(n,e,(function(n){if(!n._isRouter)return t(n);if(2!==n.type)return e();var c=o.afterEach(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(n,r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,Object(_.j)(n);case 3:l.context.route=t.sent,l.context.params=n.params||{},l.context.query=n.query||{},c(),e();case 8:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}())}))}));case 27:return e.abrupt("return",{app:l,router:o});case 28:case"end":return e.stop()}}),e)}))),an.apply(this,arguments)}},62:function(e,t,n){"use strict";var r={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(e,t){var n=t.parent,r=t.slots,o=t.props,c=r(),l=c.default;void 0===l&&(l=[]);var f=c.placeholder;return n._isMounted?l:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||f)?e(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||f):l.length>0?l.map((function(){return e(!1)})):e(!1))}};e.exports=r},72:function(e,t,n){"use strict";t.a={}},95:function(e,t,n){"use strict";n(106),n(10),n(31),n(50),n(52),n(42),n(33),n(32),n(29),n(39),n(34),n(18),n(20),n(40),n(41),n(35);var r=n(0);function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,l=!0,f=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){f=!0,o=e},f:function(){try{l||null==n.return||n.return()}finally{if(f)throw o}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var l=window.requestIdleCallback||function(e){var t=Date.now();return setTimeout((function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})}),1)},f=window.cancelIdleCallback||function(e){clearTimeout(e)},h=window.IntersectionObserver&&new window.IntersectionObserver((function(e){e.forEach((function(e){var t=e.intersectionRatio,link=e.target;t<=0||!link.__prefetch||link.__prefetch()}))}));t.a={name:"NuxtLink",extends:r.a.component("RouterLink"),props:{prefetch:{type:Boolean,default:!0},noPrefetch:{type:Boolean,default:!1}},mounted:function(){this.prefetch&&!this.noPrefetch&&(this.handleId=l(this.observe,{timeout:2e3}))},beforeDestroy:function(){f(this.handleId),this.__observed&&(h.unobserve(this.$el),delete this.$el.__prefetch)},methods:{observe:function(){h&&this.shouldPrefetch()&&(this.$el.__prefetch=this.prefetchLink.bind(this),h.observe(this.$el),this.__observed=!0)},shouldPrefetch:function(){return this.getPrefetchComponents().length>0},canPrefetch:function(){var e=navigator.connection;return!(this.$nuxt.isOffline||e&&((e.effectiveType||"").includes("2g")||e.saveData))},getPrefetchComponents:function(){return this.$router.resolve(this.to,this.$route,this.append).resolved.matched.map((function(e){return e.components.default})).filter((function(e){return"function"==typeof e&&!e.options&&!e.__prefetched}))},prefetchLink:function(){if(this.canPrefetch()){h.unobserve(this.$el);var e,t=o(this.getPrefetchComponents());try{for(t.s();!(e=t.n()).done;){var n=e.value,r=n();r instanceof Promise&&r.catch((function(){})),n.__prefetched=!0}}catch(e){t.e(e)}finally{t.f()}}}}}},99:function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var content=function(e,t){var content=e[1]||"",n=e[3];if(!n)return content;if(t&&"function"==typeof btoa){var r=(c=n,l=btoa(unescape(encodeURIComponent(JSON.stringify(c)))),data="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l),"/*# ".concat(data," */")),o=n.sources.map((function(source){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(source," */")}));return[content].concat(o).concat([r]).join("\n")}var c,l,data;return[content].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(content,"}"):content})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var c=this[i][0];null!=c&&(o[c]=!0)}for(var l=0;l<e.length;l++){var f=[].concat(e[l]);r&&o[f[0]]||(n&&(f[2]?f[2]="".concat(n," and ").concat(f[2]):f[2]=n),t.push(f))}},t}}}]);
|
Binary file
|
Binary file
|
@@ -0,0 +1,98 @@
|
|
1
|
+
/*!
|
2
|
+
* Vue.js v2.7.14
|
3
|
+
* (c) 2014-2022 Evan You
|
4
|
+
* Released under the MIT License.
|
5
|
+
*/
|
6
|
+
|
7
|
+
/*!
|
8
|
+
* cookie
|
9
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
10
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
11
|
+
* MIT Licensed
|
12
|
+
*/
|
13
|
+
|
14
|
+
|
15
|
+
/*!
|
16
|
+
* vue-client-only v0.0.0-semantic-release
|
17
|
+
* (c) 2021-present egoist <0x142857@gmail.com>
|
18
|
+
* Released under the MIT License.
|
19
|
+
*/
|
20
|
+
|
21
|
+
/*!
|
22
|
+
* vue-no-ssr v1.1.1
|
23
|
+
* (c) 2018-present egoist <0x142857@gmail.com>
|
24
|
+
* Released under the MIT License.
|
25
|
+
*/
|
26
|
+
|
27
|
+
|
28
|
+
/*
|
29
|
+
object-assign
|
30
|
+
(c) Sindre Sorhus
|
31
|
+
@license MIT
|
32
|
+
*/
|
33
|
+
|
34
|
+
/*!
|
35
|
+
* @overview es6-promise - a tiny implementation of Promises/A+.
|
36
|
+
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
|
37
|
+
* @license Licensed under MIT license
|
38
|
+
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
|
39
|
+
* @version v4.2.8+1e68dce6
|
40
|
+
*/
|
41
|
+
|
42
|
+
/*!
|
43
|
+
* The buffer module from node.js, for the browser.
|
44
|
+
*
|
45
|
+
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
46
|
+
* @license MIT
|
47
|
+
*/
|
48
|
+
|
49
|
+
/*!
|
50
|
+
* The buffer module from node.js, for the browser.
|
51
|
+
*
|
52
|
+
* @author Feross Aboukhadijeh <http://feross.org>
|
53
|
+
* @license MIT
|
54
|
+
*/
|
55
|
+
|
56
|
+
/*!
|
57
|
+
* v2.1.4-104-gc868b3a
|
58
|
+
*
|
59
|
+
*/
|
60
|
+
|
61
|
+
/*! *****************************************************************************
|
62
|
+
Copyright (c) Microsoft Corporation.
|
63
|
+
|
64
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
65
|
+
purpose with or without fee is hereby granted.
|
66
|
+
|
67
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
68
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
69
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
70
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
71
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
72
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
73
|
+
PERFORMANCE OF THIS SOFTWARE.
|
74
|
+
***************************************************************************** */
|
75
|
+
|
76
|
+
/*! https://mths.be/utf8js v3.0.0 by @mathias */
|
77
|
+
|
78
|
+
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
79
|
+
|
80
|
+
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
81
|
+
|
82
|
+
/**
|
83
|
+
* [js-sha3]{@link https://github.com/emn178/js-sha3}
|
84
|
+
*
|
85
|
+
* @version 0.5.7
|
86
|
+
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
87
|
+
* @copyright Chen, Yi-Cyuan 2015-2016
|
88
|
+
* @license MIT
|
89
|
+
*/
|
90
|
+
|
91
|
+
/**
|
92
|
+
* [js-sha3]{@link https://github.com/emn178/js-sha3}
|
93
|
+
*
|
94
|
+
* @version 0.8.0
|
95
|
+
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
96
|
+
* @copyright Chen, Yi-Cyuan 2015-2018
|
97
|
+
* @license MIT
|
98
|
+
*/
|
@@ -0,0 +1 @@
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{342:function(e,t,n){var content=n(485);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,n(100).default)("67efbfb4",content,!0,{sourceMap:!1})},344:function(e,t,n){var content=n(488);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,n(100).default)("1ff9af16",content,!0,{sourceMap:!1})},358:function(e,t){},360:function(e,t){},367:function(e,t){},373:function(e,t){},469:function(e){e.exports=JSON.parse('[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"address[]","name":"initialSet","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"int256","name":"oracleSetHash","type":"int256"},{"indexed":false,"internalType":"address[]","name":"newOracles","type":"address[]"}],"name":"NewOracleSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"int8","name":"to_wc","type":"int8"},{"indexed":true,"internalType":"bytes32","name":"to_addr_hash","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"SwapEthToTon","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"int8","name":"workchain","type":"int8"},{"indexed":true,"internalType":"bytes32","name":"ton_address_hash","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"ton_tx_hash","type":"bytes32"},{"indexed":false,"internalType":"uint64","name":"lt","type":"uint64"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"SwapTonToEth","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"allowBurn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"components":[{"internalType":"int8","name":"workchain","type":"int8"},{"internalType":"bytes32","name":"address_hash","type":"bytes32"}],"internalType":"struct TonUtils.TonAddress","name":"addr","type":"tuple"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"components":[{"internalType":"int8","name":"workchain","type":"int8"},{"internalType":"bytes32","name":"address_hash","type":"bytes32"}],"internalType":"struct TonUtils.TonAddress","name":"addr","type":"tuple"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"digest","type":"bytes32"},{"components":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct TonUtils.Signature","name":"sig","type":"tuple"}],"name":"checkSignature","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"finishedVotings","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFullOracleSet","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"newBurnStatus","type":"bool"},{"internalType":"int256","name":"nonce","type":"int256"}],"name":"getNewBurnStatusId","outputs":[{"internalType":"bytes32","name":"result","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"int256","name":"oracleSetHash","type":"int256"},{"internalType":"address[]","name":"set","type":"address[]"}],"name":"getNewSetId","outputs":[{"internalType":"bytes32","name":"result","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint64","name":"amount","type":"uint64"},{"components":[{"components":[{"internalType":"int8","name":"workchain","type":"int8"},{"internalType":"bytes32","name":"address_hash","type":"bytes32"}],"internalType":"struct TonUtils.TonAddress","name":"address_","type":"tuple"},{"internalType":"bytes32","name":"tx_hash","type":"bytes32"},{"internalType":"uint64","name":"lt","type":"uint64"}],"internalType":"struct TonUtils.TonTxID","name":"tx","type":"tuple"}],"internalType":"struct TonUtils.SwapData","name":"data","type":"tuple"}],"name":"getSwapDataId","outputs":[{"internalType":"bytes32","name":"result","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isOracle","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"oraclesSet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"receivedVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"},{"internalType":"address","name":"","type":"address"}],"name":"unfinishedVotings","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint64","name":"amount","type":"uint64"},{"components":[{"components":[{"internalType":"int8","name":"workchain","type":"int8"},{"internalType":"bytes32","name":"address_hash","type":"bytes32"}],"internalType":"struct TonUtils.TonAddress","name":"address_","type":"tuple"},{"internalType":"bytes32","name":"tx_hash","type":"bytes32"},{"internalType":"uint64","name":"lt","type":"uint64"}],"internalType":"struct TonUtils.TonTxID","name":"tx","type":"tuple"}],"internalType":"struct TonUtils.SwapData","name":"data","type":"tuple"},{"components":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct TonUtils.Signature[]","name":"signatures","type":"tuple[]"}],"name":"voteForMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int256","name":"oracleSetHash","type":"int256"},{"internalType":"address[]","name":"newOracles","type":"address[]"},{"components":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct TonUtils.Signature[]","name":"signatures","type":"tuple[]"}],"name":"voteForNewOracleSet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newBurnStatus","type":"bool"},{"internalType":"int256","name":"nonce","type":"int256"},{"components":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct TonUtils.Signature[]","name":"signatures","type":"tuple[]"}],"name":"voteForSwitchBurn","outputs":[],"stateMutability":"nonpayable","type":"function"}]')},471:function(e,t){},484:function(e,t,n){"use strict";n(342)},485:function(e,t,n){var r=n(99),o=n(343),c=n(486),d=r(!1),l=o(c);d.push([e.i,".BridgeProcessor-transfer[data-v-d938b934],\n.BridgeProcessor-getTonCoin[data-v-d938b934],\n.BridgeProcessor-done[data-v-d938b934],\n.BridgeProcessor-cancel[data-v-d938b934] {\n -webkit-appearance: none;\n background-color: #1d98dc;\n border-radius: 25px;\n color: white;\n font-size: 16px;\n line-height: 19px;\n border: none;\n padding: 15px 35px 14px;\n margin-top: 20px;\n}\n.isPointer .BridgeProcessor-transfer[data-v-d938b934]:hover,\n.isPointer .BridgeProcessor-getTonCoin[data-v-d938b934]:hover,\n.isPointer .BridgeProcessor-done[data-v-d938b934]:hover,\n.isPointer .BridgeProcessor-cancel[data-v-d938b934]:hover,\n.isTouch .BridgeProcessor-transfer[data-v-d938b934]:active,\n.isTouch .BridgeProcessor-getTonCoin[data-v-d938b934]:active,\n.isTouch .BridgeProcessor-done[data-v-d938b934]:active,\n.isTouch .BridgeProcessor-cancel[data-v-d938b934]:active {\n background-color: #5fb8ea;\n}\n.BridgeProcessor-infoWrapper[data-v-d938b934] {\n text-align: left;\n width: fit-content;\n font-size: 18px;\n}\n@media (max-width: 800px) {\n.BridgeProcessor-infoWrapper[data-v-d938b934] {\n font-size: 16px;\n}\n}\n.BridgeProcessor-infoLine[data-v-d938b934] {\n margin-top: 20px;\n display: flex;\n align-items: center;\n}\n.BridgeProcessor-info-icon[data-v-d938b934] {\n flex-shrink: 0;\n}\n.BridgeProcessor-info-icon.done[data-v-d938b934] {\n width: 18px;\n height: 18px;\n background-image: url("+l+");\n background-size: contain;\n background-repeat: no-repeat;\n background-position: center;\n margin-right: 10px;\n}\n.BridgeProcessor-info-icon.pending[data-v-d938b934] {\n width: 12px;\n height: 12px;\n border: 3px solid #1d98dc;\n border-left: 3px solid transparent;\n border-radius: 50%;\n animation: rotating-d938b934 2s linear infinite;\n margin-right: 13px;\n margin-left: 3px;\n}\n.BridgeProcessor-info-icon.none[data-v-d938b934] {\n width: 8px;\n height: 8px;\n margin-left: 4px;\n margin-right: 14px;\n background-color: #1d98dc;\n border-radius: 50%;\n}\n.BridgeProcessor-info-text a[data-v-d938b934] {\n color: #1d98dc;\n text-decoration: underline;\n}\n.isPointer .BridgeProcessor-info-text a[data-v-d938b934]:hover,\n.isTouch .BridgeProcessor-info-text a[data-v-d938b934]:active {\n text-decoration: none;\n}\n.BridgeProcessor-info-text .note[data-v-d938b934] {\n margin-top: 8px;\n}\n@keyframes rotating-d938b934 {\nfrom {\n -ms-transform: rotate(0deg);\n -moz-transform: rotate(0deg);\n -webkit-transform: rotate(0deg);\n -o-transform: rotate(0deg);\n transform: rotate(0deg);\n}\nto {\n -ms-transform: rotate(360deg);\n -moz-transform: rotate(360deg);\n -webkit-transform: rotate(360deg);\n -o-transform: rotate(360deg);\n transform: rotate(360deg);\n}\n}\n",""]),e.exports=d},486:function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiCgkgdmlld0JveD0iMCAwIDUxMiA1MTIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDUxMiA1MTI7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPGVsbGlwc2Ugc3R5bGU9ImZpbGw6IzNCQjU0QTsiIGN4PSIyNTYiIGN5PSIyNTYiIHJ4PSIyNTYiIHJ5PSIyNTUuODMyIi8+Cjxwb2x5Z29uIHN0eWxlPSJmaWxsOiNGRkZGRkY7IiBwb2ludHM9IjIzNS40NzIsMzkyLjA4IDExNC40MzIsMjk3Ljc4NCAxNDguODQ4LDI1My42MTYgMjIzLjE3NiwzMTEuNTIgMzQ1Ljg0OCwxMzQuNTA0IAoJMzkxLjg4LDE2Ni4zOTIgIi8+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+CjxnPgo8L2c+Cjwvc3ZnPgo="},487:function(e,t,n){"use strict";n(344)},488:function(e,t,n){var r=n(99),o=n(343),c=n(489),d=n(490),l=n(491),m=r(!1),h=o(c),y=o(d),f=o(l);m.push([e.i,".Bridge-testnetWarning[data-v-665c40c6] {\n position: absolute;\n left: 0;\n top: 0;\n color: white;\n width: 100%;\n padding: 8px 0;\n text-align: center;\n background: red;\n font-weight: bold;\n}\n.Bridge-content[data-v-665c40c6] {\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 100px 40px 10px;\n}\n@media (max-width: 800px) {\n.Bridge-content[data-v-665c40c6] {\n padding: 48px 16px 10px;\n}\n}\n.Bridge-img[data-v-665c40c6] {\n background-image: url("+h+");\n background-size: contain;\n background-repeat: no-repeat;\n background-position: center;\n max-width: 450px;\n width: 100%;\n height: 450px;\n transition: transform 0.15s ease-out;\n transform: scale(-1, 1);\n}\n@media (max-width: 800px) {\n.Bridge-img[data-v-665c40c6] {\n height: 300px;\n}\n}\n.Bridge-img.isFromTon[data-v-665c40c6] {\n transform: none;\n}\n.Bridge-form[data-v-665c40c6] {\n text-align: center;\n display: flex;\n flex-direction: column;\n align-items: center;\n max-width: 500px;\n width: 100%;\n}\n.Bridge-switchers[data-v-665c40c6] {\n width: 100%;\n display: flex;\n flex-direction: row-reverse;\n align-items: center;\n margin-bottom: 40px;\n}\n.Bridge-switchers.isFromTon[data-v-665c40c6] {\n flex-direction: row;\n}\n.Bridge-switcher[data-v-665c40c6] {\n position: relative;\n flex: 1 0;\n}\n.Bridge-switcherTitle[data-v-665c40c6] {\n position: relative;\n font-size: 36px;\n font-weight: bold;\n cursor: pointer;\n white-space: nowrap;\n}\n@media (max-width: 800px) {\n.Bridge-switcherTitle[data-v-665c40c6] {\n font-size: 22px;\n}\n}\n.Bridge-switcherTitle.disabled[data-v-665c40c6] {\n cursor: default;\n pointer-events: none;\n}\n.Bridge-switcherTitle span[data-v-665c40c6] {\n white-space: normal;\n}\n.Bridge-switcherTitle em[data-v-665c40c6] {\n display: inline-block;\n vertical-align: 5px;\n width: 0;\n height: 0;\n border-style: solid;\n border-width: 10px 5px 0 5px;\n border-color: #000 transparent transparent transparent;\n}\n.Bridge-switcherTitle:hover .Bridge-switcherList[data-v-665c40c6] {\n transition: opacity 0.15s ease-in-out;\n opacity: 1;\n visibility: inherit;\n}\n.Bridge-switcherAnno[data-v-665c40c6] {\n margin-top: 4px;\n height: 20px;\n}\n.Bridge-switcherAnno a[data-v-665c40c6] {\n display: inline-block;\n color: #000;\n border-bottom: 1px dotted #AAA;\n}\n.isPointer .Bridge-switcherAnno a[data-v-665c40c6]:hover,\n.isTouch .Bridge-switcherAnno a[data-v-665c40c6]:active {\n border-bottom: 1px dotted transparent;\n}\n.Bridge-switcherAnno a[data-v-665c40c6]:after {\n content: '';\n display: inline-block;\n height: 16px;\n width: 16px;\n background-image: url("+y+");\n background-repeat: no-repeat;\n background-size: contain;\n background-position: 0 3px;\n}\n@media (max-width: 800px) {\n.Bridge-switcherAnno a[data-v-665c40c6]:after {\n display: none;\n}\n}\n@media (max-width: 800px) {\n.Bridge-switcherAnno[data-v-665c40c6] {\n font-size: 12px;\n}\n}\n.Bridge-switcherList[data-v-665c40c6] {\n background: #FFF;\n border-radius: 16px;\n box-shadow: 0px 8px 24px rgba(48, 55, 87, 0.12);\n box-sizing: border-box;\n color: #303757;\n font-size: 16px;\n left: -16px;\n line-height: 20px;\n list-style-type: none;\n margin: 0;\n padding: 12px 24px;\n position: absolute;\n right: -16px;\n top: 100%;\n word-break: break-word;\n white-space: normal;\n transition: all 0 ease-in-out;\n opacity: 0;\n visibility: hidden;\n}\n.Bridge-switcherList[data-v-665c40c6]:before {\n content: '';\n position: absolute;\n top: -20px;\n width: 100%;\n left: 0;\n height: 20px;\n}\n.Bridge-switcherList li button[data-v-665c40c6] {\n padding: 10px 0;\n color: #303757;\n font-weight: 700;\n cursor: pointer;\n}\n.isPointer .Bridge-switcherList li button[data-v-665c40c6]:hover,\n.isTouch .Bridge-switcherList li button[data-v-665c40c6]:active {\n color: #1d98dc;\n}\n.Bridge-switcher-arrow[data-v-665c40c6] {\n cursor: pointer;\n background-image: url("+f+");\n background-size: contain;\n background-repeat: no-repeat;\n background-position: center;\n width: 32px;\n height: 32px;\n margin-left: 16px;\n margin-right: 16px;\n}\n.Bridge-switcher-arrow[disabled][data-v-665c40c6] {\n cursor: default;\n}\n.Bridge-inputWrapper[data-v-665c40c6] {\n width: 100%;\n}\n.Bridge-inputWrapper input[data-v-665c40c6] {\n line-height: 36px;\n width: 100%;\n max-width: 500px;\n padding: 8px;\n font-size: 18px;\n border: 1px solid #ccc;\n border-radius: 8px;\n margin-top: 8px;\n margin-bottom: 20px;\n -webkit-appearance: none;\n}\n.Bridge-inputWrapper input[disabled][data-v-665c40c6] {\n color: gray;\n}\n.Bridge-pairFee[data-v-665c40c6] {\n color: #666666;\n margin-bottom: 4px;\n}\n.Bridge-bridgeFee[data-v-665c40c6] {\n color: #666666;\n margin-bottom: 10px;\n}\n.Bridge-footer[data-v-665c40c6] {\n margin-top: 100px;\n text-align: center;\n font-size: 12px;\n color: #666666;\n}\n.Bridge-footer a[data-v-665c40c6] {\n color: #666666;\n text-decoration: underline;\n}\n.isPointer .Bridge-footer a[data-v-665c40c6]:hover,\n.isTouch .Bridge-footer a[data-v-665c40c6]:active {\n text-decoration: none;\n}\n",""]),e.exports=m},489:function(e,t,n){e.exports=n.p+"img/swap.b8b4b2f.svg"},490:function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTUuMS4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjEycHgiCgkgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDEyIDEyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxnIGlkPSJJY29ucyIgc3R5bGU9ImZpbGw6I2FhYTsiPgoJPGcgaWQ9ImV4dGVybmFsIj4KCQk8cG9seWdvbiBpZD0iYm94IiBzdHlsZT0iZmlsbC1ydWxlOmV2ZW5vZGQ7Y2xpcC1ydWxlOmV2ZW5vZGQ7IiBwb2ludHM9IjIsMiA1LDIgNSwzIDMsMyAzLDkgOSw5IDksNyAxMCw3IDEwLDEwIDIsMTAgCQkiLz4KCQk8cG9seWdvbiBpZD0iYXJyb3dfMTNfIiBzdHlsZT0iZmlsbC1ydWxlOmV2ZW5vZGQ7Y2xpcC1ydWxlOmV2ZW5vZGQ7IiBwb2ludHM9IjYuMjExLDIgMTAsMiAxMCw1Ljc4OSA4LjU3OSw0LjM2OCA2LjQ0Nyw2LjUKCQkJNS41LDUuNTUzIDcuNjMyLDMuNDIxIAkJIi8+Cgk8L2c+CjwvZz4KPGcgaWQ9Ikd1aWRlcyIgc3R5bGU9ImRpc3BsYXk6bm9uZTsiPgo8L2c+Cjwvc3ZnPgo="},491:function(e,t,n){e.exports=n.p+"img/arrow.69e1e70.svg"},498:function(e,t,n){"use strict";n.r(t);n(45);var r=n(5),o=n(173),c=(n(47),n(18),n(64),n(351),n(33),n(10),n(50),n(0)),d=n(353),l=n.n(d),m=(n(65),n(317)),h=n.n(m);function y(){try{return"localStorage"in window&&null!==window.localStorage}catch(e){return!1}}function f(e){return 1e9*e}function v(e){return e/1e9}function w(e){return parseInt(e[1],16)}function x(e){return"0x"+new h.a.utils.BN(e).toString(16)}var T={tonTransferUrl:"ton://transfer/<BRIDGE_ADDRESS>?amount=<AMOUNT>&text=swapTo%23<TO_ADDRESS>",networks:{eth:{main:{getGasUrl:"https://ethereumgas.toncenter.com",explorerUrl:"https://etherscan.io/token/<ADDRESS>",wTonAddress:"0x582d872a1b094fc48f5de31d3b73f2d9be47def1",tonBridgeAddress:"Ef_dJMSh8riPi3BTUTtcxsWjG8RLKnLctNjAM4rw8NN-xWdr",tonCollectorAddress:"EQCuzvIOXLjH2tv35gY4tzhIvXCqZWDuK9kUhFGXKLImgxT5",tonMultisigAddress:"kf87m7_QrVM4uXAPCDM4DuF9Rj5Rwa5nHubwiQG96JmyAo-S",tonCenterUrl:"https://wallet.toncenter.com/api/v2/jsonRPC",chainId:1,blocksConfirmations:12,defaultGwei:25,coinsPerGweiTo:.004,coinsPerGweiFrom:.001},test:{getGasUrl:"https://ethereumgas.toncenter.com",explorerUrl:"https://goerli.etherscan.io/token/<ADDRESS>",wTonAddress:"0xDB15ffaf2c88F2d89Db9365a5160D5b8c9448Ea6",tonBridgeAddress:"Ef-56ZiqKUbtp_Ax2Qg4Vwh7yXXJCO8cNJAb229J6XXe4-aC",tonCollectorAddress:"EQCA1W_I267-luVo9CzV7iCcrA1OO5vVeXD0QHACvBn1jIVU",tonMultisigAddress:"kf-OV1dpgFVEzEmyvAETT8gnhqZ1IqHn8RzT6dmEmvnze-9n",tonCenterUrl:"https://testnet.toncenter.com/api/v2/jsonRPC",chainId:5,blocksConfirmations:12,defaultGwei:25,coinsPerGweiTo:.004,coinsPerGweiFrom:.001}},bsc:{main:{getGasUrl:"https://gbsc.blockscan.com/gasapi.ashx?apikey=key&method=gasoracle",explorerUrl:"https://bscscan.com/token/<ADDRESS>",wTonAddress:"0x76A797A59Ba2C17726896976B7B3747BfD1d220f",tonBridgeAddress:"Ef9NXAIQs12t2qIZ-sRZ26D977H65Ol6DQeXc5_gUNaUys5r",tonCollectorAddress:"EQAHI1vGuw7d4WG-CtfDrWqEPNtmUuKjKFEFeJmZaqqfWTvW",tonMultisigAddress:"kf8OvX_5ynDgbp4iqJIvWudSEanWo0qAlOjhWHtga9u2Yo7j",tonCenterUrl:"https://wallet.toncenter.com/api/v2/jsonRPC",chainId:56,blocksConfirmations:12,defaultGwei:5,coinsPerGweiTo:8e-4,coinsPerGweiFrom:2e-4},test:{getGasUrl:"https://gbsc.blockscan.com/gasapi.ashx?apikey=key&method=gasoracle",explorerUrl:"https://testnet.bscscan.com/token/<ADDRESS>",wTonAddress:"0xdb15ffaf2c88f2d89db9365a5160d5b8c9448ea6",tonBridgeAddress:"Ef_GmJntTDokxfhLGF1jRvMGC8Jav2V5keoNj4El2jzhHsID",tonCollectorAddress:"EQDBNfV4DQzSyzNMw6BCTSZSoUi-CzWcYNsfhKxoDqfrwFtS",tonMultisigAddress:"kf83VnnXuaqQV1Ts2qvUr6agacM0ydOux5NNa1mcU-cEO693",tonCenterUrl:"https://testnet.toncenter.com/api/v2/jsonRPC",chainId:97,blocksConfirmations:12,defaultGwei:5,coinsPerGweiTo:8e-4,coinsPerGweiFrom:2e-4}}}},k=(n(29),n(39),n(34),n(20),n(40),n(41),n(35),n(429),n(106),n(108),n(432),n(107),n(435),n(437),n(442),n(444),n(445),n(446),n(448),n(449),n(450),n(451),n(452),n(453),n(454),n(455),n(457),n(458),n(459),n(460),n(461),n(462),n(463),n(464),n(465),n(466),n(467),n(32),n(42),n(184),n(468)),B=n.n(k),C=n(469),S=n(492);function I(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,d=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){d=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(d)throw o}}}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var A=h.a.utils.BN,N=c.a.extend({props:{isTestnet:{type:Boolean,required:!0},isRecover:{type:Boolean,required:!0},lt:{type:Number,required:!0},hash:{type:String,required:!0},isFromTon:{type:Boolean,required:!0},pair:{type:String,required:!0},amount:{type:Number},toAddress:{type:String,required:!0}},data:function(){return{newBlockHeadersSubscription:null,updateStateInterval:null,provider:null,ethToTon:null,state:{swapId:"",queryId:"0",fromCurrencySent:!1,toCurrencySent:!1,step:0,votes:null,swapData:null,createTime:0,blockNumber:0}}},computed:{netTypeName:function(){return this.isTestnet?"test":"main"},params:function(){return T.networks[this.pair][this.netTypeName]},isGetTonCoinVisible:function(){return this.isFromTon&&!this.state.toCurrencySent&&4===this.state.step},isDoneVisible:function(){return this.state.step>4},isCancelVisible:function(){return this.isFromTon&&1===this.state.step},fromCoin:function(){return this.isFromTon?this.$t("Bridge.networks.ton.".concat(this.netTypeName,".coinShort")):this.$t("Bridge.networks.".concat(this.pair,".").concat(this.netTypeName,".coinShort"))},toCoin:function(){return this.isFromTon?this.$t("Bridge.networks.".concat(this.pair,".").concat(this.netTypeName,".coinShort")):this.$t("Bridge.networks.ton.".concat(this.netTypeName,".coinShort"))},toNetwork:function(){var e=this.isFromTon?this.pair:"ton";return this.$t("Bridge.networks.".concat(e,".").concat(this.netTypeName,".name"))},getStepInfoText1:function(){if(1===this.state.step){if(this.isFromTon){var e=T.tonTransferUrl.replace("<BRIDGE_ADDRESS>",this.params.tonBridgeAddress).replace("<AMOUNT>",String(f(this.amount))).replace("<TO_ADDRESS>",this.toAddress);return{isOnlyText:!1,sendAmount:this.$t("Bridge.networks.ton.transactionSendAmount").replace("<AMOUNT>",String(this.amount)).replace("<FROM_COIN>",this.fromCoin),url:e,sendFromPersonal:this.$t("Bridge.networks.ton.transactionSendFromPersonal"),sendNotFromExchanges:this.$t("Bridge.networks.ton.transactionSendNotFromExchanges")}}return{isOnlyText:!0,text:this.state.fromCurrencySent?this.$t("Bridge.networks.".concat(this.pair,".transactionWait")):this.$t("Bridge.networks.".concat(this.pair,".transactionSend"))}}var t=this.isFromTon?"ton":this.pair;return{isOnlyText:!0,text:this.$t("Bridge.networks.".concat(t,".transactionCompleted"))}},getStepInfoText2:function(){var e;if(this.isFromTon)return"";if(2===this.state.step){var t=((null===(e=this.provider)||void 0===e?void 0:e.blockNumber)||this.state.blockNumber)-this.state.blockNumber;return t=Math.min(t,this.params.blocksConfirmations),this.$t("Bridge.networks.".concat(this.pair,".blocksConfirmations")).replace("<COUNT>",String(t)+"/"+String(this.params.blocksConfirmations))}return this.state.step>2?this.$t("Bridge.blocksConfirmationsCollected"):this.$t("Bridge.blocksConfirmationsWaiting")},getStepInfoText3:function(){var e,t;if(3===this.state.step){var n=((null===(e=this.state.votes)||void 0===e?void 0:e.length)||0)+"/"+((null===(t=this.provider)||void 0===t?void 0:t.oraclesTotal)||0);return this.$t("Bridge.oraclesConfirmations").replace("<COUNT>",String(n))}return this.state.step>3?this.$t("Bridge.oraclesConfirmationsCollected"):this.$t("Bridge.oraclesConfirmationsWaiting")},getStepInfoText4:function(){return 4===this.state.step?this.isFromTon?this.state.toCurrencySent?this.$t("Bridge.networks.".concat(this.pair,".transactionWait")):this.$t("Bridge.getCoinsByMetamask").replace("<TO_COIN>",this.toCoin):this.$t("Bridge.coinsSent").replace("<TO_COIN>",this.toCoin):this.state.step>4?this.$t("Bridge.coinsSent").replace("<TO_COIN>",this.toCoin):"Get "+this.toCoin+"s in "+this.toNetwork}},watch:{"state.step":{immediate:!0,handler:function(e){this.$emit("state-changed"),this.$emit("interface-blocked",e>0)}}},mounted:function(){this.updateState(),this.updateStateInterval=setInterval(this.updateState,5e3)},beforeDestroy:function(){clearInterval(this.updateStateInterval),this.newBlockHeadersSubscription&&this.newBlockHeadersSubscription.unsubscribe();var e=window.ethereum;e&&e.removeListener("accountsChanged",this.onAccountChanged)},methods:{resetState:function(){this.state.swapId="",this.state.queryId="0",this.state.fromCurrencySent=!1,this.state.toCurrencySent=!1,this.state.step=0,this.state.votes=null,this.state.swapData=null,this.state.createTime=0,this.state.blockNumber=0,this.$emit("reset-state")},loadState:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e){n.next=2;break}return n.abrupt("return");case 2:return n.next=4,t.initProvider();case 4:if(t.provider=n.sent,t.provider){n.next=7;break}return n.abrupt("return");case 7:return Object.assign(t.state,e),n.next=10,t.updateState();case 10:case"end":return n.stop()}}),n)})))()},saveState:function(){this.$emit("save-state",this.state)},deleteState:function(){this.$emit("delete-state")},updateState:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var n,r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(1!==e.state.step||!e.isFromTon){t.next=5;break}return t.next=3,e.getSwap(e.amount,e.toAddress,e.state.createTime);case 3:(r=t.sent)&&(e.state.swapId=e.getSwapTonToEthId(e.provider.web3,r),e.state.swapData=r,e.state.step=3);case 5:if(2!==e.state.step||e.isFromTon){t.next=15;break}if(!(((null===(n=e.provider)||void 0===n?void 0:n.blockNumber)||e.state.blockNumber)-e.state.blockNumber>e.params.blocksConfirmations)){t.next=15;break}return t.next=10,e.provider.web3.eth.getBlock(e.state.blockNumber);case 10:o=t.sent,e.ethToTon.blockTime=Number(o.timestamp),e.ethToTon.blockHash=o.hash,e.state.queryId=e.getQueryId(e.ethToTon).toString(),e.state.step=3;case 15:if(3!==e.state.step){t.next=27;break}if(!e.isFromTon){t.next=22;break}return t.next=19,e.getEthVote(e.state.swapId);case 19:t.t0=t.sent,t.next=25;break;case 22:return t.next=24,e.getTonVote(e.state.queryId);case 24:t.t0=t.sent;case 25:e.state.votes=t.t0,e.state.votes&&e.state.votes.length>=2*e.provider.oraclesTotal/3&&(e.state.step=e.isFromTon?4:5);case 27:case"end":return t.stop()}}),t)})))()},getSwapTonToEthId:function(e,t){var n;return"eth"!==this.pair||this.isTestnet||(n=e.eth.abi.encodeParameters(["int","address","uint256","int8","bytes32","bytes32","uint64"],[55930,t.receiver,t.amount,t.tx.address_.workchain,t.tx.address_.address_hash,t.tx.tx_hash,t.tx.lt])),("bsc"===this.pair||this.isTestnet)&&(n=e.eth.abi.encodeParameters(["int","address","address","uint256","int8","bytes32","bytes32","uint64"],[55930,this.params.wTonAddress,t.receiver,t.amount,t.tx.address_.workchain,t.tx.address_.address_hash,t.tx.tx_hash,t.tx.lt])),B.a.utils.sha3(n)},serializeEthToTon:function(e){var t=new h.a.boc.BitString(608);return t.writeUint(0,8),t.writeUint(new A(e.transactionHash.substr(2),16),256),t.writeInt(e.logIndex,16),t.writeUint(e.to.workchain,8),t.writeUint(new A(e.to.address_hash,16),256),t.writeUint(new A(e.value),64),t.array},getQueryId:function(e){var t,n,r=e.blockTime+2592e3+2,o=B.a.utils.sha3((t=e.blockHash+"_"+e.transactionHash+"_"+String(e.logIndex),n=t.split(""),n[66]="0",n[67]="0",n[68]="0",n[69]="0",n[133]=n[132],n[132]="0",n.join(""))).substr(2,8);return new A(r).mul(new A(4294967296)).add(new A(o,16))},getFeeAmount:function(e){var t=new A(e).sub(this.provider.feeFlat).mul(this.provider.feeFactor).div(this.provider.feeBase);return this.provider.feeFlat.add(t)},makeAddress:function(address){if(!address.startsWith("0x"))throw new Error("Invalid address "+address);for(var e=address.substr(2);e.length<40;)e="0"+e;return"0x"+e},getSwap:function(e,t,n){var o=this;return Object(r.a)(regeneratorRuntime.mark((function r(){var c,d,l,m,y,f,v,w,x,T,k,B,C,S,_,N,P,F,M,L;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return console.log("getTransactions",o.params.tonBridgeAddress,o.lt&&o.hash?1:o.isRecover?200:40,o.lt||void 0,o.hash||void 0,void 0,!(!o.lt||!o.hash)||void 0),r.next=3,o.provider.tonweb.provider.getTransactions(o.params.tonBridgeAddress,o.lt&&o.hash?1:o.isRecover?200:40,o.lt||void 0,o.hash||void 0,void 0,!(!o.lt||!o.hash)||void 0);case 3:c=r.sent,console.log("ton txs",c.length),d=function(e){if(!e)return null;var t,n=I(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(""===r.destination)return r}}catch(e){n.e(e)}finally{n.f()}return null},l=function(e){var t=e.message.substr(0,e.message.length-1),n=h.a.utils.base64ToBytes(t);return 28!==n.length?null:n},m=function(e){var t,n=null===(t=e.msg_data)||void 0===t?void 0:t.text,r=h.a.utils.base64ToBytes(n),o=new Uint8Array(r.length+4);return o.set(r,4),o},y=function(e){var t=e.msg_data["@type"];return"msg.dataText"===t?m(e):"msg.dataRaw"===t?l(e):(console.error("Unknown log msg type "+t),null)},f=I(c),r.prev=10,f.s();case 12:if((v=f.n()).done){r.next=43;break}if(w=v.value,!(x=d(w.out_msgs))){r.next=41;break}if(o.isRecover||o.lt&&o.hash){r.next=19;break}if(!(1e3*w.utime<n)){r.next=19;break}return r.abrupt("continue",41);case 19:if(null!==(T=y(x))){r.next=22;break}return r.abrupt("continue",41);case 22:if(k=o.makeAddress("0x"+h.a.utils.bytesToHex(T.slice(0,20))),B=h.a.utils.bytesToHex(T.slice(20,28)),C=new A(B,16),S=new h.a.utils.Address(w.in_msg.source),_=w.in_msg.message.slice("swapTo#".length),k.toLowerCase()===_.toLowerCase()){r.next=30;break}return console.error("address from in_msg doesnt match ",_,k),r.abrupt("continue",41);case 30:if(N=new A(w.in_msg.value),P=N.sub(o.getFeeAmount(N)),C.eq(P)){r.next=35;break}return console.error("amount from in_msg doesnt match ",C.toString(),P.toString(),N.toString()),r.abrupt("continue",41);case 35:if(F={type:"SwapTonToEth",receiver:k,amount:C.toString(),tx:{address_:{workchain:S.wc,address_hash:"0x"+h.a.utils.bytesToHex(S.hashPart)},tx_hash:"0x"+h.a.utils.bytesToHex(h.a.utils.base64ToBytes(w.transaction_id.hash)),lt:w.transaction_id.lt}},console.log(JSON.stringify(F)),M=new A(1e9*e),L=M.sub(o.getFeeAmount(M)),!C.eq(L)||F.receiver.toLowerCase()!==t.toLowerCase()){r.next=41;break}return r.abrupt("return",F);case 41:r.next=12;break;case 43:r.next=48;break;case 45:r.prev=45,r.t0=r.catch(10),f.e(r.t0);case 48:return r.prev=48,f.f(),r.finish(48);case 51:return r.abrupt("return",null);case 52:case"end":return r.stop()}}),r,null,[[10,45,48,51]])})))()},parseEthSignature:function(data){var e=data.tuple.elements,t=this.makeAddress(x(e[0].number.number)),n=e[1].tuple.elements;return{publicKey:t,r:x(n[0].number.number),s:x(n[1].number.number),v:Number(n[2].number.number)}},getEthVote:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r,o,c;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return console.log("getEthVote ",e),n.next=3,t.provider.tonweb.provider.call(t.params.tonCollectorAddress,"get_external_voting_data",[["num",e]]);case 3:if(309!==(r=n.sent).exit_code){n.next=6;break}return n.abrupt("return",null);case 6:n.prev=6,o=r.stack[0][1].elements,n.next=14;break;case 10:return n.prev=10,n.t0=n.catch(6),console.log("getEthVote, corrupted result",r),n.abrupt("return",null);case 14:return c={signatures:o.map(t.parseEthSignature)},n.abrupt("return",c.signatures);case 16:case"end":return n.stop()}}),n,null,[[6,10]])})))()},getTonVote:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var r,a,b,o,c,i;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return console.log("getTonVote ",e),n.next=3,t.provider.tonweb.provider.call(t.params.tonMultisigAddress,"get_query_state",[["num",e]]);case 3:r=n.sent,n.prev=4,a=w(r.stack[0]),b=w(r.stack[1]),n.next=13;break;case 9:return n.prev=9,n.t0=n.catch(4),console.log("getTonVote, corrupted result",r),n.abrupt("return",null);case 13:for(console.log("getTonVote",r,a,b),o=[],c=-1===a?t.provider.oraclesTotal:b.toString(2).split("0").join("").length,i=0;i<c;i++)o.push(1);return n.abrupt("return",o);case 18:case"end":return n.stop()}}),n,null,[[4,9]])})))()},mint:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,r=(r=e.state.votes.map((function(e){return{signer:e.publicKey,signature:S.a.utils.joinSignature({r:e.r,s:e.s,v:e.v})}}))).sort((function(a,b){return new A(a.signer.substr(2),16).cmp(new A(b.signer.substr(2),16))})),console.log("voteForMinting",JSON.stringify(e.state.swapData),JSON.stringify(r)),t.next=6,e.provider.wtonContract.methods.voteForMinting(e.state.swapData,r).send({from:e.provider.myEthAddress}).on("transactionHash",(function(){e.state.toCurrencySent=!0,e.deleteState()}));case 6:n=t.sent,t.next=13;break;case 9:return t.prev=9,t.t0=t.catch(0),console.error(t.t0),t.abrupt("return");case 13:n.status?(e.state.step=5,e.deleteState()):console.error("transaction fail",n);case 14:case"end":return t.stop()}}),t,null,[[0,9]])})))()},burn:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var n,r,o,c,d,l,m,y;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.provider.myEthAddress,r=e.toAddress,o=e.amount,c=new h.a.utils.Address(r),d=c.wc,l=h.a.utils.bytesToHex(c.hashPart),m=f(o),t.prev=7,t.next=10,e.provider.wtonContract.methods.burn(m,{workchain:d,address_hash:"0x"+l}).send({from:n}).on("transactionHash",(function(){e.state.fromCurrencySent=!0}));case 10:y=t.sent,t.next=18;break;case 13:return t.prev=13,t.t0=t.catch(7),console.error(t.t0),e.resetState(),t.abrupt("return");case 18:y.status?(console.log("receipt",y),e.state.blockNumber=y.blockNumber,e.ethToTon={transactionHash:y.transactionHash,logIndex:y.events.SwapEthToTon.logIndex,blockNumber:e.state.blockNumber,blockTime:0,blockHash:"",from:n,to:{workchain:d,address_hash:l},value:m},e.state.step=2):console.error("transaction fail",y);case 19:case"end":return t.stop()}}),t,null,[[7,13]])})))()},onDoneClick:function(){this.resetState()},onCancelClick:function(){this.deleteState(),this.resetState()},onAccountChanged:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var address;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(console.log("accountsChanged",e),address=e[0],t.provider){n.next=4;break}return n.abrupt("return");case 4:return n.t0=A,n.next=7,t.provider.web3.eth.getBalance(address);case 7:if(n.t1=n.sent,new n.t0(n.t1).gt(new A("0"))){n.next=11;break}return alert(t.$t("Bridge.networks.".concat(t.pair,".errors.lowBalance"))),n.abrupt("return");case 11:t.provider.myEthAddress=address,console.log("address is",t.provider.myEthAddress);case 13:case"end":return n.stop()}}),n)})))()},initProvider:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var n,r,o,c,d,l,m,y,f,v,x,T,k,S;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=window.ethereum){t.next=6;break}return alert(e.$t("Bridge.errors.installMetamask")),t.abrupt("return",null);case 6:return t.prev=6,t.next=9,n.send("eth_requestAccounts");case 9:o=t.sent.result,r=o[0],console.log("address is",r),t.next=18;break;case 14:return t.prev=14,t.t0=t.catch(6),console.log(t.t0),t.abrupt("return",null);case 18:if(n.addListener("accountsChanged",e.onAccountChanged),n.networkVersion===String(e.params.chainId)){t.next=23;break}return c=e.$t("Bridge.errors.wrongMetamaskNetwork").replace("<NETWORK>",e.$t("Bridge.networks.".concat(e.pair,".").concat(e.netTypeName,".full"))),alert(c),t.abrupt("return",null);case 23:return d=new B.a(n),l=new d.eth.Contract(C,e.params.wTonAddress),t.next=27,l.methods.getFullOracleSet().call();case 27:if((m=t.sent.length)>0){t.next=30;break}return t.abrupt("return",null);case 30:return t.t1=A,t.next=33,d.eth.getBalance(r);case 33:if(t.t2=t.sent,new t.t1(t.t2).gt(new A("0"))){t.next=37;break}return alert(e.$t("Bridge.networks.".concat(e.pair,".errors.lowBalance"))),t.abrupt("return",null);case 37:return e.newBlockHeadersSubscription=d.eth.subscribe("newBlockHeaders").on("data",(function(t){e.provider.blockNumber=t.number})).on("error",(function(e){console.error("Error on newBlockHeaders",e)})),y=new h.a(new h.a.HttpProvider(e.params.tonCenterUrl,{apiKey:"ba68682c292bf1ad6150319d94670d36a81313f08fe67592c99e43c8f718d298"})),t.next=41,y.provider.call(e.params.tonBridgeAddress,"get_bridge_data",[]);case 41:if(8===(f=t.sent.stack).length){t.next=44;break}throw new Error("Invalid bridge data");case 44:return w(f[0]),w(f[1]),w(f[2]),f[3][1],v=new A(w(f[4])),x=new A(w(f[5])),T=new A(w(f[6])),k=new A(w(f[7])),S={blockNumber:0,myEthAddress:r,web3:d,wtonContract:l,tonweb:y,oraclesTotal:m,feeFlat:v.add(x),feeFactor:T,feeBase:k},t.abrupt("return",S);case 54:case"end":return t.stop()}}),t,null,[[6,14]])})))()},onTransferClick:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!isNaN(e.amount)){t.next=3;break}return alert(e.$t("Bridge.errors.notValidAmount")),t.abrupt("return");case 3:if(!(e.amount<10)){t.next=6;break}return alert(e.$t("Bridge.errors.amountBelow10")),t.abrupt("return");case 6:if(e.toAddress.toLowerCase()!==e.params.wTonAddress.toLowerCase()&&e.toAddress.toLowerCase()!==e.params.tonBridgeAddress.toLowerCase()){t.next=9;break}return alert(e.$t("Bridge.errors.needPersonalAddress")),t.abrupt("return");case 9:if(!e.isFromTon){t.next=15;break}if(B.a.utils.isAddress(e.toAddress)){t.next=13;break}return alert(e.$t("Bridge.networks.".concat(e.pair,".errors.invalidAddress"))),t.abrupt("return");case 13:t.next=18;break;case 15:if(h.a.utils.Address.isValid(e.toAddress)){t.next=18;break}return alert(e.$t("Bridge.networks.ton.errors.invalidAddress")),t.abrupt("return");case 18:if(e.provider){t.next=24;break}return t.next=21,e.initProvider();case 21:if(e.provider=t.sent,e.provider){t.next=24;break}return t.abrupt("return");case 24:if(e.isFromTon){t.next=35;break}return t.t0=v,t.t1=Number,t.next=29,e.provider.wtonContract.methods.balanceOf(e.provider.myEthAddress).call();case 29:if(t.t2=t.sent,t.t3=(0,t.t1)(t.t2),n=(0,t.t0)(t.t3),!(e.amount>n)){t.next=35;break}return alert(e.$t("Bridge.errors.toncoinBalance").replace("<BALANCE>",String(n))),t.abrupt("return");case 35:if(e.state.createTime=Date.now(),e.state.step=1,!e.isFromTon){t.next=41;break}e.saveState(),t.next=43;break;case 41:return t.next=43,e.burn();case 43:case"end":return t.stop()}}),t)})))()}}}),P=(n(484),n(91)),F=Object(P.a)(N,(function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"BridgeProcessor"},[0===e.state.step?t("button",{staticClass:"BridgeProcessor-transfer",on:{click:e.onTransferClick}},[e._v(e._s(e.$t("Bridge.transfer")))]):t("div",{staticClass:"BridgeProcessor-infoWrapper"},[t("div",{staticClass:"BridgeProcessor-infoLine"},[t("div",{staticClass:"BridgeProcessor-info-icon",class:{none:e.state.step<1,pending:1===e.state.step,done:e.state.step>1}}),e._v(" "),e.getStepInfoText1.isOnlyText?t("div",{staticClass:"BridgeProcessor-info-text"},[e._v(e._s(e.getStepInfoText1.text))]):t("div",{staticClass:"BridgeProcessor-info-text"},[e._v("\n "+e._s(e.getStepInfoText1.sendAmount)),t("br"),e._v(" "),t("a",{attrs:{href:e.getStepInfoText1.url,target:"_blank"}},[e._v(e._s(e.getStepInfoText1.url))]),e._v(" "),t("div",{staticClass:"note"},[e._v(e._s(e.getStepInfoText1.sendFromPersonal)+" "),t("b",[e._v(e._s(e.getStepInfoText1.sendNotFromExchanges))])])])]),e._v(" "),e.isFromTon?e._e():t("div",{staticClass:"BridgeProcessor-infoLine"},[t("div",{staticClass:"BridgeProcessor-info-icon",class:{none:e.state.step<2,pending:2===e.state.step,done:e.state.step>2}}),e._v(" "),t("div",{staticClass:"BridgeProcessor-info-text"},[e._v(e._s(e.getStepInfoText2))])]),e._v(" "),t("div",{staticClass:"BridgeProcessor-infoLine"},[t("div",{staticClass:"BridgeProcessor-info-icon",class:{none:e.state.step<3,pending:3===e.state.step,done:e.state.step>3}}),e._v(" "),t("div",{staticClass:"BridgeProcessor-info-text"},[e._v(e._s(e.getStepInfoText3))])]),e._v(" "),t("div",{staticClass:"BridgeProcessor-infoLine"},[t("div",{staticClass:"BridgeProcessor-info-icon",class:{none:e.state.step<4,pending:4===e.state.step,done:e.state.step>4}}),e._v(" "),t("div",{staticClass:"BridgeProcessor-info-text"},[e._v(e._s(e.getStepInfoText4))])])]),e._v(" "),e.isGetTonCoinVisible?t("button",{staticClass:"BridgeProcessor-getTonCoin",on:{click:e.mint}},[e._v(e._s(e.$t("Bridge.getToncoin")))]):e._e(),e._v(" "),e.isDoneVisible?t("button",{staticClass:"BridgeProcessor-done",on:{click:e.onDoneClick}},[e._v(e._s(e.$t("Bridge.done")))]):e._e(),e._v(" "),e.isCancelVisible?t("button",{staticClass:"BridgeProcessor-cancel",on:{click:e.onCancelClick}},[e._v(e._s(e.$t("Bridge.cancel")))]):e._e()])}),[],!1,null,"d938b934",null).exports,M=["eth","bsc"],L=c.a.extend({components:{BridgeProcessor:F},head:function(){return{title:this.$t("Bridge.networks.".concat(this.pair,".pageTitle"))}},data:function(){return{getPairGasFee__debounced:function(){},gasPrice:0,isTestnet:!1,isRecover:!1,lt:0,hash:"",isFromTon:!0,pair:"eth",amountInner:"",toAddress:"",isInterfaceBlocked:!1}},computed:{netTypeName:function(){return this.isTestnet?"test":"main"},params:function(){return T.networks[this.pair][this.netTypeName]},tonNetworkName:function(){return this.$t("Bridge.networks.ton.".concat(this.netTypeName,".name"))},tonNetworkCoin:function(){return this.$t("Bridge.networks.ton.".concat(this.netTypeName,".coin"))},pairNetworkName:function(){return this.$t("Bridge.networks.".concat(this.pair,".").concat(this.netTypeName,".name"))},pairNetworkCoin:function(){return this.$t("Bridge.networks.".concat(this.pair,".").concat(this.netTypeName,".coin"))},pairNetworkCoinUrl:function(){var e=this.params.explorerUrl,address=this.params.wTonAddress;return e.replace("<ADDRESS>",address)},addressInputLabel:function(){var e=this.isFromTon?this.pair:"ton",t=this.$t("Bridge.networks.".concat(e,".").concat(this.netTypeName,".full"));return this.$t("Bridge.addressInputLabel").replace("<NETWORK>",t)},pairFee:function(){var e=this.gasPrice?this.gasPrice/this.params.defaultGwei:1,t=this.isFromTon?this.params.coinsPerGweiTo*e:this.params.coinsPerGweiFrom*e;return this.$t("Bridge.networks.".concat(this.pair,".gasFee")).replace("<FEE>",t.toFixed(4))},amount:{get:function(){var e=parseFloat(this.amountInner);return!e||isNaN(e)?0:e},set:function(e){this.amountInner=isNaN(e)?"":String(e)}},bridgeFee:function(){return!isNaN(this.amount)&&this.amount>=10?this.$t("Bridge.bridgeFeeAbove10").replace("<FEE>",String(5+.0025*(this.amount-5))):this.$t("Bridge.bridgeFeeBelow10")},fromPairs:function(){return M},toPairs:function(){var e=this;return["ton"].concat(Object(o.a)(M.filter((function(i){return i!==e.pair}))))}},watch:{isFromTon:function(){this.getPairGasFee__debounced()},pair:function(){this.getPairGasFee__debounced()}},created:function(){if(this.getPairGasFee__debounced=l()(this.getPairGasFee,100),this.$route.query.testnet&&(this.isTestnet="true"===this.$route.query.testnet.toLowerCase()),(this.$route.query.recover||this.$route.query.recovery)&&(this.isRecover=!0),this.$route.query.lt){var e=parseInt(this.$route.query.lt,10);this.lt=!e||isNaN(e)?0:e}if(this.$route.query.hash&&(this.hash=this.$route.query.hash),this.$route.query.amount){var t=parseFloat(this.$route.query.amount)/1e9;this.amount=!t||isNaN(t)?0:t}if(this.$route.query.toAddress&&(this.toAddress=this.$route.query.toAddress),this.$route.query.fromNetwork&&this.$route.query.toNetwork){var n=this.$route.query.fromNetwork.toLowerCase(),r=this.$route.query.toNetwork.toLowerCase();"ton"===n&&M.includes(r)&&(this.isFromTon=!0,this.pair=r),"ton"===r&&M.includes(n)&&(this.isFromTon=!1,this.pair=n)}},mounted:function(){this.getPairGasFee__debounced(),this.loadState()},methods:{onPairClick:function(e,t){this.isInterfaceBlocked||(e&&(this.isFromTon=!this.isFromTon),this.pair=t)},resetState:function(){this.isRecover=!1,this.lt=0,this.hash="",this.amountInner="",this.toAddress=""},loadState:function(){var e=this;if(y){var t=localStorage.getItem("bridgeState");if(t){var n;try{n=JSON.parse(t)}catch(e){return}if(!n.pair)return;this.amount=n.amount,this.toAddress=n.toAddress,this.pair=n.pair,this.$nextTick((function(){e.$refs.bridgeProcessor.loadState(n.processingState)}))}}},saveState:function(e){if(y){var t={amount:this.amount,toAddress:this.toAddress,pair:this.pair,processingState:e};localStorage.setItem("bridgeState",JSON.stringify(t))}},deleteState:function(){y&&localStorage.removeItem("bridgeState")},onInterfaceBlocked:function(e){this.isInterfaceBlocked=e},toggleFromTon:function(){this.isInterfaceBlocked||(this.isFromTon=!this.isFromTon)},getPairGasFee:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var data,n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=0,t.prev=1,t.next=4,fetch(e.params.getGasUrl,{method:"GET",headers:{"Cache-Control":"no-store, max-age=0"}});case 4:if((r=t.sent).ok){t.next=7;break}throw new Error("An error has occured: ".concat(r.status));case 7:return t.next=9,r.json();case 9:data=t.sent,t.next=16;break;case 12:return t.prev=12,t.t0=t.catch(1),e.gasPrice=0,t.abrupt("return");case 16:"eth"===e.pair&&(n=parseFloat(data.average)/10),"bsc"===e.pair&&(n=parseFloat(data.result.SafeGasPrice)),e.gasPrice=n>0?n:e.params.defaultGwei;case 19:case"end":return t.stop()}}),t,null,[[1,12]])})))()}}}),j=(n(487),Object(P.a)(L,(function(){var e=this,t=e._self._c;e._self._setupProxy;return t("main",{staticClass:"Bridge"},[e.isTestnet?t("div",{staticClass:"Bridge-testnetWarning"},[e._v(e._s(e.$t("Bridge.testnet")))]):e._e(),e._v(" "),t("div",{staticClass:"Bridge-content"},[t("div",{staticClass:"Bridge-img",class:{isFromTon:e.isFromTon}}),e._v(" "),t("div",{staticClass:"Bridge-form"},[t("div",{key:e.isFromTon,staticClass:"Bridge-switchers",class:{isFromTon:e.isFromTon}},[t("div",{staticClass:"Bridge-switcher"},[t("div",{staticClass:"Bridge-switcherTitle",class:{disabled:e.isInterfaceBlocked}},[t("span",[e._v(e._s(e.tonNetworkName)+" ▾")]),e._v(" "),t("ul",{staticClass:"Bridge-switcherList"},e._l(e.fromPairs,(function(n){return t("li",{key:n,on:{click:function(t){return e.onPairClick(!0,n)}}},[t("button",[e._v(e._s(e.$t("Bridge.networks.".concat(n,".").concat(e.netTypeName,".name"))))])])})),0)]),e._v(" "),t("div",{staticClass:"Bridge-switcherAnno"},[e._v(e._s(e.tonNetworkCoin))])]),e._v(" "),t("button",{staticClass:"Bridge-switcher-arrow",attrs:{disabled:e.isInterfaceBlocked},on:{click:e.toggleFromTon}}),e._v(" "),t("div",{staticClass:"Bridge-switcher"},[t("div",{staticClass:"Bridge-switcherTitle",class:{disabled:e.isInterfaceBlocked}},[t("span",[e._v(e._s(e.pairNetworkName)+" ▾")]),e._v(" "),t("ul",{staticClass:"Bridge-switcherList"},e._l(e.toPairs,(function(n){return t("li",{key:n,on:{click:function(t){return e.onPairClick("ton"===n,"ton"===n?e.pair:n)}}},[t("button",[e._v(e._s(e.$t("Bridge.networks.".concat(n,".").concat(e.netTypeName,".name"))))])])})),0)]),e._v(" "),t("div",{staticClass:"Bridge-switcherAnno"},[t("a",{attrs:{href:e.pairNetworkCoinUrl,target:"_blank"}},[e._v(e._s(e.pairNetworkCoin))])])])]),e._v(" "),t("div",{staticClass:"Bridge-inputWrapper"},[t("label",{attrs:{for:"amountInput"}},[e._v(e._s(e.$t("Bridge.amountOfTon")))]),t("br"),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.amountInner,expression:"amountInner"}],attrs:{disabled:e.isInterfaceBlocked,type:"number",id:"amountInput"},domProps:{value:e.amountInner},on:{input:function(t){t.target.composing||(e.amountInner=t.target.value)}}})]),e._v(" "),t("div",{staticClass:"Bridge-inputWrapper"},[t("label",{attrs:{for:"toInput",id:"toInputLabel"}},[e._v(e._s(e.addressInputLabel))]),t("br"),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.toAddress,expression:"toAddress"}],attrs:{disabled:e.isInterfaceBlocked,type:"text",id:"toInput"},domProps:{value:e.toAddress},on:{input:function(t){t.target.composing||(e.toAddress=t.target.value)}}})]),e._v(" "),t("div",{staticClass:"Bridge-pairFee"},[e._v(e._s(e.pairFee))]),e._v(" "),t("div",{staticClass:"Bridge-bridgeFee"},[e._v(e._s(e.bridgeFee))]),e._v(" "),t("BridgeProcessor",{key:e.pair,ref:"bridgeProcessor",attrs:{"is-testnet":e.isTestnet,"is-recover":e.isRecover,lt:e.lt,hash:e.hash,"is-from-ton":e.isFromTon,pair:e.pair,amount:e.amount,"to-address":e.toAddress},on:{"interface-blocked":e.onInterfaceBlocked,"state-changed":e.getPairGasFee__debounced,"reset-state":e.resetState,"save-state":e.saveState,"delete-state":e.deleteState}}),e._v(" "),t("div",{staticClass:"Bridge-footer"},[e._v("\n v2.11,\n "),t("a",{attrs:{href:"https://github.com/ton-blockchain/bridge",target:"_blank"}},[e._v(e._s(e.$t("Bridge.sourceCode")))]),e._v(",\n"),e._v(" "),t("a",{attrs:{href:"https://github.com/ton-blockchain/TIPs/issues/24",target:"_blank"}},[e._v(e._s(e.$t("Bridge.documentation")))]),e._v(".\n ")])],1)])])}),[],!1,null,"665c40c6",null));t.default=j.exports}}]);
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
!function(e){function r(data){for(var r,n,l=data[0],f=data[1],d=data[2],i=0,h=[];i<l.length;i++)n=l[i],Object.prototype.hasOwnProperty.call(o,n)&&o[n]&&h.push(o[n][0]),o[n]=0;for(r in f)Object.prototype.hasOwnProperty.call(f,r)&&(e[r]=f[r]);for(v&&v(data);h.length;)h.shift()();return c.push.apply(c,d||[]),t()}function t(){for(var e,i=0;i<c.length;i++){for(var r=c[i],t=!0,n=1;n<r.length;n++){var f=r[n];0!==o[f]&&(t=!1)}t&&(c.splice(i--,1),e=l(l.s=r[0]))}return e}var n={},o={4:0},c=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var c,script=document.createElement("script");script.charset="utf-8",script.timeout=120,l.nc&&script.setAttribute("nonce",l.nc),script.src=function(e){return l.p+""+{2:"1f2ac62",3:"a46cdc5",6:"fe8ca79",7:"b5d388d"}[e]+".js"}(e);var f=new Error;c=function(r){script.onerror=script.onload=null,clearTimeout(d);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),c=r&&r.target&&r.target.src;f.message="Loading chunk "+e+" failed.\n("+n+": "+c+")",f.name="ChunkLoadError",f.type=n,f.request=c,t[1](f)}o[e]=void 0}};var d=setTimeout((function(){c({type:"timeout",target:script})}),12e4);script.onerror=script.onload=c,document.head.appendChild(script)}return Promise.all(r)},l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(object,e){return Object.prototype.hasOwnProperty.call(object,e)},l.p="/bridge/_nuxt/",l.oe=function(e){throw console.error(e),e};var f=window.webpackJsonp=window.webpackJsonp||[],d=f.push.bind(f);f.push=r,f=f.slice();for(var i=0;i<f.length;i++)r(f[i]);var v=d;t()}([]);
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{497:function(e,t,r){"use strict";r.r(t);var n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$",o=/[<>\b\f\n\r\t\0\u2028\u2029]/g,c=/^(?:do|if|in|for|int|let|new|try|var|byte|case|char|else|enum|goto|long|this|void|with|await|break|catch|class|const|final|float|short|super|throw|while|yield|delete|double|export|import|native|return|switch|throws|typeof|boolean|default|extends|finally|package|private|abstract|continue|debugger|function|volatile|interface|protected|transient|implements|instanceof|synchronized)$/,f={"<":"\\u003C",">":"\\u003E","/":"\\u002F","\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},l=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function h(e){return Object(e)!==e}function y(e){if("string"==typeof e)return m(e);if(void 0===e)return"void 0";if(0===e&&1/e<0)return"-0";var t=String(e);return"number"==typeof e?t.replace(/^(-)?0\./,"$1."):t}function w(e){return Object.prototype.toString.call(e).slice(8,-1)}function O(e){return f[e]||e}function j(e){return e.replace(o,O)}function m(e){for(var t='"',i=0;i<e.length;i+=1){var r=e.charAt(i),code=r.charCodeAt(0);if('"'===r)t+='\\"';else if(r in f)t+=f[r];else if(code>=55296&&code<=57343){var n=e.charCodeAt(i+1);t+=code<=56319&&n>=56320&&n<=57343?r+e[++i]:"\\u"+code.toString(16).toUpperCase()}else t+=r}return t+='"'}t.default=function(e){var t=new Map;!function e(r){if("function"==typeof r)throw new Error("Cannot stringify a function");if(t.has(r))t.set(r,t.get(r)+1);else if(t.set(r,1),!h(r))switch(w(r)){case"Number":case"String":case"Boolean":case"Date":case"RegExp":return;case"Array":r.forEach(e);break;case"Set":case"Map":Array.from(r).forEach(e);break;default:var n=Object.getPrototypeOf(r);if(n!==Object.prototype&&null!==n&&Object.getOwnPropertyNames(n).sort().join("\0")!==l)throw new Error("Cannot stringify arbitrary non-POJOs");if(Object.getOwnPropertySymbols(r).length>0)throw new Error("Cannot stringify POJOs with symbolic keys");Object.keys(r).forEach((function(t){return e(r[t])}))}}(e);var r=new Map;function o(e){if(r.has(e))return r.get(e);if(h(e))return y(e);var t=w(e);switch(t){case"Number":case"String":case"Boolean":return"Object("+o(e.valueOf())+")";case"RegExp":return"new RegExp("+m(e.source)+', "'+e.flags+'")';case"Date":return"new Date("+e.getTime()+")";case"Array":var n=e.map((function(t,i){return i in e?o(t):""})),c=0===e.length||e.length-1 in e?"":",";return"["+n.join(",")+c+"]";case"Set":case"Map":return"new "+t+"(["+Array.from(e).map(o).join(",")+"])";default:var f="{"+Object.keys(e).map((function(t){return function(e){return/^[_$a-zA-Z][_$a-zA-Z0-9]*$/.test(e)?e:j(JSON.stringify(e))}(t)+":"+o(e[t])})).join(",")+"}";return null===Object.getPrototypeOf(e)?Object.keys(e).length>0?"Object.assign(Object.create(null),"+f+")":"Object.create(null)":f}}Array.from(t).filter((function(e){return e[1]>1})).sort((function(a,b){return b[1]-a[1]})).forEach((function(e,i){r.set(e[0],function(e){var t="";do{t=n[e%n.length]+t,e=~~(e/n.length)-1}while(e>=0);return c.test(t)?t+"_":t}(i))}));var f=o(e);if(r.size){var O=[],v=[],d=[];return r.forEach((function(e,t){if(O.push(e),h(t))d.push(y(t));else switch(w(t)){case"Number":case"String":case"Boolean":d.push("Object("+o(t.valueOf())+")");break;case"RegExp":d.push(t.toString());break;case"Date":d.push("new Date("+t.getTime()+")");break;case"Array":d.push("Array("+t.length+")"),t.forEach((function(t,i){v.push(e+"["+i+"]="+o(t))}));break;case"Set":d.push("new Set"),v.push(e+"."+Array.from(t).map((function(e){return"add("+o(e)+")"})).join("."));break;case"Map":d.push("new Map"),v.push(e+"."+Array.from(t).map((function(e){var t=e[0],r=e[1];return"set("+o(t)+", "+o(r)+")"})).join("."));break;default:d.push(null===Object.getPrototypeOf(t)?"Object.create(null)":"{}"),Object.keys(t).forEach((function(r){v.push(""+e+function(e){return/^[_$a-zA-Z][_$a-zA-Z0-9]*$/.test(e)?"."+e:"["+j(JSON.stringify(e))+"]"}(r)+"="+o(t[r]))}))}})),v.push("return "+f),"(function("+O.join(",")+"){"+v.join(";")+"}("+d.join(",")+"))"}return f}}}]);
|
Binary file
|
Binary file
|