-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathminified.js
306 lines (306 loc) · 152 KB
/
minified.js
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.checkStringArgs=function(f,n,E){if(null==f)throw new TypeError("The 'this' value for String.prototype."+E+" must not be null or undefined");if(n instanceof RegExp)throw new TypeError("First argument to String.prototype."+E+" must not be a regular expression");return f+""};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(f,n,E){f!=Array.prototype&&f!=Object.prototype&&(f[n]=E.value)};$jscomp.getGlobal=function(f){return"undefined"!=typeof window&&window===f?f:"undefined"!=typeof global&&null!=global?global:f};$jscomp.global=$jscomp.getGlobal(this);
$jscomp.polyfill=function(f,n,E,V){if(n){E=$jscomp.global;f=f.split(".");for(V=0;V<f.length-1;V++){var ha=f[V];ha in E||(E[ha]={});E=E[ha]}f=f[f.length-1];V=E[f];n=n(V);n!=V&&null!=n&&$jscomp.defineProperty(E,f,{configurable:!0,writable:!0,value:n})}};
$jscomp.polyfill("String.prototype.endsWith",function(f){return f?f:function(f,E){var n=$jscomp.checkStringArgs(this,f,"endsWith");f+="";void 0===E&&(E=n.length);E=Math.max(0,Math.min(E|0,n.length));for(var ha=f.length;0<ha&&0<E;)if(n[--E]!=f[--ha])return!1;return 0>=ha}},"es6","es3");
$jscomp.polyfill("String.prototype.startsWith",function(f){return f?f:function(f,E){var n=$jscomp.checkStringArgs(this,f,"startsWith");f+="";var ha=n.length,Qb=f.length;E=Math.max(0,Math.min(E|0,n.length));for(var Fb=0;Fb<Qb&&E<ha;)if(n[E++]!=f[Fb++])return!1;return Fb>=Qb}},"es6","es3");
$jscomp.polyfill("String.prototype.repeat",function(f){return f?f:function(f){var n=$jscomp.checkStringArgs(this,null,"repeat");if(0>f||1342177279<f)throw new RangeError("Invalid count value");f|=0;for(var V="";f;)if(f&1&&(V+=n),f>>>=1)n+=n;return V}},"es6","es3");
(function(){function f(a){function b(b){return function(c){return a(b,c)}}b.arity=2;b.func=a;return b}function n(a){function b(b){return function(c){return function(e){return a(b,c,e)}}}b.arity=3;b.func=a;return b}function E(a){function b(b){return function(c){return function(e){return function(d){return a(b,c,e,d)}}}}b.arity=4;b.func=a;return b}function V(a){function b(b){return function(c){return function(e){return function(d){return function(h){return a(b,c,e,d,h)}}}}}b.arity=5;b.func=a;return b}
function ha(a){function b(b){return function(c){return function(e){return function(d){return function(h){return function(f){return a(b,c,e,d,h,f)}}}}}}b.arity=6;b.func=a;return b}function Qb(a){function b(b){return function(c){return function(e){return function(d){return function(h){return function(f){return function(l){return a(b,c,e,d,h,f,l)}}}}}}}b.arity=7;b.func=a;return b}function Fb(a){function b(b){return function(c){return function(e){return function(d){return function(h){return function(f){return function(l){return function(L){return a(b,
c,e,d,h,f,l,L)}}}}}}}}b.arity=8;b.func=a;return b}function Jg(a){function b(b){return function(c){return function(e){return function(d){return function(h){return function(f){return function(l){return function(L){return function(ea){return a(b,c,e,d,h,f,l,L,ea)}}}}}}}}}b.arity=9;b.func=a;return b}function c(a,b,c){return 2===a.arity?a.func(b,c):a(b)(c)}function m(a,b,c,d){return 3===a.arity?a.func(b,c,d):a(b)(c)(d)}function X(a,b,c,d,f){return 4===a.arity?a.func(b,c,d,f):a(b)(c)(d)(f)}function J(a,
b,c,d,f,T){return 5===a.arity?a.func(b,c,d,f,T):a(b)(c)(d)(f)(T)}function Ve(a,b,c,d,f,T,g){return 6===a.arity?a.func(b,c,d,f,T,g):a(b)(c)(d)(f)(T)(g)}var Ca=function(){function a(b,c,e){e=x(e);if(0===e.height)e.table[b]=c;else{var d=z(b,e);0<d&&(b-=e.lengths[d-1]);e.table[d]=a(b,c,e.table[d])}return e}function b(a,c,e,d){if(0===c){for(var h=Array((d-e)%33),f=0;f<h.length;f++)h[f]=a(e+f);return{ctor:"_Array",height:0,table:h}}var l=Math.pow(32,c);h=Array(Math.ceil((d-e)/l));var L=Array(h.length);
for(f=0;f<h.length;f++)h[f]=b(a,c-1,e+f*l,Math.min(e+(f+1)*l,d)),L[f]=t(h[f])+(0<f?L[f-1]:0);return{ctor:"_Array",height:c,table:h,lengths:L}}function e(a,b){var c=a.height;b.length===c&&b.push({ctor:"_Array",height:c+1,table:[],lengths:[]});b[c].table.push(a);a=t(a);0<b[c].lengths.length&&(a+=b[c].lengths[b[c].lengths.length-1]);b[c].lengths.push(a);32===b[c].table.length&&(e(b[c],b),b[c]={ctor:"_Array",height:c+1,table:[],lengths:[]})}function d(a,b){if(0===b.height)return 32>b.table.length?(b=
{ctor:"_Array",height:0,table:b.table.slice()},b.table.push(a),b):null;var c=d(a,b.table[b.table.length-1]);return null!==c?(b=x(b),b.table[b.table.length-1]=c,b.lengths[b.lengths.length-1]++,b):32>b.table.length?(a=y(a,b.height-1),b=x(b),b.table.push(a),b.lengths.push(b.lengths[b.lengths.length-1]+t(a)),b):null}function l(a,b){for(var c=b.table.length-1;0<=c;c--)a=0===b.height?O.Cons(b.table[c],a):l(a,b.table[c]);return a}function T(a,b){var c={ctor:"_Array",height:b.height,table:Array(b.table.length)};
0<b.height&&(c.lengths=b.lengths);for(var e=0;e<b.table.length;e++)c.table[e]=0===b.height?a(b.table[e]):T(a,b.table[e]);return c}function g(a,b,e){var d={ctor:"_Array",height:b.height,table:Array(b.table.length)};0<b.height&&(d.lengths=b.lengths);for(var h=0;h<b.table.length;h++)d.table[h]=0===b.height?c(a,e+h,b.table[h]):g(a,b.table[h],0==h?e:e+b.lengths[h-1]);return d}function ea(a,b,e){if(0===e.height)for(var d=0;d<e.table.length;d++)b=c(a,e.table[d],b);else for(d=0;d<e.table.length;d++)b=ea(a,
b,e.table[d]);return b}function be(a,b,e){if(0===e.height)for(var d=e.table.length;d--;)b=c(a,e.table[d],b);else for(d=e.table.length;d--;)b=be(a,b,e.table[d]);return b}function L(a,b){if(a===t(b))return b;if(0===b.height){var c={ctor:"_Array",height:0};c.table=b.table.slice(0,a);return c}var e=z(a,b);a=L(a-(0<e?b.lengths[e-1]:0),b.table[e]);if(0===e)return a;c={ctor:"_Array",height:b.height,table:b.table.slice(0,e),lengths:b.lengths.slice(0,e)};0<a.table.length&&(c.table[e]=a,c.lengths[e]=t(a)+(0<
e?c.lengths[e-1]:0));return c}function ua(a,b){if(0===a)return b;if(0===b.height){var c={ctor:"_Array",height:0};c.table=b.table.slice(a,b.table.length+1);return c}c=z(a,b);a=ua(a-(0<c?b.lengths[c-1]:0),b.table[c]);if(c===b.table.length-1)return a;c={ctor:"_Array",height:b.height,table:b.table.slice(c,b.table.length+1),lengths:Array(b.table.length-c)};c.table[0]=a;for(a=b=0;a<c.table.length;a++)b+=t(c.table[a]),c.lengths[a]=b;return c}function k(a,b){if(0===a.height&&0===b.height)return[a,b];if(1!==
a.height||1!==b.height)if(a.height===b.height){a=x(a);b=x(b);var c=k(a.table[a.table.length-1],b.table[0]);m(a,c[1]);q(b,c[0])}else if(a.height>b.height)a=x(a),c=k(a.table[a.table.length-1],b),m(a,c[0]),b=B(c[1],c[1].height+1);else{b=x(b);c=k(a,b.table[0]);a=0===c[0].table.length?0:1;var e=0===a?1:0;q(b,c[a]);a=B(c[e],c[e].height+1)}if(0===a.table.length||0===b.table.length)return[a,b];c=p(a,b);return 2>=c?[a,b]:w(a,b,c)}function m(a,b){var c=a.table.length-1;a.table[c]=b;a.lengths[c]=t(b);a.lengths[c]+=
0<c?a.lengths[c-1]:0}function q(a,b){if(0<b.table.length){a.table[0]=b;a.lengths[0]=t(b);b=t(a.table[0]);for(var c=1;c<a.lengths.length;c++)b+=t(a.table[c]),a.lengths[c]=b}else{a.table.shift();for(c=1;c<a.lengths.length;c++)a.lengths[c]-=a.lengths[0];a.lengths.shift()}}function p(a,b){for(var c=0,e=0;e<a.table.length;e++)c+=a.table[e].table.length;for(e=0;e<b.table.length;e++)c+=b.table[e].table.length;return a.table.length+b.table.length-(Math.floor((c-1)/32)+1)}function r(a,b,c){return c<a.length?
a[c]:b[c-a.length]}function gd(a,b,c,e){c<a.length?a[c]=e:b[c-a.length]=e}function v(a,b,c,e){gd(a.table,b.table,c,e);var d=0===c||c===a.lengths.length?0:r(a.lengths,a.lengths,c-1);gd(a.lengths,b.lengths,c,d+t(e))}function u(a,b){0>b&&(b=0);var c={ctor:"_Array",height:a,table:Array(b)};0<a&&(c.lengths=Array(b));return c}function w(a,b,c){for(var e=u(a.height,Math.min(32,a.table.length+b.table.length-c)),d=u(a.height,e.table.length-(a.table.length+b.table.length-c)),h=0;0===r(a.table,b.table,h).table.length%
32;)gd(e.table,d.table,h,r(a.table,b.table,h)),gd(e.lengths,d.lengths,h,r(a.lengths,b.lengths,h)),h++;for(var f=h,l=new u(a.height-1,0),L=0;h-f-(0<l.table.length?1:0)<c;){var ea=r(a.table,b.table,h),ua=Math.min(32-l.table.length,ea.table.length);l.table=l.table.concat(ea.table.slice(L,ua));if(0<l.height)for(var T=l.lengths.length,g=T;g<T+ua-L;g++)l.lengths[g]=t(l.table[g]),l.lengths[g]+=0<g?l.lengths[g-1]:0;L+=ua;ea.table.length<=ua&&(h++,L=0);32===l.table.length&&(v(e,d,f,l),l=u(a.height-1,0),f++)}0<
l.table.length&&(v(e,d,f,l),f++);for(;h<a.table.length+b.table.length;)v(e,d,f,r(a.table,b.table,h)),h++,f++;return[e,d]}function x(a){var b={ctor:"_Array",height:a.height,table:a.table.slice()};0<a.height&&(b.lengths=a.lengths.slice());return b}function t(a){return 0===a.height?a.table.length:a.lengths[a.lengths.length-1]}function z(a,b){for(var c=a>>5*b.height;b.lengths[c]<=a;)c++;return c}function y(a,b){return 0===b?{ctor:"_Array",height:0,table:[a]}:{ctor:"_Array",height:b,table:[y(a,b-1)],lengths:[1]}}
function B(a,b){return b===a.height?a:{ctor:"_Array",height:b,table:[B(a,b-1)],lengths:[t(a)]}}function A(a,b){return{ctor:"_Array",height:a.height+1,table:[a,b],lengths:[t(a),t(a)+t(b)]}}function C(a,b,c){for(var e=0;e<c.table.length;e++)0===c.height?a[b+e]=c.table[e]:C(a,b+(0===e?0:c.lengths[e-1]),c.table[e])}function D(a,b,c,e){if(0===b)return{ctor:"_Array",height:0,table:a.slice(c,e)};for(var d=Math.pow(32,b),h=Array(Math.ceil((e-c)/d)),f=Array(h.length),l=0;l<h.length;l++)h[l]=D(a,b-1,c+l*d,
Math.min(c+(l+1)*d,e)),f[l]=t(h[l])+(0<l?f[l-1]:0);return{ctor:"_Array",height:b,table:h,lengths:f}}var E={ctor:"_Array",height:0,table:[]};return{empty:E,fromList:function(a){if("[]"===a.ctor)return E;for(var b=Array(32),c=[],d=0;"[]"!==a.ctor;)b[d]=a._0,a=a._1,d++,32===d&&(b={ctor:"_Array",height:0,table:b},e(b,c),b=Array(32),d=0);0<d&&(b={ctor:"_Array",height:0,table:b.splice(0,d)},e(b,c));for(a=0;a<c.length-1;a++)0<c[a].table.length&&e(c[a],c);c=c[c.length-1];return 0<c.height&&1===c.table.length?
c.table[0]:c},toList:function(a){return l(O.Nil,a)},initialize:f(function(a,c){return 0>=a?E:b(c,Math.floor(Math.log(a)/Math.log(32)),0,a)}),append:f(function(a,b){if(0===a.table.length)return b;if(0===b.table.length)return a;var c=k(a,b);if(32>=c[0].table.length+c[1].table.length){if(0===c[0].table.length)return c[1];if(0===c[1].table.length)return c[0];c[0].table=c[0].table.concat(c[1].table);if(0<c[0].height){a=t(c[0]);for(b=0;b<c[1].lengths.length;b++)c[1].lengths[b]+=a;c[0].lengths=c[0].lengths.concat(c[1].lengths)}return c[0]}0<
c[0].height&&(a=p(a,b),2<a&&(c=w(c[0],c[1],a)));return A(c[0],c[1])}),push:f(function(a,b){var c=d(a,b);if(null!==c)return c;a=y(a,b.height);return A(b,a)}),slice:n(function(a,b,c){0>a&&(a+=t(c));0>b&&(b+=t(c));return ua(a,L(b,c))}),get:f(function(a,b){if(0>a||a>=t(b))throw Error("Index "+a+" is out of range. Check the length of your array first or use getMaybe or getWithDefault.");for(var c=b.height;0<c;c--){for(var e=a>>5*c;b.lengths[e]<=a;)e++;0<e&&(a-=b.lengths[e-1]);b=b.table[e]}return b.table[a]}),
set:n(function(b,c,e){return 0>b||t(e)<=b?e:a(b,c,e)}),map:f(T),indexedMap:f(function(a,b){return g(a,b,0)}),foldl:n(ea),foldr:n(be),length:t,toJSArray:function(a){var b=Array(t(a));C(b,0,a);return b},fromJSArray:function(a){return 0===a.length?E:D(a,Math.floor(Math.log(a.length)/Math.log(32)),0,a.length)}}}(),ia=function(){function a(b,c){if(0===c)throw Error("Cannot perform mod 0. Division by zero error.");var e=b%c;b=0===b?0:0<c?0<=b?e:e+c:-a(-b,-c);return b===c?0:b}var b=["LT","EQ","GT"];return{div:f(function(a,
b){return a/b|0}),rem:f(function(a,b){return a%b}),mod:f(a),pi:Math.PI,e:Math.E,cos:Math.cos,sin:Math.sin,tan:Math.tan,acos:Math.acos,asin:Math.asin,atan:Math.atan,atan2:f(Math.atan2),degrees:function(a){return a*Math.PI/180},turns:function(a){return 2*Math.PI*a},fromPolar:function(a){var b=a._0;a=a._1;return g.Tuple2(b*Math.cos(a),b*Math.sin(a))},toPolar:function(a){var b=a._0;a=a._1;return g.Tuple2(Math.sqrt(b*b+a*a),Math.atan2(a,b))},sqrt:Math.sqrt,logBase:f(function(a,b){return Math.log(b)/Math.log(a)}),
negate:function(a){return-a},abs:function(a){return 0>a?-a:a},min:f(function(a,b){return 0>g.cmp(a,b)?a:b}),max:f(function(a,b){return 0<g.cmp(a,b)?a:b}),clamp:n(function(a,b,c){return 0>g.cmp(c,a)?a:0<g.cmp(c,b)?b:c}),compare:f(function(a,c){return{ctor:b[g.cmp(a,c)+1]}}),xor:f(function(a,b){return a!==b}),not:function(a){return!a},truncate:function(a){return a|0},ceiling:Math.ceil,floor:Math.floor,round:Math.round,toFloat:function(a){return a},isNaN:isNaN,isInfinite:function(a){return Infinity===
a||-Infinity===a}}}(),g=function(){function a(b,c,e,d){if(100<e)return d.push({x:b,y:c}),!0;if(b===c)return!0;if("object"!==typeof b){if("function"===typeof b)throw Error('Trying to use `(\x3d\x3d)` on functions. There is no way to know if functions are "the same" in the Elm sense. Read more about this at http://package.elm-lang.org/packages/elm-lang/core/latest/Basics#\x3d\x3d which describes why it is this way and what the better version will look like.');return!1}if(null===b||null===c)return!1;
if(b instanceof Date)return b.getTime()===c.getTime();if(!("ctor"in b)){for(var h in b)if(!a(b[h],c[h],e+1,d))return!1;return!0}if("RBNode_elm_builtin"===b.ctor||"RBEmpty_elm_builtin"===b.ctor)b=ca(b),c=ca(c);"Set_elm_builtin"===b.ctor&&(b=_elm_lang$core$Set$toList(b),c=_elm_lang$core$Set$toList(c));if("::"===b.ctor){for(;"::"===b.ctor&&"::"===c.ctor;){if(!a(b._0,c._0,e+1,d))return!1;b=b._1;c=c._1}return b.ctor===c.ctor}if("_Array"===b.ctor){b=Ca.toJSArray(b);c=Ca.toJSArray(c);if(b.length!==c.length)return!1;
for(h=0;h<b.length;h++)if(!a(b[h],c[h],e+1,d))return!1;return!0}if(!a(b.ctor,c.ctor,e+1,d))return!1;for(h in b)if(!a(b[h],c[h],e+1,d))return!1;return!0}function b(a,c){if("object"!==typeof a)return a===c?0:a<c?-1:1;if(a instanceof String)return a=a.valueOf(),c=c.valueOf(),a===c?0:a<c?-1:1;if("::"===a.ctor||"[]"===a.ctor){for(;"::"===a.ctor&&"::"===c.ctor;){var e=b(a._0,c._0);if(0!==e)return e;a=a._1;c=c._1}return a.ctor===c.ctor?0:"[]"===a.ctor?-1:1}if("_Tuple"===a.ctor.slice(0,6)){var d=a.ctor.slice(6)-
0;if(0===d)return 0;if(1<=d){e=b(a._0,c._0);if(0!==e)return e;if(2<=d){e=b(a._1,c._1);if(0!==e)return e;if(3<=d){e=b(a._2,c._2);if(0!==e)return e;if(4<=d){e=b(a._3,c._3);if(0!==e)return e;if(5<=d){e=b(a._4,c._4);if(0!==e)return e;if(6<=d){e=b(a._5,c._5);if(0!==e)return e;if(7<=d)throw Error("Comparison error: cannot compare tuples with more than 6 elements.");}}}}}}return 0}throw Error("Comparison error: comparison is only defined on ints, floats, times, chars, strings, lists of comparable values, and tuples of comparable values.");
}function c(a){return a.start.line==a.end.line?"on line "+a.start.line:"between lines "+a.start.line+" and "+a.end.line}function d(a){var b=typeof a;if("function"===b)return"\x3cfunction\x3e";if("boolean"===b)return a?"True":"False";if("number"===b)return a+"";if(a instanceof String)return"'"+l(a,!0)+"'";if("string"===b)return'"'+l(a,!1)+'"';if(null===a)return"null";if("object"===b&&"ctor"in a){b=a.ctor.substring(0,5);if("_Tupl"===b){b=[];for(var c in a)"ctor"!==c&&b.push(d(a[c]));return"("+b.join(",")+
")"}if("_Task"===b)return"\x3ctask\x3e";if("_Array"===a.ctor)return a=Lg(a),"Array.fromList "+d(a);if("\x3cdecoder\x3e"===a.ctor)return"\x3cdecoder\x3e";if("_Process"===a.ctor)return"\x3cprocess:"+a.id+"\x3e";if("::"===a.ctor){b="["+d(a._0);for(a=a._1;"::"===a.ctor;)b+=","+d(a._0),a=a._1;return b+"]"}if("[]"===a.ctor)return"[]";if("Set_elm_builtin"===a.ctor)return"Set.fromList "+d(_elm_lang$core$Set$toList(a));if("RBNode_elm_builtin"===a.ctor||"RBEmpty_elm_builtin"===a.ctor)return"Dict.fromList "+
d(ca(a));b="";for(var e in a)if("ctor"!==e){c=d(a[e]);var h=c[0];h="{"===h||"("===h||"\x3c"===h||'"'===h||0>c.indexOf(" ");b+=" "+(h?c:"("+c+")")}return a.ctor+b}if("object"===b){if(a instanceof Date)return"\x3c"+a.toString()+"\x3e";if(a.elm_web_socket)return"\x3cwebsocket\x3e";b=[];for(c in a)b.push(c+" \x3d "+d(a[c]));return 0===b.length?"{}":"{ "+b.join(", ")+" }"}return"\x3cinternal structure\x3e"}function l(a,b){a=a.replace(/\\/g,"\\\\").replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,
"\\r").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return b?a.replace(/'/g,"\\'"):a.replace(/"/g,'\\"')}var T=0,g={ctor:"[]"};return{eq:function(b,c){var e=[];b=a(b,c,0,e);for(var d;b&&(d=e.pop());)b=a(d.x,d.y,0,e);return b},cmp:b,Tuple0:{ctor:"_Tuple0"},Tuple2:function(a,b){return{ctor:"_Tuple2",_0:a,_1:b}},chr:function(a){return new String(a)},update:function(a,b){var c={},e;for(e in a)c[e]=a[e];for(e in b)c[e]=b[e];return c},guid:function(a){return T++},append:f(function(a,b){if("string"===typeof a)return a+
b;if("[]"===a.ctor)return b;var c={ctor:"::",_0:a._0,_1:g},e=c;for(a=a._1;"[]"!==a.ctor;)e._1={ctor:"::",_0:a._0,_1:g},a=a._1,e=e._1;e._1=b;return c}),crash:function(a,b){return function(e){throw Error("Ran into a `Debug.crash` in module `"+a+"` "+c(b)+"\nThe message provided by the code author is:\n\n "+e);}},crashCase:function(a,b,e){return function(h){throw Error("Ran into a `Debug.crash` in module `"+a+"`\n\nThis was caused by the `case` expression "+c(b)+".\nOne of the branches ended with a crash and the following value got through:\n\n "+
d(e)+"\n\nThe message provided by the code author is:\n\n "+h);}},toString:d}}();f(function(a,b){return c(a,b._0,b._1)});n(function(a,b,c){return a({ctor:"_Tuple2",_0:b,_1:c})});n(function(a,b,e){return c(a,e,b)});var ce=f(function(a,b){return a}),va=function(a){return a},k=k||{};k["\x3c|"]=f(function(a,b){return a(b)});k=k||{};k["|\x3e"]=f(function(a,b){return b(a)});k=k||{};k["\x3e\x3e"]=n(function(a,b,c){return b(a(c))});k=k||{};k["\x3c\x3c"]=n(function(a,b,c){return a(b(c))});k=k||{};k["++"]=
g.append;var Da=g.toString;k=k||{};k["||"]=ia.or;k=k||{};k["\x26\x26"]=ia.and;var Mg=ia.max,We=ia.compare;k=k||{};k["\x3e\x3d"]=ia.ge;k=k||{};k["\x3c\x3d"]=ia.le;k=k||{};k["\x3e"]=ia.gt;k=k||{};k["\x3c"]=ia.lt;k=k||{};k["/\x3d"]=ia.neq;k=k||{};k["\x3d\x3d"]=ia.eq;k=k||{};k["^"]=ia.exp;k=k||{};k["%"]=ia.mod;k=k||{};k["//"]=ia.div;k=k||{};k["/"]=ia.floatDiv;k=k||{};k["*"]=ia.mul;k=k||{};k["-"]=ia.sub;k=k||{};k["+"]=ia.add;var bb=f(function(a,b){return"Just"===b.ctor?b._0:a}),p={ctor:"Nothing"},ib=f(function(a,
b){return"Just"===b.ctor?a(b._0):p}),q=function(a){return{ctor:"Just",_0:a}},K=f(function(a,b){return"Just"===b.ctor?q(a(b._0)):p});n(function(a,b,e){return"Just"===b.ctor&&"Just"===e.ctor?q(c(a,b._0,e._0)):p});E(function(a,b,c,d){return"Just"===b.ctor&&"Just"===c.ctor&&"Just"===d.ctor?q(m(a,b._0,c._0,d._0)):p});V(function(a,b,c,d,f){return"Just"===b.ctor&&"Just"===c.ctor&&"Just"===d.ctor&&"Just"===f.ctor?q(X(a,b._0,c._0,d._0,f._0)):p});ha(function(a,b,c,d,f,T){return"Just"===b.ctor&&"Just"===c.ctor&&
"Just"===d.ctor&&"Just"===f.ctor&&"Just"===T.ctor?q(J(a,b._0,c._0,d._0,f._0,T._0)):p});var O=function(){function a(a,b){return{ctor:"::",_0:a,_1:b}}function b(b){for(var c=d,e=b.length;e--;)c=a(b[e],c);return c}function e(a){for(var b=[];"[]"!==a.ctor;)b.push(a._0),a=a._1;return b}var d={ctor:"[]"};return{Nil:d,Cons:a,cons:f(a),toArray:e,fromArray:b,foldr:n(function(a,b,d){d=e(d);for(var h=d.length;h--;)b=c(a,d[h],b);return b}),map2:n(function(a,e,d){for(var h=[];"[]"!==e.ctor&&"[]"!==d.ctor;)h.push(c(a,
e._0,d._0)),e=e._1,d=d._1;return b(h)}),map3:E(function(a,c,e,d){for(var h=[];"[]"!==c.ctor&&"[]"!==e.ctor&&"[]"!==d.ctor;)h.push(m(a,c._0,e._0,d._0)),c=c._1,e=e._1,d=d._1;return b(h)}),map4:V(function(a,c,e,d,h){for(var f=[];"[]"!==c.ctor&&"[]"!==e.ctor&&"[]"!==d.ctor&&"[]"!==h.ctor;)f.push(X(a,c._0,e._0,d._0,h._0)),c=c._1,e=e._1,d=d._1,h=h._1;return b(f)}),map5:ha(function(a,c,e,d,h,f){for(var l=[];"[]"!==c.ctor&&"[]"!==e.ctor&&"[]"!==d.ctor&&"[]"!==h.ctor&&"[]"!==f.ctor;)l.push(J(a,c._0,e._0,d._0,
h._0,f._0)),c=c._1,e=e._1,d=d._1,h=h._1,f=f._1;return b(l)}),sortBy:f(function(a,c){return b(e(c).sort(function(b,c){return g.cmp(a(b),a(c))}))}),sortWith:f(function(a,c){return b(e(c).sort(function(b,c){b=a(b)(c).ctor;return"EQ"===b?0:"LT"===b?-1:1}))})}}(),Ng=f(function(a,b){for(;;){if(1>g.cmp(a,0))return b;var c=b;if("[]"===c.ctor)return b;b=c._1;--a}}),Og=O.map2,de=f(function(a,b){for(;;){if("[]"===b.ctor)return!1;if(a(b._0))return!0;b=b._1}});f(function(a,b){return!c(de,function(b){return!a(b)},
b)});var jb=O.foldr,fa=n(function(a,b,e){for(;;){var d=e;if("[]"===d.ctor)return b;e=a;b=c(a,d._0,b);d=d._1;a=e;e=d}}),Xe=function(a){return m(fa,f(function(a,c){return c+1}),0,a)},Pg=function(a){return"::"===a.ctor?q(m(fa,Mg,a._0,a._1)):p};f(function(a,b){return c(de,function(b){return g.eq(b,a)},b)});var Ye=Ye||{};Ye["::"]=O.cons;var D=f(function(a,b){return m(jb,f(function(b,c){return{ctor:"::",_0:a(b),_1:c}}),{ctor:"[]"},b)}),hd=f(function(a,b){var c=f(function(b,c){return a(b)?{ctor:"::",_0:b,
_1:c}:c});return m(jb,c,{ctor:"[]"},b)}),Qg=n(function(a,b,c){a=a(b);return"Just"===a.ctor?{ctor:"::",_0:a._0,_1:c}:c}),ya=f(function(a,b){return m(jb,Qg(a),{ctor:"[]"},b)}),ee=function(a){return m(fa,f(function(a,c){return{ctor:"::",_0:a,_1:c}}),{ctor:"[]"},a)};n(function(a,b,e){var d=f(function(b,e){return"::"===e.ctor?{ctor:"::",_0:c(a,b,e._0),_1:e}:{ctor:"[]"}});return ee(m(fa,d,{ctor:"::",_0:b,_1:{ctor:"[]"}},e))});var Rg=f(function(a,b){return"[]"===b.ctor?a:m(jb,f(function(a,b){return{ctor:"::",
_0:a,_1:b}}),b,a)});f(function(a,b){return m(jb,Rg,{ctor:"[]"},c(D,a,b))});f(function(a,b){var c=f(function(b,c){var e=c._0;c=c._1;return a(b)?{ctor:"_Tuple2",_0:{ctor:"::",_0:b,_1:e},_1:c}:{ctor:"_Tuple2",_0:e,_1:{ctor:"::",_0:b,_1:c}}});return m(jb,c,{ctor:"_Tuple2",_0:{ctor:"[]"},_1:{ctor:"[]"}},b)});f(function(a,b){if("[]"===b.ctor)return{ctor:"[]"};var c=f(function(b,c){return{ctor:"::",_0:a,_1:{ctor:"::",_0:b,_1:c}}});c=m(jb,c,{ctor:"[]"},b._1);return{ctor:"::",_0:b._0,_1:c}});var Sg=n(function(a,
b,c){for(;;){if(1>g.cmp(a,0))return c;var e=b;if("[]"===e.ctor)return c;b=e._1;c={ctor:"::",_0:e._0,_1:c};--a}}),Tg=f(function(a,b){return ee(m(Sg,a,b,{ctor:"[]"}))}),Ze=n(function(a,b,e){if(1>g.cmp(b,0))return{ctor:"[]"};a:do{b:do{if("[]"===e.ctor)return e;if("::"===e._1.ctor)switch(b){case 1:break b;case 2:return{ctor:"::",_0:e._0,_1:{ctor:"::",_0:e._1._0,_1:{ctor:"[]"}}};case 3:if("::"===e._1._1.ctor)return{ctor:"::",_0:e._0,_1:{ctor:"::",_0:e._1._0,_1:{ctor:"::",_0:e._1._1._0,_1:{ctor:"[]"}}}};
break a;default:if("::"===e._1._1.ctor&&"::"===e._1._1._1.ctor){var d=e._1._1._0,f=e._1._0,T=e._0,k=e._1._1._1._0;e=e._1._1._1._1;return 0<g.cmp(a,1E3)?{ctor:"::",_0:T,_1:{ctor:"::",_0:f,_1:{ctor:"::",_0:d,_1:{ctor:"::",_0:k,_1:c(Tg,b-4,e)}}}}:{ctor:"::",_0:T,_1:{ctor:"::",_0:f,_1:{ctor:"::",_0:d,_1:{ctor:"::",_0:k,_1:m(Ze,a+1,b-4,e)}}}}}break a}else if(1===b)break b;else break a}while(0);return{ctor:"::",_0:e._0,_1:{ctor:"[]"}}}while(0);return e}),Ug=f(function(a,b){return m(Ze,0,a,b)}),Vg=n(function(a,
b,c){for(;;){if(1>g.cmp(b,0))return a;--b;var e=c;a={ctor:"::",_0:c,_1:a};c=e}});f(function(a,b){return m(Vg,{ctor:"[]"},a,b)});var Wg=n(function(a,b,c){for(;;)if(1>g.cmp(a,b))c={ctor:"::",_0:b,_1:c},--b;else return c}),Xg=f(function(a,b){return m(Wg,a,b,{ctor:"[]"})});f(function(a,b){return m(Og,a,c(Xg,0,Xe(b)-1),b)});f(function(a,b){return 1>g.cmp(0,a)&&0>g.cmp(a,Ca.length(b))?q(c(Ca.get,a,b)):p});f(function(a,b){var e=f(function(b,e){return a(b)?c(Ca.push,b,e):e});return m(Ca.foldl,e,Ca.empty,
b)});var Lg=Ca.toList,Yg=Ca.initialize;f(function(a,b){return c(Yg,a,ce(b))});var Rb=function(){return{crash:function(a){throw Error(a);},log:f(function(a,b){a=a+": "+g.toString(b);var c=c||{};c.stdout?c.stdout.write(a):console.log(a);return b})}}(),id=function(){function a(a,b){for(var c="";0<a;)a&1&&(c+=b),a>>=1,b+=b;return c}function b(a){return W("could not convert string '"+a+"' to an Int")}function e(a){return W("could not convert string '"+a+"' to a Float")}return{isEmpty:function(a){return 0===
a.length},cons:f(function(a,b){return a+b}),uncons:function(a){var b=a[0];return b?q(g.Tuple2(g.chr(b),a.slice(1))):p},append:f(function(a,b){return a+b}),concat:function(a){return O.toArray(a).join("")},length:function(a){return a.length},map:f(function(a,b){b=b.split("");for(var c=b.length;c--;)b[c]=a(g.chr(b[c]));return b.join("")}),filter:f(function(a,b){return b.split("").map(g.chr).filter(a).join("")}),reverse:function(a){return a.split("").reverse().join("")},foldl:n(function(a,b,e){for(var d=
e.length,h=0;h<d;++h)b=c(a,g.chr(e[h]),b);return b}),foldr:n(function(a,b,e){for(var d=e.length;d--;)b=c(a,g.chr(e[d]),b);return b}),split:f(function(a,b){return O.fromArray(b.split(a))}),join:f(function(a,b){return O.toArray(b).join(a)}),repeat:f(a),slice:n(function(a,b,c){return c.slice(a,b)}),left:f(function(a,b){return 1>a?"":b.slice(0,a)}),right:f(function(a,b){return 1>a?"":b.slice(-a)}),dropLeft:f(function(a,b){return 1>a?b:b.slice(a)}),dropRight:f(function(a,b){return 1>a?b:b.slice(0,-a)}),
pad:n(function(b,c,e){b=(b-e.length)/2;return a(Math.ceil(b),c)+e+a(b|0,c)}),padLeft:n(function(b,c,e){return a(b-e.length,c)+e}),padRight:n(function(b,c,e){return e+a(b-e.length,c)}),trim:function(a){return a.trim()},trimLeft:function(a){return a.replace(/^\s+/,"")},trimRight:function(a){return a.replace(/\s+$/,"")},words:function(a){return O.fromArray(a.trim().split(/\s+/g))},lines:function(a){return O.fromArray(a.split(/\r\n|\r|\n/g))},toUpper:function(a){return a.toUpperCase()},toLower:function(a){return a.toLowerCase()},
any:f(function(a,b){for(var c=b.length;c--;)if(a(g.chr(b[c])))return!0;return!1}),all:f(function(a,b){for(var c=b.length;c--;)if(!a(g.chr(b[c])))return!1;return!0}),contains:f(function(a,b){return-1<b.indexOf(a)}),startsWith:f(function(a,b){return 0===b.indexOf(a)}),endsWith:f(function(a,b){return b.length>=a.length&&b.lastIndexOf(a)===b.length-a.length}),indexes:f(function(a,b){var c=a.length;if(1>c)return O.Nil;for(var e=0,d=[];-1<(e=b.indexOf(a,e));)d.push(e),e+=c;return O.fromArray(d)}),toInt:function(a){var c=
a.length;if(0===c)return b(a);var e=a[0];if("0"===e&&"x"===a[1]){for(var d=2;d<c;++d)if(e=a[d],!("0"<=e&&"9">=e||"A"<=e&&"F">=e||"a"<=e&&"f">=e))return b(a);return wa(parseInt(a,16))}if("9"<e||"0">e&&"-"!==e&&"+"!==e)return b(a);for(d=1;d<c;++d)if(e=a[d],"0">e||"9"<e)return b(a);return wa(parseInt(a,10))},toFloat:function(a){if(0===a.length||/[\sxbo]/.test(a))return e(a);var b=+a;return b===b?wa(b):e(a)},toList:function(a){return O.fromArray(a.split("").map(g.chr))},fromList:function(a){return O.toArray(a).join("")}}}(),
fe=function(){return{fromCode:function(a){return g.chr(String.fromCharCode(a))},toCode:function(a){return a.charCodeAt(0)},toUpper:function(a){return g.chr(a.toUpperCase())},toLower:function(a){return g.chr(a.toLowerCase())},toLocaleUpper:function(a){return g.chr(a.toLocaleUpperCase())},toLocaleLower:function(a){return g.chr(a.toLocaleLowerCase())}}}().toCode,jd=n(function(a,b,c){c=fe(c);return-1<g.cmp(c,fe(a))&&1>g.cmp(c,fe(b))});c(jd,g.chr("A"),g.chr("Z"));c(jd,g.chr("a"),g.chr("z"));c(jd,g.chr("0"),
g.chr("9"));c(jd,g.chr("0"),g.chr("7"));f(function(a,b){return"Ok"===b.ctor?b._0:a});var W=function(a){return{ctor:"Err",_0:a}};f(function(a,b){return"Ok"===b.ctor?a(b._0):W(b._0)});var wa=function(a){return{ctor:"Ok",_0:a}},Zg=f(function(a,b){return"Ok"===b.ctor?wa(a(b._0)):W(b._0)});n(function(a,b,e){return"Ok"===b.ctor?"Ok"===e.ctor?wa(c(a,b._0,e._0)):W(e._0):W(b._0)});E(function(a,b,c,d){return"Ok"===b.ctor?"Ok"===c.ctor?"Ok"===d.ctor?wa(m(a,b._0,c._0,d._0)):W(d._0):W(c._0):W(b._0)});V(function(a,
b,c,d,f){return"Ok"===b.ctor?"Ok"===c.ctor?"Ok"===d.ctor?"Ok"===f.ctor?wa(X(a,b._0,c._0,d._0,f._0)):W(f._0):W(d._0):W(c._0):W(b._0)});ha(function(a,b,c,d,f,g){return"Ok"===b.ctor?"Ok"===c.ctor?"Ok"===d.ctor?"Ok"===f.ctor?"Ok"===g.ctor?wa(J(a,b._0,c._0,d._0,f._0,g._0)):W(g._0):W(f._0):W(d._0):W(c._0):W(b._0)});f(function(a,b){return"Ok"===b.ctor?wa(b._0):W(a(b._0))});f(function(a,b){return"Just"===b.ctor?wa(b._0):W(a)});var $g=id.contains,ah=id.join,bh=id.concat,$e=id.isEmpty,ge=n(function(a,b,c){for(;;){var e=
c;if("RBEmpty_elm_builtin"===e.ctor)return b;c=a;b=m(a,e._1,e._2,m(ge,a,b,e._4));e=e._3;a=c;c=e}}),ch=function(a){return m(ge,n(function(a,c,d){return{ctor:"::",_0:a,_1:d}}),{ctor:"[]"},a)},ca=function(a){return m(ge,n(function(a,c,d){return{ctor:"::",_0:{ctor:"_Tuple2",_0:a,_1:c},_1:d}}),{ctor:"[]"},a)},Gb=n(function(a,b,c){for(;;){var e=c;if("RBEmpty_elm_builtin"===e.ctor)return b;c=a;b=m(a,e._1,e._2,m(Gb,a,b,e._3));e=e._4;a=c;c=e}}),af=ha(function(a,b,c,d,l,k){var e=n(function(e,d,f){for(;;){var h=
f;f=h._1;var L=h._0,l=L;if("[]"===l.ctor)return{ctor:"_Tuple2",_0:L,_1:m(c,e,d,f)};h=l._1;var k=l._0._1;l=l._0._0;if(0>g.cmp(l,e))f={ctor:"_Tuple2",_0:h,_1:m(a,l,k,f)};else return 0<g.cmp(l,e)?{ctor:"_Tuple2",_0:L,_1:m(c,e,d,f)}:{ctor:"_Tuple2",_0:h,_1:X(b,l,k,d,f)}}});l=m(Gb,e,{ctor:"_Tuple2",_0:ca(d),_1:k},l);d=l._0;l=l._1;return m(fa,f(function(b,c){return m(a,b._0,b._1,c)}),l,d)}),bf=E(function(a,b,c,d){return Rb.crash(bh({ctor:"::",_0:"Internal red-black tree invariant violated, expected ",_1:{ctor:"::",
_0:a,_1:{ctor:"::",_0:" and got ",_1:{ctor:"::",_0:Da(b),_1:{ctor:"::",_0:"/",_1:{ctor:"::",_0:c,_1:{ctor:"::",_0:"/",_1:{ctor:"::",_0:d,_1:{ctor:"::",_0:"\nPlease report this bug to \x3chttps://github.com/elm-lang/core/issues\x3e",_1:{ctor:"[]"}}}}}}}}}}))}),cf=function(a){a:do{if("RBNode_elm_builtin"===a.ctor){if("BBlack"===a._0.ctor)return!0}else if("LBBlack"===a._0.ctor)return!0;break a}while(0);return!1},dh=f(function(a,b){for(;;){if("RBEmpty_elm_builtin"===b.ctor)return a;a=c(dh,a+1,b._4);b=
b._3}}),cb=f(function(a,b){a:for(;;){if("RBEmpty_elm_builtin"===b.ctor)return p;switch(c(We,a,b._1).ctor){case "LT":b=b._3;continue a;case "EQ":return q(b._2);default:b=b._4}}}),eh=f(function(a,b){return"Just"===c(cb,a,b).ctor?!0:!1}),fh=n(function(a,b,c){for(;;){if("RBEmpty_elm_builtin"===c.ctor)return{ctor:"_Tuple2",_0:a,_1:b};b=c._2;var e=c._4;a=c._1;c=e}}),gh={ctor:"NBlack"},df={ctor:"BBlack"},ma={ctor:"Black"},kd={ctor:"Red"},hh=function(a){switch(a.ctor){case "Black":return df;case "Red":return ma;
case "NBlack":return kd;default:return Rb.crash("Can't make a double black node more black!")}},ef=function(a){switch(a.ctor){case "BBlack":return ma;case "Black":return kd;case "Red":return gh;default:return Rb.crash("Can't make a negative black node less black!")}},ih={ctor:"LBBlack"},Sb={ctor:"LBlack"},Hb=function(a){return{ctor:"RBEmpty_elm_builtin",_0:a}},ba=Hb(Sb),Z=V(function(a,b,c,d,f){return{ctor:"RBNode_elm_builtin",_0:a,_1:b,_2:c,_3:d,_4:f}}),jh=function(a){return"RBNode_elm_builtin"===
a.ctor&&"Red"===a._0.ctor?J(Z,ma,a._1,a._2,a._3,a._4):a},ff=function(a){return"RBNode_elm_builtin"===a.ctor?J(Z,ef(a._0),a._1,a._2,a._3,a._4):Hb(Sb)},ld=function(a){return function(b){return function(c){return function(e){return function(d){return function(f){return function(h){return function(g){return function(l){return function(L){return function(ua){return J(Z,ef(a),e,d,J(Z,ma,b,c,g,l),J(Z,ma,f,h,L,ua))}}}}}}}}}}},kh=function(a){return"RBEmpty_elm_builtin"===a.ctor?Hb(Sb):J(Z,ma,a._1,a._2,a._3,
a._4)},gf=function(a){return"RBEmpty_elm_builtin"===a.ctor?Rb.crash("can't make a Leaf red"):J(Z,kd,a._1,a._2,a._3,a._4)},lh=function(a){a:do{b:do{c:do{d:do{e:do{f:do{g:do if("RBNode_elm_builtin"===a.ctor)if("RBNode_elm_builtin"===a._3.ctor)if("RBNode_elm_builtin"===a._4.ctor)switch(a._3._0.ctor){case "Red":switch(a._4._0.ctor){case "Red":if("RBNode_elm_builtin"===a._3._3.ctor&&"Red"===a._3._3._0.ctor)break g;else if("RBNode_elm_builtin"===a._3._4.ctor&&"Red"===a._3._4._0.ctor)break f;else if("RBNode_elm_builtin"===
a._4._3.ctor&&"Red"===a._4._3._0.ctor)break e;else if("RBNode_elm_builtin"===a._4._4.ctor&&"Red"===a._4._4._0.ctor)break d;else break a;case "NBlack":if("RBNode_elm_builtin"===a._3._3.ctor&&"Red"===a._3._3._0.ctor)break g;else if("RBNode_elm_builtin"===a._3._4.ctor&&"Red"===a._3._4._0.ctor)break f;else if("BBlack"===a._0.ctor&&"RBNode_elm_builtin"===a._4._3.ctor&&"Black"===a._4._3._0.ctor&&"RBNode_elm_builtin"===a._4._4.ctor&&"Black"===a._4._4._0.ctor)break c;else break a;default:if("RBNode_elm_builtin"===
a._3._3.ctor&&"Red"===a._3._3._0.ctor)break g;else if("RBNode_elm_builtin"===a._3._4.ctor&&"Red"===a._3._4._0.ctor)break f;else break a}case "NBlack":switch(a._4._0.ctor){case "Red":if("RBNode_elm_builtin"===a._4._3.ctor&&"Red"===a._4._3._0.ctor)break e;else if("RBNode_elm_builtin"===a._4._4.ctor&&"Red"===a._4._4._0.ctor)break d;else if("BBlack"===a._0.ctor&&"RBNode_elm_builtin"===a._3._3.ctor&&"Black"===a._3._3._0.ctor&&"RBNode_elm_builtin"===a._3._4.ctor&&"Black"===a._3._4._0.ctor)break b;else break a;
case "NBlack":if("BBlack"===a._0.ctor)if("RBNode_elm_builtin"===a._4._3.ctor&&"Black"===a._4._3._0.ctor&&"RBNode_elm_builtin"===a._4._4.ctor&&"Black"===a._4._4._0.ctor)break c;else if("RBNode_elm_builtin"===a._3._3.ctor&&"Black"===a._3._3._0.ctor&&"RBNode_elm_builtin"===a._3._4.ctor&&"Black"===a._3._4._0.ctor)break b;else break a;else break a;default:if("BBlack"===a._0.ctor&&"RBNode_elm_builtin"===a._3._3.ctor&&"Black"===a._3._3._0.ctor&&"RBNode_elm_builtin"===a._3._4.ctor&&"Black"===a._3._4._0.ctor)break b;
else break a}default:switch(a._4._0.ctor){case "Red":if("RBNode_elm_builtin"===a._4._3.ctor&&"Red"===a._4._3._0.ctor)break e;else if("RBNode_elm_builtin"===a._4._4.ctor&&"Red"===a._4._4._0.ctor)break d;else break a;case "NBlack":if("BBlack"===a._0.ctor&&"RBNode_elm_builtin"===a._4._3.ctor&&"Black"===a._4._3._0.ctor&&"RBNode_elm_builtin"===a._4._4.ctor&&"Black"===a._4._4._0.ctor)break c;else break a;default:break a}}else switch(a._3._0.ctor){case "Red":if("RBNode_elm_builtin"===a._3._3.ctor&&"Red"===
a._3._3._0.ctor)break g;else if("RBNode_elm_builtin"===a._3._4.ctor&&"Red"===a._3._4._0.ctor)break f;else break a;case "NBlack":if("BBlack"===a._0.ctor&&"RBNode_elm_builtin"===a._3._3.ctor&&"Black"===a._3._3._0.ctor&&"RBNode_elm_builtin"===a._3._4.ctor&&"Black"===a._3._4._0.ctor)break b;else break a;default:break a}else if("RBNode_elm_builtin"===a._4.ctor)switch(a._4._0.ctor){case "Red":if("RBNode_elm_builtin"===a._4._3.ctor&&"Red"===a._4._3._0.ctor)break e;else if("RBNode_elm_builtin"===a._4._4.ctor&&
"Red"===a._4._4._0.ctor)break d;else break a;case "NBlack":if("BBlack"===a._0.ctor&&"RBNode_elm_builtin"===a._4._3.ctor&&"Black"===a._4._3._0.ctor&&"RBNode_elm_builtin"===a._4._4.ctor&&"Black"===a._4._4._0.ctor)break c;else break a;default:break a}else break a;else break a;while(0);return ld(a._0)(a._3._3._1)(a._3._3._2)(a._3._1)(a._3._2)(a._1)(a._2)(a._3._3._3)(a._3._3._4)(a._3._4)(a._4)}while(0);return ld(a._0)(a._3._1)(a._3._2)(a._3._4._1)(a._3._4._2)(a._1)(a._2)(a._3._3)(a._3._4._3)(a._3._4._4)(a._4)}while(0);
return ld(a._0)(a._1)(a._2)(a._4._3._1)(a._4._3._2)(a._4._1)(a._4._2)(a._3)(a._4._3._3)(a._4._3._4)(a._4._4)}while(0);return ld(a._0)(a._1)(a._2)(a._4._1)(a._4._2)(a._4._4._1)(a._4._4._2)(a._3)(a._4._3)(a._4._4._3)(a._4._4._4)}while(0);return J(Z,ma,a._4._3._1,a._4._3._2,J(Z,ma,a._1,a._2,a._3,a._4._3._3),J(Tb,ma,a._4._1,a._4._2,a._4._3._4,gf(a._4._4)))}while(0);return J(Z,ma,a._3._4._1,a._3._4._2,J(Tb,ma,a._3._1,a._3._2,gf(a._3._3),a._3._4._3),J(Z,ma,a._1,a._2,a._3._4._4,a._4))}while(0);return a},
Tb=V(function(a,b,c,d,f){a=J(Z,a,b,c,d,f);"RBNode_elm_builtin"===a.ctor?(b=a._0,b=g.eq(b,ma)||g.eq(b,df)):b=!0;return b?lh(a):a}),md=V(function(a,b,c,d,f){return cf(d)||cf(f)?J(Tb,hh(a),b,c,ff(d),ff(f)):J(Z,a,b,c,d,f)}),jf=V(function(a,b,c,d,f){return"RBEmpty_elm_builtin"===f.ctor?m(hf,a,d,f):J(md,a,b,c,d,J(jf,f._0,f._1,f._2,f._3,f._4))}),hf=n(function(a,b,c){if("RBEmpty_elm_builtin"===b.ctor)if("RBEmpty_elm_builtin"===c.ctor)switch(a.ctor){case "Red":return Hb(Sb);case "Black":return Hb(ih);default:return Rb.crash("cannot have bblack or nblack nodes at this point")}else{var e=
c._0;b=b._0;return"Black"===a.ctor&&"LBlack"===b.ctor&&"Red"===e.ctor?J(Z,ma,c._1,c._2,c._3,c._4):X(bf,"Black/LBlack/Red",a,Da(b),Da(e))}else{if("RBEmpty_elm_builtin"===c.ctor)return c=c._0,e=b._0,"Black"===a.ctor&&"Red"===e.ctor&&"LBlack"===c.ctor?J(Z,ma,b._1,b._2,b._3,b._4):X(bf,"Black/Red/LBlack",a,Da(e),Da(c));e=b._2;var d=b._4,f=b._1;b=J(jf,b._0,f,e,b._3,d);e=m(fh,f,e,d);return J(md,a,e._0,e._1,b,c)}}),kf=f(function(a,b){if("RBEmpty_elm_builtin"===b.ctor)return Hb(Sb);var e=b._1;return J(Z,b._0,
e,c(a,e,b._2),c(kf,a,b._3),c(kf,a,b._4))}),nd={ctor:"Same"},he={ctor:"Remove"},ie={ctor:"Insert"},Ga=n(function(a,b,e){var d=function(e){if("RBEmpty_elm_builtin"===e.ctor){var f=b(p);return"Nothing"===f.ctor?{ctor:"_Tuple2",_0:nd,_1:ba}:{ctor:"_Tuple2",_0:ie,_1:J(Z,kd,a,f._0,ba,ba)}}var h=e._2,g=e._4,L=e._3;f=e._1;e=e._0;switch(c(We,a,f).ctor){case "EQ":return h=b(q(h)),"Nothing"===h.ctor?{ctor:"_Tuple2",_0:he,_1:m(hf,e,L,g)}:{ctor:"_Tuple2",_0:nd,_1:J(Z,e,f,h._0,L,g)};case "LT":L=d(L);var ua=L._0;
L=L._1;switch(ua.ctor){case "Same":return{ctor:"_Tuple2",_0:nd,_1:J(Z,e,f,h,L,g)};case "Insert":return{ctor:"_Tuple2",_0:ie,_1:J(Tb,e,f,h,L,g)};default:return{ctor:"_Tuple2",_0:he,_1:J(md,e,f,h,L,g)}}default:switch(g=d(g),ua=g._0,g=g._1,ua.ctor){case "Same":return{ctor:"_Tuple2",_0:nd,_1:J(Z,e,f,h,L,g)};case "Insert":return{ctor:"_Tuple2",_0:ie,_1:J(Tb,e,f,h,L,g)};default:return{ctor:"_Tuple2",_0:he,_1:J(md,e,f,h,L,g)}}}};e=d(e);var f=e._1;switch(e._0.ctor){case "Same":return f;case "Insert":return jh(f);
default:return kh(f)}}),na=n(function(a,b,c){return m(Ga,a,ce(q(b)),c)});f(function(a,b){return m(na,a,b,ba)});f(function(a,b){return m(Gb,na,b,a)});var lf=f(function(a,b){var e=n(function(b,e,d){return c(a,b,e)?m(na,b,e,d):d});return m(Gb,e,ba,b)});f(function(a,b){return c(lf,f(function(a,d){return c(eh,a,b)}),a)});f(function(a,b){var e=n(function(b,e,d){var f=d._1;d=d._0;return c(a,b,e)?{ctor:"_Tuple2",_0:m(na,b,e,d),_1:f}:{ctor:"_Tuple2",_0:d,_1:m(na,b,e,f)}});return m(Gb,e,{ctor:"_Tuple2",_0:ba,
_1:ba},b)});var od=function(a){return m(fa,f(function(a,c){return m(na,a._0,a._1,c)}),ba,a)},mh=f(function(a,b){return m(Ga,a,ce(p),b)});f(function(a,b){return m(Gb,n(function(a,b,d){return c(mh,a,d)}),a,b)});var P=function(){function a(a,b){return{ctor:"\x3cdecoder\x3e",tag:"map-many",func:a,decoders:b}}function b(a){return{tag:"ok",value:a}}function c(a,b){return{tag:"primitive",type:a,value:b}}function d(a,b){return{tag:"index",index:a,rest:b}}function l(a){for(var b="_";a;)switch(a.tag){case "primitive":return b=
"Expecting "+a.type+("_"===b?"":" at "+b)+" but instead got: ",a=a.value,a=void 0===a?"undefined":JSON.stringify(a),b+a;case "index":b+="["+a.index+"]";a=a.rest;break;case "field":b+="."+a.field;a=a.rest;break;case "oneOf":a=a.problems;for(var c=0;c<a.length;c++)a[c]=l(a[c]);return"I ran into the following problems"+("_"===b?"":" at "+b)+":\n\n"+a.join("\n");case "fail":return"I ran into a `fail` decoder"+("_"===b?"":" at "+b)+": "+a.msg}}function k(a,b){a=m(a,b);return"ok"===a.tag?wa(a.value):W(l(a))}
function m(a,e){switch(a.tag){case "bool":return"boolean"===typeof e?b(e):c("a Bool",e);case "int":return"number"!==typeof e?c("an Int",e):-2147483647<e&&2147483647>e&&(e|0)===e||isFinite(e)&&!(e%1)?b(e):c("an Int",e);case "float":return"number"===typeof e?b(e):c("a Float",e);case "string":return"string"===typeof e?b(e):e instanceof String?b(e+""):c("a String",e);case "null":return null===e?b(a.value):c("null",e);case "value":return b(e);case "list":if(!(e instanceof Array))return c("a List",e);for(var f=
O.Nil,h=e.length;h--;){var l=m(a.decoder,e[h]);if("ok"!==l.tag)return d(h,l);f=O.Cons(l.value,f)}return b(f);case "array":if(!(e instanceof Array))return c("an Array",e);l=e.length;f=Array(l);for(h=l;h--;){l=m(a.decoder,e[h]);if("ok"!==l.tag)return d(h,l);f[h]=l.value}return b(Ca.fromJSArray(f));case "maybe":return l=m(a.decoder,e),"ok"===l.tag?b(q(l.value)):b(p);case "field":h=a.field;if("object"!==typeof e||null===e||!(h in e))return c("an object with a field named `"+h+"`",e);l=m(a.decoder,e[h]);
return"ok"===l.tag?l:{tag:"field",field:h,rest:l};case "index":h=a.index;if(!(e instanceof Array))return c("an array",e);if(h>=e.length)return c("a longer array. Need index "+h+" but there are only "+e.length+" entries",e);l=m(a.decoder,e[h]);return"ok"===l.tag?l:d(h,l);case "key-value":if("object"!==typeof e||null===e||e instanceof Array)return c("an object",e);h=O.Nil;for(f in e){l=m(a.decoder,e[f]);if("ok"!==l.tag)return{tag:"field",field:f,rest:l};l=g.Tuple2(f,l.value);h=O.Cons(l,h)}return b(h);
case "map-many":f=a.func;a=a.decoders;for(h=0;h<a.length;h++){l=m(a[h],e);if("ok"!==l.tag)return l;f=f(l.value)}return b(f);case "andThen":return l=m(a.decoder,e),"ok"!==l.tag?l:m(a.callback(l.value),e);case "oneOf":h=[];for(a=a.decoders;"[]"!==a.ctor;){l=m(a._0,e);if("ok"===l.tag)return l;h.push(l);a=a._1}return{tag:"oneOf",problems:h};case "fail":return{tag:"fail",msg:a.msg};case "succeed":return b(a.msg)}}function ea(a,b){if(a===b)return!0;if(a.tag!==b.tag)return!1;switch(a.tag){case "succeed":case "fail":return a.msg===
b.msg;case "bool":case "int":case "float":case "string":case "value":return!0;case "null":return a.value===b.value;case "list":case "array":case "maybe":case "key-value":return ea(a.decoder,b.decoder);case "field":return a.field===b.field&&ea(a.decoder,b.decoder);case "index":return a.index===b.index&&ea(a.decoder,b.decoder);case "map-many":return a.func!==b.func?!1:r(a.decoders,b.decoders);case "andThen":return a.callback===b.callback&&ea(a.decoder,b.decoder);case "oneOf":return r(a.decoders,b.decoders)}}
function r(a,b){var c=a.length;if(c!==b.length)return!1;for(var e=0;e<c;e++)if(!ea(a[e],b[e]))return!1;return!0}return{encode:f(function(a,b){return JSON.stringify(b,null,a)}),runOnString:f(function(a,b){try{var c=JSON.parse(b)}catch(Kg){return W("Given an invalid JSON: "+Kg.message)}return k(a,c)}),run:f(k),decodeNull:function(a){return{ctor:"\x3cdecoder\x3e",tag:"null",value:a}},decodePrimitive:function(a){return{ctor:"\x3cdecoder\x3e",tag:a}},decodeContainer:f(function(a,b){return{ctor:"\x3cdecoder\x3e",
tag:a,decoder:b}}),decodeField:f(function(a,b){return{ctor:"\x3cdecoder\x3e",tag:"field",field:a,decoder:b}}),decodeIndex:f(function(a,b){return{ctor:"\x3cdecoder\x3e",tag:"index",index:a,decoder:b}}),map1:f(function(b,c){return a(b,[c])}),map2:n(function(b,c,e){return a(b,[c,e])}),map3:E(function(b,c,e,d){return a(b,[c,e,d])}),map4:V(function(b,c,e,d,f){return a(b,[c,e,d,f])}),map5:ha(function(b,c,e,d,f,h){return a(b,[c,e,d,f,h])}),map6:Qb(function(b,c,e,d,f,h,g){return a(b,[c,e,d,f,h,g])}),map7:Fb(function(b,
c,e,d,f,h,g,l){return a(b,[c,e,d,f,h,g,l])}),map8:Jg(function(b,c,e,d,f,h,g,l,k){return a(b,[c,e,d,f,h,g,l,k])}),decodeKeyValuePairs:function(a){return{ctor:"\x3cdecoder\x3e",tag:"key-value",decoder:a}},andThen:f(function(a,b){return{ctor:"\x3cdecoder\x3e",tag:"andThen",decoder:b,callback:a}}),fail:function(a){return{ctor:"\x3cdecoder\x3e",tag:"fail",msg:a}},succeed:function(a){return{ctor:"\x3cdecoder\x3e",tag:"succeed",msg:a}},oneOf:function(a){return{ctor:"\x3cdecoder\x3e",tag:"oneOf",decoders:a}},
identity:function(a){return a},encodeNull:null,encodeArray:Ca.toJSArray,encodeList:O.toArray,encodeObject:function(a){for(var b={};"[]"!==a.ctor;){var c=a._0;b[c._0]=c._1;a=a._1}return b},equality:ea}}(),pd=P.encodeList,Ub=P.encodeObject,qd=P.encodeNull,nh=P.identity,mf=P.identity,xb=P.identity,Vb=P.identity,nf=P.encode,je=P.decodeNull,ke=P.decodePrimitive("value"),yb=P.andThen,le=P.fail,oa=P.succeed,rd=P.run,me=P.runOnString,oh=P.map4,ph=P.map3,ne=P.map2,oe=P.map1,sd=P.oneOf,pa=P.decodeField,db=
f(function(a,b){return m(jb,pa,b,a)}),td=function(a){return c(P.decodeContainer,"list",a)},ud=function(a){return sd({ctor:"::",_0:je(p),_1:{ctor:"::",_0:c(oe,q,a),_1:{ctor:"[]"}}})},kb=P.decodePrimitive("float"),Ha=P.decodePrimitive("int"),qh=P.decodePrimitive("bool"),lb=P.decodePrimitive("string");f(function(a,b){return{ctor:"_Tuple2",_0:b._0,_1:a(b._1)}});f(function(a,b){return{ctor:"_Tuple2",_0:a(b._0),_1:b._1}});var rh=function(a){return a._1},sh=function(a){return a._0},da=function(){function a(a,
b){return function(a){}}function b(a,b,d,f){function h(a){G.rawSend(T,a)}var g={},k,m=G.nativeBinding(function(b){var c=a._0;k=f(h,c);var e=a._1,l=d(c);ea(g,e,l);b(G.succeed(c))}),T=l(m,function(a,e){return G.nativeBinding(function(f){var h=c(b,a,e);e=h._0;k(e);h=h._1;var l=d(e);ea(g,h,l);f(G.succeed(e))})});return(m=e(g,h))?{ports:m}:{}}function e(a,b){var c;for(c in u){var e=u[c];if(e.isForeign){var f=f||{};f[c]="cmd"===e.tag?t(c):x(c,b)}a[c]=d(e,b)}return f}function d(a,b){var c={main:b,self:void 0},
e=a.tag,d=a.onEffects,f=a.onSelfMsg;a=l(a.init,function(a,b){if("self"===a.ctor)return m(f,c,a._0,b);a=a._0;switch(e){case "cmd":return m(d,c,a.cmds,b);case "sub":return m(d,c,a.subs,b);case "fx":return X(d,c,a.cmds,a.subs,b)}});return c.self=a}function l(a,b){function e(a){var f=G.receive(function(c){return b(c,a)});return c(d,e,f)}var d=G.andThen;a=c(d,e,a);return G.rawSpawn(a)}function k(a){return function(b){return{type:"leaf",home:a,value:b}}}function q(a){return{type:"node",branches:a}}function ea(a,
b,c){var e={};p(!0,b,e,null);p(!1,c,e,null);for(var d in a)G.rawSend(a[d],{ctor:"fx",_0:d in e?e[d]:{cmds:O.Nil,subs:O.Nil}})}function p(a,b,c,e){switch(b.type){case "leaf":var d=b.home;e=L(a,d,e,b.value);b=(b=c[d])||{cmds:O.Nil,subs:O.Nil};a?b.cmds=O.Cons(e,b.cmds):b.subs=O.Cons(e,b.subs);c[d]=b;break;case "node":for(d=b.branches;"[]"!==d.ctor;)p(a,d._0,c,e),d=d._1;break;case "map":p(a,b.tree,c,{tagger:b.tagger,rest:e})}}function L(a,b,e,d){return c(a?u[b].cmdMap:u[b].subMap,function(a){for(var b=
e;b;)a=b.tagger(a),b=b.rest;return a},d)}function r(a){if(a in u)throw Error("There can only be one port named `"+a+"`, but your program has multiple.");}function t(a){var b=[],c=u[a].converter,e=G.succeed(null);u[a].init=e;u[a].onEffects=n(function(a,d,f){for(;"[]"!==d.ctor;){a=b;f=c(d._0);for(var h=0;h<a.length;h++)a[h](f);d=d._1}return e});return{subscribe:function(a){b.push(a)},unsubscribe:function(a){b=b.slice();a=b.indexOf(a);0<=a&&b.splice(a,1)}}}function x(a,b){function e(a,b,c){h=b;return m}
function d(a){for(var c=h;"[]"!==c.ctor;)b(c._0(a)),c=c._1}var f=[],h=O.Nil,g=u[a].converter,l=function(a,b,c){a=e(a,b,c);for(b=0;b<f.length;b++)d(f[b]);f=null;k=d;l=e;return a},k=function(a){f.push(a)},m=G.succeed(null);u[a].init=m;u[a].onEffects=n(function(a,b,c){return l(a,b,c)});return{send:function(b){b=c(rd,g,b);if("Err"===b.ctor)throw Error("Trying to send an unexpected type of value through port `"+a+"`:\n"+b._0);k(b._0)}}}var u={},v=f(function(a,b){return b}),w=f(function(a,b){return function(c){return a(b(c))}});
return{sendToApp:f(function(a,b){return G.nativeBinding(function(c){a.main(b);c(G.succeed(g.Tuple0))})}),sendToSelf:f(function(a,b){return c(G.send,a.self,{ctor:"self",_0:b})}),effectManagers:u,outgoingPort:function(a,b){r(a);u[a]={tag:"cmd",cmdMap:v,converter:b,isForeign:!0};return k(a)},incomingPort:function(a,b){r(a);u[a]={tag:"sub",subMap:w,converter:b,isForeign:!0};return k(a)},htmlToProgram:function(a){var b=q(O.Nil),c=g.Tuple2(g.Tuple0,b);return of({init:c,view:function(a){return main},update:f(function(a,
b){return c}),subscriptions:function(a){return b}})},program:function(c){return function(e){return function(e,d){e.worker=function(e){if("undefined"!==typeof e)throw Error("The `"+d+"` module does not need flags.\nCall "+d+".worker() with no arguments and you should be all set!");return b(c.init,c.update,c.subscriptions,a)}}}},programWithFlags:function(e){return function(d){return function(f,h){f.worker=function(f){if("undefined"===typeof d)throw Error("Are you trying to sneak a Never value into Elm? Trickster!\nIt looks like "+
h+".main is defined with `programWithFlags` but has type `Program Never`.\nUse `program` instead if you do not want flags.");f=c(P.run,d,f);if("Err"===f.ctor)throw Error(h+".worker(...) was called with an unexpected argument.\nI tried to convert it to an Elm value, but ran into this problem:\n\n"+f._0);return b(e.init(f._0),e.update,e.subscriptions,a)}}}},initialize:b,leaf:k,batch:q,map:f(function(a,b){return{type:"map",tagger:a,tree:b}})}}(),G=function(){function a(a){return{ctor:"_Task_succeed",
value:a}}function b(a){return{ctor:"_Task_nativeBinding",callback:a,cancel:null}}function c(a){a={ctor:"_Process",id:g.guid(),root:a,stack:null,mailbox:[]};k(a);return a}function d(a,b){a.mailbox.push(b);k(a)}function l(a,b){for(;1E4>a;){var c=b.root.ctor;if("_Task_succeed"===c){for(;b.stack&&"_Task_onError"===b.stack.ctor;)b.stack=b.stack.rest;if(null===b.stack)break;b.root=b.stack.callback(b.root.value);b.stack=b.stack.rest;++a}else if("_Task_fail"===c){for(;b.stack&&"_Task_andThen"===b.stack.ctor;)b.stack=
b.stack.rest;if(null===b.stack)break;b.root=b.stack.callback(b.root.value);b.stack=b.stack.rest;++a}else if("_Task_andThen"===c)b.stack={ctor:"_Task_andThen",callback:b.root.callback,rest:b.stack},b.root=b.root.task,++a;else if("_Task_onError"===c)b.stack={ctor:"_Task_onError",callback:b.root.callback,rest:b.stack},b.root=b.root.task,++a;else{if("_Task_nativeBinding"===c){b.root.cancel=b.root.callback(function(a){b.root=a;k(b)});break}if("_Task_receive"===c){c=b.mailbox;if(0===c.length)break;b.root=
b.root.callback(c.shift());++a}else throw Error(c);}}if(1E4>a)return a+1;k(b);return a}function k(a){q.push(a);n||(setTimeout(m,0),n=!0)}function m(){for(var a=0,b;1E4>a&&(b=q.shift());)b.root&&(a=l(a,b));b?setTimeout(m,0):n=!1}var n=!1,q=[];return{succeed:a,fail:function(a){return{ctor:"_Task_fail",value:a}},nativeBinding:b,andThen:f(function(a,b){return{ctor:"_Task_andThen",callback:a,task:b}}),onError:f(function(a,b){return{ctor:"_Task_onError",callback:a,task:b}}),receive:function(a){return{ctor:"_Task_receive",
callback:a}},spawn:function(e){return b(function(b){var d=c(e);b(a(d))})},kill:function(c){return b(function(b){var e=c.root;"_Task_nativeBinding"===e.ctor&&e.cancel&&e.cancel();c.root=null;b(a(g.Tuple0))})},sleep:function(c){return b(function(b){var e=setTimeout(function(){b(a(g.Tuple0))},c);return function(){clearTimeout(e)}})},send:f(function(c,e){return b(function(b){d(c,e);b(a(g.Tuple0))})}),rawSpawn:c,rawSend:d}}(),pe=da.batch,N=pe({ctor:"[]"}),pf=pf||{};pf["!"]=f(function(a,b){return{ctor:"_Tuple2",
_0:a,_1:pe(b)}});var vd=da.map,th=da.batch,qf=th({ctor:"[]"}),wd=da.sendToSelf,Wb=da.sendToApp;yb(va);var xd=ne(f(function(a,b){return b(a)})),rf=n(function(a,b,e){return c(yb,function(d){d=c(rd,a,d);return"Ok"===d.ctor?(d=c(rd,sd({ctor:"::",_0:b,_1:{ctor:"::",_0:je(e),_1:{ctor:"[]"}}}),d._0),"Ok"===d.ctor?oa(d._0):le(d._0)):oa(e)},ke)});E(function(a,b,e,d){return c(xd,m(rf,c(db,a,ke),b,e),d)});var mb=E(function(a,b,e,d){return c(xd,m(rf,c(pa,a,ke),b,e),d)});n(function(a,b,e){return c(xd,c(db,a,b),
e)});var Ia=n(function(a,b,e){return c(xd,c(pa,a,b),e)}),sf=c(db,{ctor:"::",_0:"className",_1:{ctor:"[]"}},lb),uh=c(pa,"scrollTop",kb),vh=c(pa,"scrollLeft",kb),wh=c(pa,"offsetTop",kb),xh=c(pa,"offsetLeft",kb),yh=c(pa,"offsetHeight",kb),zh=c(pa,"offsetWidth",kb),Ah=f(function(a,b){return sd({ctor:"::",_0:c(pa,"offsetParent",je(a)),_1:{ctor:"::",_0:c(pa,"offsetParent",b),_1:{ctor:"[]"}}})}),tf=f(function(a,b){return c(yb,function(a){var b=a._1;a=a._0;return c(Ah,{ctor:"_Tuple2",_0:a,_1:b},c(tf,a,b))},
J(oh,E(function(c,d,f,g){return{ctor:"_Tuple2",_0:a+f-c,_1:b+g-d}}),vh,uh,xh,wh))}),uf=X(ph,n(function(a,b,c){return{top:a._1,left:a._0,width:b,height:c}}),c(tf,0,0),zh,yh),vf=E(function(a,b,c,d){return{top:a,left:b,width:c,height:d}}),wf=G.onError,M=G.andThen,Bh=f(function(a,b){return G.spawn(c(M,Wb(a),b._0))}),Ch=G.fail;f(function(a,b){return c(wf,function(b){return Ch(a(b))},b)});var Q=G.succeed,qe=f(function(a,b){return c(M,function(b){return Q(a(b))},b)}),Dh=n(function(a,b,e){return c(M,function(b){return c(M,
function(e){return Q(c(a,b,e))},e)},b)});E(function(a,b,e,d){return c(M,function(b){return c(M,function(e){return c(M,function(c){return Q(m(a,b,e,c))},d)},e)},b)});V(function(a,b,e,d,f){return c(M,function(b){return c(M,function(e){return c(M,function(d){return c(M,function(c){return Q(X(a,b,e,d,c))},f)},d)},e)},b)});ha(function(a,b,e,d,f,g){return c(M,function(b){return c(M,function(e){return c(M,function(d){return c(M,function(f){return c(M,function(c){return Q(J(a,b,e,d,f,c))},g)},f)},d)},e)},
b)});var Xb=function(a){return"[]"===a.ctor?Q({ctor:"[]"}):m(Dh,f(function(a,c){return{ctor:"::",_0:a,_1:c}}),a._0,Xb(a._1))},Eh=n(function(a,b,e){return c(qe,function(a){return{ctor:"_Tuple0"}},Xb(c(D,Bh(a),b)))}),Fh=Q({ctor:"_Tuple0"}),Gh=n(function(a,b,c){return Q({ctor:"_Tuple0"})}),xf=da.leaf("Task");f(function(a,b){return xf({ctor:"Perform",_0:c(qe,a,b)})});var Yb=f(function(a,b){return xf({ctor:"Perform",_0:c(wf,function(b){return Q(a(W(b)))},c(M,function(b){return Q(a(wa(b)))},b))})}),Hh=
f(function(a,b){return{ctor:"Perform",_0:c(qe,a,b._0)}});da.effectManagers.Task={pkg:"elm-lang/core",init:Fh,onEffects:Eh,onSelfMsg:Gh,tag:"cmd",cmdMap:Hh};var yf=function(){return{now:G.nativeBinding(function(a){a(G.succeed(Date.now()))}),setInterval_:f(function(a,b){return G.nativeBinding(function(c){var e=setInterval(function(){G.rawSpawn(b)},a);return function(){clearInterval(e)}})})}}(),Ih=yf.setInterval_,zf=n(function(a,b,e){if("[]"===b.ctor)return Q(e);var d=b._0,f=G.spawn(c(Ih,d,c(wd,a,d)));
return c(M,function(c){return m(zf,a,b._1,m(na,d,c,e))},f)}),Jh=f(function(a,b){var e=a._1;a=a._0;var d=c(cb,a,b);return"Nothing"===d.ctor?m(na,a,{ctor:"::",_0:e,_1:{ctor:"[]"}},b):m(na,a,{ctor:"::",_0:e,_1:d._0},b)}),Af=yf.now,Kh=n(function(a,b,e){var d=c(cb,b,e.taggers);return"Nothing"===d.ctor?Q(e):c(M,function(a){return Q(e)},c(M,function(b){return Xb(c(D,function(e){return c(Wb,a,e(b))},d._0))},Af))}),Lh=da.leaf("Time"),Bf=f(function(a,b){return{taggers:a,processes:b}}),Mh=Q(c(Bf,ba,ba)),Nh=
n(function(a,b,e){var d=n(function(a,b,e){return{ctor:"_Tuple3",_0:e._0,_1:e._1,_2:c(M,function(a){return e._2},G.kill(b))}}),f=E(function(a,b,c,e){return{ctor:"_Tuple3",_0:e._0,_1:m(na,a,c,e._1),_2:e._2}}),g=n(function(a,b,c){return{ctor:"_Tuple3",_0:{ctor:"::",_0:a,_1:c._0},_1:c._1,_2:c._2}}),k=m(fa,Jh,ba,b);b=Ve(af,g,f,d,k,e.processes,{ctor:"_Tuple3",_0:{ctor:"[]"},_1:ba,_2:Q({ctor:"_Tuple0"})});var q=b._0,p=b._1;return c(M,function(a){return Q(c(Bf,k,a))},c(M,function(b){return m(zf,a,q,p)},b._2))}),
Cf=f(function(a,b){return{ctor:"Every",_0:a,_1:b}});f(function(a,b){return Lh(c(Cf,a,b))});var Oh=f(function(a,b){return c(Cf,b._0,function(c){return a(b._1(c))})});da.effectManagers.Time={pkg:"elm-lang/core",init:Mh,onEffects:Nh,onSelfMsg:Kh,tag:"sub",subMap:Oh};var Ph=function(){return{create:function(){return G.nativeBinding(function(a){var b=requestAnimationFrame(function(){a(G.succeed(Date.now()))});return function(){cancelAnimationFrame(b)}})}}}(),Df=G.kill,re=G.spawn,Ef=Ph.create({ctor:"_Tuple0"}),
Qh=da.leaf("AnimationFrame"),Ib=n(function(a,b,c){return{subs:a,request:b,oldTime:c}}),Rh=Q(m(Ib,{ctor:"[]"},p,0)),Sh=n(function(a,b,e){var d=e.request,f=e.oldTime;return"Nothing"===d.ctor?"[]"===b.ctor?Q(m(Ib,{ctor:"[]"},p,f)):c(M,function(a){return c(M,function(c){return Q(m(Ib,b,q(a),c))},Af)},re(c(M,wd(a),Ef))):"[]"===b.ctor?c(M,function(a){return Q(m(Ib,{ctor:"[]"},p,f))},Df(d._0)):Q(m(Ib,b,d,f))}),Th=n(function(a,b,e){var d=e.subs,f=b-e.oldTime,g=function(e){return"Time"===e.ctor?c(Wb,a,e._0(b)):
c(Wb,a,e._0(f))};return c(M,function(a){return c(M,function(c){return Q(m(Ib,d,q(a),b))},Xb(c(D,g,d)))},re(c(M,wd(a),Ef)))}),Uh=f(function(a,b){return"Time"===b.ctor?{ctor:"Time",_0:function(c){return a(b._0(c))}}:{ctor:"Diff",_0:function(c){return a(b._0(c))}}});da.effectManagers.AnimationFrame={pkg:"elm-lang/animation-frame",init:Rh,onEffects:Sh,onSelfMsg:Th,tag:"sub",subMap:Uh};var Ff=function(){function a(a){return function(b,e,d){return G.nativeBinding(function(f){function h(a){a=c(rd,e,a);"Ok"===
a.ctor&&G.rawSpawn(d(a._0))}a.addEventListener(b,h);return function(){a.removeEventListener(b,h)}})}}function b(a,b){return G.nativeBinding(function(c){l(function(){var e=document.getElementById(a);null===e?c(G.fail({ctor:"NotFound",_0:a})):c(G.succeed(b(e)))})})}var e={addEventListener:function(){},removeEventListener:function(){}},d=a("undefined"!==typeof document?document:e);e=a("undefined"!==typeof window?window:e);var l="undefined"!==typeof requestAnimationFrame?requestAnimationFrame:function(a){a()};
return{onDocument:n(d),onWindow:n(e),focus:function(a){return b(a,function(a){a.focus();return g.Tuple0})},blur:function(a){return b(a,function(a){a.blur();return g.Tuple0})},getScrollTop:function(a){return b(a,function(a){return a.scrollTop})},setScrollTop:f(function(a,c){return b(a,function(a){a.scrollTop=c;return g.Tuple0})}),getScrollLeft:function(a){return b(a,function(a){return a.scrollLeft})},setScrollLeft:f(function(a,c){return b(a,function(a){a.scrollLeft=c;return g.Tuple0})}),toBottom:function(a){return b(a,
function(a){a.scrollTop=a.scrollHeight;return g.Tuple0})},toRight:function(a){return b(a,function(a){a.scrollLeft=a.scrollWidth;return g.Tuple0})},height:f(function(a,c){return b(c,function(b){switch(a.ctor){case "Content":return b.scrollHeight;case "VisibleContent":return b.clientHeight;case "VisibleContentWithBorders":return b.offsetHeight;case "VisibleContentWithBordersAndMargins":return b=b.getBoundingClientRect(),b.bottom-b.top}})}),width:f(function(a,c){return b(c,function(b){switch(a.ctor){case "Content":return b.scrollWidth;
case "VisibleContent":return b.clientWidth;case "VisibleContentWithBorders":return b.offsetWidth;case "VisibleContentWithBordersAndMargins":return b=b.getBoundingClientRect(),b.right-b.left}})})}}(),yd=Ff.focus,Vh=Ff.onDocument,eb=function(){function a(a,b,c){return{type:"thunk",func:a,args:b,thunk:c,node:void 0}}function b(a){for(var b,c={};"[]"!==a.ctor;){var d=a._0,e=d.key;if("ATTR"===e||"ATTR_NS"===e||"EVENT"===e){var f=c[e]||{};f[d.realKey]=d.value;c[e]=f}else if("STYLE"===e){f=c[e]||{};for(d=
d.value;"[]"!==d.ctor;){var g=d._0;f[g._0]=g._1;d=d._1}c[e]=f}else"namespace"===e?b=d.value:"className"===e?(f=c[e],c[e]="undefined"===typeof f?d.value:f+" "+d.value):c[e]=d.value;a=a._1}return{facts:c,namespace:b}}function e(a,b,c){return{key:"EVENT",realKey:a,value:{options:b,decoder:c}}}function d(a,b){switch(a.type){case "thunk":return a.node||(a.node=a.thunk()),d(a.node,b);case "tagger":var c=a.node;for(a=a.tagger;"tagger"===c.type;)"object"!==typeof a?a=[a,c.tagger]:a.push(c.tagger),c=c.node;
b={tagger:a,parent:b};c=d(c,b);c.elm_event_node_ref=b;return c;case "text":return I.createTextNode(a.text);case "node":c=a.namespace?I.createElementNS(a.namespace,a.tag):I.createElement(a.tag);l(c,b,a.facts);a=a.children;for(var e=0;e<a.length;e++)c.appendChild(d(a[e],b));return c;case "keyed-node":c=a.namespace?I.createElementNS(a.namespace,a.tag):I.createElement(a.tag);l(c,b,a.facts);a=a.children;for(e=0;e<a.length;e++)c.appendChild(d(a[e]._1,b));return c;case "custom":return c=a.impl.render(a.model),
l(c,b,a.facts),c}}function l(a,b,c){for(var e in c){var d=c[e];switch(e){case "STYLE":var f=void 0,g=a.style;for(f in d)g[f]=d[f];break;case "EVENT":f=void 0;g=a;var h=b,l=g.elm_handlers||{};for(f in d){var Y=l[f],wb=d[f];"undefined"===typeof wb?(g.removeEventListener(f,Y),l[f]=void 0):"undefined"===typeof Y?(Y=k(h,wb),g.addEventListener(f,Y),l[f]=Y):Y.info=wb}g.elm_handlers=l;break;case "ATTR":f=void 0;g=a;for(f in d)h=d[f],"undefined"===typeof h?g.removeAttribute(f):g.setAttribute(f,h);break;case "ATTR_NS":f=
void 0;g=a;for(f in d)l=d[f],h=l.namespace,l=l.value,"undefined"===typeof l?g.removeAttributeNS(h,f):g.setAttributeNS(h,f,l);break;case "value":a[e]!==d&&(a[e]=d);break;default:a[e]=d}}}function k(a,b){function d(b){var e=d.info,f=c(P.run,e.decoder,b);if("Ok"===f.ctor)for(e=e.options,e.stopPropagation&&b.stopPropagation(),e.preventDefault&&b.preventDefault(),b=f._0,f=a;f;){e=f.tagger;if("function"===typeof e)b=e(b);else for(var g=e.length;g--;)b=e[g](b);f=f.parent}}d.info=b;return d}function q(a,
b){var c=[];r(a,b,c,0);return c}function p(a,b,c){return{index:b,type:a,data:c,domNode:void 0,eventNode:void 0}}function r(a,b,c,e){if(a!==b){var d=b.type;if(a.type!==d)c.push(p("p-redraw",e,b));else switch(d){case "thunk":for(var f=a.args,g=b.args,h=f.length,l=a.func===b.func&&h===g.length;l&&h--;)l=f[h]===g[h];if(l){b.node=a.node;break}b.node=b.thunk();f=[];r(a.node,b.node,f,0);0<f.length&&c.push(p("p-thunk",e,f));break;case "tagger":l=a.tagger;f=b.tagger;var k=!1;for(g=a.node;"tagger"===g.type;)k=
!0,"object"!==typeof l?l=[l,g.tagger]:l.push(g.tagger),g=g.node;for(h=b.node;"tagger"===h.type;)k=!0,"object"!==typeof f?f=[f,h.tagger]:f.push(h.tagger),h=h.node;if(k&&l.length!==f.length){c.push(p("p-redraw",e,b));break}if(k){a:{for(k=0;k<l.length;k++)if(l[k]!==f[k]){l=!1;break a}l=!0}l=!l}else l=l!==f;l&&c.push(p("p-tagger",e,f));r(g,h,c,e+1);break;case "text":a.text!==b.text&&c.push(p("p-text",e,b.text));break;case "node":if(a.tag!==b.tag||a.namespace!==b.namespace){c.push(p("p-redraw",e,b));break}d=
t(a.facts,b.facts);"undefined"!==typeof d&&c.push(p("p-facts",e,d));f=a.children;g=b.children;h=f.length;l=g.length;h>l?c.push(p("p-remove-last",e,h-l)):h<l&&c.push(p("p-append",e,g.slice(h)));h=h<l?h:l;for(l=0;l<h;l++)e++,k=f[l],r(k,g[l],c,e),e+=k.descendantsCount||0;break;case "keyed-node":if(a.tag!==b.tag||a.namespace!==b.namespace){c.push(p("p-redraw",e,b));break}d=t(a.facts,b.facts);"undefined"!==typeof d&&c.push(p("p-facts",e,d));d=[];var Y={},m=[];a=a.children;b=b.children;for(var wb=a.length,
q=b.length,n=0,la=0,U=e;n<wb&&la<q;){var v=a[n],w=b[la],z=v._0,T=w._0,y=v._1;v=w._1;if(z===T)U++,r(y,v,d,U),U+=y.descendantsCount||0,n++,la++;else{w=n+1<wb;var B=la+1<q;w&&(l=a[n+1],f=l._0,l=l._1,k=T===f);if(B){var A=b[la+1];g=A._0;A=A._1;var C=z===g}if(w&&B&&C&&k)U++,r(y,A,d,U),u(Y,d,z,v,la,m),U+=y.descendantsCount||0,U++,x(Y,d,z,l,U),U+=l.descendantsCount||0,n+=2,la+=2;else if(B&&C)U++,u(Y,d,T,v,la,m),r(y,A,d,U),U+=y.descendantsCount||0,n+=1,la+=2;else if(w&&k)U++,x(Y,d,z,y,U),U+=y.descendantsCount||
0,U++,r(l,v,d,U),U+=l.descendantsCount||0,n+=2,la+=1;else if(w&&B&&f===g)U++,x(Y,d,z,y,U),u(Y,d,T,v,la,m),U+=y.descendantsCount||0,U++,r(l,A,d,U),U+=l.descendantsCount||0,n+=2,la+=2;else break}}for(;n<wb;)U++,v=a[n],y=v._1,x(Y,d,v._0,y,U),U+=y.descendantsCount||0,n++;for(;la<q;)h=h||[],w=b[la],u(Y,d,w._0,w._1,void 0,h),la++;(0<d.length||0<m.length||"undefined"!==typeof h)&&c.push(p("p-reorder",e,{patches:d,inserts:m,endInserts:h}));break;case "custom":a.impl!==b.impl?c.push(p("p-redraw",e,b)):(d=
t(a.facts,b.facts),"undefined"!==typeof d&&c.push(p("p-facts",e,d)),(f=b.impl.diff(a,b))&&c.push(p("p-custom",e,f)))}}}function t(a,b,c){var d;for(d in a)if("STYLE"===d||"EVENT"===d||"ATTR"===d||"ATTR_NS"===d){var e=t(a[d],b[d]||{},d);if(e){var f=f||{};f[d]=e}}else if(d in b){e=a[d];var g=b[d],h;!(h=e===g&&"value"!==d)&&(h="EVENT"===c)&&(h=e.options===g.options||e.options.stopPropagation===g.options.stopPropagation&&e.options.preventDefault===g.options.preventDefault?P.equality(e.decoder,g.decoder):
!1);h||(f=f||{},f[d]=g)}else f=f||{},f[d]="undefined"===typeof c?"string"===typeof a[d]?"":null:"STYLE"===c?"":"EVENT"===c||"ATTR"===c?void 0:{namespace:a[d].namespace,value:void 0};for(var l in b)l in a||(f=f||{},f[l]=b[l]);return f}function u(a,b,c,d,e,f){var g=a[c];"undefined"===typeof g?(g={tag:"insert",vnode:d,index:e,data:void 0},f.push({index:e,entry:g}),a[c]=g):"remove"===g.tag?(f.push({index:e,entry:g}),g.tag="move",a=[],r(g.vnode,d,a,g.index),g.index=e,g.data.data={patches:a,entry:g}):u(a,
b,c+W,d,e,f)}function x(a,b,c,d,e){var f=a[c];"undefined"===typeof f?(f=p("p-remove",e,void 0),b.push(f),a[c]={tag:"remove",vnode:d,index:e,data:f}):"insert"===f.tag?(f.tag="move",a=[],r(d,f.vnode,a,e),f=p("p-remove",e,{patches:a,entry:f}),b.push(f)):x(a,b,c+W,d,e)}function v(a,b,c,d,e,f,g){for(var h=c[d],l=h.index;l===e;){var k=h.type;"p-thunk"===k?(k=b.node,v(a,k,h.data,0,0,k.descendantsCount,g)):"p-reorder"===k?(h.domNode=a,h.eventNode=g,k=h.data.patches,0<k.length&&v(a,b,k,0,e,f,g)):"p-remove"===
k?(h.domNode=a,h.eventNode=g,k=h.data,"undefined"!==typeof k&&(k.entry.data=a,k=k.patches,0<k.length&&v(a,b,k,0,e,f,g))):(h.domNode=a,h.eventNode=g);d++;if(!(h=c[d])||(l=h.index)>f)return d}switch(b.type){case "tagger":for(g=b.node;"tagger"===g.type;)g=g.node;return v(a,g,c,d,e+1,f,a.elm_event_node_ref);case "node":b=b.children;a=a.childNodes;for(k=0;k<b.length;k++){e++;var m=b[k],Y=e+(m.descendantsCount||0);if(e<=l&&l<=Y&&(d=v(a[k],m,c,d,e,Y,g),!(h=c[d])||(l=h.index)>f))break;e=Y}return d;case "keyed-node":b=
b.children;a=a.childNodes;for(k=0;k<b.length;k++){e++;m=b[k]._1;Y=e+(m.descendantsCount||0);if(e<=l&&l<=Y&&(d=v(a[k],m,c,d,e,Y,g),!(h=c[d])||(l=h.index)>f))break;e=Y}return d;case "text":case "thunk":throw Error("should never traverse `text` or `thunk` nodes like this");}}function w(a,b,c,d){if(0===c.length)return a;v(a,b,c,0,0,b.descendantsCount,d);return z(a,c)}function z(a,b){for(var c=0;c<b.length;c++){var d=b[c],e=d.domNode;d=y(e,d);e===a&&(a=d)}return a}function y(a,b){switch(b.type){case "p-redraw":var c=
a.parentNode;b=d(b.data,b.eventNode);"undefined"===typeof b.elm_event_node_ref&&(b.elm_event_node_ref=a.elm_event_node_ref);c&&b!==a&&c.replaceChild(b,a);return b;case "p-facts":return l(a,b.eventNode,b.data),a;case "p-text":return a.replaceData(0,a.length,b.data),a;case "p-thunk":return z(a,b.data);case "p-tagger":return"undefined"!==typeof a.elm_event_node_ref?a.elm_event_node_ref.tagger=b.data:a.elm_event_node_ref={tagger:b.data,parent:b.eventNode},a;case "p-remove-last":for(c=b.data;c--;)a.removeChild(a.lastChild);
return a;case "p-append":var e=b.data;for(c=0;c<e.length;c++)a.appendChild(d(e[c],b.eventNode));return a;case "p-remove":b=b.data;if("undefined"===typeof b)return a.parentNode.removeChild(a),a;c=b.entry;"undefined"!==typeof c.index&&a.parentNode.removeChild(a);c.data=z(a,b.patches);return a;case "p-reorder":e=b.data;c=e.endInserts;if("undefined"!==typeof c){for(var f=I.createDocumentFragment(),g=0;g<c.length;g++){var h=c[g].entry;f.appendChild("move"===h.tag?h.data:d(h.vnode,b.eventNode))}c=f}else c=
void 0;a=z(a,e.patches);e=e.inserts;for(f=0;f<e.length;f++)g=e[f],h=g.entry,h="move"===h.tag?h.data:d(h.vnode,b.eventNode),a.insertBefore(h,a.childNodes[g.index]);"undefined"!==typeof c&&a.appendChild(c);return a;case "p-custom":return b=b.data,b.applyPatch(a,b.data);default:throw Error("Ran into an unknown patch!");}}function B(a){return f(function(b,e){return function(d){return function(f,g,h){var l=a(d,g);"undefined"===typeof h?C(e,f,g,l):H(c(b,h,e),f,g,l)}}})}function A(a,b){b&&(b.innerHTML='\x3cdiv style\x3d"padding-left:1em;"\x3e\x3ch2 style\x3d"font-weight:normal;"\x3e\x3cb\x3eOops!\x3c/b\x3e Something went wrong when starting your Elm program.\x3c/h2\x3e\x3cpre style\x3d"padding-left:1em;"\x3e'+
a+"\x3c/pre\x3e\x3c/div\x3e");throw Error(a);}function C(a,b,c,e){b.embed=function(b,c){for(;b.lastChild;)b.removeChild(b.lastChild);return da.initialize(e(a.init,c,b),a.update,a.subscriptions,D(b,a.view))};b.fullscreen=function(b){return da.initialize(e(a.init,b,document.body),a.update,a.subscriptions,D(document.body,a.view))}}function D(a,b){return function(c,e){c={tagger:c,parent:void 0};e=b(e);var f=d(e,c);a.appendChild(f);return F(f,b,e,c)}}function F(a,b,c,e){function d(){switch(f){case "NO_REQUEST":throw Error("Unexpected draw callback.\nPlease report this to \x3chttps://github.com/elm-lang/virtual-dom/issues\x3e.");
case "PENDING_REQUEST":Z(d);f="EXTRA_REQUEST";var c=b(h),l=q(g,c);a=w(a,g,l,e);g=c;break;case "EXTRA_REQUEST":f="NO_REQUEST"}}var f="NO_REQUEST",g=c,h;return function(a){"NO_REQUEST"===f&&Z(d);f="PENDING_REQUEST";h=a}}function H(a,b,c,e){b.fullscreen=function(b){var d={doc:void 0};return da.initialize(e(a.init,b,document.body),a.update(J(d)),a.subscriptions,K(c,document.body,d,a.view,a.viewIn,a.viewOut))};b.embed=function(b,d){var f={doc:void 0};return da.initialize(e(a.init,d,b),a.update(J(f)),a.subscriptions,
K(c,b,f,a.view,a.viewIn,a.viewOut))}}function J(a){return G.nativeBinding(function(b){var c=a.doc;c&&(c=c.getElementsByClassName("debugger-sidebar-messages")[0])&&(c.scrollTop=c.scrollHeight);b(G.succeed(g.Tuple0))})}function K(a,b,c,e,f,g){return function(h,l){var k={tagger:h,parent:void 0};h={tagger:h,parent:void 0};var m=e(l),n=d(m,k);b.appendChild(n);var p=F(n,e,m,k);m=f(l)._1;n=d(m,h);b.appendChild(n);k=R(k,n,f);var q=F(n,k,m,h),r=M(l,g,h,b,a,c);return function(a){p(a);q(a);r(a)}}}function M(a,
b,c,e,d,f){var g,h;return function(a){if(a.isDebuggerOpen)if(f.doc){I=f.doc;a=b(a);var e=q(g,a);h=w(h,g,e,c);g=a;I=document}else g=b(a),h=Q(d,f,g,c)}}function Q(a,b,c,e){function f(){b.doc=void 0;g.close()}var g=window.open("","","width\x3d900,height\x3d360,left\x3d"+(screen.width-900)+",top\x3d"+(screen.height-360));I=g.document;b.doc=I;I.title="Debugger - "+a;I.body.style.margin="0";I.body.style.padding="0";a=d(c,e);I.body.appendChild(a);I.addEventListener("keydown",function(a){a.metaKey&&82===
a.which&&window.location.reload();38===a.which&&(e.tagger({ctor:"Up"}),a.preventDefault());40===a.which&&(e.tagger({ctor:"Down"}),a.preventDefault())});window.addEventListener("unload",f);g.addEventListener("unload",function(){b.doc=void 0;window.removeEventListener("unload",f);e.tagger({ctor:"Close"})});I=document;return a}function R(a,b,c){var e=V(b),d="Normal",f,g=a.tagger,h=function(){};return function(b){b=c(b);var l=b._0.ctor;a.tagger="Normal"===l?g:h;d!==l&&(O("removeEventListener",e,d),O("addEventListener",
e,l),"Normal"===d&&(f=document.body.style.overflow,document.body.style.overflow="hidden"),"Normal"===l&&(document.body.style.overflow=f),d=l);return b._1}}function O(a,b,c){switch(c){case "Pause":return S(a,b,aa);case "Message":return S(a,b,ca)}}function S(a,b,c){for(var e=0;e<c.length;e++)document.body[a](c[e],b,!0)}function V(a){return function(b){if("keydown"!==b.type||!b.metaKey||82!==b.which){for(var c="scroll"===b.type||"wheel"===b.type,e=b.target;null!==e;){if("elm-overlay-message-details"===
e.className&&c||e===a&&!c)return;e=e.parentNode}b.stopPropagation();b.preventDefault()}}}var I="undefined"!==typeof document?document:{},W="_elmW6BL",X=B(function(a,b){return function(a,c,e){if("undefined"===typeof c)return a;A("The `"+b+"` module does not need flags.\nInitialize it with no arguments and you should be all set!",e)}}),ba=B(function(a,b){return function(e,d,f){if("undefined"===typeof a){var g="Are you trying to sneak a Never value into Elm? Trickster!\nIt looks like "+b+".main is defined with `programWithFlags` but has type `Program Never`.\nUse `program` instead if you do not want flags.";
A(g,f)}d=c(P.run,a,d);if("Ok"===d.ctor)return e(d._0);g="Trying to initialize the `"+b+"` module with an unexpected flag.\nI tried to convert it to an Elm value, but ran into this problem:\n\n"+d._0;A(g,f)}}),Z="undefined"!==typeof requestAnimationFrame?requestAnimationFrame:function(a){setTimeout(a,1E3/60)},aa="click dblclick mousemove mouseup mousedown mouseenter mouseleave touchstart touchend touchcancel touchmove pointerdown pointerup pointerover pointerout pointerenter pointerleave pointermove pointercancel dragstart drag dragend dragenter dragover dragleave drop keyup keydown keypress input change focus blur".split(" "),
ca=aa.concat("wheel","scroll");return{node:function(a){return f(function(c,e){var d=b(c);c=d.namespace;d=d.facts;for(var f=[],g=0;"[]"!==e.ctor;){var h=e._0;g+=h.descendantsCount||0;f.push(h);e=e._1}g+=f.length;return{type:"node",tag:a,facts:d,children:f,namespace:c,descendantsCount:g}})},text:function(a){return{type:"text",text:a}},custom:function(a,c,e){return{type:"custom",facts:b(a).facts,model:c,impl:e}},map:f(function(a,b){return{type:"tagger",tagger:a,node:b,descendantsCount:1+(b.descendantsCount||
0)}}),on:n(e),style:function(a){return{key:"STYLE",value:a}},property:f(function(a,b){return{key:a,value:b}}),attribute:f(function(a,b){return{key:"ATTR",realKey:a,value:b}}),attributeNS:n(function(a,b,c){return{key:"ATTR_NS",realKey:b,value:{value:c,namespace:a}}}),mapProperty:f(function(a,b){return"EVENT"!==b.key?b:e(b.realKey,b.value.options,c(oe,a,b.value.decoder))}),lazy:f(function(b,c){return a(b,[c],function(){return b(c)})}),lazy2:n(function(b,e,d){return a(b,[e,d],function(){return c(b,e,
d)})}),lazy3:E(function(b,c,e,d){return a(b,[c,e,d],function(){return m(b,c,e,d)})}),keyedNode:n(function(a,c,e){var d=b(c);c=d.namespace;d=d.facts;for(var f=[],g=0;"[]"!==e.ctor;){var h=e._0;g+=h._1.descendantsCount||0;f.push(h);e=e._1}g+=f.length;return{type:"keyed-node",tag:a,facts:d,children:f,namespace:c,descendantsCount:g}}),program:X,programWithFlags:ba,staticProgram:function(a){var b=g.Tuple2(g.Tuple0,N);return c(X,void 0,{init:b,view:function(){return a},update:f(function(){return b}),subscriptions:function(){return qf}})()}}}(),
of=function(a){return c(eb.program,void 0,a)},Zb=eb.keyedNode,Gf={stopPropagation:!1,preventDefault:!1},zd=eb.on,Ad=f(function(a,b){return m(zd,a,Gf,b)}),za=eb.style,Jb=eb.attribute,Hf=eb.property,$b=eb.map,F=eb.text,r=eb.node;f(function(a,b){return{stopPropagation:a,preventDefault:b}});var Wh=of;r("body");r("section");r("nav");r("article");r("aside");var se=r("h1"),te=r("h2"),If=r("h3"),Jf=r("h4"),Kf=r("h5"),Lf=r("h6"),Mf=r("header");r("footer");r("address");r("main");var Xh=r("p");r("hr");r("pre");
var Yh=r("blockquote");r("ol");var ac=r("ul"),Nf=r("li");r("dl");r("dt");r("dd");r("figure");r("figcaption");var H=r("div"),aa=r("a");r("em");r("strong");var Of=r("small");r("s");r("cite");r("q");r("dfn");r("abbr");r("time");r("code");r("var");r("samp");r("kbd");r("sub");r("sup");var Kb=r("i");r("b");r("u");r("mark");r("ruby");r("rt");r("rp");r("bdi");r("bdo");var Zh=r("span");r("br");r("wbr");r("ins");r("del");var Pf=r("img");r("iframe");r("embed");r("object");r("param");r("video");r("audio");r("source");
r("track");r("canvas");r("math");r("table");r("caption");r("colgroup");r("col");r("tbody");r("thead");r("tfoot");r("tr");r("td");r("th");var $h=r("form");r("fieldset");r("legend");var Bd=r("label"),ue=r("input"),zb=r("button");r("select");r("datalist");r("optgroup");r("option");r("textarea");r("keygen");r("output");r("progress");r("meter");r("details");r("summary");r("menuitem");r("menu");var Ja=f(function(a,b){return c(Hf,a,Vb(b))}),d=function(a){return c(Ja,"className",a)},bc=function(a){return c(Ja,
"id",a)},Ab=function(a){return c(Ja,"type",a)},ve=function(a){return c(Ja,"value",a)},we=function(a){return c(Ja,"defaultValue",a)},ai=function(a){return c(Ja,"placeholder",a)},Cd=function(a){return c(Ja,"action",a)},qa=function(a){return c(Ja,"href",a)},Lb=f(function(a,b){return c(Hf,a,nh(b))}),I=function(a){return d(c(ah," ",c(D,sh,c(hd,rh,a))))};c(pa,"keyCode",Ha);c(db,{ctor:"::",_0:"target",_1:{ctor:"::",_0:"checked",_1:{ctor:"[]"}}},qh);var bi=c(db,{ctor:"::",_0:"target",_1:{ctor:"::",_0:"value",
_1:{ctor:"[]"}}},lb),ci=g.update(Gf,{preventDefault:!0}),Dd=function(a){return m(zd,"submit",ci,oa(a))},cc=function(a){return c(Ad,"input",c(oe,a,bi))},R=function(a){return c(Ad,"click",oa(a))};f(function(a,b){return{stopPropagation:a,preventDefault:b}});Zb("ol");Zb("ul");var xe=function(){function a(a,b){"Nothing"!==b.ctor&&a.addEventListener("progress",function(a){a.lengthComputable&&G.rawSpawn(b._0({bytes:a.loaded,bytesExpected:a.total}))})}function b(a,b){c(D,function(b){a.setRequestHeader(b._0,
b._1)},b.headers);a.responseType=b.expect.responseType;a.withCredentials=b.withCredentials;"Just"===b.timeout.ctor&&(a.timeout=b.timeout._0)}function e(a,b){switch(b.ctor){case "EmptyBody":a.send();break;case "StringBody":a.setRequestHeader("Content-Type",b._0);a.send(b._1);break;case "FormDataBody":a.send(b._0)}}function d(a){var b=ba;if(!a)return b;a=a.split("\r\n");for(var c=a.length;c--;){var e=a[c],d=e.indexOf(": ");if(0<d){var f=e.substring(0,d),g=e.substring(d+2);b=m(Ga,f,function(a){return"Just"===
a.ctor?q(g+", "+a._0):q(g)},b)}}return b}return{toTask:f(function(c,f){return G.nativeBinding(function(g){var h=new XMLHttpRequest;a(h,f);h.addEventListener("error",function(){g(G.fail({ctor:"NetworkError"}))});h.addEventListener("timeout",function(){g(G.fail({ctor:"Timeout"}))});h.addEventListener("load",function(){var a=c.expect.responseToResult;var b={status:{code:h.status,message:h.statusText},headers:d(h.getAllResponseHeaders()),url:h.responseURL,body:h.response};200>h.status||300<=h.status?
(b.body=h.responseText,b=G.fail({ctor:"BadStatus",_0:b})):(a=a(b),"Ok"===a.ctor?b=G.succeed(a._0):(b.body=h.responseText,b=G.fail({ctor:"BadPayload",_0:a._0,_1:b})));g(b)});try{h.open(c.method,c.url,!0)}catch(be){return g(G.fail({ctor:"BadUrl",_0:c.url}))}b(h,c);e(h,c.body);return function(){h.abort()}})}),expectStringResponse:function(a){return{responseType:"text",responseToResult:a}},mapExpect:f(function(a,b){return{responseType:b.responseType,responseToResult:function(e){e=b.responseToResult(e);
return c(Zg,a,e)}}}),multipart:function(a){for(var b=new FormData;"[]"!==a.ctor;){var c=a._0;b.append(c._0,c._1);a=a._1}return{ctor:"FormDataBody",_0:b}},encodeUri:function(a){return encodeURIComponent(a)},decodeUri:function(a){try{return q(decodeURIComponent(a))}catch(T){return p}}}}();f(function(a,b){return g.update(b,{expect:c(xe.mapExpect,a,b.expect)})});Qb(function(a,b,c,d,f,g,k){return{method:a,headers:b,url:c,body:d,expect:f,timeout:g,withCredentials:k}});var di=f(function(a,b){return{ctor:"StringBody",
_0:a,_1:b}});f(function(a,b){return{ctor:"Header",_0:a,_1:b}});var Qf=xe.expectStringResponse,Rf=function(a){return Qf(function(b){return c(me,a,b.body)})};Qf(function(a){return wa(a.body)});var ei={ctor:"EmptyBody"},fi=n(function(a,b,c){return{ctor:"Request",_0:{method:"POST",headers:{ctor:"[]"},url:a,body:b,expect:Rf(c),timeout:p,withCredentials:!1}}}),gi=f(function(a,b){return{ctor:"Request",_0:{method:"GET",headers:{ctor:"[]"},url:a,body:ei,expect:Rf(b),timeout:p,withCredentials:!1}}}),Sf=f(function(a,
b){b=c(xe.toTask,b._0,p);return c(Yb,a,b)});E(function(a,b,c,d){return{url:a,status:b,headers:c,body:d}});f(function(a,b){return{ctor:"BadPayload",_0:a,_1:b}});f(function(a,b){return{ctor:"StringPart",_0:a,_1:b}});var Ed=Ed||{};Ed["\x26\x3e"]=f(function(a,b){return c(M,function(a){return b},a)});var hi=n(function(a,b,e){var d=c(cb,b.category,e);return"Nothing"===d.ctor?Q(e):c(Ed["\x26\x3e"],Xb(c(D,function(e){return c(Wb,a,e(b.position))},d._0.taggers)),Q(e))}),ii=Q(ba),ji=f(function(a,b){return"Nothing"===
b.ctor?q({ctor:"::",_0:a,_1:{ctor:"[]"}}):q({ctor:"::",_0:a,_1:b._0})}),ki=f(function(a,b){for(;;){var c=a;if("[]"===c.ctor)return b;a=c._1;b=m(Ga,c._0._0,ji(c._0._1),b)}}),li=da.leaf("Mouse"),mi=f(function(a,b){return{x:a,y:b}}),ni=m(ne,mi,c(pa,"pageX",Ha),c(pa,"pageY",Ha)),Tf=f(function(a,b){return{taggers:a,pid:b}}),oi=f(function(a,b){return{category:a,position:b}}),pi=n(function(a,b,e){var d=n(function(b,e,d){var f=m(Vh,b,ni,function(e){return c(wd,a,c(oi,b,e))});return c(M,function(a){return c(M,
function(d){return Q(m(na,b,c(Tf,e,d),a))},re(f))},d)}),f=E(function(a,b,e,d){return c(M,function(d){return Q(m(na,a,c(Tf,e,b.pid),d))},d)}),g=n(function(a,b,e){return c(Ed["\x26\x3e"],Df(b.pid),e)});return Ve(af,g,f,d,e,c(ki,b,ba),Q(ba))}),Uf=f(function(a,b){return{ctor:"MySub",_0:a,_1:b}}),qi=f(function(a,b){return c(Uf,b._0,function(c){return a(b._1(c))})});da.effectManagers.Mouse={pkg:"elm-lang/mouse",init:ii,onEffects:pi,onSelfMsg:hi,tag:"sub",subMap:qi};var fb=function(a){switch(a.ctor){case "XS":return p;
case "SM":return q("sm");case "MD":return q("md");case "LG":return q("lg");default:return q("xl")}},ri=function(a){switch(a.ctor){case "Left":return"start";case "Center":return"center";case "Right":return"end";case "Around":return"around";default:return"between"}},si=function(a){return d(c(k["++"],"justify-content-",c(k["++"],c(bb,"",c(K,function(a){return c(k["++"],a,"-")},fb(a.screenSize))),ri(a.align))))},ti=f(function(a,b){return{screenSize:a,align:b}}),dc={ctor:"Between"},ec={ctor:"Around"},
fc={ctor:"Right"},gc={ctor:"Center"},hc={ctor:"Left"},t={ctor:"XL"},v={ctor:"LG"},x={ctor:"MD"},u={ctor:"SM"},w={ctor:"XS"},ic=f(function(a,b){return d(c(k["++"],a,c(k["++"],"-",function(){switch(b.ctor){case "Primary":return"primary";case "Secondary":return"secondary";case "Success":return"success";case "Info":return"info";case "Warning":return"warning";case "Danger":return"danger";case "Light":return"light";default:return"dark"}}())))}),jc={ctor:"Dark"},kc={ctor:"Light"},lc={ctor:"Danger"},mc={ctor:"Warning"},
nc={ctor:"Info"},oc={ctor:"Success"},pc={ctor:"Secondary"},qc={ctor:"Primary"},Vf=function(a){return"White"===a.ctor?d("text-white"):c(ic,"text",a._0)},ye=function(a){var b=k["++"],e=k["++"],f=c(bb,"-",c(K,function(a){return c(k["++"],"-",c(k["++"],a,"-"))},fb(a.size)));a:switch(a.dir.ctor){case "Center":a="center";break a;case "Left":a="left";break a;default:a="right"}return d(c(b,"text",c(e,f,a)))};f(function(a,b){return{dir:a,size:b}});var nb=function(a){return{ctor:"Role",_0:a}};nb(jc);nb(kc);
nb(lc);nb(mc);nb(nc);nb(oc);nb(pc);nb(qc);var ui=function(a){return c(k["++"],{ctor:"::",_0:I({ctor:"::",_0:{ctor:"_Tuple2",_0:"list-group-item",_1:!0},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"disabled",_1:a.disabled},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"active",_1:a.active},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"list-group-item-action",_1:a.action},_1:{ctor:"[]"}}}}}),_1:{ctor:"[]"}},c(k["++"],{ctor:"::",_0:c(Lb,"disabled",a.disabled),_1:{ctor:"[]"}},c(k["++"],c(bb,{ctor:"[]"},c(K,function(a){return{ctor:"::",
_0:c(ic,"list-group-item",a),_1:{ctor:"[]"}}},a.role)),a.attributes)))},vi=c(Jb,"onclick","var event \x3d arguments[0] || window.event; event.preventDefault();"),wi=f(function(a,b){switch(a.ctor){case "Roled":return g.update(b,{role:q(a._0)});case "Action":return g.update(b,{action:!0});case "Disabled":return g.update(b,{disabled:!0});case "Active":return g.update(b,{active:!0});default:return g.update(b,{attributes:c(k["++"],b.attributes,a._0)})}}),xi={role:p,active:!1,disabled:!1,action:!1,attributes:{ctor:"[]"}},
yi=function(a){return c(a._0.itemFn,ui(m(fa,wi,xi,a._0.options)),a._0.children)};V(function(a,b,c,d,f){return{role:a,active:b,disabled:c,action:d,attributes:f}});var Wf={ctor:"Action"},zi={ctor:"Disabled"},ob=function(a){return{ctor:"Roled",_0:a}};ob(jc);ob(kc);ob(lc);ob(mc);ob(nc);ob(oc);ob(pc);ob(qc);f(function(a,b){return{ctor:"CustomItem",_0:{itemFn:zb,children:b,options:{ctor:"::",_0:Wf,_1:c(k["++"],a,{ctor:"::",_0:{ctor:"Attrs",_0:{ctor:"::",_0:Ab("button"),_1:{ctor:"[]"}}},_1:{ctor:"[]"}})}}}});
f(function(a,b){a=c(de,f(function(a,b){return g.eq(a,b)})(zi),a)?c(k["++"],a,{ctor:"::",_0:{ctor:"Attrs",_0:{ctor:"::",_0:vi,_1:{ctor:"[]"}}},_1:{ctor:"[]"}}):a;return{ctor:"CustomItem",_0:{itemFn:aa,children:b,options:{ctor:"::",_0:Wf,_1:a}}}});var Ai=f(function(a,b){return{ctor:"Item",_0:{itemFn:Nf,children:b,options:a}}}),Bi=f(function(a,b){switch(a.ctor){case "Aligned":return g.update(b,{aligned:q(a._0)});case "Coloring":return g.update(b,{coloring:q(a._0)});case "TextColoring":return g.update(b,
{textColoring:q(a._0)});default:return g.update(b,{attributes:c(k["++"],b.attributes,a._0)})}}),Ci={aligned:p,coloring:p,textColoring:p,attributes:{ctor:"[]"}},Di=function(a){var b=m(fa,Bi,Ci,a);return c(k["++"],{ctor:"::",_0:d("card"),_1:{ctor:"[]"}},c(k["++"],function(){var a=b.coloring;return"Just"===a.ctor?"Roled"===a._0.ctor?{ctor:"::",_0:c(ic,"bg",a._0._0),_1:{ctor:"[]"}}:{ctor:"::",_0:c(ic,"border",a._0._0),_1:{ctor:"[]"}}:{ctor:"[]"}}(),c(k["++"],function(){var a=b.textColoring;return"Just"===
a.ctor?{ctor:"::",_0:Vf(a._0),_1:{ctor:"[]"}}:{ctor:"[]"}}(),c(k["++"],function(){var a=b.aligned;return"Just"===a.ctor?{ctor:"::",_0:ye(a._0),_1:{ctor:"[]"}}:{ctor:"[]"}}(),b.attributes))))},Ei=f(function(a,b){switch(a.ctor){case "AlignedBlock":return g.update(b,{aligned:q(a._0)});case "BlockColoring":return g.update(b,{coloring:q(a._0)});case "BlockTextColoring":return g.update(b,{textColoring:q(a._0)});default:return g.update(b,{attributes:c(k["++"],b.attributes,a._0)})}}),Fi={aligned:p,coloring:p,
textColoring:p,attributes:{ctor:"[]"}},Gi=function(a){var b=m(fa,Ei,Fi,a);return c(k["++"],{ctor:"::",_0:d("card-body"),_1:{ctor:"[]"}},c(k["++"],function(){var a=b.aligned;return"Just"===a.ctor?{ctor:"::",_0:ye(a._0),_1:{ctor:"[]"}}:{ctor:"[]"}}(),c(k["++"],function(){var a=b.coloring;return"Just"===a.ctor?{ctor:"::",_0:c(ic,"bg",a._0),_1:{ctor:"[]"}}:{ctor:"[]"}}(),c(k["++"],function(){var a=b.textColoring;return"Just"===a.ctor?{ctor:"::",_0:Vf(a._0),_1:{ctor:"[]"}}:{ctor:"[]"}}(),b.attributes))))},
Hi=function(a){return c(D,function(a){return a._0},a)};E(function(a,b,c,d){return{aligned:a,coloring:b,textColoring:c,attributes:d}});E(function(a,b,c,d){return{aligned:a,coloring:b,textColoring:c,attributes:d}});var ka=function(a){return{ctor:"Coloring",_0:a}},pb=function(a){return{ctor:"Outlined",_0:a}},qb=function(a){return{ctor:"Roled",_0:a}},ze=function(a){return{ctor:"BlockAttrs",_0:a}},rb=function(a){return{ctor:"BlockColoring",_0:a}},Ii=function(a){return{ctor:"ListGroup",_0:c(ac,{ctor:"::",
_0:d("list-group list-group-flush"),_1:{ctor:"[]"}},c(D,yi,a))}},Ji=f(function(a,b){return{ctor:"CardBlock",_0:c(H,Gi(a),c(D,function(a){return a._0},b))}}),gb=function(a){return{ctor:"BlockItem",_0:a}};rb(jc);rb(kc);rb(lc);rb(mc);rb(nc);rb(oc);rb(pc);rb(qc);var Mb=n(function(a,b,e){return gb(c(a,{ctor:"::",_0:d("card-title"),_1:b},e))});Mb(Lf);Mb(Kf);Mb(Jf);var Ki=Mb(If);Mb(te);Mb(se);f(function(a,b){return gb(c(Yh,c(k["++"],{ctor:"::",_0:d("card-blockquote"),_1:{ctor:"[]"}},a),b))});var Li=f(function(a,
b){return gb(c(Xh,c(k["++"],{ctor:"::",_0:d("card-text"),_1:{ctor:"[]"}},a),b))});f(function(a,b){return gb(c(aa,c(k["++"],{ctor:"::",_0:d("card-link"),_1:{ctor:"[]"}},a),b))});var Nb=function(a){return c(H,Di(a._0.options),c(k["++"],c(ya,va,{ctor:"::",_0:c(K,function(a){return a._0},a._0.header),_1:{ctor:"::",_0:c(K,function(a){return a._0},a._0.imgTop),_1:{ctor:"[]"}}}),c(k["++"],Hi(a._0.blocks),c(ya,va,{ctor:"::",_0:c(K,function(a){return a._0},a._0.footer),_1:{ctor:"::",_0:c(K,function(a){return a._0},
a._0.imgBottom),_1:{ctor:"[]"}}}))))},Ae=f(function(a,b){return m(Zb,"div",{ctor:"::",_0:d(a),_1:{ctor:"[]"}},c(D,function(a){return{ctor:"_Tuple2",_0:a._0,_1:Nb(a._1)}},b))});Ae("card-group");Ae("card-deck");Ae("card-columns");ka(pb(jc));ka(pb(kc));ka(pb(lc));ka(pb(mc));ka(pb(nc));ka(pb(oc));ka(pb(pc));ka(pb(qc));ka(qb(jc));var Fd=ka(qb(kc));ka(qb(lc));ka(qb(mc));ka(qb(nc));ka(qb(oc));ka(qb(pc));ka(qb(qc));var Bb=function(a){return{ctor:"Config",_0:a}},rc=function(a){return Bb({options:a,header:p,
footer:p,imgTop:p,imgBottom:p,blocks:{ctor:"[]"}})},Mi=f(function(a,b){b=b._0;return Bb(g.update(b,{blocks:c(k["++"],b.blocks,{ctor:"::",_0:Ii(a),_1:{ctor:"[]"}})}))}),Cb=n(function(a,b,d){d=d._0;return Bb(g.update(d,{blocks:c(k["++"],d.blocks,{ctor:"::",_0:c(Ji,a,b),_1:{ctor:"[]"}})}))}),Db=E(function(a,b,e,f){return Bb(g.update(f._0,{header:q({ctor:"Header",_0:c(a,{ctor:"::",_0:d("card-header"),_1:b},e)})}))});Db(H);Db(se);Db(te);Db(If);Db(Jf);Db(Kf);Db(Lf);n(function(a,b,e){return Bb(g.update(e._0,
{footer:q({ctor:"Footer",_0:c(H,{ctor:"::",_0:d("card-footer"),_1:a},b)})}))});n(function(a,b,e){return Bb(g.update(e._0,{imgTop:q({ctor:"ImageTop",_0:c(Pf,c(k["++"],{ctor:"::",_0:d("card-img-top"),_1:{ctor:"[]"}},a),b)})}))});n(function(a,b,e){return Bb(g.update(e._0,{imgBottom:q({ctor:"ImageBottom",_0:c(Pf,c(k["++"],{ctor:"::",_0:d("card-img-bottom"),_1:{ctor:"[]"}},a),b)})}))});var Xf=function(a){switch(a.ctor){case "Primary":return"primary";case "Secondary":return"secondary";case "Success":return"success";
case "Info":return"info";case "Warning":return"warning";case "Danger":return"danger";case "Dark":return"dark";case "Light":return"light";default:return"link"}},Ni=f(function(a,b){switch(a.ctor){case "Size":return g.update(b,{size:q(a._0)});case "Coloring":return g.update(b,{coloring:q(a._0)});case "Block":return g.update(b,{block:!0});case "Disabled":return g.update(b,{disabled:a._0});default:return g.update(b,{attributes:c(k["++"],b.attributes,a._0)})}}),Oi={coloring:p,block:!1,disabled:!1,size:p,
attributes:{ctor:"[]"}},Eb=function(a){var b=m(fa,Ni,Oi,a);return c(k["++"],{ctor:"::",_0:I({ctor:"::",_0:{ctor:"_Tuple2",_0:"btn",_1:!0},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"btn-block",_1:b.block},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"disabled",_1:b.disabled},_1:{ctor:"[]"}}}}),_1:{ctor:"::",_0:c(Lb,"disabled",b.disabled),_1:{ctor:"[]"}}},c(k["++"],function(){var a=c(ib,fb,b.size);return"Just"===a.ctor?{ctor:"::",_0:d(c(k["++"],"btn-",a._0)),_1:{ctor:"[]"}}:{ctor:"[]"}}(),c(k["++"],function(){var a=
b.coloring;return"Just"===a.ctor?"Roled"===a._0.ctor?{ctor:"::",_0:d(c(k["++"],"btn-",Xf(a._0._0))),_1:{ctor:"[]"}}:{ctor:"::",_0:d(c(k["++"],"btn-outline-",Xf(a._0._0))),_1:{ctor:"[]"}}:{ctor:"[]"}}(),b.attributes)))};V(function(a,b,c,d,f){return{coloring:a,block:b,disabled:c,size:d,attributes:f}});var ta=function(a){return{ctor:"Attrs",_0:a}},ja=function(a){return{ctor:"Coloring",_0:a}},sb=function(a){return{ctor:"Outlined",_0:a}},hb=function(a){return{ctor:"Roled",_0:a}},Yf={ctor:"Light"},Zf={ctor:"Dark"},
$f={ctor:"Danger"},ag={ctor:"Warning"},bg={ctor:"Info"},cg={ctor:"Success"},dg={ctor:"Secondary"},eg={ctor:"Primary"};ja(sb(Zf));ja(sb(Yf));ja(sb($f));ja(sb(ag));ja(sb(bg));ja(sb(cg));ja(sb(dg));ja(sb(eg));ja(hb({ctor:"Link"}));ja(hb(Zf));ja(hb(Yf));ja(hb($f));ja(hb(ag));ja(hb(bg));var tb=ja(hb(cg));ja(hb(dg));var Ka=ja(hb(eg)),Pi=n(function(a,b,d){return c(Bd,{ctor:"::",_0:I({ctor:"::",_0:{ctor:"_Tuple2",_0:"active",_1:a},_1:{ctor:"[]"}}),_1:Eb(b)},{ctor:"::",_0:c(ue,{ctor:"::",_0:Ab("checkbox"),
_1:{ctor:"::",_0:c(Lb,"checked",a),_1:{ctor:"::",_0:c(Ja,"autocomplete","off"),_1:{ctor:"[]"}}}},{ctor:"[]"}),_1:d})}),Qi=n(function(a,b,d){var e=c(Jb,"data-toggle","button");return c(Bd,{ctor:"::",_0:I({ctor:"::",_0:{ctor:"_Tuple2",_0:"active",_1:a},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:e,_1:Eb(b)}},{ctor:"::",_0:c(ue,{ctor:"::",_0:Ab("radio"),_1:{ctor:"::",_0:c(Lb,"checked",a),_1:{ctor:"::",_0:c(Ja,"autocomplete","off"),_1:{ctor:"[]"}}}},{ctor:"[]"}),_1:d})}),Ri=f(function(a,b){return c(aa,{ctor:"::",
_0:c(Jb,"role","button"),_1:Eb(a)},b)}),Ea=f(function(a,b){return c(zb,Eb(a),b)}),Si={size:p,vertical:!1,attributes:{ctor:"[]"}},Ti=f(function(a,b){switch(a.ctor){case "Size":return g.update(b,{size:q(a._0)});case "Vertical":return g.update(b,{vertical:!0});default:return g.update(b,{attributes:c(k["++"],b.attributes,a._0)})}}),Gd=f(function(a,b){b=m(fa,Ti,Si,b);var e=k["++"];a={ctor:"::",_0:c(Jb,"role","group"),_1:{ctor:"::",_0:I({ctor:"::",_0:{ctor:"_Tuple2",_0:"btn-group",_1:!0},_1:{ctor:"::",
_0:{ctor:"_Tuple2",_0:"btn-group-toggle",_1:a},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"btn-group-vertical",_1:b.vertical},_1:{ctor:"[]"}}}}),_1:{ctor:"::",_0:c(Jb,"data-toggle","buttons"),_1:{ctor:"[]"}}}};var f=k["++"];var g=c(ib,fb,b.size);g="Just"===g.ctor?{ctor:"::",_0:d(c(k["++"],"btn-group-",g._0)),_1:{ctor:"[]"}}:{ctor:"[]"};return c(e,a,c(f,g,b.attributes))}),Ui=function(a){return a._0};f(function(a,b){return c(H,c(k["++"],{ctor:"::",_0:c(Jb,"role","toolbar"),_1:{ctor:"::",_0:d("btn-toolbar"),
_1:{ctor:"[]"}}},a),c(D,Ui,b))});n(function(a,b,c){return{size:a,vertical:b,attributes:c}});var Vi={ctor:"Size",_0:u},Hd=function(a){return{ctor:"GroupItem",_0:a}},Wi=f(function(a,b){return Hd(c(H,c(Gd,!1,a),c(D,function(a){return a._0},b)))}),Xi=f(function(a,b){return c(Wi,a,b)._0}),Yi=f(function(a,b){return Hd(c(H,c(Gd,!1,a),c(D,function(a){return a._0},b)))});f(function(a,b){return c(Yi,a,b)._0});var Zi=f(function(a,b){return Hd(c(H,c(Gd,!0,a),c(D,function(a){return a._0},b)))});f(function(a,b){return c(Zi,
a,b)._0});var $i=f(function(a,b){return Hd(c(H,c(Gd,!0,a),c(D,function(a){return a._0},b)))});f(function(a,b){return c($i,a,b)._0});var Be=f(function(a,b){return{ctor:"ButtonItem",_0:c(Ea,a,b)}});f(function(a,b){return{ctor:"LinkButtonItem",_0:c(Ri,a,b)}});n(function(a,b,c){return{ctor:"RadioButtonItem",_0:m(Qi,a,b,c)}});n(function(a,b,c){return{ctor:"CheckboxButtonItem",_0:m(Pi,a,b,c)}});var aj=c(yb,function(a){return c($g,"dropdown-toggle",a)?oa(!0):oa(!1)},sf),Ce=f(function(a,b){return sd({ctor:"::",
_0:c(yb,function(d){return d?c(db,a,b):le("")},c(db,a,aj)),_1:{ctor:"::",_0:c(yb,function(d){return c(Ce,c(k["++"],a,{ctor:"::",_0:"parentElement",_1:{ctor:"[]"}}),b)},c(db,c(k["++"],a,{ctor:"::",_0:"parentElement",_1:{ctor:"[]"}}),sf)),_1:{ctor:"::",_0:le("No toggler found"),_1:{ctor:"[]"}}}})}),bj=m(ne,f(function(a,b){return{ctor:"_Tuple2",_0:a,_1:b}}),c(Ce,{ctor:"::",_0:"target",_1:{ctor:"[]"}},uf),c(Ce,{ctor:"::",_0:"target",_1:{ctor:"[]"}},c(pa,"nextSibling",c(function(a){return db({ctor:"::",
_0:"childNodes",_1:{ctor:"::",_0:Da(a),_1:{ctor:"[]"}}})},0,uf)))),fg=f(function(a,b){switch(a.ctor){case "AlignMenuRight":return g.update(b,{hasMenuRight:!0});case "Dropup":return g.update(b,{isDropUp:!0});case "Attrs":return g.update(b,{attributes:a._0});case "DropToDir":return g.update(b,{dropDirection:q(a._0)});default:return g.update(b,{menuAttrs:a._0})}}),gg={hasMenuRight:!1,isDropUp:!1,attributes:{ctor:"[]"},dropDirection:p,menuAttrs:{ctor:"[]"}},cj=f(function(a,b){var d=a._0.toggleSize,f=
a._0.menuSize,g=function(a){return c(k["++"],Da(a),"px")},p=n(function(a,b,d){return c(k["++"],"translate3d(",c(k["++"],g(a),c(k["++"],",",c(k["++"],g(b),c(k["++"],",",c(k["++"],g(d),")"))))))}),q={ctor:"::",_0:{ctor:"_Tuple2",_0:"top",_1:"0"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"left",_1:"0"},_1:{ctor:"[]"}}};return za(function(){var a=b.isDropUp,e=b.dropDirection;a:do{b:do if("Just"===e.ctor)if("Dropright"===e._0.ctor)if(!0===a)break b;else return q;else if(!0===a)break b;else return c(k["++"],
q,{ctor:"::",_0:{ctor:"_Tuple2",_0:"transform",_1:m(p,0-d.width-f.width,0,0)},_1:{ctor:"[]"}});else if(!0===a)break b;else break a;while(0);return c(k["++"],q,{ctor:"::",_0:{ctor:"_Tuple2",_0:"transform",_1:m(p,0-d.width,0-f.height,0)},_1:{ctor:"[]"}})}while(0);return c(k["++"],q,{ctor:"::",_0:{ctor:"_Tuple2",_0:"transform",_1:m(p,0-d.width,d.height,0)},_1:{ctor:"[]"}})}())}),dj=function(a){return c(bb,{ctor:"[]"},c(K,function(a){var b=k["++"];a="Dropleft"===a.ctor?"left":"right";return{ctor:"::",
_0:d(c(b,"drop",a)),_1:{ctor:"[]"}}},a))};n(function(a,b,c){return{status:a,toggleSize:b,menuSize:c}});n(function(a,b,c){return{options:a,togglerOptions:b,children:c}});V(function(a,b,c,d,f){return{isDropUp:a,hasMenuRight:b,dropDirection:c,attributes:d,menuAttrs:f}});var De=f(function(a,b){return{ctor:"State",_0:g.update(b._0,{status:a})}}),sc={ctor:"Closed"};X(vf,0,0,0,0);X(vf,0,0,0,0);var hg=f(function(a,b){return c(k["++"],{ctor:"::",_0:I({ctor:"::",_0:{ctor:"_Tuple2",_0:"btn-group",_1:!0},_1:{ctor:"::",
_0:{ctor:"_Tuple2",_0:"show",_1:!g.eq(a,sc)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"dropup",_1:b.isDropUp},_1:{ctor:"[]"}}}}),_1:{ctor:"[]"}},c(k["++"],dj(b.dropDirection),b.attributes))}),ig=n(function(a,b,d){var e=g.eq(a._0.status,sc)?{ctor:"::",_0:{ctor:"_Tuple2",_0:"height",_1:"0"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"overflow",_1:"hidden"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"position",_1:"relative"},_1:{ctor:"[]"}}}}:{ctor:"::",_0:{ctor:"_Tuple2",_0:"position",_1:"relative"},_1:{ctor:"[]"}};return c(H,
{ctor:"::",_0:za(e),_1:{ctor:"[]"}},{ctor:"::",_0:c(H,c(k["++"],{ctor:"::",_0:I({ctor:"::",_0:{ctor:"_Tuple2",_0:"dropdown-menu",_1:!0},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"dropdown-menu-right",_1:b.hasMenuRight},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"show",_1:!0},_1:{ctor:"[]"}}}}),_1:{ctor:"::",_0:c(cj,a,b),_1:{ctor:"[]"}}},b.menuAttrs),c(D,function(a){return a._0},d)),_1:{ctor:"[]"}})}),ej=f(function(a,b){var d=m(fa,fg,gg,b.options),f=b.toggleButton._0;return c(H,c(hg,a._0.status,d),{ctor:"::",_0:c(f,
b.toggleMsg,a),_1:{ctor:"::",_0:m(ig,a,d,b.items),_1:{ctor:"[]"}}})}),fj=f(function(a,b){var d=m(fa,fg,gg,b.options),f=b.toggleButton._0;return c(H,c(hg,a._0.status,d),c(k["++"],c(f,b.toggleMsg,a),{ctor:"::",_0:m(ig,a,d,b.items),_1:{ctor:"[]"}}))}),gj={ctor:"ListenClicks"};f(function(a,b){switch(a._0.status.ctor){case "Open":return Qh({ctor:"Time",_0:function(d){return b(c(De,gj,a))}});case "ListenClicks":return li(c(Uf,"click",function(d){return b(c(De,sc,a))}));default:return qf}});var hj={ctor:"Open"},
jg=function(a){switch(a.ctor){case "Open":return sc;case "ListenClicks":return sc;default:return hj}},kg=f(function(a,b){return c(yb,function(c){return oa(a({ctor:"State",_0:{status:jg(b._0.status),toggleSize:c._0,menuSize:c._1}}))},bj)}),ij=E(function(a,b,e,f){return c(zb,c(k["++"],Eb(a),{ctor:"::",_0:d("dropdown-toggle"),_1:{ctor:"::",_0:Ab("button"),_1:{ctor:"::",_0:c(Ad,"click",c(kg,e,f)),_1:{ctor:"[]"}}}}),b)});n(function(a,b,e){return{ctor:"::",_0:c(zb,Eb(a.options),a.children),_1:{ctor:"::",
_0:c(zb,c(k["++"],Eb(a.togglerOptions),{ctor:"::",_0:d("dropdown-toggle"),_1:{ctor:"::",_0:d("dropdown-toggle-split"),_1:{ctor:"::",_0:Ab("button"),_1:{ctor:"::",_0:c(Ad,"click",c(kg,b,e)),_1:{ctor:"[]"}}}}}),{ctor:"[]"}),_1:{ctor:"[]"}}}});f(function(a,b){return a(c(De,jg(b._0.status),b))});var Ee=function(a){return{ctor:"DropdownItem",_0:a}};f(function(a,b){return Ee(c(aa,c(k["++"],{ctor:"::",_0:d("dropdown-item"),_1:{ctor:"[]"}},a),b))});f(function(a,b){return Ee(c(zb,c(k["++"],{ctor:"::",_0:Ab("button"),
_1:{ctor:"::",_0:d("dropdown-item"),_1:{ctor:"[]"}}},a),b))});Ee(c(H,{ctor:"::",_0:d("dropdown-divider"),_1:{ctor:"[]"}},{ctor:"[]"}));f(function(a,b){return{ctor:"DropdownToggle",_0:c(ij,a,b)}});var jj=function(a){switch(a.ctor){case "OrderFirst":return"first";case "Order1":return"1";case "Order2":return"2";case "Order3":return"3";case "Order4":return"4";case "Order5":return"5";case "Order6":return"6";case "Order7":return"7";case "Order8":return"8";case "Order9":return"9";case "Order10":return"10";
case "Order11":return"11";case "Order12":return"12";default:return"last"}},lg=function(a){switch(a.ctor){case "Move0":return"0";case "Move1":return"1";case "Move2":return"2";case "Move3":return"3";case "Move4":return"4";case "Move5":return"5";case "Move6":return"6";case "Move7":return"7";case "Move8":return"8";case "Move9":return"9";case "Move10":return"10";case "Move11":return"11";default:return"12"}},kj=function(a){switch(a.ctor){case "Offset0":return"0";case "Offset1":return"1";case "Offset2":return"2";
case "Offset3":return"3";case "Offset4":return"4";case "Offset5":return"5";case "Offset6":return"6";case "Offset7":return"7";case "Offset8":return"8";case "Offset9":return"9";case "Offset10":return"10";default:return"11"}},lj=function(a){switch(a.ctor){case "Col":return p;case "Col1":return q("1");case "Col2":return q("2");case "Col3":return q("3");case "Col4":return q("4");case "Col5":return q("5");case "Col6":return q("6");case "Col7":return q("7");case "Col8":return q("8");case "Col9":return q("9");
case "Col10":return q("10");case "Col11":return q("11");case "Col12":return q("12");default:return q("auto")}},Id=function(a){a=fb(a);return"Just"===a.ctor?c(k["++"],"-",c(k["++"],a._0,"-")):"-"},mj=function(a){return c(ya,va,c(D,function(a){return c(K,si,a)},a))},nj=f(function(a,b){var e=k["++"],f=k["++"],g=c(bb,"",c(K,function(a){return c(k["++"],a,"-")},fb(b.screenSize)));a:switch(b.align.ctor){case "Top":b="start";break a;case "Middle":b="center";break a;default:b="end"}return d(c(e,a,c(f,g,b)))}),
mg=f(function(a,b){return c(ya,va,c(D,function(b){return c(K,nj(a),b)},b))}),oj=function(a){return c(ya,va,c(D,function(a){return"Just"===a.ctor?q(d(c(k["++"],"order",c(k["++"],Id(a._0.screenSize),jj(a._0.moveCount))))):p},a))},pj=function(a){return c(ya,va,c(D,function(a){return"Just"===a.ctor?q(d(c(k["++"],"push",c(k["++"],Id(a._0.screenSize),lg(a._0.moveCount))))):p},a))},qj=function(a){return c(ya,va,c(D,function(a){return"Just"===a.ctor?q(d(c(k["++"],"pull",c(k["++"],Id(a._0.screenSize),lg(a._0.moveCount))))):
p},a))},rj=function(a){return d(c(k["++"],"offset",c(k["++"],Id(a.screenSize),kj(a.offsetCount))))},sj=function(a){return c(ya,va,c(D,function(a){return c(K,rj,a)},a))},tj=function(a){return d(c(k["++"],"col",c(k["++"],c(bb,"",c(K,function(a){return c(k["++"],"-",a)},fb(a.screenSize))),c(bb,"",c(K,function(a){return c(k["++"],"-",a)},lj(a.columnCount))))))},uj=function(a){return c(ya,va,c(D,function(a){return c(K,tj,a)},a))},vj={attributes:{ctor:"[]"},vAlignXs:p,vAlignSm:p,vAlignMd:p,vAlignLg:p,vAlignXl:p,
hAlignXs:p,hAlignSm:p,hAlignMd:p,hAlignLg:p,hAlignXl:p},wj={attributes:{ctor:"[]"},textAlign:p,widthXs:p,widthSm:p,widthMd:p,widthLg:p,widthXl:p,offsetXs:p,offsetSm:p,offsetMd:p,offsetLg:p,offsetXl:p,pullXs:p,pullSm:p,pullMd:p,pullLg:p,pullXl:p,pushXs:p,pushSm:p,pushMd:p,pushLg:p,pushXl:p,orderXs:p,orderSm:p,orderMd:p,orderLg:p,orderXl:p,alignXs:p,alignSm:p,alignMd:p,alignLg:p,alignXl:p},xj=f(function(a,b){switch(a.screenSize.ctor){case "XS":return g.update(b,{hAlignXs:q(a)});case "SM":return g.update(b,
{hAlignSm:q(a)});case "MD":return g.update(b,{hAlignMd:q(a)});case "LG":return g.update(b,{hAlignLg:q(a)});default:return g.update(b,{hAlignXl:q(a)})}}),yj=f(function(a,b){switch(a.screenSize.ctor){case "XS":return g.update(b,{vAlignXs:q(a)});case "SM":return g.update(b,{vAlignSm:q(a)});case "MD":return g.update(b,{vAlignMd:q(a)});case "LG":return g.update(b,{vAlignLg:q(a)});default:return g.update(b,{vAlignXl:q(a)})}}),zj=f(function(a,b){switch(a.ctor){case "RowAttrs":return g.update(b,{attributes:c(k["++"],
b.attributes,a._0)});case "RowVAlign":return c(yj,a._0,b);default:return c(xj,a._0,b)}}),Aj=f(function(a,b){switch(a.screenSize.ctor){case "XS":return g.update(b,{alignXs:q(a)});case "SM":return g.update(b,{alignSm:q(a)});case "MD":return g.update(b,{alignMd:q(a)});case "LG":return g.update(b,{alignLg:q(a)});default:return g.update(b,{alignXl:q(a)})}}),Bj=f(function(a,b){switch(a.screenSize.ctor){case "XS":return g.update(b,{orderXs:q(a)});case "SM":return g.update(b,{orderSm:q(a)});case "MD":return g.update(b,
{orderMd:q(a)});case "LG":return g.update(b,{orderLg:q(a)});default:return g.update(b,{orderXl:q(a)})}}),Cj=f(function(a,b){switch(a.screenSize.ctor){case "XS":return g.update(b,{pushXs:q(a)});case "SM":return g.update(b,{pushSm:q(a)});case "MD":return g.update(b,{pushMd:q(a)});case "LG":return g.update(b,{pushLg:q(a)});default:return g.update(b,{pushXl:q(a)})}}),Dj=f(function(a,b){switch(a.screenSize.ctor){case "XS":return g.update(b,{pullXs:q(a)});case "SM":return g.update(b,{pullSm:q(a)});case "MD":return g.update(b,
{pullMd:q(a)});case "LG":return g.update(b,{pullLg:q(a)});default:return g.update(b,{pullXl:q(a)})}}),Ej=f(function(a,b){switch(a.screenSize.ctor){case "XS":return g.update(b,{offsetXs:q(a)});case "SM":return g.update(b,{offsetSm:q(a)});case "MD":return g.update(b,{offsetMd:q(a)});case "LG":return g.update(b,{offsetLg:q(a)});default:return g.update(b,{offsetXl:q(a)})}}),Fj=f(function(a,b){switch(a.screenSize.ctor){case "XS":return g.update(b,{widthXs:q(a)});case "SM":return g.update(b,{widthSm:q(a)});
case "MD":return g.update(b,{widthMd:q(a)});case "LG":return g.update(b,{widthLg:q(a)});default:return g.update(b,{widthXl:q(a)})}}),Gj=f(function(a,b){switch(a.ctor){case "ColAttrs":return g.update(b,{attributes:c(k["++"],b.attributes,a._0)});case "ColWidth":return c(Fj,a._0,b);case "ColOffset":return c(Ej,a._0,b);case "ColPull":return c(Dj,a._0,b);case "ColPush":return c(Cj,a._0,b);case "ColOrder":return c(Bj,a._0,b);case "ColAlign":return c(Aj,a._0,b);default:return g.update(b,{textAlign:q(a._0)})}}),
Fe=function(a){a=m(fa,zj,vj,a);return c(k["++"],{ctor:"::",_0:d("row"),_1:{ctor:"[]"}},c(k["++"],c(mg,"align-items-",{ctor:"::",_0:a.vAlignXs,_1:{ctor:"::",_0:a.vAlignSm,_1:{ctor:"::",_0:a.vAlignMd,_1:{ctor:"::",_0:a.vAlignLg,_1:{ctor:"::",_0:a.vAlignXl,_1:{ctor:"[]"}}}}}}),c(k["++"],mj({ctor:"::",_0:a.hAlignXs,_1:{ctor:"::",_0:a.hAlignSm,_1:{ctor:"::",_0:a.hAlignMd,_1:{ctor:"::",_0:a.hAlignLg,_1:{ctor:"::",_0:a.hAlignXl,_1:{ctor:"[]"}}}}}}),a.attributes)))},ng=f(function(a,b){return{screenSize:a,
columnCount:b}}),Hj=f(function(a,b){return{screenSize:a,offsetCount:b}}),Ij=f(function(a,b){return{screenSize:a,moveCount:b}}),Jj=f(function(a,b){return{screenSize:a,moveCount:b}}),Kj=f(function(a,b){return{screenSize:a,moveCount:b}}),og=f(function(a,b){return{screenSize:a,align:b}}),ra=f(function(a,b){return{ctor:"ColAlign",_0:c(og,a,b)}}),z=f(function(a,b){return{ctor:"ColOrder",_0:c(Kj,a,b)}}),B=f(function(a,b){return{ctor:"ColPush",_0:c(Jj,a,b)}}),A=f(function(a,b){return{ctor:"ColPull",_0:c(Ij,
a,b)}}),C=f(function(a,b){return{ctor:"ColOffset",_0:c(Hj,a,b)}}),y=f(function(a,b){return{ctor:"ColWidth",_0:c(ng,a,b)}}),S=f(function(a,b){return{ctor:"RowHAlign",_0:c(ti,a,b)}}),sa=f(function(a,b){return{ctor:"RowVAlign",_0:c(og,a,b)}}),tc={ctor:"ColAuto"},uc={ctor:"Col12"},vc={ctor:"Col11"},wc={ctor:"Col10"},xc={ctor:"Col9"},yc={ctor:"Col8"},zc={ctor:"Col7"},Ac={ctor:"Col6"},Bc={ctor:"Col5"},Cc={ctor:"Col4"},Dc={ctor:"Col3"},Ec={ctor:"Col2"},Fc={ctor:"Col1"},Ob={ctor:"Col"},Ge=function(a){var b=
m(fa,Gj,wj,a),d=g.eq(Xe(c(ya,va,{ctor:"::",_0:b.widthXs,_1:{ctor:"::",_0:b.widthSm,_1:{ctor:"::",_0:b.widthMd,_1:{ctor:"::",_0:b.widthLg,_1:{ctor:"::",_0:b.widthXl,_1:{ctor:"[]"}}}}}})),0);a=k["++"];d=uj({ctor:"::",_0:d?q(c(ng,w,Ob)):b.widthXs,_1:{ctor:"::",_0:b.widthSm,_1:{ctor:"::",_0:b.widthMd,_1:{ctor:"::",_0:b.widthLg,_1:{ctor:"::",_0:b.widthXl,_1:{ctor:"[]"}}}}}});var f=k["++"],l=sj({ctor:"::",_0:b.offsetXs,_1:{ctor:"::",_0:b.offsetSm,_1:{ctor:"::",_0:b.offsetMd,_1:{ctor:"::",_0:b.offsetLg,
_1:{ctor:"::",_0:b.offsetXl,_1:{ctor:"[]"}}}}}}),n=k["++"],p=qj({ctor:"::",_0:b.pullXs,_1:{ctor:"::",_0:b.pullSm,_1:{ctor:"::",_0:b.pullMd,_1:{ctor:"::",_0:b.pullLg,_1:{ctor:"::",_0:b.pullXl,_1:{ctor:"[]"}}}}}}),r=k["++"],t=pj({ctor:"::",_0:b.pushXs,_1:{ctor:"::",_0:b.pushSm,_1:{ctor:"::",_0:b.pushMd,_1:{ctor:"::",_0:b.pushLg,_1:{ctor:"::",_0:b.pushXl,_1:{ctor:"[]"}}}}}}),v=k["++"],u=oj({ctor:"::",_0:b.orderXs,_1:{ctor:"::",_0:b.orderSm,_1:{ctor:"::",_0:b.orderMd,_1:{ctor:"::",_0:b.orderLg,_1:{ctor:"::",
_0:b.orderXl,_1:{ctor:"[]"}}}}}}),x=k["++"],y=c(mg,"align-self-",{ctor:"::",_0:b.alignXs,_1:{ctor:"::",_0:b.alignSm,_1:{ctor:"::",_0:b.alignMd,_1:{ctor:"::",_0:b.alignLg,_1:{ctor:"::",_0:b.alignXl,_1:{ctor:"[]"}}}}}});var z=b.textAlign;b="Just"===z.ctor?{ctor:"::",_0:ye(z._0),_1:{ctor:"[]"}}:c(k["++"],{ctor:"[]"},b.attributes);return c(a,d,c(f,l,c(n,p,c(r,t,c(v,u,c(x,y,b))))))},Gc={ctor:"Offset11"},Hc={ctor:"Offset10"},Ic={ctor:"Offset9"},Jc={ctor:"Offset8"},Kc={ctor:"Offset7"},Lc={ctor:"Offset6"},
Mc={ctor:"Offset5"},Nc={ctor:"Offset4"},Oc={ctor:"Offset3"},Pc={ctor:"Offset2"},Qc={ctor:"Offset1"},Jd={ctor:"Offset0"},La={ctor:"Move12"},Ma={ctor:"Move11"},Na={ctor:"Move10"},Oa={ctor:"Move9"},Pa={ctor:"Move8"},Qa={ctor:"Move7"},Ra={ctor:"Move6"},Sa={ctor:"Move5"},Ta={ctor:"Move4"},Ua={ctor:"Move3"},Va={ctor:"Move2"},Wa={ctor:"Move1"},Xa={ctor:"Move0"},Rc={ctor:"OrderLast"},Sc={ctor:"Order12"},Tc={ctor:"Order11"},Uc={ctor:"Order10"},Vc={ctor:"Order9"},Wc={ctor:"Order8"},Xc={ctor:"Order7"},Yc={ctor:"Order6"},
Zc={ctor:"Order5"},$c={ctor:"Order4"},ad={ctor:"Order3"},bd={ctor:"Order2"},cd={ctor:"Order1"},dd={ctor:"OrderFirst"},Ya={ctor:"Bottom"},Za={ctor:"Middle"},$a={ctor:"Top"};c(S,t,dc);c(S,v,dc);c(S,x,dc);c(S,u,dc);c(S,w,dc);c(S,t,ec);c(S,v,ec);c(S,x,ec);c(S,u,ec);c(S,w,ec);c(S,t,fc);c(S,v,fc);c(S,x,fc);c(S,u,fc);c(S,w,fc);c(S,t,gc);c(S,v,gc);c(S,x,gc);c(S,u,gc);c(S,w,gc);c(S,t,hc);c(S,v,hc);c(S,x,hc);c(S,u,hc);c(S,w,hc);c(sa,t,Ya);c(sa,v,Ya);c(sa,x,Ya);c(sa,u,Ya);c(sa,w,Ya);c(sa,t,Za);c(sa,v,Za);c(sa,
x,Za);c(sa,u,Za);var Kd=c(sa,w,Za);c(sa,t,$a);c(sa,v,$a);c(sa,x,$a);c(sa,u,$a);c(sa,w,$a);c(z,t,Rc);c(z,t,Sc);c(z,t,Tc);c(z,t,Uc);c(z,t,Vc);c(z,t,Wc);c(z,t,Xc);c(z,t,Yc);c(z,t,Zc);c(z,t,$c);c(z,t,ad);c(z,t,bd);c(z,t,cd);c(z,t,dd);c(z,v,Rc);c(z,v,Sc);c(z,v,Tc);c(z,v,Uc);c(z,v,Vc);c(z,v,Wc);c(z,v,Xc);c(z,v,Yc);c(z,v,Zc);c(z,v,$c);c(z,v,ad);c(z,v,bd);c(z,v,cd);c(z,v,dd);c(z,x,Rc);c(z,x,Sc);c(z,x,Tc);c(z,x,Uc);c(z,x,Vc);c(z,x,Wc);c(z,x,Xc);c(z,x,Yc);c(z,x,Zc);c(z,x,$c);c(z,x,ad);c(z,x,bd);c(z,x,cd);c(z,
x,dd);c(z,u,Rc);c(z,u,Sc);c(z,u,Tc);c(z,u,Uc);c(z,u,Vc);c(z,u,Wc);c(z,u,Xc);c(z,u,Yc);c(z,u,Zc);c(z,u,$c);c(z,u,ad);c(z,u,bd);c(z,u,cd);c(z,u,dd);c(z,w,Rc);c(z,w,Sc);c(z,w,Tc);c(z,w,Uc);c(z,w,Vc);c(z,w,Wc);c(z,w,Xc);c(z,w,Yc);c(z,w,Zc);c(z,w,$c);c(z,w,ad);c(z,w,bd);c(z,w,cd);c(z,w,dd);c(B,t,La);c(B,t,Ma);c(B,t,Na);c(B,t,Oa);c(B,t,Pa);c(B,t,Qa);c(B,t,Ra);c(B,t,Sa);c(B,t,Ta);c(B,t,Ua);c(B,t,Va);c(B,t,Wa);c(B,t,Xa);c(B,v,La);c(B,v,Ma);c(B,v,Na);c(B,v,Oa);c(B,v,Pa);c(B,v,Qa);c(B,v,Ra);c(B,v,Sa);c(B,v,
Ta);c(B,v,Ua);c(B,v,Va);c(B,v,Wa);c(B,v,Xa);c(B,x,La);c(B,x,Ma);c(B,x,Na);c(B,x,Oa);c(B,x,Pa);c(B,x,Qa);c(B,x,Ra);c(B,x,Sa);c(B,x,Ta);c(B,x,Ua);c(B,x,Va);c(B,x,Wa);c(B,x,Xa);c(B,u,La);c(B,u,Ma);c(B,u,Na);c(B,u,Oa);c(B,u,Pa);c(B,u,Qa);c(B,u,Ra);c(B,u,Sa);c(B,u,Ta);c(B,u,Ua);c(B,u,Va);c(B,u,Wa);c(B,u,Xa);c(B,w,La);c(B,w,Ma);c(B,w,Na);c(B,w,Oa);c(B,w,Pa);c(B,w,Qa);c(B,w,Ra);c(B,w,Sa);c(B,w,Ta);c(B,w,Ua);c(B,w,Va);c(B,w,Wa);c(B,w,Xa);c(A,t,La);c(A,t,Ma);c(A,t,Na);c(A,t,Oa);c(A,t,Pa);c(A,t,Qa);c(A,t,Ra);
c(A,t,Sa);c(A,t,Ta);c(A,t,Ua);c(A,t,Va);c(A,t,Wa);c(A,t,Xa);c(A,v,La);c(A,v,Ma);c(A,v,Na);c(A,v,Oa);c(A,v,Pa);c(A,v,Qa);c(A,v,Ra);c(A,v,Sa);c(A,v,Ta);c(A,v,Ua);c(A,v,Va);c(A,v,Wa);c(A,v,Xa);c(A,x,La);c(A,x,Ma);c(A,x,Na);c(A,x,Oa);c(A,x,Pa);c(A,x,Qa);c(A,x,Ra);c(A,x,Sa);c(A,x,Ta);c(A,x,Ua);c(A,x,Va);c(A,x,Wa);c(A,x,Xa);c(A,u,La);c(A,u,Ma);c(A,u,Na);c(A,u,Oa);c(A,u,Pa);c(A,u,Qa);c(A,u,Ra);c(A,u,Sa);c(A,u,Ta);c(A,u,Ua);c(A,u,Va);c(A,u,Wa);c(A,u,Xa);c(A,w,La);c(A,w,Ma);c(A,w,Na);c(A,w,Oa);c(A,w,Pa);c(A,
w,Qa);c(A,w,Ra);c(A,w,Sa);c(A,w,Ta);c(A,w,Ua);c(A,w,Va);c(A,w,Wa);c(A,w,Xa);c(C,t,Gc);c(C,t,Hc);c(C,t,Ic);c(C,t,Jc);c(C,t,Kc);c(C,t,Lc);c(C,t,Mc);c(C,t,Nc);c(C,t,Oc);c(C,t,Pc);c(C,t,Qc);c(C,v,Jd);c(C,v,Gc);c(C,v,Hc);c(C,v,Ic);c(C,v,Jc);c(C,v,Kc);c(C,v,Lc);c(C,v,Mc);c(C,v,Nc);c(C,v,Oc);c(C,v,Pc);c(C,v,Qc);c(C,v,Jd);c(C,x,Gc);c(C,x,Hc);c(C,x,Ic);c(C,x,Jc);c(C,x,Kc);c(C,x,Lc);c(C,x,Mc);c(C,x,Nc);c(C,x,Oc);c(C,x,Pc);c(C,x,Qc);c(C,x,Jd);c(C,u,Gc);c(C,u,Hc);c(C,u,Ic);c(C,u,Jc);c(C,u,Kc);c(C,u,Lc);c(C,u,
Mc);c(C,u,Nc);c(C,u,Oc);c(C,u,Pc);c(C,u,Qc);c(C,u,Jd);c(C,w,Gc);c(C,w,Hc);c(C,w,Ic);c(C,w,Jc);c(C,w,Kc);c(C,w,Lc);c(C,w,Mc);c(C,w,Nc);c(C,w,Oc);c(C,w,Pc);c(C,w,Qc);c(y,t,tc);c(y,t,uc);c(y,t,vc);c(y,t,wc);c(y,t,xc);c(y,t,yc);c(y,t,zc);c(y,t,Ac);c(y,t,Bc);c(y,t,Cc);c(y,t,Dc);c(y,t,Ec);c(y,t,Fc);c(y,t,Ob);c(y,v,tc);c(y,v,uc);c(y,v,vc);c(y,v,wc);c(y,v,xc);c(y,v,yc);c(y,v,zc);c(y,v,Ac);c(y,v,Bc);c(y,v,Cc);c(y,v,Dc);c(y,v,Ec);c(y,v,Fc);c(y,v,Ob);c(y,x,tc);c(y,x,uc);c(y,x,vc);c(y,x,wc);c(y,x,xc);c(y,x,yc);
c(y,x,zc);c(y,x,Ac);c(y,x,Bc);c(y,x,Cc);c(y,x,Dc);c(y,x,Ec);var Ld=c(y,x,Fc);c(y,x,Ob);c(y,w,tc);c(y,u,uc);c(y,u,vc);c(y,u,wc);c(y,u,xc);c(y,u,yc);c(y,u,zc);c(y,u,Ac);c(y,u,Bc);c(y,u,Cc);c(y,u,Dc);c(y,u,Ec);c(y,u,Fc);c(y,u,Ob);c(y,w,tc);c(y,w,uc);c(y,w,vc);c(y,w,wc);c(y,w,xc);c(y,w,yc);c(y,w,zc);c(y,w,Ac);c(y,w,Bc);c(y,w,Cc);c(y,w,Dc);var Md=c(y,w,Ec);c(y,w,Fc);c(y,w,Ob);c(ra,t,Ya);c(ra,v,Ya);c(ra,x,Ya);c(ra,u,Ya);c(ra,w,Ya);c(ra,t,Za);c(ra,v,Za);c(ra,x,Za);c(ra,u,Za);c(ra,w,Za);c(ra,t,$a);c(ra,v,
$a);c(ra,x,$a);c(ra,u,$a);c(ra,w,$a);var Lj=function(a){return c(a._0.elemFn,Ge(a._0.options),a._0.children)};f(function(a,b){return c(H,{ctor:"::",_0:d("form-group"),_1:Fe(a)},c(D,Lj,b))});var Mj=f(function(a,b){return g.update(b,{attributes:c(k["++"],b.attributes,a._0)})}),Nj={attributes:{ctor:"[]"}};f(function(a,b){return c(H,{ctor:"::",_0:d("invalid-feedback"),_1:a},b)});f(function(a,b){return c(H,{ctor:"::",_0:d("valid-feedback"),_1:a},b)});f(function(a,b){return c(Of,{ctor:"::",_0:d("text-muted"),
_1:a},b)});f(function(a,b){return c(Of,{ctor:"::",_0:d("form-text text-muted"),_1:a},b)});f(function(a,b){return c(Bd,{ctor:"::",_0:d("form-control-label"),_1:a},b)});f(function(a,b){a=m(fa,Mj,Nj,a);a=c(k["++"],{ctor:"::",_0:d("form-group"),_1:{ctor:"[]"}},a.attributes);return c(H,a,b)});var Nd=f(function(a,b){return c($h,a,b)});f(function(a,b){return{ctor:"Col",_0:{elemFn:H,options:a,children:b}}});f(function(a,b){return{ctor:"Col",_0:{elemFn:Bd,options:{ctor:"::",_0:{ctor:"ColAttrs",_0:{ctor:"::",
_0:d("col-form-label"),_1:{ctor:"[]"}}},_1:a},children:b}}});var Oj=function(a){return d("Success"===a.ctor?"is-valid":"is-invalid")},Pj=function(a){return Ab(function(){switch(a.ctor){case "Text":return"text";case "Password":return"password";case "DatetimeLocal":return"datetime-local";case "Date":return"date";case "Month":return"month";case "Time":return"time";case "Week":return"week";case "Number":return"number";case "Email":return"email";case "Url":return"url";case "Search":return"search";case "Tel":return"tel";
default:return"color"}}())},Qj=function(a){return c(K,function(a){return d(c(k["++"],"form-control-",a))},fb(a))},Rj=f(function(a,b){switch(a.ctor){case "Size":return g.update(b,{size:q(a._0)});case "Id":return g.update(b,{id:q(a._0)});case "Type":return g.update(b,{tipe:a._0});case "Disabled":return g.update(b,{disabled:a._0});case "Value":return g.update(b,{value:q(a._0)});case "DefaultValue":return g.update(b,{defaultValue:q(a._0)});case "Placeholder":return g.update(b,{placeholder:q(a._0)});case "OnInput":return g.update(b,
{onInput:q(a._0)});case "Validation":return g.update(b,{validation:q(a._0)});case "Readonly":return g.update(b,{readonly:a._0});default:return g.update(b,{attributes:c(k["++"],b.attributes,a._0)})}}),Od=function(a){return{ctor:"Attrs",_0:a}},Sj=f(function(a,b){return{ctor:"Input",_0:{options:{ctor:"::",_0:{ctor:"Type",_0:a},_1:b}}}}),pg={ctor:"Size",_0:u},qg={ctor:"Text"},Tj={tipe:qg,id:p,size:p,disabled:!1,value:p,defaultValue:p,placeholder:p,onInput:p,validation:p,readonly:!1,attributes:{ctor:"[]"}},
xa=f(function(a,b){a=c(Sj,a,b);a=m(fa,Rj,Tj,a._0.options);a=c(k["++"],{ctor:"::",_0:d("form-control"),_1:{ctor:"::",_0:c(Lb,"disabled",a.disabled),_1:{ctor:"::",_0:c(Lb,"readOnly",a.readonly),_1:{ctor:"::",_0:Pj(a.tipe),_1:{ctor:"[]"}}}}},c(k["++"],c(ya,va,{ctor:"::",_0:c(K,bc,a.id),_1:{ctor:"::",_0:c(ib,Qj,a.size),_1:{ctor:"::",_0:c(K,ve,a.value),_1:{ctor:"::",_0:c(K,we,a.defaultValue),_1:{ctor:"::",_0:c(K,ai,a.placeholder),_1:{ctor:"::",_0:c(K,cc,a.onInput),_1:{ctor:"::",_0:c(K,Oj,a.validation),
_1:{ctor:"[]"}}}}}}}}),a.attributes));return c(ue,a,{ctor:"[]"})}),Uj=xa(qg),Vj=xa({ctor:"Password"}),Wj=xa({ctor:"DatetimeLocal"}),Xj=xa({ctor:"Date"}),Yj=xa({ctor:"Month"}),Zj=xa({ctor:"Time"}),ak=xa({ctor:"Week"}),bk=xa({ctor:"Number"}),ck=xa({ctor:"Email"}),dk=xa({ctor:"Url"}),ek=xa({ctor:"Search"}),fk=xa({ctor:"Tel"});xa({ctor:"Color"});var gk=function(a){return c(K,function(a){return d(c(k["++"],"input-group-",a))},fb(a))},Pd=function(a){a=a._0;var b=a.input._0;return c(H,c(k["++"],{ctor:"::",
_0:d("input-group"),_1:{ctor:"[]"}},c(k["++"],c(ya,va,{ctor:"::",_0:c(ib,gk,a.size),_1:{ctor:"[]"}}),a.attributes)),c(k["++"],c(D,function(a){return c(H,{ctor:"::",_0:d("input-group-prepend"),_1:{ctor:"[]"}},{ctor:"::",_0:a._0,_1:{ctor:"[]"}})},a.predecessors),c(k["++"],{ctor:"::",_0:b,_1:{ctor:"[]"}},c(D,function(a){return c(H,{ctor:"::",_0:d("input-group-append"),_1:{ctor:"[]"}},{ctor:"::",_0:a._0,_1:{ctor:"[]"}})},a.successors))))},Qd=function(a){return{ctor:"Config",_0:a}},Rd=function(a){return Qd({input:a,
predecessors:{ctor:"[]"},successors:{ctor:"[]"},size:p,attributes:{ctor:"[]"}})};f(function(a,b){return Qd(g.update(b._0,{predecessors:a}))});var Sd=f(function(a,b){return Qd(g.update(b._0,{successors:a}))});f(function(a,b){return Qd(g.update(b._0,{attributes:a}))});var Aa=f(function(a,b){return{ctor:"Input",_0:a(b)}}),Td=Aa(Uj);Aa(Vj);Aa(Wj);Aa(Xj);Aa(Yj);Aa(Zj);Aa(ak);Aa(bk);Aa(ck);Aa(dk);Aa(ek);Aa(fk);var Ud=function(a){return{ctor:"Addon",_0:a}};f(function(a,b){return Ud(c(Zh,{ctor:"::",_0:d("input-group-text"),
_1:a},b))});var Vd=f(function(a,b){return Ud(c(Ea,a,b))});f(function(a,b){return Ud(c(ej,a,b))});f(function(a,b){return Ud(c(fj,a,b))});var rg=function(a){switch(a.ctor){case "Column":return c(H,Ge(a._0.options),a._0.children);case "ColBreak":return a._0;default:return m(Zb,"div",Ge(a._0.options),a._0.children)}};f(function(a,b){return m(Zb,"div",Fe(a),c(D,function(a){return{ctor:"_Tuple2",_0:a._0,_1:rg(a._1)}},b))});var ed=f(function(a,b){return c(H,Fe(a),c(D,rg,b))});f(function(a,b){return c(H,
c(k["++"],{ctor:"::",_0:d("container-fluid"),_1:{ctor:"[]"}},a),b)});var Wd=f(function(a,b){return c(H,c(k["++"],{ctor:"::",_0:d("container"),_1:{ctor:"[]"}},a),b)});f(function(a,b){return{ctor:"KeyedColumn",_0:{options:a,children:b}}});var Fa=f(function(a,b){return{ctor:"Column",_0:{options:a,children:b}}});d("py-xl-5");d("py-xl-4");d("py-xl-3");d("py-xl-2");d("py-xl-1");d("py-xl-0");d("px-xl-5");d("px-xl-4");d("px-xl-3");d("px-xl-2");d("px-xl-1");d("px-xl-0");d("pr-xl-5");d("pr-xl-4");d("pr-xl-3");
d("pr-xl-2");d("pr-xl-1");d("pr-xl-0");d("pl-xl-5");d("pl-xl-4");d("pl-xl-3");d("pl-xl-2");d("pl-xl-1");d("pl-xl-0");d("pb-xl-5");d("pb-xl-4");d("pb-xl-3");d("pb-xl-2");d("pb-xl-1");d("pb-xl-0");d("pt-xl-5");d("pt-xl-4");d("pt-xl-3");d("pt-xl-2");d("pt-xl-1");d("pt-xl-0");d("p-xl-5");d("p-xl-4");d("p-xl-3");d("p-xl-2");d("p-xl-1");d("p-xl-0");d("py-lg-5");d("py-lg-4");d("py-lg-3");d("py-lg-2");d("py-lg-1");d("py-lg-0");d("px-lg-5");d("px-lg-4");d("px-lg-3");d("px-lg-2");d("px-lg-1");d("px-lg-0");
d("pr-lg-5");d("pr-lg-4");d("pr-lg-3");d("pr-lg-2");d("pr-lg-1");d("pr-lg-0");d("pl-lg-5");d("pl-lg-4");d("pl-lg-3");d("pl-lg-2");d("pl-lg-1");d("pl-lg-0");d("pb-lg-5");d("pb-lg-4");d("pb-lg-3");d("pb-lg-2");d("pb-lg-1");d("pb-lg-0");d("pt-lg-5");d("pt-lg-4");d("pt-lg-3");d("pt-lg-2");d("pt-lg-1");d("pt-lg-0");d("p-lg-5");d("p-lg-4");d("p-lg-3");d("p-lg-2");d("p-lg-1");d("p-lg-0");d("py-md-5");d("py-md-4");d("py-md-3");d("py-md-2");d("py-md-1");d("py-md-0");d("px-md-5");d("px-md-4");d("px-md-3");
d("px-md-2");d("px-md-1");d("px-md-0");d("pr-md-5");d("pr-md-4");d("pr-md-3");d("pr-md-2");d("pr-md-1");d("pr-md-0");d("pl-md-5");d("pl-md-4");d("pl-md-3");d("pl-md-2");d("pl-md-1");d("pl-md-0");d("pb-md-5");d("pb-md-4");d("pb-md-3");d("pb-md-2");d("pb-md-1");d("pb-md-0");d("pt-md-5");d("pt-md-4");d("pt-md-3");d("pt-md-2");d("pt-md-1");d("pt-md-0");d("p-md-5");d("p-md-4");d("p-md-3");d("p-md-2");d("p-md-1");d("p-md-0");d("py-sm-5");d("py-sm-4");d("py-sm-3");d("py-sm-2");d("py-sm-1");d("py-sm-0");
d("px-sm-5");d("px-sm-4");d("px-sm-3");d("px-sm-2");d("px-sm-1");d("px-sm-0");d("pr-sm-5");d("pr-sm-4");d("pr-sm-3");d("pr-sm-2");d("pr-sm-1");d("pr-sm-0");d("pl-sm-5");d("pl-sm-4");d("pl-sm-3");d("pl-sm-2");d("pl-sm-1");d("pl-sm-0");d("pb-sm-5");d("pb-sm-4");d("pb-sm-3");d("pb-sm-2");d("pb-sm-1");d("pb-sm-0");d("pt-sm-5");d("pt-sm-4");d("pt-sm-3");d("pt-sm-2");d("pt-sm-1");d("pt-sm-0");d("p-sm-5");d("p-sm-4");d("p-sm-3");d("p-sm-2");d("p-sm-1");d("p-sm-0");d("py-5");d("py-4");d("py-3");d("py-2");
d("py-1");d("py-0");d("px-5");d("px-4");d("px-3");d("px-2");d("px-1");d("px-0");d("pr-5");d("pr-4");d("pr-3");d("pr-2");d("pr-1");d("pr-0");d("pl-5");d("pl-4");d("pl-3");d("pl-2");d("pl-1");d("pl-0");d("pb-5");d("pb-4");d("pb-3");d("pb-2");d("pb-1");d("pb-0");d("pt-5");d("pt-4");d("pt-3");d("pt-2");d("pt-1");d("pt-0");d("p-5");d("p-4");d("p-3");d("p-2");d("p-1");d("p-0");d("my-xl-auto");d("my-xl-5");d("my-xl-4");d("my-xl-3");d("my-xl-2");d("my-xl-1");d("my-xl-0");d("mx-xl-auto");d("mx-xl-5");d("mx-xl-4");
d("mx-xl-3");d("mx-xl-2");d("mx-xl-1");d("mx-xl-0");d("mr-xl-auto");d("mr-xl-5");d("mr-xl-4");d("mr-xl-3");d("mr-xl-2");d("mr-xl-1");d("mr-xl-0");d("ml-xl-auto");d("ml-xl-5");d("ml-xl-4");d("ml-xl-3");d("ml-xl-2");d("ml-xl-1");d("ml-xl-0");d("mb-xl-auto");d("mb-xl-5");d("mb-xl-4");d("mb-xl-3");d("mb-xl-2");d("mb-xl-1");d("mb-xl-0");d("mt-xl-auto");d("mt-xl-5");d("mt-xl-4");d("mt-xl-3");d("mt-xl-2");d("mt-xl-1");d("mt-xl-0");d("m-xl-auto");d("m-xl-5");d("m-xl-4");d("m-xl-3");d("m-xl-2");d("m-xl-1");
d("m-xl-0");d("my-lg-auto");d("my-lg-5");d("my-lg-4");d("my-lg-3");d("my-lg-2");d("my-lg-1");d("my-lg-0");d("mx-lg-auto");d("mx-lg-5");d("mx-lg-4");d("mx-lg-3");d("mx-lg-2");d("mx-lg-1");d("mx-lg-0");d("mr-lg-auto");d("mr-lg-5");d("mr-lg-4");d("mr-lg-3");d("mr-lg-2");d("mr-lg-1");d("mr-lg-0");d("ml-lg-auto");d("ml-lg-5");d("ml-lg-4");d("ml-lg-3");d("ml-lg-2");d("ml-lg-1");d("ml-lg-0");d("mb-lg-auto");d("mb-lg-5");d("mb-lg-4");d("mb-lg-3");d("mb-lg-2");d("mb-lg-1");d("mb-lg-0");d("mt-lg-auto");d("mt-lg-5");
d("mt-lg-4");d("mt-lg-3");d("mt-lg-2");d("mt-lg-1");d("mt-lg-0");d("m-lg-auto");d("m-lg-5");d("m-lg-4");d("m-lg-3");d("m-lg-2");d("m-lg-1");d("m-lg-0");d("my-md-auto");d("my-md-5");d("my-md-4");d("my-md-3");d("my-md-2");d("my-md-1");d("my-md-0");d("mx-md-auto");d("mx-md-5");d("mx-md-4");d("mx-md-3");d("mx-md-2");d("mx-md-1");d("mx-md-0");d("mr-md-auto");d("mr-md-5");d("mr-md-4");d("mr-md-3");d("mr-md-2");d("mr-md-1");d("mr-md-0");d("ml-md-auto");d("ml-md-5");d("ml-md-4");d("ml-md-3");d("ml-md-2");
d("ml-md-1");d("ml-md-0");d("mb-md-auto");d("mb-md-5");d("mb-md-4");d("mb-md-3");d("mb-md-2");d("mb-md-1");d("mb-md-0");d("mt-md-auto");d("mt-md-5");d("mt-md-4");d("mt-md-3");d("mt-md-2");d("mt-md-1");d("mt-md-0");d("m-md-auto");d("m-md-5");d("m-md-4");d("m-md-3");d("m-md-2");d("m-md-1");d("m-md-0");d("my-sm-auto");d("my-sm-5");d("my-sm-4");d("my-sm-3");d("my-sm-2");d("my-sm-1");d("my-sm-0");d("mx-sm-auto");d("mx-sm-5");d("mx-sm-4");d("mx-sm-3");d("mx-sm-2");d("mx-sm-1");d("mx-sm-0");d("mr-sm-auto");
d("mr-sm-5");d("mr-sm-4");d("mr-sm-3");d("mr-sm-2");d("mr-sm-1");d("mr-sm-0");d("ml-sm-auto");d("ml-sm-5");d("ml-sm-4");d("ml-sm-3");d("ml-sm-2");d("ml-sm-1");d("ml-sm-0");d("mb-sm-auto");d("mb-sm-5");d("mb-sm-4");d("mb-sm-3");d("mb-sm-2");d("mb-sm-1");d("mb-sm-0");d("mt-sm-auto");d("mt-sm-5");d("mt-sm-4");d("mt-sm-3");d("mt-sm-2");d("mt-sm-1");d("mt-sm-0");d("m-sm-auto");d("m-sm-5");d("m-sm-4");d("m-sm-3");d("m-sm-2");d("m-sm-1");d("m-sm-0");d("my-auto");d("my-5");d("my-4");d("my-3");d("my-2");d("my-1");
d("my-0");d("mx-auto");d("mx-5");d("mx-4");d("mx-3");d("mx-2");d("mx-1");d("mx-0");d("mr-auto");d("mr-5");d("mr-4");d("mr-3");d("mr-2");d("mr-1");d("mr-0");d("ml-auto");d("ml-5");d("ml-4");d("ml-3");d("ml-2");d("ml-1");d("ml-0");d("mb-auto");d("mb-5");d("mb-4");d("mb-3");d("mb-2");d("mb-1");d("mb-0");d("mt-auto");d("mt-5");d("mt-4");d("mt-3");d("mt-2");d("mt-1");d("mt-0");d("m-auto");d("m-5");var hk=d("m-4");d("m-3");d("m-2");d("m-1");d("m-0");var ik=n(function(a,b,d){for(;;){var e="[]"===b.ctor?
!0:!1;if(e)return d;e=a;var f=c(Ng,a,b);d={ctor:"::",_0:c(Ug,a,b),_1:d};a=e;b=f}}),jk=f(function(a,b){return{ctor:"SettingsStore",_0:g.update(b._0,{projectOverviewSettings:a})}}),sg={ctor:"SettingsStore",_0:{projectOverviewSettings:{projectsPerRow:3}}},kk=function(a){var b=a._1;return Ub({ctor:"::",_0:{ctor:"_Tuple2",_0:"id",_1:xb(a._0)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"body",_1:Vb(b.body)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"project_id",_1:xb(b.projectId)},_1:{ctor:"[]"}}}})},lk=function(a){return Ub({ctor:"::",
_0:{ctor:"_Tuple2",_0:"id",_1:xb(a._0)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"title",_1:Vb(a._1.title)},_1:{ctor:"[]"}}})},mk=function(a){return Ub({ctor:"::",_0:{ctor:"_Tuple2",_0:"id",_1:xb(a._0)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"name",_1:Vb(a._1.name)},_1:{ctor:"[]"}}})},nk=function(a){var b=a._1;return Ub({ctor:"::",_0:{ctor:"_Tuple2",_0:"id",_1:xb(a._0)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"description",_1:Vb(b.description)},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"context_id",_1:function(){var a=
b.contextId;return"Nothing"===a.ctor?qd:xb(a._0)}()},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"project_id",_1:function(){var a=b.projectId;return"Nothing"===a.ctor?qd:xb(a._0)}()},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"deleted_at",_1:function(){var a=b.state;return"Deleted"===a.ctor?mf(a._0):qd}()},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"finished_at",_1:function(){var a=b.state;return"Done"===a.ctor?mf(a._0):qd}()},_1:{ctor:"[]"}}}}}}})},tg=function(a){a=a._0;return Ub({ctor:"::",_0:{ctor:"_Tuple2",_0:"actions",
_1:pd(c(D,nk,ca(a.actions)))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"contexts",_1:pd(c(D,mk,ca(a.contexts)))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"projects",_1:pd(c(D,lk,ca(a.projects)))},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"notes",_1:pd(c(D,kk,ca(a.notes)))},_1:{ctor:"[]"}}}}})},Xd=function(a){return c(f(function(a,c){return a+c}),1,c(bb,0,Pg(ch(a))))};V(function(a,b,c,d,f){return{projects:a,actions:b,contexts:c,notes:d,settings:f}});var ug=E(function(a,b,c,d){return{description:a,contextId:b,projectId:c,
state:d}}),ok=f(function(a,b){return{ctor:"_Tuple2",_0:a,_1:{title:b}}}),pk=m(Ia,"title",lb,m(Ia,"id",Ha,oa(ok))),qk=f(function(a,b){return{ctor:"_Tuple2",_0:a,_1:{name:b}}}),rk=m(Ia,"name",lb,m(Ia,"id",Ha,oa(qk))),sk=f(function(a,b){return{body:a,projectId:b}}),tk=n(function(a,b,d){return{ctor:"_Tuple2",_0:a,_1:c(sk,b,d)}}),uk=m(Ia,"project_id",Ha,m(Ia,"body",lb,m(Ia,"id",Ha,oa(tk)))),vk=n(function(a,b,c){return{id:a,description:b,state:c}}),wk=f(function(a,b){return{id:a,title:b}}),xk=f(function(a,
b){return{id:a,name:b}}),yk=f(function(a,b){return{id:a,body:b}}),Ba=function(a){return{ctor:"ProgrissStore",_0:a}},He=Ba({projects:ba,actions:ba,contexts:ba,notes:ba,settings:sg});f(function(a,b){b=b._0;a=m(na,Xd(b.contexts),{name:a},b.contexts);return Ba(g.update(b,{contexts:a}))});f(function(a,b){b=b._0;a=m(na,Xd(b.projects),{title:a},b.projects);return Ba(g.update(b,{projects:a}))});var vg=f(function(a,b){b=b._0;var c=m(Ga,a.id._0,K(function(b){return g.update(b,{description:a.description,state:a.state})}),
b.actions);return Ba(g.update(b,{actions:c}))}),wg=n(function(a,b,c){c=c._0;a=m(Ga,a._0,K(function(a){return g.update(a,{contextId:q(b._0)})}),c.actions);return Ba(g.update(c,{actions:a}))}),zk=f(function(a,b){b=b._0;a=m(Ga,a._0,K(function(a){return g.update(a,{contextId:p})}),b.actions);return Ba(g.update(b,{actions:a}))}),Ak=f(function(a,b){b=b._0;a=m(Ga,a._0,K(function(a){return g.update(a,{projectId:p})}),b.actions);return Ba(g.update(b,{actions:a}))}),Bk=n(function(a,b,c){c=c._0;a=m(Ga,a._0,
K(function(a){return g.update(a,{projectId:q(b._0)})}),c.actions);return Ba(g.update(c,{actions:a}))}),Ck=f(function(a,b){return Ba(g.update(a._0,{settings:b}))}),Dk=E(function(a,b,c,d){return Ba({actions:od(a),contexts:od(b),projects:od(c),notes:od(d),settings:sg})}),fd=function(a){var b=a._1;return m(vk,{ctor:"ActionId",_0:a._0},b.description,b.state)},Ek=function(a){return c(D,fd,ca(c(lf,f(function(a,c){return g.eq(c.contextId,p)}),a._0.actions)))},Fk=f(function(a,b){return c(D,fd,c(hd,function(b){return g.eq(b._1.contextId,
q(a._0))},ca(b._0.actions)))}),Gk=f(function(a,b){return c(D,fd,c(hd,function(b){return g.eq(b._1.projectId,q(a._0))},ca(b._0.actions)))}),Ie={ctor:"Active"},xg=f(function(a,b){b=b._0;a=m(na,Xd(b.actions),X(ug,a,p,p,Ie),b.actions);return{ctor:"_Tuple2",_0:{ctor:"ActionId",_0:Xd(b.actions)},_1:Ba(g.update(b,{actions:a}))}}),Hk=function(a){var b=function(){var b=a.state;switch(b.ctor){case "Done":return Ie;case "Active":return{ctor:"Done",_0:0};default:return{ctor:"Deleted",_0:b._0}}}();return g.update(a,
{state:b})},yg=f(function(a,b){b=b._0;a=m(Ga,a._0,K(Hk),b.actions);return Ba(g.update(b,{actions:a}))}),Ik=ha(function(a,b,c,d,f,g){return{ctor:"_Tuple2",_0:a,_1:X(ug,b,c,d,"Nothing"===g.ctor?"Nothing"===f.ctor?Ie:{ctor:"Done",_0:f._0}:{ctor:"Deleted",_0:g._0})}}),Jk=X(mb,"deleted_at",ud(kb),p,X(mb,"finished_at",ud(kb),p,X(mb,"project_id",ud(Ha),p,X(mb,"context_id",ud(Ha),p,m(Ia,"description",lb,m(Ia,"id",Ha,oa(Ik))))))),Je=X(mb,"notes",td(uk),{ctor:"[]"},X(mb,"projects",td(pk),{ctor:"[]"},X(mb,"contexts",
td(rk),{ctor:"[]"},X(mb,"actions",td(Jk),{ctor:"[]"},oa(Dk))))),Yd=function(a){return c(xk,{ctor:"ContextId",_0:a._0},a._1.name)},Kk=f(function(a,b){var d=a._0;return c(K,Yd,c(K,function(a){return{ctor:"_Tuple2",_0:d,_1:a}},c(cb,d,b._0.contexts)))}),Ke=f(function(a,b){var d=b._0;return c(K,Yd,c(ib,function(a){return c(K,function(b){return{ctor:"_Tuple2",_0:a,_1:b}},c(cb,a,d.contexts))},c(ib,function(a){return a.contextId},c(cb,a._0,d.actions))))}),Le=function(a){return c(wk,{ctor:"ProjectId",_0:a._0},
a._1.title)},Me=f(function(a,b){var d=b._0;return c(K,Le,c(ib,function(a){return c(K,function(b){return{ctor:"_Tuple2",_0:a,_1:b}},c(cb,a,d.projects))},c(ib,function(a){return a.projectId},c(cb,a._0,d.actions))))}),Lk=function(a){return c(yk,{ctor:"NoteId",_0:a._0},a._1.body)},Mk=f(function(a,b){return c(D,Lk,c(hd,function(b){return g.eq(b._1.projectId,a._0)},ca(b._0.notes)))}),Ne=c(H,{ctor:"::",_0:I({ctor:"::",_0:{ctor:"_Tuple2",_0:"bmd-layout-container",_1:!0},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"bmd-drawer-f-r",
_1:!0},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"bmd-drawer-overlay",_1:!0},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"bmd-drawer-in",_1:!1},_1:{ctor:"[]"}}}}}),_1:{ctor:"::",_0:za({ctor:"::",_0:{ctor:"_Tuple2",_0:"position",_1:"static"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:c(H,{ctor:"::",_0:I({ctor:"::",_0:{ctor:"_Tuple2",_0:"bmd-layout-drawer",_1:!0},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"bg-faded",_1:!0},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}},{ctor:"::",_0:c(ac,{ctor:"::",_0:d("list-group"),_1:{ctor:"[]"}},
{ctor:"[]"}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),Oe=function(a){return c(H,{ctor:"::",_0:I({ctor:"::",_0:{ctor:"_Tuple2",_0:"bmd-layout-container",_1:!0},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"bmd-drawer-f-r",_1:!0},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"bmd-drawer-overlay",_1:!0},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"bmd-drawer-in",_1:!0},_1:{ctor:"[]"}}}}}),_1:{ctor:"::",_0:za({ctor:"::",_0:{ctor:"_Tuple2",_0:"position",_1:"static"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:c(H,{ctor:"::",_0:I({ctor:"::",
_0:{ctor:"_Tuple2",_0:"bmd-layout-drawer",_1:!0},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"bg-faded",_1:!0},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}},{ctor:"::",_0:c(ac,{ctor:"::",_0:d("list-group"),_1:{ctor:"[]"}},a),_1:{ctor:"[]"}}),_1:{ctor:"[]"}})},Nk=f(function(a,b){switch(b.ctor){case "AllContexts":return"All";case "AnywhereContext":return"Anywhere";default:return c(bb,"",c(K,function(a){return a.name},c(Kk,b._0,a)))}}),Ok=f(function(a,b){a=c(Me,b.id,a);return"Nothing"===a.ctor?"No Project":a._0.title}),
Pk=f(function(a,b){a=c(Ke,b.id,a);return"Nothing"===a.ctor?"Anywhere":a._0.name}),Qk=f(function(a,b){switch(b.ctor){case "AllContexts":return c(D,fd,ca(a._0.actions));case "AnywhereContext":return Ek(a);default:return c(Fk,b._0,a)}});E(function(a,b,c,d){return{selectedContext:a,newActionDescription:b,contextMenuVisible:c,editingAction:d}});var Pe={ctor:"AllContexts"},zg={ctor:"AnywhereContext"},ub={ctor:"NotEditingAction"},Rk={selectedContext:Pe,newActionDescription:"",contextMenuVisible:!1,editingAction:ub},
ab=f(function(a,b){return{ctor:"EditingAction",_0:a,_1:b}}),Ag={ctor:"EditingProject"},Bg={ctor:"EditingContext"},Qe={ctor:"EditingDescription"},Re={ctor:"SelectingEditedAttribute"},Cg=function(a){return{ctor:"FocusResult",_0:a}},Sk=n(function(a,b,d){switch(a.ctor){case "UpdateNewActionDescription":return{ctor:"_Tuple3",_0:g.update(d,{newActionDescription:a._0}),_1:b,_2:N};case "ChangeContext":return{ctor:"_Tuple3",_0:g.update(d,{selectedContext:a._0,contextMenuVisible:!1}),_1:b,_2:N};case "UpdateActionContext":return{ctor:"_Tuple3",
_0:g.update(d,{editingAction:ub}),_1:m(wg,a._0,a._1,b),_2:N};case "UpdateActionContextAnywhere":return{ctor:"_Tuple3",_0:g.update(d,{editingAction:ub}),_1:c(zk,a._0,b),_2:N};case "UpdateActionProject":return{ctor:"_Tuple3",_0:g.update(d,{editingAction:ub}),_1:m(Bk,a._0,a._1,b),_2:N};case "UpdateActionNoProject":return{ctor:"_Tuple3",_0:g.update(d,{editingAction:ub}),_1:c(Ak,a._0,b),_2:N};case "UpdateActionDescription":return b=c(vg,g.update(a._0,{description:a._1}),b),{ctor:"_Tuple3",_0:d,_1:b,_2:N};
case "ToggleActionDone":return{ctor:"_Tuple3",_0:g.update(d,{editingAction:ub}),_1:c(yg,a._0,b),_2:N};case "ToggleContextMenu":return{ctor:"_Tuple3",_0:g.update(d,{contextMenuVisible:a._0}),_1:b,_2:N};case "SelectActionToEdit":a=a._0;if("EditingAction"===a.ctor){var e=c(k["++"],"edit-",Da(a._0));return"EditingDescription"===a._1.ctor?{ctor:"_Tuple3",_0:g.update(d,{editingAction:a}),_1:b,_2:c(Yb,Cg,yd(e))}:{ctor:"_Tuple3",_0:g.update(d,{editingAction:a}),_1:b,_2:N}}return{ctor:"_Tuple3",_0:g.update(d,
{editingAction:a}),_1:b,_2:N};case "SetFocusTo":return{ctor:"_Tuple3",_0:d,_1:b,_2:c(Yb,Cg,yd(a._0))};case "FocusResult":return{ctor:"_Tuple3",_0:d,_1:b,_2:N};default:b=c(xg,d.newActionDescription,b);var f=b._0,n=b._1;b=function(){var a=d.selectedContext;switch(a.ctor){case "SpecificContext":return m(wg,f,a._0,n);case "AllContexts":return n;default:return n}}();return{ctor:"_Tuple3",_0:g.update(d,{newActionDescription:""}),_1:b,_2:N}}}),Tk=f(function(a,b){return{ctor:"UpdateActionDescription",_0:a,
_1:b}}),Uk=f(function(a,b){return{ctor:"UpdateActionProject",_0:a,_1:b}}),Vk=n(function(a,b,d){return c(aa,{ctor:"::",_0:qa("#"),_1:{ctor:"::",_0:I({ctor:"::",_0:{ctor:"_Tuple2",_0:"list-group-item",_1:!0},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"active",_1:g.eq(c(Me,b,a),q(d))},_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:R(c(Uk,b,d.id)),_1:{ctor:"[]"}}}},{ctor:"::",_0:F(d.title),_1:{ctor:"[]"}})}),Wk=f(function(a,b){return{ctor:"UpdateActionContext",_0:a,_1:b}}),Xk=n(function(a,b,d){return c(aa,{ctor:"::",_0:qa("#"),
_1:{ctor:"::",_0:I({ctor:"::",_0:{ctor:"_Tuple2",_0:"list-group-item",_1:!0},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"active",_1:g.eq(c(Ke,b,a),q(d))},_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:R(c(Wk,b,d.id)),_1:{ctor:"[]"}}}},{ctor:"::",_0:F(d.name),_1:{ctor:"[]"}})}),Yk=f(function(a,b){if("EditingAction"===a.ctor){var d=a._0;switch(a._1.ctor){case "EditingContext":return a=c(k["++"],{ctor:"::",_0:c(aa,{ctor:"::",_0:qa("#"),_1:{ctor:"::",_0:I({ctor:"::",_0:{ctor:"_Tuple2",_0:"list-group-item",_1:!0},_1:{ctor:"::",
_0:{ctor:"_Tuple2",_0:"active",_1:g.eq(c(Ke,d,b),p)},_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:R({ctor:"UpdateActionContextAnywhere",_0:d}),_1:{ctor:"[]"}}}},{ctor:"::",_0:F("Anywhere"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}},c(D,c(Xk,b,d),c(D,Yd,ca(b._0.contexts)))),Oe(a);case "EditingProject":return a=c(k["++"],{ctor:"::",_0:c(aa,{ctor:"::",_0:qa("#"),_1:{ctor:"::",_0:I({ctor:"::",_0:{ctor:"_Tuple2",_0:"list-group-item",_1:!0},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"active",_1:g.eq(c(Me,d,b),p)},_1:{ctor:"[]"}}}),
_1:{ctor:"::",_0:R({ctor:"UpdateActionNoProject",_0:d}),_1:{ctor:"[]"}}}},{ctor:"::",_0:F("No Project"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}},c(D,c(Vk,b,d),c(D,Le,ca(b._0.projects)))),Oe(a);default:return Ne}}else return Ne}),Pb=function(a){return{ctor:"SelectActionToEdit",_0:a}},Zk=n(function(a,b,d){b=g.eq(b,c(ab,d.id,Re))||g.eq(b,c(ab,d.id,Bg))||g.eq(b,c(ab,d.id,Ag))?{ctor:"::",_0:{ctor:"_Tuple2",_0:"transition",_1:"all 0.5s"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"height",_1:"80px"},_1:{ctor:"::",_0:{ctor:"_Tuple2",
_0:"visibility",_1:"visible"},_1:{ctor:"[]"}}}}:{ctor:"::",_0:{ctor:"_Tuple2",_0:"transition",_1:"all 0.5s"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"height",_1:"0px"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"transform",_1:"TranslateY(-8px)"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"padding-bottom",_1:"0"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"padding-top",_1:"0"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"visibility",_1:"hidden"},_1:{ctor:"[]"}}}}}}};return c(Cb,{ctor:"::",_0:ze({ctor:"::",_0:za(b),_1:{ctor:"[]"}}),
_1:{ctor:"[]"}},{ctor:"::",_0:gb(c(H,{ctor:"[]"},{ctor:"::",_0:c(Xi,{ctor:"::",_0:Vi,_1:{ctor:"::",_0:{ctor:"Attrs",_0:{ctor:"::",_0:za({ctor:"::",_0:{ctor:"_Tuple2",_0:"width",_1:"100%"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},_1:{ctor:"[]"}}},{ctor:"::",_0:c(Be,{ctor:"::",_0:Ka,_1:{ctor:"::",_0:ta({ctor:"::",_0:R(Pb(c(ab,d.id,Qe))),_1:{ctor:"::",_0:za({ctor:"::",_0:{ctor:"_Tuple2",_0:"text-overflow",_1:"ellipsis"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"overflow",_1:"hidden"},_1:{ctor:"::",_0:{ctor:"_Tuple2",
_0:"width",_1:"33%"},_1:{ctor:"[]"}}}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}},{ctor:"::",_0:F("Edit"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:c(Be,{ctor:"::",_0:Ka,_1:{ctor:"::",_0:ta({ctor:"::",_0:R(Pb(c(ab,d.id,Bg))),_1:{ctor:"::",_0:za({ctor:"::",_0:{ctor:"_Tuple2",_0:"text-overflow",_1:"ellipsis"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"overflow",_1:"hidden"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"width",_1:"33%"},_1:{ctor:"[]"}}}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}},{ctor:"::",_0:F(c(Pk,a,d)),_1:{ctor:"[]"}}),
_1:{ctor:"::",_0:c(Be,{ctor:"::",_0:Ka,_1:{ctor:"::",_0:ta({ctor:"::",_0:R(Pb(c(ab,d.id,Ag))),_1:{ctor:"::",_0:za({ctor:"::",_0:{ctor:"_Tuple2",_0:"text-overflow",_1:"ellipsis"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"overflow",_1:"hidden"},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"width",_1:"33%"},_1:{ctor:"[]"}}}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}},{ctor:"::",_0:F(c(Ok,a,d)),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}),_1:{ctor:"[]"}})),_1:{ctor:"[]"}})}),$k=f(function(a,b){return c(zb,{ctor:"::",_0:d("btn btn-outline-primary"),
_1:{ctor:"::",_0:R({ctor:"ToggleContextMenu",_0:!b.contextMenuVisible}),_1:{ctor:"[]"}}},{ctor:"::",_0:F(c(Nk,a,b.selectedContext)),_1:{ctor:"[]"}})}),al=f(function(a,b){var e=g.eq(a,c(ab,b.id,Re))?{ctor:"::",_0:R(Pb(ub)),_1:{ctor:"[]"}}:g.eq(a,c(ab,b.id,Qe))?{ctor:"[]"}:{ctor:"::",_0:R(Pb(c(ab,b.id,Re))),_1:{ctor:"[]"}};e={ctor:"::",_0:ze(e),_1:{ctor:"[]"}};var f="Done"===b.state.ctor?tb:Ka;f={ctor:"::",_0:f,_1:{ctor:"::",_0:ta({ctor:"::",_0:m(zd,"click",{preventDefault:!0,stopPropagation:!0},oa({ctor:"ToggleActionDone",
_0:b.id})),_1:{ctor:"::",_0:d("bmd-btn-fab bmd-btn-fab-sm"),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}};var l={ctor:"::",_0:d("material-icons"),_1:{ctor:"[]"}};var n="Done"===b.state.ctor?"done":"check_box_outline_blank";return c(Cb,e,{ctor:"::",_0:gb(c(ed,{ctor:"::",_0:Kd,_1:{ctor:"[]"}},{ctor:"::",_0:c(Fa,{ctor:"::",_0:Md,_1:{ctor:"::",_0:Ld,_1:{ctor:"[]"}}},{ctor:"::",_0:c(Ea,f,{ctor:"::",_0:c(Kb,l,{ctor:"::",_0:F(n),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:g.eq(a,c(ab,b.id,Qe))?
c(Fa,{ctor:"[]"},{ctor:"::",_0:c(Nd,{ctor:"::",_0:za({ctor:"::",_0:{ctor:"_Tuple2",_0:"margin-bottom",_1:"0"},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:Cd("javascript:void(0);"),_1:{ctor:"::",_0:Dd(Pb(ub)),_1:{ctor:"[]"}}}},{ctor:"::",_0:Pd(c(Sd,{ctor:"::",_0:c(Vd,{ctor:"::",_0:tb,_1:{ctor:"[]"}},{ctor:"::",_0:F("Save"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}},Rd(Td({ctor:"::",_0:pg,_1:{ctor:"::",_0:Od({ctor:"::",_0:cc(Tk(b)),_1:{ctor:"::",_0:we(b.description),_1:{ctor:"::",_0:bc(c(k["++"],"edit-",Da(b.id))),_1:{ctor:"[]"}}}}),
_1:{ctor:"[]"}}})))),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}):c(Fa,{ctor:"[]"},{ctor:"::",_0:F(b.description),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}})),_1:{ctor:"[]"}})}),bl=n(function(a,b,c){var d="Done"===c.state.ctor?{ctor:"::",_0:Fd,_1:{ctor:"[]"}}:{ctor:"[]"};return Nb(X(Zk,a,b,c,m(al,b,c,rc(d))))}),cl=n(function(a,b,d){return c(H,{ctor:"[]"},c(D,c(bl,a,b),d))}),dl={ctor:"CreateNewAction"},el=function(a){return{ctor:"UpdateNewActionDescription",_0:a}},fl=f(function(a,b){a=m(cl,a,b.editingAction,c(Qk,a,b.selectedContext));
var e=c(Fa,{ctor:"::",_0:Md,_1:{ctor:"::",_0:Ld,_1:{ctor:"[]"}}},{ctor:"::",_0:c(Ea,{ctor:"::",_0:tb,_1:{ctor:"::",_0:ta({ctor:"::",_0:d("bmd-btn-fab bmd-btn-fab-sm"),_1:{ctor:"::",_0:R({ctor:"SetFocusTo",_0:"new-action-description"}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}},{ctor:"::",_0:c(Kb,{ctor:"::",_0:d("material-icons"),_1:{ctor:"[]"}},{ctor:"::",_0:F("add"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}});b=c(Nd,{ctor:"::",_0:Dd(dl),_1:{ctor:"::",_0:Cd("javascript:void(0);"),_1:{ctor:"[]"}}},
{ctor:"::",_0:Pd(c(Sd,{ctor:"::",_0:c(Vd,{ctor:"::",_0:tb,_1:{ctor:"::",_0:{ctor:"Disabled",_0:$e(b.newActionDescription)},_1:{ctor:"::",_0:ta({ctor:"[]"}),_1:{ctor:"[]"}}}},{ctor:"::",_0:F("Create Action"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}},Rd(Td({ctor:"::",_0:{ctor:"Placeholder",_0:"Add an Action"},_1:{ctor:"::",_0:Od({ctor:"::",_0:ve(b.newActionDescription),_1:{ctor:"::",_0:cc(el),_1:{ctor:"::",_0:bc("new-action-description"),_1:{ctor:"[]"}}}}),_1:{ctor:"[]"}}})))),_1:{ctor:"[]"}});b=Nb(m(Cb,{ctor:"[]"},
{ctor:"::",_0:gb(c(ed,{ctor:"::",_0:Kd,_1:{ctor:"[]"}},{ctor:"::",_0:e,_1:{ctor:"::",_0:c(Fa,{ctor:"[]"},{ctor:"::",_0:b,_1:{ctor:"[]"}}),_1:{ctor:"[]"}}})),_1:{ctor:"[]"}},rc({ctor:"::",_0:Fd,_1:{ctor:"[]"}})));return c(Wd,{ctor:"[]"},{ctor:"::",_0:a,_1:{ctor:"::",_0:b,_1:{ctor:"[]"}}})}),Se=function(a){return{ctor:"ChangeContext",_0:a}},gl=function(a){return c(aa,{ctor:"::",_0:qa("#"),_1:{ctor:"::",_0:I({ctor:"::",_0:{ctor:"_Tuple2",_0:"list-group-item",_1:!0},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"active",
_1:g.eq(a,Pe)},_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:R(Se(Pe)),_1:{ctor:"[]"}}}},{ctor:"::",_0:F("All"),_1:{ctor:"[]"}})},hl=function(a){return c(aa,{ctor:"::",_0:qa("#"),_1:{ctor:"::",_0:I({ctor:"::",_0:{ctor:"_Tuple2",_0:"list-group-item",_1:!0},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"active",_1:g.eq(a,zg)},_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:R(Se(zg)),_1:{ctor:"[]"}}}},{ctor:"::",_0:F("Anywhere"),_1:{ctor:"[]"}})},il=f(function(a,b){return c(aa,{ctor:"::",_0:qa("#"),_1:{ctor:"::",_0:I({ctor:"::",_0:{ctor:"_Tuple2",
_0:"list-group-item",_1:!0},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"active",_1:g.eq(a,{ctor:"SpecificContext",_0:b.id})},_1:{ctor:"[]"}}}),_1:{ctor:"::",_0:R(Se({ctor:"SpecificContext",_0:b.id})),_1:{ctor:"[]"}}}},{ctor:"::",_0:F(b.name),_1:{ctor:"[]"}})}),jl=n(function(a,b,d){a=c(f(function(a,b){return{ctor:"::",_0:a,_1:b}}),gl(b),c(f(function(a,b){return{ctor:"::",_0:a,_1:b}}),hl(b),c(D,il(b),c(D,Yd,ca(a._0.contexts)))));return d?Oe(a):Ne}),kl=f(function(a,b){return c(H,{ctor:"[]"},{ctor:"::",_0:c(Yk,
b.editingAction,a),_1:{ctor:"::",_0:m(jl,a,b.selectedContext,b.contextMenuVisible),_1:{ctor:"::",_0:c(fl,a,b),_1:{ctor:"[]"}}}})}),ll=f(function(a,b){return c(ac,{ctor:"[]"},c(D,function(a){return c(Nf,{ctor:"[]"},{ctor:"::",_0:F(a.body),_1:{ctor:"[]"}})},c(Mk,a,b)))}),ml=f(function(a,b){return c(D,function(a){return c(Ai,{ctor:"[]"},{ctor:"::",_0:F(a.description),_1:{ctor:"[]"}})},c(Gk,a,b))}),nl=f(function(a,b){return m(Cb,{ctor:"[]"},{ctor:"::",_0:c(Li,{ctor:"[]"},{ctor:"::",_0:c(ll,b.id,a),_1:{ctor:"::",
_0:c(Ea,{ctor:"::",_0:Ka,_1:{ctor:"::",_0:ta({ctor:"::",_0:d("bmd-btn-fab"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}},{ctor:"::",_0:c(Kb,{ctor:"::",_0:d("material-icons"),_1:{ctor:"[]"}},{ctor:"::",_0:F("grade"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}},c(Mi,c(ml,b.id,a),m(Cb,{ctor:"[]"},{ctor:"::",_0:c(Ki,{ctor:"[]"},{ctor:"::",_0:F(b.title),_1:{ctor:"[]"}}),_1:{ctor:"[]"}},rc({ctor:"[]"}))))}),ol=f(function(a,b){a=c(D,nl(a),b);a=c(H,{ctor:"::",_0:d("card-deck"),_1:{ctor:"[]"}},
c(D,Nb,a));return c(H,{ctor:"::",_0:hk,_1:{ctor:"[]"}},{ctor:"::",_0:a,_1:{ctor:"[]"}})}),pl=f(function(a,b){b=a._0.settings._0.projectOverviewSettings.projectsPerRow;return c(Wd,{ctor:"[]"},c(D,ol(a),ee(m(ik,b,c(D,Le,ca(a._0.projects)),{ctor:"[]"}))))}),ql=n(function(a,b,c){return{ctor:"_Tuple3",_0:c,_1:b,_2:N}}),rl=n(function(a,b,d){return{ctor:"_Tuple3",_0:d,_1:c(Ck,b,c(jk,g.update(b._0.settings._0.projectOverviewSettings,{projectsPerRow:a._0}),b._0.settings)),_2:N}}),Zd=function(a){return{ctor:"ChangeNumberOfProjectsPerRow",
_0:a}},sl=f(function(a,b){a=a._0.settings._0.projectOverviewSettings.projectsPerRow;return c(Wd,{ctor:"[]"},{ctor:"::",_0:c(se,{ctor:"[]"},{ctor:"::",_0:F("Settings"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:c(te,{ctor:"[]"},{ctor:"::",_0:F("Project Overview"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:F("Projects per row: "),_1:{ctor:"::",_0:c(Ea,{ctor:"::",_0:Ka,_1:{ctor:"::",_0:ta({ctor:"::",_0:R(Zd(1)),_1:{ctor:"::",_0:I({ctor:"::",_0:{ctor:"_Tuple2",_0:"active",_1:g.eq(a,1)},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),
_1:{ctor:"[]"}}},{ctor:"::",_0:F("1"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:c(Ea,{ctor:"::",_0:Ka,_1:{ctor:"::",_0:ta({ctor:"::",_0:R(Zd(2)),_1:{ctor:"::",_0:I({ctor:"::",_0:{ctor:"_Tuple2",_0:"active",_1:g.eq(a,2)},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}},{ctor:"::",_0:F("2"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:c(Ea,{ctor:"::",_0:Ka,_1:{ctor:"::",_0:ta({ctor:"::",_0:R(Zd(3)),_1:{ctor:"::",_0:I({ctor:"::",_0:{ctor:"_Tuple2",_0:"active",_1:g.eq(a,3)},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}},
{ctor:"::",_0:F("3"),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:c(Ea,{ctor:"::",_0:Ka,_1:{ctor:"::",_0:ta({ctor:"::",_0:R(Zd(4)),_1:{ctor:"::",_0:I({ctor:"::",_0:{ctor:"_Tuple2",_0:"active",_1:g.eq(a,4)},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}},{ctor:"::",_0:F("4"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}}}}}}})}),tl={newActionDescription:"",editing:p};f(function(a,b){return{newActionDescription:a,editing:b}});var Dg=function(a){return{ctor:"FocusResult",_0:a}},ul=n(function(a,b,d){switch(a.ctor){case "UpdateNewActionDescription":return{ctor:"_Tuple3",
_0:g.update(d,{newActionDescription:a._0}),_1:b,_2:N};case "UpdateActionDescription":return b=c(vg,g.update(a._0,{description:a._1}),b),{ctor:"_Tuple3",_0:d,_1:b,_2:N};case "CreateNewAction":return b=c(xg,d.newActionDescription,b)._1,{ctor:"_Tuple3",_0:g.update(d,{newActionDescription:""}),_1:b,_2:N};case "ToggleActionDone":return{ctor:"_Tuple3",_0:g.update(d,{editing:p}),_1:c(yg,a._0,b),_2:N};case "ToggleEditAction":a=a._0;if("Nothing"===a.ctor)return{ctor:"_Tuple3",_0:g.update(d,{editing:a}),_1:b,
_2:N};var e=c(k["++"],"edit-",Da(a._0));return{ctor:"_Tuple3",_0:g.update(d,{editing:a}),_1:b,_2:c(Yb,Dg,yd(e))};case "SetFocusTo":return{ctor:"_Tuple3",_0:d,_1:b,_2:c(Yb,Dg,yd(a._0))};default:return{ctor:"_Tuple3",_0:d,_1:b,_2:N}}}),vl={ctor:"CreateNewAction"},wl=f(function(a,b){return{ctor:"UpdateActionDescription",_0:a,_1:b}}),xl=f(function(a,b){var e={ctor:"::",_0:ze({ctor:"::",_0:R({ctor:"ToggleEditAction",_0:q(b.id)}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}};var f="Done"===b.state.ctor?tb:Ka;f={ctor:"::",
_0:f,_1:{ctor:"::",_0:ta({ctor:"::",_0:m(zd,"click",{preventDefault:!0,stopPropagation:!0},oa({ctor:"ToggleActionDone",_0:b.id})),_1:{ctor:"::",_0:d("bmd-btn-fab bmd-btn-fab-sm"),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}};var l={ctor:"::",_0:d("material-icons"),_1:{ctor:"[]"}};var n="Done"===b.state.ctor?"done":"check_box_outline_blank";a={ctor:"::",_0:gb(c(ed,{ctor:"::",_0:Kd,_1:{ctor:"[]"}},{ctor:"::",_0:c(Fa,{ctor:"::",_0:Md,_1:{ctor:"::",_0:Ld,_1:{ctor:"[]"}}},{ctor:"::",_0:c(Ea,f,{ctor:"::",_0:c(Kb,
l,{ctor:"::",_0:F(n),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:g.eq(a,q(b.id))?c(Fa,{ctor:"[]"},{ctor:"::",_0:c(Nd,{ctor:"::",_0:za({ctor:"::",_0:{ctor:"_Tuple2",_0:"margin-bottom",_1:"0"},_1:{ctor:"[]"}}),_1:{ctor:"::",_0:Cd("javascript:void(0);"),_1:{ctor:"::",_0:Dd({ctor:"ToggleEditAction",_0:p}),_1:{ctor:"[]"}}}},{ctor:"::",_0:Pd(c(Sd,{ctor:"::",_0:c(Vd,{ctor:"::",_0:tb,_1:{ctor:"[]"}},{ctor:"::",_0:F("Save"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}},Rd(Td({ctor:"::",_0:pg,_1:{ctor:"::",
_0:Od({ctor:"::",_0:cc(wl(b)),_1:{ctor:"::",_0:we(b.description),_1:{ctor:"::",_0:bc(c(k["++"],"edit-",Da(b.id))),_1:{ctor:"[]"}}}}),_1:{ctor:"[]"}}})))),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}):c(Fa,{ctor:"::",_0:{ctor:"ColAttrs",_0:{ctor:"[]"}},_1:{ctor:"[]"}},{ctor:"::",_0:F(b.description),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}})),_1:{ctor:"[]"}};b="Done"===b.state.ctor?{ctor:"::",_0:Fd,_1:{ctor:"[]"}}:{ctor:"[]"};return Nb(m(Cb,e,a,rc(b)))}),yl=f(function(a,b){return c(H,{ctor:"[]"},c(D,function(b){return c(xl,
a,b)},b))}),zl=function(a){return{ctor:"UpdateNewActionDescription",_0:a}},Al=f(function(a,b){a=c(yl,b.editing,c(D,fd,ca(a._0.actions)));var e=c(Fa,{ctor:"::",_0:Md,_1:{ctor:"::",_0:Ld,_1:{ctor:"[]"}}},{ctor:"::",_0:c(Ea,{ctor:"::",_0:tb,_1:{ctor:"::",_0:ta({ctor:"::",_0:d("bmd-btn-fab bmd-btn-fab-sm"),_1:{ctor:"::",_0:R({ctor:"SetFocusTo",_0:"new-action-description"}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}},{ctor:"::",_0:c(Kb,{ctor:"::",_0:d("material-icons"),_1:{ctor:"[]"}},{ctor:"::",_0:F("add"),_1:{ctor:"[]"}}),
_1:{ctor:"[]"}}),_1:{ctor:"[]"}});b=c(Nd,{ctor:"::",_0:Dd(vl),_1:{ctor:"::",_0:Cd("javascript:void(0);"),_1:{ctor:"[]"}}},{ctor:"::",_0:Pd(c(Sd,{ctor:"::",_0:c(Vd,{ctor:"::",_0:tb,_1:{ctor:"::",_0:{ctor:"Disabled",_0:$e(b.newActionDescription)},_1:{ctor:"::",_0:ta({ctor:"[]"}),_1:{ctor:"[]"}}}},{ctor:"::",_0:F("Create Action"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}},Rd(Td({ctor:"::",_0:{ctor:"Placeholder",_0:"Add an Action"},_1:{ctor:"::",_0:Od({ctor:"::",_0:ve(b.newActionDescription),_1:{ctor:"::",_0:cc(zl),
_1:{ctor:"::",_0:bc("new-action-description"),_1:{ctor:"[]"}}}}),_1:{ctor:"[]"}}})))),_1:{ctor:"[]"}});b=Nb(m(Cb,{ctor:"[]"},{ctor:"::",_0:gb(c(ed,{ctor:"::",_0:Kd,_1:{ctor:"[]"}},{ctor:"::",_0:e,_1:{ctor:"::",_0:c(Fa,{ctor:"[]"},{ctor:"::",_0:b,_1:{ctor:"[]"}}),_1:{ctor:"[]"}}})),_1:{ctor:"[]"}},rc({ctor:"::",_0:Fd,_1:{ctor:"[]"}})));return c(Wd,{ctor:"[]"},{ctor:"::",_0:c(ed,{ctor:"[]"},{ctor:"::",_0:c(Fa,{ctor:"[]"},{ctor:"::",_0:a,_1:{ctor:"::",_0:b,_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),_1:{ctor:"[]"}})}),
Bl=function(){var a=c(me,Je,'\n {\n "actions": [\n {"id": 1, "description": "Call architect about garden", "project_id": 1},\n {"id": 2, "description": "Buy cat food", "context_id": 1},\n {"id": 3, "description": "Call Florist about Mom\'s favourite flowers", "project_id": 2, "context_id": 2}\n ],\n "contexts": [\n {"id": 1, "name": "Errands"},\n {"id": 2, "name": "Calls"}\n ],\n "projects": [\n {"id": 1, "title": "Build our familiy house"},\n {"id": 2, "title": "Mom\'s Birthday"},\n {"id": 3, "title": "Write Essay about my favourite fish"},\n {"id": 4, "title": "Clean Garage"}\n ],\n "notes": [\n {"id": 1, "body": "Don\'t forget she likes tulips the best! So if you can get those please do. Whatever you do though, don\'t get roses. She hates them!", "project_id": 2}\n ]\n }\n ');
return"Ok"===a.ctor?a._0:He}(),Cl=da.outgoingPort("persistStore",function(a){return a}),Dl=da.incomingPort("loadStore",lb),El=da.outgoingPort("triggerStoreLoad",function(a){return null});Fb(function(a,b,c,d,f,g,k,m){return{store:a,gtdActionListsModel:b,projectCardOverviewModel:c,simpleTodosModel:d,settingsModel:f,selectedWorkflow:g,workflowMenuVisible:k,pasteBinUri:m}});var Fl=m(Ia,"uri",lb,oa(function(a){return{uri:a}})),Gl={ctor:"SettingsWorkflow"},Hl={ctor:"ProjectOverviewWorkflow"},Eg={ctor:"GtdActionListsWorkflow"},
Il={ctor:"_Tuple2",_0:{store:Bl,gtdActionListsModel:Rk,projectCardOverviewModel:{},simpleTodosModel:tl,settingsModel:{},selectedWorkflow:Eg,workflowMenuVisible:!1,pasteBinUri:p},_1:N},Jl={ctor:"SimpleTodosWorkflow"},Kl=function(a){return{ctor:"RecieveBinConfirmation",_0:a}},Ll={ctor:"TriggerStoreLoad"},Ml=function(a){return{ctor:"ReceiveStoreFromBin",_0:a}},Nl=function(a){return{ctor:"ReceiveStore",_0:a}},Ol={ctor:"Save"},$d=function(a){return{ctor:"SelectWorkflow",_0:a}},Fg=function(a){return{ctor:"SettingsMsg",
_0:a}},Gg=function(a){return{ctor:"SimpleTodosMsg",_0:a}},Hg=function(a){return{ctor:"ProjectOverviewMsg",_0:a}},Te=function(a){return{ctor:"GtdActionListsMsg",_0:a}},Pl=f(function(a,b){switch(a.ctor){case "Save":return{ctor:"_Tuple2",_0:g.update(b,{workflowMenuVisible:!1}),_1:pe({ctor:"::",_0:Cl(c(nf,2,tg(b.store))),_1:{ctor:"::",_0:c(Sf,Kl,m(fi,"https://api.myjson.com/bins",c(di,"application/json",c(nf,0,tg(b.store))),Fl)),_1:{ctor:"[]"}}})};case "TriggerStoreLoad":return{ctor:"_Tuple2",_0:g.update(b,
{workflowMenuVisible:!1}),_1:El({ctor:"_Tuple0"})};case "TriggerBinLoad":return{ctor:"_Tuple2",_0:g.update(b,{workflowMenuVisible:!1}),_1:c(Sf,Ml,c(gi,a._0,Je))};case "ReceiveStore":return a=c(me,Je,a._0),"Ok"===a.ctor?{ctor:"_Tuple2",_0:g.update(b,{store:a._0}),_1:N}:{ctor:"_Tuple2",_0:g.update(b,{store:He}),_1:N};case "ReceiveStoreFromBin":return a=a._0,"Ok"===a.ctor?{ctor:"_Tuple2",_0:g.update(b,{store:a._0}),_1:N}:{ctor:"_Tuple2",_0:g.update(b,{store:He}),_1:N};case "GtdActionListsMsg":var d=
m(Sk,a._0,b.store,b.gtdActionListsModel);a=d._1;var f=d._2;return{ctor:"_Tuple2",_0:g.update(b,{store:a,gtdActionListsModel:d._0}),_1:c(vd,Te,f)};case "ProjectOverviewMsg":return f=m(ql,a._0,b.store,b.projectCardOverviewModel),d=f._0,a=f._1,f=f._2,{ctor:"_Tuple2",_0:g.update(b,{store:a,projectCardOverviewModel:d}),_1:c(vd,Hg,f)};case "SimpleTodosMsg":return f=m(ul,a._0,b.store,b.simpleTodosModel),d=f._0,a=f._1,f=f._2,{ctor:"_Tuple2",_0:g.update(b,{store:a,simpleTodosModel:d}),_1:c(vd,Gg,f)};case "SettingsMsg":return f=
m(rl,a._0,b.store,b.settingsModel),d=f._0,a=f._1,f=f._2,{ctor:"_Tuple2",_0:g.update(b,{store:a,settingsModel:d}),_1:c(vd,Fg,f)};case "SelectWorkflow":return{ctor:"_Tuple2",_0:g.update(b,{selectedWorkflow:a._0,workflowMenuVisible:!1}),_1:N};case "ToggleDrawer":return{ctor:"_Tuple2",_0:g.update(b,{workflowMenuVisible:a._0}),_1:N};default:return a=a._0,"Ok"===a.ctor?{ctor:"_Tuple2",_0:g.update(b,{pasteBinUri:q(a._0.uri)}),_1:N}:{ctor:"_Tuple2",_0:b,_1:N}}}),Ql=function(a){switch(a.selectedWorkflow.ctor){case "SimpleTodosWorkflow":return c($b,
Gg,c(Al,a.store,a.simpleTodosModel));case "SettingsWorkflow":return c($b,Fg,c(sl,a.store,a.settingsModel));case "GtdActionListsWorkflow":return c($b,Te,c(kl,a.store,a.gtdActionListsModel));default:return c($b,Hg,c(pl,a.store,a.projectCardOverviewModel))}},Ig=Wh({init:Il,view:function(a){var b={ctor:"::",_0:I({ctor:"::",_0:{ctor:"_Tuple2",_0:"bmd-layout-container",_1:!0},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"bmd-drawer-f-l",_1:!0},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"bmd-drawer-overlay",_1:!0},_1:{ctor:"::",
_0:{ctor:"_Tuple2",_0:"bmd-drawer-in",_1:a.workflowMenuVisible},_1:{ctor:"[]"}}}}}),_1:{ctor:"::",_0:za({ctor:"::",_0:{ctor:"_Tuple2",_0:"position",_1:"static"},_1:{ctor:"[]"}}),_1:{ctor:"[]"}}};var e=c(Mf,{ctor:"::",_0:d("bmd-layout-header"),_1:{ctor:"[]"}},{ctor:"::",_0:c(H,{ctor:"::",_0:d("navbar navbar-light bg-faded"),_1:{ctor:"[]"}},{ctor:"::",_0:c(aa,{ctor:"::",_0:qa("#"),_1:{ctor:"::",_0:d("btn"),_1:{ctor:"::",_0:R({ctor:"ToggleDrawer",_0:!a.workflowMenuVisible}),_1:{ctor:"[]"}}}},{ctor:"::",
_0:c(Kb,{ctor:"::",_0:d("material-icons"),_1:{ctor:"[]"}},{ctor:"::",_0:F("menu"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),_1:{ctor:"::",_0:"GtdActionListsWorkflow"===a.selectedWorkflow.ctor?c($b,Te,c($k,a.store,a.gtdActionListsModel)):F(""),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}),f={ctor:"::",_0:I({ctor:"::",_0:{ctor:"_Tuple2",_0:"bmd-layout-drawer",_1:!0},_1:{ctor:"::",_0:{ctor:"_Tuple2",_0:"bg-faded",_1:!0},_1:{ctor:"[]"}}}),_1:{ctor:"[]"}},g=c(Mf,{ctor:"[]"},{ctor:"::",_0:c(aa,{ctor:"::",_0:d("navbar-brand"),
_1:{ctor:"[]"}},{ctor:"::",_0:F("Progriss"),_1:{ctor:"[]"}}),_1:{ctor:"[]"}}),k={ctor:"::",_0:d("list-group"),_1:{ctor:"[]"}},m=c(aa,{ctor:"::",_0:qa("#"),_1:{ctor:"::",_0:d("list-group-item"),_1:{ctor:"::",_0:R($d(Jl)),_1:{ctor:"[]"}}}},{ctor:"::",_0:F("Simple"),_1:{ctor:"[]"}}),n=c(aa,{ctor:"::",_0:qa("#"),_1:{ctor:"::",_0:d("list-group-item"),_1:{ctor:"::",_0:R($d(Eg)),_1:{ctor:"[]"}}}},{ctor:"::",_0:F("GTD"),_1:{ctor:"[]"}}),p=c(aa,{ctor:"::",_0:qa("#"),_1:{ctor:"::",_0:d("list-group-item"),_1:{ctor:"::",
_0:R($d(Hl)),_1:{ctor:"[]"}}}},{ctor:"::",_0:F("Projects"),_1:{ctor:"[]"}}),q=c(H,{ctor:"::",_0:d("dropdown-divider"),_1:{ctor:"[]"}},{ctor:"[]"}),r=c(aa,{ctor:"::",_0:qa("#"),_1:{ctor:"::",_0:d("list-group-item"),_1:{ctor:"::",_0:R($d(Gl)),_1:{ctor:"[]"}}}},{ctor:"::",_0:F("Settings"),_1:{ctor:"[]"}}),t=c(aa,{ctor:"::",_0:qa("#"),_1:{ctor:"::",_0:d("list-group-item"),_1:{ctor:"::",_0:R(Ol),_1:{ctor:"[]"}}}},{ctor:"::",_0:F("Save"),_1:{ctor:"[]"}}),v=c(aa,{ctor:"::",_0:qa("#"),_1:{ctor:"::",_0:d("list-group-item"),
_1:{ctor:"::",_0:R(Ll),_1:{ctor:"[]"}}}},{ctor:"::",_0:F("Load"),_1:{ctor:"[]"}});var u=a.pasteBinUri;u="Nothing"===u.ctor?F(""):c(aa,{ctor:"::",_0:qa("#"),_1:{ctor:"::",_0:d("list-group-item"),_1:{ctor:"::",_0:R({ctor:"TriggerBinLoad",_0:u._0}),_1:{ctor:"[]"}}}},{ctor:"::",_0:F("Load from server"),_1:{ctor:"[]"}});b=c(H,b,{ctor:"::",_0:e,_1:{ctor:"::",_0:c(H,f,{ctor:"::",_0:g,_1:{ctor:"::",_0:c(ac,k,{ctor:"::",_0:m,_1:{ctor:"::",_0:n,_1:{ctor:"::",_0:p,_1:{ctor:"::",_0:q,_1:{ctor:"::",_0:r,_1:{ctor:"::",
_0:t,_1:{ctor:"::",_0:v,_1:{ctor:"::",_0:u,_1:{ctor:"[]"}}}}}}}}}),_1:{ctor:"[]"}}}),_1:{ctor:"[]"}}});return c(H,{ctor:"[]"},{ctor:"::",_0:b,_1:{ctor:"::",_0:Ql(a),_1:{ctor:"[]"}}})},update:Pl,subscriptions:function(a){return Dl(Nl)}})(),vb={};vb.Main=vb.Main||{};"undefined"!==typeof Ig&&Ig(vb.Main,"Main",void 0);if("function"===typeof define&&define.amd)define([],function(){return vb});else if("object"===typeof module)module.exports=vb;else{var Ue=this.Elm;if("undefined"===typeof Ue)this.Elm=vb;
else for(var ae in vb){if(ae in Ue)throw Error("There are two Elm modules called `"+ae+"` on this page! Rename one of them.");Ue[ae]=vb[ae]}}}).call(this);