simplegoals
Version:
Motivate your users with pleasant and easy-to-use achievements.
1 lines • 51.4 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("SimpleGoals",[],e):"object"==typeof exports?exports.SimpleGoals=e():t.SimpleGoals=e()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=132)}([function(t,e,n){var r=n(1),o=n(15),i=n(6),c=n(40),a=n(47),u=n(60),s=o("wks"),f=r.Symbol,l=u?f:c;t.exports=function(t){return i(s,t)||(a&&i(f,t)?s[t]=f[t]:s[t]=l("Symbol."+t)),s[t]}},function(t,e,n){(function(e){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 e&&e)||Function("return this")()}).call(this,n(84))},function(t,e,n){var r=n(1),o=n(26).f,i=n(10),c=n(11),a=n(39),u=n(55),s=n(59);t.exports=function(t,e){var n,f,l,p,v,h=t.target,d=t.global,y=t.stat;if(n=d?r:y?r[h]||a(h,{}):(r[h]||{}).prototype)for(f in e){if(p=e[f],l=t.noTargetGet?(v=o(n,f))&&v.value:n[f],!s(d?f:h+(y?".":"#")+f,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;u(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),c(n,f,p,t)}}},function(t,e,n){t.exports=n(25)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(5);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,n){var r=n(4);t.exports=!r((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(8),o=n(53),i=n(7),c=n(27),a=Object.defineProperty;e.f=r?a:function(t,e,n){if(i(t),e=c(e,!0),i(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(8),o=n(9),i=n(18);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(1),o=n(15),i=n(10),c=n(6),a=n(39),u=n(54),s=n(21),f=s.get,l=s.enforce,p=String(u).split("toString");o("inspectSource",(function(t){return u.call(t)})),(t.exports=function(t,e,n,o){var u=!!o&&!!o.unsafe,s=!!o&&!!o.enumerable,f=!!o&&!!o.noTargetGet;"function"==typeof n&&("string"!=typeof e||c(n,"name")||i(n,"name",e),l(n).source=p.join("string"==typeof e?e:"")),t!==r?(u?!f&&t[e]&&(s=!0):delete t[e],s?t[e]=n:i(t,e,n)):s?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&f(this).source||u.call(this)}))},function(t,e,n){var r=n(37),o=n(19);t.exports=function(t){return r(o(t))}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(19);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(20),o=n(85);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.4.2",mode:r?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(56),o=n(1),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t])||i(o[t]):r[t]&&r[t][e]||o[t]&&o[t][e]}},function(t,e,n){var r=n(46),o=n(11),i=n(89);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){t.exports=!1},function(t,e,n){var r,o,i,c=n(86),a=n(1),u=n(5),s=n(10),f=n(6),l=n(28),p=n(29),v=a.WeakMap;if(c){var h=new v,d=h.get,y=h.has,g=h.set;r=function(t,e){return g.call(h,t,e),e},o=function(t){return d.call(h,t)||{}},i=function(t){return y.call(h,t)}}else{var m=l("state");p[m]=!0,r=function(t,e){return s(t,m,e),e},o=function(t){return f(t,m)?t[m]:{}},i=function(t){return f(t,m)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){var r=n(43),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e){t.exports={}},function(t,e,n){var r=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function u(t,e,n,r){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),c=new k(r||[]);return i._invoke=function(t,e,n){var r=f;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===v){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var a=j(c,n);if(a){if(a===h)continue;return a}}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=p;var u=s(t,e,n);if("normal"===u.type){if(r=n.done?v:l,u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=v,n.method="throw",n.arg=u.arg)}}}(t,n,c),i}function s(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f="suspendedStart",l="suspendedYield",p="executing",v="completed",h={};function d(){}function y(){}function g(){}var m={};m[i]=function(){return this};var b=Object.getPrototypeOf,x=b&&b(b(L([])));x&&x!==n&&r.call(x,i)&&(m=x);var w=g.prototype=d.prototype=Object.create(m);function S(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function O(t){var e;this._invoke=function(n,o){function i(){return new Promise((function(e,i){!function e(n,o,i,c){var a=s(t[n],t,o);if("throw"!==a.type){var u=a.arg,f=u.value;return f&&"object"==typeof f&&r.call(f,"__await")?Promise.resolve(f.__await).then((function(t){e("next",t,i,c)}),(function(t){e("throw",t,i,c)})):Promise.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return e("throw",t,i,c)}))}c(a.arg)}(n,o,e,i)}))}return e=e?e.then(i,i):i()}}function j(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,j(t,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=s(r,t.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[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,h):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function L(t){if(t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return c.next=c}}return{next:P}}function P(){return{value:e,done:!0}}return y.prototype=w.constructor=g,g.constructor=y,g[a]=y.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},S(O.prototype),O.prototype[c]=function(){return this},t.AsyncIterator=O,t.async=function(e,n,r,o){var i=new O(u(e,n,r,o));return t.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},S(w),w[a]="Generator",w[i]=function(){return this},w.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=L,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(E),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return a.type="throw",a.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var c=this.tryEntries[i],a=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var u=r.call(c,"catchLoc"),s=r.call(c,"finallyLoc");if(u&&s){if(this.prev<c.catchLoc)return o(c.catchLoc,!0);if(this.prev<c.finallyLoc)return o(c.finallyLoc)}else if(u){if(this.prev<c.catchLoc)return o(c.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return o(c.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:L(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),h}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,e,n){var r=n(8),o=n(36),i=n(18),c=n(12),a=n(27),u=n(6),s=n(53),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=c(t),e=a(e,!0),s)try{return f(t,e)}catch(t){}if(u(t,e))return i(!o.f.call(t,e),t[e])}},function(t,e,n){var r=n(5);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(15),o=n(40),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e){t.exports={}},function(t,e,n){var r=n(57),o=n(44);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){"use strict";var r,o,i,c,a=n(2),u=n(20),s=n(1),f=n(16),l=n(90),p=n(11),v=n(91),h=n(15),d=n(32),y=n(92),g=n(5),m=n(23),b=n(93),x=n(13),w=n(94),S=n(98),O=n(99),j=n(62).set,_=n(100),E=n(101),k=n(102),L=n(66),P=n(103),T=n(21),I=n(59),A=n(0),M=n(49),F=A("species"),C="Promise",N=T.get,G=T.set,R=T.getterFor(C),D=l,B=s.TypeError,H=s.document,U=s.process,V=h("inspectSource"),q=f("fetch"),z=L.f,J=z,W="process"==x(U),Y=!!(H&&H.createEvent&&s.dispatchEvent),$=I(C,(function(){if(!(V(D)!==String(D))){if(66===M)return!0;if(!W&&"function"!=typeof PromiseRejectionEvent)return!0}if(u&&!D.prototype.finally)return!0;if(M>=51&&/native code/.test(D))return!1;var t=D.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[F]=e,!(t.then((function(){}))instanceof e)})),K=$||!S((function(t){D.all(t).catch((function(){}))})),X=function(t){var e;return!(!g(t)||"function"!=typeof(e=t.then))&&e},Q=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;_((function(){for(var o=e.value,i=1==e.state,c=0;r.length>c;){var a,u,s,f=r[c++],l=i?f.ok:f.fail,p=f.resolve,v=f.reject,h=f.domain;try{l?(i||(2===e.rejection&&nt(t,e),e.rejection=1),!0===l?a=o:(h&&h.enter(),a=l(o),h&&(h.exit(),s=!0)),a===f.promise?v(B("Promise-chain cycle")):(u=X(a))?u.call(a,p,v):p(a)):v(o)}catch(t){h&&!s&&h.exit(),v(t)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&tt(t,e)}))}},Z=function(t,e,n){var r,o;Y?((r=H.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),s.dispatchEvent(r)):r={promise:e,reason:n},(o=s["on"+t])?o(r):"unhandledrejection"===t&&k("Unhandled promise rejection",n)},tt=function(t,e){j.call(s,(function(){var n,r=e.value;if(et(e)&&(n=P((function(){W?U.emit("unhandledRejection",r,t):Z("unhandledrejection",t,r)})),e.rejection=W||et(e)?2:1,n.error))throw n.value}))},et=function(t){return 1!==t.rejection&&!t.parent},nt=function(t,e){j.call(s,(function(){W?U.emit("rejectionHandled",t):Z("rejectionhandled",t,e.value)}))},rt=function(t,e,n,r){return function(o){t(e,n,o,r)}},ot=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=2,Q(t,e,!0))},it=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw B("Promise can't be resolved itself");var o=X(n);o?_((function(){var r={done:!1};try{o.call(n,rt(it,t,r,e),rt(ot,t,r,e))}catch(n){ot(t,r,n,e)}})):(e.value=n,e.state=1,Q(t,e,!1))}catch(n){ot(t,{done:!1},n,e)}}};$&&(D=function(t){b(this,D,C),m(t),r.call(this);var e=N(this);try{t(rt(it,this,e),rt(ot,this,e))}catch(t){ot(this,e,t)}},(r=function(t){G(this,{type:C,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=v(D.prototype,{then:function(t,e){var n=R(this),r=z(O(this,D));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=W?U.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Q(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r,e=N(t);this.promise=t,this.resolve=rt(it,t,e),this.reject=rt(ot,t,e)},L.f=z=function(t){return t===D||t===i?new o(t):J(t)},u||"function"!=typeof l||(c=l.prototype.then,p(l.prototype,"then",(function(t,e){var n=this;return new D((function(t,e){c.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof q&&a({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return E(D,q.apply(s,arguments))}}))),a({global:!0,wrap:!0,forced:$},{Promise:D}),d(D,C,!1,!0),y(C),i=f(C),a({target:C,stat:!0,forced:$},{reject:function(t){var e=z(this);return e.reject.call(void 0,t),e.promise}}),a({target:C,stat:!0,forced:u||$},{resolve:function(t){return E(u&&this===i?D:this,t)}}),a({target:C,stat:!0,forced:K},{all:function(t){var e=this,n=z(e),r=n.resolve,o=n.reject,i=P((function(){var n=m(e.resolve),i=[],c=0,a=1;w(t,(function(t){var u=c++,s=!1;i.push(void 0),a++,n.call(e,t).then((function(t){s||(s=!0,i[u]=t,--a||r(i))}),o)})),--a||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=z(e),r=n.reject,o=P((function(){var o=m(e.resolve);w(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},function(t,e,n){var r=n(9).f,o=n(6),i=n(0)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(13);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(48),o=n(37),i=n(14),c=n(22),a=n(73),u=[].push,s=function(t){var e=1==t,n=2==t,s=3==t,f=4==t,l=6==t,p=5==t||l;return function(v,h,d,y){for(var g,m,b=i(v),x=o(b),w=r(h,d,3),S=c(x.length),O=0,j=y||a,_=e?j(v,S):n?j(v,0):void 0;S>O;O++)if((p||O in x)&&(m=w(g=x[O],O,b),t))if(e)_[O]=m;else if(m)switch(t){case 3:return!0;case 5:return g;case 6:return O;case 2:u.call(_,g)}else if(f)return!1;return l?-1:s||f?f:_}};t.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6)}},function(t,e,n){var r=n(4),o=n(0),i=n(49),c=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[c]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},function(t,e,n){var r=n(4),o=n(13),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,e,n){var r=n(1),o=n(5),i=r.document,c=o(i)&&o(i.createElement);t.exports=function(t){return c?i.createElement(t):{}}},function(t,e,n){var r=n(1),o=n(10);t.exports=function(t,e){try{o(r,t,e)}catch(n){r[t]=e}return e}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},function(t,e,n){var r=n(57),o=n(44).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(12),o=n(22),i=n(58),c=function(t){return function(e,n,c){var a,u=r(e),s=o(u.length),f=i(c,s);if(t&&n!=n){for(;s>f;)if((a=u[f++])!=a)return!0}else for(;s>f;f++)if((t||f in u)&&u[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:c(!0),indexOf:c(!1)}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r={};r[n(0)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){var r=n(4);t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(t,e,n){var r=n(23);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r,o,i=n(1),c=n(65),a=i.process,u=a&&a.versions,s=u&&u.v8;s?o=(r=s.split("."))[0]+r[1]:c&&(!(r=c.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=c.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},function(t,e,n){var r=n(7),o=n(105),i=n(44),c=n(29),a=n(63),u=n(38),s=n(28)("IE_PROTO"),f=function(){},l=function(){var t,e=u("iframe"),n=i.length;for(e.style.display="none",a.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;n--;)delete l.prototype[i[n]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(f.prototype=r(t),n=new f,f.prototype=null,n[s]=t):n=l(),void 0===e?n:o(n,e)},c[s]=!0},function(t,e,n){var r=n(2),o=n(14),i=n(30);r({target:"Object",stat:!0,forced:n(4)((function(){i(1)}))},{keys:function(t){return i(o(t))}})},function(t,e,n){"use strict";var r=n(4);t.exports=function(t,e){var n=[][t];return!n||!r((function(){n.call(null,e||function(){throw 1},1)}))}},function(t,e,n){var r=n(8),o=n(4),i=n(38);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(15);t.exports=r("native-function-to-string",Function.toString)},function(t,e,n){var r=n(6),o=n(87),i=n(26),c=n(9);t.exports=function(t,e){for(var n=o(e),a=c.f,u=i.f,s=0;s<n.length;s++){var f=n[s];r(t,f)||a(t,f,u(e,f))}}},function(t,e,n){t.exports=n(1)},function(t,e,n){var r=n(6),o=n(12),i=n(42).indexOf,c=n(29);t.exports=function(t,e){var n,a=o(t),u=0,s=[];for(n in a)!r(c,n)&&r(a,n)&&s.push(n);for(;e.length>u;)r(a,n=e[u++])&&(~i(s,n)||s.push(n));return s}},function(t,e,n){var r=n(43),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},function(t,e,n){var r=n(4),o=/#|\.prototype\./,i=function(t,e){var n=a[c(t)];return n==s||n!=u&&("function"==typeof e?r(e):!!e)},c=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},a=i.data={},u=i.NATIVE="N",s=i.POLYFILL="P";t.exports=i},function(t,e,n){var r=n(47);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol()},function(t,e,n){var r=n(46),o=n(13),i=n(0)("toStringTag"),c="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:c?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}},function(t,e,n){var r,o,i,c=n(1),a=n(4),u=n(13),s=n(48),f=n(63),l=n(38),p=n(64),v=c.location,h=c.setImmediate,d=c.clearImmediate,y=c.process,g=c.MessageChannel,m=c.Dispatch,b=0,x={},w=function(t){if(x.hasOwnProperty(t)){var e=x[t];delete x[t],e()}},S=function(t){return function(){w(t)}},O=function(t){w(t.data)},j=function(t){c.postMessage(t+"",v.protocol+"//"+v.host)};h&&d||(h=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return x[++b]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(b),b},d=function(t){delete x[t]},"process"==u(y)?r=function(t){y.nextTick(S(t))}:m&&m.now?r=function(t){m.now(S(t))}:g&&!p?(i=(o=new g).port2,o.port1.onmessage=O,r=s(i.postMessage,i,1)):!c.addEventListener||"function"!=typeof postMessage||c.importScripts||a(j)?r="onreadystatechange"in l("script")?function(t){f.appendChild(l("script")).onreadystatechange=function(){f.removeChild(this),w(t)}}:function(t){setTimeout(S(t),0)}:(r=j,c.addEventListener("message",O,!1))),t.exports={set:h,clear:d}},function(t,e,n){var r=n(16);t.exports=r("document","documentElement")},function(t,e,n){var r=n(65);t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},function(t,e,n){var r=n(16);t.exports=r("navigator","userAgent")||""},function(t,e,n){"use strict";var r=n(23),o=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},function(t,e,n){"use strict";var r=n(2),o=n(42).includes,i=n(68);r({target:"Array",proto:!0},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("includes")},function(t,e,n){var r=n(0),o=n(50),i=n(10),c=r("unscopables"),a=Array.prototype;null==a[c]&&i(a,c,o(null)),t.exports=function(t){a[c][t]=!0}},function(t,e,n){"use strict";var r=n(2),o=n(106),i=n(19);r({target:"String",proto:!0,forced:!n(108)("includes")},{includes:function(t){return!!~String(i(this)).indexOf(o(t),arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(2),o=n(1),i=n(16),c=n(20),a=n(8),u=n(47),s=n(60),f=n(4),l=n(6),p=n(33),v=n(5),h=n(7),d=n(14),y=n(12),g=n(27),m=n(18),b=n(50),x=n(30),w=n(41),S=n(109),O=n(45),j=n(26),_=n(9),E=n(36),k=n(10),L=n(11),P=n(15),T=n(28),I=n(29),A=n(40),M=n(0),F=n(71),C=n(72),N=n(32),G=n(21),R=n(34).forEach,D=T("hidden"),B=M("toPrimitive"),H=G.set,U=G.getterFor("Symbol"),V=Object.prototype,q=o.Symbol,z=i("JSON","stringify"),J=j.f,W=_.f,Y=S.f,$=E.f,K=P("symbols"),X=P("op-symbols"),Q=P("string-to-symbol-registry"),Z=P("symbol-to-string-registry"),tt=P("wks"),et=o.QObject,nt=!et||!et.prototype||!et.prototype.findChild,rt=a&&f((function(){return 7!=b(W({},"a",{get:function(){return W(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=J(V,e);r&&delete V[e],W(t,e,n),r&&t!==V&&W(V,e,r)}:W,ot=function(t,e){var n=K[t]=b(q.prototype);return H(n,{type:"Symbol",tag:t,description:e}),a||(n.description=e),n},it=u&&"symbol"==typeof q.iterator?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof q},ct=function(t,e,n){t===V&&ct(X,e,n),h(t);var r=g(e,!0);return h(n),l(K,r)?(n.enumerable?(l(t,D)&&t[D][r]&&(t[D][r]=!1),n=b(n,{enumerable:m(0,!1)})):(l(t,D)||W(t,D,m(1,{})),t[D][r]=!0),rt(t,r,n)):W(t,r,n)},at=function(t,e){h(t);var n=y(e),r=x(n).concat(lt(n));return R(r,(function(e){a&&!ut.call(n,e)||ct(t,e,n[e])})),t},ut=function(t){var e=g(t,!0),n=$.call(this,e);return!(this===V&&l(K,e)&&!l(X,e))&&(!(n||!l(this,e)||!l(K,e)||l(this,D)&&this[D][e])||n)},st=function(t,e){var n=y(t),r=g(e,!0);if(n!==V||!l(K,r)||l(X,r)){var o=J(n,r);return!o||!l(K,r)||l(n,D)&&n[D][r]||(o.enumerable=!0),o}},ft=function(t){var e=Y(y(t)),n=[];return R(e,(function(t){l(K,t)||l(I,t)||n.push(t)})),n},lt=function(t){var e=t===V,n=Y(e?X:y(t)),r=[];return R(n,(function(t){!l(K,t)||e&&!l(V,t)||r.push(K[t])})),r};(u||(L((q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=A(t),n=function(t){this===V&&n.call(X,t),l(this,D)&&l(this[D],e)&&(this[D][e]=!1),rt(this,e,m(1,t))};return a&&nt&&rt(V,e,{configurable:!0,set:n}),ot(e,t)}).prototype,"toString",(function(){return U(this).tag})),E.f=ut,_.f=ct,j.f=st,w.f=S.f=ft,O.f=lt,a&&(W(q.prototype,"description",{configurable:!0,get:function(){return U(this).description}}),c||L(V,"propertyIsEnumerable",ut,{unsafe:!0}))),s||(F.f=function(t){return ot(M(t),t)}),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:q}),R(x(tt),(function(t){C(t)})),r({target:"Symbol",stat:!0,forced:!u},{for:function(t){var e=String(t);if(l(Q,e))return Q[e];var n=q(e);return Q[e]=n,Z[n]=e,n},keyFor:function(t){if(!it(t))throw TypeError(t+" is not a symbol");if(l(Z,t))return Z[t]},useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!a},{create:function(t,e){return void 0===e?b(t):at(b(t),e)},defineProperty:ct,defineProperties:at,getOwnPropertyDescriptor:st}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:ft,getOwnPropertySymbols:lt}),r({target:"Object",stat:!0,forced:f((function(){O.f(1)}))},{getOwnPropertySymbols:function(t){return O.f(d(t))}}),z)&&r({target:"JSON",stat:!0,forced:!u||f((function(){var t=q();return"[null]"!=z([t])||"{}"!=z({a:t})||"{}"!=z(Object(t))}))},{stringify:function(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,(v(e)||void 0!==t)&&!it(t))return p(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!it(e))return e}),o[1]=e,z.apply(null,o)}});q.prototype[B]||k(q.prototype,B,q.prototype.valueOf),N(q,"Symbol"),I[D]=!0},function(t,e,n){e.f=n(0)},function(t,e,n){var r=n(56),o=n(6),i=n(71),c=n(9).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||c(e,t,{value:i.f(t)})}},function(t,e,n){var r=n(5),o=n(33),i=n(0)("species");t.exports=function(t,e){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},function(t,e,n){"use strict";var r=n(2),o=n(8),i=n(1),c=n(6),a=n(5),u=n(9).f,s=n(55),f=i.Symbol;if(o&&"function"==typeof f&&(!("description"in f.prototype)||void 0!==f().description)){var l={},p=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof p?new f(t):void 0===t?f():f(t);return""===t&&(l[e]=!0),e};s(p,f);var v=p.prototype=f.prototype;v.constructor=p;var h=v.toString,d="Symbol(test)"==String(f("test")),y=/^Symbol\((.*)\)[^)]+$/;u(v,"description",{configurable:!0,get:function(){var t=a(this)?this.valueOf():this,e=h.call(t);if(c(l,t))return"";var n=d?e.slice(7,-1):e.replace(y,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:p})}},function(t,e,n){"use strict";var r=n(2),o=n(4),i=n(33),c=n(5),a=n(14),u=n(22),s=n(76),f=n(73),l=n(35),p=n(0),v=n(49),h=p("isConcatSpreadable"),d=v>=51||!o((function(){var t=[];return t[h]=!1,t.concat()[0]!==t})),y=l("concat"),g=function(t){if(!c(t))return!1;var e=t[h];return void 0!==e?!!e:i(t)};r({target:"Array",proto:!0,forced:!d||!y},{concat:function(t){var e,n,r,o,i,c=a(this),l=f(c,0),p=0;for(e=-1,r=arguments.length;e<r;e++)if(i=-1===e?c:arguments[e],g(i)){if(p+(o=u(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,p++)n in i&&s(l,p,i[n])}else{if(p>=9007199254740991)throw TypeError("Maximum allowed index exceeded");s(l,p++,i)}return l.length=p,l}})},function(t,e,n){"use strict";var r=n(27),o=n(9),i=n(18);t.exports=function(t,e,n){var c=r(e);c in t?o.f(t,c,i(0,n)):t[c]=n}},function(t,e,n){"use strict";var r=n(12),o=n(68),i=n(24),c=n(21),a=n(78),u=c.set,s=c.getterFor("Array Iterator");t.exports=a(Array,"Array",(function(t,e){u(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=s(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e,n){"use strict";var r=n(2),o=n(113),i=n(80),c=n(115),a=n(32),u=n(10),s=n(11),f=n(0),l=n(20),p=n(24),v=n(79),h=v.IteratorPrototype,d=v.BUGGY_SAFARI_ITERATORS,y=f("iterator"),g=function(){return this};t.exports=function(t,e,n,f,v,m,b){o(n,e,f);var x,w,S,O=function(t){if(t===v&&L)return L;if(!d&&t in E)return E[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},j=e+" Iterator",_=!1,E=t.prototype,k=E[y]||E["@@iterator"]||v&&E[v],L=!d&&k||O(v),P="Array"==e&&E.entries||k;if(P&&(x=i(P.call(new t)),h!==Object.prototype&&x.next&&(l||i(x)===h||(c?c(x,h):"function"!=typeof x[y]&&u(x,y,g)),a(x,j,!0,!0),l&&(p[j]=g))),"values"==v&&k&&"values"!==k.name&&(_=!0,L=function(){return k.call(this)}),l&&!b||E[y]===L||u(E,y,L),p[e]=L,v)if(w={values:O("values"),keys:m?L:O("keys"),entries:O("entries")},b)for(S in w)!d&&!_&&S in E||s(E,S,w[S]);else r({target:e,proto:!0,forced:d||_},w);return w}},function(t,e,n){"use strict";var r,o,i,c=n(80),a=n(10),u=n(6),s=n(0),f=n(20),l=s("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=c(c(i)))!==Object.prototype&&(r=o):p=!0),null==r&&(r={}),f||u(r,l)||a(r,l,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},function(t,e,n){var r=n(6),o=n(14),i=n(28),c=n(114),a=i("IE_PROTO"),u=Object.prototype;t.exports=c?Object.getPrototypeOf:function(t){return t=o(t),r(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,n){var r=n(8),o=n(9).f,i=Function.prototype,c=i.toString,a=/^\s*function ([^ (]*)/;!r||"name"in i||o(i,"name",{configurable:!0,get:function(){try{return c.call(this).match(a)[1]}catch(t){return""}}})},function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(t,e,n){var r=n(2),o=n(88);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(1),o=n(39),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,e,n){var r=n(1),o=n(54),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o.call(i))},function(t,e,n){var r=n(16),o=n(41),i=n(45),c=n(7);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(c(t)),n=i.f;return n?e.concat(n(t)):e}},function(t,e,n){"use strict";var r=n(8),o=n(4),i=n(30),c=n(45),a=n(36),u=n(14),s=n(37),f=Object.assign;t.exports=!f||o((function(){var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=f({},t)[n]||"abcdefghijklmnopqrst"!=i(f({},e)).join("")}))?function(t,e){for(var n=u(t),o=arguments.length,f=1,l=c.f,p=a.f;o>f;)for(var v,h=s(arguments[f++]),d=l?i(h).concat(l(h)):i(h),y=d.length,g=0;y>g;)v=d[g++],r&&!p.call(h,v)||(n[v]=h[v]);return n}:f},function(t,e,n){"use strict";var r=n(46),o=n(61);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,e,n){var r=n(1);t.exports=r.Promise},function(t,e,n){var r=n(11);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){"use strict";var r=n(16),o=n(9),i=n(0),c=n(8),a=i("species");t.exports=function(t){var e=r(t),n=o.f;c&&e&&!e[a]&&n(e,a,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},function(t,e,n){var r=n(7),o=n(95),i=n(22),c=n(48),a=n(96),u=n(97),s=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,n,f,l){var p,v,h,d,y,g,m,b=c(e,n,f?2:1);if(l)p=t;else{if("function"!=typeof(v=a(t)))throw TypeError("Target is not iterable");if(o(v)){for(h=0,d=i(t.length);d>h;h++)if((y=f?b(r(m=t[h])[0],m[1]):b(t[h]))&&y instanceof s)return y;return new s(!1)}p=v.call(t)}for(g=p.next;!(m=g.call(p)).done;)if("object"==typeof(y=u(p,b,m.value,f))&&y&&y instanceof s)return y;return new s(!1)}).stop=function(t){return new s(!0,t)}},function(t,e,n){var r=n(0),o=n(24),i=r("iterator"),c=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||c[i]===t)}},function(t,e,n){var r=n(61),o=n(24),i=n(0)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){var r=n(7);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){var r=n(0)("iterator"),o=!1;try{var i=0,c={next:function(){return{done:!!i++}},return:function(){o=!0}};c[r]=function(){return this},Array.from(c,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},function(t,e,n){var r=n(7),o=n(23),i=n(0)("species");t.exports=function(t,e){var n,c=r(t).constructor;return void 0===c||null==(n=r(c)[i])?e:o(n)}},function(t,e,n){var r,o,i,c,a,u,s,f,l=n(1),p=n(26).f,v=n(13),h=n(62).set,d=n(64),y=l.MutationObserver||l.WebKitMutationObserver,g=l.process,m=l.Promise,b="process"==v(g),x=p(l,"queueMicrotask"),w=x&&x.value;w||(r=function(){var t,e;for(b&&(t=g.domain)&&t.exit();o;){e=o.fn,o=o.next;try{e()}catch(t){throw o?c():i=void 0,t}}i=void 0,t&&t.enter()},b?c=function(){g.nextTick(r)}:y&&!d?(a=!0,u=document.createTextNode(""),new y(r).observe(u,{characterData:!0}),c=function(){u.data=a=!a}):m&&m.resolve?(s=m.resolve(void 0),f=s.then,c=function(){f.call(s,r)}):c=function(){h.call(l,r)}),t.exports=w||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,c()),i=e}},function(t,e,n){var r=n(7),o=n(5),i=n(66);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){var r=n(1);t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,n){},function(t,e,n){var r=n(8),o=n(9),i=n(7),c=n(30);t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=c(e),a=r.length,u=0;a>u;)o.f(t,n=r[u++],e[n]);return t}},function(t,e,n){var r=n(107);t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},function(t,e,n){var r=n(5),o=n(13),i=n(0)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},function(t,e,n){var r=n(0)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(t){}}return!1}},function(t,e,n){var r=n(12),o=n(41).f,i={}.toString,c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return c&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return c.slice()}}(t):o(r(t))}},function(t,e,n){"use strict";var r=n(2),o=n(34).filter;r({target:"Array",proto:!0,forced:!n(35)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(2),o=n(34).map;r({target:"Array",proto:!0,forced:!n(35)("map")},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){n(72)("iterator")},function(t,e,n){"use strict";var r=n(79).IteratorPrototype,o=n(50),i=n(18),c=n(32),a=n(24),u=function(){return this};t.exports=function(t,e,n){var s=e+" Iterator";return t.prototype=o(r,{next:i(1,n)}),c(t,s,!1,!0),a[s]=u,t}},function(t,e,n){var r=n(4);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){var r=n(7),o=n(116);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return r(n),o(i),e?t.call(n,i):n.__proto__=i,n}}():void 0)},function(t,e,n){var r=n(5);t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e,n){"use strict";var r=n(2),o=n(23),i=n(14),c=n(4),a=n(52),u=[],s=u.sort,f=c((function(){u.sort(void 0)})),l=c((function(){u.sort(null)})),p=a("sort");r({target:"Array",proto:!0,forced:f||!l||p},{sort:function(t){return void 0===t?s.call(i(this)):s.call(i(this),o(t))}})},function(t,e,n){"use strict";var r=n(119).charAt,o=n(21),i=n(78),c=o.set,a=o.getterFor("String Iterator");i(String,"String",(function(t){c(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=a(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},function(t,e,n){var r=n(43),o=n(19),i=function(t){return function(e,n){var i,c,a=String(o(e)),u=r(n),s=a.length;return u<0||u>=s?t?"":void 0:(i=a.charCodeAt(u))<55296||i>56319||u+1===s||(c=a.charCodeAt(u+1))<56320||c>57343?t?a.charAt(u):i:t?a.slice(u,u+2):c-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},function(t,e,n){var r=n(1),o=n(121),i=n(77),c=n(10),a=n(0),u=a("iterator"),s=a("toStringTag"),f=i.values;for(var l in o){var p=r[l],v=p&&p.prototype;if(v){if(v[u]!==f)try{c(v,u,f)}catch(t){v[u]=f}if(v[s]||c(v,s,l),o[l])for(var h in i)if(v[h]!==i[h])try{c(v,h,i[h])}catch(t){v[h]=i[h]}}}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){"use strict";var r=n(2),o=n(123);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,e,n){"use strict";var r=n(34).forEach,o=n(52);t.exports=o("forEach")?function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}:[].forEach},function(t,e,n){"use strict";var r=n(2),o=n(42).indexOf,i=n(52),c=[].indexOf,a=!!c&&1/[1].indexOf(1,-0)<0,u=i("indexOf");r({target:"Array",proto:!0,forced:a||u},{indexOf:function(t){return a?c.apply(this,arguments)||0:o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(2),o=n(5),i=n(33),c=n(58),a=n(22),u=n(12),s=n(76),f=n(35),l=n(0)("species"),p=[].slice,v=Math.max;r({target:"Array",proto:!0,forced:!f("slice")},{slice:function(t,e){var n,r,f,h=u(this),d=a(h.length),y=c(t,d),g=c(void 0===e?d:e,d);if(i(h)&&("function"!=typeof(n=h.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[l])&&(n=void 0):n=void 0,n===Array||void 0===n))return p.call(h,y,g);for(r=new(void 0===n?Array:n)(v(g-y,0)),f=0;y<g;y++,f++)y in h&&s(r,f,h[y]);return r.length=f,r}})},function(t,e,n){var r=n(11),o=Date.prototype,i=o.toString,c=o.getTime;new Date(NaN)+""!="Invalid Date"&&r(o,"toString",(function(){var t=c.call(this);return t==t?i.call(this):"Invalid Date"}))},function(t,e,n){var r=n(2),o=n(128);r({global:!0,forced:parseInt!=o},{parseInt:o})},function(t,e,n){var r=n(1),o=n(129).trim,i=n(82),c=r.parseInt,a=/^[+-]?0[Xx]/,u=8!==c(i+"08")||22!==c(i+"0x16");t.exports=u?function(t,e){var n=o(String(t));return c(n,e>>>0||(a.test(n)?16:10))}:c},function(t,e,n){var r=n(19),o="["+n(82)+"]",i=RegExp("^"+o+o+"*"),c=RegExp(o+o+"*$"),a=function(t){return function(e){var n=String(r(e));return 1&t&&(n=n.replace(i,"")),2&t&&(n=n.replace(c,"")),n}};t.exports={start:a(1),end:a(2),trim:a(3)}},function(t,e,n){"use strict";var r=n(11),o=n(7),i=n(4),c=n(131),a=RegExp.prototype,u=a.toString,s=i((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),f="toString"!=u.name;(s||f)&&r(RegExp.prototype,"toString",(function(){var t=o(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in a)?c.call(t):n)}),{unsafe:!0})},function(t,e,n){"use strict";var r=n(7);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){"use strict";n.r(e);n(83),n(17),n(31);var r=n(3),o=n.n(r),i=(n(25),n(67),n(51),n(69),function(t,e){if("undefined"!=typeof Storage&&!e.freshStart){var n=c(e);n.push(t),localStorage.setItem("simplegoals-storage",JSON.stringify(n))}}),c=function(t){return"undefined"==typeof Storage||t.freshStart?[]:JSON.parse(localStorage.getItem("simplegoals-storage"))||[]},a=function(t){for(var e=t.goals,n=c(t),r=0,o=Object.keys(e);r<o.length;r++){var i=o[r];e[i].unlocked=n.includes(i)}return e},u=(n(70),n(74),n(110),n(111),function(t,e){var n;return o.a.async((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,o.a.awrap(fetch("".concat("https://api.simplegoals.co").concat(t),{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}}));case 2:if(!(n=r.sent).ok){r.next=9;break}return r.next=6,o.a.awrap(n.json());case 6:return r.abrupt("return",r.sent);case 9:return r.abrupt("return",!1);case 10:case"end":return r.stop()}}))}),s=function(t,e){var n;return o.a.async((function(r){for(;;)switch(r.prev=r.next){case 0:if(!e.useCloudStorage){r.next=7;break}return f(n={name:t},e),r.next=5,o.a.awrap(u("/goals/unlock",n));case 5:r.next=8;break;case 7:return r.abrupt("return",!1);case 8:case"end":return r.stop()}}))},f=function(t,e){t.appId=e.appId,t.user=e.user},l=function(t,e){var n,r;return o.a.async((function(i){for(;;)switch(i.prev=i.next){case 0:if(!e.useCloudStorage){i.next=9;break}return n={goals:Object.keys(t).map((function(e){return{name:e,description:t[e].description}})),unlockedGoals:Object.keys(t).filter((function(e){t[e].unlocked}))},f(n,e),i.next=5,o.a.awrap(u("/sessions",n));case 5:(r=i.sent)&&p(r,t),i.next=10;break;case 9:return i.abrupt("return",!1);case 10:case"end":return i.stop()}}))},p=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];e[o].unlocked=t.unlockedGoals.includes(o)}},v=(n(112),n(75),n(77),n(117),n(81),n(118),n(120),n(122),n(124),n(125),n(126),n(127),n(130),{fontFamily:'BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif',background:"#ffffff",title:"#000000",subtitle:"#718096",primary:"#38b2ac",primaryHover:"#319795",opposite:"#ffffff"}),h=function(t){var e=parseInt(t.substring(1,3),16),n=parseInt(t.substring(3,5),16),r=parseInt(t.substring(5,7),16);return e=parseInt(93*e/100),n=(n=parseInt(93*n/100))<255?n:255,r=(r=parseInt(93*r/100))<255?r:255,"#"+(1==(e=e<255?e:255).toString(16).length?"0"+e.toString(16):e.toString(16))+(1==n.toString(16).length?"0"+n.toString(16):n.toString(16))+(1==r.toString(16).length?"0"+r.toString(16):r.toString(16))},d=function(t){if(0===t.indexOf("#")&&(t=t.slice(1)),3===t.length&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),6!==t.length)throw new Error("Invalid HEX color.");return.299*parseInt(t.slice(0,2),16)+.587*parseInt(t.slice(2,4),16)+.114*parseInt(t.slice(4,6),16)>186?"#000000":"#FFFFFF"},y=function(t,e){var n=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=v;return["fontFamily","background","title","subtitle"].forEach((function(n){t[n]&&(e[n]=t[n])})),t.primary&&(e.primary=t.primary,e.primaryHover=h(t.primary),e.opposite=d(t.primary)),["primaryHover","opposite"].forEach((function(n){t[n]&&(e[n]=t[n])})),e}(e.theme);t.style.setProperty("--simplegoals-font-family",n.fontFamily),t.style.setProperty("--simplegoals-color-background",n.background),t.style.setProperty("--simplegoals-color-title",n.title),t.style.setProperty("--simplegoals-color-subtitle",n.subtitle),t.style.setProperty("--simplegoals-color-primary",n.primary),t.style.setProperty("--simplegoals-color-primary-hover",n.primaryHover),t.style.setProperty("--simplegoals-color-opposite",n.opposite)},g=null,m=function(t,e){var n='\n <div class="simplegoals-overview" id="simplegoals-overview">\n <div class="simplegoals-overview__wrapper">\n <div class="simplegoals-overview__body">\n <h1 class="simplegoals-overview__title">Achievements</h1>\n <p class="simplegoals-overview__subtitle">Complete tasks and unlock achievements</p>\n <div class="simplegoals-overview__goals" id="simplegoals-overview__goals">\n '+b(t)+'\n </div>\n <button class="simplegoals-overview__close-button" id="simplegoals-overview__close-button">\n Close\n </button>\n <div class="simplegoals-overview__attribution">\n Powered by <a class="simplegoals-overview__attribution-link" href="https://simplegoals.co" target="_blank">SimpleGoals</a>\n </div>\n </div>\n </div>\n </div>\n ',r=(new DOMParser).parseFromString(n,"text/html").body.firstChild;y(r,e),document.body.appendChild(r)},b=function(t){var e="",n=Object.keys(t).sort((function(e,n){return t[n].unlocked-t[e].unlocked})),r=!0,o=!1,i=void 0;try{for(var c,a=n[Symbol.iterator]();!(r=(c=a.next()).done);r=!0){var u=c.value;e+='\n <div class="simplegoals-overview-goal '.concat(t[u].unlocked?"":"simplegoals-overview-goal--locked",'">\n <div class="simplegoals-overview-goal__icon">\n <img src="https://static.simplegoals.co/cup.svg" />\n </div>\n <div class="simplegoals-overview-goal__body">\n <h3 class="simplegoals-overview-goal__name">').concat(t[u].name,'</h3>\n <p class="simplegoals-overview-goal__description">\n ').concat(t[u].description,"\n </p>\n </div>\n </div>\n ")}}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return e},x=function(t){document.getElementById("simplegoals-overview__goals").innerHTML=b(t)},w=function(){g&&(g.scrollTo(0,0),g.classList.add("simplegoals-overview--opened"))},S=function(){g.classList.remove("simplegoals-overview--opened")},O=function(){for(var t=document.getElementsByClassName("simplegoals-achievement"),e=0;e<t.length;e++)t[e].style.top="".concat(1+7*e,"em")},j=function(t,e,n){var r=function(t){var e=0;if(0==t.length)return e;for(var n=0;n<t.length;n++){e=(e<<5)-e+t.charCodeAt(n),e&=e}return e}(t),o=function(t,e,n,r){var o='\n <div class="simplegoals-achievement" id="simplegoals-achievement-'.concat(t,'">\n <div class="simplegoals-achievement__icon">\n <img src="https://static.simplegoals.co/cup.svg" />\n </div>\n <div class="simplegoals-achievement__body">\n <p class="simplegoals-achievement__notification">\n New achievement unlocked\n </p>\n <p class="simplegoals-achievement__name" id="simplegoals-achievement__name">').concat(e.name,'</p>\n </div>\n <div class="simplegoals-achievement__button" id="simplegoals-achievement__button-').concat(t,'" role="button">').concat(n,'</div>\n <button class="simplegoals-achievement__close-button" id="simplegoals-achievement__close-button-').concat(t,'">\n <svg viewBox="0 0 500 500" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g>\n <path d="M50 50L450 450" stroke-width="100" stroke-linecap="round"/>\n <path d="M50 450L450 50" stroke-width="100" stroke-linecap="round"/>\n </g>\n </svg>\n </button>\n </div>\n '),i=(new DOMParser).parseFromString(o,"text/html").body.firstChild;return y(i,r),document.body.appendChild(i),i}(r,e,"Learn more",n);O(),o.classList.add("simplegoals-achievement--opened"),_(r,o),n.timeout&&(achievementTimeout=setTimeout((function(){return E(o)}),n.timeout))},_=function(t,e){e.addEventListener("click",(function(t){return e.classList.toggle("simplegoals-achievement--clicked")})),document.getElementById("simplegoals-achievement__close-button-".concat(t)).addEventListener("click",(function(t){return E(e)})),document.getElementById("simplegoals-achievement__button-".concat(t)).addEventListener("click",(function(t){E(e),setTimeout(w,200)}))},E=function(t){t.classList.remove("simplegoals-achievement--opened"),t.classList.add("simplegoals-achievement--closed"),setTimeout((function(){t.parentNode.removeChild(t),O()}),2e3)},k=function(t,e,n){return