🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

expression-calculator

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expression-calculator - npm Package Compare versions

Comparing version
1.0.4
to
1.0.5
+3
-11
.babelrc

@@ -6,16 +6,8 @@ {

{
"modules": false
"modules": false,
"useBuiltIns": "entry",
"corejs":"3.16"
}
]
],
"plugins": [
[
"@babel/plugin-transform-runtime",
{
"absoluteRuntime": false,
"corejs": "2",
"version":"^7.0.0"
}
]
]
}

@@ -1,1 +0,1 @@

!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.Calc=n():t.Calc=n()}(self,(function(){return function(){var t={3133:function(t,n,r){t.exports=r(7185)},200:function(t,n,r){t.exports=r(5627)},8548:function(t,n,r){t.exports=r(3391)},3287:function(t,n,r){t.exports=r(7036)},1765:function(t,n,r){t.exports=r(1343)},4309:function(t,n,r){t.exports=r(4511)},4100:function(t,n,r){t.exports=r(381)},3929:function(t,n,r){t.exports=r(8613)},4255:function(t,n,r){t.exports=r(433)},3497:function(t,n,r){t.exports=r(8318)},7781:function(t,n,r){t.exports=r(9137)},7219:function(t,n,r){t.exports=r(25)},7544:function(t,n,r){t.exports=r(2392)},7185:function(t,n,r){r(1867),r(2586),t.exports=r(4579).Array.from},5627:function(t,n,r){r(6760);var e=r(4579).Object;t.exports=function(t,n){return e.create(t,n)}},3391:function(t,n,r){r(1477);var e=r(4579).Object;t.exports=function(t,n,r){return e.defineProperty(t,n,r)}},7036:function(t,n,r){r(5178);var e=r(4579).Object;t.exports=function(t,n){return e.getOwnPropertyDescriptor(t,n)}},1343:function(t,n,r){r(3264),t.exports=r(4579).Object.getOwnPropertyDescriptors},4511:function(t,n,r){r(6840),t.exports=r(4579).Object.getOwnPropertySymbols},381:function(t,n,r){r(7220),t.exports=r(4579).Object.getPrototypeOf},8613:function(t,n,r){r(961),t.exports=r(4579).Object.keys},433:function(t,n,r){r(9349),t.exports=r(4579).Object.setPrototypeOf},8318:function(t,n,r){r(9650),t.exports=r(4579).Reflect.construct},9137:function(t,n,r){r(6917),t.exports=r(4579).Reflect.get},25:function(t,n,r){r(6840),r(4058),r(8174),r(6461),t.exports=r(4579).Symbol},2392:function(t,n,r){r(1867),r(3871),t.exports=r(5103).f("iterator")},5663:function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},9003:function(t){t.exports=function(){}},2159:function(t,n,r){var e=r(6727);t.exports=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t}},7428:function(t,n,r){var e=r(7932),o=r(8728),i=r(6531);t.exports=function(t){return function(n,r,u){var c,a=e(n),f=o(a.length),s=i(u,f);if(t&&r!=r){for(;f>s;)if((c=a[s++])!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===r)return t||s||0;return!t&&-1}}},4094:function(t,n,r){"use strict";var e=r(5663),o=r(6727),i=r(6778),u=[].slice,c={},a=function(t,n,r){if(!(n in c)){for(var e=[],o=0;o<n;o++)e[o]="a["+o+"]";c[n]=Function("F,a","return new F("+e.join(",")+")")}return c[n](t,r)};t.exports=Function.bind||function(t){var n=e(this),r=u.call(arguments,1),c=function(){var e=r.concat(u.call(arguments));return this instanceof c?a(n,e.length,e):i(n,e,t)};return o(n.prototype)&&(c.prototype=n.prototype),c}},4677:function(t,n,r){var e=r(2894),o=r(2939)("toStringTag"),i="Arguments"==e(function(){return arguments}());t.exports=function(t){var n,r,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),o))?r:i?e(n):"Object"==(u=e(n))&&"function"==typeof n.callee?"Arguments":u}},2894:function(t){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},4579:function(t){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},2445:function(t,n,r){"use strict";var e=r(4743),o=r(3101);t.exports=function(t,n,r){n in t?e.f(t,n,o(0,r)):t[n]=r}},9216:function(t,n,r){var e=r(5663);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,o){return t.call(n,r,e,o)}}return function(){return t.apply(n,arguments)}}},8333:function(t){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},9666:function(t,n,r){t.exports=!r(7929)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},7467:function(t,n,r){var e=r(6727),o=r(3938).document,i=e(o)&&e(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},3338:function(t){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},337:function(t,n,r){var e=r(6162),o=r(8195),i=r(6274);t.exports=function(t){var n=e(t),r=o.f;if(r)for(var u,c=r(t),a=i.f,f=0;c.length>f;)a.call(t,u=c[f++])&&n.push(u);return n}},3856:function(t,n,r){var e=r(3938),o=r(4579),i=r(9216),u=r(1818),c=r(7069),a=function(t,n,r){var f,s,l,p=t&a.F,y=t&a.G,v=t&a.S,h=t&a.P,b=t&a.B,d=t&a.W,g=y?o:o[n]||(o[n]={}),_=g.prototype,x=y?e:v?e[n]:(e[n]||{}).prototype;for(f in y&&(r=n),r)(s=!p&&x&&void 0!==x[f])&&c(g,f)||(l=s?x[f]:r[f],g[f]=y&&"function"!=typeof x[f]?r[f]:b&&s?i(l,e):d&&x[f]==l?function(t){var n=function(n,r,e){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,e)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(l):h&&"function"==typeof l?i(Function.call,l):l,h&&((g.virtual||(g.virtual={}))[f]=l,t&a.R&&_&&!_[f]&&u(_,f,l)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},7929:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},3938:function(t){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},7069:function(t){var n={}.hasOwnProperty;t.exports=function(t,r){return n.call(t,r)}},1818:function(t,n,r){var e=r(4743),o=r(3101);t.exports=r(9666)?function(t,n,r){return e.f(t,n,o(1,r))}:function(t,n,r){return t[n]=r,t}},4881:function(t,n,r){var e=r(3938).document;t.exports=e&&e.documentElement},3758:function(t,n,r){t.exports=!r(9666)&&!r(7929)((function(){return 7!=Object.defineProperty(r(7467)("div"),"a",{get:function(){return 7}}).a}))},6778:function(t){t.exports=function(t,n,r){var e=void 0===r;switch(n.length){case 0:return e?t():t.call(r);case 1:return e?t(n[0]):t.call(r,n[0]);case 2:return e?t(n[0],n[1]):t.call(r,n[0],n[1]);case 3:return e?t(n[0],n[1],n[2]):t.call(r,n[0],n[1],n[2]);case 4:return e?t(n[0],n[1],n[2],n[3]):t.call(r,n[0],n[1],n[2],n[3])}return t.apply(r,n)}},799:function(t,n,r){var e=r(2894);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==e(t)?t.split(""):Object(t)}},5991:function(t,n,r){var e=r(5449),o=r(2939)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(e.Array===t||i[o]===t)}},1421:function(t,n,r){var e=r(2894);t.exports=Array.isArray||function(t){return"Array"==e(t)}},6727:function(t){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},5602:function(t,n,r){var e=r(2159);t.exports=function(t,n,r,o){try{return o?n(e(r)[0],r[1]):n(r)}catch(n){var i=t.return;throw void 0!==i&&e(i.call(t)),n}}},3945:function(t,n,r){"use strict";var e=r(8989),o=r(3101),i=r(5378),u={};r(1818)(u,r(2939)("iterator"),(function(){return this})),t.exports=function(t,n,r){t.prototype=e(u,{next:o(1,r)}),i(t,n+" Iterator")}},5700:function(t,n,r){"use strict";var e=r(6227),o=r(3856),i=r(7470),u=r(1818),c=r(5449),a=r(3945),f=r(5378),s=r(5089),l=r(2939)("iterator"),p=!([].keys&&"next"in[].keys()),y="keys",v="values",h=function(){return this};t.exports=function(t,n,r,b,d,g,_){a(r,n,b);var x,w,m,O=function(t){if(!p&&t in E)return E[t];switch(t){case y:case v:return function(){return new r(this,t)}}return function(){return new r(this,t)}},S=n+" Iterator",j=d==v,T=!1,E=t.prototype,P=E[l]||E["@@iterator"]||d&&E[d],k=P||O(d),N=d?j?O("entries"):k:void 0,A="Array"==n&&E.entries||P;if(A&&(m=s(A.call(new t)))!==Object.prototype&&m.next&&(f(m,S,!0),e||"function"==typeof m[l]||u(m,l,h)),j&&P&&P.name!==v&&(T=!0,k=function(){return P.call(this)}),e&&!_||!p&&!T&&E[l]||u(E,l,k),c[n]=k,c[S]=h,d)if(x={values:j?k:O(v),keys:g?k:O(y),entries:N},_)for(w in x)w in E||i(E,w,x[w]);else o(o.P+o.F*(p||T),n,x);return x}},6630:function(t,n,r){var e=r(2939)("iterator"),o=!1;try{var i=[7][e]();i.return=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(t){}t.exports=function(t,n){if(!n&&!o)return!1;var r=!1;try{var i=[7],u=i[e]();u.next=function(){return{done:r=!0}},i[e]=function(){return u},t(i)}catch(t){}return r}},5084:function(t){t.exports=function(t,n){return{value:n,done:!!t}}},5449:function(t){t.exports={}},6227:function(t){t.exports=!0},7177:function(t,n,r){var e=r(5730)("meta"),o=r(6727),i=r(7069),u=r(4743).f,c=0,a=Object.isExtensible||function(){return!0},f=!r(7929)((function(){return a(Object.preventExtensions({}))})),s=function(t){u(t,e,{value:{i:"O"+ ++c,w:{}}})},l=t.exports={KEY:e,NEED:!1,fastKey:function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,e)){if(!a(t))return"F";if(!n)return"E";s(t)}return t[e].i},getWeak:function(t,n){if(!i(t,e)){if(!a(t))return!0;if(!n)return!1;s(t)}return t[e].w},onFreeze:function(t){return f&&l.NEED&&a(t)&&!i(t,e)&&s(t),t}}},8989:function(t,n,r){var e=r(2159),o=r(7856),i=r(3338),u=r(7281)("IE_PROTO"),c=function(){},a=function(){var t,n=r(7467)("iframe"),e=i.length;for(n.style.display="none",r(4881).appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),a=t.F;e--;)delete a.prototype[i[e]];return a()};t.exports=Object.create||function(t,n){var r;return null!==t?(c.prototype=e(t),r=new c,c.prototype=null,r[u]=t):r=a(),void 0===n?r:o(r,n)}},4743:function(t,n,r){var e=r(2159),o=r(3758),i=r(3206),u=Object.defineProperty;n.f=r(9666)?Object.defineProperty:function(t,n,r){if(e(t),n=i(n,!0),e(r),o)try{return u(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},7856:function(t,n,r){var e=r(4743),o=r(2159),i=r(6162);t.exports=r(9666)?Object.defineProperties:function(t,n){o(t);for(var r,u=i(n),c=u.length,a=0;c>a;)e.f(t,r=u[a++],n[r]);return t}},6183:function(t,n,r){var e=r(6274),o=r(3101),i=r(7932),u=r(3206),c=r(7069),a=r(3758),f=Object.getOwnPropertyDescriptor;n.f=r(9666)?f:function(t,n){if(t=i(t),n=u(n,!0),a)try{return f(t,n)}catch(t){}if(c(t,n))return o(!e.f.call(t,n),t[n])}},4368:function(t,n,r){var e=r(7932),o=r(3230).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(e(t))}},3230:function(t,n,r){var e=r(2963),o=r(3338).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return e(t,o)}},8195:function(t,n){n.f=Object.getOwnPropertySymbols},5089:function(t,n,r){var e=r(7069),o=r(6530),i=r(7281)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),e(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},2963:function(t,n,r){var e=r(7069),o=r(7932),i=r(7428)(!1),u=r(7281)("IE_PROTO");t.exports=function(t,n){var r,c=o(t),a=0,f=[];for(r in c)r!=u&&e(c,r)&&f.push(r);for(;n.length>a;)e(c,r=n[a++])&&(~i(f,r)||f.push(r));return f}},6162:function(t,n,r){var e=r(2963),o=r(3338);t.exports=Object.keys||function(t){return e(t,o)}},6274:function(t,n){n.f={}.propertyIsEnumerable},2584:function(t,n,r){var e=r(3856),o=r(4579),i=r(7929);t.exports=function(t,n){var r=(o.Object||{})[t]||Object[t],u={};u[t]=n(r),e(e.S+e.F*i((function(){r(1)})),"Object",u)}},2661:function(t,n,r){var e=r(3230),o=r(8195),i=r(2159),u=r(3938).Reflect;t.exports=u&&u.ownKeys||function(t){var n=e.f(i(t)),r=o.f;return r?n.concat(r(t)):n}},3101:function(t){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},7470:function(t,n,r){t.exports=r(1818)},2906:function(t,n,r){var e=r(6727),o=r(2159),i=function(t,n){if(o(t),!e(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,e){try{(e=r(9216)(Function.call,r(6183).f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,r){return i(t,r),n?t.__proto__=r:e(t,r),t}}({},!1):void 0),check:i}},5378:function(t,n,r){var e=r(4743).f,o=r(7069),i=r(2939)("toStringTag");t.exports=function(t,n,r){t&&!o(t=r?t:t.prototype,i)&&e(t,i,{configurable:!0,value:n})}},7281:function(t,n,r){var e=r(250)("keys"),o=r(5730);t.exports=function(t){return e[t]||(e[t]=o(t))}},250:function(t,n,r){var e=r(4579),o=r(3938),i="__core-js_shared__",u=o[i]||(o[i]={});(t.exports=function(t,n){return u[t]||(u[t]=void 0!==n?n:{})})("versions",[]).push({version:e.version,mode:r(6227)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},510:function(t,n,r){var e=r(1052),o=r(8333);t.exports=function(t){return function(n,r){var i,u,c=String(o(n)),a=e(r),f=c.length;return a<0||a>=f?t?"":void 0:(i=c.charCodeAt(a))<55296||i>56319||a+1===f||(u=c.charCodeAt(a+1))<56320||u>57343?t?c.charAt(a):i:t?c.slice(a,a+2):u-56320+(i-55296<<10)+65536}}},6531:function(t,n,r){var e=r(1052),o=Math.max,i=Math.min;t.exports=function(t,n){return(t=e(t))<0?o(t+n,0):i(t,n)}},1052:function(t){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},7932:function(t,n,r){var e=r(799),o=r(8333);t.exports=function(t){return e(o(t))}},8728:function(t,n,r){var e=r(1052),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},6530:function(t,n,r){var e=r(8333);t.exports=function(t){return Object(e(t))}},3206:function(t,n,r){var e=r(6727);t.exports=function(t,n){if(!e(t))return t;var r,o;if(n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!e(o=r.call(t)))return o;if(!n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},5730:function(t){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},6347:function(t,n,r){var e=r(3938),o=r(4579),i=r(6227),u=r(5103),c=r(4743).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:e.Symbol||{});"_"==t.charAt(0)||t in n||c(n,t,{value:u.f(t)})}},5103:function(t,n,r){n.f=r(2939)},2939:function(t,n,r){var e=r(250)("wks"),o=r(5730),i=r(3938).Symbol,u="function"==typeof i;(t.exports=function(t){return e[t]||(e[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=e},3728:function(t,n,r){var e=r(4677),o=r(2939)("iterator"),i=r(5449);t.exports=r(4579).getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[e(t)]}},2586:function(t,n,r){"use strict";var e=r(9216),o=r(3856),i=r(6530),u=r(5602),c=r(5991),a=r(8728),f=r(2445),s=r(3728);o(o.S+o.F*!r(6630)((function(t){Array.from(t)})),"Array",{from:function(t){var n,r,o,l,p=i(t),y="function"==typeof this?this:Array,v=arguments.length,h=v>1?arguments[1]:void 0,b=void 0!==h,d=0,g=s(p);if(b&&(h=e(h,v>2?arguments[2]:void 0,2)),null==g||y==Array&&c(g))for(r=new y(n=a(p.length));n>d;d++)f(r,d,b?h(p[d],d):p[d]);else for(l=g.call(p),r=new y;!(o=l.next()).done;d++)f(r,d,b?u(l,h,[o.value,d],!0):o.value);return r.length=d,r}})},3882:function(t,n,r){"use strict";var e=r(9003),o=r(5084),i=r(5449),u=r(7932);t.exports=r(5700)(Array,"Array",(function(t,n){this._t=u(t),this._i=0,this._k=n}),(function(){var t=this._t,n=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,o(1)):o(0,"keys"==n?r:"values"==n?t[r]:[r,t[r]])}),"values"),i.Arguments=i.Array,e("keys"),e("values"),e("entries")},6760:function(t,n,r){var e=r(3856);e(e.S,"Object",{create:r(8989)})},1477:function(t,n,r){var e=r(3856);e(e.S+e.F*!r(9666),"Object",{defineProperty:r(4743).f})},5178:function(t,n,r){var e=r(7932),o=r(6183).f;r(2584)("getOwnPropertyDescriptor",(function(){return function(t,n){return o(e(t),n)}}))},7220:function(t,n,r){var e=r(6530),o=r(5089);r(2584)("getPrototypeOf",(function(){return function(t){return o(e(t))}}))},961:function(t,n,r){var e=r(6530),o=r(6162);r(2584)("keys",(function(){return function(t){return o(e(t))}}))},9349:function(t,n,r){var e=r(3856);e(e.S,"Object",{setPrototypeOf:r(2906).set})},4058:function(){},9650:function(t,n,r){var e=r(3856),o=r(8989),i=r(5663),u=r(2159),c=r(6727),a=r(7929),f=r(4094),s=(r(3938).Reflect||{}).construct,l=a((function(){function t(){}return!(s((function(){}),[],t)instanceof t)})),p=!a((function(){s((function(){}))}));e(e.S+e.F*(l||p),"Reflect",{construct:function(t,n){i(t),u(n);var r=arguments.length<3?t:i(arguments[2]);if(p&&!l)return s(t,n,r);if(t==r){switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3])}var e=[null];return e.push.apply(e,n),new(f.apply(t,e))}var a=r.prototype,y=o(c(a)?a:Object.prototype),v=Function.apply.call(t,y,n);return c(v)?v:y}})},6917:function(t,n,r){var e=r(6183),o=r(5089),i=r(7069),u=r(3856),c=r(6727),a=r(2159);u(u.S,"Reflect",{get:function t(n,r){var u,f,s=arguments.length<3?n:arguments[2];return a(n)===s?n[r]:(u=e.f(n,r))?i(u,"value")?u.value:void 0!==u.get?u.get.call(s):void 0:c(f=o(n))?t(f,r,s):void 0}})},1867:function(t,n,r){"use strict";var e=r(510)(!0);r(5700)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,n=this._t,r=this._i;return r>=n.length?{value:void 0,done:!0}:(t=e(n,r),this._i+=t.length,{value:t,done:!1})}))},6840:function(t,n,r){"use strict";var e=r(3938),o=r(7069),i=r(9666),u=r(3856),c=r(7470),a=r(7177).KEY,f=r(7929),s=r(250),l=r(5378),p=r(5730),y=r(2939),v=r(5103),h=r(6347),b=r(337),d=r(1421),g=r(2159),_=r(6727),x=r(6530),w=r(7932),m=r(3206),O=r(3101),S=r(8989),j=r(4368),T=r(6183),E=r(8195),P=r(4743),k=r(6162),N=T.f,A=P.f,R=j.f,I=e.Symbol,L=e.JSON,M=L&&L.stringify,F=y("_hidden"),C=y("toPrimitive"),D={}.propertyIsEnumerable,G=s("symbol-registry"),B=s("symbols"),V=s("op-symbols"),K=Object.prototype,U="function"==typeof I&&!!E.f,W=e.QObject,z=!W||!W.prototype||!W.prototype.findChild,H=i&&f((function(){return 7!=S(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a}))?function(t,n,r){var e=N(K,n);e&&delete K[n],A(t,n,r),e&&t!==K&&A(K,n,e)}:A,J=function(t){var n=B[t]=S(I.prototype);return n._k=t,n},$=U&&"symbol"==typeof I.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof I},Y=function(t,n,r){return t===K&&Y(V,n,r),g(t),n=m(n,!0),g(r),o(B,n)?(r.enumerable?(o(t,F)&&t[F][n]&&(t[F][n]=!1),r=S(r,{enumerable:O(0,!1)})):(o(t,F)||A(t,F,O(1,{})),t[F][n]=!0),H(t,n,r)):A(t,n,r)},Z=function(t,n){g(t);for(var r,e=b(n=w(n)),o=0,i=e.length;i>o;)Y(t,r=e[o++],n[r]);return t},q=function(t){var n=D.call(this,t=m(t,!0));return!(this===K&&o(B,t)&&!o(V,t))&&(!(n||!o(this,t)||!o(B,t)||o(this,F)&&this[F][t])||n)},Q=function(t,n){if(t=w(t),n=m(n,!0),t!==K||!o(B,n)||o(V,n)){var r=N(t,n);return!r||!o(B,n)||o(t,F)&&t[F][n]||(r.enumerable=!0),r}},X=function(t){for(var n,r=R(w(t)),e=[],i=0;r.length>i;)o(B,n=r[i++])||n==F||n==a||e.push(n);return e},tt=function(t){for(var n,r=t===K,e=R(r?V:w(t)),i=[],u=0;e.length>u;)!o(B,n=e[u++])||r&&!o(K,n)||i.push(B[n]);return i};U||(c((I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),n=function(r){this===K&&n.call(V,r),o(this,F)&&o(this[F],t)&&(this[F][t]=!1),H(this,t,O(1,r))};return i&&z&&H(K,t,{configurable:!0,set:n}),J(t)}).prototype,"toString",(function(){return this._k})),T.f=Q,P.f=Y,r(3230).f=j.f=X,r(6274).f=q,E.f=tt,i&&!r(6227)&&c(K,"propertyIsEnumerable",q,!0),v.f=function(t){return J(y(t))}),u(u.G+u.W+u.F*!U,{Symbol:I});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;nt.length>rt;)y(nt[rt++]);for(var et=k(y.store),ot=0;et.length>ot;)h(et[ot++]);u(u.S+u.F*!U,"Symbol",{for:function(t){return o(G,t+="")?G[t]:G[t]=I(t)},keyFor:function(t){if(!$(t))throw TypeError(t+" is not a symbol!");for(var n in G)if(G[n]===t)return n},useSetter:function(){z=!0},useSimple:function(){z=!1}}),u(u.S+u.F*!U,"Object",{create:function(t,n){return void 0===n?S(t):Z(S(t),n)},defineProperty:Y,defineProperties:Z,getOwnPropertyDescriptor:Q,getOwnPropertyNames:X,getOwnPropertySymbols:tt});var it=f((function(){E.f(1)}));u(u.S+u.F*it,"Object",{getOwnPropertySymbols:function(t){return E.f(x(t))}}),L&&u(u.S+u.F*(!U||f((function(){var t=I();return"[null]"!=M([t])||"{}"!=M({a:t})||"{}"!=M(Object(t))}))),"JSON",{stringify:function(t){for(var n,r,e=[t],o=1;arguments.length>o;)e.push(arguments[o++]);if(r=n=e[1],(_(n)||void 0!==t)&&!$(t))return d(n)||(n=function(t,n){if("function"==typeof r&&(n=r.call(this,t,n)),!$(n))return n}),e[1]=n,M.apply(L,e)}}),I.prototype[C]||r(1818)(I.prototype,C,I.prototype.valueOf),l(I,"Symbol"),l(Math,"Math",!0),l(e.JSON,"JSON",!0)},3264:function(t,n,r){var e=r(3856),o=r(2661),i=r(7932),u=r(6183),c=r(2445);e(e.S,"Object",{getOwnPropertyDescriptors:function(t){for(var n,r,e=i(t),a=u.f,f=o(e),s={},l=0;f.length>l;)void 0!==(r=a(e,n=f[l++]))&&c(s,n,r);return s}})},8174:function(t,n,r){r(6347)("asyncIterator")},6461:function(t,n,r){r(6347)("observable")},3871:function(t,n,r){r(3882);for(var e=r(3938),o=r(1818),i=r(5449),u=r(2939)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),a=0;a<c.length;a++){var f=c[a],s=e[f],l=s&&s.prototype;l&&!l[u]&&o(l,u,f),i[f]=i.Array}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,{a:n}),n},r.d=function(t,n){for(var e in n)r.o(n,e)&&!r.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)};var e={};return function(){"use strict";r.d(e,{default:function(){return $}});var t=r(3497),n=r.n(t);function o(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}var i=r(200),u=r(4255);function c(t,n){return(c=u||function(t,n){return t.__proto__=n,t})(t,n)}function a(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=i(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&c(t,n)}var f=r(7219),s=r.n(f),l=r(7544),p=r.n(l);function y(t){return(y="function"==typeof f&&"symbol"==typeof l?function(t){return typeof t}:function(t){return t&&"function"==typeof f&&t.constructor===f&&t!==f.prototype?"symbol":typeof t})(t)}function v(t,n){if(n&&("object"===y(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}var h=r(4100);function b(t){return(b=u?h:function(t){return t.__proto__||h(t)})(t)}var d=r(8548);function g(t,n,r){return n in t?d(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}var _=r(3133),x=r.n(_),w=r(3929),m=r.n(w),O=r(4309),S=r.n(O),j=r(3287),T=r.n(j),E=r(1765),P=r.n(E);function k(t,n){for(var r=0;r<n.length;r++){var e=n[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),d(t,e.key,e)}}function N(t,n,r){return n&&k(t.prototype,n),r&&k(t,r),t}var A={"+":{binocular:!0,priority:14,exchangeable:!0,processor:function(t,n){return t+n}},"-":{binocular:!0,priority:14,exchangeable:!1,processor:function(t,n){return t-n}},"*":{binocular:!0,priority:15,exchangeable:!0,processor:function(t,n){return t*n}},"/":{binocular:!0,priority:15,exchangeable:!1,processor:function(t,n){return t/n}},"%":{binocular:!0,priority:15,exchangeable:!1,processor:function(t,n){return t%n}},"**":{binocular:!0,priority:16,exchangeable:!1,rightToLeft:!0,processor:function(t,n){return Math.pow(t,n)}},"&":{binocular:!0,priority:10,exchangeable:!0,bitwise:!0,processor:function(t,n){return t&n}},"|":{binocular:!0,priority:8,exchangeable:!0,bitwise:!0,processor:function(t,n){return t|n}},"^":{binocular:!0,priority:9,exchangeable:!0,bitwise:!0,processor:function(t,n){return t^n}},"~":{binocular:!1,priority:17,bitwise:!0,processor:function(t){return~t}},NEG:{match:!1,binocular:!1,priority:17,processor:function(t){return-t}}},R=["(",")"];for(var I in A)!1!==A[I].match&&R.push(I);R.sort((function(t,n){return n.length-t.length}));var L,M=R.map((function(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")})),F=new RegExp("^("+M.join("|")+")"),C=A,D=r(7781);function G(t,n,r){return(G="undefined"!=typeof Reflect&&D?D:function(t,n,r){var e=function(t,n){for(;!Object.prototype.hasOwnProperty.call(t,n)&&null!==(t=b(t)););return t}(t,n);if(e){var o=j(e,n);return o.get?o.get.call(r):o.value}})(t,n,r||t)}function B(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=new Array(n);r<n;r++)e[r]=t[r];return e}L=p();var V,K=function(){function t(n){o(this,t),this.__input=this.__inputOrig=n,this.__pos=0}return N(t,[{key:L,value:function(){return this}},{key:"__proc",value:function(n){var r,e=function(t,n){var r=void 0!==s()&&t[p()]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,n){if(t){if("string"==typeof t)return B(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?x()(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?B(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){r&&(t=r);var e=0,o=function(){};return{s:o,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){c=!0,i=t},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw i}}}}(t.__lexTable);try{for(e.s();!(r=e.n()).done;){var o=r.value,i=o.rule.exec(n);if(i&&0==i.index)return{type:o.type,value:i[0]}}}catch(t){e.e(t)}finally{e.f()}return null}},{key:"getPos",value:function(){return this.__pos}},{key:"next",value:function(){for(;this.__input;){var t=this.__proc(this.__input);if(!t)throw new SyntaxError("Unexpected Character at position ".concat(this.__pos));var n=t.type,r=t.value;if(this.__input=this.__input.slice(r.length),this.__pos+=r.length,n)return{done:!1,value:{type:n,value:r}}}return this.__input=this.__inputOrig,this.__pos=0,{done:!0}}}]),t}();function U(t,n){var r=m()(t);if(S()){var e=S()(t);n&&(e=e.filter((function(n){return T()(t,n).enumerable}))),r.push.apply(r,e)}return r}g(K,"__lexTable",[{rule:/^\s+/,type:null},{rule:/^0x[0-9A-Fa-f]+/,type:1},{rule:/^[0-9]+(\.[0-9]+)?([Ee][+\-][0-9]+)?/,type:1},{rule:F,type:3},{rule:/^[A-Za-z_\u0080-\uffff][A-Za-z0-9_\u0080-\uffff]*/,type:2}]),V=p();var W=function(t){a(u,t);var r,e,i=(r=u,e=function(){if("undefined"==typeof Reflect||!n())return!1;if(n().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(n()(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,o=b(r);if(e){var i=b(this).constructor;t=n()(o,arguments,i)}else t=o.apply(this,arguments);return v(this,t)});function u(t){var n;return o(this,u),(n=i.call(this,t)).__reset(),n}return N(u,[{key:V,value:function(){return this}},{key:"__reset",value:function(){this.__lastToken=null,this.__lastTokenType="START",this.__bracketDepth=0}},{key:"next",value:function(){var t=u.syntaxTable;try{var n=G(b(u.prototype),"next",this).call(this),r=n.done,e=n.value,o=G(b(u.prototype),"getPos",this).call(this),i=null,c=null;if(r)c="END";else{if(o-=e.value.length,3==(i=function(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?U(Object(r),!0).forEach((function(n){g(t,n,r[n])})):P()?Object.defineProperties(t,P()(r)):U(Object(r)).forEach((function(n){Object.defineProperty(t,n,T()(r,n))}))}return t}({},e)).type&&"-"==i.value&&u.lastTokenNEGConv[this.__lastTokenType]){var a=this.__lastToken;if(a&&3==a.type&&("NEG"==a.value||"-"==a.value))throw new SyntaxError("Invalid input at position ".concat(o));i.value="NEG"}c=u.getTokenType(i)}if(!t[this.__lastTokenType]||!t[this.__lastTokenType][c])throw new SyntaxError("Invalid input at position ".concat(o));switch(c){case"(":this.__bracketDepth++;break;case")":this.__bracketDepth--;break;case"END":if(this.__bracketDepth)throw new SyntaxError("Bracket mismatch")}return"END"==c?(this.__reset(),{done:!0}):(this.__lastToken=i,this.__lastTokenType=c,{done:!1,value:i})}catch(t){try{this.__reset()}catch(t){console.error(t)}throw t}}}],[{key:"getTokenType",value:function(t){return t?1==t.type||2==t.type?"N":3==t.type?"("==t.value?"(":")"==t.value?")":C[t.value].binocular?"B":"S":null:"START"}}]),u}(K);function z(t,n){var r=m()(t);if(S()){var e=S()(t);n&&(e=e.filter((function(n){return T()(t,n).enumerable}))),r.push.apply(r,e)}return r}function H(t,n){var r=void 0!==s()&&t[p()]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,n){if(t){if("string"==typeof t)return J(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?x()(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?J(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){r&&(t=r);var e=0,o=function(){};return{s:o,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){c=!0,i=t},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw i}}}}function J(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=new Array(n);r<n;r++)e[r]=t[r];return e}g(W,"syntaxTable",{START:{N:!0,S:!0,"(":!0},N:{B:!0,")":!0,END:!0},S:{N:!0,"(":!0},B:{N:!0,"(":!0,S:!0},"(":{S:!0,N:!0,"(":!0},")":{")":!0,B:!0,END:!0}}),g(W,"lastTokenNEGConv",{START:!0,"(":!0,B:!0,S:!0});var $=function(t){a(u,t);var r,e,i=(r=u,e=function(){if("undefined"==typeof Reflect||!n())return!1;if(n().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(n()(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,o=b(r);if(e){var i=b(this).constructor;t=n()(o,arguments,i)}else t=o.apply(this,arguments);return v(this,t)});function u(t){return o(this,u),i.call(this,t)}return u}(function(){function t(n){o(this,t),g(this,"__data",[]),n instanceof t&&this.setRPN(n.getRPN()),"string"==typeof n?this.compile(n):Array.isArray(n)&&n.length&&this.setRPN(n)}return N(t,[{key:"__numConv",value:function(t){if(isNaN(t))throw new TypeError("Invalid number format");return Number(t)}},{key:"compile",value:function(t){var n,r=[],e=[],o=H(new W(t));try{for(o.s();!(n=o.n()).done;){var i=n.value;if(1==i.type)i.value=this.__numConv(i.value),r.push(i);else if(2==i.type)r.push(i);else if(3==i.type)if(e.length&&"("!=i.value)if(")"==i.value)for(var u=null;(u=e.pop())&&"("!=u.value;)r.push(u);else{for(;e.length;){var c=e[e.length-1].value,a=C[c],f=C[i.value];if("("==c||a.priority<f.priority||a.rightToLeft&&f.rightToLeft)break;r.push(e.pop())}e.push(i)}else e.push(i)}}catch(t){o.e(t)}finally{o.f()}for(;e.length;)r.push(e.pop());return this.__data=r,this}},{key:"compress",value:function(){var t,n=[],r=H(this.__data);try{for(r.s();!(t=r.n()).done;){var e=t.value;if(3==e.type){var o=C[e.value];if(o.binocular&&n.length>1&&1==n[n.length-1].type&&1==n[n.length-2].type){var i=n.pop().value,u=n.pop().value;n.push({type:1,value:o.processor(u,i)})}else!o.binocular&&n.length>0&&1==n[n.length-1].type?n.push({type:1,value:o.processor(o.pop().value)}):n.push(e)}else n.push(e)}}catch(t){r.e(t)}finally{r.f()}return this.__data=n,this}},{key:"getRPN",value:function(){return this.__data.length?this.__data.map((function(t){return function(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?z(Object(r),!0).forEach((function(n){g(t,n,r[n])})):P()?Object.defineProperties(t,P()(r)):z(Object(r)).forEach((function(n){Object.defineProperty(t,n,T()(r,n))}))}return t}({},t)})):null}},{key:"setRPN",value:function(t){var n=this;if(!Array.isArray(t))throw new TypeError('Input must be an array with objects contains key "type" and "value"');if(!t.length)return this.__data=[],this;var r=[],e=0;if(t.forEach((function(t,o){var i,u;try{i=t.type,u=t.value}catch(t){throw new TypeError("Invalid RPN token at position ".concat(o))}if(2===i){if("string"!=typeof u||!u)throw new TypeError("Invalid RPN token at position ".concat(o));e++}else if(1===i){try{u=n.__numConv(u)}catch(t){throw new TypeError("Invalid number at position ".concat(o))}e++}else{if(3!==i)throw new TypeError("Invalid RPN token at position ".concat(o));var c=C[u];if(!c)throw new TypeError("Invalid operand at position ".concat(o));if(!c.binocular&&e<1||c.binocular&&e<2)throw new SyntaxError("Invalid RPN");c.binocular&&e--}r.push({type:i,value:u})})),1!=e)throw new SyntaxError("Invalid RPN");return this.__data=r,this}},{key:"calc",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.__data.length)return null;var n,r=[],e=H(this.__data);try{for(e.s();!(n=e.n()).done;){var o=n.value;if(1!=o.type)if(2!=o.type){if(3==o.type){var i=C[o.value];if(i.binocular){var u=r.pop(),c=r.pop();r.push(i.processor(c,u))}else r.push(i.processor(r.pop()))}}else{if(!t.hasOwnProperty(o.value))throw new ReferenceError("Value of variable ".concat(o.value," not specified."));r.push(this.__numConv(t[o.value]))}else r.push(o.value)}}catch(t){e.e(t)}finally{e.f()}if(1!=r.length)throw new SyntaxError("Malformed RPN");return r[0]}}]),t}());g($,"TOKEN_NUM",1),g($,"TOKEN_VAR",2),g($,"TOKEN_OPER",3)}(),e.default}()}));
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Calc=e():t.Calc=e()}(self,(function(){return function(){var t={670:function(t,e,r){var n=r(111);t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},235:function(t,e,r){var n=r(857),o=r(656),i=r(61),u=r(70).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});o(e,t)||u(e,t,{value:i.f(t)})}},781:function(t,e,r){var n=r(293);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(t,e,r){var n=r(854),o=r(111),i=n.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},113:function(t,e,r){var n=r(5);t.exports=n("navigator","userAgent")||""},392:function(t,e,r){var n,o,i=r(854),u=r(113),a=i.process,c=i.Deno,f=a&&a.versions||c&&c.version,l=f&&f.v8;l?o=(n=l.split("."))[0]<4?1:n[0]+n[1]:u&&(!(n=u.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=u.match(/Chrome\/(\d+)/))&&(o=n[1]),t.exports=o&&+o},293:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},5:function(t,e,r){var n=r(854),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(n[t]):n[t]&&n[t][e]}},854:function(t,e,r){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()},656:function(t,e,r){var n=r(908),o={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,e){return o.call(n(t),e)}},664:function(t,e,r){var n=r(781),o=r(293),i=r(317);t.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},111:function(t){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},913:function(t){t.exports=!1},190:function(t,e,r){var n=r(5),o=r(307);t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return"function"==typeof e&&Object(t)instanceof e}},133:function(t,e,r){var n=r(392),o=r(293);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},70:function(t,e,r){var n=r(781),o=r(664),i=r(670),u=r(948),a=Object.defineProperty;e.f=n?a:function(t,e,r){if(i(t),e=u(e),i(r),o)try{return a(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},140:function(t,e,r){var n=r(111);t.exports=function(t,e){var r,o;if("string"===e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!n(o=r.call(t)))return o;if("string"!==e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},857:function(t,e,r){var n=r(854);t.exports=n},488:function(t){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},505:function(t,e,r){var n=r(854);t.exports=function(t,e){try{Object.defineProperty(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},465:function(t,e,r){var n=r(854),o=r(505),i="__core-js_shared__",u=n[i]||o(i,{});t.exports=u},309:function(t,e,r){var n=r(913),o=r(465);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.16.1",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},908:function(t,e,r){var n=r(488);t.exports=function(t){return Object(n(t))}},593:function(t,e,r){var n=r(111),o=r(190),i=r(140),u=r(112)("toPrimitive");t.exports=function(t,e){if(!n(t)||o(t))return t;var r,a=t[u];if(void 0!==a){if(void 0===e&&(e="default"),r=a.call(t,e),!n(r)||o(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),i(t,e)}},948:function(t,e,r){var n=r(593),o=r(190);t.exports=function(t){var e=n(t,"string");return o(e)?e:String(e)}},711:function(t){var e=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+r).toString(36)}},307:function(t,e,r){var n=r(133);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},61:function(t,e,r){var n=r(112);e.f=n},112:function(t,e,r){var n=r(854),o=r(309),i=r(656),u=r(711),a=r(133),c=r(307),f=o("wks"),l=n.Symbol,s=c?l:l&&l.withoutSetter||u;t.exports=function(t){return i(f,t)&&(a||"string"==typeof f[t])||(a&&i(l,t)?f[t]=l[t]:f[t]=s("Symbol."+t)),f[t]}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var n={};return r(235)("iterator"),function(){"use strict";r.d(n,{default:function(){return I}});var t={"+":{binocular:!0,priority:14,exchangeable:!0,processor:function(t,e){return t+e}},"-":{binocular:!0,priority:14,exchangeable:!1,processor:function(t,e){return t-e}},"*":{binocular:!0,priority:15,exchangeable:!0,processor:function(t,e){return t*e}},"/":{binocular:!0,priority:15,exchangeable:!1,processor:function(t,e){return t/e}},"%":{binocular:!0,priority:15,exchangeable:!1,processor:function(t,e){return t%e}},"**":{binocular:!0,priority:16,exchangeable:!1,rightToLeft:!0,processor:function(t,e){return Math.pow(t,e)}},"&":{binocular:!0,priority:10,exchangeable:!0,bitwise:!0,processor:function(t,e){return t&e}},"|":{binocular:!0,priority:8,exchangeable:!0,bitwise:!0,processor:function(t,e){return t|e}},"^":{binocular:!0,priority:9,exchangeable:!0,bitwise:!0,processor:function(t,e){return t^e}},"~":{binocular:!1,priority:17,bitwise:!0,processor:function(t){return~t}},NEG:{match:!1,binocular:!1,priority:17,processor:function(t){return-t}}},e=["(",")"];for(var o in t)!1!==t[o].match&&e.push(o);e.sort((function(t,e){return e.length-t.length}));var i,u=e.map((function(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")})),a=new RegExp("^("+u.join("|")+")"),c=t;function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function l(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}i=Symbol.iterator;var s,p,y,h,v=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.__input=this.__inputOrig=e,this.__pos=0}var e,r;return e=t,(r=[{key:i,value:function(){return this}},{key:"__proc",value:function(e){var r,n=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,a=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){a=!0,i=t},f:function(){try{u||null==r.return||r.return()}finally{if(a)throw i}}}}(t.__lexTable);try{for(n.s();!(r=n.n()).done;){var o=r.value,i=o.rule.exec(e);if(i&&0==i.index)return{type:o.type,value:i[0]}}}catch(t){n.e(t)}finally{n.f()}return null}},{key:"getPos",value:function(){return this.__pos}},{key:"next",value:function(){for(;this.__input;){var t=this.__proc(this.__input);if(!t)throw new SyntaxError("Unexpected Character at position ".concat(this.__pos));var e=t.type,r=t.value;if(this.__input=this.__input.slice(r.length),this.__pos+=r.length,e)return{done:!1,value:{type:e,value:r}}}return this.__input=this.__inputOrig,this.__pos=0,{done:!0}}}])&&l(e.prototype,r),t}();function b(t){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function _(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function d(t,e,r){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=O(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(r):o.value}})(t,e,r||t)}function w(t,e){return(w=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function m(t,e){return!e||"object"!==b(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function O(t){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function j(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}y=[{rule:/^\s+/,type:null},{rule:/^0x[0-9A-Fa-f]+/,type:1},{rule:/^[0-9]+(\.[0-9]+)?([Ee][+\-][0-9]+)?/,type:1},{rule:a,type:3},{rule:/^[A-Za-z_\u0080-\uffff][A-Za-z0-9_\u0080-\uffff]*/,type:2}],(p="__lexTable")in(s=v)?Object.defineProperty(s,p,{value:y,enumerable:!0,configurable:!0,writable:!0}):s[p]=y,h=Symbol.iterator;var x=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&w(t,e)}(a,t);var e,r,n,o,i,u=(o=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=O(o);if(i){var r=O(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return m(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=u.call(this,t)).__reset(),e}return e=a,n=[{key:"getTokenType",value:function(t){return t?1==t.type||2==t.type?"N":3==t.type?"("==t.value?"(":")"==t.value?")":c[t.value].binocular?"B":"S":null:"START"}}],(r=[{key:h,value:function(){return this}},{key:"__reset",value:function(){this.__lastToken=null,this.__lastTokenType="START",this.__bracketDepth=0}},{key:"next",value:function(){var t=a.syntaxTable;try{var e=d(O(a.prototype),"next",this).call(this),r=e.done,n=e.value,o=d(O(a.prototype),"getPos",this).call(this),i=null,u=null;if(r)u="END";else{if(o-=n.value.length,3==(i=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?g(Object(r),!0).forEach((function(e){j(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},n)).type&&"-"==i.value&&a.lastTokenNEGConv[this.__lastTokenType]){var c=this.__lastToken;if(c&&3==c.type&&("NEG"==c.value||"-"==c.value))throw new SyntaxError("Invalid input at position ".concat(o));i.value="NEG"}u=a.getTokenType(i)}if(!t[this.__lastTokenType]||!t[this.__lastTokenType][u])throw new SyntaxError("Invalid input at position ".concat(o));switch(u){case"(":this.__bracketDepth++;break;case")":this.__bracketDepth--;break;case"END":if(this.__bracketDepth)throw new SyntaxError("Bracket mismatch")}return"END"==u?(this.__reset(),{done:!0}):(this.__lastToken=i,this.__lastTokenType=u,{done:!1,value:i})}catch(t){try{this.__reset()}catch(t){console.error(t)}throw t}}}])&&_(e.prototype,r),n&&_(e,n),a}(v);function S(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function T(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return P(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,a=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){a=!0,i=t},f:function(){try{u||null==r.return||r.return()}finally{if(a)throw i}}}}function P(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function E(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function k(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function N(t){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function R(t,e){return(R=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function A(t,e){return!e||"object"!==N(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function D(t){return(D=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function C(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}j(x,"syntaxTable",{START:{N:!0,S:!0,"(":!0},N:{B:!0,")":!0,END:!0},S:{N:!0,"(":!0},B:{N:!0,"(":!0,S:!0},"(":{S:!0,N:!0,"(":!0},")":{")":!0,B:!0,END:!0}}),j(x,"lastTokenNEGConv",{START:!0,"(":!0,B:!0,S:!0});var I=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&R(t,e)}(o,t);var e,r,n=(e=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=D(e);if(r){var o=D(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return A(this,t)});function o(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),n.call(this,t)}return o}(function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),k(this,"__data",[]),e instanceof t&&this.setRPN(e.getRPN()),"string"==typeof e?this.compile(e):Array.isArray(e)&&e.length&&this.setRPN(e)}var e,r;return e=t,(r=[{key:"__numConv",value:function(t){if(isNaN(t))throw new TypeError("Invalid number format");return Number(t)}},{key:"compile",value:function(t){var e,r=[],n=[],o=T(new x(t));try{for(o.s();!(e=o.n()).done;){var i=e.value;if(1==i.type)i.value=this.__numConv(i.value),r.push(i);else if(2==i.type)r.push(i);else if(3==i.type)if(n.length&&"("!=i.value)if(")"==i.value)for(var u=null;(u=n.pop())&&"("!=u.value;)r.push(u);else{for(;n.length;){var a=n[n.length-1].value,f=c[a],l=c[i.value];if("("==a||f.priority<l.priority||f.rightToLeft&&l.rightToLeft)break;r.push(n.pop())}n.push(i)}else n.push(i)}}catch(t){o.e(t)}finally{o.f()}for(;n.length;)r.push(n.pop());return this.__data=r,this}},{key:"compress",value:function(){var t,e=[],r=T(this.__data);try{for(r.s();!(t=r.n()).done;){var n=t.value;if(3==n.type){var o=c[n.value];if(o.binocular&&e.length>1&&1==e[e.length-1].type&&1==e[e.length-2].type){var i=e.pop().value,u=e.pop().value;e.push({type:1,value:o.processor(u,i)})}else!o.binocular&&e.length>0&&1==e[e.length-1].type?e.push({type:1,value:o.processor(o.pop().value)}):e.push(n)}else e.push(n)}}catch(t){r.e(t)}finally{r.f()}return this.__data=e,this}},{key:"getRPN",value:function(){return this.__data.length?this.__data.map((function(t){return function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?S(Object(r),!0).forEach((function(e){k(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t)})):null}},{key:"setRPN",value:function(t){var e=this;if(!Array.isArray(t))throw new TypeError('Input must be an array with objects contains key "type" and "value"');if(!t.length)return this.__data=[],this;var r=[],n=0;if(t.forEach((function(t,o){var i,u;try{i=t.type,u=t.value}catch(t){throw new TypeError("Invalid RPN token at position ".concat(o))}if(2===i){if("string"!=typeof u||!u)throw new TypeError("Invalid RPN token at position ".concat(o));n++}else if(1===i){try{u=e.__numConv(u)}catch(t){throw new TypeError("Invalid number at position ".concat(o))}n++}else{if(3!==i)throw new TypeError("Invalid RPN token at position ".concat(o));var a=c[u];if(!a)throw new TypeError("Invalid operand at position ".concat(o));if(!a.binocular&&n<1||a.binocular&&n<2)throw new SyntaxError("Invalid RPN");a.binocular&&n--}r.push({type:i,value:u})})),1!=n)throw new SyntaxError("Invalid RPN");return this.__data=r,this}},{key:"calc",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.__data.length)return null;var e,r=[],n=T(this.__data);try{for(n.s();!(e=n.n()).done;){var o=e.value;if(1!=o.type)if(2!=o.type){if(3==o.type){var i=c[o.value];if(i.binocular){var u=r.pop(),a=r.pop();r.push(i.processor(a,u))}else r.push(i.processor(r.pop()))}}else{if(!t.hasOwnProperty(o.value))throw new ReferenceError("Value of variable ".concat(o.value," not specified."));r.push(this.__numConv(t[o.value]))}else r.push(o.value)}}catch(t){n.e(t)}finally{n.f()}if(1!=r.length)throw new SyntaxError("Malformed RPN");return r[0]}}])&&E(e.prototype,r),t}());C(I,"TOKEN_NUM",1),C(I,"TOKEN_VAR",2),C(I,"TOKEN_OPER",3)}(),n.default}()}));

@@ -1,1 +0,1 @@

<!doctype html><html><head><meta charset="UTF-8"/><meta name="viewport" id="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/><title>Expression Calculator Test Page</title><style>body{color:#303133;font-family:微软雅黑,sans;margin:0 auto;padding:50px 10px 10px;user-select:none}:-ms-input-placeholder{color:#c0c4cc!important;font-family:微软雅黑,sans!important;font-size:16px!important}::-moz-placeholder{color:#c0c4cc;font-family:微软雅黑,sans;font-size:16px}::-webkit-input-placeholder{color:#c0c4cc;font-family:微软雅黑,sans;font-size:16px}ribbon{user-drag:none;background-color:#a00;box-shadow:0 0 5px 2px #888;position:fixed;right:0;top:0;user-select:none}ribbon,ribbon a{display:block;overflow:hidden}ribbon a{border-bottom:1px solid #fff;border-top:1px solid #fff;color:#fff;font-size:12px;font-weight:700;line-height:30px;margin:2px 0;text-align:center;text-decoration:none;width:260px}@media only screen and (min-width:600px){body{padding-top:10px}ribbon{transform:translate(83px) rotate(45deg);transform-origin:50px 50%}.inputForm{margin-right:170px}}.inputForm{margin-bottom:10px}.inputForm input,.inputForm textarea{-webkit-appearance:none;background-color:#fff;background-image:none;border:1px solid #dcdfe6;border-radius:4px;box-sizing:border-box;color:#333;display:block;font-size:16px;margin:0 10px 10px 0;outline:none;padding:0 8px;width:100%}.inputForm input{height:30px;line-height:28px}.inputForm input ::-ms-clear{display:none;height:0;width:0}.inputForm textarea{height:130px;line-height:20px;overflow-x:hidden;overflow-y:auto;padding:4px 8px;resize:vertical}.inputForm button{background-color:#409eff;border:none;border-radius:15px;color:#fff;cursor:pointer;font-size:16px;height:30px;line-height:30px;min-width:60px;outline:none;padding:0 14px}.inputForm button:hover{background-color:#66b1ff}.inputForm button:disabled{background-color:#a0cfff;cursor:not-allowed}.inputForm button:disabled:hover{background-color:#a0cfff}.errorInfo{color:#f56c6c}.calcResult,.errorInfo{display:none}</style><script src="./dist/exprcalc.js"></script></head><body><ribbon><a href="https://github.com/frank-deng/linefold/">Fork me on GitHub</a></ribbon><form class="inputForm" method="post" action="#" id="inputForm"><input placeholder="Input expression" name="exprInput"/> <textarea placeholder="Input variables" name="varInput"></textarea> <button disabled="disabled" type="submit" translate="Calculate">Calculate</button></form><div class="errorInfo" id="errorInfo"></div><div class="calcResult" id="calcResult"><span translate="Calculate Result"></span><span id="calcResultNum"></span></div></body><script>!function(){var t={3133:function(t,n,r){t.exports=r(7185)},4422:function(t,n,r){t.exports=r(3285)},8548:function(t,n,r){t.exports=r(3391)},3929:function(t,n,r){t.exports=r(8613)},7219:function(t,n,r){t.exports=r(25)},7544:function(t,n,r){t.exports=r(2392)},7185:function(t,n,r){r(1867),r(2586),t.exports=r(4579).Array.from},3285:function(t,n,r){r(8691),t.exports=r(4579).Array.isArray},3391:function(t,n,r){r(1477);var e=r(4579).Object;t.exports=function(t,n,r){return e.defineProperty(t,n,r)}},8613:function(t,n,r){r(961),t.exports=r(4579).Object.keys},25:function(t,n,r){r(6840),r(4058),r(8174),r(6461),t.exports=r(4579).Symbol},2392:function(t,n,r){r(1867),r(3871),t.exports=r(5103).f("iterator")},5663:function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},9003:function(t){t.exports=function(){}},2159:function(t,n,r){var e=r(6727);t.exports=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t}},7428:function(t,n,r){var e=r(7932),o=r(8728),i=r(6531);t.exports=function(t){return function(n,r,u){var a,c=e(n),f=o(c.length),s=i(u,f);if(t&&r!=r){for(;f>s;)if((a=c[s++])!=a)return!0}else for(;f>s;s++)if((t||s in c)&&c[s]===r)return t||s||0;return!t&&-1}}},4677:function(t,n,r){var e=r(2894),o=r(2939)("toStringTag"),i="Arguments"==e(function(){return arguments}());t.exports=function(t){var n,r,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),o))?r:i?e(n):"Object"==(u=e(n))&&"function"==typeof n.callee?"Arguments":u}},2894:function(t){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},4579:function(t){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},2445:function(t,n,r){"use strict";var e=r(4743),o=r(3101);t.exports=function(t,n,r){n in t?e.f(t,n,o(0,r)):t[n]=r}},9216:function(t,n,r){var e=r(5663);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,o){return t.call(n,r,e,o)}}return function(){return t.apply(n,arguments)}}},8333:function(t){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},9666:function(t,n,r){t.exports=!r(7929)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},7467:function(t,n,r){var e=r(6727),o=r(3938).document,i=e(o)&&e(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},3338:function(t){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},337:function(t,n,r){var e=r(6162),o=r(8195),i=r(6274);t.exports=function(t){var n=e(t),r=o.f;if(r)for(var u,a=r(t),c=i.f,f=0;a.length>f;)c.call(t,u=a[f++])&&n.push(u);return n}},3856:function(t,n,r){var e=r(3938),o=r(4579),i=r(9216),u=r(1818),a=r(7069),c=function(t,n,r){var f,s,l,p=t&c.F,v=t&c.G,y=t&c.S,h=t&c.P,d=t&c.B,b=t&c.W,g=v?o:o[n]||(o[n]={}),m=g.prototype,x=v?e:y?e[n]:(e[n]||{}).prototype;for(f in v&&(r=n),r)(s=!p&&x&&void 0!==x[f])&&a(g,f)||(l=s?x[f]:r[f],g[f]=v&&"function"!=typeof x[f]?r[f]:d&&s?i(l,e):b&&x[f]==l?function(t){var n=function(n,r,e){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,e)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(l):h&&"function"==typeof l?i(Function.call,l):l,h&&((g.virtual||(g.virtual={}))[f]=l,t&c.R&&m&&!m[f]&&u(m,f,l)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},7929:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},3938:function(t){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},7069:function(t){var n={}.hasOwnProperty;t.exports=function(t,r){return n.call(t,r)}},1818:function(t,n,r){var e=r(4743),o=r(3101);t.exports=r(9666)?function(t,n,r){return e.f(t,n,o(1,r))}:function(t,n,r){return t[n]=r,t}},4881:function(t,n,r){var e=r(3938).document;t.exports=e&&e.documentElement},3758:function(t,n,r){t.exports=!r(9666)&&!r(7929)((function(){return 7!=Object.defineProperty(r(7467)("div"),"a",{get:function(){return 7}}).a}))},799:function(t,n,r){var e=r(2894);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==e(t)?t.split(""):Object(t)}},5991:function(t,n,r){var e=r(5449),o=r(2939)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(e.Array===t||i[o]===t)}},1421:function(t,n,r){var e=r(2894);t.exports=Array.isArray||function(t){return"Array"==e(t)}},6727:function(t){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},5602:function(t,n,r){var e=r(2159);t.exports=function(t,n,r,o){try{return o?n(e(r)[0],r[1]):n(r)}catch(n){var i=t.return;throw void 0!==i&&e(i.call(t)),n}}},3945:function(t,n,r){"use strict";var e=r(8989),o=r(3101),i=r(5378),u={};r(1818)(u,r(2939)("iterator"),(function(){return this})),t.exports=function(t,n,r){t.prototype=e(u,{next:o(1,r)}),i(t,n+" Iterator")}},5700:function(t,n,r){"use strict";var e=r(6227),o=r(3856),i=r(7470),u=r(1818),a=r(5449),c=r(3945),f=r(5378),s=r(5089),l=r(2939)("iterator"),p=!([].keys&&"next"in[].keys()),v="keys",y="values",h=function(){return this};t.exports=function(t,n,r,d,b,g,m){c(r,n,d);var x,S,w,O=function(t){if(!p&&t in E)return E[t];switch(t){case v:case y:return function(){return new r(this,t)}}return function(){return new r(this,t)}},_=n+" Iterator",j=b==y,A=!1,E=t.prototype,L=E[l]||E["@@iterator"]||b&&E[b],P=L||O(b),I=b?j?O("entries"):P:void 0,T="Array"==n&&E.entries||L;if(T&&(w=s(T.call(new t)))!==Object.prototype&&w.next&&(f(w,_,!0),e||"function"==typeof w[l]||u(w,l,h)),j&&L&&L.name!==y&&(A=!0,P=function(){return L.call(this)}),e&&!m||!p&&!A&&E[l]||u(E,l,P),a[n]=P,a[_]=h,b)if(x={values:j?P:O(y),keys:g?P:O(v),entries:I},m)for(S in x)S in E||i(E,S,x[S]);else o(o.P+o.F*(p||A),n,x);return x}},6630:function(t,n,r){var e=r(2939)("iterator"),o=!1;try{var i=[7][e]();i.return=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(t){}t.exports=function(t,n){if(!n&&!o)return!1;var r=!1;try{var i=[7],u=i[e]();u.next=function(){return{done:r=!0}},i[e]=function(){return u},t(i)}catch(t){}return r}},5084:function(t){t.exports=function(t,n){return{value:n,done:!!t}}},5449:function(t){t.exports={}},6227:function(t){t.exports=!0},7177:function(t,n,r){var e=r(5730)("meta"),o=r(6727),i=r(7069),u=r(4743).f,a=0,c=Object.isExtensible||function(){return!0},f=!r(7929)((function(){return c(Object.preventExtensions({}))})),s=function(t){u(t,e,{value:{i:"O"+ ++a,w:{}}})},l=t.exports={KEY:e,NEED:!1,fastKey:function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,e)){if(!c(t))return"F";if(!n)return"E";s(t)}return t[e].i},getWeak:function(t,n){if(!i(t,e)){if(!c(t))return!0;if(!n)return!1;s(t)}return t[e].w},onFreeze:function(t){return f&&l.NEED&&c(t)&&!i(t,e)&&s(t),t}}},8989:function(t,n,r){var e=r(2159),o=r(7856),i=r(3338),u=r(7281)("IE_PROTO"),a=function(){},c=function(){var t,n=r(7467)("iframe"),e=i.length;for(n.style.display="none",r(4881).appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;e--;)delete c.prototype[i[e]];return c()};t.exports=Object.create||function(t,n){var r;return null!==t?(a.prototype=e(t),r=new a,a.prototype=null,r[u]=t):r=c(),void 0===n?r:o(r,n)}},4743:function(t,n,r){var e=r(2159),o=r(3758),i=r(3206),u=Object.defineProperty;n.f=r(9666)?Object.defineProperty:function(t,n,r){if(e(t),n=i(n,!0),e(r),o)try{return u(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},7856:function(t,n,r){var e=r(4743),o=r(2159),i=r(6162);t.exports=r(9666)?Object.defineProperties:function(t,n){o(t);for(var r,u=i(n),a=u.length,c=0;a>c;)e.f(t,r=u[c++],n[r]);return t}},6183:function(t,n,r){var e=r(6274),o=r(3101),i=r(7932),u=r(3206),a=r(7069),c=r(3758),f=Object.getOwnPropertyDescriptor;n.f=r(9666)?f:function(t,n){if(t=i(t),n=u(n,!0),c)try{return f(t,n)}catch(t){}if(a(t,n))return o(!e.f.call(t,n),t[n])}},4368:function(t,n,r){var e=r(7932),o=r(3230).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(e(t))}},3230:function(t,n,r){var e=r(2963),o=r(3338).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return e(t,o)}},8195:function(t,n){n.f=Object.getOwnPropertySymbols},5089:function(t,n,r){var e=r(7069),o=r(6530),i=r(7281)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),e(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},2963:function(t,n,r){var e=r(7069),o=r(7932),i=r(7428)(!1),u=r(7281)("IE_PROTO");t.exports=function(t,n){var r,a=o(t),c=0,f=[];for(r in a)r!=u&&e(a,r)&&f.push(r);for(;n.length>c;)e(a,r=n[c++])&&(~i(f,r)||f.push(r));return f}},6162:function(t,n,r){var e=r(2963),o=r(3338);t.exports=Object.keys||function(t){return e(t,o)}},6274:function(t,n){n.f={}.propertyIsEnumerable},2584:function(t,n,r){var e=r(3856),o=r(4579),i=r(7929);t.exports=function(t,n){var r=(o.Object||{})[t]||Object[t],u={};u[t]=n(r),e(e.S+e.F*i((function(){r(1)})),"Object",u)}},3101:function(t){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},7470:function(t,n,r){t.exports=r(1818)},5378:function(t,n,r){var e=r(4743).f,o=r(7069),i=r(2939)("toStringTag");t.exports=function(t,n,r){t&&!o(t=r?t:t.prototype,i)&&e(t,i,{configurable:!0,value:n})}},7281:function(t,n,r){var e=r(250)("keys"),o=r(5730);t.exports=function(t){return e[t]||(e[t]=o(t))}},250:function(t,n,r){var e=r(4579),o=r(3938),i="__core-js_shared__",u=o[i]||(o[i]={});(t.exports=function(t,n){return u[t]||(u[t]=void 0!==n?n:{})})("versions",[]).push({version:e.version,mode:r(6227)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},510:function(t,n,r){var e=r(1052),o=r(8333);t.exports=function(t){return function(n,r){var i,u,a=String(o(n)),c=e(r),f=a.length;return c<0||c>=f?t?"":void 0:(i=a.charCodeAt(c))<55296||i>56319||c+1===f||(u=a.charCodeAt(c+1))<56320||u>57343?t?a.charAt(c):i:t?a.slice(c,c+2):u-56320+(i-55296<<10)+65536}}},6531:function(t,n,r){var e=r(1052),o=Math.max,i=Math.min;t.exports=function(t,n){return(t=e(t))<0?o(t+n,0):i(t,n)}},1052:function(t){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},7932:function(t,n,r){var e=r(799),o=r(8333);t.exports=function(t){return e(o(t))}},8728:function(t,n,r){var e=r(1052),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},6530:function(t,n,r){var e=r(8333);t.exports=function(t){return Object(e(t))}},3206:function(t,n,r){var e=r(6727);t.exports=function(t,n){if(!e(t))return t;var r,o;if(n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!e(o=r.call(t)))return o;if(!n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},5730:function(t){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},6347:function(t,n,r){var e=r(3938),o=r(4579),i=r(6227),u=r(5103),a=r(4743).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:e.Symbol||{});"_"==t.charAt(0)||t in n||a(n,t,{value:u.f(t)})}},5103:function(t,n,r){n.f=r(2939)},2939:function(t,n,r){var e=r(250)("wks"),o=r(5730),i=r(3938).Symbol,u="function"==typeof i;(t.exports=function(t){return e[t]||(e[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=e},3728:function(t,n,r){var e=r(4677),o=r(2939)("iterator"),i=r(5449);t.exports=r(4579).getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[e(t)]}},2586:function(t,n,r){"use strict";var e=r(9216),o=r(3856),i=r(6530),u=r(5602),a=r(5991),c=r(8728),f=r(2445),s=r(3728);o(o.S+o.F*!r(6630)((function(t){Array.from(t)})),"Array",{from:function(t){var n,r,o,l,p=i(t),v="function"==typeof this?this:Array,y=arguments.length,h=y>1?arguments[1]:void 0,d=void 0!==h,b=0,g=s(p);if(d&&(h=e(h,y>2?arguments[2]:void 0,2)),null==g||v==Array&&a(g))for(r=new v(n=c(p.length));n>b;b++)f(r,b,d?h(p[b],b):p[b]);else for(l=g.call(p),r=new v;!(o=l.next()).done;b++)f(r,b,d?u(l,h,[o.value,b],!0):o.value);return r.length=b,r}})},8691:function(t,n,r){var e=r(3856);e(e.S,"Array",{isArray:r(1421)})},3882:function(t,n,r){"use strict";var e=r(9003),o=r(5084),i=r(5449),u=r(7932);t.exports=r(5700)(Array,"Array",(function(t,n){this._t=u(t),this._i=0,this._k=n}),(function(){var t=this._t,n=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,o(1)):o(0,"keys"==n?r:"values"==n?t[r]:[r,t[r]])}),"values"),i.Arguments=i.Array,e("keys"),e("values"),e("entries")},1477:function(t,n,r){var e=r(3856);e(e.S+e.F*!r(9666),"Object",{defineProperty:r(4743).f})},961:function(t,n,r){var e=r(6530),o=r(6162);r(2584)("keys",(function(){return function(t){return o(e(t))}}))},4058:function(){},1867:function(t,n,r){"use strict";var e=r(510)(!0);r(5700)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,n=this._t,r=this._i;return r>=n.length?{value:void 0,done:!0}:(t=e(n,r),this._i+=t.length,{value:t,done:!1})}))},6840:function(t,n,r){"use strict";var e=r(3938),o=r(7069),i=r(9666),u=r(3856),a=r(7470),c=r(7177).KEY,f=r(7929),s=r(250),l=r(5378),p=r(5730),v=r(2939),y=r(5103),h=r(6347),d=r(337),b=r(1421),g=r(2159),m=r(6727),x=r(6530),S=r(7932),w=r(3206),O=r(3101),_=r(8989),j=r(4368),A=r(6183),E=r(8195),L=r(4743),P=r(6162),I=A.f,T=L.f,k=j.f,C=e.Symbol,M=e.JSON,F=M&&M.stringify,N=v("_hidden"),R=v("toPrimitive"),D={}.propertyIsEnumerable,G=s("symbol-registry"),B=s("symbols"),H=s("op-symbols"),V=Object.prototype,W="function"==typeof C&&!!E.f,q=e.QObject,U=!q||!q.prototype||!q.prototype.findChild,z=i&&f((function(){return 7!=_(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a}))?function(t,n,r){var e=I(V,n);e&&delete V[n],T(t,n,r),e&&t!==V&&T(V,n,e)}:T,J=function(t){var n=B[t]=_(C.prototype);return n._k=t,n},K=W&&"symbol"==typeof C.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof C},$=function(t,n,r){return t===V&&$(H,n,r),g(t),n=w(n,!0),g(r),o(B,n)?(r.enumerable?(o(t,N)&&t[N][n]&&(t[N][n]=!1),r=_(r,{enumerable:O(0,!1)})):(o(t,N)||T(t,N,O(1,{})),t[N][n]=!0),z(t,n,r)):T(t,n,r)},Y=function(t,n){g(t);for(var r,e=d(n=S(n)),o=0,i=e.length;i>o;)$(t,r=e[o++],n[r]);return t},Q=function(t){var n=D.call(this,t=w(t,!0));return!(this===V&&o(B,t)&&!o(H,t))&&(!(n||!o(this,t)||!o(B,t)||o(this,N)&&this[N][t])||n)},X=function(t,n){if(t=S(t),n=w(n,!0),t!==V||!o(B,n)||o(H,n)){var r=I(t,n);return!r||!o(B,n)||o(t,N)&&t[N][n]||(r.enumerable=!0),r}},Z=function(t){for(var n,r=k(S(t)),e=[],i=0;r.length>i;)o(B,n=r[i++])||n==N||n==c||e.push(n);return e},tt=function(t){for(var n,r=t===V,e=k(r?H:S(t)),i=[],u=0;e.length>u;)!o(B,n=e[u++])||r&&!o(V,n)||i.push(B[n]);return i};W||(a((C=function(){if(this instanceof C)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),n=function(r){this===V&&n.call(H,r),o(this,N)&&o(this[N],t)&&(this[N][t]=!1),z(this,t,O(1,r))};return i&&U&&z(V,t,{configurable:!0,set:n}),J(t)}).prototype,"toString",(function(){return this._k})),A.f=X,L.f=$,r(3230).f=j.f=Z,r(6274).f=Q,E.f=tt,i&&!r(6227)&&a(V,"propertyIsEnumerable",Q,!0),y.f=function(t){return J(v(t))}),u(u.G+u.W+u.F*!W,{Symbol:C});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;nt.length>rt;)v(nt[rt++]);for(var et=P(v.store),ot=0;et.length>ot;)h(et[ot++]);u(u.S+u.F*!W,"Symbol",{for:function(t){return o(G,t+="")?G[t]:G[t]=C(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var n in G)if(G[n]===t)return n},useSetter:function(){U=!0},useSimple:function(){U=!1}}),u(u.S+u.F*!W,"Object",{create:function(t,n){return void 0===n?_(t):Y(_(t),n)},defineProperty:$,defineProperties:Y,getOwnPropertyDescriptor:X,getOwnPropertyNames:Z,getOwnPropertySymbols:tt});var it=f((function(){E.f(1)}));u(u.S+u.F*it,"Object",{getOwnPropertySymbols:function(t){return E.f(x(t))}}),M&&u(u.S+u.F*(!W||f((function(){var t=C();return"[null]"!=F([t])||"{}"!=F({a:t})||"{}"!=F(Object(t))}))),"JSON",{stringify:function(t){for(var n,r,e=[t],o=1;arguments.length>o;)e.push(arguments[o++]);if(r=n=e[1],(m(n)||void 0!==t)&&!K(t))return b(n)||(n=function(t,n){if("function"==typeof r&&(n=r.call(this,t,n)),!K(n))return n}),e[1]=n,F.apply(M,e)}}),C.prototype[R]||r(1818)(C.prototype,R,C.prototype.valueOf),l(C,"Symbol"),l(Math,"Math",!0),l(e.JSON,"JSON",!0)},8174:function(t,n,r){r(6347)("asyncIterator")},6461:function(t,n,r){r(6347)("observable")},3871:function(t,n,r){r(3882);for(var e=r(3938),o=r(1818),i=r(5449),u=r(2939)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<a.length;c++){var f=a[c],s=e[f],l=s&&s.prototype;l&&!l[u]&&o(l,u,f),i[f]=i.Array}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,{a:n}),n},r.d=function(t,n){for(var e in n)r.o(n,e)&&!r.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},function(){"use strict";var t=r(3133),n=r.n(t),e=r(7219),o=r.n(e),i=r(7544),u=r.n(i),a=r(4422);function c(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=new Array(n);r<n;r++)e[r]=t[r];return e}function f(n,r){return function(t){if(a(t))return t}(n)||function(t,n){var r=null==t?null:void 0!==e&&t[i]||t["@@iterator"];if(null!=r){var o,u,a=[],c=!0,f=!1;try{for(r=r.call(t);!(c=(o=r.next()).done)&&(a.push(o.value),!n||a.length!==n);c=!0);}catch(t){f=!0,u=t}finally{try{c||null==r.return||r.return()}finally{if(f)throw u}}return a}}(n,r)||function(n,r){if(n){if("string"==typeof n)return c(n,r);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?t(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?c(n,r):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var s=r(8548);function l(t,n){for(var r=0;r<n.length;r++){var e=n[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),s(t,e.key,e)}}function p(t,n,r){return n in t?s(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}var v=r(3929),y=r.n(v);function h(t,r){var e=void 0!==o()&&t[u()]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=function(t,r){if(t){if("string"==typeof t)return d(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?n()(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?d(t,r):void 0}}(t))||r&&t&&"number"==typeof t.length){e&&(t=e);var i=0,a=function(){};return{s:a,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,f=!0,s=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return f=t.done,t},e:function(t){s=!0,c=t},f:function(){try{f||null==e.return||e.return()}finally{if(s)throw c}}}}function d(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=new Array(n);r<n;r++)e[r]=t[r];return e}var b=function(){function t(n){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),p(this,"__locale",null),p(this,"__fallback",null),this.__data=n,this.__locale=this.__fallback=y()(this.__data)[0],this.setLocale()}var n,r;return n=t,(r=[{key:"setLocale",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;Array.isArray(t)||(t=window.navigator.languages||[window.navigator.language]);var n,r=h(t);try{for(r.s();!(n=r.n()).done;){var e=n.value;for(var o in this.__data)if(e.toLowerCase()==o.toLowerCase())return this.__locale=o,!0;for(var i in this.__data)if(0==e.toLowerCase().indexOf(i.toLowerCase()))return this.__locale=i,!0}}catch(t){r.e(t)}finally{r.f()}return!1}},{key:"get",value:function(t){try{var n=this.__data[this.__locale];if(n&&n[t])return n[t];if((n=this.__data[this.__fallback])[t])return n[t]}catch(t){console.error(t)}return t}}])&&l(n.prototype,r),t}();function g(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=new Array(n);r<n;r++)e[r]=t[r];return e}try{var m=new b({en:{title:"Expression Calculator Test Page","Input expression":"Input expression","Input variables":'Input variables here, format: "varName=value"',Calculate:"Calculate","Calculate Result":"Calculate Result: "},zh:{title:"表达式计算器测试页面","Input expression":"请输入表达式","Input variables":"每行指定一个变量的值,格式:“变量名=变量值”",Calculate:"计算","Calculate Result":"计算结果:"}});document.title=m.get("title");for(var x=document.querySelectorAll("[placeholder]"),S=0;S<x.length;S++){var w=x[S];w.setAttribute("placeholder",m.get(w.getAttribute("placeholder")))}for(var O=document.querySelectorAll("[translate]"),_=0;_<O.length;_++){var j=O[_];j.innerHTML=m.get(j.getAttribute("translate"))}}catch(t){console.error("Failed to load translation",t)}var A=document.getElementById("inputForm"),E=A.querySelector('[name="exprInput"]'),L=A.querySelector('[type="submit"]'),P=document.getElementById("errorInfo"),I=document.getElementById("calcResult"),T=document.getElementById("calcResultNum");function k(){var t=A[0].value;L.disabled=!t}E.addEventListener("input",k),E.addEventListener("change",k),E.addEventListener("blur",k),A.addEventListener("submit",(function(t){t.preventDefault();try{I.style.display="none",P.style.display="none";var r=new Calc(t.target[0].value),e=function(t){if(!t)return{};var r,e={},i=function(t,r){var e=void 0!==o()&&t[u()]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=function(t,r){if(t){if("string"==typeof t)return g(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?n()(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?g(t,r):void 0}}(t))||r&&t&&"number"==typeof t.length){e&&(t=e);var i=0,a=function(){};return{s:a,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,f=!0,s=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return f=t.done,t},e:function(t){s=!0,c=t},f:function(){try{f||null==e.return||e.return()}finally{if(s)throw c}}}}(t.split("\n"));try{for(i.s();!(r=i.n()).done;){var a=r.value;if(a&&-1!=a.indexOf("=")){var c=f(a.split("="),2),s=c[0],l=c[1];e[s]=l}}}catch(t){i.e(t)}finally{i.f()}return e}(t.target[1].value);return i=r.calc(e),I.style.display="block",T.innerHTML=i,!1}catch(t){console.error(t),P.style.display="block",P.innerHTML=t.message}var i;return!1}))}()}();</script></html>
<!doctype html><html><head><meta charset="UTF-8"/><meta name="viewport" id="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/><title>Expression Calculator Test Page</title><style>body{color:#303133;font-family:微软雅黑,sans;margin:0 auto;padding:50px 10px 10px;user-select:none;-ms-user-select:none}:-ms-input-placeholder{color:#c0c4cc!important;font-family:微软雅黑,sans!important;font-size:16px!important}::-moz-placeholder{color:#c0c4cc;font-family:微软雅黑,sans;font-size:16px}::-webkit-input-placeholder{color:#c0c4cc;font-family:微软雅黑,sans;font-size:16px}ribbon{user-drag:none;background-color:#a00;box-shadow:0 0 5px 2px #888;position:fixed;right:0;top:0;user-select:none}ribbon,ribbon a{display:block;overflow:hidden}ribbon a{border-bottom:1px solid #fff;border-top:1px solid #fff;color:#fff;font-size:12px;font-weight:700;line-height:30px;margin:2px 0;text-align:center;text-decoration:none;width:260px}@media only screen and (min-width:600px){body{padding-top:10px}ribbon{transform:translate(83px) rotate(45deg);transform-origin:50px 50%}.inputForm{margin-right:170px}}.inputForm{margin-bottom:10px}.inputForm input,.inputForm textarea{-webkit-appearance:none;background-color:#fff;background-image:none;border:1px solid #dcdfe6;border-radius:4px;box-sizing:border-box;color:#333;display:block;font-size:16px;margin:0 10px 10px 0;outline:none;padding:0 8px;width:100%}.inputForm input{height:30px;line-height:28px}.inputForm input ::-ms-clear{display:none;height:0;width:0}.inputForm textarea{height:130px;line-height:20px;overflow-x:hidden;overflow-y:auto;padding:4px 8px;resize:vertical}.inputForm button{background-color:#409eff;border:none;border-radius:15px;color:#fff;cursor:pointer;font-size:16px;height:30px;line-height:30px;margin:0 10px 5px 0;min-width:60px;outline:none;padding:0 14px}.inputForm button:hover{background-color:#66b1ff}.inputForm button:disabled{background-color:#a0cfff;cursor:not-allowed}.inputForm button:disabled:hover{background-color:#a0cfff}.calcResult{display:inline-block;line-height:20px;padding:5px 0;vertical-align:top}.calcResult.error{color:#f56c6c}</style><script src="./dist/exprcalc.js"></script></head><body><ribbon><a href="https://github.com/frank-deng/linefold/">Fork me on GitHub</a></ribbon><form class="inputForm" method="post" action="#" id="inputForm"><input placeholder="Input expression" name="exprInput"/> <textarea placeholder="Input variables" name="varInput"></textarea> <button disabled="disabled" type="submit" translate="Calculate">Calculate</button><div class="calcResult" id="calcResult"></div></form></body><script>!function(){"use strict";function t(t,r){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,r){if(t){if("string"==typeof t)return e(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,r):void 0}}(t))||r&&t&&"number"==typeof t.length){n&&(t=n);var a=0,o=function(){};return{s:o,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,i=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return i=t.done,t},e:function(t){u=!0,l=t},f:function(){try{i||null==n.return||n.return()}finally{if(u)throw l}}}}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n(this,"__locale",null),n(this,"__fallback",null),this.__data=t,this.__locale=this.__fallback=Object.keys(this.__data)[0],this.setLocale()}var a,o;return a=e,(o=[{key:"setLocale",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;Array.isArray(e)||(e=window.navigator.languages||[window.navigator.language]);var r,n=t(e);try{for(n.s();!(r=n.n()).done;){var a=r.value;for(var o in this.__data)if(a.toLowerCase()==o.toLowerCase())return this.__locale=o,!0;for(var l in this.__data)if(0==a.toLowerCase().indexOf(l.toLowerCase()))return this.__locale=l,!0}}catch(t){n.e(t)}finally{n.f()}return!1}},{key:"get",value:function(t){try{var e=this.__data[this.__locale];if(e&&e[t])return e[t];if((e=this.__data[this.__fallback])[t])return e[t]}catch(t){console.error(t)}return t}}])&&r(a.prototype,o),e}();function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,a,o=[],l=!0,i=!1;try{for(r=r.call(t);!(l=(n=r.next()).done)&&(o.push(n.value),!e||o.length!==e);l=!0);}catch(t){i=!0,a=t}finally{try{l||null==r.return||r.return()}finally{if(i)throw a}}return o}}(t,e)||l(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){if(t){if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var u=null;try{u=new a({en:{title:"Expression Calculator Test Page","Input expression":"Input expression","Input variables":'Input variables here, format: "varName=value"',Calculate:"Calculate",calc_ans:"Calculation Answer: "},zh:{title:"表达式计算器测试页面","Input expression":"请输入表达式","Input variables":"每行指定一个变量的值,格式:“变量名=变量值”",Calculate:"计算",calc_ans:"计算结果:"}}),document.title=u.get("title");for(var c=document.querySelectorAll("[placeholder]"),s=0;s<c.length;s++){var f=c[s];f.setAttribute("placeholder",u.get(f.getAttribute("placeholder")))}for(var v=document.querySelectorAll("[translate]"),y=0;y<v.length;y++){var d=v[y];d.innerHTML=u.get(d.getAttribute("translate"))}}catch(t){console.error("Failed to load translation",t)}var h=document.getElementById("inputForm"),b=h.querySelector('[name="exprInput"]'),p=h.querySelector('[type="submit"]'),m=document.getElementById("calcResult");function g(t){t instanceof Error?(m.classList.add("error"),m.innerHTML=t.message):(m.classList.remove("error"),m.innerHTML=u.get("calc_ans")+t)}function _(){var t=h[0].value;p.disabled=!t}b.addEventListener("input",_),b.addEventListener("change",_),b.addEventListener("blur",_),h.addEventListener("submit",(function(t){t.preventDefault();try{var e=new Calc(t.target[0].value),r=function(t){if(!t)return{};var e,r={},n=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=l(t))){r&&(t=r);var n=0,a=function(){};return{s:a,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){u=!0,o=t},f:function(){try{i||null==r.return||r.return()}finally{if(u)throw o}}}}(t.split("\n"));try{for(n.s();!(e=n.n()).done;){var a=e.value;if(a&&-1!=a.indexOf("=")){var i=o(a.split("="),2),u=i[0],c=i[1];r[u]=c}}}catch(t){n.e(t)}finally{n.f()}return r}(t.target[1].value);return g(e.calc(r)),!1}catch(t){console.error(t),g(t)}return!1}))}();</script></html>
{
"name": "expression-calculator",
"sideEffects": false,
"version": "1.0.4",
"version": "1.0.5",
"description": "Calculate expressions without using `eval()`, using LL(1) syntax analyzer.",

@@ -29,9 +29,11 @@ "main": "dist/exprcalc.js",

"browserslist": [
"defaults"
"> 0.1%",
"not dead",
"ie < 11"
],
"devDependencies": {
"@babel/core": "^7.14.6",
"@babel/plugin-transform-runtime": "^7.15.0",
"@babel/preset-env": "^7.14.7",
"babel-loader": "^8.2.2",
"core-js": "^3.16.1",
"cross-env": "^7.0.3",

@@ -38,0 +40,0 @@ "cssnano": "^5.0.7",

@@ -32,3 +32,3 @@ <a name='english'></a>

<script type='text/javascript' src='path/to/exprcalc.js'></script>
<script type='text/javascript' src='./dist/exprcalc.js'></script>

@@ -35,0 +35,0 @@

@@ -16,5 +16,4 @@ <!DOCTYPE html>

<button disabled type='submit' translate='Calculate'>Calculate</button>
<div class='calcResult' id='calcResult'></div>
</form>
<div class='errorInfo' id='errorInfo'></div>
<div class='calcResult' id='calcResult'><span translate="Calculate Result"></span><span id='calcResultNum'></span></div>
</body>

@@ -21,0 +20,0 @@ <% if('development'==(env.NODE_ENV||'').trim()){ %>

import Lang from './lang.js';
let lang=null;
try{
const lang=new Lang({
lang=new Lang({
en:{

@@ -9,3 +10,3 @@ title:'Expression Calculator Test Page',

Calculate:'Calculate',
'Calculate Result':'Calculate Result: '
calc_ans:'Calculation Answer: '
},

@@ -17,3 +18,3 @@ zh:{

Calculate:'计算',
'Calculate Result':'计算结果:'
calc_ans:'计算结果:'
}

@@ -39,8 +40,11 @@ });

const submitBtn=inputForm.querySelector('[type="submit"]');
const errorInfo=document.getElementById('errorInfo');
const calcResult=document.getElementById('calcResult');
const calcResultNum=document.getElementById('calcResultNum');
function displayResult(value){
calcResult.style.display='block';
calcResultNum.innerHTML=value;
if(value instanceof Error){
calcResult.classList.add('error');
calcResult.innerHTML=value.message;
}else{
calcResult.classList.remove('error');
calcResult.innerHTML=lang.get('calc_ans')+value;
}
}

@@ -71,4 +75,2 @@ function parseVarInput(input){

try{
calcResult.style.display='none';
errorInfo.style.display='none';
let calc=new Calc(e.target[0].value);

@@ -80,6 +82,5 @@ let varTable=parseVarInput(e.target[1].value);

console.error(e);
errorInfo.style.display='block';
errorInfo.innerHTML=e.message;
displayResult(e);
}
return false;
});

@@ -7,2 +7,3 @@ body{

user-select: none;
-ms-user-select: none;
}

@@ -98,2 +99,3 @@ :-ms-input-placeholder{

button{
margin:0 10px 5px 0;
line-height:30px;

@@ -122,8 +124,10 @@ height:30px;

}
.errorInfo{
display:none;
color:#F56C6C;
.calcResult{
display: inline-block;
vertical-align: top;
line-height: 20px;
padding:5px 0;
&.error{
color:#F56C6C;
}
}
.calcResult{
display:none;
}

@@ -8,3 +8,3 @@ const path = require('path');

publicPath:'/dist/',
import:['./src/index.js'],
import:['core-js/modules/es.symbol.iterator.js','./src/index.js'],
library:{

@@ -11,0 +11,0 @@ name: 'Calc',