-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmc-client.min.js
2 lines (2 loc) · 47.7 KB
/
tmc-client.min.js
1
2
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.TMCClient=e():t.TMCClient=e()}(self,(function(){return function(){var __webpack_modules__={9662:function(t,e,n){var r=n(614),o=n(6330),i=TypeError;t.exports=function(t){if(r(t))return t;throw i(o(t)+" is not a function")}},9483:function(t,e,n){var r=n(4411),o=n(6330),i=TypeError;t.exports=function(t){if(r(t))return t;throw i(o(t)+" is not a constructor")}},6077:function(t,e,n){var r=n(614),o=String,i=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw i("Can't set "+o(t)+" as a prototype")}},5787:function(t,e,n){var r=n(7976),o=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw o("Incorrect invocation")}},9670:function(t,e,n){var r=n(111),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw i(o(t)+" is not an object")}},1318:function(t,e,n){var r=n(5656),o=n(1400),i=n(6244),u=function(t){return function(e,n,u){var c,a=r(e),s=i(a),f=o(u,s);if(t&&n!=n){for(;s>f;)if((c=a[f++])!=c)return!0}else for(;s>f;f++)if((t||f in a)&&a[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},9341:function(t,e,n){"use strict";var r=n(7293);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},206:function(t,e,n){var r=n(1702);t.exports=r([].slice)},7072:function(t,e,n){var r=n(5112)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[r]=function(){return this},Array.from(u,(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}},4326:function(t,e,n){var r=n(1702),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},648:function(t,e,n){var r=n(1694),o=n(614),i=n(4326),u=n(5112)("toStringTag"),c=Object,a="Arguments"==i(function(){return arguments}());t.exports=r?i: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=c(t),u))?n:a?i(e):"Object"==(r=i(e))&&o(e.callee)?"Arguments":r}},9920:function(t,e,n){var r=n(2597),o=n(3887),i=n(1236),u=n(3070);t.exports=function(t,e,n){for(var c=o(e),a=u.f,s=i.f,f=0;f<c.length;f++){var p=c[f];r(t,p)||n&&r(n,p)||a(t,p,s(e,p))}}},8880:function(t,e,n){var r=n(9781),o=n(3070),i=n(9114);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},9114:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},7045:function(t,e,n){var r=n(6339),o=n(3070);t.exports=function(t,e,n){return n.get&&r(n.get,e,{getter:!0}),n.set&&r(n.set,e,{setter:!0}),o.f(t,e,n)}},8052:function(t,e,n){var r=n(614),o=n(3070),i=n(6339),u=n(3072);t.exports=function(t,e,n,c){c||(c={});var a=c.enumerable,s=void 0!==c.name?c.name:e;if(r(n)&&i(n,s,c),c.global)a?t[e]=n:u(e,n);else{try{c.unsafe?t[e]&&(a=!0):delete t[e]}catch(t){}a?t[e]=n:o.f(t,e,{value:n,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return t}},3072:function(t,e,n){var r=n(7854),o=Object.defineProperty;t.exports=function(t,e){try{o(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},9781:function(t,e,n){var r=n(7293);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:function(t){var e="object"==typeof document&&document.all,n=void 0===e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:n}},317:function(t,e,n){var r=n(7854),o=n(111),i=r.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},7871:function(t,e,n){var r=n(3823),o=n(5268);t.exports=!r&&!o&&"object"==typeof window&&"object"==typeof document},3823:function(t){t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},1528:function(t,e,n){var r=n(8113);t.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},6833:function(t,e,n){var r=n(8113);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},5268:function(t,e,n){var r=n(4326);t.exports="undefined"!=typeof process&&"process"==r(process)},1036:function(t,e,n){var r=n(8113);t.exports=/web0s(?!.*chrome)/i.test(r)},8113:function(t){t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7392:function(t,e,n){var r,o,i=n(7854),u=n(8113),c=i.process,a=i.Deno,s=c&&c.versions||a&&a.version,f=s&&s.v8;f&&(o=(r=f.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&u&&(!(r=u.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=u.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(t,e,n){var r=n(7854),o=n(1236).f,i=n(8880),u=n(8052),c=n(3072),a=n(9920),s=n(4705);t.exports=function(t,e){var n,f,p,l,h,v=t.target,d=t.global,y=t.stat;if(n=d?r:y?r[v]||c(v,{}):(r[v]||{}).prototype)for(f in e){if(l=e[f],p=t.dontCallGetSet?(h=o(n,f))&&h.value:n[f],!s(d?f:v+(y?".":"#")+f,t.forced)&&void 0!==p){if(typeof l==typeof p)continue;a(l,p)}(t.sham||p&&p.sham)&&i(l,"sham",!0),u(n,f,l,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},2104:function(t,e,n){var r=n(4374),o=Function.prototype,i=o.apply,u=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?u.bind(i):function(){return u.apply(i,arguments)})},9974:function(t,e,n){var r=n(1470),o=n(9662),i=n(4374),u=r(r.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?u(t,e):function(){return t.apply(e,arguments)}}},4374:function(t,e,n){var r=n(7293);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6916:function(t,e,n){var r=n(4374),o=Function.prototype.call;t.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},6530:function(t,e,n){var r=n(9781),o=n(2597),i=Function.prototype,u=r&&Object.getOwnPropertyDescriptor,c=o(i,"name"),a=c&&"something"===function(){}.name,s=c&&(!r||r&&u(i,"name").configurable);t.exports={EXISTS:c,PROPER:a,CONFIGURABLE:s}},5668:function(t,e,n){var r=n(1702),o=n(9662);t.exports=function(t,e,n){try{return r(o(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}},1470:function(t,e,n){var r=n(4326),o=n(1702);t.exports=function(t){if("Function"===r(t))return o(t)}},1702:function(t,e,n){var r=n(4374),o=Function.prototype,i=o.call,u=r&&o.bind.bind(i,i);t.exports=r?u:function(t){return function(){return i.apply(t,arguments)}}},5005:function(t,e,n){var r=n(7854),o=n(614);t.exports=function(t,e){return arguments.length<2?(n=r[t],o(n)?n:void 0):r[t]&&r[t][e];var n}},1246:function(t,e,n){var r=n(648),o=n(8173),i=n(8554),u=n(7497),c=n(5112)("iterator");t.exports=function(t){if(!i(t))return o(t,c)||o(t,"@@iterator")||u[r(t)]}},4121:function(t,e,n){var r=n(6916),o=n(9662),i=n(9670),u=n(6330),c=n(1246),a=TypeError;t.exports=function(t,e){var n=arguments.length<2?c(t):e;if(o(n))return i(r(n,t));throw a(u(t)+" is not iterable")}},8173:function(t,e,n){var r=n(9662),o=n(8554);t.exports=function(t,e){var n=t[e];return o(n)?void 0:r(n)}},7854:function(t,e,n){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:function(t,e,n){var r=n(1702),o=n(7908),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},3501:function(t){t.exports={}},842:function(t){t.exports=function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}}},490:function(t,e,n){var r=n(5005);t.exports=r("document","documentElement")},4664:function(t,e,n){var r=n(9781),o=n(7293),i=n(317);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,n){var r=n(1702),o=n(7293),i=n(4326),u=Object,c=r("".split);t.exports=o((function(){return!u("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?c(t,""):u(t)}:u},2788:function(t,e,n){var r=n(1702),o=n(614),i=n(5465),u=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return u(t)}),t.exports=i.inspectSource},9909:function(t,e,n){var r,o,i,u=n(4811),c=n(7854),a=n(111),s=n(8880),f=n(2597),p=n(5465),l=n(6200),h=n(3501),v="Object already initialized",d=c.TypeError,y=c.WeakMap;if(u||p.state){var b=p.state||(p.state=new y);b.get=b.get,b.has=b.has,b.set=b.set,r=function(t,e){if(b.has(t))throw d(v);return e.facade=t,b.set(t,e),e},o=function(t){return b.get(t)||{}},i=function(t){return b.has(t)}}else{var g=l("state");h[g]=!0,r=function(t,e){if(f(t,g))throw d(v);return e.facade=t,s(t,g,e),e},o=function(t){return f(t,g)?t[g]:{}},i=function(t){return f(t,g)}}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(!a(e)||(n=o(e)).type!==t)throw d("Incompatible receiver, "+t+" required");return n}}}},7659:function(t,e,n){var r=n(5112),o=n(7497),i=r("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},614:function(t,e,n){var r=n(4154),o=r.all;t.exports=r.IS_HTMLDDA?function(t){return"function"==typeof t||t===o}:function(t){return"function"==typeof t}},4411:function(t,e,n){var r=n(1702),o=n(7293),i=n(614),u=n(648),c=n(5005),a=n(2788),s=function(){},f=[],p=c("Reflect","construct"),l=/^\s*(?:class|function)\b/,h=r(l.exec),v=!l.exec(s),d=function(t){if(!i(t))return!1;try{return p(s,f,t),!0}catch(t){return!1}},y=function(t){if(!i(t))return!1;switch(u(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return v||!!h(l,a(t))}catch(t){return!0}};y.sham=!0,t.exports=!p||o((function(){var t;return d(d.call)||!d(Object)||!d((function(){t=!0}))||t}))?y:d},4705:function(t,e,n){var r=n(7293),o=n(614),i=/#|\.prototype\./,u=function(t,e){var n=a[c(t)];return n==f||n!=s&&(o(e)?r(e):!!e)},c=u.normalize=function(t){return String(t).replace(i,".").toLowerCase()},a=u.data={},s=u.NATIVE="N",f=u.POLYFILL="P";t.exports=u},8554:function(t){t.exports=function(t){return null==t}},111:function(t,e,n){var r=n(614),o=n(4154),i=o.all;t.exports=o.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===i}:function(t){return"object"==typeof t?null!==t:r(t)}},1913:function(t){t.exports=!1},2190:function(t,e,n){var r=n(5005),o=n(614),i=n(7976),u=n(3307),c=Object;t.exports=u?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return o(e)&&i(e.prototype,c(t))}},408:function(t,e,n){var r=n(9974),o=n(6916),i=n(9670),u=n(6330),c=n(7659),a=n(6244),s=n(7976),f=n(4121),p=n(1246),l=n(9212),h=TypeError,v=function(t,e){this.stopped=t,this.result=e},d=v.prototype;t.exports=function(t,e,n){var y,b,g,m,_,w,x,S=n&&n.that,j=!(!n||!n.AS_ENTRIES),O=!(!n||!n.IS_RECORD),T=!(!n||!n.IS_ITERATOR),E=!(!n||!n.INTERRUPTED),P=r(e,S),k=function(t){return y&&l(y,"normal",t),new v(!0,t)},R=function(t){return j?(i(t),E?P(t[0],t[1],k):P(t[0],t[1])):E?P(t,k):P(t)};if(O)y=t.iterator;else if(T)y=t;else{if(!(b=p(t)))throw h(u(t)+" is not iterable");if(c(b)){for(g=0,m=a(t);m>g;g++)if((_=R(t[g]))&&s(d,_))return _;return new v(!1)}y=f(t,b)}for(w=O?t.next:y.next;!(x=o(w,y)).done;){try{_=R(x.value)}catch(t){l(y,"throw",t)}if("object"==typeof _&&_&&s(d,_))return _}return new v(!1)}},9212:function(t,e,n){var r=n(6916),o=n(9670),i=n(8173);t.exports=function(t,e,n){var u,c;o(t);try{if(!(u=i(t,"return"))){if("throw"===e)throw n;return n}u=r(u,t)}catch(t){c=!0,u=t}if("throw"===e)throw n;if(c)throw u;return o(u),n}},7497:function(t){t.exports={}},6244:function(t,e,n){var r=n(7466);t.exports=function(t){return r(t.length)}},6339:function(t,e,n){var r=n(1702),o=n(7293),i=n(614),u=n(2597),c=n(9781),a=n(6530).CONFIGURABLE,s=n(2788),f=n(9909),p=f.enforce,l=f.get,h=String,v=Object.defineProperty,d=r("".slice),y=r("".replace),b=r([].join),g=c&&!o((function(){return 8!==v((function(){}),"length",{value:8}).length})),m=String(String).split("String"),_=t.exports=function(t,e,n){"Symbol("===d(h(e),0,7)&&(e="["+y(h(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!u(t,"name")||a&&t.name!==e)&&(c?v(t,"name",{value:e,configurable:!0}):t.name=e),g&&n&&u(n,"arity")&&t.length!==n.arity&&v(t,"length",{value:n.arity});try{n&&u(n,"constructor")&&n.constructor?c&&v(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=p(t);return u(r,"source")||(r.source=b(m,"string"==typeof e?e:"")),t};Function.prototype.toString=_((function(){return i(this)&&l(this).source||s(this)}),"toString")},4758:function(t){var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},5948:function(t,e,n){var r,o,i,u,c,a=n(7854),s=n(9974),f=n(1236).f,p=n(261).set,l=n(8572),h=n(6833),v=n(1528),d=n(1036),y=n(5268),b=a.MutationObserver||a.WebKitMutationObserver,g=a.document,m=a.process,_=a.Promise,w=f(a,"queueMicrotask"),x=w&&w.value;if(!x){var S=new l,j=function(){var t,e;for(y&&(t=m.domain)&&t.exit();e=S.get();)try{e()}catch(t){throw S.head&&r(),t}t&&t.enter()};h||y||d||!b||!g?!v&&_&&_.resolve?((u=_.resolve(void 0)).constructor=_,c=s(u.then,u),r=function(){c(j)}):y?r=function(){m.nextTick(j)}:(p=s(p,a),r=function(){p(j)}):(o=!0,i=g.createTextNode(""),new b(j).observe(i,{characterData:!0}),r=function(){i.data=o=!o}),x=function(t){S.head||r(),S.add(t)}}t.exports=x},8523:function(t,e,n){"use strict";var r=n(9662),o=TypeError,i=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw o("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new i(t)}},1574:function(t,e,n){"use strict";var r=n(9781),o=n(1702),i=n(6916),u=n(7293),c=n(1956),a=n(5181),s=n(5296),f=n(7908),p=n(8361),l=Object.assign,h=Object.defineProperty,v=o([].concat);t.exports=!l||u((function(){if(r&&1!==l({b:1},l(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach((function(t){e[t]=t})),7!=l({},t)[n]||c(l({},e)).join("")!=o}))?function(t,e){for(var n=f(t),o=arguments.length,u=1,l=a.f,h=s.f;o>u;)for(var d,y=p(arguments[u++]),b=l?v(c(y),l(y)):c(y),g=b.length,m=0;g>m;)d=b[m++],r&&!i(h,y,d)||(n[d]=y[d]);return n}:l},3070:function(t,e,n){var r=n(9781),o=n(4664),i=n(3353),u=n(9670),c=n(4948),a=TypeError,s=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p="enumerable",l="configurable",h="writable";e.f=r?i?function(t,e,n){if(u(t),e=c(e),u(n),"function"==typeof t&&"prototype"===e&&"value"in n&&h in n&&!n[h]){var r=f(t,e);r&&r[h]&&(t[e]=n.value,n={configurable:l in n?n[l]:r[l],enumerable:p in n?n[p]:r[p],writable:!1})}return s(t,e,n)}:s:function(t,e,n){if(u(t),e=c(e),u(n),o)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw a("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},1236:function(t,e,n){var r=n(9781),o=n(6916),i=n(5296),u=n(9114),c=n(5656),a=n(4948),s=n(2597),f=n(4664),p=Object.getOwnPropertyDescriptor;e.f=r?p:function(t,e){if(t=c(t),e=a(e),f)try{return p(t,e)}catch(t){}if(s(t,e))return u(!o(i.f,t,e),t[e])}},8006:function(t,e,n){var r=n(6324),o=n(748).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},5181:function(t,e){e.f=Object.getOwnPropertySymbols},7976:function(t,e,n){var r=n(1702);t.exports=r({}.isPrototypeOf)},6324:function(t,e,n){var r=n(1702),o=n(2597),i=n(5656),u=n(1318).indexOf,c=n(3501),a=r([].push);t.exports=function(t,e){var n,r=i(t),s=0,f=[];for(n in r)!o(c,n)&&o(r,n)&&a(f,n);for(;e.length>s;)o(r,n=e[s++])&&(~u(f,n)||a(f,n));return f}},1956:function(t,e,n){var r=n(6324),o=n(748);t.exports=Object.keys||function(t){return r(t,o)}},5296:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},7674:function(t,e,n){var r=n(5668),o=n(9670),i=n(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return o(n),i(r),e?t(n,r):n.__proto__=r,n}}():void 0)},288:function(t,e,n){"use strict";var r=n(1694),o=n(648);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},2140:function(t,e,n){var r=n(6916),o=n(614),i=n(111),u=TypeError;t.exports=function(t,e){var n,c;if("string"===e&&o(n=t.toString)&&!i(c=r(n,t)))return c;if(o(n=t.valueOf)&&!i(c=r(n,t)))return c;if("string"!==e&&o(n=t.toString)&&!i(c=r(n,t)))return c;throw u("Can't convert object to primitive value")}},3887:function(t,e,n){var r=n(5005),o=n(1702),i=n(8006),u=n(5181),c=n(9670),a=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(c(t)),n=u.f;return n?a(e,n(t)):e}},2534:function(t){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},3702:function(t,e,n){var r=n(7854),o=n(2492),i=n(614),u=n(4705),c=n(2788),a=n(5112),s=n(7871),f=n(3823),p=n(1913),l=n(7392),h=o&&o.prototype,v=a("species"),d=!1,y=i(r.PromiseRejectionEvent),b=u("Promise",(function(){var t=c(o),e=t!==String(o);if(!e&&66===l)return!0;if(p&&(!h.catch||!h.finally))return!0;if(!l||l<51||!/native code/.test(t)){var n=new o((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[v]=r,!(d=n.then((function(){}))instanceof r))return!0}return!e&&(s||f)&&!y}));t.exports={CONSTRUCTOR:b,REJECTION_EVENT:y,SUBCLASSING:d}},2492:function(t,e,n){var r=n(7854);t.exports=r.Promise},9478:function(t,e,n){var r=n(9670),o=n(111),i=n(8523);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}},612:function(t,e,n){var r=n(2492),o=n(7072),i=n(3702).CONSTRUCTOR;t.exports=i||!o((function(t){r.all(t).then(void 0,(function(){}))}))},8572:function(t){var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=e},4488:function(t,e,n){var r=n(8554),o=TypeError;t.exports=function(t){if(r(t))throw o("Can't call method on "+t);return t}},6340:function(t,e,n){"use strict";var r=n(5005),o=n(7045),i=n(5112),u=n(9781),c=i("species");t.exports=function(t){var e=r(t);u&&e&&!e[c]&&o(e,c,{configurable:!0,get:function(){return this}})}},8003:function(t,e,n){var r=n(3070).f,o=n(2597),i=n(5112)("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!o(t,i)&&r(t,i,{configurable:!0,value:e})}},6200:function(t,e,n){var r=n(2309),o=n(9711),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},5465:function(t,e,n){var r=n(7854),o=n(3072),i="__core-js_shared__",u=r[i]||o(i,{});t.exports=u},2309:function(t,e,n){var r=n(1913),o=n(5465);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.29.1",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"})},6707:function(t,e,n){var r=n(9670),o=n(9483),i=n(8554),u=n(5112)("species");t.exports=function(t,e){var n,c=r(t).constructor;return void 0===c||i(n=r(c)[u])?e:o(n)}},6293:function(t,e,n){var r=n(7392),o=n(7293);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},261:function(t,e,n){var r,o,i,u,c=n(7854),a=n(2104),s=n(9974),f=n(614),p=n(2597),l=n(7293),h=n(490),v=n(206),d=n(317),y=n(8053),b=n(6833),g=n(5268),m=c.setImmediate,_=c.clearImmediate,w=c.process,x=c.Dispatch,S=c.Function,j=c.MessageChannel,O=c.String,T=0,E={},P="onreadystatechange";l((function(){r=c.location}));var k=function(t){if(p(E,t)){var e=E[t];delete E[t],e()}},R=function(t){return function(){k(t)}},A=function(t){k(t.data)},C=function(t){c.postMessage(O(t),r.protocol+"//"+r.host)};m&&_||(m=function(t){y(arguments.length,1);var e=f(t)?t:S(t),n=v(arguments,1);return E[++T]=function(){a(e,void 0,n)},o(T),T},_=function(t){delete E[t]},g?o=function(t){w.nextTick(R(t))}:x&&x.now?o=function(t){x.now(R(t))}:j&&!b?(u=(i=new j).port2,i.port1.onmessage=A,o=s(u.postMessage,u)):c.addEventListener&&f(c.postMessage)&&!c.importScripts&&r&&"file:"!==r.protocol&&!l(C)?(o=C,c.addEventListener("message",A,!1)):o=P in d("script")?function(t){h.appendChild(d("script"))[P]=function(){h.removeChild(this),k(t)}}:function(t){setTimeout(R(t),0)}),t.exports={set:m,clear:_}},1400:function(t,e,n){var r=n(9303),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)}},5656:function(t,e,n){var r=n(8361),o=n(4488);t.exports=function(t){return r(o(t))}},9303:function(t,e,n){var r=n(4758);t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},7466:function(t,e,n){var r=n(9303),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},7908:function(t,e,n){var r=n(4488),o=Object;t.exports=function(t){return o(r(t))}},7593:function(t,e,n){var r=n(6916),o=n(111),i=n(2190),u=n(8173),c=n(2140),a=n(5112),s=TypeError,f=a("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var n,a=u(t,f);if(a){if(void 0===e&&(e="default"),n=r(a,t,e),!o(n)||i(n))return n;throw s("Can't convert object to primitive value")}return void 0===e&&(e="number"),c(t,e)}},4948:function(t,e,n){var r=n(7593),o=n(2190);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},1694:function(t,e,n){var r={};r[n(5112)("toStringTag")]="z",t.exports="[object z]"===String(r)},6330:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},9711:function(t,e,n){var r=n(1702),o=0,i=Math.random(),u=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},3307:function(t,e,n){var r=n(6293);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(t,e,n){var r=n(9781),o=n(7293);t.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8053:function(t){var e=TypeError;t.exports=function(t,n){if(t<n)throw e("Not enough arguments");return t}},4811:function(t,e,n){var r=n(7854),o=n(614),i=r.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},5112:function(t,e,n){var r=n(7854),o=n(2309),i=n(2597),u=n(9711),c=n(6293),a=n(3307),s=r.Symbol,f=o("wks"),p=a?s.for||s:s&&s.withoutSetter||u;t.exports=function(t){return i(f,t)||(f[t]=c&&i(s,t)?s[t]:p("Symbol."+t)),f[t]}},2772:function(t,e,n){"use strict";var r=n(2109),o=n(1470),i=n(1318).indexOf,u=n(9341),c=o([].indexOf),a=!!c&&1/c([1],1,-0)<0;r({target:"Array",proto:!0,forced:a||!u("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return a?c(this,t,e)||0:i(this,t,e)}})},9601:function(t,e,n){var r=n(2109),o=n(1574);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},1539:function(t,e,n){var r=n(1694),o=n(8052),i=n(288);r||o(Object.prototype,"toString",i,{unsafe:!0})},821:function(t,e,n){"use strict";var r=n(2109),o=n(6916),i=n(9662),u=n(8523),c=n(2534),a=n(408);r({target:"Promise",stat:!0,forced:n(612)},{all:function(t){var e=this,n=u.f(e),r=n.resolve,s=n.reject,f=c((function(){var n=i(e.resolve),u=[],c=0,f=1;a(t,(function(t){var i=c++,a=!1;f++,o(n,e,t).then((function(t){a||(a=!0,u[i]=t,--f||r(u))}),s)})),--f||r(u)}));return f.error&&s(f.value),n.promise}})},4164:function(t,e,n){"use strict";var r=n(2109),o=n(1913),i=n(3702).CONSTRUCTOR,u=n(2492),c=n(5005),a=n(614),s=n(8052),f=u&&u.prototype;if(r({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(t){return this.then(void 0,t)}}),!o&&a(u)){var p=c("Promise").prototype.catch;f.catch!==p&&s(f,"catch",p,{unsafe:!0})}},3401:function(t,e,n){"use strict";var r,o,i,u=n(2109),c=n(1913),a=n(5268),s=n(7854),f=n(6916),p=n(8052),l=n(7674),h=n(8003),v=n(6340),d=n(9662),y=n(614),b=n(111),g=n(5787),m=n(6707),_=n(261).set,w=n(5948),x=n(842),S=n(2534),j=n(8572),O=n(9909),T=n(2492),E=n(3702),P=n(8523),k="Promise",R=E.CONSTRUCTOR,A=E.REJECTION_EVENT,C=E.SUBCLASSING,I=O.getterFor(k),N=O.set,F=T&&T.prototype,D=T,q=F,M=s.TypeError,U=s.document,L=s.process,B=P.f,H=B,J=!!(U&&U.createEvent&&s.dispatchEvent),G="unhandledrejection",z=function(t){var e;return!(!b(t)||!y(e=t.then))&&e},X=function(t,e){var n,r,o,i=e.value,u=1==e.state,c=u?t.ok:t.fail,a=t.resolve,s=t.reject,p=t.domain;try{c?(u||(2===e.rejection&&Y(e),e.rejection=1),!0===c?n=i:(p&&p.enter(),n=c(i),p&&(p.exit(),o=!0)),n===t.promise?s(M("Promise-chain cycle")):(r=z(n))?f(r,n,a,s):a(n)):s(i)}catch(t){p&&!o&&p.exit(),s(t)}},$=function(t,e){t.notified||(t.notified=!0,w((function(){for(var n,r=t.reactions;n=r.get();)X(n,t);t.notified=!1,e&&!t.rejection&&V(t)})))},W=function(t,e,n){var r,o;J?((r=U.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),s.dispatchEvent(r)):r={promise:e,reason:n},!A&&(o=s["on"+t])?o(r):t===G&&x("Unhandled promise rejection",n)},V=function(t){f(_,s,(function(){var e,n=t.facade,r=t.value;if(K(t)&&(e=S((function(){a?L.emit("unhandledRejection",r,n):W(G,n,r)})),t.rejection=a||K(t)?2:1,e.error))throw e.value}))},K=function(t){return 1!==t.rejection&&!t.parent},Y=function(t){f(_,s,(function(){var e=t.facade;a?L.emit("rejectionHandled",e):W("rejectionhandled",e,t.value)}))},Z=function(t,e,n){return function(r){t(e,r,n)}},Q=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,$(t,!0))},tt=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw M("Promise can't be resolved itself");var r=z(e);r?w((function(){var n={done:!1};try{f(r,e,Z(tt,n,t),Z(Q,n,t))}catch(e){Q(n,e,t)}})):(t.value=e,t.state=1,$(t,!1))}catch(e){Q({done:!1},e,t)}}};if(R&&(q=(D=function(t){g(this,q),d(t),f(r,this);var e=I(this);try{t(Z(tt,e),Z(Q,e))}catch(t){Q(e,t)}}).prototype,(r=function(t){N(this,{type:k,done:!1,notified:!1,parent:!1,reactions:new j,rejection:!1,state:0,value:void 0})}).prototype=p(q,"then",(function(t,e){var n=I(this),r=B(m(this,D));return n.parent=!0,r.ok=!y(t)||t,r.fail=y(e)&&e,r.domain=a?L.domain:void 0,0==n.state?n.reactions.add(r):w((function(){X(r,n)})),r.promise})),o=function(){var t=new r,e=I(t);this.promise=t,this.resolve=Z(tt,e),this.reject=Z(Q,e)},P.f=B=function(t){return t===D||undefined===t?new o(t):H(t)},!c&&y(T)&&F!==Object.prototype)){i=F.then,C||p(F,"then",(function(t,e){var n=this;return new D((function(t,e){f(i,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete F.constructor}catch(t){}l&&l(F,q)}u({global:!0,constructor:!0,wrap:!0,forced:R},{Promise:D}),h(D,k,!1,!0),v(k)},8674:function(t,e,n){n(3401),n(821),n(4164),n(6027),n(683),n(6294)},6027:function(t,e,n){"use strict";var r=n(2109),o=n(6916),i=n(9662),u=n(8523),c=n(2534),a=n(408);r({target:"Promise",stat:!0,forced:n(612)},{race:function(t){var e=this,n=u.f(e),r=n.reject,s=c((function(){var u=i(e.resolve);a(t,(function(t){o(u,e,t).then(n.resolve,r)}))}));return s.error&&r(s.value),n.promise}})},683:function(t,e,n){"use strict";var r=n(2109),o=n(6916),i=n(8523);r({target:"Promise",stat:!0,forced:n(3702).CONSTRUCTOR},{reject:function(t){var e=i.f(this);return o(e.reject,void 0,t),e.promise}})},6294:function(t,e,n){"use strict";var r=n(2109),o=n(5005),i=n(1913),u=n(2492),c=n(3702).CONSTRUCTOR,a=n(9478),s=o("Promise"),f=i&&!c;r({target:"Promise",stat:!0,forced:i||c},{resolve:function(t){return a(f&&this===s?u:this,t)}})},1358:function(){!function(){"use strict";if(!self.fetch){i.prototype.append=function(t,e){t=r(t),e=o(e);var n=this.map[t];n||(n=[],this.map[t]=n),n.push(e)},i.prototype.delete=function(t){delete this.map[r(t)]},i.prototype.get=function(t){var e=this.map[r(t)];return e?e[0]:null},i.prototype.getAll=function(t){return this.map[r(t)]||[]},i.prototype.has=function(t){return this.map.hasOwnProperty(r(t))},i.prototype.set=function(t,e){this.map[r(t)]=[o(e)]},i.prototype.forEach=function(t){var e=this;Object.getOwnPropertyNames(this.map).forEach((function(n){t(n,e.map[n])}))};var t={blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in self},e=["DELETE","GET","HEAD","OPTIONS","POST","PUT"],n=!("undefined"==typeof window||!window.ActiveXObject||window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent);s.call(f.prototype),s.call(h.prototype),self.Headers=i,self.Request=f,self.Response=h,self.fetch=function(e,r){var o;return o=f.prototype.isPrototypeOf(e)&&!r?e:new f(e,r),new fetch.Promise((function(e,r){var i=function(){return n&&!/^(get|post|head|put|delete|options)$/i.test(this.method)?(this.usingActiveXhr=!0,new ActiveXObject("Microsoft.XMLHTTP")):new XMLHttpRequest}();function u(){if(4===i.readyState){var t=1223===i.status?204:i.status;if(t<100||t>599)r(new TypeError("Network request failed"));else{var n={status:t,statusText:i.statusText,headers:l(i),url:"responseURL"in i?i.responseURL:/^X-Request-URL:/m.test(i.getAllResponseHeaders())?i.getResponseHeader("X-Request-URL"):void 0},o="response"in i?i.response:i.responseText;e(new h(o,n))}}}"cors"===o.credentials&&(i.withCredentials=!0),i.onreadystatechange=u,self.usingActiveXhr||(i.onload=u,i.onerror=function(){r(new TypeError("Network request failed"))}),i.open(o.method,o.url,!0),"responseType"in i&&t.blob&&(i.responseType="blob"),o.headers.forEach((function(t,e){e.forEach((function(e){i.setRequestHeader(t,e)}))})),i.send(void 0===o._bodyInit?null:o._bodyInit)}))},fetch.Promise=self.Promise,self.fetch.polyfill=!0}function r(t){if("string"!=typeof t&&(t=t.toString()),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function o(t){return"string"!=typeof t&&(t=t.toString()),t}function i(t){this.map={};var e=this;t instanceof i?t.forEach((function(t,n){n.forEach((function(n){e.append(t,n)}))})):t&&Object.getOwnPropertyNames(t).forEach((function(n){e.append(n,t[n])}))}function u(t){if(t.bodyUsed)return fetch.Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function c(t){return new fetch.Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function a(t){var e=new FileReader;return e.readAsArrayBuffer(t),c(e)}function s(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,"string"==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else{if(e)throw new Error("unsupported BodyInit type");this._bodyText=""}},t.blob?(this.blob=function(){var t=u(this);if(t)return t;if(this._bodyBlob)return fetch.Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return fetch.Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(a)},this.text=function(){var t,e,n=u(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,(e=new FileReader).readAsText(t),c(e);if(this._bodyFormData)throw new Error("could not read FormData body as text");return fetch.Promise.resolve(this._bodyText)}):this.text=function(){var t=u(this);return t||fetch.Promise.resolve(this._bodyText)},t.formData&&(this.formData=function(){return this.text().then(p)}),this.json=function(){return this.text().then((function(t){return JSON.parse(t)}))},this}function f(t,n){var r,o;if(n=n||{},this.url=t,this.credentials=n.credentials||"omit",this.headers=new i(n.headers),this.method=(r=n.method||"GET",o=r.toUpperCase(),e.indexOf(o)>-1?o:r),this.mode=n.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n.body)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n.body)}function p(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}})),e}function l(t){var e=new i;return t.getAllResponseHeaders().trim().split("\n").forEach((function(t){var n=t.trim().split(":"),r=n.shift().trim(),o=n.join(":").trim();e.append(r,o)})),e}function h(t,e){e||(e={}),this._initBody(t),this.type="default",this.url=null,this.status=e.status,this.ok=this.status>=200&&this.status<300,this.statusText=e.statusText,this.headers=e.headers instanceof i?e.headers:new i(e.headers),this.url=e.url||""}}()},8971:function(t,e,n){var r=n(2195),o=n(9015),i=[n(9257)];t.exports=r.createStore(o,i)},9257:function(t,e,n){t.exports=function(){return n(5703),{}}},5703:function(){"object"!=typeof JSON&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta,rep;function f(t){return t<10?"0"+t:t}function this_value(){return this.valueOf()}function quote(t){return rx_escapable.lastIndex=0,rx_escapable.test(t)?'"'+t.replace(rx_escapable,(function(t){var e=meta[t];return"string"==typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+t+'"'}function str(t,e){var n,r,o,i,u,c=gap,a=e[t];switch(a&&"object"==typeof a&&"function"==typeof a.toJSON&&(a=a.toJSON(t)),"function"==typeof rep&&(a=rep.call(e,t,a)),typeof a){case"string":return quote(a);case"number":return isFinite(a)?String(a):"null";case"boolean":case"null":return String(a);case"object":if(!a)return"null";if(gap+=indent,u=[],"[object Array]"===Object.prototype.toString.apply(a)){for(i=a.length,n=0;n<i;n+=1)u[n]=str(n,a)||"null";return o=0===u.length?"[]":gap?"[\n"+gap+u.join(",\n"+gap)+"\n"+c+"]":"["+u.join(",")+"]",gap=c,o}if(rep&&"object"==typeof rep)for(i=rep.length,n=0;n<i;n+=1)"string"==typeof rep[n]&&(o=str(r=rep[n],a))&&u.push(quote(r)+(gap?": ":":")+o);else for(r in a)Object.prototype.hasOwnProperty.call(a,r)&&(o=str(r,a))&&u.push(quote(r)+(gap?": ":":")+o);return o=0===u.length?"{}":gap?"{\n"+gap+u.join(",\n"+gap)+"\n"+c+"}":"{"+u.join(",")+"}",gap=c,o}}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value),"function"!=typeof JSON.stringify&&(meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(t,e,n){var r;if(gap="",indent="","number"==typeof n)for(r=0;r<n;r+=1)indent+=" ";else"string"==typeof n&&(indent=n);if(rep=e,e&&"function"!=typeof e&&("object"!=typeof e||"number"!=typeof e.length))throw new Error("JSON.stringify");return str("",{"":t})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){var j;function walk(t,e){var n,r,o=t[e];if(o&&"object"==typeof o)for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(void 0!==(r=walk(o,n))?o[n]=r:delete o[n]);return reviver.call(t,e,o)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,(function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},2195:function(t,e,n){var r=n(9078),o=r.slice,i=r.pluck,u=r.each,c=r.bind,a=r.create,s=r.isList,f=r.isFunction,p=r.isObject;t.exports={createStore:h};var l={version:"2.0.12",enabled:!1,get:function(t,e){var n=this.storage.read(this._namespacePrefix+t);return this._deserialize(n,e)},set:function(t,e){return void 0===e?this.remove(t):(this.storage.write(this._namespacePrefix+t,this._serialize(e)),e)},remove:function(t){this.storage.remove(this._namespacePrefix+t)},each:function(t){var e=this;this.storage.each((function(n,r){t.call(e,e._deserialize(n),(r||"").replace(e._namespaceRegexp,""))}))},clearAll:function(){this.storage.clearAll()},hasNamespace:function(t){return this._namespacePrefix=="__storejs_"+t+"_"},createStore:function(){return h.apply(this,arguments)},addPlugin:function(t){this._addPlugin(t)},namespace:function(t){return h(this.storage,this.plugins,t)}};function h(t,e,n){n||(n=""),t&&!s(t)&&(t=[t]),e&&!s(e)&&(e=[e]);var r=n?"__storejs_"+n+"_":"",h=n?new RegExp("^"+r):null;if(!/^[a-zA-Z0-9_\-]*$/.test(n))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var v={_namespacePrefix:r,_namespaceRegexp:h,_testStorage:function(t){try{var e="__storejs__test__";t.write(e,e);var n=t.read(e)===e;return t.remove(e),n}catch(t){return!1}},_assignPluginFnProp:function(t,e){var n=this[e];this[e]=function(){var e=o(arguments,0),r=this;var i=[function(){if(n)return u(arguments,(function(t,n){e[n]=t})),n.apply(r,e)}].concat(e);return t.apply(r,i)}},_serialize:function(t){return JSON.stringify(t)},_deserialize:function(t,e){if(!t)return e;var n="";try{n=JSON.parse(t)}catch(e){n=t}return void 0!==n?n:e},_addStorage:function(t){this.enabled||this._testStorage(t)&&(this.storage=t,this.enabled=!0)},_addPlugin:function(t){var e=this;if(s(t))u(t,(function(t){e._addPlugin(t)}));else if(!i(this.plugins,(function(e){return t===e}))){if(this.plugins.push(t),!f(t))throw new Error("Plugins must be function values that return objects");var n=t.call(this);if(!p(n))throw new Error("Plugins must return an object of function properties");u(n,(function(n,r){if(!f(n))throw new Error("Bad plugin property: "+r+" from plugin "+t.name+". Plugins should only return functions.");e._assignPluginFnProp(n,r)}))}},addStorage:function(t){!function(){var t="undefined"==typeof console?null:console;t&&(t.warn?t.warn:t.log).apply(t,arguments)}("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(t)}},d=a(v,l,{plugins:[]});return d.raw={},u(d,(function(t,e){f(t)&&(d.raw[e]=c(d,t))})),u(t,(function(t){d._addStorage(t)})),u(e,(function(t){d._addPlugin(t)})),d}},9078:function(t,e,n){var r=Object.assign?Object.assign:function(t,e,n,r){for(var o=1;o<arguments.length;o++)a(Object(arguments[o]),(function(e,n){t[n]=e}));return t},o=function(){if(Object.create)return function(t,e,n,o){var i=c(arguments,1);return r.apply(this,[Object.create(t)].concat(i))};{function t(){}return function(e,n,o,i){var u=c(arguments,1);return t.prototype=e,r.apply(this,[new t].concat(u))}}}(),i=String.prototype.trim?function(t){return String.prototype.trim.call(t)}:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},u="undefined"!=typeof window?window:n.g;function c(t,e){return Array.prototype.slice.call(t,e||0)}function a(t,e){s(t,(function(t,n){return e(t,n),!1}))}function s(t,e){if(f(t)){for(var n=0;n<t.length;n++)if(e(t[n],n))return t[n]}else for(var r in t)if(t.hasOwnProperty(r)&&e(t[r],r))return t[r]}function f(t){return null!=t&&"function"!=typeof t&&"number"==typeof t.length}t.exports={assign:r,create:o,trim:i,bind:function(t,e){return function(){return e.apply(t,Array.prototype.slice.call(arguments,0))}},slice:c,each:a,map:function(t,e){var n=f(t)?[]:{};return s(t,(function(t,r){return n[r]=e(t,r),!1})),n},pluck:s,isList:f,isFunction:function(t){return t&&"[object Function]"==={}.toString.call(t)},isObject:function(t){return t&&"[object Object]"==={}.toString.call(t)},Global:u}},9015:function(t,e,n){t.exports=[n(9627),n(5347),n(4524),n(5580),n(8855),n(8728)]},5580:function(t,e,n){var r=n(9078),o=r.Global,i=r.trim;t.exports={name:"cookieStorage",read:function(t){if(!t||!s(t))return null;var e="(?:^|.*;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(u.cookie.replace(new RegExp(e),"$1"))},write:function(t,e){if(!t)return;u.cookie=escape(t)+"="+escape(e)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"},each:c,remove:a,clearAll:function(){c((function(t,e){a(e)}))}};var u=o.document;function c(t){for(var e=u.cookie.split(/; ?/g),n=e.length-1;n>=0;n--)if(i(e[n])){var r=e[n].split("="),o=unescape(r[0]);t(unescape(r[1]),o)}}function a(t){t&&s(t)&&(u.cookie=escape(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function s(t){return new RegExp("(?:^|;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(u.cookie)}},9627:function(t,e,n){var r=n(9078).Global;function o(){return r.localStorage}function i(t){return o().getItem(t)}t.exports={name:"localStorage",read:i,write:function(t,e){return o().setItem(t,e)},each:function(t){for(var e=o().length-1;e>=0;e--){var n=o().key(e);t(i(n),n)}},remove:function(t){return o().removeItem(t)},clearAll:function(){return o().clear()}}},8728:function(t){t.exports={name:"memoryStorage",read:function(t){return e[t]},write:function(t,n){e[t]=n},each:function(t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},remove:function(t){delete e[t]},clearAll:function(t){e={}}};var e={}},5347:function(t,e,n){var r=n(9078).Global;t.exports={name:"oldFF-globalStorage",read:function(t){return o[t]},write:function(t,e){o[t]=e},each:i,remove:function(t){return o.removeItem(t)},clearAll:function(){i((function(t,e){delete o[t]}))}};var o=r.globalStorage;function i(t){for(var e=o.length-1;e>=0;e--){var n=o.key(e);t(o[n],n)}}},4524:function(t,e,n){var r=n(9078).Global;t.exports={name:"oldIE-userDataStorage",write:function(t,e){if(c)return;var n=s(t);u((function(t){t.setAttribute(n,e),t.save(o)}))},read:function(t){if(c)return;var e=s(t),n=null;return u((function(t){n=t.getAttribute(e)})),n},each:function(t){u((function(e){for(var n=e.XMLDocument.documentElement.attributes,r=n.length-1;r>=0;r--){var o=n[r];t(e.getAttribute(o.name),o.name)}}))},remove:function(t){var e=s(t);u((function(t){t.removeAttribute(e),t.save(o)}))},clearAll:function(){u((function(t){var e=t.XMLDocument.documentElement.attributes;t.load(o);for(var n=e.length-1;n>=0;n--)t.removeAttribute(e[n].name);t.save(o)}))}};var o="storejs",i=r.document,u=function(){if(!i||!i.documentElement||!i.documentElement.addBehavior)return null;var t,e,n,r="script";try{(e=new ActiveXObject("htmlfile")).open(),e.write("<"+r+">document.w=window</"+r+'><iframe src="/favicon.ico"></iframe>'),e.close(),t=e.w.frames[0].document,n=t.createElement("div")}catch(e){n=i.createElement("div"),t=i.body}return function(e){var r=[].slice.call(arguments,0);r.unshift(n),t.appendChild(n),n.addBehavior("#default#userData"),n.load(o),e.apply(this,r),t.removeChild(n)}}(),c=(r.navigator?r.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);var a=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function s(t){return t.replace(/^\d/,"___$&").replace(a,"___")}},8855:function(t,e,n){var r=n(9078).Global;function o(){return r.sessionStorage}function i(t){return o().getItem(t)}t.exports={name:"sessionStorage",read:i,write:function(t,e){return o().setItem(t,e)},each:function(t){for(var e=o().length-1;e>=0;e--){var n=o().key(e);t(i(n),n)}},remove:function(t){return o().removeItem(t)},clearAll:function(){return o().clear()}}},4609:function(){self.fetch||(self.fetch=function(t,e){return e=e||{},new Promise((function(n,r){var o=new XMLHttpRequest,i=[],u={},c=function t(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(o.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:t,headers:{keys:function(){return i},entries:function(){return i.map((function(t){return[t,o.getResponseHeader(t)]}))},get:function(t){return o.getResponseHeader(t)},has:function(t){return null!=o.getResponseHeader(t)}}}};for(var a in o.open(e.method||"get",t,!0),o.onload=function(){o.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,(function(t,e){u[e]||i.push(u[e]=e)})),n(c())},o.onerror=r,o.withCredentials="include"==e.credentials,e.headers)o.setRequestHeader(a,e.headers[a]);o.send(e.body||null)}))})}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var n=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t](n,n.exports,__webpack_require__),n.exports}__webpack_require__.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=function(t,e){for(var n in e)__webpack_require__.o(e,n)&&!__webpack_require__.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),__webpack_require__.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},__webpack_require__.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var __webpack_exports__={};return function(){"use strict";function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t){return e="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},e(t)}function n(t){var n=function(t,n){if("object"!==e(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,n||"default");if("object"!==e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"===e(n)?n:String(n)}function r(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,n(o.key),o)}}function o(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return l}});__webpack_require__(1539),__webpack_require__(8674),__webpack_require__(2772),__webpack_require__(9601);var i=__webpack_require__(8971),u=__webpack_require__.n(i);function c(){return u().get("tmc.user")}function a(t){u().set("tmc.user",t)}var s=function(){function e(n){t(this,e),this.oauthSite=n}return o(e,[{key:"request",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.headers||{},r=c();if(r&&r.accessToken||e.accessToken){var o=r&&r.accessToken||e.accessToken;n=Object.assign({authorization:"Bearer "+o,"Content-Type":"application/json"},n)}return fetch(new Request(this.oauthSite+t,Object.assign({mode:"cors"},e,{headers:n}))).then((function(t){return t.ok?Promise.resolve(t):Promise.reject(t)}))}},{key:"post",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request(t,Object.assign({},e,{method:"POST"}))}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request(t,Object.assign({},e,{method:"GET"}))}}]),e}(),f=function(){function e(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"https://tmc.mooc.fi";t(this,e),this.clientId=n,this.clientSecret=r,this.api=new s(o)}return o(e,[{key:"authenticate",value:function(t){var e=this,n=t.username,r=t.password;return new Promise((function(t,o){var i={headers:{"Content-Type":"application/x-www-form-urlencoded"},body:["client_id="+e.clientId,"client_secret="+e.clientSecret,"username="+encodeURIComponent(n),"password="+encodeURIComponent(r),"grant_type=password"].join("&")};e.api.post("/oauth/token",i).then((function(t){return t.json()})).then((function(r){var o={username:n,accessToken:r.access_token};-1!==n.indexOf("@")?e.api.get("/api/v8/users/current",{accessToken:r.access_token}).then((function(t){return t.json()})).then((function(e){o.username=e.username,a(o),t(o)})):(a(o),t(o))})).catch(o)}))}},{key:"unauthenticate",value:function(){return u().remove("tmc.user"),this}},{key:"getUser",value:function(){return c()}},{key:"getUserDetails",value:function(){var t=this;return new Promise((function(e,n){t.api.get("/api/v8/users/current?show_user_fields=true").then((function(t){return t.json()})).then(e).catch(n)}))}}]),e}(),p=f;try{__webpack_require__(1358),__webpack_require__(4609)}catch(t){}var l=p}(),__webpack_exports__}()}));
//# sourceMappingURL=tmc-client.min.js.map