-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·150 lines (147 loc) · 97.1 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<html>
<head>
<title>Fresh!</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
@keyframes blink {
0% {
filter: invert(0);
}
50% {
filter: invert(1);
}
}
</style>
</head>
<body style="padding: 0; margin: 0; font-family: sans-serif">
<script>parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRequire,o="function"==typeof require&&require;function u(n,t){if(!r[n]){if(!e[n]){var f="function"==typeof parcelRequire&&parcelRequire;if(!t&&f)return f(n,!0);if(i)return i(n,!0);if(o&&"string"==typeof n)return o(n);var c=new Error("Cannot find module '"+n+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[n][1][r]||r},p.cache={};var l=r[n]=new u.Module(n);e[n][0].call(l.exports,p,l,l.exports,this)}return r[n].exports;function p(e){return u(p.resolve(e))}}u.isParcelRequire=!0,u.Module=function(e){this.id=e,this.bundle=u,this.exports={}},u.modules=e,u.cache=r,u.parent=i,u.register=function(r,n){e[r]=[function(e,r){r.exports=n},{}]};for(var f=0;f<n.length;f++)u(n[f]);if(n.length){var c=u(n[n.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=c:"function"==typeof define&&define.amd?define(function(){return c}):t&&(this[t]=c)}return u}({"sg3h":[function(require,module,exports) {
"use strict";var t="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,o=Object.prototype.toString,r="[object Function]";module.exports=function(e){var p=this;if("function"!=typeof p||o.call(p)!==r)throw new TypeError(t+p);for(var i,c=n.call(arguments,1),a=Math.max(0,p.length-c.length),l=[],u=0;u<a;u++)l.push("$"+u);if(i=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof i){var t=p.apply(this,c.concat(n.call(arguments)));return Object(t)===t?t:this}return p.apply(e,c.concat(n.call(arguments)))}),p.prototype){var y=function(){};y.prototype=p.prototype,i.prototype=new y,y.prototype=null}return i};
},{}],"KNOk":[function(require,module,exports) {
"use strict";var e=require("./implementation");module.exports=Function.prototype.bind||e;
},{"./implementation":"sg3h"}],"wBSM":[function(require,module,exports) {
"use strict";var t=Object.prototype.toString;module.exports=function(e){var o=t.call(e),r="[object Arguments]"===o;return r||(r="[object Array]"!==o&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r};
},{}],"XCKW":[function(require,module,exports) {
"use strict";var t=Object.prototype.hasOwnProperty,e=Object.prototype.toString,r=Array.prototype.slice,n=require("./isArguments"),o=Object.prototype.propertyIsEnumerable,c=!o.call({toString:null},"toString"),i=o.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],a=function(t){var e=t.constructor;return e&&e.prototype===t},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!u["$"+e]&&t.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{a(window[e])}catch(r){return!0}}catch(r){return!0}return!1}(),p=function(t){if("undefined"==typeof window||!f)return a(t);try{return a(t)}catch(e){return!1}},s=function(r){var o=null!==r&&"object"==typeof r,a="[object Function]"===e.call(r),u=n(r),f=o&&"[object String]"===e.call(r),s=[];if(!o&&!a&&!u)throw new TypeError("Object.keys called on a non-object");var y=i&&a;if(f&&r.length>0&&!t.call(r,0))for(var h=0;h<r.length;++h)s.push(String(h));if(u&&r.length>0)for(var w=0;w<r.length;++w)s.push(String(w));else for(var $ in r)y&&"prototype"===$||!t.call(r,$)||s.push(String($));if(c)for(var g=p(r),b=0;b<l.length;++b)g&&"constructor"===l[b]||!t.call(r,l[b])||s.push(l[b]);return s};s.shim=function(){if(Object.keys){if(!function(){return 2===(Object.keys(arguments)||"").length}(1,2)){var t=Object.keys;Object.keys=function(e){return n(e)?t(r.call(e)):t(e)}}}else Object.keys=s;return Object.keys||s},module.exports=s;
},{"./isArguments":"wBSM"}],"xkJr":[function(require,module,exports) {
"use strict";var t=require("object-keys"),e="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),r=Object.prototype.toString,o=Array.prototype.concat,n=Object.defineProperty,c=function(t){return"function"==typeof t&&"[object Function]"===r.call(t)},u=function(){var t={};try{for(var e in n(t,"x",{enumerable:!1,value:t}),t)return!1;return t.x===t}catch(r){return!1}},l=n&&u(),a=function(t,e,r,o){(!(e in t)||c(o)&&o())&&(l?n(t,e,{configurable:!0,enumerable:!1,value:r,writable:!0}):t[e]=r)},i=function(r,n){var c=arguments.length>2?arguments[2]:{},u=t(n);e&&(u=o.call(u,Object.getOwnPropertySymbols(n)));for(var l=0;l<u.length;l+=1)a(r,u[l],n[u[l]],c[u[l]])};i.supportsDescriptors=!!l,module.exports=i;
},{"object-keys":"XCKW"}],"foqi":[function(require,module,exports) {
"use strict";module.exports=function(){if("function"!=typeof Promise)throw new TypeError("`Promise.prototype.finally` requires a global `Promise` be available.")};
},{}],"KeR3":[function(require,module,exports) {
"use strict";var t=require("function-bind");module.exports=t.call(Function.call,Object.prototype.hasOwnProperty);
},{"function-bind":"KNOk"}],"rlll":[function(require,module,exports) {
module.exports=function(o){return null===o||"function"!=typeof o&&"object"!=typeof o};
},{}],"b5tB":[function(require,module,exports) {
"use strict";var t=Function.prototype.toString,r=/^\s*class\b/,n=function(n){try{var o=t.call(n);return r.test(o)}catch(e){return!1}},o=function(r){try{return!n(r)&&(t.call(r),!0)}catch(o){return!1}},e=Object.prototype.toString,c="[object Function]",u="[object GeneratorFunction]",i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;module.exports=function(t){if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if("function"==typeof t&&!t.prototype)return!0;if(i)return o(t);if(n(t))return!1;var r=e.call(t);return r===c||r===u};
},{}],"Z3hm":[function(require,module,exports) {
"use strict";var t=Date.prototype.getDay,o=function(o){try{return t.call(o),!0}catch(e){return!1}},e=Object.prototype.toString,r="[object Date]",n="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;module.exports=function(t){return"object"==typeof t&&null!==t&&(n?o(t):e.call(t)===r)};
},{}],"4Ht9":[function(require,module,exports) {
"use strict";module.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(t,e);if(42!==n.value||!0!==n.enumerable)return!1}return!0};
},{}],"4khj":[function(require,module,exports) {
var global = arguments[3];
var o=arguments[3],e=o.Symbol,t=require("./shams");module.exports=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))};
},{"./shams":"4Ht9"}],"b5Qx":[function(require,module,exports) {
"use strict";var t=Object.prototype.toString,r=require("has-symbols")();if(r){var e=Symbol.prototype.toString,o=/^Symbol\(.*\)$/,l=function(t){return"symbol"==typeof t.valueOf()&&o.test(e.call(t))};module.exports=function(r){if("symbol"==typeof r)return!0;if("[object Symbol]"!==t.call(r))return!1;try{return l(r)}catch(e){return!1}}}else module.exports=function(t){return!1};
},{"has-symbols":"4khj"}],"Iv/9":[function(require,module,exports) {
"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,e=require("./helpers/isPrimitive"),t=require("is-callable"),o=require("is-date-object"),i=require("is-symbol"),n=function(r,o){if(null==r)throw new TypeError("Cannot call method on "+r);if("string"!=typeof o||"number"!==o&&"string"!==o)throw new TypeError('hint must be "string" or "number"');var i,n,u,l="string"===o?["toString","valueOf"]:["valueOf","toString"];for(u=0;u<l.length;++u)if(i=r[l[u]],t(i)&&(n=i.call(r),e(n)))return n;throw new TypeError("No default value")},u=function(r,e){var o=r[e];if(null!=o){if(!t(o))throw new TypeError(o+" returned for property "+e+" of object "+r+" is not a function");return o}};module.exports=function(t){if(e(t))return t;var l,f="default";if(arguments.length>1&&(arguments[1]===String?f="string":arguments[1]===Number&&(f="number")),r&&(Symbol.toPrimitive?l=u(t,Symbol.toPrimitive):i(t)&&(l=Symbol.prototype.valueOf)),void 0!==l){var a=l.call(t,f);if(e(a))return a;throw new TypeError("unable to convert exotic object to primitive")}return"default"===f&&(o(t)||i(t))&&(f="string"),n(t,"default"===f?"number":f)};
},{"./helpers/isPrimitive":"rlll","is-callable":"b5tB","is-date-object":"Z3hm","is-symbol":"b5Qx"}],"ANTW":[function(require,module,exports) {
"use strict";module.exports=require("./es2015");
},{"./es2015":"Iv/9"}],"BHzL":[function(require,module,exports) {
"use strict";var r,e,t,o,y=Object.getOwnPropertyDescriptor?function(){return Object.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new TypeError},n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,p=Object.getPrototypeOf||function(r){return r.__proto__},a=e?p(e):r,i=t?t.constructor:r,f=o?p(o):r,d=o?o():r,$="undefined"==typeof Uint8Array?r:p(Uint8Array),A={"$ %Array%":Array,"$ %ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"$ %ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":n?p([][Symbol.iterator]()):r,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":r,"$ %AsyncFunction%":i,"$ %AsyncFunctionPrototype%":i?i.prototype:r,"$ %AsyncGenerator%":o?p(d):r,"$ %AsyncGeneratorFunction%":f,"$ %AsyncGeneratorPrototype%":f?f.prototype:r,"$ %AsyncIteratorPrototype%":d&&n&&Symbol.asyncIterator?d[Symbol.asyncIterator]():r,"$ %Atomics%":"undefined"==typeof Atomics?r:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"undefined"==typeof DataView?r:DataView,"$ %DataViewPrototype%":"undefined"==typeof DataView?r:DataView.prototype,"$ %Date%":Date,"$ %DatePrototype%":Date.prototype,"$ %decodeURI%":decodeURI,"$ %decodeURIComponent%":decodeURIComponent,"$ %encodeURI%":encodeURI,"$ %encodeURIComponent%":encodeURIComponent,"$ %Error%":Error,"$ %ErrorPrototype%":Error.prototype,"$ %eval%":eval,"$ %EvalError%":EvalError,"$ %EvalErrorPrototype%":EvalError.prototype,"$ %Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"$ %Float32ArrayPrototype%":"undefined"==typeof Float32Array?r:Float32Array.prototype,"$ %Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"$ %Float64ArrayPrototype%":"undefined"==typeof Float64Array?r:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":e?p(e()):r,"$ %GeneratorFunction%":a,"$ %GeneratorPrototype%":a?a.prototype:r,"$ %Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"$ %Int8ArrayPrototype%":"undefined"==typeof Int8Array?r:Int8Array.prototype,"$ %Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"$ %Int16ArrayPrototype%":"undefined"==typeof Int16Array?r:Int8Array.prototype,"$ %Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"$ %Int32ArrayPrototype%":"undefined"==typeof Int32Array?r:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":isNaN,"$ %IteratorPrototype%":n?p(p([][Symbol.iterator]())):r,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"undefined"==typeof Map?r:Map,"$ %MapIteratorPrototype%":"undefined"!=typeof Map&&n?p((new Map)[Symbol.iterator]()):r,"$ %MapPrototype%":"undefined"==typeof Map?r:Map.prototype,"$ %Math%":Math,"$ %Number%":Number,"$ %NumberPrototype%":Number.prototype,"$ %Object%":Object,"$ %ObjectPrototype%":Object.prototype,"$ %ObjProto_toString%":Object.prototype.toString,"$ %ObjProto_valueOf%":Object.prototype.valueOf,"$ %parseFloat%":parseFloat,"$ %parseInt%":parseInt,"$ %Promise%":"undefined"==typeof Promise?r:Promise,"$ %PromisePrototype%":"undefined"==typeof Promise?r:Promise.prototype,"$ %PromiseProto_then%":"undefined"==typeof Promise?r:Promise.prototype.then,"$ %Promise_all%":"undefined"==typeof Promise?r:Promise.all,"$ %Promise_reject%":"undefined"==typeof Promise?r:Promise.reject,"$ %Promise_resolve%":"undefined"==typeof Promise?r:Promise.resolve,"$ %Proxy%":"undefined"==typeof Proxy?r:Proxy,"$ %RangeError%":RangeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"undefined"==typeof Reflect?r:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"undefined"==typeof Set?r:Set,"$ %SetIteratorPrototype%":"undefined"!=typeof Set&&n?p((new Set)[Symbol.iterator]()):r,"$ %SetPrototype%":"undefined"==typeof Set?r:Set.prototype,"$ %SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":n?p(""[Symbol.iterator]()):r,"$ %StringPrototype%":String.prototype,"$ %Symbol%":n?Symbol:r,"$ %SymbolPrototype%":n?Symbol.prototype:r,"$ %SyntaxError%":SyntaxError,"$ %SyntaxErrorPrototype%":SyntaxError.prototype,"$ %ThrowTypeError%":y,"$ %TypedArray%":$,"$ %TypedArrayPrototype%":$?$.prototype:r,"$ %TypeError%":TypeError,"$ %TypeErrorPrototype%":TypeError.prototype,"$ %Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"$ %Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?r:Uint8Array.prototype,"$ %Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray.prototype,"$ %Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"$ %Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?r:Uint16Array.prototype,"$ %Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"$ %Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?r:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"$ %WeakMapPrototype%":"undefined"==typeof WeakMap?r:WeakMap.prototype,"$ %WeakSet%":"undefined"==typeof WeakSet?r:WeakSet,"$ %WeakSetPrototype%":"undefined"==typeof WeakSet?r:WeakSet.prototype};module.exports=function(r,e){if(arguments.length>1&&"boolean"!=typeof e)throw new TypeError('"allowMissing" argument must be a boolean');var t="$ "+r;if(!(t in A))throw new SyntaxError("intrinsic "+r+" does not exist!");if(void 0===A[t]&&!e)throw new TypeError("intrinsic "+r+" exists, but is not available. Please file an issue!");return A[t]};
},{}],"SpM6":[function(require,module,exports) {
"use strict";var r=require("../GetIntrinsic"),e=r("%TypeError%"),t=r("%SyntaxError%"),o=require("has"),n={"Property Descriptor":function(r,t){if("Object"!==r.Type(t))return!1;var n={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var i in t)if(o(t,i)&&!n[i])return!1;var a=o(t,"[[Value]]"),u=o(t,"[[Get]]")||o(t,"[[Set]]");if(a&&u)throw new e("Property Descriptors may not be both accessor and data descriptors");return!0}};module.exports=function(r,o,i,a){var u=n[o];if("function"!=typeof u)throw new t("unknown record type: "+o);if(!u(r,a))throw new e(i+" must be a "+o);console.log(u(r,a),a)};
},{"../GetIntrinsic":"BHzL","has":"KeR3"}],"Mntu":[function(require,module,exports) {
module.exports=Number.isNaN||function(e){return e!=e};
},{}],"MSXw":[function(require,module,exports) {
var e=Number.isNaN||function(e){return e!=e};module.exports=Number.isFinite||function(r){return"number"==typeof r&&!e(r)&&r!==1/0&&r!==-1/0};
},{}],"q1Os":[function(require,module,exports) {
var r=require("function-bind"),n=r.call(Function.call,Object.prototype.hasOwnProperty),t=Object.assign;module.exports=function(r,e){if(t)return t(r,e);for(var o in e)n(e,o)&&(r[o]=e[o]);return r};
},{"function-bind":"KNOk"}],"fAAj":[function(require,module,exports) {
module.exports=function(e){return e>=0?1:-1};
},{}],"m3Ru":[function(require,module,exports) {
module.exports=function(o,r){var t=o%r;return Math.floor(t>=0?t:t+r)};
},{}],"d8Xr":[function(require,module,exports) {
"use strict";var e=Object.prototype.toString,r=require("./helpers/isPrimitive"),t=require("is-callable"),l={"[[DefaultValue]]":function(l){var u;if((u=arguments.length>1?arguments[1]:"[object Date]"===e.call(l)?String:Number)===String||u===Number){var i,a,n=u===String?["toString","valueOf"]:["valueOf","toString"];for(a=0;a<n.length;++a)if(t(l[n[a]])&&(i=l[n[a]](),r(i)))return i;throw new TypeError("No default value")}throw new TypeError("invalid [[DefaultValue]] hint supplied")}};module.exports=function(e){return r(e)?e:arguments.length>1?l["[[DefaultValue]]"](e,arguments[1]):l["[[DefaultValue]]"](e)};
},{"./helpers/isPrimitive":"rlll","is-callable":"b5tB"}],"N/YQ":[function(require,module,exports) {
"use strict";var e=require("./GetIntrinsic"),r=e("%Object%"),t=e("%TypeError%"),o=e("%String%"),i=require("./helpers/assertRecord"),n=require("./helpers/isNaN"),s=require("./helpers/isFinite"),u=require("./helpers/sign"),a=require("./helpers/mod"),c=require("is-callable"),l=require("es-to-primitive/es5"),b=require("has"),f={ToPrimitive:l,ToBoolean:function(e){return!!e},ToNumber:function(e){return+e},ToInteger:function(e){var r=this.ToNumber(e);return n(r)?0:0!==r&&s(r)?u(r)*Math.floor(Math.abs(r)):r},ToInt32:function(e){return this.ToNumber(e)>>0},ToUint32:function(e){return this.ToNumber(e)>>>0},ToUint16:function(e){var r=this.ToNumber(e);if(n(r)||0===r||!s(r))return 0;var t=u(r)*Math.floor(Math.abs(r));return a(t,65536)},ToString:function(e){return o(e)},ToObject:function(e){return this.CheckObjectCoercible(e),r(e)},CheckObjectCoercible:function(e,r){if(null==e)throw new t(r||"Cannot call method on "+e);return e},IsCallable:c,SameValue:function(e,r){return e===r?0!==e||1/e==1/r:n(e)&&n(r)},Type:function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0},IsPropertyDescriptor:function(e){if("Object"!==this.Type(e))return!1;var r={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var o in e)if(b(e,o)&&!r[o])return!1;var i=b(e,"[[Value]]"),n=b(e,"[[Get]]")||b(e,"[[Set]]");if(i&&n)throw new t("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(e){return void 0!==e&&(i(this,"Property Descriptor","Desc",e),!(!b(e,"[[Get]]")&&!b(e,"[[Set]]")))},IsDataDescriptor:function(e){return void 0!==e&&(i(this,"Property Descriptor","Desc",e),!(!b(e,"[[Value]]")&&!b(e,"[[Writable]]")))},IsGenericDescriptor:function(e){return void 0!==e&&(i(this,"Property Descriptor","Desc",e),!this.IsAccessorDescriptor(e)&&!this.IsDataDescriptor(e))},FromPropertyDescriptor:function(e){if(void 0===e)return e;if(i(this,"Property Descriptor","Desc",e),this.IsDataDescriptor(e))return{value:e["[[Value]]"],writable:!!e["[[Writable]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};if(this.IsAccessorDescriptor(e))return{get:e["[[Get]]"],set:e["[[Set]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};throw new t("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(e){if("Object"!==this.Type(e))throw new t("ToPropertyDescriptor requires an object");var r={};if(b(e,"enumerable")&&(r["[[Enumerable]]"]=this.ToBoolean(e.enumerable)),b(e,"configurable")&&(r["[[Configurable]]"]=this.ToBoolean(e.configurable)),b(e,"value")&&(r["[[Value]]"]=e.value),b(e,"writable")&&(r["[[Writable]]"]=this.ToBoolean(e.writable)),b(e,"get")){var o=e.get;if(void 0!==o&&!this.IsCallable(o))throw new TypeError("getter must be a function");r["[[Get]]"]=o}if(b(e,"set")){var i=e.set;if(void 0!==i&&!this.IsCallable(i))throw new t("setter must be a function");r["[[Set]]"]=i}if((b(r,"[[Get]]")||b(r,"[[Set]]"))&&(b(r,"[[Value]]")||b(r,"[[Writable]]")))throw new t("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return r}};module.exports=f;
},{"./GetIntrinsic":"BHzL","./helpers/assertRecord":"SpM6","./helpers/isNaN":"Mntu","./helpers/isFinite":"MSXw","./helpers/sign":"fAAj","./helpers/mod":"m3Ru","is-callable":"b5tB","es-to-primitive/es5":"d8Xr","has":"KeR3"}],"1ieV":[function(require,module,exports) {
"use strict";var t=require("has"),e=RegExp.prototype.exec,r=Object.getOwnPropertyDescriptor,o=function(t){try{var r=t.lastIndex;return t.lastIndex=0,e.call(t),!0}catch(o){return!1}finally{t.lastIndex=r}},n=Object.prototype.toString,l="[object RegExp]",a="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;module.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!a)return n.call(e)===l;var c=r(e,"lastIndex");return!(!c||!t(c,"value"))&&o(e)};
},{"has":"KeR3"}],"FlJg":[function(require,module,exports) {
"use strict";var e=require("has"),t=require("es-to-primitive/es6"),r=require("object-keys"),n=require("./GetIntrinsic"),i=n("%TypeError%"),o=n("%SyntaxError%"),s=n("%Array%"),u=n("%String%"),a=n("%Object%"),l=n("%Number%"),c=n("%Symbol%",!0),f=n("%RegExp%"),h=!!c,p=require("./helpers/assertRecord"),y=require("./helpers/isNaN"),b=require("./helpers/isFinite"),w=l.MAX_SAFE_INTEGER||Math.pow(2,53)-1,T=require("./helpers/assign"),O=require("./helpers/sign"),m=require("./helpers/mod"),d=require("./helpers/isPrimitive"),v=parseInt,j=require("function-bind"),I=j.call(Function.call,s.prototype.slice),P=j.call(Function.call,u.prototype.slice),g=j.call(Function.call,f.prototype.test,/^0b[01]+$/i),C=j.call(Function.call,f.prototype.test,/^0o[0-7]+$/i),A=j.call(Function.call,f.prototype.exec),S=["
","",""].join(""),K=new f("["+S+"]","g"),x=j.call(Function.call,f.prototype.test,K),G=/^[-+]0x[0-9a-f]+$/i,N=j.call(Function.call,f.prototype.test,G),E=j.call(Function.call,u.prototype.charCodeAt),q=j.call(Function.call,Object.prototype.toString),F=j.call(Function.call,n("%NumberPrototype%").valueOf),D=j.call(Function.call,n("%BooleanPrototype%").valueOf),R=j.call(Function.call,n("%StringPrototype%").valueOf),B=j.call(Function.call,n("%DatePrototype%").valueOf),V=Math.floor,M=Math.abs,k=Object.create,U=a.getOwnPropertyDescriptor,$=a.isExtensible,H=a.defineProperty,W=["\t\n\v\f\r "," \u2028","\u2029\ufeff"].join(""),_=new RegExp("(^["+W+"]+)|(["+W+"]+$)","g"),L=j.call(Function.call,u.prototype.replace),X=function(e){return L(e,_,"")},Z=require("./es5"),z=require("is-regex"),J=T(T({},Z),{Call:function(e,t){var r=arguments.length>2?arguments[2]:[];if(!this.IsCallable(e))throw new i(e+" is not a function");return e.apply(t,r)},ToPrimitive:t,ToNumber:function(e){var r=d(e)?e:t(e,l);if("symbol"==typeof r)throw new i("Cannot convert a Symbol value to a number");if("string"==typeof r){if(g(r))return this.ToNumber(v(P(r,2),2));if(C(r))return this.ToNumber(v(P(r,2),8));if(x(r)||N(r))return NaN;var n=X(r);if(n!==r)return this.ToNumber(n)}return l(r)},ToInt16:function(e){var t=this.ToUint16(e);return t>=32768?t-65536:t},ToInt8:function(e){var t=this.ToUint8(e);return t>=128?t-256:t},ToUint8:function(e){var t=this.ToNumber(e);if(y(t)||0===t||!b(t))return 0;var r=O(t)*V(M(t));return m(r,256)},ToUint8Clamp:function(e){var t=this.ToNumber(e);if(y(t)||t<=0)return 0;if(t>=255)return 255;var r=V(e);return r+.5<t?r+1:t<r+.5?r:r%2!=0?r+1:r},ToString:function(e){if("symbol"==typeof e)throw new i("Cannot convert a Symbol value to a string");return u(e)},ToObject:function(e){return this.RequireObjectCoercible(e),a(e)},ToPropertyKey:function(e){var t=this.ToPrimitive(e,u);return"symbol"==typeof t?t:this.ToString(t)},ToLength:function(e){var t=this.ToInteger(e);return t<=0?0:t>w?w:t},CanonicalNumericIndexString:function(e){if("[object String]"!==q(e))throw new i("must be a string");if("-0"===e)return-0;var t=this.ToNumber(e);return this.SameValue(this.ToString(t),e)?t:void 0},RequireObjectCoercible:Z.CheckObjectCoercible,IsArray:s.isArray||function(e){return"[object Array]"===q(e)},IsConstructor:function(e){return"function"==typeof e&&!!e.prototype},IsExtensible:Object.preventExtensions?function(e){return!d(e)&&$(e)}:function(e){return!0},IsInteger:function(e){if("number"!=typeof e||y(e)||!b(e))return!1;var t=M(e);return V(t)===t},IsPropertyKey:function(e){return"string"==typeof e||"symbol"==typeof e},IsRegExp:function(e){if(!e||"object"!=typeof e)return!1;if(h){var t=e[c.match];if(void 0!==t)return Z.ToBoolean(t)}return z(e)},SameValueZero:function(e,t){return e===t||y(e)&&y(t)},GetV:function(e,t){if(!this.IsPropertyKey(t))throw new i("Assertion failed: IsPropertyKey(P) is not true");return this.ToObject(e)[t]},GetMethod:function(e,t){if(!this.IsPropertyKey(t))throw new i("Assertion failed: IsPropertyKey(P) is not true");var r=this.GetV(e,t);if(null!=r){if(!this.IsCallable(r))throw new i(t+"is not a function");return r}},Get:function(e,t){if("Object"!==this.Type(e))throw new i("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new i("Assertion failed: IsPropertyKey(P) is not true");return e[t]},Type:function(e){return"symbol"==typeof e?"Symbol":Z.Type(e)},SpeciesConstructor:function(e,t){if("Object"!==this.Type(e))throw new i("Assertion failed: Type(O) is not Object");var r=e.constructor;if(void 0===r)return t;if("Object"!==this.Type(r))throw new i("O.constructor is not an Object");var n=h&&c.species?r[c.species]:void 0;if(null==n)return t;if(this.IsConstructor(n))return n;throw new i("no constructor found")},CompletePropertyDescriptor:function(t){return p(this,"Property Descriptor","Desc",t),this.IsGenericDescriptor(t)||this.IsDataDescriptor(t)?(e(t,"[[Value]]")||(t["[[Value]]"]=void 0),e(t,"[[Writable]]")||(t["[[Writable]]"]=!1)):(e(t,"[[Get]]")||(t["[[Get]]"]=void 0),e(t,"[[Set]]")||(t["[[Set]]"]=void 0)),e(t,"[[Enumerable]]")||(t["[[Enumerable]]"]=!1),e(t,"[[Configurable]]")||(t["[[Configurable]]"]=!1),t},Set:function(e,t,r,n){if("Object"!==this.Type(e))throw new i("O must be an Object");if(!this.IsPropertyKey(t))throw new i("P must be a Property Key");if("Boolean"!==this.Type(n))throw new i("Throw must be a Boolean");if(n)return e[t]=r,!0;try{e[t]=r}catch(o){return!1}},HasOwnProperty:function(t,r){if("Object"!==this.Type(t))throw new i("O must be an Object");if(!this.IsPropertyKey(r))throw new i("P must be a Property Key");return e(t,r)},HasProperty:function(e,t){if("Object"!==this.Type(e))throw new i("O must be an Object");if(!this.IsPropertyKey(t))throw new i("P must be a Property Key");return t in e},IsConcatSpreadable:function(e){if("Object"!==this.Type(e))return!1;if(h&&"symbol"==typeof c.isConcatSpreadable){var t=this.Get(e,Symbol.isConcatSpreadable);if(void 0!==t)return this.ToBoolean(t)}return this.IsArray(e)},Invoke:function(e,t){if(!this.IsPropertyKey(t))throw new i("P must be a Property Key");var r=I(arguments,2),n=this.GetV(e,t);return this.Call(n,e,r)},GetIterator:function(e,t){if(!h)throw new SyntaxError("ES.GetIterator depends on native iterator support.");var r=t;arguments.length<2&&(r=this.GetMethod(e,c.iterator));var n=this.Call(r,e);if("Object"!==this.Type(n))throw new i("iterator must return an object");return n},IteratorNext:function(e,t){var r=this.Invoke(e,"next",arguments.length<2?[]:[t]);if("Object"!==this.Type(r))throw new i("iterator next must return an object");return r},IteratorComplete:function(e){if("Object"!==this.Type(e))throw new i("Assertion failed: Type(iterResult) is not Object");return this.ToBoolean(this.Get(e,"done"))},IteratorValue:function(e){if("Object"!==this.Type(e))throw new i("Assertion failed: Type(iterResult) is not Object");return this.Get(e,"value")},IteratorStep:function(e){var t=this.IteratorNext(e);return!0!==this.IteratorComplete(t)&&t},IteratorClose:function(e,t){if("Object"!==this.Type(e))throw new i("Assertion failed: Type(iterator) is not Object");if(!this.IsCallable(t))throw new i("Assertion failed: completion is not a thunk for a Completion Record");var r,n=t,o=this.GetMethod(e,"return");if(void 0===o)return n();try{var s=this.Call(o,e,[])}catch(u){throw r=n(),n=null,u}if(r=n(),n=null,"Object"!==this.Type(s))throw new i("iterator .return must return an object");return r},CreateIterResultObject:function(e,t){if("Boolean"!==this.Type(t))throw new i("Assertion failed: Type(done) is not Boolean");return{value:e,done:t}},RegExpExec:function(e,t){if("Object"!==this.Type(e))throw new i("R must be an Object");if("String"!==this.Type(t))throw new i("S must be a String");var r=this.Get(e,"exec");if(this.IsCallable(r)){var n=this.Call(r,e,[t]);if(null===n||"Object"===this.Type(n))return n;throw new i('"exec" method must return `null` or an Object')}return A(e,t)},ArraySpeciesCreate:function(e,t){if(!this.IsInteger(t)||t<0)throw new i("Assertion failed: length must be an integer >= 0");var r,n=0===t?0:t;if(this.IsArray(e)&&(r=this.Get(e,"constructor"),"Object"===this.Type(r)&&h&&c.species&&null===(r=this.Get(r,c.species))&&(r=void 0)),void 0===r)return s(n);if(!this.IsConstructor(r))throw new i("C must be a constructor");return new r(n)},CreateDataProperty:function(e,t,r){if("Object"!==this.Type(e))throw new i("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new i("Assertion failed: IsPropertyKey(P) is not true");var n=U(e,t),o=n||"function"!=typeof $||$(e);return!(!(!n||n.writable&&n.configurable)||!o)&&(H(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}),!0)},CreateDataPropertyOrThrow:function(e,t,r){if("Object"!==this.Type(e))throw new i("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new i("Assertion failed: IsPropertyKey(P) is not true");var n=this.CreateDataProperty(e,t,r);if(!n)throw new i("unable to create data property");return n},ObjectCreate:function(e,t){if(null!==e&&"Object"!==this.Type(e))throw new i("Assertion failed: proto must be null or an object");if((arguments.length<2?[]:t).length>0)throw new o("es-abstract does not yet support internal slots");if(null===e&&!k)throw new o("native Object.create support is required to create null objects");return k(e)},AdvanceStringIndex:function(e,t,r){if("String"!==this.Type(e))throw new i("S must be a String");if(!this.IsInteger(t)||t<0||t>w)throw new i("Assertion failed: length must be an integer >= 0 and <= 2**53");if("Boolean"!==this.Type(r))throw new i("Assertion failed: unicode must be a Boolean");if(!r)return t+1;if(t+1>=e.length)return t+1;var n=E(e,t);if(n<55296||n>56319)return t+1;var o=E(e,t+1);return o<56320||o>57343?t+1:t+2},CreateMethodProperty:function(e,t,r){if("Object"!==this.Type(e))throw new i("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new i("Assertion failed: IsPropertyKey(P) is not true");return!!H(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0})},DefinePropertyOrThrow:function(e,t,r){if("Object"!==this.Type(e))throw new i("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new i("Assertion failed: IsPropertyKey(P) is not true");return!!H(e,t,r)},DeletePropertyOrThrow:function(e,t){if("Object"!==this.Type(e))throw new i("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new i("Assertion failed: IsPropertyKey(P) is not true");var r=delete e[t];if(!r)throw new TypeError("Attempt to delete property failed.");return r},EnumerableOwnNames:function(e){if("Object"!==this.Type(e))throw new i("Assertion failed: Type(O) is not Object");return r(e)},thisNumberValue:function(e){return"Number"===this.Type(e)?e:F(e)},thisBooleanValue:function(e){return"Boolean"===this.Type(e)?e:D(e)},thisStringValue:function(e){return"String"===this.Type(e)?e:R(e)},thisTimeValue:function(e){return B(e)}});delete J.CheckObjectCoercible,module.exports=J;
},{"has":"KeR3","es-to-primitive/es6":"ANTW","object-keys":"XCKW","./GetIntrinsic":"BHzL","./helpers/assertRecord":"SpM6","./helpers/isNaN":"Mntu","./helpers/isFinite":"MSXw","./helpers/assign":"q1Os","./helpers/sign":"fAAj","./helpers/mod":"m3Ru","./helpers/isPrimitive":"rlll","function-bind":"KNOk","./es5":"N/YQ","is-regex":"1ieV"}],"9E1+":[function(require,module,exports) {
"use strict";var e=require("./es2015"),r=require("./helpers/assign"),u=r(r({},e),{SameValueNonNumber:function(e,r){if("number"==typeof e||typeof e!=typeof r)throw new TypeError("SameValueNonNumber requires two non-number values of the same type.");return this.SameValue(e,r)}});module.exports=u;
},{"./es2015":"FlJg","./helpers/assign":"q1Os"}],"i/4G":[function(require,module,exports) {
"use strict";module.exports=require("./es2016");
},{"./es2016":"9E1+"}],"8pqa":[function(require,module,exports) {
"use strict";var r=require("./requirePromise");r();var e=require("es-abstract/es7"),n=require("function-bind"),t=function(r,e){return new r(function(r){r(e)})},i=Promise,u=function(r,e){return function(n){var i=e();return t(r,i).then(function(){return n})}},o=function(r,e){return function(n){var i=e();return t(r,i).then(function(){throw n})}},c=n.call(Function.call,i.prototype.then),a=function(r){c(this,null,function(){});var n=e.SpeciesConstructor(this,i),t=r,a=r;return e.IsCallable(r)&&(t=u(n,r),a=o(n,r)),this.then(t,a)};if(Object.getOwnPropertyDescriptor){var f=Object.getOwnPropertyDescriptor(a,"name");f&&f.configurable&&Object.defineProperty(a,"name",{configurable:!0,value:"finally"})}module.exports=a;
},{"./requirePromise":"foqi","es-abstract/es7":"i/4G","function-bind":"KNOk"}],"mhrZ":[function(require,module,exports) {
"use strict";var e=require("./requirePromise"),r=require("./implementation");module.exports=function(){return e(),"function"==typeof Promise.prototype.finally?Promise.prototype.finally:r};
},{"./requirePromise":"foqi","./implementation":"8pqa"}],"1Igs":[function(require,module,exports) {
"use strict";var r=require("./requirePromise"),e=require("./polyfill"),i=require("define-properties");module.exports=function(){r();var o=e();return i(Promise.prototype,{finally:o},{finally:function(){return Promise.prototype.finally!==o}}),o};
},{"./requirePromise":"foqi","./polyfill":"mhrZ","define-properties":"xkJr"}],"PDT+":[function(require,module,exports) {
"use strict";var e=require("function-bind"),i=require("define-properties"),r=require("./implementation"),l=require("./polyfill"),t=require("./shim"),n=e.call(Function.call,l());i(n,{getPolyfill:l,implementation:r,shim:t}),module.exports=n;
},{"function-bind":"KNOk","define-properties":"xkJr","./implementation":"8pqa","./polyfill":"mhrZ","./shim":"1Igs"}],"qWa+":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.createElement=exports.h=r,exports.cloneElement=s,exports.createRef=j,exports.Component=R,exports.render=H,exports.rerender=d,exports.options=exports.default=void 0;var e=function(){},t={};exports.options=t;var n=[],o=[];function r(r,i){var l,a,s,p,c=o;for(p=arguments.length;p-- >2;)n.push(arguments[p]);for(i&&null!=i.children&&(n.length||n.push(i.children),delete i.children);n.length;)if((a=n.pop())&&void 0!==a.pop)for(p=a.length;p--;)n.push(a[p]);else"boolean"==typeof a&&(a=null),(s="function"!=typeof r)&&(null==a?a="":"number"==typeof a?a=String(a):"string"!=typeof a&&(s=!1)),s&&l?c[c.length-1]+=a:c===o?c=[a]:c.push(a),l=s;var u=new e;return u.nodeName=r,u.children=c,u.attributes=null==i?void 0:i,u.key=null==i?void 0:i.key,void 0!==t.vnode&&t.vnode(u),u}function i(e,t){for(var n in t)e[n]=t[n];return e}function l(e,t){null!=e&&("function"==typeof e?e(t):e.current=t)}var a="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;function s(e,t){return r(e.nodeName,i(i({},e.attributes),t),arguments.length>2?[].slice.call(arguments,2):e.children)}var p=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,c=[];function u(e){!e._dirty&&(e._dirty=!0)&&1==c.push(e)&&(t.debounceRendering||a)(d)}function d(){for(var e;e=c.pop();)e._dirty&&D(e)}function f(e,t,n){return"string"==typeof t||"number"==typeof t?void 0!==e.splitText:"string"==typeof t.nodeName?!e._componentConstructor&&v(e,t.nodeName):n||e._componentConstructor===t.nodeName}function v(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function m(e){var t=i({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var o in n)void 0===t[o]&&(t[o]=n[o]);return t}function _(e,t){var n=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n.normalizedNodeName=e,n}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function y(e,t,n,o,r){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)l(n,null),l(o,e);else if("class"!==t||r)if("style"===t){if(o&&"string"!=typeof o&&"string"!=typeof n||(e.style.cssText=o||""),o&&"object"==typeof o){if("string"!=typeof n)for(var i in n)i in o||(e.style[i]="");for(var i in o)e.style[i]="number"==typeof o[i]&&!1===p.test(i)?o[i]+"px":o[i]}}else if("dangerouslySetInnerHTML"===t)o&&(e.innerHTML=o.__html||"");else if("o"==t[0]&&"n"==t[1]){var a=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),o?n||e.addEventListener(t,b,a):e.removeEventListener(t,b,a),(e._listeners||(e._listeners={}))[t]=o}else if("list"!==t&&"type"!==t&&!r&&t in e){try{e[t]=null==o?"":o}catch(c){}null!=o&&!1!==o||"spellcheck"==t||e.removeAttribute(t)}else{var s=r&&t!==(t=t.replace(/^xlink:?/,""));null==o||!1===o?s?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof o&&(s?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),o):e.setAttribute(t,o))}else e.className=o||""}function b(e){return this._listeners[e.type](t.event&&t.event(e)||e)}var x=[],g=0,C=!1,N=!1;function w(){for(var e;e=x.shift();)t.afterMount&&t.afterMount(e),e.componentDidMount&&e.componentDidMount()}function k(e,t,n,o,r,i){g++||(C=null!=r&&void 0!==r.ownerSVGElement,N=null!=e&&!("__preactattr_"in e));var l=S(e,t,n,o,i);return r&&l.parentNode!==r&&r.appendChild(l),--g||(N=!1,i||w()),l}function S(e,t,n,o,r){var i=e,l=C;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||r)?e.nodeValue!=t&&(e.nodeValue=t):(i=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(i,e),P(e,!0))),i.__preactattr_=!0,i;var a=t.nodeName;if("function"==typeof a)return V(e,t,n,o);if(C="svg"===a||"foreignObject"!==a&&C,a=String(a),(!e||!v(e,a))&&(i=_(a,C),e)){for(;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(i,e),P(e,!0)}var s=i.firstChild,p=i.__preactattr_,c=t.children;if(null==p){p=i.__preactattr_={};for(var u=i.attributes,d=u.length;d--;)p[u[d].name]=u[d].value}return!N&&c&&1===c.length&&"string"==typeof c[0]&&null!=s&&void 0!==s.splitText&&null==s.nextSibling?s.nodeValue!=c[0]&&(s.nodeValue=c[0]):(c&&c.length||null!=s)&&U(i,c,n,o,N||null!=p.dangerouslySetInnerHTML),L(i,t.attributes,p),C=l,i}function U(e,t,n,o,r){var i,l,a,s,p,c=e.childNodes,u=[],d={},v=0,m=0,_=c.length,y=0,b=t?t.length:0;if(0!==_)for(var x=0;x<_;x++){var g=c[x],C=g.__preactattr_;null!=(N=b&&C?g._component?g._component.__key:C.key:null)?(v++,d[N]=g):(C||(void 0!==g.splitText?!r||g.nodeValue.trim():r))&&(u[y++]=g)}if(0!==b)for(x=0;x<b;x++){var N;if(p=null,null!=(N=(s=t[x]).key))v&&void 0!==d[N]&&(p=d[N],d[N]=void 0,v--);else if(m<y)for(i=m;i<y;i++)if(void 0!==u[i]&&f(l=u[i],s,r)){p=l,u[i]=void 0,i===y-1&&y--,i===m&&m++;break}p=S(p,s,n,o),a=c[x],p&&p!==e&&p!==a&&(null==a?e.appendChild(p):p===a.nextSibling?h(a):e.insertBefore(p,a))}if(v)for(var x in d)void 0!==d[x]&&P(d[x],!1);for(;m<=y;)void 0!==(p=u[y--])&&P(p,!1)}function P(e,t){var n=e._component;n?A(n):(null!=e.__preactattr_&&l(e.__preactattr_.ref,null),!1!==t&&null!=e.__preactattr_||h(e),B(e))}function B(e){for(e=e.lastChild;e;){var t=e.previousSibling;P(e,!0),e=t}}function L(e,t,n){var o;for(o in n)t&&null!=t[o]||null==n[o]||y(e,o,n[o],n[o]=void 0,C);for(o in t)"children"===o||"innerHTML"===o||o in n&&t[o]===("value"===o||"checked"===o?e[o]:n[o])||y(e,o,n[o],n[o]=t[o],C)}var M=[];function T(e,t,n){var o,r=M.length;for(e.prototype&&e.prototype.render?(o=new e(t,n),R.call(o,t,n)):((o=new R(t,n)).constructor=e,o.render=E);r--;)if(M[r].constructor===e)return o.nextBase=M[r].nextBase,M.splice(r,1),o;return o}function E(e,t,n){return this.constructor(e,n)}function W(e,n,o,r,i){e._disable||(e._disable=!0,e.__ref=n.ref,e.__key=n.key,delete n.ref,delete n.key,void 0===e.constructor.getDerivedStateFromProps&&(!e.base||i?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(n,r)),r&&r!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=r),e.prevProps||(e.prevProps=e.props),e.props=n,e._disable=!1,0!==o&&(1!==o&&!1===t.syncComponentUpdates&&e.base?u(e):D(e,1,i)),l(e.__ref,e))}function D(e,n,o,r){if(!e._disable){var l,a,s,p=e.props,c=e.state,u=e.context,d=e.prevProps||p,f=e.prevState||c,v=e.prevContext||u,_=e.base,h=e.nextBase,y=_||h,b=e._component,C=!1,N=v;if(e.constructor.getDerivedStateFromProps&&(c=i(i({},c),e.constructor.getDerivedStateFromProps(p,c)),e.state=c),_&&(e.props=d,e.state=f,e.context=v,2!==n&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(p,c,u)?C=!0:e.componentWillUpdate&&e.componentWillUpdate(p,c,u),e.props=p,e.state=c,e.context=u),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!C){l=e.render(p,c,u),e.getChildContext&&(u=i(i({},u),e.getChildContext())),_&&e.getSnapshotBeforeUpdate&&(N=e.getSnapshotBeforeUpdate(d,f));var S,U,B=l&&l.nodeName;if("function"==typeof B){var L=m(l);(a=b)&&a.constructor===B&&L.key==a.__key?W(a,L,1,u,!1):(S=a,e._component=a=T(B,L,u),a.nextBase=a.nextBase||h,a._parentComponent=e,W(a,L,0,u,!1),D(a,1,o,!0)),U=a.base}else s=y,(S=b)&&(s=e._component=null),(y||1===n)&&(s&&(s._component=null),U=k(s,l,u,o||!_,y&&y.parentNode,!0));if(y&&U!==y&&a!==b){var M=y.parentNode;M&&U!==M&&(M.replaceChild(U,y),S||(y._component=null,P(y,!1)))}if(S&&A(S),e.base=U,U&&!r){for(var E=e,V=e;V=V._parentComponent;)(E=V).base=U;U._component=E,U._componentConstructor=E.constructor}}for(!_||o?x.push(e):C||(e.componentDidUpdate&&e.componentDidUpdate(d,f,N),t.afterUpdate&&t.afterUpdate(e));e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);g||r||w()}}function V(e,t,n,o){for(var r=e&&e._component,i=r,l=e,a=r&&e._componentConstructor===t.nodeName,s=a,p=m(t);r&&!s&&(r=r._parentComponent);)s=r.constructor===t.nodeName;return r&&s&&(!o||r._component)?(W(r,p,3,n,o),e=r.base):(i&&!a&&(A(i),e=l=null),r=T(t.nodeName,p,n),e&&!r.nextBase&&(r.nextBase=e,l=null),W(r,p,1,n,o),e=r.base,l&&e!==l&&(l._component=null,P(l,!1))),e}function A(e){t.beforeUnmount&&t.beforeUnmount(e);var n=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var o=e._component;o?A(o):n&&(null!=n.__preactattr_&&l(n.__preactattr_.ref,null),e.nextBase=n,h(n),M.push(e),B(n)),l(e.__ref,null)}function R(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[]}function H(e,t,n){return k(n,e,{},!1,t,!1)}function j(){return{}}i(R.prototype,{setState:function(e,t){this.prevState||(this.prevState=this.state),this.state=i(i({},this.state),"function"==typeof e?e(this.state,this.props):e),t&&this._renderCallbacks.push(t),u(this)},forceUpdate:function(e){e&&this._renderCallbacks.push(e),D(this,2)},render:function(){}});var z={h:r,createElement:r,cloneElement:s,createRef:j,Component:R,render:H,rerender:d,options:t},F=z;exports.default=F;
},{}],"WwVf":[function(require,module,exports) {
var t=require("preact");function n(t,n){for(var r in n)t[r]=n[r];return t}function r(t){this.getChildContext=function(){return{store:t.store}}}r.prototype.render=function(t){return t.children[0]},exports.connect=function(r,e){var o;return"function"!=typeof r&&("string"==typeof(o=r||[])&&(o=o.split(/\s*,\s*/)),r=function(t){for(var n={},r=0;r<o.length;r++)n[o[r]]=t[o[r]];return n}),function(o){function i(i,u){var c=this,f=u.store,s=r(f?f.getState():{},i),a=e?function(t,n){"function"==typeof t&&(t=t(n));var r={};for(var e in t)r[e]=n.action(t[e]);return r}(e,f):{store:f},p=function(){var t=r(f?f.getState():{},c.props);for(var n in t)if(t[n]!==s[n])return s=t,c.setState(null);for(var e in s)if(!(e in t))return s=t,c.setState(null)};this.componentDidMount=function(){f.subscribe(p)},this.componentWillUnmount=function(){f.unsubscribe(p)},this.render=function(r){return t.h(o,n(n(n({},a),r),s))}}return(i.prototype=new t.Component).constructor=i}},exports.Provider=r;
},{"preact":"qWa+"}],"v/Kv":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getCurrentUrl=v,exports.route=m,exports.default=exports.Link=exports.Route=exports.Router=exports.subscribers=void 0;var t=require("preact"),e={};function n(t,e){for(var n in e)t[n]=e[n];return t}function r(t,n,r){var o,i=/(?:\?([^#]*))?(#.*)?$/,a=t.match(i),p={};if(a&&a[1])for(var s=a[1].split("&"),c=0;c<s.length;c++){var f=s[c].split("=");p[decodeURIComponent(f[0])]=decodeURIComponent(f.slice(1).join("="))}t=u(t.replace(i,"")),n=u(n||"");for(var l=Math.max(t.length,n.length),h=0;h<l;h++)if(n[h]&&":"===n[h].charAt(0)){var d=n[h].replace(/(^\:|[+*?]+$)/g,""),g=(n[h].match(/[+*?]+$/)||e)[0]||"",v=~g.indexOf("+"),m=~g.indexOf("*"),y=t[h]||"";if(!y&&!m&&(g.indexOf("?")<0||v)){o=!1;break}if(p[d]=decodeURIComponent(y),v||m){p[d]=t.slice(h).map(decodeURIComponent).join("/");break}}else if(n[h]!==t[h]){o=!1;break}return(!0===r.default||!1!==o)&&p}function o(t,e){return t.rank<e.rank?1:t.rank>e.rank?-1:t.index-e.index}function i(t,e){return t.index=e,t.rank=s(t),t.attributes}function u(t){return t.replace(/(^\/+|\/+$)/g,"").split("/")}function a(t){return":"==t.charAt(0)?1+"*+?".indexOf(t.charAt(t.length-1))||4:5}function p(t){return u(t).map(a).join("")}function s(t){return t.attributes.default?0:p(t.attributes.path)}var c=null,f=[],l=[];exports.subscribers=l;var h={};function d(t){return null!=t.__preactattr_||"undefined"!=typeof Symbol&&null!=t[Symbol.for("preactattr")]}function g(t,e){void 0===e&&(e="push"),c&&c[e]?c[e](t):"undefined"!=typeof history&&history[e+"State"]&&history[e+"State"](null,null,t)}function v(){var t;return""+((t=c&&c.location?c.location:c&&c.getCurrentLocation?c.getCurrentLocation():"undefined"!=typeof location?location:h).pathname||"")+(t.search||"")}function m(t,e){return void 0===e&&(e=!1),"string"!=typeof t&&t.url&&(e=t.replace,t=t.url),y(t)&&g(t,e?"replace":"push"),b(t)}function y(t){for(var e=f.length;e--;)if(f[e].canRoute(t))return!0;return!1}function b(t){for(var e=!1,n=0;n<f.length;n++)!0===f[n].routeTo(t)&&(e=!0);for(var r=l.length;r--;)l[r](t);return e}function x(t){if(t&&t.getAttribute){var e=t.getAttribute("href"),n=t.getAttribute("target");if(e&&e.match(/^\//g)&&(!n||n.match(/^_?self$/i)))return m(e)}}function C(t){if(0==t.button)return x(t.currentTarget||t.target||this),R(t)}function R(t){return t&&(t.stopImmediatePropagation&&t.stopImmediatePropagation(),t.stopPropagation&&t.stopPropagation(),t.preventDefault()),!1}function k(t){if(!(t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||0!==t.button)){var e=t.target;do{if("A"===String(e.nodeName).toUpperCase()&&e.getAttribute("href")&&d(e)){if(e.hasAttribute("native"))return;if(x(e))return R(t)}}while(e=e.parentNode)}}var U=!1;function _(){U||("function"==typeof addEventListener&&(c||addEventListener("popstate",function(){b(v())}),addEventListener("click",k)),U=!0)}var A=function(e){function u(t){e.call(this,t),t.history&&(c=t.history),this.state={url:t.url||v()},_()}return e&&(u.__proto__=e),u.prototype=Object.create(e&&e.prototype),u.prototype.constructor=u,u.prototype.shouldComponentUpdate=function(t){return!0!==t.static||(t.url!==this.props.url||t.onChange!==this.props.onChange)},u.prototype.canRoute=function(t){return this.getMatchingChildren(this.props.children,t,!1).length>0},u.prototype.routeTo=function(t){return this._didRoute=!1,this.setState({url:t}),this.updating?this.canRoute(t):(this.forceUpdate(),this._didRoute)},u.prototype.componentWillMount=function(){f.push(this),this.updating=!0},u.prototype.componentDidMount=function(){var t=this;c&&(this.unlisten=c.listen(function(e){t.routeTo(""+(e.pathname||"")+(e.search||""))})),this.updating=!1},u.prototype.componentWillUnmount=function(){"function"==typeof this.unlisten&&this.unlisten(),f.splice(f.indexOf(this),1)},u.prototype.componentWillUpdate=function(){this.updating=!0},u.prototype.componentDidUpdate=function(){this.updating=!1},u.prototype.getMatchingChildren=function(e,u,a){return e.filter(i).sort(o).map(function(e){var o=r(u,e.attributes.path,e.attributes);if(o){if(!1!==a){var i={url:u,matches:o};return n(i,o),delete i.ref,delete i.key,(0,t.cloneElement)(e,i)}return e}}).filter(Boolean)},u.prototype.render=function(t,e){var n=t.children,r=t.onChange,o=e.url,i=this.getMatchingChildren(n,o,!0),u=i[0]||null;this._didRoute=!!u;var a=this.previousUrl;return o!==a&&(this.previousUrl=o,"function"==typeof r&&r({router:this,url:o,previous:a,active:i,current:u})),u},u}(t.Component);exports.Router=A;var L=function(e){return(0,t.h)("a",n({onClick:C},e))};exports.Link=L;var M=function(e){return(0,t.h)(e.component,e)};exports.Route=M,A.subscribers=l,A.getCurrentUrl=v,A.route=m,A.Router=A,A.Route=M,A.Link=L;var O=A;exports.default=O;
},{"preact":"qWa+"}],"HKnO":[function(require,module,exports) {
"use strict";var t=function(){};module.exports=t;
},{}],"/2PA":[function(require,module,exports) {
"use strict";var e=function(e,r,n,i,o,a,t,f){if(!e){var s;if(void 0===r)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var d=[n,i,o,a,t,f],l=0;(s=new Error(r.replace(/%s/g,function(){return d[l++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}};module.exports=e;
},{}],"7jmQ":[function(require,module,exports) {
"use strict";function t(t){return"/"===t.charAt(0)}function e(t,e){for(var r=e,n=r+1,o=t.length;n<o;r+=1,n+=1)t[r]=t[n];t.pop()}function r(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=r&&r.split("/")||[],i=n&&n.split("/")||[],f=r&&t(r),l=n&&t(n),u=f||l;if(r&&t(r)?i=o:o.length&&(i.pop(),i=i.concat(o)),!i.length)return"/";var a=void 0;if(i.length){var s=i[i.length-1];a="."===s||".."===s||""===s}else a=!1;for(var v=0,h=i.length;h>=0;h--){var p=i[h];"."===p?e(i,h):".."===p?(e(i,h),v++):v&&(e(i,h),v--)}if(!u)for(;v--;v)i.unshift("..");!u||""===i[0]||i[0]&&t(i[0])||i.unshift("");var c=i.join("/");return a&&"/"!==c.substr(-1)&&(c+="/"),c}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=r;exports.default=n;
},{}],"82Ce":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function r(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every(function(e,t){return r(e,n[t])});var o=void 0===t?"undefined":e(t);if(o!==(void 0===n?"undefined":e(n)))return!1;if("object"===o){var u=t.valueOf(),f=n.valueOf();if(u!==t||f!==n)return r(u,f);var i=Object.keys(t),y=Object.keys(n);return i.length===y.length&&i.every(function(e){return r(t[e],n[e])})}return!1}var t=r;exports.default=t;
},{}],"BfVl":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=exports.addLeadingSlash=function(t){return"/"===t.charAt(0)?t:"/"+t},r=exports.stripLeadingSlash=function(t){return"/"===t.charAt(0)?t.substr(1):t},e=exports.hasBasename=function(t,r){return new RegExp("^"+r+"(\\/|\\?|#|$)","i").test(t)},s=exports.stripBasename=function(t,r){return e(t,r)?t.substr(r.length):t},a=exports.stripTrailingSlash=function(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t},n=exports.parsePath=function(t){var r=t||"/",e="",s="",a=r.indexOf("#");-1!==a&&(s=r.substr(a),r=r.substr(0,a));var n=r.indexOf("?");return-1!==n&&(e=r.substr(n),r=r.substr(0,n)),{pathname:r,search:"?"===e?"":e,hash:"#"===s?"":s}},u=exports.createPath=function(t){var r=t.pathname,e=t.search,s=t.hash,a=r||"/";return e&&"?"!==e&&(a+="?"===e.charAt(0)?e:"?"+e),s&&"#"!==s&&(a+="#"===s.charAt(0)?s:"#"+s),a};
},{}],"wEgP":[function(require,module,exports) {
"use strict";exports.__esModule=!0,exports.locationsAreEqual=exports.createLocation=void 0;var a=Object.assign||function(a){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(a[r]=t[r])}return a},e=require("resolve-pathname"),t=s(e),r=require("value-equal"),h=s(r),n=require("./PathUtils");function s(a){return a&&a.__esModule?a:{default:a}}var o=exports.createLocation=function(e,r,h,s){var o=void 0;"string"==typeof e?(o=(0,n.parsePath)(e)).state=r:(void 0===(o=a({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==r&&void 0===o.state&&(o.state=r));try{o.pathname=decodeURI(o.pathname)}catch(c){throw c instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):c}return h&&(o.key=h),s?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=(0,t.default)(o.pathname,s.pathname)):o.pathname=s.pathname:o.pathname||(o.pathname="/"),o},c=exports.locationsAreEqual=function(a,e){return a.pathname===e.pathname&&a.search===e.search&&a.hash===e.hash&&a.key===e.key&&(0,h.default)(a.state,e.state)};
},{"resolve-pathname":"7jmQ","value-equal":"82Ce","./PathUtils":"BfVl"}],"jaaL":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var n=require("warning"),t=r(n);function r(n){return n&&n.__esModule?n:{default:n}}var e=function(){var n=null,r=[];return{setPrompt:function(r){return(0,t.default)(null==n,"A history supports only one prompt at a time"),n=r,function(){n===r&&(n=null)}},confirmTransitionTo:function(r,e,o,u){if(null!=n){var i="function"==typeof n?n(r,e):n;"string"==typeof i?"function"==typeof o?o(i,u):((0,t.default)(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),u(!0)):u(!1!==i)}else u(!0)},appendListener:function(n){var t=!0,e=function(){t&&n.apply(void 0,arguments)};return r.push(e),function(){t=!1,r=r.filter(function(n){return n!==e})}},notifyListeners:function(){for(var n=arguments.length,t=Array(n),e=0;e<n;e++)t[e]=arguments[e];r.forEach(function(n){return n.apply(void 0,t)})}}};exports.default=e;
},{"warning":"HKnO"}],"LUqp":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=exports.canUseDOM=!("undefined"==typeof window||!window.document||!window.document.createElement),n=exports.addEventListener=function(e,n,t){return e.addEventListener?e.addEventListener(n,t,!1):e.attachEvent("on"+n,t)},t=exports.removeEventListener=function(e,n,t){return e.removeEventListener?e.removeEventListener(n,t,!1):e.detachEvent("on"+n,t)},o=exports.getConfirmation=function(e,n){return n(window.confirm(e))},r=exports.supportsHistory=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},i=exports.supportsPopStateOnHashChange=function(){return-1===window.navigator.userAgent.indexOf("Trident")},s=exports.supportsGoWithoutReloadUsingHash=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},d=exports.isExtraneousPopstateEvent=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")};
},{}],"CfSE":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},e=require("warning"),n=d(e),a=require("invariant"),o=d(a),i=require("./LocationUtils"),r=require("./PathUtils"),c=require("./createTransitionManager"),s=d(c),h=require("./DOMUtils");function d(t){return t&&t.__esModule?t:{default:t}}var l="hashchange",u={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+(0,r.stripLeadingSlash)(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:r.stripLeadingSlash,decodePath:r.addLeadingSlash},slash:{encodePath:r.addLeadingSlash,decodePath:r.addLeadingSlash}},f=function(){var t=window.location.href,e=t.indexOf("#");return-1===e?"":t.substring(e+1)},v=function(t){return window.location.hash=t},g=function(t){var e=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,e>=0?e:0)+"#"+t)},P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.default)(h.canUseDOM,"Hash history needs a DOM");var a=window.history,c=(0,h.supportsGoWithoutReloadUsingHash)(),d=e.getUserConfirmation,P=void 0===d?h.getConfirmation:d,p=e.hashType,w=void 0===p?"slash":p,L=e.basename?(0,r.stripTrailingSlash)((0,r.addLeadingSlash)(e.basename)):"",m=u[w],O=m.encodePath,b=m.decodePath,y=function(){var t=b(f());return(0,n.default)(!L||(0,r.hasBasename)(t,L),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+t+'" to begin with "'+L+'".'),L&&(t=(0,r.stripBasename)(t,L)),(0,i.createLocation)(t)},H=(0,s.default)(),S=function(e){t(I,e),I.length=a.length,H.notifyListeners(I.location,I.action)},U=!1,x=null,T=function(){var t=f(),e=O(t);if(t!==e)g(e);else{var n=y(),a=I.location;if(!U&&(0,i.locationsAreEqual)(a,n))return;if(x===(0,r.createPath)(n))return;x=null,E(n)}},E=function(t){if(U)U=!1,S();else{H.confirmTransitionTo(t,"POP",P,function(e){e?S({action:"POP",location:t}):q(t)})}},q=function(t){var e=I.location,n=R.lastIndexOf((0,r.createPath)(e));-1===n&&(n=0);var a=R.lastIndexOf((0,r.createPath)(t));-1===a&&(a=0);var o=n-a;o&&(U=!0,_(o))},M=f(),A=O(M);M!==A&&g(A);var C=y(),R=[(0,r.createPath)(C)],_=function(t){(0,n.default)(c,"Hash history go(n) causes a full page reload in this browser"),a.go(t)},k=0,B=function(t){1===(k+=t)?(0,h.addEventListener)(window,l,T):0===k&&(0,h.removeEventListener)(window,l,T)},D=!1,I={length:a.length,action:"POP",location:C,createHref:function(t){return"#"+O(L+(0,r.createPath)(t))},push:function(t,e){(0,n.default)(void 0===e,"Hash history cannot push state; it is ignored");var a=(0,i.createLocation)(t,void 0,void 0,I.location);H.confirmTransitionTo(a,"PUSH",P,function(t){if(t){var e=(0,r.createPath)(a),o=O(L+e);if(f()!==o){x=e,v(o);var i=R.lastIndexOf((0,r.createPath)(I.location)),c=R.slice(0,-1===i?0:i+1);c.push(e),R=c,S({action:"PUSH",location:a})}else(0,n.default)(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),S()}})},replace:function(t,e){(0,n.default)(void 0===e,"Hash history cannot replace state; it is ignored");var a=(0,i.createLocation)(t,void 0,void 0,I.location);H.confirmTransitionTo(a,"REPLACE",P,function(t){if(t){var e=(0,r.createPath)(a),n=O(L+e);f()!==n&&(x=e,g(n));var o=R.indexOf((0,r.createPath)(I.location));-1!==o&&(R[o]=e),S({action:"REPLACE",location:a})}})},go:_,goBack:function(){return _(-1)},goForward:function(){return _(1)},block:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=H.setPrompt(t);return D||(B(1),D=!0),function(){return D&&(D=!1,B(-1)),e()}},listen:function(t){var e=H.appendListener(t);return B(1),function(){B(-1),e()}}};return I};exports.default=P;
},{"warning":"HKnO","invariant":"/2PA","./LocationUtils":"wEgP","./PathUtils":"BfVl","./createTransitionManager":"jaaL","./DOMUtils":"LUqp"}],"NMLB":[function(require,module,exports) {
"use strict";function n(n,t){for(var r in t)n[r]=t[r];return n}function t(t){var r=[];function e(n){for(var t=[],e=0;e<r.length;e++)r[e]===n?n=null:t.push(r[e]);r=t}function u(e,u,o){t=u?e:n(n({},t),e);for(var i=r,f=0;f<i.length;f++)i[f](t,o)}return t=t||{},{action:function(n){function r(t){u(t,!1,n)}return function(){for(var e=arguments,u=[t],o=0;o<arguments.length;o++)u.push(e[o]);var i=n.apply(this,u);if(null!=i)return i.then?i.then(r):r(i)}},setState:u,subscribe:function(n){return r.push(n),function(){e(n)}},unsubscribe:e,getState:function(){return t}}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=t;
},{}],"NJMh":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.setTasks=exports.setRooms=exports.setUsers=exports.setIsFetching=exports.undoFinishedTask=exports.addFinishedTask=exports.clearState=exports.setUsernamePassword=exports.default=void 0;var t=e(require("unistore"));function e(t){return t&&t.__esModule?t:{default:t}}function s(t){return a(t)||n(t)||r()}function r(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function n(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function a(t){if(Array.isArray(t)){for(var e=0,s=new Array(t.length);e<t.length;e++)s[e]=t[e];return s}}var o={username:null,password:null,isFetching:!1,route:"/",users:[],tasks:[],rooms:[],lastFinishedTasks:[]},i=localStorage.getItem("state"),u=(0,t.default)(i?JSON.parse(i):o);u.subscribe(function(t){return localStorage.setItem("state",JSON.stringify(t))});var c=u;exports.default=c;var d=function(t,e,s){return Object.assign({},t,{password:s,username:e})};exports.setUsernamePassword=d;var l=function(){return u.setState(o)};exports.clearState=l;var p=function(t,e){var r=e._id;return Object.assign({},t,{lastFinishedTasks:[r].concat(s(t.lastFinishedTasks))})};exports.addFinishedTask=p;var f=function(t){return Object.assign({},t,{lastFinishedTasks:t.lastFinishedTasks.slice(1)})};exports.undoFinishedTask=f;var x=function(t){return u.setState({isFetching:t})};exports.setIsFetching=x;var h=function(t){return u.setState({users:t})};exports.setUsers=h;var v=function(t){return u.setState({rooms:t})};exports.setRooms=v;var g=function(t){return u.setState({tasks:t})};exports.setTasks=g;
},{"unistore":"NMLB"}],"NgIX":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=i,exports.keyframes=s;var r=0,e=document.head.appendChild(document.createElement("style")).sheet;function n(r){return r.replace(/[A-Z]/g,"-<script src=\"src\/client\/index\.tsx\"><\/script>").toLowerCase()}function t(r){e.insertRule(r,e.cssRules.length)}function u(e){var n="p"+r++;return a(e,"."+n).forEach(t),n}function o(r,e){return e+"{"+r+"}"}function a(r,e,t){var u=[""];for(var i in t=t||0,r){var s=r[i];i=n(i),s.sub||Array.isArray(s)?(s=Array.isArray(s)?s:[s]).forEach(function(r){return u[0]+=i+":"+r+";"}):(/^(:|>|\.|\*)/.test(i)&&(i=e+i),i=i.replace(/&/g,e),u.push(o(a(s,e,!/^@/.test(i)).join(""),i)))}return t||(u[0]=o(u[0],e)),u}function i(r){return function(e){var n={};return function(t){return function(o,a){a=(o=o||{}).children||a;var i="function"==typeof t?t(o):t,s=JSON.stringify(i);return n[s]||(n[s]=u(i)),o.class=[o.class,n[s]].filter(Boolean).join(" "),r(e,o,a)}}}}function s(e){var n="p"+r++;return t(o(a(e,n,1).join(""),"@keyframes "+n)),n}
},{}],"aYnU":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.animation=exports.common=exports.default=void 0;var e=require("preact"),r=t(require("picostyle"));function t(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,t):{};o.get||o.set?Object.defineProperty(r,t,o):r[t]=e[t]}return r.default=e,r}var o=(0,r.default)(e.h);exports.default=o;var a={button:{"-webkit-appearance":"none","-moz-appearance":"none","box-sizing":"border-box"}};exports.common=a;var n=r.keyframes;exports.animation=n;
},{"preact":"qWa+","picostyle":"NgIX"}],"uzoe":[function(require,module,exports) {
"use strict";function e(e,t){var r=e+" "+t;return e>1&&(r+="s"),r}Object.defineProperty(exports,"__esModule",{value:!0}),exports.getRelativeHumanString=o,exports.getIsOverDue=exports.DAY_FACTOR=exports.PERIOD=void 0;var t=14;exports.PERIOD=t;var r=1/864e5;exports.DAY_FACTOR=r;var n=function(e){return(Date.now()-e)*r>2*t};function o(t){var n=new Date(t),o=new Date;return(o.getTime()-n.getTime())*r>365?e(o.getFullYear()-n.getFullYear(),"year"):(o.getTime()-n.getTime())*r>30?e(Math.round((o.getTime()-n.getTime())*r/30),"month"):Math.round((o.getTime()-n.getTime())*r)>=1?e(Math.round((o.getTime()-n.getTime())*r),"day"):o.getHours()>n.getHours()?e(o.getHours()-n.getHours(),"hour"):o.getMinutes()>n.getMinutes()?e(o.getMinutes()-n.getMinutes(),"minute"):o.getSeconds()>n.getSeconds()?e(o.getSeconds()-n.getSeconds(),"second"):"Just now"}exports.getIsOverDue=n;
},{}],"JOjF":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getTextColorByTime=exports.getBackgroundColorByTime=exports.Color=void 0;var r,e=require("../time");exports.Color=r,function(r){r.Red0="#FF3B3B",r.Red1="#FF8F8F",r.Red2="#FF6161",r.Blue0="#2EC5C5",r.Blue1="#80E5E5",r.Blue2="#51D4D4",r.Green0="#B6F539",r.Green1="#D6FB8D",r.Green2="#C5F85F",r.Gray0="#666666",r.Gray1="#aaaaaa",r.Gray2="#dddddd"}(r||(exports.Color=r={}));var t=7,a=255/t,o=function(r){var o=Math.round(e.DAY_FACTOR*(Date.now()-r));if(o>=2*t)return"rgb(0,0,0)";if(o>t){var n=Math.max(0,Math.min(255,o*a),0),i=Math.max(0,Math.min(255,(t-o)*a));return"rgb(".concat(n,",").concat(i,",0)")}var c=Math.max(0,Math.min(255,o*a),0),u=Math.max(0,Math.min(255,(t-o)*a));return"rgb(".concat(c,",").concat(u,",0)")};exports.getBackgroundColorByTime=o;var n=function(r){var o=e.DAY_FACTOR*(Date.now()-r);if(o>t)return"rgb(255,255,255)";var n=Math.max(0,Math.min(255,o*a),0),i=Math.max(0,Math.min(255,(t-o)*a));return"rgb(".concat(i,",255,").concat(n,")")};exports.getTextColorByTime=n;
},{"../time":"uzoe"}],"qZPz":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getAllUsers=d,exports.getAllRooms=l,exports.getAllTasks=f,exports.undoTask=p,exports.finishTask=h,exports.createTaskAdmin=y,exports.destroyTaskAdmin=m,exports.updateTaskAdmin=g;var e=t(require("../store"));function t(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}function r(e){return o(e)||s(e)||n()}function n(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function s(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function o(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}var a="https://freshdb.herokuapp.com",i=function(){return(0,e.setIsFetching)(!1)},u=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{headers:{}},n=arguments.length>2?arguments[2]:void 0;if((0,e.setIsFetching)(!0),!n){var s=e.default.getState(),o=s.username,u=s.password;if(!o||!u)return Promise.reject();r.headers["x-username"]=o.toLowerCase(),r.headers["x-password"]=u}return fetch("".concat(a).concat(t),r).finally(i)},c=function(e){if(200===e.status)return e.json();throw new Error(e.message)};function d(){return u("/users",void 0,!0).then(c).then(e.setUsers)}function l(){return u("/rooms").then(c).then(e.setRooms)}function f(){return u("/tasks").then(c).then(function(e){return e.sort(function(e,t){return e.timeLastCleaned-t.timeLastCleaned})}).then(e.setTasks)}function p(e){var t=e._id,r=e.history,n={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({history:r.slice(1),userLastCleaned:r[0].userLastCleaned,timeLastCleaned:r[0].timeLastCleaned})};return u("/tasks/".concat(t),n)}function h(t){var n=t._id,s=t.history,o=t.timeLastCleaned,a=t.userLastCleaned,i=Date.now(),c={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({history:[{timeLastCleaned:o,userLastCleaned:a}].concat(r(s)),timeLastCleaned:i,userLastCleaned:e.default.getState().username})};return u("/tasks/".concat(n),c)}function y(){return u("/tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:"{}"})}function m(e){var t=e._id;return u("/tasks/".concat(t),{method:"DELETE",headers:{}})}function g(e){var t=e._id,r=Object.assign({},e);delete r._id;var n={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)};return u("/tasks/".concat(t),n)}
},{"../store":"NJMh"}],"YmhT":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("preact"),t=require("preact-router"),n=require("unistore/preact"),o=l(require("./style")),r=require("./colors"),i=require("../store"),a=require("../network/db");function l(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function d(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),e}function f(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?p(e):t}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var g="3em",k=(0,o.default)("div")({display:"block",width:"100%",height:g}),m=(0,o.default)("div")({position:"fixed",top:0,left:0,display:"block",width:"100%",background:r.Color.Blue1,height:g,"border-bottom":"1px solid ".concat(r.Color.Blue2)}),O=(0,o.default)("div")(Object.assign({},o.common.button,{display:"inline-block",height:"100%",background:r.Color.Blue0,float:"right",padding:"0 1em","line-height":g})),v=(0,o.default)("div")(Object.assign({},o.common.button,{display:"inline-block",height:"100%",background:r.Color.Blue0,padding:"0 1em","line-height":g})),C=(0,o.default)("div")(Object.assign({},o.common.button,{float:"right",display:"inline-block",height:"100%",background:r.Color.Blue2,padding:"0 1em","line-height":g})),j=(0,o.default)("span")({"margin-left":"1em"}),w=(0,o.default)("span")({"line-height":g,"padding-left":"1em","font-style":"italic"}),T=(0,o.animation)({"0%":{transform:"translate(-50%,-50%) rotate(0deg)"},"100%":{transform:"translate(-50%,-50%) rotate(360deg)"}}),S=(0,o.default)("div")({position:"fixed",top:"0",left:"0",right:"0",bottom:"0",background:"rgba(255,255,255,0.8)",":before":{display:"block",content:'" "',animation:"".concat(T," 0.5s infinite linear"),position:"absolute",top:"50%",left:"50%",border:"2em dashed ".concat(r.Color.Blue2),"border-radius":"6em",width:"6em",height:"6em"}}),_=/\/rooms|\/admin/,P=function(n){function o(){var e;return u(this,o),(e=f(this,h(o).apply(this,arguments))).onClickBack=function(){return history.back()},e.onClickUndo=function(){var t=e.props.tasks.find(function(t){return t._id===e.props.lastFinishedTasks[0]});t&&(0,a.undoTask)(t).then(e.props.undoFinishedTask).then(a.getAllTasks).then(e.props.setTasks)},e.onClickSignOut=function(){e.props.clearState(),(0,t.route)("/")},e}return b(o,e.Component),d(o,[{key:"render",value:function(){var t,n,o,r=this.props,i=r.route,a=r.username,l=r.isFetching;return a&&_.test(location.hash.slice(1))&&(t=(0,e.h)(O,{onClick:this.onClickSignOut},"Sign out")),/^clean/.test(i)&&(n=(0,e.h)(v,{onClick:this.onClickBack},"⬅"),o=(0,e.h)(C,{onClick:this.onClickUndo},"⟲")),(0,e.h)(k,null,(0,e.h)(m,{style:"z-index:9001"},n,(0,e.h)(w,{title:"2019-01-23T20:53:57.386Z"},"Fresh!"),a?(0,e.h)(j,null,"Signed in as ",a):(0,e.h)(j,null,"Welcome, let's get it cleaned up!"),t,o),l&&(0,e.h)(S,{style:"z-index:9002"}))}}]),o}(),F=(0,n.connect)("isFetching,tasks,lastFinishedTasks,username,route",{clearState:i.clearState,undoFinishedTask:i.undoFinishedTask,addFinishedTask:i.addFinishedTask,setTasks:i.setTasks})(P);exports.default=F;
},{"preact":"qWa+","preact-router":"v/Kv","unistore/preact":"WwVf","./style":"aYnU","./colors":"JOjF","../store":"NJMh","../network/db":"qZPz"}],"EPn/":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("preact"),r=require("preact-router"),t=require("unistore/preact"),o=s(require("../style")),n=require("../../store"),u=require("../colors"),i=require("../../network/db");function s(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,t):{};o.get||o.set?Object.defineProperty(r,t,o):r[t]=e[t]}return r.default=e,r}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function p(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e,r,t){return r&&p(e.prototype,r),t&&p(e,t),e}function f(e,r){return!r||"object"!==c(r)&&"function"!=typeof r?y(e):r}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&m(e,r)}function m(e,r){return(m=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e})(e,r)}var v=(0,o.default)("div")(Object.assign({},o.common.button,{background:u.Color.Green0,display:"block","font-size":"2em",padding:"0.5em",margin:"0.5em auto"})),h=function(t){function o(){var e;return a(this,o),(e=f(this,b(o).apply(this,arguments))).onClickUser=function(t){var o=t.currentTarget.innerText,n=prompt("Enter password","");n?(e.props.setUsernamePassword(o,n),"Admin"===o?(0,r.route)("admin"):(0,r.route)("rooms")):alert("Cannot continue! No password was given!")},e}return d(o,e.Component),l(o,[{key:"componentWillMount",value:function(){this.props.username&&(0,r.route)("rooms",!0),0===this.props.users.length&&(0,i.getAllUsers)()}},{key:"render",value:function(){var r=this,t=this.props.users;return t.length>0?(0,e.h)("div",null,t.map(function(t){var o=t.name;return(0,e.h)(v,{onClick:r.onClickUser,style:"Admin"===o?"background: ".concat(u.Color.Red0):""},o)})):"Loading users..."}}]),o}(),O=(0,t.connect)("users,username",{setUsernamePassword:n.setUsernamePassword})(h);exports.default=O;
},{"preact":"qWa+","preact-router":"v/Kv","unistore/preact":"WwVf","../style":"aYnU","../../store":"NJMh","../colors":"JOjF","../../network/db":"qZPz"}],"TiW6":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("preact"),t=i(require("../style")),n=require("../../time"),o=require("../colors"),r=require("../../network/db");function i(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function c(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}function s(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?f(e):t}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var m=(0,t.default)("table")({width:"100%","border-collapse":"collapse"}),y="0.25em",b=(0,t.default)("th")({background:o.Color.Blue1,color:o.Color.Blue0,"font-size":"1.8em",padding:y,"text-align":"center"}),g=(0,t.default)("td")({"font-size":"1em","font-weight":"bold","max-width":"50%",padding:y}),k=(0,t.default)("td")({"font-size":"1em","text-align":"right","min-width":"6em",padding:y}),C=(0,t.default)("td")({"font-size":"1em","text-align":"right","font-style":"italic",width:"3em",padding:y}),w=(0,t.default)("tr")({th:{"border-top":"1px solid ".concat(o.Color.Blue0)}}),v=function(t){function i(){var t;return l(this,i),(t=s(this,p(i).apply(this,arguments))).onClickFinish=function(e){return(0,r.finishTask)(e).then(t.props.updateTasks).then(function(){return t.props.addFinishedTask(e)})},t.onClickName=function(e){e.description&&alert("More info:\n".concat(e.description))},t.getTaskRow=function(r){return(0,e.h)(w,{style:{animation:(0,n.getIsOverDue)(r.timeLastCleaned)?"blink 2s infinite steps(1)":"",background:(0,o.getBackgroundColorByTime)(r.timeLastCleaned),color:(0,o.getTextColorByTime)(r.timeLastCleaned)}},(0,e.h)(b,{onClick:function(){return t.onClickFinish(r)}},"✕"),(0,e.h)(g,{onClick:function(){return t.onClickName(r)}},r.name),(0,e.h)(k,null,(0,n.getRelativeHumanString)(r.timeLastCleaned)," ago"),(0,e.h)(C,null,r.userLastCleaned))},t}return d(i,e.Component),c(i,[{key:"render",value:function(){var t=this.props,n=t.tasks,o=t.name;return(0,e.h)("div",null,(0,e.h)("h3",null,o," - ",n.length," tasks"),(0,e.h)(m,null,n.map(this.getTaskRow)))}}]),i}(),O=v;exports.default=O;
},{"preact":"qWa+","../style":"aYnU","../../time":"uzoe","../colors":"JOjF","../../network/db":"qZPz"}],"JGMd":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("preact"),t=require("preact-router"),r=require("unistore/preact"),n=s(require("../style")),o=s(require("./TaskList")),i=require("../../network/db"),u=require("../../store");function s(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t,r){return t&&f(e.prototype,t),r&&f(e,r),e}function p(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?d(e):t}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var k=(0,n.default)("div")({padding:"0 1em"}),m=function(r){function n(){var e;return c(this,n),(e=p(this,y(n).apply(this,arguments))).onClickBack=function(){return(0,t.route)("/rooms")},e}return b(n,e.Component),l(n,[{key:"componentWillMount",value:function(){(0,i.getAllTasks)()}},{key:"render",value:function(){var t=this.props,r=t.tasks,n=t.room,u=r.filter(function(e){return e.room===n});return(0,e.h)(k,null,(0,e.h)("h2",null,n),(0,e.h)(o.default,{updateTasks:i.getAllTasks,addFinishedTask:this.props.addFinishedTask,name:"Quick clean",tasks:u.filter(function(e){return!e.isDeep})}),(0,e.h)(o.default,{updateTasks:i.getAllTasks,addFinishedTask:this.props.addFinishedTask,name:"Deep clean",tasks:u.filter(function(e){return e.isDeep})}))}}]),n}(),v=(0,r.connect)("tasks",{addFinishedTask:u.addFinishedTask})(m);exports.default=v;
},{"preact":"qWa+","preact-router":"v/Kv","unistore/preact":"WwVf","../style":"aYnU","./TaskList":"TiW6","../../network/db":"qZPz","../../store":"NJMh"}],"iQ3I":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("preact"),t=require("preact-router"),r=require("unistore/preact"),o=c(require("../style")),n=require("../colors"),u=require("../../network/db"),i=require("../../store");function c(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};o.get||o.set?Object.defineProperty(t,r,o):t[r]=e[r]}return t.default=e,t}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,t,r){return t&&f(e.prototype,t),r&&f(e,r),e}function s(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var O=(0,o.default)("button")(Object.assign({},o.common.button,{display:"block",padding:"0.5em","min-width":"75%",margin:"0.5em auto","font-size":"2em",background:n.Color.Blue0})),h=function(r){function o(){var e;return a(this,o),(e=s(this,b(o).apply(this,arguments))).onClick=function(e){return(0,t.route)("/clean/".concat(e))},e}return m(o,e.Component),p(o,[{key:"componentWillMount",value:function(){(0,u.getAllRooms)().catch(function(){(0,i.clearState)(),(0,t.route)("/")})}},{key:"render",value:function(){var t=this,r=this.props.rooms;return r.length>0?(0,e.h)("div",null,r.map(function(r){var o=r.name;return(0,e.h)(O,{onClick:t.onClick.bind(null,o)},o)})):"Loading rooms..."}}]),o}(),v=(0,r.connect)("rooms")(h);exports.default=v;
},{"preact":"qWa+","preact-router":"v/Kv","unistore/preact":"WwVf","../style":"aYnU","../colors":"JOjF","../../network/db":"qZPz","../../store":"NJMh"}],"TZhv":[function(require,module,exports) {
var global = arguments[3];
var t=arguments[3],e="Expected a function",n=NaN,r="[object Symbol]",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,f=/^0o[0-7]+$/i,c=parseInt,a="object"==typeof t&&t&&t.Object===Object&&t,s="object"==typeof self&&self&&self.Object===Object&&self,v=a||s||Function("return this")(),l=Object.prototype,p=l.toString,b=Math.max,m=Math.min,y=function(){return v.Date.now()};function d(t,n,r){var i,o,u,f,c,a,s=0,v=!1,l=!1,p=!0;if("function"!=typeof t)throw new TypeError(e);function d(e){var n=i,r=o;return i=o=void 0,s=e,f=t.apply(r,n)}function g(t){var e=t-a;return void 0===a||e>=n||e<0||l&&t-s>=u}function O(){var t=y();if(g(t))return x(t);c=setTimeout(O,function(t){var e=n-(t-a);return l?m(e,u-(t-s)):e}(t))}function x(t){return c=void 0,p&&i?d(t):(i=o=void 0,f)}function T(){var t=y(),e=g(t);if(i=arguments,o=this,a=t,e){if(void 0===c)return function(t){return s=t,c=setTimeout(O,n),v?d(t):f}(a);if(l)return c=setTimeout(O,n),d(a)}return void 0===c&&(c=setTimeout(O,n)),f}return n=h(n)||0,j(r)&&(v=!!r.leading,u=(l="maxWait"in r)?b(h(r.maxWait)||0,n):u,p="trailing"in r?!!r.trailing:p),T.cancel=function(){void 0!==c&&clearTimeout(c),s=0,i=a=o=c=void 0},T.flush=function(){return void 0===c?f:x(y())},T}function j(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function g(t){return!!t&&"object"==typeof t}function O(t){return"symbol"==typeof t||g(t)&&p.call(t)==r}function h(t){if("number"==typeof t)return t;if(O(t))return n;if(j(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=j(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(i,"");var r=u.test(t);return r||f.test(t)?c(t.slice(2),r?2:8):o.test(t)?n:+t}module.exports=d;
},{}],"BXnq":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getFormattedTaskValue=void 0;var e=require("preact"),t=o(require("../../store")),n=o(require("../style"));function o(e){return e&&e.__esModule?e:{default:e}}function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function c(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function f(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?a(e):t}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var y=(0,n.default)("select")({"font-size":"1em"}),b=function(n){function o(){return u(this,o),f(this,l(o).apply(this,arguments))}return s(o,e.Component),c(o,[{key:"render",value:function(){var n=this.props,o=n.selected,r=n.onChange,u=t.default.getState().rooms;return(0,e.h)(y,{onChange:r},u.map(function(t){var n=t.name,r={value:n};return o===n&&(r.selected="selected"),(0,e.h)("option",Object.assign({},r),n)}))}}]),o}(),d=function(t,n,o){return"boolean"==typeof t?t?"Y":"N":"room"===n?(0,e.h)(b,{selected:t,onChange:o}):t};exports.getFormattedTaskValue=d;
},{"preact":"qWa+","../../store":"NJMh","../style":"aYnU"}],"KO+G":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("preact"),t=a(require("lodash.debounce")),r=a(require("../style")),n=require("../colors"),o=require("./RoomSelect"),u=require("./SpreadSheet"),i=require("../../network/db");function a(e){return e&&e.__esModule?e:{default:e}}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t,r){return t&&f(e.prototype,t),r&&f(e,r),e}function p(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?d(e):t}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var m=(0,r.default)("td")({border:"1px solid ".concat(n.Color.Gray1),padding:"0.25em"}),g=function(e){return Object.keys(e).filter(u.getRelevantTaskFields).sort(u.byAlphabet).map(function(t){return e[t]})},k=function(r){function n(){var e;return l(this,n),(e=p(this,y(n).apply(this,arguments))).onClickDelete=function(){return(0,i.destroyTaskAdmin)(e.props.row).then(i.getAllTasks)},e.onChange=function(){var t=e.props.row,r={_id:t._id};Array.from(document.getElementById(t._id).querySelectorAll("[data-key]")).forEach(function(e){var t,n=e.getAttribute("data-key"),o=e.firstChild.textContent.trim();switch(n){case"room":t=e.firstChild.value;break;case"isDeep":t="Y"===o.toUpperCase();break;default:t=o}r[n]=t}),(0,i.updateTaskAdmin)(r).then(function(){return console.log("saved!")})},e.onChangeDebounced=(0,t.default)(e.onChange,750),e}return b(n,e.Component),s(n,[{key:"render",value:function(){var t=this,r=this.props,n=r.row,u=r.headerKeys;return(0,e.h)("tr",{id:n._id},g(n).map(function(r,n){return(0,e.h)(m,{contenteditable:"room"!==u[n],onBlur:t.onChangeDebounced,onKeyUp:t.onChangeDebounced,"data-key":u[n]},(0,o.getFormattedTaskValue)(r,u[n],t.onChangeDebounced))}),(0,e.h)(m,{onClick:this.onClickDelete,style:"cursor:pointer; text-align:center"},"❌"))}}]),n}();exports.default=k;
},{"preact":"qWa+","lodash.debounce":"TZhv","../style":"aYnU","../colors":"JOjF","./RoomSelect":"BXnq","./SpreadSheet":"algO","../../network/db":"qZPz"}],"algO":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.byAlphabet=exports.getRelevantTaskFields=void 0;var e=require("preact"),t=u(require("../style")),r=require("../colors"),o=u(require("./TableRow")),n=require("../../network/db");function u(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function c(e,t,r){return t&&l(e.prototype,t),r&&l(e,r),e}function s(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?f(e):t}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var b=(0,t.default)("td")({background:r.Color.Gray2,padding:"1em",opacity:.8,"text-align":"center",cursor:"pointer",transition:"all 0.3s ease",":hover":{background:r.Color.Gray0,color:r.Color.Gray2}}),h=(0,t.default)("th")({background:r.Color.Gray1,padding:"0.5em"}),m=(0,t.default)("table")({margin:"5%",padding:"0.5em",width:"90%","border-collapse":"collapse"}),g=function(e){return/room|name|description|isDeep/g.test(e)};exports.getRelevantTaskFields=g;var w=function(e,t){return e.room.toLowerCase()<t.room.toLowerCase()?-1:1},v=function(e,t){return e.toLowerCase()>t.toLowerCase()?-1:1};exports.byAlphabet=v;var k=function(t){function r(){var e;return i(this,r),(e=s(this,p(r).apply(this,arguments))).onClickAdd=function(){return(0,n.createTaskAdmin)().then(n.getAllTasks)},e}return d(r,e.Component),c(r,[{key:"render",value:function(){var t=this.props.data,r=Object.keys(t[0]).filter(g).sort(v);return(0,e.h)(m,null,(0,e.h)("tr",null,r.map(function(t){return(0,e.h)(h,null,t)}),(0,e.h)(h,null,"Delete")),t.sort(w).map(function(t){return(0,e.h)(o.default,{row:t,headerKeys:r})}),(0,e.h)("tr",null,(0,e.h)(b,{colSpan:r.length+1,onClick:this.onClickAdd},"Add new row")))}}]),r}();exports.default=k;
},{"preact":"qWa+","../style":"aYnU","../colors":"JOjF","./TableRow":"KO+G","../../network/db":"qZPz"}],"ONHk":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("preact"),t=require("preact-router"),r=require("unistore/preact"),o=require("../../network/db"),n=require("../../store"),u=i(require("./SpreadSheet"));function i(e){return e&&e.__esModule?e:{default:e}}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e,t,r){return t&&f(e.prototype,t),r&&f(e,r),e}function s(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?p(e):t}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h=function(r){function i(){return a(this,i),s(this,y(i).apply(this,arguments))}return b(i,e.Component),l(i,[{key:"componentWillMount",value:function(){Promise.all([(0,o.getAllTasks)(),(0,o.getAllRooms)()]).catch(function(){(0,n.clearState)(),(0,t.route)("/")})}},{key:"render",value:function(){var t=this.props,r=t.rooms,o=t.tasks;return r.length+o.length?(0,e.h)(u.default,{data:o}):"Loading rooms and tasks..."}}]),i}(),m=(0,r.connect)("rooms,tasks")(h);exports.default=m;
},{"preact":"qWa+","preact-router":"v/Kv","unistore/preact":"WwVf","../../network/db":"qZPz","../../store":"NJMh","./SpreadSheet":"algO"}],"ExbH":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("preact"),r=d(require("preact-router")),t=d(require("history/createHashHistory")),u=d(require("../store")),a=d(require("./Header")),o=d(require("./LoginScreen")),i=d(require("./TasksScreen")),l=d(require("./RoomsScreen")),n=d(require("./AdminScreen"));function d(e){return e&&e.__esModule?e:{default:e}}function s(e){var r=e.url;u.default.setState({route:r.slice(1)})}var f=function(){return(0,e.h)("div",null,(0,e.h)(a.default,null),(0,e.h)(r.default,{history:(0,t.default)(),onChange:s},(0,e.h)(o.default,{default:!0}),(0,e.h)(i.default,{path:"/clean/:room"}),(0,e.h)(l.default,{path:"/rooms"}),(0,e.h)(n.default,{path:"/admin"})))};exports.default=f;
},{"preact":"qWa+","preact-router":"v/Kv","history/createHashHistory":"CfSE","../store":"NJMh","./Header":"YmhT","./LoginScreen":"EPn/","./TasksScreen":"JGMd","./RoomsScreen":"iQ3I","./AdminScreen":"ONHk"}],"3KFp":[function(require,module,exports) {
"use strict";var e=require("promise.prototype.finally"),r=require("unistore/preact"),t=require("preact"),u=i(require("./components/App")),o=i(require("./store"));function i(e){return e&&e.__esModule?e:{default:e}}(0,e.shim)(),(0,t.render)((0,t.h)(r.Provider,{store:o.default},(0,t.h)(u.default,null)),document.body);
},{"promise.prototype.finally":"PDT+","unistore/preact":"WwVf","preact":"qWa+","./components/App":"ExbH","./store":"NJMh"}]},{},["3KFp"], null)</script>
</body>
</html>