From a760d02a26d35b7352f418a7a70e70df784ee4cf Mon Sep 17 00:00:00 2001 From: Ali Sharafi Date: Sat, 23 Jul 2022 08:58:47 +0430 Subject: [PATCH] Production Build --- dist/css/app.css | 2 +- dist/js/app.js | 2 +- dist/js/main.js | 2 +- dist/popup.css | 1 + dist/popup.html | 13 +++++++++++++ dist/popup.js | 2 ++ dist/popup.js.LICENSE.txt | 5 +++++ 7 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 dist/popup.css create mode 100644 dist/popup.html create mode 100644 dist/popup.js create mode 100644 dist/popup.js.LICENSE.txt diff --git a/dist/css/app.css b/dist/css/app.css index 87fc36e..17b0caf 100644 --- a/dist/css/app.css +++ b/dist/css/app.css @@ -1 +1 @@ -.translator-wraper{-webkit-animation:fadeIn .3s;animation:fadeIn .3s;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);bottom:0;direction:ltr;display:flex;height:300px;justify-content:flex-start;position:fixed;right:0;text-align:left;transition:visibility .3s linear,opacity .3s linear;width:400px;z-index:1000}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1;visibility:visible}}@keyframes fadeIn{0%{opacity:0}to{opacity:1;visibility:visible}} +.translator-wraper{-webkit-animation:fadeIn .3s;animation:fadeIn .3s;-webkit-backdrop-filter:blur(700px);backdrop-filter:blur(700px);bottom:0;direction:ltr;display:flex;height:300px;justify-content:flex-start;position:fixed;right:0;text-align:left;transition:visibility .3s linear,opacity .3s linear;width:400px;z-index:1000}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1;visibility:visible}}@keyframes fadeIn{0%{opacity:0}to{opacity:1;visibility:visible}}@-webkit-keyframes button-anim{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@keyframes button-anim{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.save-button.loading{color:transparent}.save-button.loading:after{opacity:1}.save-button:after{-webkit-animation:button-anim .7s linear infinite;animation:button-anim .7s linear infinite;border:.15em solid transparent;border-radius:50%;border-right-color:#fff;content:"";display:block;height:1.2em;left:calc(50% - .75em);opacity:0;position:absolute;top:33%;width:1.2em} diff --git a/dist/js/app.js b/dist/js/app.js index c189fb1..613f6b7 100644 --- a/dist/js/app.js +++ b/dist/js/app.js @@ -1,2 +1,2 @@ /*! For license information please see app.js.LICENSE.txt */ -(()=>{var e,t={7757:(e,t,i)=>{e.exports=i(5666)},6890:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>C});var n=i(8239),r=i(2444),o=/%[sdj%]/g;function a(){for(var e=arguments.length,t=Array(e),i=0;i=a)return e;switch(e){case"%s":return String(t[n++]);case"%d":return Number(t[n++]);case"%j":try{return JSON.stringify(t[n++])}catch(e){return"[Circular]"}break;default:return e}})),s=t[n];n()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},m={integer:function(e){return m.number(e)&&parseInt(e,10)===e},float:function(e){return m.number(e)&&!m.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===(void 0===e?"undefined":(0,r.Z)(e))&&!m.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&!!e.match(f.email)&&e.length<255},url:function(e){return"string"==typeof e&&!!e.match(f.url)},hex:function(e){return"string"==typeof e&&!!e.match(f.hex)}};const g=function(e,t,i,n,o){if(e.required&&void 0===t)p(e,t,i,n,o);else{var l=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(l)>-1?m[l](t)||n.push(a(o.messages.types[l],e.fullField,e.type)):l&&(void 0===t?"undefined":(0,r.Z)(t))!==e.type&&n.push(a(o.messages.types[l],e.fullField,e.type))}};const b={required:p,whitespace:h,type:g,range:function(e,t,i,n,r){var o="number"==typeof e.len,l="number"==typeof e.min,s="number"==typeof e.max,c=t,u=null,d="number"==typeof t,p="string"==typeof t,h=Array.isArray(t);if(d?u="number":p?u="string":h&&(u="array"),!u)return!1;h&&(c=t.length),p&&(c=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),o?c!==e.len&&n.push(a(r.messages[u].len,e.fullField,e.len)):l&&!s&&ce.max?n.push(a(r.messages[u].max,e.fullField,e.max)):l&&s&&(ce.max)&&n.push(a(r.messages[u].range,e.fullField,e.min,e.max))},enum:function(e,t,i,n,r){e.enum=Array.isArray(e.enum)?e.enum:[],-1===e.enum.indexOf(t)&&n.push(a(r.messages.enum,e.fullField,e.enum.join(", ")))},pattern:function(e,t,i,n,r){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||n.push(a(r.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||n.push(a(r.messages.pattern.mismatch,e.fullField,t,e.pattern))}}};const v=function(e,t,i,n,o){var a=[],l=Array.isArray(t)?"array":void 0===t?"undefined":(0,r.Z)(t);b.required(e,t,n,a,o,l),i(a)};const _=function(e,t,i,n,r){var o=e.type,a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(l(t,o)&&!e.required)return i();b.required(e,t,n,a,r,o),l(t,o)||b.type(e,t,n,a,r)}i(a)},y={string:function(e,t,i,n,r){var o=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(l(t,"string")&&!e.required)return i();b.required(e,t,n,o,r,"string"),l(t,"string")||(b.type(e,t,n,o,r),b.range(e,t,n,o,r),b.pattern(e,t,n,o,r),!0===e.whitespace&&b.whitespace(e,t,n,o,r))}i(o)},method:function(e,t,i,n,r){var o=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(l(t)&&!e.required)return i();b.required(e,t,n,o,r),void 0!==t&&b.type(e,t,n,o,r)}i(o)},number:function(e,t,i,n,r){var o=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(l(t)&&!e.required)return i();b.required(e,t,n,o,r),void 0!==t&&(b.type(e,t,n,o,r),b.range(e,t,n,o,r))}i(o)},boolean:function(e,t,i,n,r){var o=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(l(t)&&!e.required)return i();b.required(e,t,n,o,r),void 0!==t&&b.type(e,t,n,o,r)}i(o)},regexp:function(e,t,i,n,r){var o=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(l(t)&&!e.required)return i();b.required(e,t,n,o,r),l(t)||b.type(e,t,n,o,r)}i(o)},integer:function(e,t,i,n,r){var o=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(l(t)&&!e.required)return i();b.required(e,t,n,o,r),void 0!==t&&(b.type(e,t,n,o,r),b.range(e,t,n,o,r))}i(o)},float:function(e,t,i,n,r){var o=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(l(t)&&!e.required)return i();b.required(e,t,n,o,r),void 0!==t&&(b.type(e,t,n,o,r),b.range(e,t,n,o,r))}i(o)},array:function(e,t,i,n,r){var o=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(l(t,"array")&&!e.required)return i();b.required(e,t,n,o,r,"array"),l(t,"array")||(b.type(e,t,n,o,r),b.range(e,t,n,o,r))}i(o)},object:function(e,t,i,n,r){var o=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(l(t)&&!e.required)return i();b.required(e,t,n,o,r),void 0!==t&&b.type(e,t,n,o,r)}i(o)},enum:function(e,t,i,n,r){var o=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(l(t)&&!e.required)return i();b.required(e,t,n,o,r),t&&b.enum(e,t,n,o,r)}i(o)},pattern:function(e,t,i,n,r){var o=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(l(t,"string")&&!e.required)return i();b.required(e,t,n,o,r),l(t,"string")||b.pattern(e,t,n,o,r)}i(o)},date:function(e,t,i,n,r){var o=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(l(t)&&!e.required)return i();if(b.required(e,t,n,o,r),!l(t)){var a=void 0;a="number"==typeof t?new Date(t):t,b.type(e,a,n,o,r),a&&b.range(e,a.getTime(),n,o,r)}}i(o)},url:_,hex:_,email:_,required:v};function x(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var w=x();function k(e){this.rules=null,this._messages=w,this.define(e)}k.prototype={messages:function(e){return e&&(this._messages=d(x(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==(void 0===e?"undefined":(0,r.Z)(e))||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t=void 0,i=void 0;for(t in e)e.hasOwnProperty(t)&&(i=e[t],this.rules[t]=Array.isArray(i)?i:[i])},validate:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments[2],l=e,s=i,p=o;if("function"==typeof s&&(p=s,s={}),this.rules&&0!==Object.keys(this.rules).length){if(s.messages){var h=this.messages();h===w&&(h=x()),d(h,s.messages),s.messages=h}else s.messages=this.messages();var f=void 0,m=void 0,g={},b=s.keys||Object.keys(this.rules);b.forEach((function(i){f=t.rules[i],m=l[i],f.forEach((function(r){var o=r;"function"==typeof o.transform&&(l===e&&(l=(0,n.Z)({},l)),m=l[i]=o.transform(m)),(o="function"==typeof o?{validator:o}:(0,n.Z)({},o)).validator=t.getValidationMethod(o),o.field=i,o.fullField=o.fullField||i,o.type=t.getType(o),o.validator&&(g[i]=g[i]||[],g[i].push({rule:o,value:m,source:l,field:i}))}))}));var v={};c(g,s,(function(e,t){var i=e.rule,o=!("object"!==i.type&&"array"!==i.type||"object"!==(0,r.Z)(i.fields)&&"object"!==(0,r.Z)(i.defaultField));function l(e,t){return(0,n.Z)({},t,{fullField:i.fullField+"."+e})}function c(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],c=r;if(Array.isArray(c)||(c=[c]),c.length,c.length&&i.message&&(c=[].concat(i.message)),c=c.map(u(i)),s.first&&c.length)return v[i.field]=1,t(c);if(o){if(i.required&&!e.value)return c=i.message?[].concat(i.message).map(u(i)):s.error?[s.error(i,a(s.messages.required,i.field))]:[],t(c);var d={};if(i.defaultField)for(var p in e.value)e.value.hasOwnProperty(p)&&(d[p]=i.defaultField);for(var h in d=(0,n.Z)({},d,e.rule.fields))if(d.hasOwnProperty(h)){var f=Array.isArray(d[h])?d[h]:[d[h]];d[h]=f.map(l.bind(null,h))}var m=new k(d);m.messages(s.messages),e.rule.options&&(e.rule.options.messages=s.messages,e.rule.options.error=s.error),m.validate(e.value,e.rule.options||s,(function(e){t(e&&e.length?c.concat(e):e)}))}else t(c)}o=o&&(i.required||!i.required&&e.value),i.field=e.field;var d=i.validator(i,e.value,c,e.source,s);d&&d.then&&d.then((function(){return c()}),(function(e){return c(e)}))}),(function(e){_(e)}))}else p&&p();function _(e){var t,i=void 0,n=void 0,r=[],o={};for(i=0;i{e.exports=i(1609)},5448:(e,t,i)=>{"use strict";var n=i(4867),r=i(6026),o=i(4372),a=i(5327),l=i(4097),s=i(4109),c=i(7985),u=i(5061),d=i(7874),p=i(5263);e.exports=function(e){return new Promise((function(t,i){var h,f=e.data,m=e.headers,g=e.responseType;function b(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}n.isFormData(f)&&delete m["Content-Type"];var v=new XMLHttpRequest;if(e.auth){var _=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(_+":"+y)}var x=l(e.baseURL,e.url);function w(){if(v){var n="getAllResponseHeaders"in v?s(v.getAllResponseHeaders()):null,o={data:g&&"text"!==g&&"json"!==g?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:n,config:e,request:v};r((function(e){t(e),b()}),(function(e){i(e),b()}),o),v=null}}if(v.open(e.method.toUpperCase(),a(x,e.params,e.paramsSerializer),!0),v.timeout=e.timeout,"onloadend"in v?v.onloadend=w:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(w)},v.onabort=function(){v&&(i(u("Request aborted",e,"ECONNABORTED",v)),v=null)},v.onerror=function(){i(u("Network Error",e,null,v)),v=null},v.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||d;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),i(u(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",v)),v=null},n.isStandardBrowserEnv()){var k=(e.withCredentials||c(x))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;k&&(m[e.xsrfHeaderName]=k)}"setRequestHeader"in v&&n.forEach(m,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete m[t]:v.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(v.withCredentials=!!e.withCredentials),g&&"json"!==g&&(v.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&v.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&v.upload&&v.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){v&&(i(!e||e&&e.type?new p("canceled"):e),v.abort(),v=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),f||(f=null),v.send(f)}))}},1609:(e,t,i)=>{"use strict";var n=i(4867),r=i(1849),o=i(321),a=i(7185);var l=function e(t){var i=new o(t),l=r(o.prototype.request,i);return n.extend(l,o.prototype,i),n.extend(l,i),l.create=function(i){return e(a(t,i))},l}(i(5546));l.Axios=o,l.Cancel=i(5263),l.CancelToken=i(4972),l.isCancel=i(6502),l.VERSION=i(7288).version,l.all=function(e){return Promise.all(e)},l.spread=i(8713),l.isAxiosError=i(6268),e.exports=l,e.exports.default=l},5263:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},4972:(e,t,i)=>{"use strict";var n=i(5263);function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var i=this;this.promise.then((function(e){if(i._listeners){var t,n=i._listeners.length;for(t=0;t{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,i)=>{"use strict";var n=i(4867),r=i(5327),o=i(782),a=i(3572),l=i(7185),s=i(4875),c=s.validators;function u(e){this.defaults=e,this.interceptors={request:new o,response:new o}}u.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=l(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var i=t.transitional;void 0!==i&&s.assertOptions(i,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var n=[],r=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var o,u=[];if(this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)})),!r){var d=[a,void 0];for(Array.prototype.unshift.apply(d,n),d=d.concat(u),o=Promise.resolve(t);d.length;)o=o.then(d.shift(),d.shift());return o}for(var p=t;n.length;){var h=n.shift(),f=n.shift();try{p=h(p)}catch(e){f(e);break}}try{o=a(p)}catch(e){return Promise.reject(e)}for(;u.length;)o=o.then(u.shift(),u.shift());return o},u.prototype.getUri=function(e){return e=l(this.defaults,e),r(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,i){return this.request(l(i||{},{method:e,url:t,data:(i||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,i,n){return this.request(l(n||{},{method:e,url:t,data:i}))}})),e.exports=u},782:(e,t,i)=>{"use strict";var n=i(4867);function r(){this.handlers=[]}r.prototype.use=function(e,t,i){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},4097:(e,t,i)=>{"use strict";var n=i(1793),r=i(7303);e.exports=function(e,t){return e&&!n(t)?r(e,t):t}},5061:(e,t,i)=>{"use strict";var n=i(481);e.exports=function(e,t,i,r,o){var a=new Error(e);return n(a,t,i,r,o)}},3572:(e,t,i)=>{"use strict";var n=i(4867),r=i(8527),o=i(6502),a=i(5546),l=i(5263);function s(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new l("canceled")}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=r.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return s(e),t.data=r.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(s(e),t&&t.response&&(t.response.data=r.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:e=>{"use strict";e.exports=function(e,t,i,n,r){return e.config=t,i&&(e.code=i),e.request=n,e.response=r,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},7185:(e,t,i)=>{"use strict";var n=i(4867);e.exports=function(e,t){t=t||{};var i={};function r(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function o(i){return n.isUndefined(t[i])?n.isUndefined(e[i])?void 0:r(void 0,e[i]):r(e[i],t[i])}function a(e){if(!n.isUndefined(t[e]))return r(void 0,t[e])}function l(i){return n.isUndefined(t[i])?n.isUndefined(e[i])?void 0:r(void 0,e[i]):r(void 0,t[i])}function s(i){return i in t?r(e[i],t[i]):i in e?r(void 0,e[i]):void 0}var c={url:a,method:a,data:a,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:s};return n.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||o,r=t(e);n.isUndefined(r)&&t!==s||(i[e]=r)})),i}},6026:(e,t,i)=>{"use strict";var n=i(5061);e.exports=function(e,t,i){var r=i.config.validateStatus;i.status&&r&&!r(i.status)?t(n("Request failed with status code "+i.status,i.config,null,i.request,i)):e(i)}},8527:(e,t,i)=>{"use strict";var n=i(4867),r=i(5546);e.exports=function(e,t,i){var o=this||r;return n.forEach(i,(function(i){e=i.call(o,e,t)})),e}},5546:(e,t,i)=>{"use strict";var n=i(4155),r=i(4867),o=i(6016),a=i(481),l=i(7874),s={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,d={transitional:l,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==n&&"[object process]"===Object.prototype.toString.call(n))&&(u=i(5448)),u),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(c(t,"application/json"),function(e,t,i){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(i||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||d.transitional,i=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,o=!i&&"json"===this.responseType;if(o||n&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw a(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){d.headers[e]=r.merge(s)})),e.exports=d},7874:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},7288:e=>{e.exports={version:"0.26.1"}},1849:e=>{"use strict";e.exports=function(e,t){return function(){for(var i=new Array(arguments.length),n=0;n{"use strict";var n=i(4867);function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,i){if(!t)return e;var o;if(i)o=i(t);else if(n.isURLSearchParams(t))o=t.toString();else{var a=[];n.forEach(t,(function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),a.push(r(t)+"="+r(e))})))})),o=a.join("&")}if(o){var l=e.indexOf("#");-1!==l&&(e=e.slice(0,l)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},7303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,i)=>{"use strict";var n=i(4867);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,i,r,o,a){var l=[];l.push(e+"="+encodeURIComponent(t)),n.isNumber(i)&&l.push("expires="+new Date(i).toGMTString()),n.isString(r)&&l.push("path="+r),n.isString(o)&&l.push("domain="+o),!0===a&&l.push("secure"),document.cookie=l.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},6268:(e,t,i)=>{"use strict";var n=i(4867);e.exports=function(e){return n.isObject(e)&&!0===e.isAxiosError}},7985:(e,t,i)=>{"use strict";var n=i(4867);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");function r(e){var n=e;return t&&(i.setAttribute("href",n),n=i.href),i.setAttribute("href",n),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}return e=r(window.location.href),function(t){var i=n.isString(t)?r(t):t;return i.protocol===e.protocol&&i.host===e.host}}():function(){return!0}},6016:(e,t,i)=>{"use strict";var n=i(4867);e.exports=function(e,t){n.forEach(e,(function(i,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=i,delete e[n])}))}},4109:(e,t,i)=>{"use strict";var n=i(4867),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,i,o,a={};return e?(n.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=n.trim(e.substr(0,o)).toLowerCase(),i=n.trim(e.substr(o+1)),t){if(a[t]&&r.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([i]):a[t]?a[t]+", "+i:i}})),a):a}},8713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},4875:(e,t,i)=>{"use strict";var n=i(7288).version,r={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){r[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}}));var o={};r.transitional=function(e,t,i){function r(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(i?". "+i:"")}return function(i,n,a){if(!1===e)throw new Error(r(n," has been removed"+(t?" in "+t:"")));return t&&!o[n]&&(o[n]=!0,console.warn(r(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(i,n,a)}},e.exports={assertOptions:function(e,t,i){if("object"!=typeof e)throw new TypeError("options must be an object");for(var n=Object.keys(e),r=n.length;r-- >0;){var o=n[r],a=t[o];if(a){var l=e[o],s=void 0===l||a(l,o,e);if(!0!==s)throw new TypeError("option "+o+" must be "+s)}else if(!0!==i)throw Error("Unknown option "+o)}},validators:r}},4867:(e,t,i)=>{"use strict";var n=i(1849),r=Object.prototype.toString;function o(e){return Array.isArray(e)}function a(e){return void 0===e}function l(e){return"[object ArrayBuffer]"===r.call(e)}function s(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==r.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===r.call(e)}function d(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var i=0,n=e.length;i{var t=/^(attrs|props|on|nativeOn|class|style|hook)$/;function i(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}}e.exports=function(e){return e.reduce((function(e,n){var r,o,a,l,s;for(a in n)if(r=e[a],o=n[a],r&&t.test(a))if("class"===a&&("string"==typeof r&&(s=r,e[a]=r={},r[s]=!0),"string"==typeof o&&(s=o,n[a]=o={},o[s]=!0)),"on"===a||"nativeOn"===a||"hook"===a)for(l in o)r[l]=i(r[l],o[l]);else if(Array.isArray(r))e[a]=r.concat(o);else if(Array.isArray(o))e[a]=[r].concat(o);else for(l in o)r[l]=o[l];else e[a]=n[a];return e}),{})}},6503:(e,t,i)=>{"use strict";var n=i(7757),r=i.n(n),o=i(538),a=i(9669),l=i.n(a);function s(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return c(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i1&&void 0!==arguments[1]?arguments[1]:0,i=(_[e[t+0]]+_[e[t+1]]+_[e[t+2]]+_[e[t+3]]+"-"+_[e[t+4]]+_[e[t+5]]+"-"+_[e[t+6]]+_[e[t+7]]+"-"+_[e[t+8]]+_[e[t+9]]+"-"+_[e[t+10]]+_[e[t+11]]+_[e[t+12]]+_[e[t+13]]+_[e[t+14]]+_[e[t+15]]).toLowerCase();if(!v(i))throw TypeError("Stringified UUID is invalid");return i};const w=function(e,t,i){var n=(e=e||{}).random||(e.rng||g)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){i=i||0;for(var r=0;r<16;++r)t[i+r]=n[r];return t}return x(n)};function k(e,t){for(var i=0;i1?(i=this.parseMeanings(t),n=this.generateDefinitionID(t.length)):(i=t[0].replace(/<[^>]*>/g,""),n=this.generateUID()),this.sendToServiceWorker(e,i,n,"LVL6")}},{key:"sendToServiceWorker",value:function(e,t,i,n){chrome.runtime.sendMessage({message:"store",payload:{word:e,meanings:t,category:n,sheetID:this.sheetID,setID:"471e34bb-cd09-4b1b-9169-9275ddf7b181",definitionsID:i}},(function(){}))}},{key:"generateDefinitionID",value:function(e){for(var t="",i=0;i]*>/g,""),e[i+1]&&(t+="\n---\n");return t}}],i&&k(t.prototype,i),n&&k(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();const S=new C;var O=i(4720),$=i(3379),E=i.n($),D=i(416),T={insert:"head",singleton:!1};E()(D.Z,T);D.Z.locals;const M={components:{"el-tabs":O.Tabs,"el-tab-pane":O.TabPane,"el-row":O.Row,"el-checkbox":O.Checkbox,"el-checkbox-group":O.CheckboxGroup,"el-button":O.Button,"el-input":O.Input},props:["translation"],data:function(){return{activeName:"first",items:[],additionalMeaning:"",additionalExample:"",localTranslation:this.translation,hidden:!1}},computed:{learners:function(){return this.localTranslation.learners},examples:function(){return this.localTranslation.examples},meanings:function(){return this.localTranslation.meanings}},mounted:function(){var e=this;chrome.runtime.onMessage.addListener((function(t,i){"updateRes"===t.type&&e.updateStoredStatus(t.message,t.payload)}))},methods:{updateStoredStatus:function(e,t){"success"==e?this.close():alert(t)},save:function(){this.additionalMeaning&&this.items.push(this.additionalMeaning),this.additionalExample&&this.items.push(this.additionalExample),S.store(this.localTranslation.word,this.items),this.items=[],this.additionalMeaning="",this.additionalExample=""},close:function(){this.hidden=!0},isIncluesSeleted:function(e){return-1!==this.items.indexOf(e)},itemClicked:function(e){if(this.isIncluesSeleted(e)){var t=this.items.indexOf(e);this.items.splice(t,1)}else this.items.push(e)}}};var P=i(4679),N={insert:"head",singleton:!1};E()(P.Z,N);P.Z.locals;var I=function(e,t,i,n,r,o,a,l){var s,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=i,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(s=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=s):r&&(s=l?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),s)if(c.functional){c._injectStyles=s;var u=c.render;c.render=function(e,t){return s.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,s):[s]}return{exports:e,options:c}}(M,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:{"translator-wraper":!0,hidden:e.hidden}},[i("el-tabs",{staticClass:"main-card",attrs:{type:"card"}},[i("el-tab-pane",{attrs:{label:"Learners"}},[i("el-row",{staticClass:"translation-item"},[i("el-input",{attrs:{placeholder:"Additional Meaning"},model:{value:e.additionalMeaning,callback:function(t){e.additionalMeaning=t},expression:"additionalMeaning"}})],1),e._v(" "),e._l(e.learners,(function(t,n){return i("el-row",{key:n,staticClass:"translation-item",style:"background-color:"+(e.isIncluesSeleted(t)?"#98e8f5":""),nativeOn:{click:function(i){return e.itemClicked(t)}}},[i("span",{domProps:{innerHTML:e._s(t)}})])}))],2),e._v(" "),i("el-tab-pane",{attrs:{label:"Examples"}},[i("el-row",{staticClass:"translation-item"},[i("el-input",{attrs:{placeholder:"Additional Example"},model:{value:e.additionalExample,callback:function(t){e.additionalExample=t},expression:"additionalExample"}})],1),e._v(" "),e._l(e.examples,(function(t,n){return i("el-row",{key:n,staticClass:"translation-item",style:"background-color:"+(e.isIncluesSeleted(t)?"#98e8f5":""),nativeOn:{click:function(i){return e.itemClicked(t)}}},[i("span",{domProps:{innerHTML:e._s(t)}})])}))],2),e._v(" "),i("el-tab-pane",{attrs:{label:"Meanings"}},e._l(e.meanings,(function(t,n){return i("el-row",{key:n,staticClass:"translation-item",style:"background-color:"+(e.isIncluesSeleted(t)?"#98e8f5":""),nativeOn:{click:function(i){return e.itemClicked(t)}}},[i("span",{domProps:{innerHTML:e._s(t)}})])})),1)],1),e._v(" "),i("el-button",{staticClass:"save-button",attrs:{type:"success"},on:{click:e.save}},[e._v("Save")]),e._v(" "),i("el-button",{staticClass:"close-button",attrs:{type:"danger",circle:""},on:{click:e.close}},[e._v("X")])],1)}),[],!1,null,"61f62050",null);const z=I.exports;function j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e,t){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;j(this,e),this.appComponent=t,this.translation=i,this.registerListener(),this.wordsList=[]}var t,i,n;return t=e,(i=[{key:"registerListener",value:function(){var e=this;document.addEventListener("mouseup",(function(){return e.handleSelectedText()}))}},{key:"handleSelectedText",value:function(){var e;return L(this,void 0,void 0,r().mark((function t(){var i;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(i=null===(e=document.getSelection())||void 0===e?void 0:e.toString().trim())||!this.isSelectedValid(i)){t.next=8;break}return this.wordsList.push(i),t.next=5,this.translateWord(i);case 5:this.translation=t.sent,this.createModal(),this.translation&&this.mountDataToPage();case 8:case"end":return t.stop()}}),t,this)})))}},{key:"mountDataToPage",value:function(){var e=this;this.appComponent?(o.default.set(this.appComponent.$children[0],"localTranslation",this.translation),o.default.set(this.appComponent.$children[0],"hidden",!1)):this.appComponent=new o.default({el:"#main-wraper",render:function(t){return t(z,{props:{translation:e.translation}})}})}},{key:"translateWord",value:function(e){return L(this,void 0,void 0,r().mark((function t(){var i;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=new h,t.next=3,i.readTranslate(e);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t)})))}},{key:"createModal",value:function(){if(!document.querySelector(".translator-wraper")){var e=document.createElement("div"),t=document.createElement("div");t.id="main-wraper",e.append(t),document.body.append(e)}}},{key:"isSelectedValid",value:function(e){return!(!isNaN(Number(e))||-1!==this.wordsList.indexOf(e)||1!==e.split(" ").length)}}])&&A(t.prototype,i),n&&A(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}())},2945:(e,t,i)=>{e.exports={default:i(6981),__esModule:!0}},3516:(e,t,i)=>{e.exports={default:i(25),__esModule:!0}},4275:(e,t,i)=>{e.exports={default:i(2392),__esModule:!0}},8239:(e,t,i)=>{"use strict";var n,r=i(2945),o=(n=r)&&n.__esModule?n:{default:n};t.Z=o.default||function(e){for(var t=1;t{"use strict";var n=a(i(4275)),r=a(i(3516)),o="function"==typeof r.default&&"symbol"==typeof n.default?function(e){return typeof e}:function(e){return e&&"function"==typeof r.default&&e.constructor===r.default&&e!==r.default.prototype?"symbol":typeof e};function a(e){return e&&e.__esModule?e:{default:e}}t.Z="function"==typeof r.default&&"symbol"===o(n.default)?function(e){return void 0===e?"undefined":o(e)}:function(e){return e&&"function"==typeof r.default&&e.constructor===r.default&&e!==r.default.prototype?"symbol":void 0===e?"undefined":o(e)}},6981:(e,t,i)=>{i(2699),e.exports=i(4579).Object.assign},25:(e,t,i)=>{i(6840),i(4058),i(8174),i(6461),e.exports=i(4579).Symbol},2392:(e,t,i)=>{i(1867),i(3871),e.exports=i(5103).f("iterator")},5663:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},9003:e=>{e.exports=function(){}},2159:(e,t,i)=>{var n=i(6727);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},7428:(e,t,i)=>{var n=i(7932),r=i(8728),o=i(6531);e.exports=function(e){return function(t,i,a){var l,s=n(t),c=r(s.length),u=o(a,c);if(e&&i!=i){for(;c>u;)if((l=s[u++])!=l)return!0}else for(;c>u;u++)if((e||u in s)&&s[u]===i)return e||u||0;return!e&&-1}}},2894:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},4579:e=>{var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},9216:(e,t,i)=>{var n=i(5663);e.exports=function(e,t,i){if(n(e),void 0===t)return e;switch(i){case 1:return function(i){return e.call(t,i)};case 2:return function(i,n){return e.call(t,i,n)};case 3:return function(i,n,r){return e.call(t,i,n,r)}}return function(){return e.apply(t,arguments)}}},8333:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},9666:(e,t,i)=>{e.exports=!i(7929)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},7467:(e,t,i)=>{var n=i(6727),r=i(3938).document,o=n(r)&&n(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},3338:e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},337:(e,t,i)=>{var n=i(6162),r=i(8195),o=i(6274);e.exports=function(e){var t=n(e),i=r.f;if(i)for(var a,l=i(e),s=o.f,c=0;l.length>c;)s.call(e,a=l[c++])&&t.push(a);return t}},3856:(e,t,i)=>{var n=i(3938),r=i(4579),o=i(9216),a=i(1818),l=i(7069),s=function(e,t,i){var c,u,d,p=e&s.F,h=e&s.G,f=e&s.S,m=e&s.P,g=e&s.B,b=e&s.W,v=h?r:r[t]||(r[t]={}),_=v.prototype,y=h?n:f?n[t]:(n[t]||{}).prototype;for(c in h&&(i=t),i)(u=!p&&y&&void 0!==y[c])&&l(v,c)||(d=u?y[c]:i[c],v[c]=h&&"function"!=typeof y[c]?i[c]:g&&u?o(d,n):b&&y[c]==d?function(e){var t=function(t,i,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,i)}return new e(t,i,n)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):m&&"function"==typeof d?o(Function.call,d):d,m&&((v.virtual||(v.virtual={}))[c]=d,e&s.R&&_&&!_[c]&&a(_,c,d)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},7929:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},3938:e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},7069:e=>{var t={}.hasOwnProperty;e.exports=function(e,i){return t.call(e,i)}},1818:(e,t,i)=>{var n=i(4743),r=i(3101);e.exports=i(9666)?function(e,t,i){return n.f(e,t,r(1,i))}:function(e,t,i){return e[t]=i,e}},4881:(e,t,i)=>{var n=i(3938).document;e.exports=n&&n.documentElement},3758:(e,t,i)=>{e.exports=!i(9666)&&!i(7929)((function(){return 7!=Object.defineProperty(i(7467)("div"),"a",{get:function(){return 7}}).a}))},799:(e,t,i)=>{var n=i(2894);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},1421:(e,t,i)=>{var n=i(2894);e.exports=Array.isArray||function(e){return"Array"==n(e)}},6727:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},3945:(e,t,i)=>{"use strict";var n=i(526),r=i(3101),o=i(5378),a={};i(1818)(a,i(2939)("iterator"),(function(){return this})),e.exports=function(e,t,i){e.prototype=n(a,{next:r(1,i)}),o(e,t+" Iterator")}},5700:(e,t,i)=>{"use strict";var n=i(6227),r=i(3856),o=i(7470),a=i(1818),l=i(5449),s=i(3945),c=i(5378),u=i(5089),d=i(2939)("iterator"),p=!([].keys&&"next"in[].keys()),h="keys",f="values",m=function(){return this};e.exports=function(e,t,i,g,b,v,_){s(i,t,g);var y,x,w,k=function(e){if(!p&&e in $)return $[e];switch(e){case h:case f:return function(){return new i(this,e)}}return function(){return new i(this,e)}},C=t+" Iterator",S=b==f,O=!1,$=e.prototype,E=$[d]||$["@@iterator"]||b&&$[b],D=E||k(b),T=b?S?k("entries"):D:void 0,M="Array"==t&&$.entries||E;if(M&&(w=u(M.call(new e)))!==Object.prototype&&w.next&&(c(w,C,!0),n||"function"==typeof w[d]||a(w,d,m)),S&&E&&E.name!==f&&(O=!0,D=function(){return E.call(this)}),n&&!_||!p&&!O&&$[d]||a($,d,D),l[t]=D,l[C]=m,b)if(y={values:S?D:k(f),keys:v?D:k(h),entries:T},_)for(x in y)x in $||o($,x,y[x]);else r(r.P+r.F*(p||O),t,y);return y}},5084:e=>{e.exports=function(e,t){return{value:t,done:!!e}}},5449:e=>{e.exports={}},6227:e=>{e.exports=!0},7177:(e,t,i)=>{var n=i(5730)("meta"),r=i(6727),o=i(7069),a=i(4743).f,l=0,s=Object.isExtensible||function(){return!0},c=!i(7929)((function(){return s(Object.preventExtensions({}))})),u=function(e){a(e,n,{value:{i:"O"+ ++l,w:{}}})},d=e.exports={KEY:n,NEED:!1,fastKey:function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,n)){if(!s(e))return"F";if(!t)return"E";u(e)}return e[n].i},getWeak:function(e,t){if(!o(e,n)){if(!s(e))return!0;if(!t)return!1;u(e)}return e[n].w},onFreeze:function(e){return c&&d.NEED&&s(e)&&!o(e,n)&&u(e),e}}},8082:(e,t,i)=>{"use strict";var n=i(9666),r=i(6162),o=i(8195),a=i(6274),l=i(6530),s=i(799),c=Object.assign;e.exports=!c||i(7929)((function(){var e={},t={},i=Symbol(),n="abcdefghijklmnopqrst";return e[i]=7,n.split("").forEach((function(e){t[e]=e})),7!=c({},e)[i]||Object.keys(c({},t)).join("")!=n}))?function(e,t){for(var i=l(e),c=arguments.length,u=1,d=o.f,p=a.f;c>u;)for(var h,f=s(arguments[u++]),m=d?r(f).concat(d(f)):r(f),g=m.length,b=0;g>b;)h=m[b++],n&&!p.call(f,h)||(i[h]=f[h]);return i}:c},526:(e,t,i)=>{var n=i(2159),r=i(7856),o=i(3338),a=i(8989)("IE_PROTO"),l=function(){},s=function(){var e,t=i(7467)("iframe"),n=o.length;for(t.style.display="none",i(4881).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(" + + \ No newline at end of file diff --git a/dist/popup.js b/dist/popup.js new file mode 100644 index 0000000..19c9c58 --- /dev/null +++ b/dist/popup.js @@ -0,0 +1,2 @@ +/*! For license information please see popup.js.LICENSE.txt */ +(()=>{var e={7757:(e,t,n)=>{e.exports=n(5666)},9669:(e,t,n)=>{e.exports=n(1609)},5448:(e,t,n)=>{"use strict";var r=n(4867),o=n(6026),i=n(4372),a=n(5327),s=n(4097),c=n(4109),u=n(7985),l=n(5061),f=n(7874),p=n(5263);e.exports=function(e){return new Promise((function(t,n){var d,v=e.data,h=e.headers,m=e.responseType;function g(){e.cancelToken&&e.cancelToken.unsubscribe(d),e.signal&&e.signal.removeEventListener("abort",d)}r.isFormData(v)&&delete h["Content-Type"];var y=new XMLHttpRequest;if(e.auth){var _=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";h.Authorization="Basic "+btoa(_+":"+b)}var w=s(e.baseURL,e.url);function x(){if(y){var r="getAllResponseHeaders"in y?c(y.getAllResponseHeaders()):null,i={data:m&&"text"!==m&&"json"!==m?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:r,config:e,request:y};o((function(e){t(e),g()}),(function(e){n(e),g()}),i),y=null}}if(y.open(e.method.toUpperCase(),a(w,e.params,e.paramsSerializer),!0),y.timeout=e.timeout,"onloadend"in y?y.onloadend=x:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(x)},y.onabort=function(){y&&(n(l("Request aborted",e,"ECONNABORTED",y)),y=null)},y.onerror=function(){n(l("Network Error",e,null,y)),y=null},y.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||f;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",y)),y=null},r.isStandardBrowserEnv()){var $=(e.withCredentials||u(w))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;$&&(h[e.xsrfHeaderName]=$)}"setRequestHeader"in y&&r.forEach(h,(function(e,t){void 0===v&&"content-type"===t.toLowerCase()?delete h[t]:y.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),m&&"json"!==m&&(y.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&y.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(d=function(e){y&&(n(!e||e&&e.type?new p("canceled"):e),y.abort(),y=null)},e.cancelToken&&e.cancelToken.subscribe(d),e.signal&&(e.signal.aborted?d():e.signal.addEventListener("abort",d))),v||(v=null),y.send(v)}))}},1609:(e,t,n)=>{"use strict";var r=n(4867),o=n(1849),i=n(321),a=n(7185);var s=function e(t){var n=new i(t),s=o(i.prototype.request,n);return r.extend(s,i.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(5546));s.Axios=i,s.Cancel=n(5263),s.CancelToken=n(4972),s.isCancel=n(6502),s.VERSION=n(7288).version,s.all=function(e){return Promise.all(e)},s.spread=n(8713),s.isAxiosError=n(6268),e.exports=s,e.exports.default=s},5263:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},4972:(e,t,n)=>{"use strict";var r=n(5263);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,n)=>{"use strict";var r=n(4867),o=n(5327),i=n(782),a=n(3572),s=n(7185),c=n(4875),u=c.validators;function l(e){this.defaults=e,this.interceptors={request:new i,response:new i}}l.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&c.assertOptions(n,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!o){var f=[a,void 0];for(Array.prototype.unshift.apply(f,r),f=f.concat(l),i=Promise.resolve(t);f.length;)i=i.then(f.shift(),f.shift());return i}for(var p=t;r.length;){var d=r.shift(),v=r.shift();try{p=d(p)}catch(e){v(e);break}}try{i=a(p)}catch(e){return Promise.reject(e)}for(;l.length;)i=i.then(l.shift(),l.shift());return i},l.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=l},782:(e,t,n)=>{"use strict";var r=n(4867);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},4097:(e,t,n)=>{"use strict";var r=n(1793),o=n(7303);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},5061:(e,t,n)=>{"use strict";var r=n(481);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},3572:(e,t,n)=>{"use strict";var r=n(4867),o=n(8527),i=n(6502),a=n(5546),s=n(5263);function c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}e.exports=function(e){return c(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return c(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(c(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:e=>{"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},7185:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function i(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function c(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||i,o=t(e);r.isUndefined(o)&&t!==c||(n[e]=o)})),n}},6026:(e,t,n)=>{"use strict";var r=n(5061);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},8527:(e,t,n)=>{"use strict";var r=n(4867),o=n(5546);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},5546:(e,t,n)=>{"use strict";var r=n(4155),o=n(4867),i=n(6016),a=n(481),s=n(7874),c={"Content-Type":"application/x-www-form-urlencoded"};function u(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l,f={transitional:s,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==r&&"[object process]"===Object.prototype.toString.call(r))&&(l=n(5448)),l),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e)?e:o.isArrayBufferView(e)?e.buffer:o.isURLSearchParams(e)?(u(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):o.isObject(e)||t&&"application/json"===t["Content-Type"]?(u(t,"application/json"),function(e,t,n){if(o.isString(e))try{return(t||JSON.parse)(e),o.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||f.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||r&&o.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw a(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){f.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){f.headers[e]=o.merge(c)})),e.exports=f},7874:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},7288:e=>{e.exports={version:"0.26.1"}},1849:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r{"use strict";var r=n(4867);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},7303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,n)=>{"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},6268:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},7985:(e,t,n)=>{"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},6016:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},4109:(e,t,n)=>{"use strict";var r=n(4867),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},8713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},4875:(e,t,n)=>{"use strict";var r=n(7288).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new Error(o(r," has been removed"+(t?" in "+t:"")));return t&&!i[r]&&(i[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var s=e[i],c=void 0===s||a(s,i,e);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},4867:(e,t,n)=>{"use strict";var r=n(1849),o=Object.prototype.toString;function i(e){return Array.isArray(e)}function a(e){return void 0===e}function s(e){return"[object ArrayBuffer]"===o.call(e)}function c(e){return null!==e&&"object"==typeof e}function u(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(e){return"[object Function]"===o.call(e)}function f(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n{var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var s,c=[],u=!1,l=-1;function f(){u&&s&&(u=!1,s.length?c=s.concat(c):l=-1,c.length&&p())}function p(){if(!u){var e=a(f);u=!0;for(var t=c.length;t;){for(s=c,c=[];++l1)for(var n=1;n{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),a=new S(r||[]);return i._invoke=function(e,t,n){var r=f;return function(o,i){if(r===d)throw new Error("Generator is already running");if(r===v){if("throw"===o)throw i;return E()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var c=l(e,t,n);if("normal"===c.type){if(r=n.done?v:p,c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=v,n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f="suspendedStart",p="suspendedYield",d="executing",v="completed",h={};function m(){}function g(){}function y(){}var _={};c(_,i,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(T([])));w&&w!==n&&r.call(w,i)&&(_=w);var x=y.prototype=m.prototype=Object.create(_);function $(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(o,i,a,s){var c=l(e[o],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function k(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,h;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,h):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function T(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=Object.freeze({});function t(e){return null==e}function r(e){return null!=e}function o(e){return!0===e}function i(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function a(e){return null!==e&&"object"==typeof e}var s=Object.prototype.toString;function c(e){return"[object Object]"===s.call(e)}function u(e){return"[object RegExp]"===s.call(e)}function l(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function f(e){return r(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function p(e){return null==e?"":Array.isArray(e)||c(e)&&e.toString===s?JSON.stringify(e,null,2):String(e)}function d(e){var t=parseFloat(e);return isNaN(t)?e:t}function v(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o-1)return e.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function _(e,t){return y.call(e,t)}function b(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var w=/-(\w)/g,x=b((function(e){return e.replace(w,(function(e,t){return t?t.toUpperCase():""}))})),$=b((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),C=/\B([A-Z])/g,k=b((function(e){return e.replace(C,"-$1").toLowerCase()}));var A=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function O(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function S(e,t){for(var n in t)e[n]=t[n];return e}function T(e){for(var t={},n=0;n0,Y=W&&W.indexOf("edge/")>0,Q=(W&&W.indexOf("android"),W&&/iphone|ipad|ipod|ios/.test(W)||"ios"===G),ee=(W&&/chrome\/\d+/.test(W),W&&/phantomjs/.test(W),W&&W.match(/firefox\/(\d+)/)),te={}.watch,ne=!1;if(J)try{var re={};Object.defineProperty(re,"passive",{get:function(){ne=!0}}),window.addEventListener("test-passive",null,re)}catch(e){}var oe=function(){return void 0===z&&(z=!J&&!K&&void 0!==n.g&&(n.g.process&&"server"===n.g.process.env.VUE_ENV)),z},ie=J&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ae(e){return"function"==typeof e&&/native code/.test(e.toString())}var se,ce="undefined"!=typeof Symbol&&ae(Symbol)&&"undefined"!=typeof Reflect&&ae(Reflect.ownKeys);se="undefined"!=typeof Set&&ae(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ue=E,le=0,fe=function(){this.id=le++,this.subs=[]};fe.prototype.addSub=function(e){this.subs.push(e)},fe.prototype.removeSub=function(e){g(this.subs,e)},fe.prototype.depend=function(){fe.target&&fe.target.addDep(this)},fe.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t-1)if(i&&!_(o,"default"))a=!1;else if(""===a||a===k(e)){var c=qe(String,o.type);(c<0||s0&&(dt((s=vt(s,(n||"")+"_"+a))[0])&&dt(u)&&(l[c]=ye(u.text+s[0].text),s.shift()),l.push.apply(l,s)):i(s)?dt(u)?l[c]=ye(u.text+s):""!==s&&l.push(ye(s)):dt(s)&&dt(u)?l[c]=ye(u.text+s.text):(o(e._isVList)&&r(s.tag)&&t(s.key)&&r(n)&&(s.key="__vlist"+n+"_"+a+"__"),l.push(s)));return l}function ht(e,t){if(e){for(var n=Object.create(null),r=ce?Reflect.ownKeys(e):Object.keys(e),o=0;o0,a=t?!!t.$stable:!i,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&r&&r!==e&&s===r.$key&&!i&&!r.$hasNormal)return r;for(var c in o={},t)t[c]&&"$"!==c[0]&&(o[c]=bt(n,c,t[c]))}else o={};for(var u in n)u in o||(o[u]=wt(n,u));return t&&Object.isExtensible(t)&&(t._normalized=o),H(o,"$stable",a),H(o,"$key",s),H(o,"$hasNormal",i),o}function bt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({}),t=(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:pt(e))&&e[0];return e&&(!t||1===e.length&&t.isComment&&!yt(t))?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function wt(e,t){return function(){return e[t]}}function xt(e,t){var n,o,i,s,c;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),o=0,i=e.length;odocument.createEvent("Event").timeStamp&&(vn=function(){return hn.now()})}function mn(){var e,t;for(dn=vn(),fn=!0,sn.sort((function(e,t){return e.id-t.id})),pn=0;pnpn&&sn[n].id>e.id;)n--;sn.splice(n+1,0,e)}else sn.push(e);ln||(ln=!0,rt(mn))}}(this)},yn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||a(e)||this.deep){var t=this.value;if(this.value=e,this.user){var n='callback for watcher "'+this.expression+'"';Ve(this.cb,this.vm,[e,t],this.vm,n)}else this.cb.call(this.vm,e,t)}}},yn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},yn.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},yn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var _n={enumerable:!0,configurable:!0,get:E,set:E};function bn(e,t,n){_n.get=function(){return this[t][n]},_n.set=function(e){this[t][n]=e},Object.defineProperty(e,n,_n)}function wn(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},o=e.$options._propKeys=[];e.$parent&&Ce(!1);var i=function(i){o.push(i);var a=Me(i,t,n,e);Oe(r,i,a),i in e||bn(e,"_props",i)};for(var a in t)i(a);Ce(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?E:A(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;c(t=e._data="function"==typeof t?function(e,t){de();try{return e.call(t,t)}catch(e){return ze(e,t,"data()"),{}}finally{ve()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,o=(e.$options.methods,n.length);for(;o--;){var i=n[o];0,r&&_(r,i)||B(i)||bn(e,"_data",i)}Ae(t,!0)}(e):Ae(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=oe();for(var o in t){var i=t[o],a="function"==typeof i?i:i.get;0,r||(n[o]=new yn(e,a||E,E,xn)),o in e||$n(e,o,i)}}(e,t.computed),t.watch&&t.watch!==te&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var o=0;o-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!u(e)&&e.test(t)}function Nn(e,t){var n=e.cache,r=e.keys,o=e._vnode;for(var i in n){var a=n[i];if(a){var s=a.name;s&&!t(s)&&Pn(n,i,r,o)}}}function Pn(e,t,n,r){var o=e[t];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),e[t]=null,g(n,t)}!function(t){t.prototype._init=function(t){var n=this;n._uid=On++,n._isVue=!0,t&&t._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var o=r.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(n,t):n.$options=Fe(Sn(n.constructor),t||{},n),n._renderProxy=n,n._self=n,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(n),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Qt(e,t)}(n),function(t){t._vnode=null,t._staticTrees=null;var n=t.$options,r=t.$vnode=n._parentVnode,o=r&&r.context;t.$slots=mt(n._renderChildren,o),t.$scopedSlots=e,t._c=function(e,n,r,o){return zt(t,e,n,r,o,!1)},t.$createElement=function(e,n,r,o){return zt(t,e,n,r,o,!0)};var i=r&&r.data;Oe(t,"$attrs",i&&i.attrs||e,null,!0),Oe(t,"$listeners",n._parentListeners||e,null,!0)}(n),an(n,"beforeCreate"),function(e){var t=ht(e.$options.inject,e);t&&(Ce(!1),Object.keys(t).forEach((function(n){Oe(e,n,t[n])})),Ce(!0))}(n),wn(n),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(n),an(n,"created"),n.$options.el&&n.$mount(n.$options.el)}}(Tn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Se,e.prototype.$delete=Te,e.prototype.$watch=function(e,t,n){var r=this;if(c(t))return An(r,e,t,n);(n=n||{}).user=!0;var o=new yn(r,e,t,n);if(n.immediate){var i='callback for immediate watcher "'+o.expression+'"';de(),Ve(t,r,[o.value],r,i),ve()}return function(){o.teardown()}}}(Tn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var o=0,i=e.length;o1?O(n):n;for(var r=O(arguments,1),o='event handler for "'+e+'"',i=0,a=n.length;iparseInt(this.max)&&Pn(t,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Pn(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){Nn(e,(function(e){return jn(t,e)}))})),this.$watch("exclude",(function(t){Nn(e,(function(e){return!jn(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=Wt(e),n=t&&t.componentOptions;if(n){var r=Ln(n),o=this.include,i=this.exclude;if(o&&(!r||!jn(o,r))||i&&r&&jn(i,r))return t;var a=this.cache,s=this.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;a[c]?(t.componentInstance=a[c].componentInstance,g(s,c),s.push(c)):(this.vnodeToCache=t,this.keyToCache=c),t.data.keepAlive=!0}return t||e&&e[0]}},Fn={KeepAlive:In};!function(e){var t={get:function(){return M}};Object.defineProperty(e,"config",t),e.util={warn:ue,extend:S,mergeOptions:Fe,defineReactive:Oe},e.set=Se,e.delete=Te,e.nextTick=rt,e.observable=function(e){return Ae(e),e},e.options=Object.create(null),F.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,S(e.options.components,Fn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=O(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Fe(this.options,e),this}}(e),En(e),function(e){F.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&c(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(Tn),Object.defineProperty(Tn.prototype,"$isServer",{get:oe}),Object.defineProperty(Tn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Tn,"FunctionalRenderContext",{value:Ft}),Tn.version="2.6.14";var Rn=v("style,class"),Mn=v("input,textarea,option,select,progress"),Un=function(e,t,n){return"value"===n&&Mn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Bn=v("contenteditable,draggable,spellcheck"),Hn=v("events,caret,typing,plaintext-only"),qn=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),zn="http://www.w3.org/1999/xlink",Vn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Jn=function(e){return Vn(e)?e.slice(6,e.length):""},Kn=function(e){return null==e||!1===e};function Gn(e){for(var t=e.data,n=e,o=e;r(o.componentInstance);)(o=o.componentInstance._vnode)&&o.data&&(t=Wn(o.data,t));for(;r(n=n.parent);)n&&n.data&&(t=Wn(t,n.data));return function(e,t){if(r(e)||r(t))return Xn(e,Zn(t));return""}(t.staticClass,t.class)}function Wn(e,t){return{staticClass:Xn(e.staticClass,t.staticClass),class:r(e.class)?[e.class,t.class]:t.class}}function Xn(e,t){return e?t?e+" "+t:e:t||""}function Zn(e){return Array.isArray(e)?function(e){for(var t,n="",o=0,i=e.length;o-1?xr(e,t,n):qn(t)?Kn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Bn(t)?e.setAttribute(t,function(e,t){return Kn(t)||"false"===t?"false":"contenteditable"===e&&Hn(t)?t:"true"}(t,n)):Vn(t)?Kn(n)?e.removeAttributeNS(zn,Jn(t)):e.setAttributeNS(zn,t,n):xr(e,t,n)}function xr(e,t,n){if(Kn(n))e.removeAttribute(t);else{if(X&&!Z&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var $r={create:br,update:br};function Cr(e,n){var o=n.elm,i=n.data,a=e.data;if(!(t(i.staticClass)&&t(i.class)&&(t(a)||t(a.staticClass)&&t(a.class)))){var s=Gn(n),c=o._transitionClasses;r(c)&&(s=Xn(s,Zn(c))),s!==o._prevClass&&(o.setAttribute("class",s),o._prevClass=s)}}var kr,Ar,Or,Sr,Tr,Er,Lr={create:Cr,update:Cr},jr=/[\w).+\-_$\]]/;function Nr(e){var t,n,r,o,i,a=!1,s=!1,c=!1,u=!1,l=0,f=0,p=0,d=0;for(r=0;r=0&&" "===(h=e.charAt(v));v--);h&&jr.test(h)||(u=!0)}}else void 0===o?(d=r+1,o=e.slice(0,r).trim()):m();function m(){(i||(i=[])).push(e.slice(d,r).trim()),d=r+1}if(void 0===o?o=e.slice(0,r).trim():0!==d&&m(),i)for(r=0;r-1?{exp:e.slice(0,Sr),key:'"'+e.slice(Sr+1)+'"'}:{exp:e,key:null};Ar=e,Sr=Tr=Er=0;for(;!Xr();)Zr(Or=Wr())?Qr(Or):91===Or&&Yr(Or);return{exp:e.slice(0,Tr),key:e.slice(Tr+1,Er)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function Wr(){return Ar.charCodeAt(++Sr)}function Xr(){return Sr>=kr}function Zr(e){return 34===e||39===e}function Yr(e){var t=1;for(Tr=Sr;!Xr();)if(Zr(e=Wr()))Qr(e);else if(91===e&&t++,93===e&&t--,0===t){Er=Sr;break}}function Qr(e){for(var t=e;!Xr()&&(e=Wr())!==t;);}var eo,to="__r";function no(e,t,n){var r=eo;return function o(){var i=t.apply(null,arguments);null!==i&&io(e,o,n,r)}}var ro=We&&!(ee&&Number(ee[1])<=53);function oo(e,t,n,r){if(ro){var o=dn,i=t;t=i._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=o||e.timeStamp<=0||e.target.ownerDocument!==document)return i.apply(this,arguments)}}eo.addEventListener(e,t,ne?{capture:n,passive:r}:n)}function io(e,t,n,r){(r||eo).removeEventListener(e,t._wrapper||t,n)}function ao(e,n){if(!t(e.data.on)||!t(n.data.on)){var o=n.data.on||{},i=e.data.on||{};eo=n.elm,function(e){if(r(e.__r)){var t=X?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}r(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(o),ut(o,i,oo,io,no,n.context),eo=void 0}}var so,co={create:ao,update:ao};function uo(e,n){if(!t(e.data.domProps)||!t(n.data.domProps)){var o,i,a=n.elm,s=e.data.domProps||{},c=n.data.domProps||{};for(o in r(c.__ob__)&&(c=n.data.domProps=S({},c)),s)o in c||(a[o]="");for(o in c){if(i=c[o],"textContent"===o||"innerHTML"===o){if(n.children&&(n.children.length=0),i===s[o])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===o&&"PROGRESS"!==a.tagName){a._value=i;var u=t(i)?"":String(i);lo(a,u)&&(a.value=u)}else if("innerHTML"===o&&er(a.tagName)&&t(a.innerHTML)){(so=so||document.createElement("div")).innerHTML=""+i+"";for(var l=so.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;l.firstChild;)a.appendChild(l.firstChild)}else if(i!==s[o])try{a[o]=i}catch(e){}}}}function lo(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,o=e._vModifiers;if(r(o)){if(o.number)return d(n)!==d(t);if(o.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var fo={create:uo,update:uo},po=b((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}));function vo(e){var t=ho(e.style);return e.staticStyle?S(e.staticStyle,t):t}function ho(e){return Array.isArray(e)?T(e):"string"==typeof e?po(e):e}var mo,go=/^--/,yo=/\s*!important$/,_o=function(e,t,n){if(go.test(t))e.style.setProperty(t,n);else if(yo.test(n))e.style.setProperty(k(t),n.replace(yo,""),"important");else{var r=wo(t);if(Array.isArray(n))for(var o=0,i=n.length;o-1?t.split(Co).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Ao(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Co).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function Oo(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&S(t,So(e.name||"v")),S(t,e),t}return"string"==typeof e?So(e):void 0}}var So=b((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),To=J&&!Z,Eo="transition",Lo="animation",jo="transition",No="transitionend",Po="animation",Do="animationend";To&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(jo="WebkitTransition",No="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Po="WebkitAnimation",Do="webkitAnimationEnd"));var Io=J?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Fo(e){Io((function(){Io(e)}))}function Ro(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),ko(e,t))}function Mo(e,t){e._transitionClasses&&g(e._transitionClasses,t),Ao(e,t)}function Uo(e,t,n){var r=Ho(e,t),o=r.type,i=r.timeout,a=r.propCount;if(!o)return n();var s=o===Eo?No:Do,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=a&&u()};setTimeout((function(){c0&&(n=Eo,l=a,f=i.length):t===Lo?u>0&&(n=Lo,l=u,f=c.length):f=(n=(l=Math.max(a,u))>0?a>u?Eo:Lo:null)?n===Eo?i.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:n===Eo&&Bo.test(r[jo+"Property"])}}function qo(e,t){for(;e.length1}function Wo(e,t){!0!==t.data.show&&Vo(t)}var Xo=function(e){var n,a,s={},c=e.modules,u=e.nodeOps;for(n=0;nv?_(e,t(o[g+1])?null:o[g+1].elm,o,d,g,i):d>g&&w(n,p,v)}(p,h,g,i,l):r(g)?(r(e.text)&&u.setTextContent(p,""),_(p,null,g,0,g.length-1,i)):r(h)?w(h,0,h.length-1):r(e.text)&&u.setTextContent(p,""):e.text!==n.text&&u.setTextContent(p,n.text),r(v)&&r(d=v.hook)&&r(d=d.postpatch)&&d(e,n)}}}function k(e,t,n){if(o(n)&&r(e.parent))e.parent.data.pendingInsert=t;else for(var i=0;i-1,a.selected!==i&&(a.selected=i);else if(N(ti(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));o||(e.selectedIndex=-1)}}function ei(e,t){return t.every((function(t){return!N(t,e)}))}function ti(e){return"_value"in e?e._value:e.value}function ni(e){e.target.composing=!0}function ri(e){e.target.composing&&(e.target.composing=!1,oi(e.target,"input"))}function oi(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function ii(e){return!e.componentInstance||e.data&&e.data.transition?e:ii(e.componentInstance._vnode)}var ai={bind:function(e,t,n){var r=t.value,o=(n=ii(n)).data&&n.data.transition,i=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&o?(n.data.show=!0,Vo(n,(function(){e.style.display=i}))):e.style.display=r?i:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=ii(n)).data&&n.data.transition?(n.data.show=!0,r?Vo(n,(function(){e.style.display=e.__vOriginalDisplay})):Jo(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,o){o||(e.style.display=e.__vOriginalDisplay)}},si={model:Zo,show:ai},ci={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function ui(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?ui(Wt(t.children)):e}function li(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var o=n._parentListeners;for(var i in o)t[x(i)]=o[i];return t}function fi(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var pi=function(e){return e.tag||yt(e)},di=function(e){return"show"===e.name},vi={name:"transition",props:ci,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(pi)).length){0;var r=this.mode;0;var o=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return o;var a=ui(o);if(!a)return o;if(this._leaving)return fi(e,o);var s="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?s+"comment":s+a.tag:i(a.key)?0===String(a.key).indexOf(s)?a.key:s+a.key:a.key;var c=(a.data||(a.data={})).transition=li(this),u=this._vnode,l=ui(u);if(a.data.directives&&a.data.directives.some(di)&&(a.data.show=!0),l&&l.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(a,l)&&!yt(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=S({},c);if("out-in"===r)return this._leaving=!0,lt(f,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),fi(e,o);if("in-out"===r){if(yt(a))return u;var p,d=function(){p()};lt(c,"afterEnter",d),lt(c,"enterCancelled",d),lt(f,"delayLeave",(function(e){p=e}))}}return o}}},hi=S({tag:String,moveClass:String},ci);function mi(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function gi(e){e.data.newPos=e.elm.getBoundingClientRect()}function yi(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,o=t.top-n.top;if(r||o){e.data.moved=!0;var i=e.elm.style;i.transform=i.WebkitTransform="translate("+r+"px,"+o+"px)",i.transitionDuration="0s"}}delete hi.mode;var _i={Transition:vi,TransitionGroup:{props:hi,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var o=tn(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,o(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,o=this.$slots.default||[],i=this.children=[],a=li(this),s=0;s-1?rr[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:rr[e]=/HTMLUnknownElement/.test(t.toString())},S(Tn.options.directives,si),S(Tn.options.components,_i),Tn.prototype.__patch__=J?Xo:E,Tn.prototype.$mount=function(e,t){return function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=ge),an(e,"beforeMount"),r=function(){e._update(e._render(),n)},new yn(e,r,E,{before:function(){e._isMounted&&!e._isDestroyed&&an(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,an(e,"mounted")),e}(this,e=e&&J?ir(e):void 0,t)},J&&setTimeout((function(){M.devtools&&ie&&ie.emit("init",Tn)}),0);var bi=/\{\{((?:.|\r?\n)+?)\}\}/g,wi=/[-.*+?^${}()|[\]\/\\]/g,xi=b((function(e){var t=e[0].replace(wi,"\\$&"),n=e[1].replace(wi,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}));var $i={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=zr(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=qr(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}};var Ci,ki={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=zr(e,"style");n&&(e.staticStyle=JSON.stringify(po(n)));var r=qr(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},Ai=function(e){return(Ci=Ci||document.createElement("div")).innerHTML=e,Ci.textContent},Oi=v("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),Si=v("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),Ti=v("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),Ei=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Li=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ji="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+U.source+"]*",Ni="((?:"+ji+"\\:)?"+ji+")",Pi=new RegExp("^<"+Ni),Di=/^\s*(\/?)>/,Ii=new RegExp("^<\\/"+Ni+"[^>]*>"),Fi=/^]+>/i,Ri=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},qi=/&(?:lt|gt|quot|amp|#39);/g,zi=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Vi=v("pre,textarea",!0),Ji=function(e,t){return e&&Vi(e)&&"\n"===t[0]};function Ki(e,t){var n=t?zi:qi;return e.replace(n,(function(e){return Hi[e]}))}var Gi,Wi,Xi,Zi,Yi,Qi,ea,ta,na=/^@|^v-on:/,ra=/^v-|^@|^:|^#/,oa=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,ia=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,aa=/^\(|\)$/g,sa=/^\[.*\]$/,ca=/:(.*)$/,ua=/^:|^\.|^v-bind:/,la=/\.[^.\]]+(?=[^\]]*$)/g,fa=/^v-slot(:|$)|^#/,pa=/[\r\n]/,da=/[ \f\t\r\n]+/g,va=b(Ai),ha="_empty_";function ma(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:$a(t),rawAttrsMap:{},parent:n,children:[]}}function ga(e,t){Gi=t.warn||Dr,Qi=t.isPreTag||L,ea=t.mustUseProp||L,ta=t.getTagNamespace||L;var n=t.isReservedTag||L;(function(e){return!(!(e.component||e.attrsMap[":is"]||e.attrsMap["v-bind:is"])&&(e.attrsMap.is?n(e.attrsMap.is):n(e.tag)))}),Xi=Ir(t.modules,"transformNode"),Zi=Ir(t.modules,"preTransformNode"),Yi=Ir(t.modules,"postTransformNode"),Wi=t.delimiters;var r,o,i=[],a=!1!==t.preserveWhitespace,s=t.whitespace,c=!1,u=!1;function l(e){if(f(e),c||e.processed||(e=ya(e,t)),i.length||e===r||r.if&&(e.elseif||e.else)&&ba(r,{exp:e.elseif,block:e}),o&&!e.forbidden)if(e.elseif||e.else)a=e,s=function(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];e.pop()}}(o.children),s&&s.if&&ba(s,{exp:a.elseif,block:a});else{if(e.slotScope){var n=e.slotTarget||'"default"';(o.scopedSlots||(o.scopedSlots={}))[n]=e}o.children.push(e),e.parent=o}var a,s;e.children=e.children.filter((function(e){return!e.slotScope})),f(e),e.pre&&(c=!1),Qi(e.tag)&&(u=!1);for(var l=0;l]*>)","i")),p=e.replace(f,(function(e,n,r){return u=r.length,Ui(l)||"noscript"===l||(n=n.replace(//g,"$1").replace(//g,"$1")),Ji(l,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""}));c+=e.length-p.length,e=p,A(l,c-u,c)}else{var d=e.indexOf("<");if(0===d){if(Ri.test(e)){var v=e.indexOf("--\x3e");if(v>=0){t.shouldKeepComment&&t.comment(e.substring(4,v),c,c+v+3),$(v+3);continue}}if(Mi.test(e)){var h=e.indexOf("]>");if(h>=0){$(h+2);continue}}var m=e.match(Fi);if(m){$(m[0].length);continue}var g=e.match(Ii);if(g){var y=c;$(g[0].length),A(g[1],y,c);continue}var _=C();if(_){k(_),Ji(_.tagName,e)&&$(1);continue}}var b=void 0,w=void 0,x=void 0;if(d>=0){for(w=e.slice(d);!(Ii.test(w)||Pi.test(w)||Ri.test(w)||Mi.test(w)||(x=w.indexOf("<",1))<0);)d+=x,w=e.slice(d);b=e.substring(0,d)}d<0&&(b=e),b&&$(b.length),t.chars&&b&&t.chars(b,c-b.length,c)}if(e===n){t.chars&&t.chars(e);break}}function $(t){c+=t,e=e.substring(t)}function C(){var t=e.match(Pi);if(t){var n,r,o={tagName:t[1],attrs:[],start:c};for($(t[0].length);!(n=e.match(Di))&&(r=e.match(Li)||e.match(Ei));)r.start=c,$(r[0].length),r.end=c,o.attrs.push(r);if(n)return o.unarySlash=n[1],$(n[0].length),o.end=c,o}}function k(e){var n=e.tagName,c=e.unarySlash;i&&("p"===r&&Ti(n)&&A(r),s(n)&&r===n&&A(n));for(var u=a(n)||!!c,l=e.attrs.length,f=new Array(l),p=0;p=0&&o[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var u=o.length-1;u>=a;u--)t.end&&t.end(o[u].tag,n,i);o.length=a,r=a&&o[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,i):"p"===s&&(t.start&&t.start(e,[],!1,n,i),t.end&&t.end(e,n,i))}A()}(e,{warn:Gi,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,n,a,s,f){var p=o&&o.ns||ta(e);X&&"svg"===p&&(n=function(e){for(var t=[],n=0;nc&&(s.push(i=e.slice(c,o)),a.push(JSON.stringify(i)));var u=Nr(r[1].trim());a.push("_s("+u+")"),s.push({"@binding":u}),c=o+r[0].length}return c-1"+("true"===i?":("+t+")":":_q("+t+","+i+")")),Hr(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+i+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+o+")":o)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Gr(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Gr(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Gr(t,"$$c")+"}",null,!0)}(e,r,o);else if("input"===i&&"radio"===a)!function(e,t,n){var r=n&&n.number,o=qr(e,"value")||"null";Fr(e,"checked","_q("+t+","+(o=r?"_n("+o+")":o)+")"),Hr(e,"change",Gr(t,o),null,!0)}(e,r,o);else if("input"===i||"textarea"===i)!function(e,t,n){var r=e.attrsMap.type;0;var o=n||{},i=o.lazy,a=o.number,s=o.trim,c=!i&&"range"!==r,u=i?"change":"range"===r?to:"input",l="$event.target.value";s&&(l="$event.target.value.trim()");a&&(l="_n("+l+")");var f=Gr(t,l);c&&(f="if($event.target.composing)return;"+f);Fr(e,"value","("+t+")"),Hr(e,u,f,null,!0),(s||a)&&Hr(e,"blur","$forceUpdate()")}(e,r,o);else{if(!M.isReservedTag(i))return Kr(e,r,o),!1}return!0},text:function(e,t){t.value&&Fr(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&Fr(e,"innerHTML","_s("+t.value+")",t)}},La={expectHTML:!0,modules:Oa,directives:Ea,isPreTag:function(e){return"pre"===e},isUnaryTag:Oi,mustUseProp:Un,canBeLeftOpenTag:Si,isReservedTag:tr,getTagNamespace:nr,staticKeys:function(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}(Oa)},ja=b((function(e){return v("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function Na(e,t){e&&(Sa=ja(t.staticKeys||""),Ta=t.isReservedTag||L,Pa(e),Da(e,!1))}function Pa(e){if(e.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||h(e.tag)||!Ta(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(Sa)))}(e),1===e.type){if(!Ta(e.tag)&&"slot"!==e.tag&&null==e.attrsMap["inline-template"])return;for(var t=0,n=e.children.length;t|^function(?:\s+[\w$]+)?\s*\(/,Fa=/\([^)]*?\);*$/,Ra=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Ma={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Ua={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Ba=function(e){return"if("+e+")return null;"},Ha={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Ba("$event.target !== $event.currentTarget"),ctrl:Ba("!$event.ctrlKey"),shift:Ba("!$event.shiftKey"),alt:Ba("!$event.altKey"),meta:Ba("!$event.metaKey"),left:Ba("'button' in $event && $event.button !== 0"),middle:Ba("'button' in $event && $event.button !== 1"),right:Ba("'button' in $event && $event.button !== 2")};function qa(e,t){var n=t?"nativeOn:":"on:",r="",o="";for(var i in e){var a=za(e[i]);e[i]&&e[i].dynamic?o+=i+","+a+",":r+='"'+i+'":'+a+","}return r="{"+r.slice(0,-1)+"}",o?n+"_d("+r+",["+o.slice(0,-1)+"])":n+r}function za(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map((function(e){return za(e)})).join(",")+"]";var t=Ra.test(e.value),n=Ia.test(e.value),r=Ra.test(e.value.replace(Fa,""));if(e.modifiers){var o="",i="",a=[];for(var s in e.modifiers)if(Ha[s])i+=Ha[s],Ma[s]&&a.push(s);else if("exact"===s){var c=e.modifiers;i+=Ba(["ctrl","shift","alt","meta"].filter((function(e){return!c[e]})).map((function(e){return"$event."+e+"Key"})).join("||"))}else a.push(s);return a.length&&(o+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Va).join("&&")+")return null;"}(a)),i&&(o+=i),"function($event){"+o+(t?"return "+e.value+".apply(null, arguments)":n?"return ("+e.value+").apply(null, arguments)":r?"return "+e.value:e.value)+"}"}return t||n?e.value:"function($event){"+(r?"return "+e.value:e.value)+"}"}function Va(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=Ma[e],r=Ua[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var Ja={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:E},Ka=function(e){this.options=e,this.warn=e.warn||Dr,this.transforms=Ir(e.modules,"transformCode"),this.dataGenFns=Ir(e.modules,"genData"),this.directives=S(S({},Ja),e.directives);var t=e.isReservedTag||L;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Ga(e,t){var n=new Ka(t);return{render:"with(this){return "+(e?"script"===e.tag?"null":Wa(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Wa(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Xa(e,t);if(e.once&&!e.onceProcessed)return Za(e,t);if(e.for&&!e.forProcessed)return es(e,t);if(e.if&&!e.ifProcessed)return Ya(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=os(e,t),o="_t("+n+(r?",function(){return "+r+"}":""),i=e.attrs||e.dynamicAttrs?ss((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:x(e.name),value:e.value,dynamic:e.dynamic}}))):null,a=e.attrsMap["v-bind"];!i&&!a||r||(o+=",null");i&&(o+=","+i);a&&(o+=(i?"":",null")+","+a);return o+")"}(e,t);var n;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:os(t,n,!0);return"_c("+e+","+ts(t,n)+(r?","+r:"")+")"}(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=ts(e,t));var o=e.inlineTemplate?null:os(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(o?","+o:"")+")"}for(var i=0;i>>0}(a):"")+")"}(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var i=function(e,t){var n=e.children[0];0;if(n&&1===n.type){var r=Ga(n,t.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map((function(e){return"function(){"+e+"}"})).join(",")+"]}"}}(e,t);i&&(n+=i+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+ss(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function ns(e){return 1===e.type&&("slot"===e.tag||e.children.some(ns))}function rs(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Ya(e,t,rs,"null");if(e.for&&!e.forProcessed)return es(e,t,rs);var r=e.slotScope===ha?"":String(e.slotScope),o="function("+r+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(os(e,t)||"undefined")+":undefined":os(e,t)||"undefined":Wa(e,t))+"}",i=r?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+o+i+"}"}function os(e,t,n,r,o){var i=e.children;if(i.length){var a=i[0];if(1===i.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?t.maybeComponent(a)?",1":",0":"";return""+(r||Wa)(a,t)+s}var c=n?function(e,t){for(var n=0,r=0;r':'
',ps.innerHTML.indexOf(" ")>0}var gs=!!J&&ms(!1),ys=!!J&&ms(!0),_s=b((function(e){var t=ir(e);return t&&t.innerHTML})),bs=Tn.prototype.$mount;Tn.prototype.$mount=function(e,t){if((e=e&&ir(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=_s(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){0;var o=hs(r,{outputSourceRange:!1,shouldDecodeNewlines:gs,shouldDecodeNewlinesForHref:ys,delimiters:n.delimiters,comments:n.comments},this),i=o.render,a=o.staticRenderFns;n.render=i,n.staticRenderFns=a}}return bs.call(this,e,t)},Tn.compile=hs;const ws=Tn;var xs=n(7757),$s=n.n(xs),Cs=n(9669),ks=n.n(Cs);function As(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function Os(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){As(i,r,o,a,s,"next",e)}function s(e){As(i,r,o,a,s,"throw",e)}a(void 0)}))}}var Ss=function(e,t,n,r,o,i,a,s){var c,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):o&&(c=s?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:u}}({data:function(){return{user:{currentUser:"",accessToken:""},isLoading:!1,loginForm:{email:"",password:""},errors:""}},computed:{userLoggedIn:function(){var e;return!(null===(e=this.user)||void 0===e||!e.accessToken)}},created:function(){var e=this;chrome.storage.local.get("ulangi-translator-user").then((function(t){t.hasOwnProperty("ulangi-translator-user")&&(e.user=JSON.parse(t["ulangi-translator-user"]),e.getMe())}))},methods:{getMe:function(){var e=this;ks().post("https://ulangi.com/api/v1/check-access-token",{accessToken:this.user.accessToken}).then((function(t){t&&t.data&&!t.data.valid&&e.clearUser()})).catch((function(){e.clearUser()}))},clearUser:function(){this.user={name:"",token:""},chrome.storage.local.remove("ulangi-translator-user")},afterGetToken:function(e){e&&e.token&&(this.user=JSON.parse(e.token))},logout:function(){this.clearUser()},afterLogin:function(e,t){var n=this;return Os($s().mark((function r(){var o,i;return $s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!t){r.next=7;break}return r.next=3,n.getUserSetID(e.accessToken);case 3:(o=r.sent)?(e.setID=o,(i={})["ulangi-translator-user"]=JSON.stringify(e),chrome.storage.local.set(i),n.user=e):n.errors="Failed in get SETID",r.next=8;break;case 7:n.errors=e;case 8:case"end":return r.stop()}}),r)})))()},getUserSetID:function(e){return Os($s().mark((function t(){var n,r;return $s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ks().get("https://ulangi.com/api/v1/download-sets?startAt=2022-01-11T05:10:19.000Z&softLimit=40",{headers:{Authorization:"Bearer ".concat(e)}});case 2:if(!((n=t.sent)&&n.data&&n.data.setList)){t.next=6;break}return r=n.data.setList.find((function(e){return"en"==e.learningLanguageCode&&"en"==e.translatedToLanguageCode})),t.abrupt("return",r?r.setId:null);case 6:return t.abrupt("return",null);case 7:case"end":return t.stop()}}),t)})))()},login:function(){var e=this;this.isLoading=!0,ks().post("https://ulangi.com/api/v1/sign-in",this.loginForm).then((function(t){e.afterLogin(t.data,!0)})).catch((function(t){return e.afterLogin(t.response.data,!1)})).finally((function(){return e.isLoading=!1}))}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.userLoggedIn?n("div",{staticClass:"main"},[e._m(0),e._v(" "),n("div",{staticClass:"logged-in-as"},[n("span",[e._v("Singed in as")]),e._v(" "),n("h3",[e._v(e._s(e.user.currentUser.email))])]),e._v(" "),n("button",{staticClass:"logout-button",on:{click:e.logout}},[e._v("LOGOUT")])]):n("div",[n("div",{staticClass:"main"},[n("input",{attrs:{type:"checkbox",id:"chk","aria-hidden":"true"}}),e._v(" "),n("div",{staticClass:"login"},[n("form",{staticClass:"login-form"},[n("label",{attrs:{for:"chk","aria-hidden":"true"}},[e._v("Login")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.loginForm.email,expression:"loginForm.email"}],attrs:{type:"email",name:"email",placeholder:"Email",required:""},domProps:{value:e.loginForm.email},on:{input:function(t){t.target.composing||e.$set(e.loginForm,"email",t.target.value)}}}),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.loginForm.password,expression:"loginForm.password"}],attrs:{type:"password",name:"pswd",placeholder:"Password",required:""},domProps:{value:e.loginForm.password},on:{input:function(t){t.target.composing||e.$set(e.loginForm,"password",t.target.value)}}}),e._v(" "),n("button",{class:{"login-button":!0,loading:e.isLoading},attrs:{type:"button",disabled:e.isLoading},on:{click:e.login}},[e._v("\n Login\n ")]),e._v(" "),n("div",{staticClass:"errors",domProps:{innerHTML:e._s(e.errors)}})])])])])])}),[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"logged-in"},[n("h2",[e._v("Welcome")])])}],!1,null,null,null);const Ts=Ss.exports;new ws({render:function(e){return e(Ts)}}).$mount("#app")})()})(); \ No newline at end of file diff --git a/dist/popup.js.LICENSE.txt b/dist/popup.js.LICENSE.txt new file mode 100644 index 0000000..39b67f3 --- /dev/null +++ b/dist/popup.js.LICENSE.txt @@ -0,0 +1,5 @@ +/*! + * Vue.js v2.6.14 + * (c) 2014-2021 Evan You + * Released under the MIT License. + */